@prolibu-suite/cobalt-core 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +15359 -5571
- package/dist/cjs/co-accordion.cjs.entry.js +19 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/co-autocomplete.cjs.entry.js +51 -6
- package/dist/cjs/co-avatar.cjs.entry.js +40 -7
- package/dist/cjs/co-badge.cjs.entry.js +1 -1
- package/dist/cjs/co-button-group.cjs.entry.js +1 -1
- package/dist/cjs/co-button.cjs.entry.js +10 -5
- package/dist/cjs/co-calendar_3.cjs.entry.js +692 -0
- package/dist/cjs/co-card.cjs.entry.js +21 -4
- package/dist/cjs/co-checkbox-group.cjs.entry.js +7 -5
- package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/co-chip.cjs.entry.js +3 -3
- package/dist/cjs/co-color-picker.cjs.entry.js +109 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +443 -0
- package/dist/cjs/co-combobox.cjs.entry.js +51 -15
- package/dist/cjs/co-command-search.cjs.entry.js +14 -7
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +17 -5
- package/dist/cjs/co-date-picker.cjs.entry.js +177 -0
- package/dist/cjs/co-date-range-picker.cjs.entry.js +378 -0
- package/dist/cjs/co-date-range.cjs.entry.js +13 -259
- package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +498 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +4 -4
- package/dist/cjs/co-icon.cjs.entry.js +7 -4
- package/dist/cjs/co-input.cjs.entry.js +13 -8
- package/dist/cjs/co-json-field.cjs.entry.js +109 -0
- package/dist/cjs/co-lightbox.cjs.entry.js +344 -0
- package/dist/cjs/co-list-item.cjs.entry.js +14 -4
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +13 -3
- package/dist/cjs/co-navbar.cjs.entry.js +4 -4
- package/dist/cjs/co-number-field.cjs.entry.js +47 -11
- package/dist/cjs/co-overlay.cjs.entry.js +2 -2
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +376 -0
- package/dist/cjs/co-popover.cjs.entry.js +5 -5
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +38 -0
- package/dist/cjs/co-radio-group.cjs.entry.js +7 -5
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +191 -21
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +235 -0
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +184 -0
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +82 -0
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +119 -18
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +30 -5
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +9 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +205 -0
- package/dist/cjs/co-textarea.cjs.entry.js +92 -0
- package/dist/cjs/co-toast.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +7 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/co-tooltip.cjs.entry.js +12 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +20 -6
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/dateI18n-BdiNAl0_.js +106 -0
- package/dist/cjs/dates-D8D-aS5d.js +432 -0
- package/dist/cjs/index-CaEJnpZe.js +27213 -0
- package/dist/cjs/{index-BEovErzl.js → index-DoFnrUVH.js} +79 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/normalizeText-B-v-XPKf.js +96 -0
- package/dist/cjs/overlayScroll-ifzDNeyb.js +25 -0
- package/dist/cjs/overlayscrollbars-BlBHo2Xx.js +2842 -0
- package/dist/cjs/{positioning-DozpXyBd.js → positioning-DwHW399W.js} +40 -25
- package/dist/cjs/requiredMark-DA6y-4rp.js +16 -0
- package/dist/cjs/sanitizer-CjHZAkOm.js +1883 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-1021f612.entry.js → p-01fc77c4.entry.js} +1 -1
- package/dist/cobalt/p-0a6d8061.entry.js +1 -0
- package/dist/cobalt/p-0bf288cd.entry.js +1 -0
- package/dist/cobalt/p-136bdbd2.entry.js +1 -0
- package/dist/cobalt/{p-1b7d6808.entry.js → p-15708d32.entry.js} +1 -1
- package/dist/cobalt/{p-cc93ab05.entry.js → p-1578b019.entry.js} +1 -1
- package/dist/cobalt/{p-1b5c723a.entry.js → p-1e0282b8.entry.js} +1 -1
- package/dist/cobalt/p-23d48581.entry.js +1 -0
- package/dist/cobalt/p-2718ff27.entry.js +1 -0
- package/dist/cobalt/p-273afd93.entry.js +1 -0
- package/dist/cobalt/{p-c9b0e73f.entry.js → p-2b4d8535.entry.js} +1 -1
- package/dist/cobalt/p-3190d715.entry.js +1 -0
- package/dist/cobalt/p-3f9b3fcb.entry.js +1 -0
- package/dist/cobalt/p-41228dce.entry.js +1 -0
- package/dist/cobalt/{p-5a13e3a0.entry.js → p-44672953.entry.js} +1 -1
- package/dist/cobalt/{p-4cf6d1f4.entry.js → p-522fcdb7.entry.js} +1 -1
- package/dist/cobalt/p-53ce9023.entry.js +1 -0
- package/dist/cobalt/{p-4d8ff00a.entry.js → p-54f26e95.entry.js} +1 -1
- package/dist/cobalt/p-5d01bd4d.entry.js +1 -0
- package/dist/cobalt/p-5e7141aa.entry.js +1 -0
- package/dist/cobalt/p-5f905739.entry.js +1 -0
- package/dist/cobalt/{p-fb047df8.entry.js → p-6404bd21.entry.js} +1 -1
- package/dist/cobalt/p-654bbc2a.entry.js +1 -0
- package/dist/cobalt/p-6678ac0a.entry.js +1 -0
- package/dist/cobalt/{p-e808916c.entry.js → p-66a912dd.entry.js} +1 -1
- package/dist/cobalt/p-6759ee1c.entry.js +1 -0
- package/dist/cobalt/p-69a40bfd.entry.js +1 -0
- package/dist/cobalt/p-6a6a62cb.entry.js +1 -0
- package/dist/cobalt/p-6d43b6cd.entry.js +1 -0
- package/dist/cobalt/p-759c3dd0.entry.js +1 -0
- package/dist/cobalt/p-782f729f.entry.js +1 -0
- package/dist/cobalt/{p-ebd1555e.entry.js → p-7ef766c6.entry.js} +1 -1
- package/dist/cobalt/p-7f818368.entry.js +1 -0
- package/dist/cobalt/p-83b89bf8.entry.js +1 -0
- package/dist/cobalt/p-88dc561a.entry.js +1 -0
- package/dist/cobalt/{p-4905b51d.entry.js → p-8c27aff7.entry.js} +1 -1
- package/dist/cobalt/{p-a7fa4484.entry.js → p-95d14878.entry.js} +1 -1
- package/dist/cobalt/{p-1d7da33f.entry.js → p-97c20011.entry.js} +1 -1
- package/dist/cobalt/p-996179f7.entry.js +1 -0
- package/dist/cobalt/p-9c533830.entry.js +1 -0
- package/dist/cobalt/p-9d89bf47.entry.js +1 -0
- package/dist/cobalt/p-BKmfyPZK.js +2 -0
- package/dist/cobalt/p-BchB6Hdr.js +1 -0
- package/dist/cobalt/p-C1DCLOEl.js +1 -0
- package/dist/cobalt/p-C2mZ7x_Y.js +1 -0
- package/dist/cobalt/p-CQY6Ul7q.js +1 -0
- package/dist/cobalt/p-CyYF8IJE.js +1 -0
- package/dist/cobalt/p-DcK0GGZC.js +2 -0
- package/dist/cobalt/p-DqyWGweA.js +1 -0
- package/dist/cobalt/p-Qqq8fysz.js +1 -0
- package/dist/cobalt/p-aa17c70b.entry.js +1 -0
- package/dist/cobalt/{p-416bb5ae.entry.js → p-aa63812a.entry.js} +1 -1
- package/dist/cobalt/p-ad4c1b41.entry.js +1 -0
- package/dist/cobalt/p-ae4d3207.entry.js +1 -0
- package/dist/cobalt/p-af64da37.entry.js +1 -0
- package/dist/cobalt/p-b758c2e6.entry.js +1 -0
- package/dist/cobalt/p-bb07da22.entry.js +1 -0
- package/dist/cobalt/p-beb9c11d.entry.js +1 -0
- package/dist/cobalt/p-c6a242e4.entry.js +1 -0
- package/dist/cobalt/p-c87285b6.entry.js +1 -0
- package/dist/cobalt/p-cd57e8b4.entry.js +1 -0
- package/dist/cobalt/{p-4ffba5a3.entry.js → p-ce3a535f.entry.js} +1 -1
- package/dist/cobalt/p-d17e1444.entry.js +1 -0
- package/dist/cobalt/p-d958566a.entry.js +1 -0
- package/dist/cobalt/p-dd873bf8.entry.js +1 -0
- package/dist/cobalt/p-def448e4.entry.js +1 -0
- package/dist/cobalt/p-e4de8865.entry.js +1 -0
- package/dist/cobalt/{p-3b2f7959.entry.js → p-e8b58332.entry.js} +1 -1
- package/dist/cobalt/p-eba0bf7f.entry.js +1 -0
- package/dist/cobalt/p-f0e8fa7d.entry.js +1 -0
- package/dist/cobalt/{p-e50c4c6f.entry.js → p-f2c5cb74.entry.js} +1 -1
- package/dist/cobalt/p-f8728b21.entry.js +1 -0
- package/dist/cobalt/{p-697df797.entry.js → p-f97ad9ad.entry.js} +1 -1
- package/dist/cobalt/p-fad3605d.entry.js +1 -0
- package/dist/cobalt/{p-319937c3.entry.js → p-fe9e85b6.entry.js} +1 -1
- package/dist/cobalt/p-ff2690e5.entry.js +1 -0
- package/dist/cobalt/p-ox7HzCZn.js +10 -0
- package/dist/collection/collection-manifest.json +17 -1
- package/dist/collection/components/co-accordion/co-accordion.css +19 -1
- package/dist/collection/components/co-accordion/co-accordion.js +46 -4
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +725 -7
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +88 -4
- package/dist/collection/components/co-avatar/co-avatar.css +7 -0
- package/dist/collection/components/co-avatar/co-avatar.js +35 -6
- package/dist/collection/components/co-button/co-button.css +8 -5
- package/dist/collection/components/co-button/co-button.js +46 -3
- package/dist/collection/components/co-calendar/co-calendar.css +236 -0
- package/dist/collection/components/co-calendar/co-calendar.js +728 -0
- package/dist/collection/components/co-card/co-card.css +28 -5
- package/dist/collection/components/co-card/co-card.js +47 -4
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +26 -0
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +25 -3
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +224 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +333 -0
- package/dist/collection/components/co-color-picker/presets.js +19 -0
- package/dist/collection/components/co-column-picker/co-column-picker.css +490 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +675 -0
- package/dist/collection/components/co-column-picker/column-picker-node.js +34 -0
- package/dist/collection/components/co-column-picker/utils/column-picker-tree.js +221 -0
- package/dist/collection/components/co-combobox/co-combobox.css +789 -22
- package/dist/collection/components/co-combobox/co-combobox.js +130 -15
- package/dist/collection/components/co-command-search/co-command-search.css +4 -0
- package/dist/collection/components/co-command-search/co-command-search.js +12 -5
- package/dist/collection/components/co-data-table/co-data-table.css +1 -1
- package/dist/collection/components/co-data-table/co-data-table.js +15 -3
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +239 -0
- package/dist/collection/components/co-date-field/co-date-field.js +746 -0
- package/dist/collection/components/co-date-picker/co-date-picker.css +112 -0
- package/dist/collection/components/co-date-picker/co-date-picker.js +801 -0
- package/dist/collection/components/co-date-range/co-date-range.css +3 -254
- package/dist/collection/components/co-date-range/co-date-range.js +29 -433
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +251 -0
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +1142 -0
- package/dist/collection/components/co-drawer/co-drawer.css +19 -0
- package/dist/collection/components/co-drawer/co-drawer.js +46 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +1 -1
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +389 -0
- package/dist/collection/components/co-file-field/co-file-field.js +841 -0
- package/dist/collection/components/co-file-field/co-file-field.utils.js +47 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +6 -3
- package/dist/collection/components/co-icon-button/co-icon-button.css +10 -0
- package/dist/collection/components/co-icon-button/co-icon-button.js +4 -4
- package/dist/collection/components/co-input/co-input.css +56 -10
- package/dist/collection/components/co-input/co-input.js +34 -9
- package/dist/collection/components/co-json-field/co-json-field.css +169 -0
- package/dist/collection/components/co-json-field/co-json-field.js +453 -0
- package/dist/collection/components/co-lightbox/co-lightbox.css +164 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +451 -0
- package/dist/collection/components/co-list-item/co-list-item.css +5 -0
- package/dist/collection/components/co-list-item/co-list-item.js +12 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-modal/co-modal.css +17 -3
- package/dist/collection/components/co-modal/co-modal.js +51 -1
- package/dist/collection/components/co-navbar/co-navbar.css +1 -1
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +70 -0
- package/dist/collection/components/co-number-field/co-number-field.js +143 -13
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +265 -0
- package/dist/collection/components/co-phone-field/co-phone-field.js +392 -0
- package/dist/collection/components/co-phone-field/dial-codes.js +208 -0
- package/dist/collection/components/co-popover/co-popover.css +1 -1
- package/dist/collection/components/co-popover/co-popover.js +2 -2
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.css +50 -0
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +148 -0
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +26 -0
- package/dist/collection/components/co-radio-group/co-radio-group.js +25 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +816 -54
- package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +238 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +868 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +55 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +289 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +232 -0
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +845 -7
- package/dist/collection/components/co-select/co-select.js +240 -17
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +29 -4
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +17 -0
- package/dist/collection/components/co-switch/co-switch.js +27 -4
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.js +1 -1
- package/dist/collection/components/co-tags-field/co-tags-field.css +272 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +590 -0
- package/dist/collection/components/co-textarea/co-textarea.css +261 -0
- package/dist/collection/components/co-textarea/co-textarea.js +484 -0
- package/dist/collection/components/co-toast/co-toast.js +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +6 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +25 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +16 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +9 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +683 -7
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +17 -4
- package/dist/collection/utils/dateI18n.js +101 -0
- package/dist/collection/utils/fileI18n.js +76 -0
- package/dist/collection/utils/icon-config.js +22 -0
- package/dist/collection/utils/lightboxI18n.js +42 -0
- package/dist/collection/utils/normalizeText.js +94 -0
- package/dist/collection/utils/overlayScroll.js +20 -0
- package/dist/collection/utils/positioning.js +40 -25
- package/dist/collection/utils/requiredMark.js +11 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar.d.ts +11 -0
- package/dist/components/co-calendar.js +1 -0
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-picker.d.ts +11 -0
- package/dist/components/co-color-picker.js +1 -0
- package/dist/components/co-column-picker.d.ts +11 -0
- package/dist/components/co-column-picker.js +1 -0
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.d.ts +11 -0
- package/dist/components/co-date-field.js +1 -0
- package/dist/components/co-date-picker.d.ts +11 -0
- package/dist/components/co-date-picker.js +1 -0
- package/dist/components/co-date-range-picker.d.ts +11 -0
- package/dist/components/co-date-range-picker.js +1 -0
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.d.ts +11 -0
- package/dist/components/co-file-field.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.d.ts +11 -0
- package/dist/components/co-json-field.js +1 -0
- package/dist/components/co-lightbox.d.ts +11 -0
- package/dist/components/co-lightbox.js +1 -0
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.d.ts +11 -0
- package/dist/components/co-phone-field.js +1 -0
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.d.ts +11 -0
- package/dist/components/co-progress-circle.js +1 -0
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.d.ts +11 -0
- package/dist/components/co-rich-text-editor.js +1 -0
- package/dist/components/co-rich-text-toolbar.d.ts +11 -0
- package/dist/components/co-rich-text-toolbar.js +1 -0
- package/dist/components/co-rich-text-viewer.d.ts +11 -0
- package/dist/components/co-rich-text-viewer.js +1 -0
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.d.ts +11 -0
- package/dist/components/co-tags-field.js +1 -0
- package/dist/components/co-textarea.d.ts +11 -0
- package/dist/components/co-textarea.js +1 -0
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Dv_iMPy0.js → p-BXdfh__-.js} +1 -1
- package/dist/components/p-BchB6Hdr.js +1 -0
- package/dist/components/p-BeWXpX8I.js +1 -0
- package/dist/components/p-BiW0ubLs.js +1 -0
- package/dist/components/p-C1DCLOEl.js +1 -0
- package/dist/components/p-C2mZ7x_Y.js +1 -0
- package/dist/components/p-C9tHLXKS.js +1 -0
- package/dist/components/p-CQY6Ul7q.js +1 -0
- package/dist/components/p-CWneqh4n.js +1 -0
- package/dist/components/{p-B18FTYLq.js → p-CaMgu2_g.js} +1 -1
- package/dist/components/p-CyYF8IJE.js +1 -0
- package/dist/components/p-DBhNS7JD.js +1 -0
- package/dist/components/p-DObrQi5F.js +1 -0
- package/dist/components/p-DPi_U-Kl.js +1 -0
- package/dist/components/p-DcK0GGZC.js +2 -0
- package/dist/components/p-DqyWGweA.js +1 -0
- package/dist/components/{p-cpdUXBiS.js → p-MiSJXuBx.js} +1 -1
- package/dist/components/p-Sgn-2g8m.js +1 -0
- package/dist/components/{p-Cr8Yc0zj.js → p-jDjfGZJp.js} +1 -1
- package/dist/components/p-o8hrDIKe.js +1 -0
- package/dist/components/p-ox7HzCZn.js +10 -0
- package/dist/esm/co-accordion.entry.js +19 -4
- package/dist/esm/co-app-shell.entry.js +1 -1
- package/dist/esm/co-autocomplete.entry.js +51 -6
- package/dist/esm/co-avatar.entry.js +39 -6
- package/dist/esm/co-badge.entry.js +1 -1
- package/dist/esm/co-button-group.entry.js +1 -1
- package/dist/esm/co-button.entry.js +10 -5
- package/dist/esm/co-calendar_3.entry.js +688 -0
- package/dist/esm/co-card.entry.js +21 -4
- package/dist/esm/co-checkbox-group.entry.js +7 -5
- package/dist/esm/co-checkbox.entry.js +4 -4
- package/dist/esm/co-chip.entry.js +3 -3
- package/dist/esm/co-color-picker.entry.js +107 -0
- package/dist/esm/co-column-picker.entry.js +441 -0
- package/dist/esm/co-combobox.entry.js +51 -15
- package/dist/esm/co-command-search.entry.js +14 -7
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +17 -5
- package/dist/esm/co-date-picker.entry.js +175 -0
- package/dist/esm/co-date-range-picker.entry.js +376 -0
- package/dist/esm/co-date-range.entry.js +13 -259
- package/dist/esm/co-empty-state.entry.js +2 -2
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +496 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +4 -4
- package/dist/esm/co-icon.entry.js +7 -4
- package/dist/esm/co-input.entry.js +13 -8
- package/dist/esm/co-json-field.entry.js +107 -0
- package/dist/esm/co-lightbox.entry.js +342 -0
- package/dist/esm/co-list-item.entry.js +14 -4
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +13 -3
- package/dist/esm/co-navbar.entry.js +4 -4
- package/dist/esm/co-number-field.entry.js +47 -11
- package/dist/esm/co-overlay.entry.js +2 -2
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +374 -0
- package/dist/esm/co-popover.entry.js +5 -5
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +36 -0
- package/dist/esm/co-radio-group.entry.js +7 -5
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +191 -21
- package/dist/esm/co-rich-text-editor.entry.js +233 -0
- package/dist/esm/co-rich-text-toolbar.entry.js +182 -0
- package/dist/esm/co-rich-text-viewer.entry.js +80 -0
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-select.entry.js +119 -18
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +30 -5
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +9 -6
- package/dist/esm/co-tab-group.entry.js +2 -2
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +203 -0
- package/dist/esm/co-textarea.entry.js +90 -0
- package/dist/esm/co-toast.entry.js +2 -2
- package/dist/esm/co-toggle-button-group.entry.js +7 -4
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/co-tooltip.entry.js +12 -6
- package/dist/esm/co-transfer-list.entry.js +20 -6
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/dateI18n-C1DCLOEl.js +103 -0
- package/dist/esm/dates-CyYF8IJE.js +416 -0
- package/dist/esm/{index-B0lqrhFo.js → index-BKmfyPZK.js} +79 -11
- package/dist/esm/index-BjAqSidM.js +27200 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/normalizeText-CQY6Ul7q.js +92 -0
- package/dist/esm/overlayScroll-Bpv882_z.js +23 -0
- package/dist/esm/overlayscrollbars-ox7HzCZn.js +2840 -0
- package/dist/esm/{positioning-Am-OlB8h.js → positioning-C2mZ7x_Y.js} +40 -25
- package/dist/esm/requiredMark-DFvtYtkE.js +14 -0
- package/dist/esm/sanitizer-DcK0GGZC.js +1880 -0
- package/dist/types/components/co-accordion/co-accordion.d.ts +12 -2
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +11 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +6 -2
- package/dist/types/components/co-button/co-button.d.ts +4 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +108 -0
- package/dist/types/components/co-card/co-card.d.ts +10 -2
- package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +2 -0
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +48 -0
- package/dist/types/components/co-color-picker/presets.d.ts +10 -0
- package/dist/types/components/co-column-picker/co-column-picker.d.ts +60 -0
- package/dist/types/components/co-column-picker/column-picker-node.d.ts +18 -0
- package/dist/types/components/co-column-picker/utils/column-picker-tree.d.ts +37 -0
- package/dist/types/components/co-combobox/co-combobox.d.ts +14 -1
- package/dist/types/components/co-command-search/co-command-search.d.ts +2 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +1 -0
- package/dist/types/components/co-date-field/co-date-field.d.ts +96 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +92 -0
- package/dist/types/components/co-date-range/co-date-range.d.ts +12 -50
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +112 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +4 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +146 -0
- package/dist/types/components/co-file-field/co-file-field.utils.d.ts +18 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +1 -1
- package/dist/types/components/co-input/co-input.d.ts +4 -1
- package/dist/types/components/co-json-field/co-json-field.d.ts +66 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +95 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +1 -0
- package/dist/types/components/co-modal/co-modal.d.ts +4 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +16 -2
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +56 -0
- package/dist/types/components/co-phone-field/dial-codes.d.ts +14 -0
- package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +16 -0
- package/dist/types/components/co-radio-group/co-radio-group.d.ts +2 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +54 -1
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +94 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +42 -0
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +32 -0
- package/dist/types/components/co-select/co-select.d.ts +31 -1
- package/dist/types/components/co-switch/co-switch.d.ts +2 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +82 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +65 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +2 -0
- package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +4 -0
- package/dist/types/components.d.ts +3796 -422
- package/dist/types/utils/dateI18n.d.ts +39 -0
- package/dist/types/utils/fileI18n.d.ts +34 -0
- package/dist/types/utils/icon-config.d.ts +20 -0
- package/dist/types/utils/lightboxI18n.d.ts +12 -0
- package/dist/types/utils/normalizeText.d.ts +41 -0
- package/dist/types/utils/overlayScroll.d.ts +17 -0
- package/dist/types/utils/positioning.d.ts +7 -14
- package/dist/types/utils/requiredMark.d.ts +13 -0
- package/package.json +9 -1
- package/dist/cjs/co-drawer.cjs.entry.js +0 -75
- package/dist/cjs/color-YhUkm10t.js +0 -32
- package/dist/cobalt/p-08afdc51.entry.js +0 -1
- package/dist/cobalt/p-1d3338b6.entry.js +0 -1
- package/dist/cobalt/p-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-4ce98a64.entry.js +0 -1
- package/dist/cobalt/p-4dd7499c.entry.js +0 -1
- package/dist/cobalt/p-4e7ce8ee.entry.js +0 -1
- package/dist/cobalt/p-6793c51e.entry.js +0 -1
- package/dist/cobalt/p-689e38b3.entry.js +0 -1
- package/dist/cobalt/p-7028880b.entry.js +0 -1
- package/dist/cobalt/p-72113ec2.entry.js +0 -1
- package/dist/cobalt/p-8e54e74d.entry.js +0 -1
- package/dist/cobalt/p-92c39eed.entry.js +0 -1
- package/dist/cobalt/p-9887b828.entry.js +0 -1
- package/dist/cobalt/p-9a5c6600.entry.js +0 -1
- package/dist/cobalt/p-Am-OlB8h.js +0 -1
- package/dist/cobalt/p-B0lqrhFo.js +0 -2
- package/dist/cobalt/p-BG4WRR22.js +0 -1
- package/dist/cobalt/p-a1b248ad.entry.js +0 -1
- package/dist/cobalt/p-a470b764.entry.js +0 -1
- package/dist/cobalt/p-a477d23a.entry.js +0 -1
- package/dist/cobalt/p-a4d55b1a.entry.js +0 -1
- package/dist/cobalt/p-b6840df4.entry.js +0 -1
- package/dist/cobalt/p-b89d54d9.entry.js +0 -1
- package/dist/cobalt/p-ba84631a.entry.js +0 -1
- package/dist/cobalt/p-c7517f86.entry.js +0 -1
- package/dist/cobalt/p-ca41eec2.entry.js +0 -1
- package/dist/cobalt/p-d29c77cb.entry.js +0 -1
- package/dist/cobalt/p-d9d8b10e.entry.js +0 -1
- package/dist/cobalt/p-da55678f.entry.js +0 -1
- package/dist/cobalt/p-dc5598d1.entry.js +0 -1
- package/dist/cobalt/p-e2c9cb00.entry.js +0 -1
- package/dist/cobalt/p-ebd68f56.entry.js +0 -1
- package/dist/cobalt/p-f051f44d.entry.js +0 -1
- package/dist/cobalt/p-fe1447a3.entry.js +0 -1
- package/dist/components/p-Am-OlB8h.js +0 -1
- package/dist/components/p-BG4WRR22.js +0 -1
- package/dist/components/p-wwWquAtm.js +0 -1
- package/dist/esm/co-drawer.entry.js +0 -73
- package/dist/esm/color-BG4WRR22.js +0 -30
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { RequiredMark } from "../../utils/requiredMark";
|
|
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 class CoRichTextEditor {
|
|
17
|
+
constructor() {
|
|
18
|
+
/** ProseMirror document as a JSON string. `null`/empty = empty editor. */
|
|
19
|
+
this.value = null;
|
|
20
|
+
/** Preset controlling allowed nodes/marks, toolbar and sanitization. */
|
|
21
|
+
this.preset = 'task';
|
|
22
|
+
this.placeholder = '';
|
|
23
|
+
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
24
|
+
this.layout = 'vertical';
|
|
25
|
+
this.status = 'default';
|
|
26
|
+
this.disabled = false;
|
|
27
|
+
this.readonly = false;
|
|
28
|
+
this.required = false;
|
|
29
|
+
this.showCharacterCount = false;
|
|
30
|
+
this.autofocus = false;
|
|
31
|
+
/** Toolbar layout. `auto` uses the preset default. */
|
|
32
|
+
this.toolbar = 'auto';
|
|
33
|
+
this.ready = false;
|
|
34
|
+
this.hasFocus = false;
|
|
35
|
+
this.charCount = 0;
|
|
36
|
+
/** Last value we emitted — guards the value Watch against feedback loops. */
|
|
37
|
+
this.lastEmitted = null;
|
|
38
|
+
/** True while applying an external value (suppresses emit). */
|
|
39
|
+
this.applyingExternal = false;
|
|
40
|
+
/** Set by disconnectedCallback — aborts editor creation if the element was
|
|
41
|
+
* removed while the lazy import was still in flight (ProseMirror leak). */
|
|
42
|
+
this.destroyed = false;
|
|
43
|
+
this.handleUpdate = (editor) => {
|
|
44
|
+
this.refreshCharCount();
|
|
45
|
+
if (this.applyingExternal)
|
|
46
|
+
return;
|
|
47
|
+
const out = this.buildOutput(editor);
|
|
48
|
+
const next = out.json ? JSON.stringify(out.json) : null;
|
|
49
|
+
this.lastEmitted = next;
|
|
50
|
+
this.value = next;
|
|
51
|
+
this.coInput.emit(out);
|
|
52
|
+
};
|
|
53
|
+
this.handleFocus = () => {
|
|
54
|
+
this.hasFocus = true;
|
|
55
|
+
this.coFocus.emit();
|
|
56
|
+
};
|
|
57
|
+
this.handleBlur = () => {
|
|
58
|
+
this.hasFocus = false;
|
|
59
|
+
if (this.editor)
|
|
60
|
+
this.coChange.emit(this.buildOutput(this.editor));
|
|
61
|
+
this.coBlur.emit();
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
async componentDidLoad() {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
this.rt = await import('@prolibu-suite/cobalt-rich-text');
|
|
67
|
+
if (this.destroyed || !this.contentEl)
|
|
68
|
+
return;
|
|
69
|
+
this.editor = this.rt.createEditor({
|
|
70
|
+
preset: this.preset,
|
|
71
|
+
element: this.contentEl,
|
|
72
|
+
content: this.parseValue(this.value),
|
|
73
|
+
editable: !this.disabled && !this.readonly,
|
|
74
|
+
placeholder: this.placeholder,
|
|
75
|
+
maxLength: this.maxLength,
|
|
76
|
+
features: this.parsedFeatures,
|
|
77
|
+
customExtensions: (_a = this.customExtensions) !== null && _a !== void 0 ? _a : [],
|
|
78
|
+
imageUpload: this.imageUpload,
|
|
79
|
+
onUpdate: (editor) => this.handleUpdate(editor),
|
|
80
|
+
onFocus: () => this.handleFocus(),
|
|
81
|
+
onBlur: () => this.handleBlur(),
|
|
82
|
+
});
|
|
83
|
+
this.lastEmitted = (_b = this.value) !== null && _b !== void 0 ? _b : null;
|
|
84
|
+
this.ready = true;
|
|
85
|
+
this.refreshCharCount();
|
|
86
|
+
this.syncToolbar();
|
|
87
|
+
this.coReady.emit();
|
|
88
|
+
if (this.autofocus)
|
|
89
|
+
this.editor.commands.focus();
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
92
|
+
var _a;
|
|
93
|
+
this.destroyed = true;
|
|
94
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
95
|
+
this.editor = undefined;
|
|
96
|
+
}
|
|
97
|
+
componentDidRender() {
|
|
98
|
+
this.syncToolbar();
|
|
99
|
+
}
|
|
100
|
+
onValueChange(next) {
|
|
101
|
+
if (!this.editor || this.applyingExternal)
|
|
102
|
+
return;
|
|
103
|
+
if ((next !== null && next !== void 0 ? next : null) === this.lastEmitted)
|
|
104
|
+
return;
|
|
105
|
+
this.applyingExternal = true;
|
|
106
|
+
try {
|
|
107
|
+
this.editor.commands.setContent(this.parseValue(next), { emitUpdate: false });
|
|
108
|
+
}
|
|
109
|
+
finally {
|
|
110
|
+
this.applyingExternal = false;
|
|
111
|
+
this.lastEmitted = next !== null && next !== void 0 ? next : null;
|
|
112
|
+
this.refreshCharCount();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
onEditableChange() {
|
|
116
|
+
var _a;
|
|
117
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.setEditable(!this.disabled && !this.readonly);
|
|
118
|
+
}
|
|
119
|
+
/* ── Public methods (escape hatches + imperative control) ── */
|
|
120
|
+
async getJSON() {
|
|
121
|
+
return this.editor && !this.editor.isEmpty ? this.editor.getJSON() : null;
|
|
122
|
+
}
|
|
123
|
+
async getHtml() {
|
|
124
|
+
return this.editor ? this.sanitizeHtml(this.editor.getHTML()) : '';
|
|
125
|
+
}
|
|
126
|
+
async getText() {
|
|
127
|
+
var _a, _b;
|
|
128
|
+
return (_b = (_a = this.editor) === null || _a === void 0 ? void 0 : _a.getText()) !== null && _b !== void 0 ? _b : '';
|
|
129
|
+
}
|
|
130
|
+
async clear() {
|
|
131
|
+
if (!this.editor)
|
|
132
|
+
return;
|
|
133
|
+
this.editor.commands.clearContent(true);
|
|
134
|
+
this.coClear.emit();
|
|
135
|
+
}
|
|
136
|
+
async focusEditor() {
|
|
137
|
+
var _a;
|
|
138
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.focus();
|
|
139
|
+
}
|
|
140
|
+
async setContent(content) {
|
|
141
|
+
var _a;
|
|
142
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setContent(content);
|
|
143
|
+
}
|
|
144
|
+
async getEditorInstance() {
|
|
145
|
+
var _a;
|
|
146
|
+
return (_a = this.editor) !== null && _a !== void 0 ? _a : null;
|
|
147
|
+
}
|
|
148
|
+
/* ── internals ── */
|
|
149
|
+
get parsedFeatures() {
|
|
150
|
+
if (!this.features)
|
|
151
|
+
return undefined;
|
|
152
|
+
if (typeof this.features === 'string') {
|
|
153
|
+
try {
|
|
154
|
+
return JSON.parse(this.features);
|
|
155
|
+
}
|
|
156
|
+
catch (_a) {
|
|
157
|
+
return undefined;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return this.features;
|
|
161
|
+
}
|
|
162
|
+
parseValue(v) {
|
|
163
|
+
if (!v)
|
|
164
|
+
return '';
|
|
165
|
+
try {
|
|
166
|
+
return JSON.parse(v);
|
|
167
|
+
}
|
|
168
|
+
catch (_a) {
|
|
169
|
+
return v; // tolerate an HTML string
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
sanitizeHtml(html) {
|
|
173
|
+
// Same features as the schema — otherwise feature-enabled nodes (images,
|
|
174
|
+
// variables) would survive in `json` but be stripped from `html`.
|
|
175
|
+
return this.rt ? this.rt.sanitize(html, this.preset, this.parsedFeatures) : html;
|
|
176
|
+
}
|
|
177
|
+
buildOutput(editor) {
|
|
178
|
+
const empty = editor.isEmpty;
|
|
179
|
+
return {
|
|
180
|
+
json: empty ? null : editor.getJSON(),
|
|
181
|
+
html: empty ? '' : this.sanitizeHtml(editor.getHTML()),
|
|
182
|
+
text: editor.getText(),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
refreshCharCount() {
|
|
186
|
+
var _a;
|
|
187
|
+
const storage = (_a = this.editor) === null || _a === void 0 ? void 0 : _a.storage;
|
|
188
|
+
if (storage === null || storage === void 0 ? void 0 : storage.characterCount)
|
|
189
|
+
this.charCount = storage.characterCount.characters();
|
|
190
|
+
}
|
|
191
|
+
syncToolbar() {
|
|
192
|
+
if (this.toolbarEl && this.editor && this.toolbarEl.editor !== this.editor) {
|
|
193
|
+
this.toolbarEl.editor = this.editor;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
get resolvedToolbar() {
|
|
197
|
+
if (this.toolbar !== 'auto')
|
|
198
|
+
return this.toolbar;
|
|
199
|
+
return this.rt ? this.rt.defaultToolbarForPreset(this.preset) : 'basic';
|
|
200
|
+
}
|
|
201
|
+
get helperIcon() {
|
|
202
|
+
switch (this.status) {
|
|
203
|
+
case 'error': return 'warning-circle';
|
|
204
|
+
case 'success': return 'check-circle';
|
|
205
|
+
case 'warning': return 'warning-circle';
|
|
206
|
+
default: return 'info';
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
render() {
|
|
210
|
+
const showToolbar = this.resolvedToolbar !== 'none' && !this.readonly && !this.disabled;
|
|
211
|
+
const showCount = this.showCharacterCount || this.maxLength != null;
|
|
212
|
+
return (h("div", { key: 'c853d865716114025949e33e011394d824e4a961', class: {
|
|
213
|
+
'co-rich-text-editor': true,
|
|
214
|
+
'co-rich-text-editor--focused': this.hasFocus,
|
|
215
|
+
'co-rich-text-editor--disabled': this.disabled,
|
|
216
|
+
'co-rich-text-editor--readonly': this.readonly,
|
|
217
|
+
'co-rich-text-editor--loading': !this.ready,
|
|
218
|
+
[`co-rich-text-editor--${this.status}`]: this.status !== 'default',
|
|
219
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '049a14875b801e745c91f28410474d8139a366e6', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: '4221652dd84a86192d84ba8889eafbd311ac27dd', class: "co-rich-text-editor__label", part: "label" }, this.label, h(RequiredMark, { key: '6576f8bdd8c744f6f4fd2990e3c3b58806a03bd4', required: this.required })), this.secondaryLabel && (h("span", { key: '5c28820cf466f06900ae3981b780f6664a14ca08', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: '94557b815f4dd9bfd33f2d4ae613554a54a391ad', class: "co-rich-text-editor__box" }, showToolbar && (h("co-rich-text-toolbar", { key: '7727dc54776263c3ef56f274e09d7d851df245d8', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, disabled: this.disabled || this.readonly, ref: (el) => (this.toolbarEl = el) })), h("div", { key: 'd81af8d3887e1f77062eb64efe02cda157f77216', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) })), h("div", { key: 'f747db5469b5a805e88101cb7670432dc114c30f', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: '80c703179448310e86a16e908cc29edfc73260ba', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: '7411c41c32e7c1845983df2608f604f764585230', name: this.helperIcon, size: 14 }), h("span", { key: 'be108ca9544684e2d6d0dbf68eca65d11f3c841b' }, this.helperText))), showCount && (h("span", { key: '5c88aeb55460778024664510a58ca9d331ef10c7', class: "co-rich-text-editor__count" }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
|
|
220
|
+
}
|
|
221
|
+
static get is() { return "co-rich-text-editor"; }
|
|
222
|
+
static get originalStyleUrls() {
|
|
223
|
+
return {
|
|
224
|
+
"$": ["co-rich-text-editor.css"]
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
static get styleUrls() {
|
|
228
|
+
return {
|
|
229
|
+
"$": ["co-rich-text-editor.css"]
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
static get properties() {
|
|
233
|
+
return {
|
|
234
|
+
"value": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"mutable": true,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "string | null",
|
|
239
|
+
"resolved": "null | string",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": "ProseMirror document as a JSON string. `null`/empty = empty editor."
|
|
247
|
+
},
|
|
248
|
+
"getter": false,
|
|
249
|
+
"setter": false,
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"attribute": "value",
|
|
252
|
+
"defaultValue": "null"
|
|
253
|
+
},
|
|
254
|
+
"preset": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "RichTextPreset",
|
|
259
|
+
"resolved": "\"comment\" | \"document\" | \"email\" | \"task\"",
|
|
260
|
+
"references": {
|
|
261
|
+
"RichTextPreset": {
|
|
262
|
+
"location": "import",
|
|
263
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
264
|
+
"id": "../rich-text/dist/index.d.ts::RichTextPreset",
|
|
265
|
+
"referenceLocation": "RichTextPreset"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "Preset controlling allowed nodes/marks, toolbar and sanitization."
|
|
274
|
+
},
|
|
275
|
+
"getter": false,
|
|
276
|
+
"setter": false,
|
|
277
|
+
"reflect": false,
|
|
278
|
+
"attribute": "preset",
|
|
279
|
+
"defaultValue": "'task'"
|
|
280
|
+
},
|
|
281
|
+
"placeholder": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"mutable": false,
|
|
284
|
+
"complexType": {
|
|
285
|
+
"original": "string",
|
|
286
|
+
"resolved": "string",
|
|
287
|
+
"references": {}
|
|
288
|
+
},
|
|
289
|
+
"required": false,
|
|
290
|
+
"optional": false,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": ""
|
|
294
|
+
},
|
|
295
|
+
"getter": false,
|
|
296
|
+
"setter": false,
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"attribute": "placeholder",
|
|
299
|
+
"defaultValue": "''"
|
|
300
|
+
},
|
|
301
|
+
"label": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"mutable": false,
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "string",
|
|
306
|
+
"resolved": "string | undefined",
|
|
307
|
+
"references": {}
|
|
308
|
+
},
|
|
309
|
+
"required": false,
|
|
310
|
+
"optional": true,
|
|
311
|
+
"docs": {
|
|
312
|
+
"tags": [],
|
|
313
|
+
"text": ""
|
|
314
|
+
},
|
|
315
|
+
"getter": false,
|
|
316
|
+
"setter": false,
|
|
317
|
+
"reflect": false,
|
|
318
|
+
"attribute": "label"
|
|
319
|
+
},
|
|
320
|
+
"secondaryLabel": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": false,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "string",
|
|
325
|
+
"resolved": "string | undefined",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": true,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": ""
|
|
333
|
+
},
|
|
334
|
+
"getter": false,
|
|
335
|
+
"setter": false,
|
|
336
|
+
"reflect": false,
|
|
337
|
+
"attribute": "secondary-label"
|
|
338
|
+
},
|
|
339
|
+
"helperText": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"mutable": false,
|
|
342
|
+
"complexType": {
|
|
343
|
+
"original": "string",
|
|
344
|
+
"resolved": "string | undefined",
|
|
345
|
+
"references": {}
|
|
346
|
+
},
|
|
347
|
+
"required": false,
|
|
348
|
+
"optional": true,
|
|
349
|
+
"docs": {
|
|
350
|
+
"tags": [],
|
|
351
|
+
"text": ""
|
|
352
|
+
},
|
|
353
|
+
"getter": false,
|
|
354
|
+
"setter": false,
|
|
355
|
+
"reflect": false,
|
|
356
|
+
"attribute": "helper-text"
|
|
357
|
+
},
|
|
358
|
+
"layout": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "'vertical' | 'horizontal'",
|
|
363
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": false,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": "Label layout: vertical (label above) or horizontal (label beside)"
|
|
371
|
+
},
|
|
372
|
+
"getter": false,
|
|
373
|
+
"setter": false,
|
|
374
|
+
"reflect": true,
|
|
375
|
+
"attribute": "layout",
|
|
376
|
+
"defaultValue": "'vertical'"
|
|
377
|
+
},
|
|
378
|
+
"status": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"mutable": false,
|
|
381
|
+
"complexType": {
|
|
382
|
+
"original": "'default' | 'error' | 'success' | 'warning' | 'info'",
|
|
383
|
+
"resolved": "\"default\" | \"error\" | \"info\" | \"success\" | \"warning\"",
|
|
384
|
+
"references": {}
|
|
385
|
+
},
|
|
386
|
+
"required": false,
|
|
387
|
+
"optional": false,
|
|
388
|
+
"docs": {
|
|
389
|
+
"tags": [],
|
|
390
|
+
"text": ""
|
|
391
|
+
},
|
|
392
|
+
"getter": false,
|
|
393
|
+
"setter": false,
|
|
394
|
+
"reflect": false,
|
|
395
|
+
"attribute": "status",
|
|
396
|
+
"defaultValue": "'default'"
|
|
397
|
+
},
|
|
398
|
+
"disabled": {
|
|
399
|
+
"type": "boolean",
|
|
400
|
+
"mutable": false,
|
|
401
|
+
"complexType": {
|
|
402
|
+
"original": "boolean",
|
|
403
|
+
"resolved": "boolean",
|
|
404
|
+
"references": {}
|
|
405
|
+
},
|
|
406
|
+
"required": false,
|
|
407
|
+
"optional": false,
|
|
408
|
+
"docs": {
|
|
409
|
+
"tags": [],
|
|
410
|
+
"text": ""
|
|
411
|
+
},
|
|
412
|
+
"getter": false,
|
|
413
|
+
"setter": false,
|
|
414
|
+
"reflect": false,
|
|
415
|
+
"attribute": "disabled",
|
|
416
|
+
"defaultValue": "false"
|
|
417
|
+
},
|
|
418
|
+
"readonly": {
|
|
419
|
+
"type": "boolean",
|
|
420
|
+
"mutable": false,
|
|
421
|
+
"complexType": {
|
|
422
|
+
"original": "boolean",
|
|
423
|
+
"resolved": "boolean",
|
|
424
|
+
"references": {}
|
|
425
|
+
},
|
|
426
|
+
"required": false,
|
|
427
|
+
"optional": false,
|
|
428
|
+
"docs": {
|
|
429
|
+
"tags": [],
|
|
430
|
+
"text": ""
|
|
431
|
+
},
|
|
432
|
+
"getter": false,
|
|
433
|
+
"setter": false,
|
|
434
|
+
"reflect": false,
|
|
435
|
+
"attribute": "readonly",
|
|
436
|
+
"defaultValue": "false"
|
|
437
|
+
},
|
|
438
|
+
"required": {
|
|
439
|
+
"type": "boolean",
|
|
440
|
+
"mutable": false,
|
|
441
|
+
"complexType": {
|
|
442
|
+
"original": "boolean",
|
|
443
|
+
"resolved": "boolean",
|
|
444
|
+
"references": {}
|
|
445
|
+
},
|
|
446
|
+
"required": false,
|
|
447
|
+
"optional": false,
|
|
448
|
+
"docs": {
|
|
449
|
+
"tags": [],
|
|
450
|
+
"text": ""
|
|
451
|
+
},
|
|
452
|
+
"getter": false,
|
|
453
|
+
"setter": false,
|
|
454
|
+
"reflect": false,
|
|
455
|
+
"attribute": "required",
|
|
456
|
+
"defaultValue": "false"
|
|
457
|
+
},
|
|
458
|
+
"maxLength": {
|
|
459
|
+
"type": "number",
|
|
460
|
+
"mutable": false,
|
|
461
|
+
"complexType": {
|
|
462
|
+
"original": "number",
|
|
463
|
+
"resolved": "number | undefined",
|
|
464
|
+
"references": {}
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"optional": true,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [],
|
|
470
|
+
"text": ""
|
|
471
|
+
},
|
|
472
|
+
"getter": false,
|
|
473
|
+
"setter": false,
|
|
474
|
+
"reflect": false,
|
|
475
|
+
"attribute": "max-length"
|
|
476
|
+
},
|
|
477
|
+
"showCharacterCount": {
|
|
478
|
+
"type": "boolean",
|
|
479
|
+
"mutable": false,
|
|
480
|
+
"complexType": {
|
|
481
|
+
"original": "boolean",
|
|
482
|
+
"resolved": "boolean",
|
|
483
|
+
"references": {}
|
|
484
|
+
},
|
|
485
|
+
"required": false,
|
|
486
|
+
"optional": false,
|
|
487
|
+
"docs": {
|
|
488
|
+
"tags": [],
|
|
489
|
+
"text": ""
|
|
490
|
+
},
|
|
491
|
+
"getter": false,
|
|
492
|
+
"setter": false,
|
|
493
|
+
"reflect": false,
|
|
494
|
+
"attribute": "show-character-count",
|
|
495
|
+
"defaultValue": "false"
|
|
496
|
+
},
|
|
497
|
+
"autofocus": {
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "boolean",
|
|
502
|
+
"resolved": "boolean",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": ""
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false,
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"attribute": "autofocus",
|
|
515
|
+
"defaultValue": "false"
|
|
516
|
+
},
|
|
517
|
+
"toolbar": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"mutable": false,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "ToolbarVariant",
|
|
522
|
+
"resolved": "\"auto\" | \"basic\" | \"compact\" | \"full\" | \"none\"",
|
|
523
|
+
"references": {
|
|
524
|
+
"ToolbarVariant": {
|
|
525
|
+
"location": "import",
|
|
526
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
527
|
+
"id": "../rich-text/dist/index.d.ts::ToolbarVariant",
|
|
528
|
+
"referenceLocation": "ToolbarVariant"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"required": false,
|
|
533
|
+
"optional": false,
|
|
534
|
+
"docs": {
|
|
535
|
+
"tags": [],
|
|
536
|
+
"text": "Toolbar layout. `auto` uses the preset default."
|
|
537
|
+
},
|
|
538
|
+
"getter": false,
|
|
539
|
+
"setter": false,
|
|
540
|
+
"reflect": false,
|
|
541
|
+
"attribute": "toolbar",
|
|
542
|
+
"defaultValue": "'auto'"
|
|
543
|
+
},
|
|
544
|
+
"features": {
|
|
545
|
+
"type": "string",
|
|
546
|
+
"mutable": false,
|
|
547
|
+
"complexType": {
|
|
548
|
+
"original": "string | object",
|
|
549
|
+
"resolved": "object | string | undefined",
|
|
550
|
+
"references": {}
|
|
551
|
+
},
|
|
552
|
+
"required": false,
|
|
553
|
+
"optional": true,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": "Feature overrides (JSON string for HTML attr, or object via JS property)."
|
|
557
|
+
},
|
|
558
|
+
"getter": false,
|
|
559
|
+
"setter": false,
|
|
560
|
+
"reflect": false,
|
|
561
|
+
"attribute": "features"
|
|
562
|
+
},
|
|
563
|
+
"customExtensions": {
|
|
564
|
+
"type": "unknown",
|
|
565
|
+
"mutable": false,
|
|
566
|
+
"complexType": {
|
|
567
|
+
"original": "object[]",
|
|
568
|
+
"resolved": "object[] | undefined",
|
|
569
|
+
"references": {}
|
|
570
|
+
},
|
|
571
|
+
"required": false,
|
|
572
|
+
"optional": true,
|
|
573
|
+
"docs": {
|
|
574
|
+
"tags": [],
|
|
575
|
+
"text": "Extra Tiptap extensions appended to the preset (JS property only).\nRegistered at editor creation \u2014 required for new schema nodes (images,\ntables, embeds, \u2026) that `getEditorInstance()` cannot add afterwards."
|
|
576
|
+
},
|
|
577
|
+
"getter": false,
|
|
578
|
+
"setter": false
|
|
579
|
+
},
|
|
580
|
+
"imageUpload": {
|
|
581
|
+
"type": "unknown",
|
|
582
|
+
"mutable": false,
|
|
583
|
+
"complexType": {
|
|
584
|
+
"original": "(file: File) => Promise<string>",
|
|
585
|
+
"resolved": "((file: File) => Promise<string>) | undefined",
|
|
586
|
+
"references": {
|
|
587
|
+
"File": {
|
|
588
|
+
"location": "global",
|
|
589
|
+
"id": "global::File"
|
|
590
|
+
},
|
|
591
|
+
"Promise": {
|
|
592
|
+
"location": "global",
|
|
593
|
+
"id": "global::Promise"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": true,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [],
|
|
601
|
+
"text": "Host image upload handler (JS property): `(file) => Promise<url>`."
|
|
602
|
+
},
|
|
603
|
+
"getter": false,
|
|
604
|
+
"setter": false
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
static get states() {
|
|
609
|
+
return {
|
|
610
|
+
"ready": {},
|
|
611
|
+
"hasFocus": {},
|
|
612
|
+
"charCount": {}
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
static get events() {
|
|
616
|
+
return [{
|
|
617
|
+
"method": "coInput",
|
|
618
|
+
"name": "coInput",
|
|
619
|
+
"bubbles": true,
|
|
620
|
+
"cancelable": true,
|
|
621
|
+
"composed": true,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [],
|
|
624
|
+
"text": "Emitted on every keystroke."
|
|
625
|
+
},
|
|
626
|
+
"complexType": {
|
|
627
|
+
"original": "RichTextOutput",
|
|
628
|
+
"resolved": "RichTextOutput",
|
|
629
|
+
"references": {
|
|
630
|
+
"RichTextOutput": {
|
|
631
|
+
"location": "import",
|
|
632
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
633
|
+
"id": "../rich-text/dist/index.d.ts::RichTextOutput",
|
|
634
|
+
"referenceLocation": "RichTextOutput"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}, {
|
|
639
|
+
"method": "coChange",
|
|
640
|
+
"name": "coChange",
|
|
641
|
+
"bubbles": true,
|
|
642
|
+
"cancelable": true,
|
|
643
|
+
"composed": true,
|
|
644
|
+
"docs": {
|
|
645
|
+
"tags": [],
|
|
646
|
+
"text": "Emitted on blur (committed value)."
|
|
647
|
+
},
|
|
648
|
+
"complexType": {
|
|
649
|
+
"original": "RichTextOutput",
|
|
650
|
+
"resolved": "RichTextOutput",
|
|
651
|
+
"references": {
|
|
652
|
+
"RichTextOutput": {
|
|
653
|
+
"location": "import",
|
|
654
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
655
|
+
"id": "../rich-text/dist/index.d.ts::RichTextOutput",
|
|
656
|
+
"referenceLocation": "RichTextOutput"
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}, {
|
|
661
|
+
"method": "coFocus",
|
|
662
|
+
"name": "coFocus",
|
|
663
|
+
"bubbles": true,
|
|
664
|
+
"cancelable": true,
|
|
665
|
+
"composed": true,
|
|
666
|
+
"docs": {
|
|
667
|
+
"tags": [],
|
|
668
|
+
"text": ""
|
|
669
|
+
},
|
|
670
|
+
"complexType": {
|
|
671
|
+
"original": "void",
|
|
672
|
+
"resolved": "void",
|
|
673
|
+
"references": {}
|
|
674
|
+
}
|
|
675
|
+
}, {
|
|
676
|
+
"method": "coBlur",
|
|
677
|
+
"name": "coBlur",
|
|
678
|
+
"bubbles": true,
|
|
679
|
+
"cancelable": true,
|
|
680
|
+
"composed": true,
|
|
681
|
+
"docs": {
|
|
682
|
+
"tags": [],
|
|
683
|
+
"text": ""
|
|
684
|
+
},
|
|
685
|
+
"complexType": {
|
|
686
|
+
"original": "void",
|
|
687
|
+
"resolved": "void",
|
|
688
|
+
"references": {}
|
|
689
|
+
}
|
|
690
|
+
}, {
|
|
691
|
+
"method": "coClear",
|
|
692
|
+
"name": "coClear",
|
|
693
|
+
"bubbles": true,
|
|
694
|
+
"cancelable": true,
|
|
695
|
+
"composed": true,
|
|
696
|
+
"docs": {
|
|
697
|
+
"tags": [],
|
|
698
|
+
"text": ""
|
|
699
|
+
},
|
|
700
|
+
"complexType": {
|
|
701
|
+
"original": "void",
|
|
702
|
+
"resolved": "void",
|
|
703
|
+
"references": {}
|
|
704
|
+
}
|
|
705
|
+
}, {
|
|
706
|
+
"method": "coReady",
|
|
707
|
+
"name": "coReady",
|
|
708
|
+
"bubbles": true,
|
|
709
|
+
"cancelable": true,
|
|
710
|
+
"composed": true,
|
|
711
|
+
"docs": {
|
|
712
|
+
"tags": [],
|
|
713
|
+
"text": "Emitted once the editor is mounted and ready."
|
|
714
|
+
},
|
|
715
|
+
"complexType": {
|
|
716
|
+
"original": "void",
|
|
717
|
+
"resolved": "void",
|
|
718
|
+
"references": {}
|
|
719
|
+
}
|
|
720
|
+
}];
|
|
721
|
+
}
|
|
722
|
+
static get methods() {
|
|
723
|
+
return {
|
|
724
|
+
"getJSON": {
|
|
725
|
+
"complexType": {
|
|
726
|
+
"signature": "() => Promise<object | null>",
|
|
727
|
+
"parameters": [],
|
|
728
|
+
"references": {
|
|
729
|
+
"Promise": {
|
|
730
|
+
"location": "global",
|
|
731
|
+
"id": "global::Promise"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"return": "Promise<object | null>"
|
|
735
|
+
},
|
|
736
|
+
"docs": {
|
|
737
|
+
"text": "",
|
|
738
|
+
"tags": []
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"getHtml": {
|
|
742
|
+
"complexType": {
|
|
743
|
+
"signature": "() => Promise<string>",
|
|
744
|
+
"parameters": [],
|
|
745
|
+
"references": {
|
|
746
|
+
"Promise": {
|
|
747
|
+
"location": "global",
|
|
748
|
+
"id": "global::Promise"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"return": "Promise<string>"
|
|
752
|
+
},
|
|
753
|
+
"docs": {
|
|
754
|
+
"text": "",
|
|
755
|
+
"tags": []
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"getText": {
|
|
759
|
+
"complexType": {
|
|
760
|
+
"signature": "() => Promise<string>",
|
|
761
|
+
"parameters": [],
|
|
762
|
+
"references": {
|
|
763
|
+
"Promise": {
|
|
764
|
+
"location": "global",
|
|
765
|
+
"id": "global::Promise"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"return": "Promise<string>"
|
|
769
|
+
},
|
|
770
|
+
"docs": {
|
|
771
|
+
"text": "",
|
|
772
|
+
"tags": []
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"clear": {
|
|
776
|
+
"complexType": {
|
|
777
|
+
"signature": "() => Promise<void>",
|
|
778
|
+
"parameters": [],
|
|
779
|
+
"references": {
|
|
780
|
+
"Promise": {
|
|
781
|
+
"location": "global",
|
|
782
|
+
"id": "global::Promise"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"return": "Promise<void>"
|
|
786
|
+
},
|
|
787
|
+
"docs": {
|
|
788
|
+
"text": "",
|
|
789
|
+
"tags": []
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"focusEditor": {
|
|
793
|
+
"complexType": {
|
|
794
|
+
"signature": "() => Promise<void>",
|
|
795
|
+
"parameters": [],
|
|
796
|
+
"references": {
|
|
797
|
+
"Promise": {
|
|
798
|
+
"location": "global",
|
|
799
|
+
"id": "global::Promise"
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
"return": "Promise<void>"
|
|
803
|
+
},
|
|
804
|
+
"docs": {
|
|
805
|
+
"text": "",
|
|
806
|
+
"tags": []
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"setContent": {
|
|
810
|
+
"complexType": {
|
|
811
|
+
"signature": "(content: string | object) => Promise<void>",
|
|
812
|
+
"parameters": [{
|
|
813
|
+
"name": "content",
|
|
814
|
+
"type": "string | object",
|
|
815
|
+
"docs": ""
|
|
816
|
+
}],
|
|
817
|
+
"references": {
|
|
818
|
+
"Promise": {
|
|
819
|
+
"location": "global",
|
|
820
|
+
"id": "global::Promise"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
"return": "Promise<void>"
|
|
824
|
+
},
|
|
825
|
+
"docs": {
|
|
826
|
+
"text": "",
|
|
827
|
+
"tags": []
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"getEditorInstance": {
|
|
831
|
+
"complexType": {
|
|
832
|
+
"signature": "() => Promise<Editor | null>",
|
|
833
|
+
"parameters": [],
|
|
834
|
+
"references": {
|
|
835
|
+
"Promise": {
|
|
836
|
+
"location": "global",
|
|
837
|
+
"id": "global::Promise"
|
|
838
|
+
},
|
|
839
|
+
"Editor": {
|
|
840
|
+
"location": "import",
|
|
841
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
842
|
+
"id": "../rich-text/dist/index.d.ts::Editor",
|
|
843
|
+
"referenceLocation": "Editor"
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
"return": "Promise<Editor | null>"
|
|
847
|
+
},
|
|
848
|
+
"docs": {
|
|
849
|
+
"text": "",
|
|
850
|
+
"tags": []
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
static get elementRef() { return "el"; }
|
|
856
|
+
static get watchers() {
|
|
857
|
+
return [{
|
|
858
|
+
"propName": "value",
|
|
859
|
+
"methodName": "onValueChange"
|
|
860
|
+
}, {
|
|
861
|
+
"propName": "disabled",
|
|
862
|
+
"methodName": "onEditableChange"
|
|
863
|
+
}, {
|
|
864
|
+
"propName": "readonly",
|
|
865
|
+
"methodName": "onEditableChange"
|
|
866
|
+
}];
|
|
867
|
+
}
|
|
868
|
+
}
|