@ngstarter-ui/components 22.3.6 → 22.4.1
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/README.md +27 -0
- package/ai/component-registry.json +186 -101
- package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
- package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
- package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
- package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
- package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
- package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
- package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
- package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
- package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
- package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
- package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
- package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
- package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
- package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
- package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
- package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
- package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
- package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
- package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
- package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
- package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
- package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
- package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
- package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
- package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
- package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
- package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
- package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
- package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
- package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
- package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
- package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
- package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
- package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
- package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
- package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
- package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
- package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
- package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
- package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
- package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
- package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
- package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
- package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
- package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
- package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
- package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
- package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
- package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
- package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
- package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
- package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
- package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
- package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
- package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
- package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
- package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
- package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
- package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
- package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
- package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
- package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
- package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
- package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
- package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
- package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
- package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
- package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
- package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
- package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
- package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
- package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
- package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
- package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
- package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
- package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
- package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
- package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
- package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
- package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
- package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
- package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
- package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components.mjs +3 -5
- package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
- package/package.json +11 -10
- package/styles/_tokens.scss +1 -0
- package/types/ngstarter-ui-components-action-required.d.ts +34 -14
- package/types/ngstarter-ui-components-alert.d.ts +53 -44
- package/types/ngstarter-ui-components-announcement.d.ts +74 -53
- package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
- package/types/ngstarter-ui-components-avatar.d.ts +113 -66
- package/types/ngstarter-ui-components-badge.d.ts +73 -37
- package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
- package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
- package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
- package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
- package/types/ngstarter-ui-components-button.d.ts +69 -27
- package/types/ngstarter-ui-components-calendar.d.ts +123 -71
- package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
- package/types/ngstarter-ui-components-card.d.ts +75 -71
- package/types/ngstarter-ui-components-carousel.d.ts +115 -69
- package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
- package/types/ngstarter-ui-components-chips.d.ts +288 -195
- package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
- package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
- package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
- package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
- package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
- package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
- package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
- package/types/ngstarter-ui-components-confirm.d.ts +24 -29
- package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
- package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
- package/types/ngstarter-ui-components-core.d.ts +513 -467
- package/types/ngstarter-ui-components-country-select.d.ts +170 -97
- package/types/ngstarter-ui-components-crop.d.ts +67 -52
- package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
- package/types/ngstarter-ui-components-data-view.d.ts +811 -567
- package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
- package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
- package/types/ngstarter-ui-components-dialog.d.ts +138 -116
- package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
- package/types/ngstarter-ui-components-divider.d.ts +29 -17
- package/types/ngstarter-ui-components-drawer.d.ts +39 -30
- package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
- package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
- package/types/ngstarter-ui-components-events.d.ts +73 -57
- package/types/ngstarter-ui-components-expand.d.ts +55 -25
- package/types/ngstarter-ui-components-expansion.d.ts +93 -64
- package/types/ngstarter-ui-components-file-type.d.ts +53 -27
- package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
- package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
- package/types/ngstarter-ui-components-form-field.d.ts +116 -105
- package/types/ngstarter-ui-components-gauge.d.ts +32 -20
- package/types/ngstarter-ui-components-grid.d.ts +66 -50
- package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
- package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
- package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
- package/types/ngstarter-ui-components-icon.d.ts +39 -38
- package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
- package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
- package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
- package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
- package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
- package/types/ngstarter-ui-components-incidents.d.ts +97 -104
- package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
- package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
- package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
- package/types/ngstarter-ui-components-input.d.ts +82 -54
- package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
- package/types/ngstarter-ui-components-kbd.d.ts +8 -12
- package/types/ngstarter-ui-components-layout.d.ts +131 -87
- package/types/ngstarter-ui-components-list.d.ts +123 -88
- package/types/ngstarter-ui-components-logo.d.ts +21 -21
- package/types/ngstarter-ui-components-marquee.d.ts +41 -34
- package/types/ngstarter-ui-components-menu.d.ts +329 -221
- package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
- package/types/ngstarter-ui-components-navigation.d.ts +186 -125
- package/types/ngstarter-ui-components-notifications.d.ts +104 -89
- package/types/ngstarter-ui-components-number-input.d.ts +138 -96
- package/types/ngstarter-ui-components-option.d.ts +102 -68
- package/types/ngstarter-ui-components-overlay.d.ts +7 -12
- package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
- package/types/ngstarter-ui-components-paginator.d.ts +171 -129
- package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
- package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
- package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
- package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
- package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
- package/types/ngstarter-ui-components-popover.d.ts +128 -89
- package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
- package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
- package/types/ngstarter-ui-components-radio.d.ts +100 -47
- package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
- package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
- package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
- package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
- package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
- package/types/ngstarter-ui-components-segmented.d.ts +93 -61
- package/types/ngstarter-ui-components-select.d.ts +366 -266
- package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
- package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
- package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
- package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
- package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
- package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
- package/types/ngstarter-ui-components-slider.d.ts +123 -82
- package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
- package/types/ngstarter-ui-components-sort.d.ts +99 -63
- package/types/ngstarter-ui-components-spinner.d.ts +49 -27
- package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
- package/types/ngstarter-ui-components-split.d.ts +276 -195
- package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
- package/types/ngstarter-ui-components-stepper.d.ts +57 -43
- package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
- package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
- package/types/ngstarter-ui-components-table.d.ts +256 -228
- package/types/ngstarter-ui-components-tabs.d.ts +231 -138
- package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
- package/types/ngstarter-ui-components-tiles.d.ts +166 -104
- package/types/ngstarter-ui-components-timeline.d.ts +45 -57
- package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
- package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
- package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
- package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
- package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
- package/types/ngstarter-ui-components-tree.d.ts +355 -229
- package/types/ngstarter-ui-components-upload.d.ts +216 -131
- package/types/ngstarter-ui-components-video-player.d.ts +130 -67
- package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
- package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
- package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
- package/types/ngstarter-ui-components.d.ts +2 -2
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs +0 -375
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs +0 -134
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
|
@@ -1,386 +1,383 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { SelectionModel } from
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
import { NgsHeadlessEditorDocument as NgsHeadlessEditorDocument$1 } from "./ngstarter-ui-components-headless-editor.js";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { AfterViewInit, ElementRef, EnvironmentProviders, EventEmitter, InjectionToken, InputSignal, NgZone, OnDestroy, OnInit, Provider, Renderer2, Signal, Type, ViewContainerRef } from "@angular/core";
|
|
4
|
+
import { Overlay, OverlayContainer } from "@angular/cdk/overlay";
|
|
5
|
+
import { Observable } from "rxjs";
|
|
6
|
+
import { NgsHeadlessEditor, NgsHeadlessEditorBlock, NgsHeadlessEditorChangeOrigin, NgsHeadlessEditorDocument, NgsHeadlessEditorMark, NgsHeadlessEditorMarkDefinition, NgsHeadlessEditorSelection, NgsHeadlessEditorText } from "@ngstarter-ui/components/headless-editor";
|
|
7
|
+
import { CdkDrag, CdkDragDrop, CdkDragStart, CdkDropList } from "@angular/cdk/drag-drop";
|
|
8
|
+
import { Menu, MenuCloseReason } from "@ngstarter-ui/components/menu";
|
|
9
|
+
import { Popover } from "@ngstarter-ui/components/popover";
|
|
10
|
+
import { SelectionModel } from "@angular/cdk/collections";
|
|
11
|
+
export declare class CommandBarComponent {
|
|
12
|
+
readonly editor: NgsHeadlessEditor;
|
|
13
|
+
private readonly dialog;
|
|
14
|
+
readonly observedElement: import("@angular/core").InputSignal<HTMLElement | null>;
|
|
15
|
+
readonly alignment: import("@angular/core").Signal<string>;
|
|
16
|
+
private savedSelection;
|
|
17
|
+
private region;
|
|
18
|
+
toggleBold(): void;
|
|
19
|
+
toggleItalic(): void;
|
|
20
|
+
toggleCode(): void;
|
|
21
|
+
toggleStrike(): void;
|
|
22
|
+
toggleUnderline(): void;
|
|
23
|
+
toggleSuperscript(): void;
|
|
24
|
+
toggleSubscript(): void;
|
|
25
|
+
isLinkActive(): boolean;
|
|
26
|
+
isActive(tag: string): boolean;
|
|
27
|
+
setTextAlignment(value: string): void;
|
|
28
|
+
isTextAlignment(value: string): boolean;
|
|
29
|
+
addLink(): void;
|
|
30
|
+
editLink(): void;
|
|
31
|
+
private openLinkDialog;
|
|
32
|
+
protected preserveSelection(event: MouseEvent): void;
|
|
33
|
+
protected retainSelection(): void;
|
|
34
|
+
private restoreSelection;
|
|
35
|
+
protected restoreSelectionAfterOverlay(): void;
|
|
36
|
+
protected preventMenuClose(event: MouseEvent): void;
|
|
37
|
+
protected onTextColorChanged(color: string): void;
|
|
38
|
+
protected onBackgroundColorChanged(color: string): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandBarComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandBarComponent, "ngs-command-bar", never, {
|
|
41
|
+
"observedElement": {
|
|
42
|
+
"alias": "observedElement";
|
|
43
|
+
"required": false;
|
|
44
|
+
"isSignal": true;
|
|
45
|
+
};
|
|
46
|
+
}, {}, never, never, true, never>;
|
|
47
|
+
}
|
|
45
48
|
/** A converter receives saved block data, never an Angular component or editor DOM. */
|
|
46
|
-
type ContentEditorBlockHtmlConverter<T = any> = (block: ContentEditorBlock<T>, context: ContentEditorHtmlContext) => string;
|
|
47
|
-
type ContentEditorMarkHtmlConverter = (html: string, mark: NgsHeadlessEditorMark, context: ContentEditorHtmlContext) => string;
|
|
48
|
-
type ContentEditorHtmlUrlKind = 'link' | 'image' | 'media' | 'attachment' | 'embed';
|
|
49
|
-
interface ContentEditorHtmlContext {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
declare const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
type
|
|
77
|
-
type
|
|
78
|
-
type
|
|
79
|
-
type
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
content: ContentEditorText;
|
|
84
|
-
props?: ContentEditorItemProperty[];
|
|
85
|
-
};
|
|
86
|
-
caption: {
|
|
87
|
-
content: ContentEditorText;
|
|
88
|
-
props?: ContentEditorItemProperty[];
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
interface ContentEditorTableCellMetadata {
|
|
49
|
+
export type ContentEditorBlockHtmlConverter<T = any> = (block: ContentEditorBlock<T>, context: ContentEditorHtmlContext) => string;
|
|
50
|
+
export type ContentEditorMarkHtmlConverter = (html: string, mark: NgsHeadlessEditorMark, context: ContentEditorHtmlContext) => string;
|
|
51
|
+
export type ContentEditorHtmlUrlKind = 'link' | 'image' | 'media' | 'attachment' | 'embed';
|
|
52
|
+
export interface ContentEditorHtmlContext {
|
|
53
|
+
renderBlock(block: ContentEditorBlock): string;
|
|
54
|
+
renderBlocks(blocks: readonly ContentEditorBlock[]): string;
|
|
55
|
+
renderText(text: ContentEditorText): string;
|
|
56
|
+
/** Calls the built-in converter without re-entering the current override. */
|
|
57
|
+
defaultToHtml(block: ContentEditorBlock): string;
|
|
58
|
+
escape(value: unknown): string;
|
|
59
|
+
safeUrl(value: unknown, kind?: ContentEditorHtmlUrlKind): string | null;
|
|
60
|
+
/** Styles are included once per export, unless includeStyles is false. */
|
|
61
|
+
addStyles(css: string): void;
|
|
62
|
+
}
|
|
63
|
+
export declare const CONTENT_BUILDER: InjectionToken<unknown>;
|
|
64
|
+
export declare const CONTENT_EDITOR_BLOCK: InjectionToken<readonly ContentEditorDataBlock[]>;
|
|
65
|
+
export interface ContentEditorDataBlock {
|
|
66
|
+
id: Signal<string>;
|
|
67
|
+
getData(): any;
|
|
68
|
+
focus(): void;
|
|
69
|
+
isEmpty(): boolean;
|
|
70
|
+
initialized: Signal<boolean>;
|
|
71
|
+
}
|
|
72
|
+
export interface ContentEditorBlockEmpty {
|
|
73
|
+
content: any;
|
|
74
|
+
settings: {
|
|
75
|
+
[prop: string]: any;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export type ContentEditorDocument = NgsHeadlessEditorDocument;
|
|
79
|
+
export type ContentEditorBlock<TContent = unknown> = NgsHeadlessEditorBlock<TContent>;
|
|
80
|
+
export type ContentEditorText = readonly NgsHeadlessEditorText[];
|
|
81
|
+
export type ContentEditorBuiltinBlockType = 'paragraph' | 'heading' | 'code' | 'divider' | 'bulletList' | 'orderedList' | 'quote' | 'table' | 'image' | 'video' | 'embed' | 'callout' | 'toggle' | 'attachment' | 'gallery' | 'grid';
|
|
82
|
+
export type ContentEditorDimension = number | 'auto' | null;
|
|
83
|
+
export interface ContentEditorQuoteContent {
|
|
84
|
+
cite: {
|
|
85
|
+
content: ContentEditorText;
|
|
92
86
|
props?: ContentEditorItemProperty[];
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
width?: ContentEditorDimension;
|
|
97
|
-
};
|
|
98
|
-
styles?: Readonly<Record<string, unknown>>;
|
|
99
|
-
[key: string]: unknown;
|
|
100
|
-
}
|
|
101
|
-
interface ContentEditorTableAttributes {
|
|
102
|
-
rows: readonly (readonly ContentEditorText[])[];
|
|
103
|
-
header?: boolean;
|
|
104
|
-
cellMetadata?: readonly (readonly ContentEditorTableCellMetadata[])[];
|
|
105
|
-
settings?: ContentEditorTableBlockSettings;
|
|
87
|
+
};
|
|
88
|
+
caption: {
|
|
89
|
+
content: ContentEditorText;
|
|
106
90
|
props?: ContentEditorItemProperty[];
|
|
91
|
+
};
|
|
107
92
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
interface
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
93
|
+
export interface ContentEditorTableCellMetadata {
|
|
94
|
+
props?: ContentEditorItemProperty[];
|
|
95
|
+
options?: {
|
|
96
|
+
colspan?: number;
|
|
97
|
+
rowspan?: number;
|
|
98
|
+
width?: ContentEditorDimension;
|
|
99
|
+
};
|
|
100
|
+
styles?: Readonly<Record<string, unknown>>;
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
}
|
|
103
|
+
export interface ContentEditorTableAttributes {
|
|
104
|
+
rows: readonly (readonly ContentEditorText[])[];
|
|
105
|
+
header?: boolean;
|
|
106
|
+
cellMetadata?: readonly (readonly ContentEditorTableCellMetadata[])[];
|
|
107
|
+
settings?: ContentEditorTableBlockSettings;
|
|
108
|
+
props?: ContentEditorItemProperty[];
|
|
109
|
+
}
|
|
110
|
+
export type ContentEditorCalloutVariant = 'note' | 'tip' | 'warning' | 'danger';
|
|
111
|
+
export interface ContentEditorCalloutSettings {
|
|
112
|
+
variant: ContentEditorCalloutVariant;
|
|
113
|
+
}
|
|
114
|
+
export interface ContentEditorToggleContent {
|
|
115
|
+
title: ContentEditorText;
|
|
116
|
+
blocks: readonly ContentEditorBlock[];
|
|
117
|
+
}
|
|
118
|
+
export interface ContentEditorToggleSettings {
|
|
119
|
+
expanded: boolean;
|
|
120
|
+
}
|
|
121
|
+
export interface ContentEditorAttachmentContent {
|
|
122
|
+
url: string;
|
|
123
|
+
name: string;
|
|
124
|
+
size: number;
|
|
125
|
+
mimeType: string;
|
|
126
|
+
}
|
|
127
|
+
export interface ContentEditorGalleryImage {
|
|
128
|
+
id: string;
|
|
129
|
+
src: string;
|
|
130
|
+
alt: string;
|
|
131
|
+
caption: ContentEditorText;
|
|
132
|
+
}
|
|
133
|
+
export interface ContentEditorGalleryContent {
|
|
134
|
+
images: readonly ContentEditorGalleryImage[];
|
|
135
|
+
}
|
|
136
|
+
export interface ContentEditorGridCell {
|
|
137
|
+
id: string;
|
|
138
|
+
blocks: readonly ContentEditorBlock[];
|
|
139
|
+
}
|
|
140
|
+
export interface ContentEditorGridContent {
|
|
141
|
+
cells: readonly ContentEditorGridCell[];
|
|
142
|
+
}
|
|
143
|
+
export type ContentEditorGridGap = 'small' | 'medium' | 'large';
|
|
144
|
+
export interface ContentEditorGridSettings {
|
|
145
|
+
columns: 2 | 3 | 4;
|
|
146
|
+
gap: ContentEditorGridGap;
|
|
147
|
+
stackOnMobile: boolean;
|
|
146
148
|
}
|
|
147
149
|
/** A block collection in the root document, a toggle, or a cell. */
|
|
148
|
-
interface ContentEditorBlockScope {
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
export interface ContentEditorBlockScope {
|
|
151
|
+
parentId?: string;
|
|
152
|
+
cellId?: string;
|
|
151
153
|
}
|
|
152
154
|
/** Destination passed to the shared block menu; omission of afterId appends to the collection. */
|
|
153
|
-
interface ContentEditorBlockInsertionTarget {
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
export interface ContentEditorBlockInsertionTarget {
|
|
156
|
+
scope: ContentEditorBlockScope;
|
|
157
|
+
afterId?: string;
|
|
156
158
|
}
|
|
157
|
-
interface ContentEditorUploadContext {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
export interface ContentEditorUploadContext {
|
|
160
|
+
/** Abort the transport when cancelled, replaced or the block is removed. */
|
|
161
|
+
signal: AbortSignal;
|
|
162
|
+
/** Report transport progress from 0 to 100; omit for indeterminate progress. */
|
|
163
|
+
onProgress(percent: number): void;
|
|
162
164
|
}
|
|
163
|
-
type ContentEditorUploadFn = (file: File, dataUrl: string, context: ContentEditorUploadContext) => Promise<string>;
|
|
165
|
+
export type ContentEditorUploadFn = (file: File, dataUrl: string, context: ContentEditorUploadContext) => Promise<string>;
|
|
164
166
|
/** UI input view of a native document block. Never used as the saved document. */
|
|
165
|
-
interface ContentEditorBlockView {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
interface ContentEditorBlockDef {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
[prop: string]: any;
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
interface ContentEditorHeadingBlockSettings {
|
|
184
|
-
level: number;
|
|
185
|
-
}
|
|
186
|
-
interface ContentEditorSuggestionHeading {
|
|
187
|
-
type: 'item' | 'heading';
|
|
188
|
-
title: string;
|
|
189
|
-
}
|
|
190
|
-
interface ContentEditorSuggestionItem {
|
|
191
|
-
type: 'item' | 'heading';
|
|
192
|
-
title: string;
|
|
193
|
-
description: string;
|
|
194
|
-
iconName: string;
|
|
195
|
-
hotKeys: string;
|
|
196
|
-
blockType: string;
|
|
197
|
-
blockOptions: object;
|
|
198
|
-
}
|
|
199
|
-
interface ContentEditorImageContent {
|
|
200
|
-
src: string;
|
|
201
|
-
alt: string;
|
|
167
|
+
export interface ContentEditorBlockView {
|
|
168
|
+
id: string;
|
|
169
|
+
type: string;
|
|
170
|
+
content: any;
|
|
171
|
+
isEmpty: boolean;
|
|
172
|
+
attrs?: Readonly<Record<string, unknown>>;
|
|
173
|
+
props?: ContentEditorItemProperty[];
|
|
174
|
+
settings: any;
|
|
175
|
+
}
|
|
176
|
+
export interface ContentEditorBlockDef {
|
|
177
|
+
component: () => any;
|
|
178
|
+
type: string;
|
|
179
|
+
empty: () => ContentEditorBlockEmpty;
|
|
180
|
+
toHtml?: ContentEditorBlockHtmlConverter;
|
|
181
|
+
options: {
|
|
202
182
|
[prop: string]: any;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
interface
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
interface
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
type
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export interface ContentEditorHeadingBlockSettings {
|
|
186
|
+
level: number;
|
|
187
|
+
}
|
|
188
|
+
export interface ContentEditorSuggestionHeading {
|
|
189
|
+
type: 'item' | 'heading';
|
|
190
|
+
title: string;
|
|
191
|
+
}
|
|
192
|
+
export interface ContentEditorSuggestionItem {
|
|
193
|
+
type: 'item' | 'heading';
|
|
194
|
+
title: string;
|
|
195
|
+
description: string;
|
|
196
|
+
iconName: string;
|
|
197
|
+
hotKeys: string;
|
|
198
|
+
blockType: string;
|
|
199
|
+
blockOptions: object;
|
|
200
|
+
}
|
|
201
|
+
export interface ContentEditorImageContent {
|
|
202
|
+
src: string;
|
|
203
|
+
alt: string;
|
|
204
|
+
[prop: string]: any;
|
|
205
|
+
}
|
|
206
|
+
export interface ContentEditorVideoContent {
|
|
207
|
+
src: string;
|
|
208
|
+
caption: string;
|
|
209
|
+
orientation?: 'portrait' | 'landscape';
|
|
210
|
+
[prop: string]: any;
|
|
211
|
+
}
|
|
212
|
+
export interface ContentEditorEmbedContent {
|
|
213
|
+
url: string;
|
|
214
|
+
type: string;
|
|
215
|
+
}
|
|
216
|
+
export interface ContentEditorImageBlockSettings {
|
|
217
|
+
width?: ContentEditorDimension;
|
|
218
|
+
height?: ContentEditorDimension;
|
|
219
|
+
actualWidth?: ContentEditorDimension;
|
|
220
|
+
actualHeight?: ContentEditorDimension;
|
|
221
|
+
}
|
|
222
|
+
export interface ContentEditorVideoBlockSettings {
|
|
223
|
+
width?: ContentEditorDimension;
|
|
224
|
+
height?: ContentEditorDimension;
|
|
225
|
+
actualWidth?: ContentEditorDimension;
|
|
226
|
+
actualHeight?: ContentEditorDimension;
|
|
227
|
+
}
|
|
228
|
+
export interface ContentEditorEmbedBlockSettings {
|
|
229
|
+
width?: ContentEditorDimension;
|
|
230
|
+
height?: ContentEditorDimension;
|
|
231
|
+
}
|
|
232
|
+
export interface ContentEditorListItem {
|
|
233
|
+
content: ContentEditorText;
|
|
234
|
+
props?: ContentEditorItemProperty[];
|
|
235
|
+
children: ContentEditorListItem[];
|
|
236
|
+
[prop: string]: any;
|
|
237
|
+
}
|
|
238
|
+
export interface ContentEditorListSettings {
|
|
239
|
+
listStyle: string;
|
|
240
|
+
}
|
|
241
|
+
export interface ContentEditorItemProperty {
|
|
242
|
+
name: string;
|
|
243
|
+
value: string;
|
|
244
|
+
}
|
|
245
|
+
export interface ContentEditorTableBlockSettings {
|
|
246
|
+
fullWidth?: boolean;
|
|
247
|
+
}
|
|
248
|
+
export interface ContentEditorOptions {
|
|
249
|
+
[prop: string]: any;
|
|
250
|
+
}
|
|
251
|
+
export interface ContentEditorBlockRendererDef {
|
|
252
|
+
type: string;
|
|
253
|
+
component: Type<unknown>;
|
|
254
|
+
}
|
|
255
|
+
export interface ContentEditorBlockRendererInputs<TContent = unknown, TSettings = unknown> extends Record<string, unknown> {
|
|
256
|
+
block: NgsHeadlessEditorBlock | null;
|
|
257
|
+
id: string;
|
|
258
|
+
type: string;
|
|
259
|
+
content: TContent;
|
|
260
|
+
props: ContentEditorItemProperty[];
|
|
261
|
+
settings: TSettings;
|
|
262
|
+
index: number;
|
|
263
|
+
}
|
|
264
|
+
export interface ContentEditorBlockRendererInputSignals<TContent = unknown, TSettings = unknown> {
|
|
265
|
+
block: InputSignal<NgsHeadlessEditorBlock | null>;
|
|
266
|
+
id: InputSignal<string>;
|
|
267
|
+
type: InputSignal<string>;
|
|
268
|
+
content: InputSignal<TContent>;
|
|
269
|
+
props: InputSignal<ContentEditorItemProperty[]>;
|
|
270
|
+
settings: InputSignal<TSettings>;
|
|
271
|
+
index: InputSignal<number>;
|
|
272
|
+
}
|
|
273
|
+
export type ContentEditorDraftStatus = 'disabled' | 'idle' | 'saving' | 'saved' | 'error';
|
|
274
|
+
export interface ContentEditorDraftStorage {
|
|
275
|
+
getItem(key: string): string | null;
|
|
276
|
+
setItem(key: string, value: string): void;
|
|
277
|
+
removeItem(key: string): void;
|
|
278
|
+
}
|
|
279
|
+
export interface ContentEditorDraftConfig {
|
|
280
|
+
storage?: ContentEditorDraftStorage;
|
|
281
|
+
debounceMs?: number;
|
|
281
282
|
}
|
|
282
283
|
/** Delayed persistence keeps storage errors visible and flushes before switching documents. */
|
|
283
|
-
declare class ContentEditorDraftController {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
parse(element: Element, context: ContentEditorHtmlImportContext): ContentEditorBlock | readonly ContentEditorBlock[] | null;
|
|
284
|
+
export declare class ContentEditorDraftController {
|
|
285
|
+
readonly status: import("@angular/core").WritableSignal<ContentEditorDraftStatus>;
|
|
286
|
+
readonly error: import("@angular/core").WritableSignal<string>;
|
|
287
|
+
readonly savedAt: import("@angular/core").WritableSignal<number | null>;
|
|
288
|
+
private key;
|
|
289
|
+
private storage;
|
|
290
|
+
private debounceMs;
|
|
291
|
+
private enabled;
|
|
292
|
+
private pending;
|
|
293
|
+
private timer;
|
|
294
|
+
configure(key: string, enabled: boolean, config?: ContentEditorDraftConfig): void;
|
|
295
|
+
read(validate: (source: unknown) => ContentEditorDocument): ContentEditorDocument | null;
|
|
296
|
+
schedule(document: ContentEditorDocument): void;
|
|
297
|
+
flush(): void;
|
|
298
|
+
clear(): void;
|
|
299
|
+
private fail;
|
|
300
|
+
}
|
|
301
|
+
export interface ContentEditorImportOptions {
|
|
302
|
+
/** Maximum JSON/HTML nesting depth. Default: 64. */
|
|
303
|
+
maxDepth?: number;
|
|
304
|
+
/** Maximum number of document blocks, including nested blocks. Default: 10000. */
|
|
305
|
+
maxBlocks?: number;
|
|
306
|
+
/** Preserve application-defined JSON block types. Default: false. */
|
|
307
|
+
allowUnknownBlocks?: boolean;
|
|
308
|
+
}
|
|
309
|
+
export interface ContentEditorImportPlacement {
|
|
310
|
+
/** Replace the document (default), or insert into a block collection. */
|
|
311
|
+
mode?: 'replace' | 'insert';
|
|
312
|
+
/** Defaults to the active collection and block when inserting. */
|
|
313
|
+
target?: ContentEditorBlockInsertionTarget;
|
|
314
|
+
}
|
|
315
|
+
export interface ContentEditorHtmlImportOptions extends ContentEditorImportOptions {
|
|
316
|
+
/** A DOM document supplied by the application, useful for server-side parsers. */
|
|
317
|
+
document?: Document;
|
|
318
|
+
}
|
|
319
|
+
export interface ContentEditorHtmlImportContext {
|
|
320
|
+
createBlock(type: string, content: unknown, attrs?: Readonly<Record<string, unknown>>): ContentEditorBlock;
|
|
321
|
+
createId(prefix?: string): string;
|
|
322
|
+
parseBlocks(element: Element): readonly ContentEditorBlock[];
|
|
323
|
+
parseText(element: Element): ContentEditorText;
|
|
324
|
+
/** Uses the built-in parser for this element without invoking the override again. */
|
|
325
|
+
defaultFromHtml(element: Element): readonly ContentEditorBlock[];
|
|
326
|
+
safeUrl(value: unknown, kind?: ContentEditorHtmlUrlKind): string | null;
|
|
327
|
+
}
|
|
328
|
+
export interface ContentEditorBlockHtmlImporter {
|
|
329
|
+
/** CSS selector matched against the source element. Overrides run before built-ins. */
|
|
330
|
+
selector: string;
|
|
331
|
+
parse(element: Element, context: ContentEditorHtmlImportContext): ContentEditorBlock | readonly ContentEditorBlock[] | null;
|
|
332
332
|
}
|
|
333
333
|
/** Return an error message to reject a block, or undefined to accept it. */
|
|
334
|
-
type ContentEditorBlockImportValidator = (block: ContentEditorBlock) => string | undefined;
|
|
334
|
+
export type ContentEditorBlockImportValidator = (block: ContentEditorBlock) => string | undefined;
|
|
335
335
|
/** Structured failure. The editor is never modified when parsing fails. */
|
|
336
|
-
declare class ContentEditorImportError extends Error {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
type ContentEditorImportMarkDefinition = NgsHeadlessEditorMarkDefinition;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
unknownBlockToHtml?: ContentEditorBlockHtmlConverter;
|
|
336
|
+
export declare class ContentEditorImportError extends Error {
|
|
337
|
+
readonly path: string;
|
|
338
|
+
constructor(path: string, message: string);
|
|
339
|
+
}
|
|
340
|
+
export type ContentEditorImportMarkDefinition = NgsHeadlessEditorMarkDefinition;
|
|
341
|
+
export interface ContentEditorBlockConfig {
|
|
342
|
+
/** Eager component, or loadEditor for lazy loading; the lazy loader takes precedence. */
|
|
343
|
+
editor?: Type<unknown>;
|
|
344
|
+
loadEditor?: () => Promise<Type<unknown>>;
|
|
345
|
+
renderer?: Type<unknown>;
|
|
346
|
+
/** Native initial data. The editor supplies a fresh id and the configured type. */
|
|
347
|
+
create?: () => Pick<ContentEditorBlock, 'content' | 'attrs'>;
|
|
348
|
+
/** Adds the block to the global insertion menu. */
|
|
349
|
+
menu?: {
|
|
350
|
+
title: string;
|
|
351
|
+
description?: string;
|
|
352
|
+
iconName?: string;
|
|
353
|
+
settings?: Readonly<Record<string, unknown>>;
|
|
354
|
+
};
|
|
355
|
+
toHtml?: ContentEditorBlockHtmlConverter;
|
|
356
|
+
fromHtml?: ContentEditorBlockHtmlImporter;
|
|
357
|
+
validateImport?: ContentEditorBlockImportValidator;
|
|
358
|
+
options?: Readonly<Record<string, unknown>>;
|
|
359
|
+
}
|
|
360
|
+
export interface ContentEditorConfig {
|
|
361
|
+
blocks?: Readonly<Record<string, ContentEditorBlockConfig>>;
|
|
362
|
+
marks?: Readonly<Record<string, ContentEditorMarkHtmlConverter>>;
|
|
363
|
+
includeStyles?: boolean;
|
|
364
|
+
draft?: ContentEditorDraftConfig;
|
|
365
|
+
/** Additional or overridden mark definitions used when importing HTML. */
|
|
366
|
+
importMarks?: readonly ContentEditorImportMarkDefinition[];
|
|
367
|
+
/** Unknown blocks throw by default to avoid silently losing saved content. */
|
|
368
|
+
unknownBlockToHtml?: ContentEditorBlockHtmlConverter;
|
|
370
369
|
}
|
|
371
370
|
/** Nested renderers inherit per-instance configuration through their parent. */
|
|
372
|
-
declare const CONTENT_EDITOR_RENDER_CONFIG: InjectionToken<Signal<ContentEditorConfig>>;
|
|
373
|
-
declare const CONTENT_EDITOR_CONFIG: InjectionToken<ContentEditorConfig>;
|
|
371
|
+
export declare const CONTENT_EDITOR_RENDER_CONFIG: InjectionToken<Signal<ContentEditorConfig>>;
|
|
372
|
+
export declare const CONTENT_EDITOR_CONFIG: InjectionToken<ContentEditorConfig>;
|
|
374
373
|
/** Later configurations override individual block fields, preserving unrelated options. */
|
|
375
|
-
declare function mergeContentEditorConfig(...configs: readonly ContentEditorConfig[]): ContentEditorConfig;
|
|
374
|
+
export declare function mergeContentEditorConfig(...configs: readonly ContentEditorConfig[]): ContentEditorConfig;
|
|
376
375
|
/** Application or route environment configuration. Child environments inherit parent settings. */
|
|
377
|
-
declare function provideContentEditorConfig(config?: ContentEditorConfig): EnvironmentProviders;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
declare const CONTENT_EDITOR_CONVERTIBLE_BLOCKS: readonly ContentEditorConvertibleBlockType[];
|
|
376
|
+
export declare function provideContentEditorConfig(config?: ContentEditorConfig): EnvironmentProviders;
|
|
377
|
+
export type ContentEditorConvertibleBlockType = 'paragraph' | 'heading' | 'quote' | 'callout';
|
|
378
|
+
export declare const CONTENT_EDITOR_CONVERTIBLE_BLOCKS: readonly ContentEditorConvertibleBlockType[];
|
|
381
379
|
/** Retains identity, rich text and alignment. Quote attribution becomes a final line. */
|
|
382
|
-
declare function contentEditorConvertBlock(block: ContentEditorBlock, type: ContentEditorConvertibleBlockType, settings?: Readonly<Record<string, unknown>>): ContentEditorBlock;
|
|
383
|
-
|
|
380
|
+
export declare function contentEditorConvertBlock(block: ContentEditorBlock, type: ContentEditorConvertibleBlockType, settings?: Readonly<Record<string, unknown>>): ContentEditorBlock;
|
|
384
381
|
/**
|
|
385
382
|
* Directive to enable mouse-drag selection of child blocks inside a container.
|
|
386
383
|
*
|
|
@@ -391,663 +388,1150 @@ declare function contentEditorConvertBlock(block: ContentEditorBlock, type: Cont
|
|
|
391
388
|
* - Any block that intersects the selection rectangle receives `selectedClass` (default: `is-selected`).
|
|
392
389
|
* When the block leaves the selection area, the class is removed.
|
|
393
390
|
*/
|
|
394
|
-
declare class BlockSelectionDirective implements OnDestroy {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
391
|
+
export declare class BlockSelectionDirective implements OnDestroy {
|
|
392
|
+
private document;
|
|
393
|
+
private _platformId;
|
|
394
|
+
private contentBuilder;
|
|
395
|
+
/** CSS selector for selectable blocks. Defaults to `.block`. */
|
|
396
|
+
blockSelector: import("@angular/core").InputSignal<string>;
|
|
397
|
+
autoScrollContainerSelector: import("@angular/core").InputSignal<string | null>;
|
|
398
|
+
/** CSS class applied to the dynamic selection rectangle element. */
|
|
399
|
+
selectionAreaClass: import("@angular/core").InputSignal<string>;
|
|
400
|
+
/**
|
|
401
|
+
* List of CSS class names to ignore when starting selection.
|
|
402
|
+
* If the mousedown target or any of its ancestors (via closest) contains any of
|
|
403
|
+
* these classes, the selection will NOT start. Class names can be provided with
|
|
404
|
+
* or without leading dot (e.g., 'toolbar-button' or '.toolbar-button').
|
|
405
|
+
*/
|
|
406
|
+
ignoreClasses: import("@angular/core").InputSignal<string[]>;
|
|
407
|
+
private elRef;
|
|
408
|
+
private host;
|
|
409
|
+
private selection;
|
|
410
|
+
private selectedSet;
|
|
411
|
+
constructor();
|
|
412
|
+
ngOnDestroy(): void;
|
|
413
|
+
private isInIgnoredArea;
|
|
414
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BlockSelectionDirective, never>;
|
|
415
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BlockSelectionDirective, "[ngsBlockSelection]", never, {
|
|
416
|
+
"blockSelector": {
|
|
417
|
+
"alias": "blockSelector";
|
|
418
|
+
"required": false;
|
|
419
|
+
"isSignal": true;
|
|
420
|
+
};
|
|
421
|
+
"autoScrollContainerSelector": {
|
|
422
|
+
"alias": "autoScrollContainerSelector";
|
|
423
|
+
"required": false;
|
|
424
|
+
"isSignal": true;
|
|
425
|
+
};
|
|
426
|
+
"selectionAreaClass": {
|
|
427
|
+
"alias": "selectionAreaClass";
|
|
428
|
+
"required": false;
|
|
429
|
+
"isSignal": true;
|
|
430
|
+
};
|
|
431
|
+
"ignoreClasses": {
|
|
432
|
+
"alias": "ignoreClasses";
|
|
433
|
+
"required": false;
|
|
434
|
+
"isSignal": true;
|
|
435
|
+
};
|
|
436
|
+
}, {}, never, never, true, never>;
|
|
437
|
+
}
|
|
438
|
+
export declare class ContentBuilderComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
439
|
+
private static readonly DRAFT_STORAGE_PREFIX;
|
|
440
|
+
readonly editor: NgsHeadlessEditor;
|
|
441
|
+
private readonly globalConfig;
|
|
442
|
+
private readonly htmlSerializer;
|
|
443
|
+
private readonly importer;
|
|
444
|
+
readonly config: import("@angular/core").InputSignal<ContentEditorConfig>;
|
|
445
|
+
/** One insertion menu shared by root controls, nested collections and custom blocks. */
|
|
446
|
+
readonly conversionMenu: import("@angular/core").Signal<Menu>;
|
|
447
|
+
readonly conversionTypes: readonly ContentEditorConvertibleBlockType[];
|
|
448
|
+
readonly blockMenu: import("@angular/core").Signal<Menu>;
|
|
449
|
+
private readonly document;
|
|
450
|
+
private readonly drafts;
|
|
451
|
+
readonly draftStatus: import("@angular/core").WritableSignal<ContentEditorDraftStatus>;
|
|
452
|
+
readonly draftError: import("@angular/core").WritableSignal<string>;
|
|
453
|
+
readonly draftSavedAt: import("@angular/core").WritableSignal<number | null>;
|
|
454
|
+
readonly documentId: import("@angular/core").InputSignal<string | undefined>;
|
|
455
|
+
readonly draftDebounceMs: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
456
|
+
private draftKey;
|
|
457
|
+
private loaded;
|
|
458
|
+
private lastInput;
|
|
459
|
+
private _platformId;
|
|
460
|
+
private _store;
|
|
461
|
+
private readonly dropList;
|
|
462
|
+
readonly connectedDropLists: import("@angular/core").WritableSignal<CdkDropList<ContentEditorBlockScope>[]>;
|
|
463
|
+
private elRef;
|
|
464
|
+
readonly themeSource: HTMLElement;
|
|
465
|
+
private envInjector;
|
|
466
|
+
private cdr;
|
|
467
|
+
private confirmManager;
|
|
468
|
+
private _resolvedScrollContainer;
|
|
469
|
+
private _scrollEffect?;
|
|
470
|
+
private _scrollSubject;
|
|
471
|
+
private _scrollBindSub;
|
|
472
|
+
private _scroll$;
|
|
473
|
+
get scrollContainerScrolled(): Observable<number>;
|
|
474
|
+
private blockDefs;
|
|
475
|
+
content: import("@angular/core").InputSignal<import("@ngstarter-ui/components/headless-editor").NgsHeadlessEditorDocument>;
|
|
476
|
+
contentChangedDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
477
|
+
persistDraft: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
478
|
+
suggestions: import("@angular/core").InputSignal<any>;
|
|
479
|
+
options: import("@angular/core").InputSignal<ContentEditorOptions>;
|
|
480
|
+
scrollContainer: import("@angular/core").InputSignal<string | undefined>;
|
|
481
|
+
readonly contentChanged: import("@angular/core").OutputEmitterRef<import("@ngstarter-ui/components/headless-editor").NgsHeadlessEditorDocument>;
|
|
482
|
+
readonly focusChanged: EventEmitter<void>;
|
|
483
|
+
protected readonly _content: import("@angular/core").Signal<ContentEditorBlockView[]>;
|
|
484
|
+
protected blockDefsMap: Map<string, any>;
|
|
485
|
+
protected blockDefsOptionsMap: Map<string, any>;
|
|
486
|
+
protected _blockDragging: import("@angular/core").WritableSignal<boolean>;
|
|
487
|
+
isSelectionOfBlocksActive: import("@angular/core").WritableSignal<boolean>;
|
|
488
|
+
readonly selectedBlocksModel: SelectionModel<string>;
|
|
489
|
+
commandBar: typeof CommandBarComponent;
|
|
490
|
+
get api(): {
|
|
491
|
+
focusChanged: EventEmitter<void>;
|
|
492
|
+
};
|
|
493
|
+
readonly insertionSuggestions: import("@angular/core").Signal<any[]>;
|
|
494
|
+
readonly menuQuery: import("@angular/core").WritableSignal<string>;
|
|
495
|
+
readonly filteredInsertionSuggestions: import("@angular/core").Signal<any[]>;
|
|
496
|
+
onMenuSearchKeydown(event: KeyboardEvent, target: ContentEditorBlockInsertionTarget): void;
|
|
497
|
+
private readonly componentSources;
|
|
498
|
+
private buildBlockDefMaps;
|
|
499
|
+
private resolvedBlockDefs;
|
|
500
|
+
/** Shared by nested block collections; all edits use this root editor. */
|
|
501
|
+
get rootBuilder(): ContentBuilderComponent;
|
|
502
|
+
getBlockComponent(type: string): any;
|
|
503
|
+
createBlockView(type: string, settings?: {}, content?: any): ContentEditorBlockView;
|
|
504
|
+
getBlockDefOption(type: string, key: string): any;
|
|
505
|
+
ngOnInit(): void;
|
|
506
|
+
constructor();
|
|
507
|
+
ngAfterViewInit(): void;
|
|
508
|
+
/**
|
|
509
|
+
* Public accessor for the resolved scroll container. If not computed yet, it will compute now.
|
|
510
|
+
*/
|
|
511
|
+
getScrollContainer(): Element | Window;
|
|
512
|
+
/**
|
|
513
|
+
* Resolves the scroll container element according to the following rules:
|
|
514
|
+
* - If `scrollContainer` input is provided, uses `closest(selector)` starting from the host element.
|
|
515
|
+
* - If not provided or `closest` returned null, automatically finds the first scrollable parent by walking up the DOM.
|
|
516
|
+
* - Fallback to `document.scrollingElement` or `window` if nothing suitable found.
|
|
517
|
+
*/
|
|
518
|
+
private _computeScrollContainer;
|
|
519
|
+
private _isElementScrollable;
|
|
520
|
+
private _rebindScrollListener;
|
|
521
|
+
appendBlock(type: string, focus?: boolean): void;
|
|
522
|
+
insertBlock(type: string, index: number, options?: object, focus?: boolean, content?: any): ContentEditorBlock;
|
|
523
|
+
private _createBlock;
|
|
524
|
+
addBlock(type: string, options: object, index?: number): void;
|
|
525
|
+
canConvertBlock(id: string): boolean;
|
|
526
|
+
convertBlock(id: string, type: ContentEditorConvertibleBlockType, settings?: Readonly<Record<string, unknown>>): boolean;
|
|
527
|
+
duplicateBlock(blockId: string): void;
|
|
528
|
+
private regenerateChildIds;
|
|
529
|
+
duplicateSelectedBlocks(popover: Popover): void;
|
|
530
|
+
deleteBlock(blockId: string): void;
|
|
531
|
+
setBlockProps(id: string, props: ContentEditorItemProperty[]): void;
|
|
532
|
+
tableWidthAction(id: string): string | null;
|
|
533
|
+
toggleTableWidth(id: string): void;
|
|
534
|
+
insertEmptyBlock(index: number): void;
|
|
535
|
+
updateParagraph(id: string, data: Partial<ContentEditorBlockView>): void;
|
|
536
|
+
chooseBlock(target: ContentEditorBlockInsertionTarget, type: string, options: object): void;
|
|
537
|
+
focusBlock(id: string | null): void;
|
|
538
|
+
isBlockFocused(id: string): boolean;
|
|
539
|
+
isActiveBlock(id: string): boolean;
|
|
540
|
+
drop(event: CdkDragDrop<ContentEditorBlockScope>): void;
|
|
541
|
+
readonly canEnterRoot: (_drag: CdkDrag, drop: CdkDropList) => boolean;
|
|
542
|
+
onTagSelected(tagName: string | null): void;
|
|
543
|
+
getData(): import("@ngstarter-ui/components/headless-editor").NgsHeadlessEditorDocument;
|
|
544
|
+
/** Structural HTML paste splits the active text block without flattening lists/tables. */
|
|
545
|
+
pasteBlocksAtSelection(id: string, imported: ContentEditorDocument, start: number, end: number): boolean;
|
|
546
|
+
/** Validates before replacing the document. Import is one undoable edit. */
|
|
547
|
+
importJson(source: unknown, config?: ContentEditorConfig, options?: ContentEditorImportOptions & ContentEditorImportPlacement): ContentEditorDocument;
|
|
548
|
+
importHtml(html: string, config?: ContentEditorConfig, options?: ContentEditorHtmlImportOptions & ContentEditorImportPlacement): ContentEditorDocument;
|
|
549
|
+
getInsertionTarget(): ContentEditorBlockInsertionTarget;
|
|
550
|
+
private applyImport;
|
|
551
|
+
/** Exports the live document, including nested blocks, through the configured converters. */
|
|
552
|
+
toHtml(config?: ContentEditorConfig): string;
|
|
553
|
+
blockToHtml(block: ContentEditorBlock, config?: ContentEditorConfig): string;
|
|
554
|
+
emitContentChangeEvent(): void;
|
|
555
|
+
selectBlock(blockId: string, multiple?: boolean): void;
|
|
556
|
+
unselectBlock(blockId: string): void;
|
|
557
|
+
unselectSelectedBlocks(): void;
|
|
558
|
+
isBlockSelected(blockId: string): boolean;
|
|
559
|
+
deleteSelectedBlocks(popover?: Popover): void;
|
|
560
|
+
protected _onKeyDown(event: KeyboardEvent): void;
|
|
561
|
+
protected onDragStarted(event: CdkDragStart, block: ContentEditorBlockView): void;
|
|
562
|
+
protected onDragEnded(event: CdkDragStart, block: ContentEditorBlockView): void;
|
|
563
|
+
protected addBlockFromSuggestionMenu(suggestionsMenu: Menu, target: ContentEditorBlockInsertionTarget, type: string, options: object): void;
|
|
564
|
+
protected preventMenuClose(event: Event): void;
|
|
565
|
+
protected setActiveBlockId(event: Event, id: string | null): void;
|
|
566
|
+
protected onFocusChange(origin: string | null, dataBlock: ContentEditorBlockView): void;
|
|
567
|
+
protected onSuggestionsMenuClose(reason: MenuCloseReason): void;
|
|
568
|
+
ngOnDestroy(): void;
|
|
569
|
+
private configureDraft;
|
|
570
|
+
private _getDraftContent;
|
|
571
|
+
private _saveDraft;
|
|
572
|
+
saveDraftNow(): void;
|
|
573
|
+
clearDraft(): void;
|
|
574
|
+
private _canUseDraftStorage;
|
|
575
|
+
private _getDraftStorageKey;
|
|
576
|
+
onSettingsPopoverClose(): void;
|
|
577
|
+
protected _onPaste(event: ClipboardEvent): void;
|
|
578
|
+
private _handleTextPaste;
|
|
579
|
+
private _handleHtmlPaste;
|
|
580
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentBuilderComponent, never>;
|
|
581
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentBuilderComponent, "ngs-content-editor-builder", ["ngsContentEditorBuilder"], {
|
|
582
|
+
"config": {
|
|
583
|
+
"alias": "config";
|
|
584
|
+
"required": false;
|
|
585
|
+
"isSignal": true;
|
|
586
|
+
};
|
|
587
|
+
"documentId": {
|
|
588
|
+
"alias": "documentId";
|
|
589
|
+
"required": false;
|
|
590
|
+
"isSignal": true;
|
|
591
|
+
};
|
|
592
|
+
"draftDebounceMs": {
|
|
593
|
+
"alias": "draftDebounceMs";
|
|
594
|
+
"required": false;
|
|
595
|
+
"isSignal": true;
|
|
596
|
+
};
|
|
597
|
+
"content": {
|
|
598
|
+
"alias": "content";
|
|
599
|
+
"required": false;
|
|
600
|
+
"isSignal": true;
|
|
601
|
+
};
|
|
602
|
+
"contentChangedDelay": {
|
|
603
|
+
"alias": "contentChangedDelay";
|
|
604
|
+
"required": false;
|
|
605
|
+
"isSignal": true;
|
|
606
|
+
};
|
|
607
|
+
"persistDraft": {
|
|
608
|
+
"alias": "persistDraft";
|
|
609
|
+
"required": false;
|
|
610
|
+
"isSignal": true;
|
|
611
|
+
};
|
|
612
|
+
"suggestions": {
|
|
613
|
+
"alias": "suggestions";
|
|
614
|
+
"required": false;
|
|
615
|
+
"isSignal": true;
|
|
616
|
+
};
|
|
617
|
+
"options": {
|
|
618
|
+
"alias": "options";
|
|
619
|
+
"required": false;
|
|
620
|
+
"isSignal": true;
|
|
621
|
+
};
|
|
622
|
+
"scrollContainer": {
|
|
623
|
+
"alias": "scrollContainer";
|
|
624
|
+
"required": false;
|
|
625
|
+
"isSignal": true;
|
|
626
|
+
};
|
|
627
|
+
}, {
|
|
628
|
+
"contentChanged": "contentChanged";
|
|
629
|
+
}, never, never, true, [{
|
|
630
|
+
directive: typeof BlockSelectionDirective;
|
|
631
|
+
inputs: {
|
|
632
|
+
"autoScrollContainerSelector": "autoScrollContainerSelector";
|
|
633
|
+
};
|
|
634
|
+
outputs: {};
|
|
635
|
+
}]>;
|
|
636
|
+
}
|
|
567
637
|
interface ContentEditorRenderItem {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
declare class ContentEditorRenderer {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
638
|
+
block: NgsHeadlessEditorBlock;
|
|
639
|
+
component: Type<unknown> | null;
|
|
640
|
+
inputs: ContentEditorBlockRendererInputs;
|
|
641
|
+
}
|
|
642
|
+
export declare class ContentEditorRenderer {
|
|
643
|
+
private readonly globalConfig;
|
|
644
|
+
private readonly parentConfig;
|
|
645
|
+
readonly resolvedConfig: import("@angular/core").Signal<ContentEditorConfig>;
|
|
646
|
+
private readonly htmlSerializer;
|
|
647
|
+
readonly config: import("@angular/core").InputSignal<ContentEditorConfig>;
|
|
648
|
+
private readonly providedRendererGroups;
|
|
649
|
+
content: import("@angular/core").InputSignal<import("@ngstarter-ui/components/headless-editor").NgsHeadlessEditorDocument>;
|
|
650
|
+
blocks: import("@angular/core").InputSignal<readonly NgsHeadlessEditorBlock<unknown>[] | null>;
|
|
651
|
+
toHtml(config?: ContentEditorConfig): string;
|
|
652
|
+
readonly rendererMap: import("@angular/core").Signal<Map<string, Type<unknown>>>;
|
|
653
|
+
protected readonly items: import("@angular/core").Signal<ContentEditorRenderItem[]>;
|
|
654
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorRenderer, never>;
|
|
655
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorRenderer, "ngs-content-editor-renderer", ["ngsContentEditorRenderer"], {
|
|
656
|
+
"config": {
|
|
657
|
+
"alias": "config";
|
|
658
|
+
"required": false;
|
|
659
|
+
"isSignal": true;
|
|
660
|
+
};
|
|
661
|
+
"content": {
|
|
662
|
+
"alias": "content";
|
|
663
|
+
"required": false;
|
|
664
|
+
"isSignal": true;
|
|
665
|
+
};
|
|
666
|
+
"blocks": {
|
|
667
|
+
"alias": "blocks";
|
|
668
|
+
"required": false;
|
|
669
|
+
"isSignal": true;
|
|
670
|
+
};
|
|
671
|
+
}, {}, never, never, true, never>;
|
|
672
|
+
}
|
|
673
|
+
export declare const CONTENT_EDITOR_BLOCK_RENDERERS: InjectionToken<readonly (readonly ContentEditorBlockRendererDef[])[]>;
|
|
674
|
+
export declare function provideContentEditorRenderers(renderers: ReadonlyArray<ContentEditorBlockRendererDef>): EnvironmentProviders;
|
|
675
|
+
export declare function provideContentEditorRenderer(renderer: ContentEditorBlockRendererDef): EnvironmentProviders;
|
|
676
|
+
export declare const CONTENT_EDITOR_DEFAULT_RENDERERS: ReadonlyArray<ContentEditorBlockRendererDef>;
|
|
677
|
+
export interface ContentEditorCodeRendererSettings {
|
|
678
|
+
language?: string;
|
|
679
|
+
}
|
|
680
|
+
export declare class ContentEditorCodeRenderer implements ContentEditorBlockRendererInputSignals<unknown, ContentEditorCodeRendererSettings> {
|
|
681
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
682
|
+
id: import("@angular/core").InputSignal<string>;
|
|
683
|
+
type: import("@angular/core").InputSignal<string>;
|
|
684
|
+
content: import("@angular/core").InputSignal<unknown>;
|
|
685
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
686
|
+
settings: import("@angular/core").InputSignal<ContentEditorCodeRendererSettings>;
|
|
687
|
+
index: import("@angular/core").InputSignal<number>;
|
|
688
|
+
protected readonly code: import("@angular/core").Signal<string>;
|
|
689
|
+
protected readonly language: import("@angular/core").Signal<string>;
|
|
690
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorCodeRenderer, never>;
|
|
691
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorCodeRenderer, "ngs-content-editor-code-renderer", never, {
|
|
692
|
+
"block": {
|
|
693
|
+
"alias": "block";
|
|
694
|
+
"required": false;
|
|
695
|
+
"isSignal": true;
|
|
696
|
+
};
|
|
697
|
+
"id": {
|
|
698
|
+
"alias": "id";
|
|
699
|
+
"required": false;
|
|
700
|
+
"isSignal": true;
|
|
701
|
+
};
|
|
702
|
+
"type": {
|
|
703
|
+
"alias": "type";
|
|
704
|
+
"required": false;
|
|
705
|
+
"isSignal": true;
|
|
706
|
+
};
|
|
707
|
+
"content": {
|
|
708
|
+
"alias": "content";
|
|
709
|
+
"required": false;
|
|
710
|
+
"isSignal": true;
|
|
711
|
+
};
|
|
712
|
+
"props": {
|
|
713
|
+
"alias": "props";
|
|
714
|
+
"required": false;
|
|
715
|
+
"isSignal": true;
|
|
716
|
+
};
|
|
717
|
+
"settings": {
|
|
718
|
+
"alias": "settings";
|
|
719
|
+
"required": false;
|
|
720
|
+
"isSignal": true;
|
|
721
|
+
};
|
|
722
|
+
"index": {
|
|
723
|
+
"alias": "index";
|
|
724
|
+
"required": false;
|
|
725
|
+
"isSignal": true;
|
|
726
|
+
};
|
|
727
|
+
}, {}, never, never, true, never>;
|
|
728
|
+
}
|
|
729
|
+
export declare class ContentEditorDividerRenderer implements ContentEditorBlockRendererInputSignals<unknown, Record<string, unknown>> {
|
|
730
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
731
|
+
id: import("@angular/core").InputSignal<string>;
|
|
732
|
+
type: import("@angular/core").InputSignal<string>;
|
|
733
|
+
content: import("@angular/core").InputSignal<unknown>;
|
|
734
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
735
|
+
settings: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
736
|
+
index: import("@angular/core").InputSignal<number>;
|
|
737
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorDividerRenderer, never>;
|
|
738
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorDividerRenderer, "ngs-content-editor-divider-renderer", never, {
|
|
739
|
+
"block": {
|
|
740
|
+
"alias": "block";
|
|
741
|
+
"required": false;
|
|
742
|
+
"isSignal": true;
|
|
743
|
+
};
|
|
744
|
+
"id": {
|
|
745
|
+
"alias": "id";
|
|
746
|
+
"required": false;
|
|
747
|
+
"isSignal": true;
|
|
748
|
+
};
|
|
749
|
+
"type": {
|
|
750
|
+
"alias": "type";
|
|
751
|
+
"required": false;
|
|
752
|
+
"isSignal": true;
|
|
753
|
+
};
|
|
754
|
+
"content": {
|
|
755
|
+
"alias": "content";
|
|
756
|
+
"required": false;
|
|
757
|
+
"isSignal": true;
|
|
758
|
+
};
|
|
759
|
+
"props": {
|
|
760
|
+
"alias": "props";
|
|
761
|
+
"required": false;
|
|
762
|
+
"isSignal": true;
|
|
763
|
+
};
|
|
764
|
+
"settings": {
|
|
765
|
+
"alias": "settings";
|
|
766
|
+
"required": false;
|
|
767
|
+
"isSignal": true;
|
|
768
|
+
};
|
|
769
|
+
"index": {
|
|
770
|
+
"alias": "index";
|
|
771
|
+
"required": false;
|
|
772
|
+
"isSignal": true;
|
|
773
|
+
};
|
|
774
|
+
}, {}, never, never, true, never>;
|
|
775
|
+
}
|
|
776
|
+
export declare class ContentEditorEmbedRenderer implements ContentEditorBlockRendererInputSignals<Partial<ContentEditorEmbedContent> | null, Partial<ContentEditorEmbedBlockSettings>> {
|
|
777
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
778
|
+
id: import("@angular/core").InputSignal<string>;
|
|
779
|
+
type: import("@angular/core").InputSignal<string>;
|
|
780
|
+
content: import("@angular/core").InputSignal<Partial<ContentEditorEmbedContent> | null>;
|
|
781
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
782
|
+
settings: import("@angular/core").InputSignal<Partial<ContentEditorEmbedBlockSettings>>;
|
|
783
|
+
index: import("@angular/core").InputSignal<number>;
|
|
784
|
+
protected readonly url: import("@angular/core").Signal<string>;
|
|
785
|
+
protected readonly embedType: import("@angular/core").Signal<string>;
|
|
786
|
+
protected readonly width: import("@angular/core").Signal<number>;
|
|
787
|
+
protected readonly height: import("@angular/core").Signal<number>;
|
|
788
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorEmbedRenderer, never>;
|
|
789
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorEmbedRenderer, "ngs-content-editor-embed-renderer", never, {
|
|
790
|
+
"block": {
|
|
791
|
+
"alias": "block";
|
|
792
|
+
"required": false;
|
|
793
|
+
"isSignal": true;
|
|
794
|
+
};
|
|
795
|
+
"id": {
|
|
796
|
+
"alias": "id";
|
|
797
|
+
"required": false;
|
|
798
|
+
"isSignal": true;
|
|
799
|
+
};
|
|
800
|
+
"type": {
|
|
801
|
+
"alias": "type";
|
|
802
|
+
"required": false;
|
|
803
|
+
"isSignal": true;
|
|
804
|
+
};
|
|
805
|
+
"content": {
|
|
806
|
+
"alias": "content";
|
|
807
|
+
"required": false;
|
|
808
|
+
"isSignal": true;
|
|
809
|
+
};
|
|
810
|
+
"props": {
|
|
811
|
+
"alias": "props";
|
|
812
|
+
"required": false;
|
|
813
|
+
"isSignal": true;
|
|
814
|
+
};
|
|
815
|
+
"settings": {
|
|
816
|
+
"alias": "settings";
|
|
817
|
+
"required": false;
|
|
818
|
+
"isSignal": true;
|
|
819
|
+
};
|
|
820
|
+
"index": {
|
|
821
|
+
"alias": "index";
|
|
822
|
+
"required": false;
|
|
823
|
+
"isSignal": true;
|
|
824
|
+
};
|
|
825
|
+
}, {}, never, never, true, never>;
|
|
826
|
+
}
|
|
639
827
|
type ContentEditorTextAlignment = 'left' | 'center' | 'right' | 'justify';
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
id:
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
828
|
+
export declare class ContentEditorHeadingRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorText, Partial<ContentEditorHeadingBlockSettings>> {
|
|
829
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
830
|
+
id: import("@angular/core").InputSignal<string>;
|
|
831
|
+
type: import("@angular/core").InputSignal<string>;
|
|
832
|
+
content: import("@angular/core").InputSignal<ContentEditorText>;
|
|
833
|
+
settings: import("@angular/core").InputSignal<Partial<ContentEditorHeadingBlockSettings>>;
|
|
834
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
835
|
+
index: import("@angular/core").InputSignal<number>;
|
|
836
|
+
protected readonly runs: import("@angular/core").Signal<ContentEditorText>;
|
|
837
|
+
protected readonly level: import("@angular/core").Signal<number>;
|
|
838
|
+
protected readonly alignment: import("@angular/core").Signal<ContentEditorTextAlignment>;
|
|
839
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorHeadingRenderer, never>;
|
|
840
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorHeadingRenderer, "ngs-content-editor-heading-renderer", never, {
|
|
841
|
+
"block": {
|
|
842
|
+
"alias": "block";
|
|
843
|
+
"required": false;
|
|
844
|
+
"isSignal": true;
|
|
845
|
+
};
|
|
846
|
+
"id": {
|
|
847
|
+
"alias": "id";
|
|
848
|
+
"required": false;
|
|
849
|
+
"isSignal": true;
|
|
850
|
+
};
|
|
851
|
+
"type": {
|
|
852
|
+
"alias": "type";
|
|
853
|
+
"required": false;
|
|
854
|
+
"isSignal": true;
|
|
855
|
+
};
|
|
856
|
+
"content": {
|
|
857
|
+
"alias": "content";
|
|
858
|
+
"required": false;
|
|
859
|
+
"isSignal": true;
|
|
860
|
+
};
|
|
861
|
+
"settings": {
|
|
862
|
+
"alias": "settings";
|
|
863
|
+
"required": false;
|
|
864
|
+
"isSignal": true;
|
|
865
|
+
};
|
|
866
|
+
"props": {
|
|
867
|
+
"alias": "props";
|
|
868
|
+
"required": false;
|
|
869
|
+
"isSignal": true;
|
|
870
|
+
};
|
|
871
|
+
"index": {
|
|
872
|
+
"alias": "index";
|
|
873
|
+
"required": false;
|
|
874
|
+
"isSignal": true;
|
|
875
|
+
};
|
|
876
|
+
}, {}, never, never, true, never>;
|
|
877
|
+
}
|
|
878
|
+
export declare class ContentEditorImageRenderer implements ContentEditorBlockRendererInputSignals<Partial<ContentEditorImageContent> | null, Partial<ContentEditorImageBlockSettings>> {
|
|
879
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
880
|
+
id: import("@angular/core").InputSignal<string>;
|
|
881
|
+
type: import("@angular/core").InputSignal<string>;
|
|
882
|
+
content: import("@angular/core").InputSignal<Partial<ContentEditorImageContent> | null>;
|
|
883
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
884
|
+
settings: import("@angular/core").InputSignal<Partial<ContentEditorImageBlockSettings>>;
|
|
885
|
+
index: import("@angular/core").InputSignal<number>;
|
|
886
|
+
protected readonly src: import("@angular/core").Signal<string>;
|
|
887
|
+
protected readonly alt: import("@angular/core").Signal<string>;
|
|
888
|
+
protected readonly width: import("@angular/core").Signal<number | null>;
|
|
889
|
+
protected readonly height: import("@angular/core").Signal<number | null>;
|
|
890
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorImageRenderer, never>;
|
|
891
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorImageRenderer, "ngs-content-editor-image-renderer", never, {
|
|
892
|
+
"block": {
|
|
893
|
+
"alias": "block";
|
|
894
|
+
"required": false;
|
|
895
|
+
"isSignal": true;
|
|
896
|
+
};
|
|
897
|
+
"id": {
|
|
898
|
+
"alias": "id";
|
|
899
|
+
"required": false;
|
|
900
|
+
"isSignal": true;
|
|
901
|
+
};
|
|
902
|
+
"type": {
|
|
903
|
+
"alias": "type";
|
|
904
|
+
"required": false;
|
|
905
|
+
"isSignal": true;
|
|
906
|
+
};
|
|
907
|
+
"content": {
|
|
908
|
+
"alias": "content";
|
|
909
|
+
"required": false;
|
|
910
|
+
"isSignal": true;
|
|
911
|
+
};
|
|
912
|
+
"props": {
|
|
913
|
+
"alias": "props";
|
|
914
|
+
"required": false;
|
|
915
|
+
"isSignal": true;
|
|
916
|
+
};
|
|
917
|
+
"settings": {
|
|
918
|
+
"alias": "settings";
|
|
919
|
+
"required": false;
|
|
920
|
+
"isSignal": true;
|
|
921
|
+
};
|
|
922
|
+
"index": {
|
|
923
|
+
"alias": "index";
|
|
924
|
+
"required": false;
|
|
925
|
+
"isSignal": true;
|
|
926
|
+
};
|
|
927
|
+
}, {}, never, never, true, never>;
|
|
928
|
+
}
|
|
929
|
+
export declare class ContentEditorListRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorListItem[], Partial<ContentEditorListSettings>> {
|
|
930
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
931
|
+
id: import("@angular/core").InputSignal<string>;
|
|
932
|
+
type: import("@angular/core").InputSignal<string>;
|
|
933
|
+
content: import("@angular/core").InputSignal<ContentEditorListItem[]>;
|
|
934
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
935
|
+
settings: import("@angular/core").InputSignal<Partial<ContentEditorListSettings>>;
|
|
936
|
+
index: import("@angular/core").InputSignal<number>;
|
|
937
|
+
protected readonly items: import("@angular/core").Signal<ContentEditorListItem[]>;
|
|
938
|
+
protected readonly listStyle: import("@angular/core").Signal<string>;
|
|
939
|
+
protected childItems(item: ContentEditorListItem): ContentEditorListItem[];
|
|
940
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorListRenderer, never>;
|
|
941
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorListRenderer, "ngs-content-editor-list-renderer", never, {
|
|
942
|
+
"block": {
|
|
943
|
+
"alias": "block";
|
|
944
|
+
"required": false;
|
|
945
|
+
"isSignal": true;
|
|
946
|
+
};
|
|
947
|
+
"id": {
|
|
948
|
+
"alias": "id";
|
|
949
|
+
"required": false;
|
|
950
|
+
"isSignal": true;
|
|
951
|
+
};
|
|
952
|
+
"type": {
|
|
953
|
+
"alias": "type";
|
|
954
|
+
"required": false;
|
|
955
|
+
"isSignal": true;
|
|
956
|
+
};
|
|
957
|
+
"content": {
|
|
958
|
+
"alias": "content";
|
|
959
|
+
"required": false;
|
|
960
|
+
"isSignal": true;
|
|
961
|
+
};
|
|
962
|
+
"props": {
|
|
963
|
+
"alias": "props";
|
|
964
|
+
"required": false;
|
|
965
|
+
"isSignal": true;
|
|
966
|
+
};
|
|
967
|
+
"settings": {
|
|
968
|
+
"alias": "settings";
|
|
969
|
+
"required": false;
|
|
970
|
+
"isSignal": true;
|
|
971
|
+
};
|
|
972
|
+
"index": {
|
|
973
|
+
"alias": "index";
|
|
974
|
+
"required": false;
|
|
975
|
+
"isSignal": true;
|
|
976
|
+
};
|
|
977
|
+
}, {}, never, never, true, never>;
|
|
978
|
+
}
|
|
979
|
+
export declare class ContentEditorParagraphRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorText, Record<string, unknown>> {
|
|
980
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
981
|
+
id: import("@angular/core").InputSignal<string>;
|
|
982
|
+
type: import("@angular/core").InputSignal<string>;
|
|
983
|
+
content: import("@angular/core").InputSignal<ContentEditorText>;
|
|
984
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
985
|
+
settings: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
986
|
+
index: import("@angular/core").InputSignal<number>;
|
|
987
|
+
protected readonly runs: import("@angular/core").Signal<ContentEditorText>;
|
|
988
|
+
protected readonly alignment: import("@angular/core").Signal<ContentEditorTextAlignment>;
|
|
989
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorParagraphRenderer, never>;
|
|
990
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorParagraphRenderer, "ngs-content-editor-paragraph-renderer", never, {
|
|
991
|
+
"block": {
|
|
992
|
+
"alias": "block";
|
|
993
|
+
"required": false;
|
|
994
|
+
"isSignal": true;
|
|
995
|
+
};
|
|
996
|
+
"id": {
|
|
997
|
+
"alias": "id";
|
|
998
|
+
"required": false;
|
|
999
|
+
"isSignal": true;
|
|
1000
|
+
};
|
|
1001
|
+
"type": {
|
|
1002
|
+
"alias": "type";
|
|
1003
|
+
"required": false;
|
|
1004
|
+
"isSignal": true;
|
|
1005
|
+
};
|
|
1006
|
+
"content": {
|
|
1007
|
+
"alias": "content";
|
|
1008
|
+
"required": false;
|
|
1009
|
+
"isSignal": true;
|
|
1010
|
+
};
|
|
1011
|
+
"props": {
|
|
1012
|
+
"alias": "props";
|
|
1013
|
+
"required": false;
|
|
1014
|
+
"isSignal": true;
|
|
1015
|
+
};
|
|
1016
|
+
"settings": {
|
|
1017
|
+
"alias": "settings";
|
|
1018
|
+
"required": false;
|
|
1019
|
+
"isSignal": true;
|
|
1020
|
+
};
|
|
1021
|
+
"index": {
|
|
1022
|
+
"alias": "index";
|
|
1023
|
+
"required": false;
|
|
1024
|
+
"isSignal": true;
|
|
1025
|
+
};
|
|
1026
|
+
}, {}, never, never, true, never>;
|
|
1027
|
+
}
|
|
1028
|
+
export interface ContentEditorQuoteRendererContentPart {
|
|
1029
|
+
content?: ContentEditorText;
|
|
1030
|
+
props?: ContentEditorItemProperty[];
|
|
1031
|
+
}
|
|
1032
|
+
export interface ContentEditorQuoteRendererContent {
|
|
1033
|
+
cite?: ContentEditorQuoteRendererContentPart;
|
|
1034
|
+
caption?: ContentEditorQuoteRendererContentPart;
|
|
1035
|
+
}
|
|
1036
|
+
export declare class ContentEditorQuoteRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorQuoteRendererContent | null, Record<string, unknown>> {
|
|
1037
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
1038
|
+
id: import("@angular/core").InputSignal<string>;
|
|
1039
|
+
type: import("@angular/core").InputSignal<string>;
|
|
1040
|
+
content: import("@angular/core").InputSignal<ContentEditorQuoteRendererContent | null>;
|
|
1041
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
1042
|
+
settings: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
1043
|
+
index: import("@angular/core").InputSignal<number>;
|
|
1044
|
+
protected readonly quoteRuns: import("@angular/core").Signal<ContentEditorText>;
|
|
1045
|
+
protected readonly captionRuns: import("@angular/core").Signal<ContentEditorText>;
|
|
1046
|
+
protected readonly hasCaption: import("@angular/core").Signal<boolean>;
|
|
1047
|
+
protected readonly quoteAlignment: import("@angular/core").Signal<ContentEditorTextAlignment>;
|
|
1048
|
+
protected readonly captionAlignment: import("@angular/core").Signal<ContentEditorTextAlignment>;
|
|
1049
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorQuoteRenderer, never>;
|
|
1050
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorQuoteRenderer, "ngs-content-editor-quote-renderer", never, {
|
|
1051
|
+
"block": {
|
|
1052
|
+
"alias": "block";
|
|
1053
|
+
"required": false;
|
|
1054
|
+
"isSignal": true;
|
|
1055
|
+
};
|
|
1056
|
+
"id": {
|
|
1057
|
+
"alias": "id";
|
|
1058
|
+
"required": false;
|
|
1059
|
+
"isSignal": true;
|
|
1060
|
+
};
|
|
1061
|
+
"type": {
|
|
1062
|
+
"alias": "type";
|
|
1063
|
+
"required": false;
|
|
1064
|
+
"isSignal": true;
|
|
1065
|
+
};
|
|
1066
|
+
"content": {
|
|
1067
|
+
"alias": "content";
|
|
1068
|
+
"required": false;
|
|
1069
|
+
"isSignal": true;
|
|
1070
|
+
};
|
|
1071
|
+
"props": {
|
|
1072
|
+
"alias": "props";
|
|
1073
|
+
"required": false;
|
|
1074
|
+
"isSignal": true;
|
|
1075
|
+
};
|
|
1076
|
+
"settings": {
|
|
1077
|
+
"alias": "settings";
|
|
1078
|
+
"required": false;
|
|
1079
|
+
"isSignal": true;
|
|
1080
|
+
};
|
|
1081
|
+
"index": {
|
|
1082
|
+
"alias": "index";
|
|
1083
|
+
"required": false;
|
|
1084
|
+
"isSignal": true;
|
|
1085
|
+
};
|
|
1086
|
+
}, {}, never, never, true, never>;
|
|
1087
|
+
}
|
|
1088
|
+
export interface ContentEditorTableCell {
|
|
1089
|
+
content?: ContentEditorText;
|
|
1090
|
+
props?: unknown[];
|
|
1091
|
+
styles?: Record<string, unknown>;
|
|
1092
|
+
options?: {
|
|
1093
|
+
colspan?: number;
|
|
1094
|
+
rowspan?: number;
|
|
1095
|
+
width?: number | string;
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
export declare class ContentEditorTableRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorTableCell[][], ContentEditorTableBlockSettings> {
|
|
1099
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
1100
|
+
id: import("@angular/core").InputSignal<string>;
|
|
1101
|
+
type: import("@angular/core").InputSignal<string>;
|
|
1102
|
+
content: import("@angular/core").InputSignal<ContentEditorTableCell[][]>;
|
|
1103
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
1104
|
+
settings: import("@angular/core").InputSignal<ContentEditorTableBlockSettings>;
|
|
1105
|
+
index: import("@angular/core").InputSignal<number>;
|
|
1106
|
+
protected readonly header: import("@angular/core").Signal<boolean>;
|
|
1107
|
+
protected readonly fullWidth: import("@angular/core").Signal<boolean>;
|
|
1108
|
+
protected readonly rows: import("@angular/core").Signal<ContentEditorTableCell[][]>;
|
|
1109
|
+
protected readonly firstRow: import("@angular/core").Signal<ContentEditorTableCell[]>;
|
|
1110
|
+
protected width(cell: ContentEditorTableCell): number | null;
|
|
1111
|
+
protected colSpan(cell: ContentEditorTableCell): number;
|
|
1112
|
+
protected rowSpan(cell: ContentEditorTableCell): number;
|
|
1113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorTableRenderer, never>;
|
|
1114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorTableRenderer, "ngs-content-editor-table-renderer", never, {
|
|
1115
|
+
"block": {
|
|
1116
|
+
"alias": "block";
|
|
1117
|
+
"required": false;
|
|
1118
|
+
"isSignal": true;
|
|
1119
|
+
};
|
|
1120
|
+
"id": {
|
|
1121
|
+
"alias": "id";
|
|
1122
|
+
"required": false;
|
|
1123
|
+
"isSignal": true;
|
|
1124
|
+
};
|
|
1125
|
+
"type": {
|
|
1126
|
+
"alias": "type";
|
|
1127
|
+
"required": false;
|
|
1128
|
+
"isSignal": true;
|
|
1129
|
+
};
|
|
1130
|
+
"content": {
|
|
1131
|
+
"alias": "content";
|
|
1132
|
+
"required": false;
|
|
1133
|
+
"isSignal": true;
|
|
1134
|
+
};
|
|
1135
|
+
"props": {
|
|
1136
|
+
"alias": "props";
|
|
1137
|
+
"required": false;
|
|
1138
|
+
"isSignal": true;
|
|
1139
|
+
};
|
|
1140
|
+
"settings": {
|
|
1141
|
+
"alias": "settings";
|
|
1142
|
+
"required": false;
|
|
1143
|
+
"isSignal": true;
|
|
1144
|
+
};
|
|
1145
|
+
"index": {
|
|
1146
|
+
"alias": "index";
|
|
1147
|
+
"required": false;
|
|
1148
|
+
"isSignal": true;
|
|
1149
|
+
};
|
|
1150
|
+
}, {}, never, never, true, never>;
|
|
1151
|
+
}
|
|
1152
|
+
export declare class ContentEditorVideoRenderer implements ContentEditorBlockRendererInputSignals<Partial<ContentEditorVideoContent> | null, Partial<ContentEditorVideoBlockSettings>> {
|
|
1153
|
+
block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
1154
|
+
id: import("@angular/core").InputSignal<string>;
|
|
1155
|
+
type: import("@angular/core").InputSignal<string>;
|
|
1156
|
+
content: import("@angular/core").InputSignal<Partial<ContentEditorVideoContent> | null>;
|
|
1157
|
+
props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
1158
|
+
settings: import("@angular/core").InputSignal<Partial<ContentEditorVideoBlockSettings>>;
|
|
1159
|
+
index: import("@angular/core").InputSignal<number>;
|
|
1160
|
+
protected readonly src: import("@angular/core").Signal<string>;
|
|
1161
|
+
protected readonly caption: import("@angular/core").Signal<string>;
|
|
1162
|
+
protected readonly width: import("@angular/core").Signal<number | null>;
|
|
1163
|
+
protected readonly height: import("@angular/core").Signal<number | null>;
|
|
1164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorVideoRenderer, never>;
|
|
1165
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorVideoRenderer, "ngs-content-editor-video-renderer", never, {
|
|
1166
|
+
"block": {
|
|
1167
|
+
"alias": "block";
|
|
1168
|
+
"required": false;
|
|
1169
|
+
"isSignal": true;
|
|
1170
|
+
};
|
|
1171
|
+
"id": {
|
|
1172
|
+
"alias": "id";
|
|
1173
|
+
"required": false;
|
|
1174
|
+
"isSignal": true;
|
|
1175
|
+
};
|
|
1176
|
+
"type": {
|
|
1177
|
+
"alias": "type";
|
|
1178
|
+
"required": false;
|
|
1179
|
+
"isSignal": true;
|
|
1180
|
+
};
|
|
1181
|
+
"content": {
|
|
1182
|
+
"alias": "content";
|
|
1183
|
+
"required": false;
|
|
1184
|
+
"isSignal": true;
|
|
1185
|
+
};
|
|
1186
|
+
"props": {
|
|
1187
|
+
"alias": "props";
|
|
1188
|
+
"required": false;
|
|
1189
|
+
"isSignal": true;
|
|
1190
|
+
};
|
|
1191
|
+
"settings": {
|
|
1192
|
+
"alias": "settings";
|
|
1193
|
+
"required": false;
|
|
1194
|
+
"isSignal": true;
|
|
1195
|
+
};
|
|
1196
|
+
"index": {
|
|
1197
|
+
"alias": "index";
|
|
1198
|
+
"required": false;
|
|
1199
|
+
"isSignal": true;
|
|
1200
|
+
};
|
|
1201
|
+
}, {}, never, never, true, never>;
|
|
1202
|
+
}
|
|
1203
|
+
export interface ISelectionPopupComponent {
|
|
1204
|
+
observedElement?: unknown;
|
|
1205
|
+
}
|
|
1206
|
+
export declare class TextSelectionPopupDirective implements OnDestroy {
|
|
1207
|
+
private overlay;
|
|
1208
|
+
private viewContainerRef;
|
|
1209
|
+
private elementRef;
|
|
1210
|
+
private renderer;
|
|
1211
|
+
private overlayContainer;
|
|
1212
|
+
private ngZone;
|
|
1213
|
+
targetComponent: Type<ISelectionPopupComponent>;
|
|
1214
|
+
closestContentObserverClass: string | null;
|
|
1215
|
+
tagSelected: EventEmitter<string | null>;
|
|
1216
|
+
private themeCleanup;
|
|
1217
|
+
private overlayRef;
|
|
1218
|
+
private hostElement;
|
|
1219
|
+
private currentSelectionRange;
|
|
1220
|
+
private documentClickListener;
|
|
1221
|
+
private positionStrategy;
|
|
1222
|
+
private scrollListener;
|
|
1223
|
+
private popupResizeObserver;
|
|
1224
|
+
private scrollSubject;
|
|
1225
|
+
private scrollSubscription;
|
|
1226
|
+
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef<HTMLElement>, renderer: Renderer2, overlayContainer: OverlayContainer, ngZone: NgZone);
|
|
1227
|
+
onDocumentClickHostListener(event: MouseEvent): void;
|
|
1228
|
+
onDocumentKeyDown(event: KeyboardEvent): void;
|
|
1229
|
+
private processSelection;
|
|
1230
|
+
private showPopup;
|
|
1231
|
+
private closePopupIfNeeded;
|
|
1232
|
+
private closePopup;
|
|
1233
|
+
private addScrollListener;
|
|
1234
|
+
private removeScrollListener;
|
|
1235
|
+
private updatePopupPosition;
|
|
1236
|
+
private findClosestElementWithClass;
|
|
1237
|
+
private getContainingTagName;
|
|
1238
|
+
private addDocumentClickListener;
|
|
1239
|
+
private removeDocumentClickListener;
|
|
1240
|
+
private handleDocumentClick;
|
|
1241
|
+
private isEventInsidePopup;
|
|
1242
|
+
private isClickInsidePopup;
|
|
1243
|
+
private isFocusInsidePopup;
|
|
1244
|
+
private areRangesEqual;
|
|
1245
|
+
ngOnDestroy(): void;
|
|
1246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextSelectionPopupDirective, never>;
|
|
1247
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextSelectionPopupDirective, "[ngsTextSelectionPopup]", never, {
|
|
1248
|
+
"targetComponent": {
|
|
1249
|
+
"alias": "targetComponent";
|
|
1250
|
+
"required": false;
|
|
1251
|
+
};
|
|
1252
|
+
"closestContentObserverClass": {
|
|
1253
|
+
"alias": "closestContentObserverClass";
|
|
1254
|
+
"required": false;
|
|
1255
|
+
};
|
|
1256
|
+
}, {
|
|
1257
|
+
"tagSelected": "tagSelected";
|
|
1258
|
+
}, never, never, true, never>;
|
|
704
1259
|
}
|
|
705
|
-
interface ContentEditorQuoteRendererContent {
|
|
706
|
-
cite?: ContentEditorQuoteRendererContentPart;
|
|
707
|
-
caption?: ContentEditorQuoteRendererContentPart;
|
|
708
|
-
}
|
|
709
|
-
declare class ContentEditorQuoteRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorQuoteRendererContent | null, Record<string, unknown>> {
|
|
710
|
-
block: _angular_core.InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
711
|
-
id: _angular_core.InputSignal<string>;
|
|
712
|
-
type: _angular_core.InputSignal<string>;
|
|
713
|
-
content: _angular_core.InputSignal<ContentEditorQuoteRendererContent | null>;
|
|
714
|
-
props: _angular_core.InputSignal<ContentEditorItemProperty[]>;
|
|
715
|
-
settings: _angular_core.InputSignal<Record<string, unknown>>;
|
|
716
|
-
index: _angular_core.InputSignal<number>;
|
|
717
|
-
protected readonly quoteRuns: _angular_core.Signal<ContentEditorText>;
|
|
718
|
-
protected readonly captionRuns: _angular_core.Signal<ContentEditorText>;
|
|
719
|
-
protected readonly hasCaption: _angular_core.Signal<boolean>;
|
|
720
|
-
protected readonly quoteAlignment: _angular_core.Signal<ContentEditorTextAlignment>;
|
|
721
|
-
protected readonly captionAlignment: _angular_core.Signal<ContentEditorTextAlignment>;
|
|
722
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentEditorQuoteRenderer, never>;
|
|
723
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentEditorQuoteRenderer, "ngs-content-editor-quote-renderer", never, { "block": { "alias": "block"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "props": { "alias": "props"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
interface ContentEditorTableCell {
|
|
727
|
-
content?: ContentEditorText;
|
|
728
|
-
props?: unknown[];
|
|
729
|
-
styles?: Record<string, unknown>;
|
|
730
|
-
options?: {
|
|
731
|
-
colspan?: number;
|
|
732
|
-
rowspan?: number;
|
|
733
|
-
width?: number | string;
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
declare class ContentEditorTableRenderer implements ContentEditorBlockRendererInputSignals<ContentEditorTableCell[][], ContentEditorTableBlockSettings> {
|
|
737
|
-
block: _angular_core.InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
738
|
-
id: _angular_core.InputSignal<string>;
|
|
739
|
-
type: _angular_core.InputSignal<string>;
|
|
740
|
-
content: _angular_core.InputSignal<ContentEditorTableCell[][]>;
|
|
741
|
-
props: _angular_core.InputSignal<ContentEditorItemProperty[]>;
|
|
742
|
-
settings: _angular_core.InputSignal<ContentEditorTableBlockSettings>;
|
|
743
|
-
index: _angular_core.InputSignal<number>;
|
|
744
|
-
protected readonly header: _angular_core.Signal<boolean>;
|
|
745
|
-
protected readonly fullWidth: _angular_core.Signal<boolean>;
|
|
746
|
-
protected readonly rows: _angular_core.Signal<ContentEditorTableCell[][]>;
|
|
747
|
-
protected readonly firstRow: _angular_core.Signal<ContentEditorTableCell[]>;
|
|
748
|
-
protected width(cell: ContentEditorTableCell): number | null;
|
|
749
|
-
protected colSpan(cell: ContentEditorTableCell): number;
|
|
750
|
-
protected rowSpan(cell: ContentEditorTableCell): number;
|
|
751
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentEditorTableRenderer, never>;
|
|
752
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentEditorTableRenderer, "ngs-content-editor-table-renderer", never, { "block": { "alias": "block"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "props": { "alias": "props"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
declare class ContentEditorVideoRenderer implements ContentEditorBlockRendererInputSignals<Partial<ContentEditorVideoContent> | null, Partial<ContentEditorVideoBlockSettings>> {
|
|
756
|
-
block: _angular_core.InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
757
|
-
id: _angular_core.InputSignal<string>;
|
|
758
|
-
type: _angular_core.InputSignal<string>;
|
|
759
|
-
content: _angular_core.InputSignal<Partial<ContentEditorVideoContent> | null>;
|
|
760
|
-
props: _angular_core.InputSignal<ContentEditorItemProperty[]>;
|
|
761
|
-
settings: _angular_core.InputSignal<Partial<ContentEditorVideoBlockSettings>>;
|
|
762
|
-
index: _angular_core.InputSignal<number>;
|
|
763
|
-
protected readonly src: _angular_core.Signal<string>;
|
|
764
|
-
protected readonly caption: _angular_core.Signal<string>;
|
|
765
|
-
protected readonly width: _angular_core.Signal<number | null>;
|
|
766
|
-
protected readonly height: _angular_core.Signal<number | null>;
|
|
767
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentEditorVideoRenderer, never>;
|
|
768
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentEditorVideoRenderer, "ngs-content-editor-video-renderer", never, { "block": { "alias": "block"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "props": { "alias": "props"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
interface ISelectionPopupComponent {
|
|
772
|
-
observedElement?: unknown;
|
|
773
|
-
}
|
|
774
|
-
declare class TextSelectionPopupDirective implements OnDestroy {
|
|
775
|
-
private overlay;
|
|
776
|
-
private viewContainerRef;
|
|
777
|
-
private elementRef;
|
|
778
|
-
private renderer;
|
|
779
|
-
private overlayContainer;
|
|
780
|
-
private ngZone;
|
|
781
|
-
targetComponent: Type<ISelectionPopupComponent>;
|
|
782
|
-
closestContentObserverClass: string | null;
|
|
783
|
-
tagSelected: EventEmitter<string | null>;
|
|
784
|
-
private themeCleanup;
|
|
785
|
-
private overlayRef;
|
|
786
|
-
private hostElement;
|
|
787
|
-
private currentSelectionRange;
|
|
788
|
-
private documentClickListener;
|
|
789
|
-
private positionStrategy;
|
|
790
|
-
private scrollListener;
|
|
791
|
-
private popupResizeObserver;
|
|
792
|
-
private scrollSubject;
|
|
793
|
-
private scrollSubscription;
|
|
794
|
-
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef<HTMLElement>, renderer: Renderer2, overlayContainer: OverlayContainer, ngZone: NgZone);
|
|
795
|
-
onDocumentClickHostListener(event: MouseEvent): void;
|
|
796
|
-
onDocumentKeyDown(event: KeyboardEvent): void;
|
|
797
|
-
private processSelection;
|
|
798
|
-
private showPopup;
|
|
799
|
-
private closePopupIfNeeded;
|
|
800
|
-
private closePopup;
|
|
801
|
-
private addScrollListener;
|
|
802
|
-
private removeScrollListener;
|
|
803
|
-
private updatePopupPosition;
|
|
804
|
-
private findClosestElementWithClass;
|
|
805
|
-
private getContainingTagName;
|
|
806
|
-
private addDocumentClickListener;
|
|
807
|
-
private removeDocumentClickListener;
|
|
808
|
-
private handleDocumentClick;
|
|
809
|
-
private isEventInsidePopup;
|
|
810
|
-
private isClickInsidePopup;
|
|
811
|
-
private isFocusInsidePopup;
|
|
812
|
-
private areRangesEqual;
|
|
813
|
-
ngOnDestroy(): void;
|
|
814
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextSelectionPopupDirective, never>;
|
|
815
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextSelectionPopupDirective, "[ngsTextSelectionPopup]", never, { "targetComponent": { "alias": "targetComponent"; "required": false; }; "closestContentObserverClass": { "alias": "closestContentObserverClass"; "required": false; }; }, { "tagSelected": "tagSelected"; }, never, never, true, never>;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
1260
|
/** Plain HTML layout styles, independent of Angular and the component library's theme. */
|
|
819
|
-
declare const CONTENT_EDITOR_GRID_HTML_STYLES = ".ngs-content-editor-html-grid{container-type:inline-size}.ngs-content-editor-html-grid-cells{display:grid;grid-template-columns:repeat(var(--ngs-html-grid-columns),minmax(0,1fr));gap:var(--ngs-html-grid-gap)}.ngs-content-editor-html-grid-cell{min-width:0}@container(max-width:480px){.ngs-content-editor-html-grid-stack{grid-template-columns:minmax(0,1fr)}}";
|
|
820
|
-
declare const CONTENT_EDITOR_CALLOUT_HTML_STYLES = ".ngs-content-editor-html-callout{padding:16px;border-radius:8px;background:var(--ngs-color-primary-container,#eef3ff);color:var(--ngs-color-on-surface,#172033)}.ngs-content-editor-html-callout[data-callout=tip]{background:var(--ngs-color-success-container,#e8f5ee)}.ngs-content-editor-html-callout[data-callout=warning]{background:var(--ngs-color-warning-container,#fff3dc)}.ngs-content-editor-html-callout[data-callout=danger]{background:var(--ngs-color-danger-container,#fdeaea)}";
|
|
821
|
-
declare const CONTENT_EDITOR_GALLERY_HTML_STYLES = ".ngs-content-editor-html-gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px}.ngs-content-editor-html-gallery>figure{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start}.ngs-content-editor-html-gallery img{display:block;width:100%}";
|
|
822
|
-
declare const contentEditorParagraphToHtml: ContentEditorBlockHtmlConverter;
|
|
823
|
-
declare const contentEditorHeadingToHtml: ContentEditorBlockHtmlConverter;
|
|
824
|
-
declare const contentEditorCodeToHtml: ContentEditorBlockHtmlConverter;
|
|
825
|
-
declare const contentEditorDividerToHtml: ContentEditorBlockHtmlConverter;
|
|
826
|
-
declare const contentEditorListToHtml: ContentEditorBlockHtmlConverter<readonly ContentEditorListItem[]>;
|
|
827
|
-
declare const contentEditorQuoteToHtml: ContentEditorBlockHtmlConverter;
|
|
828
|
-
declare const contentEditorTableToHtml: ContentEditorBlockHtmlConverter;
|
|
829
|
-
declare const contentEditorImageToHtml: ContentEditorBlockHtmlConverter;
|
|
830
|
-
declare const contentEditorVideoToHtml: ContentEditorBlockHtmlConverter;
|
|
831
|
-
declare const contentEditorEmbedToHtml: ContentEditorBlockHtmlConverter;
|
|
832
|
-
declare const contentEditorCalloutToHtml: ContentEditorBlockHtmlConverter;
|
|
833
|
-
declare const contentEditorToggleToHtml: ContentEditorBlockHtmlConverter<ContentEditorToggleContent>;
|
|
834
|
-
declare const contentEditorAttachmentToHtml: ContentEditorBlockHtmlConverter;
|
|
835
|
-
declare const contentEditorGalleryToHtml: ContentEditorBlockHtmlConverter<ContentEditorGalleryContent>;
|
|
836
|
-
declare const contentEditorGridToHtml: ContentEditorBlockHtmlConverter<ContentEditorGridContent>;
|
|
837
|
-
declare const CONTENT_EDITOR_DEFAULT_HTML_CONVERTERS: Readonly<Record<string, ContentEditorBlockHtmlConverter>>;
|
|
838
|
-
|
|
1261
|
+
export declare const CONTENT_EDITOR_GRID_HTML_STYLES = ".ngs-content-editor-html-grid{container-type:inline-size}.ngs-content-editor-html-grid-cells{display:grid;grid-template-columns:repeat(var(--ngs-html-grid-columns),minmax(0,1fr));gap:var(--ngs-html-grid-gap)}.ngs-content-editor-html-grid-cell{min-width:0}@container(max-width:480px){.ngs-content-editor-html-grid-stack{grid-template-columns:minmax(0,1fr)}}";
|
|
1262
|
+
export declare const CONTENT_EDITOR_CALLOUT_HTML_STYLES = ".ngs-content-editor-html-callout{padding:16px;border-radius:8px;background:var(--ngs-color-primary-container,#eef3ff);color:var(--ngs-color-on-surface,#172033)}.ngs-content-editor-html-callout[data-callout=tip]{background:var(--ngs-color-success-container,#e8f5ee)}.ngs-content-editor-html-callout[data-callout=warning]{background:var(--ngs-color-warning-container,#fff3dc)}.ngs-content-editor-html-callout[data-callout=danger]{background:var(--ngs-color-danger-container,#fdeaea)}";
|
|
1263
|
+
export declare const CONTENT_EDITOR_GALLERY_HTML_STYLES = ".ngs-content-editor-html-gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px}.ngs-content-editor-html-gallery>figure{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start}.ngs-content-editor-html-gallery img{display:block;width:100%}";
|
|
1264
|
+
export declare const contentEditorParagraphToHtml: ContentEditorBlockHtmlConverter;
|
|
1265
|
+
export declare const contentEditorHeadingToHtml: ContentEditorBlockHtmlConverter;
|
|
1266
|
+
export declare const contentEditorCodeToHtml: ContentEditorBlockHtmlConverter;
|
|
1267
|
+
export declare const contentEditorDividerToHtml: ContentEditorBlockHtmlConverter;
|
|
1268
|
+
export declare const contentEditorListToHtml: ContentEditorBlockHtmlConverter<readonly ContentEditorListItem[]>;
|
|
1269
|
+
export declare const contentEditorQuoteToHtml: ContentEditorBlockHtmlConverter;
|
|
1270
|
+
export declare const contentEditorTableToHtml: ContentEditorBlockHtmlConverter;
|
|
1271
|
+
export declare const contentEditorImageToHtml: ContentEditorBlockHtmlConverter;
|
|
1272
|
+
export declare const contentEditorVideoToHtml: ContentEditorBlockHtmlConverter;
|
|
1273
|
+
export declare const contentEditorEmbedToHtml: ContentEditorBlockHtmlConverter;
|
|
1274
|
+
export declare const contentEditorCalloutToHtml: ContentEditorBlockHtmlConverter;
|
|
1275
|
+
export declare const contentEditorToggleToHtml: ContentEditorBlockHtmlConverter<ContentEditorToggleContent>;
|
|
1276
|
+
export declare const contentEditorAttachmentToHtml: ContentEditorBlockHtmlConverter;
|
|
1277
|
+
export declare const contentEditorGalleryToHtml: ContentEditorBlockHtmlConverter<ContentEditorGalleryContent>;
|
|
1278
|
+
export declare const contentEditorGridToHtml: ContentEditorBlockHtmlConverter<ContentEditorGridContent>;
|
|
1279
|
+
export declare const CONTENT_EDITOR_DEFAULT_HTML_CONVERTERS: Readonly<Record<string, ContentEditorBlockHtmlConverter>>;
|
|
839
1280
|
/** Pure document export: works without DOM, Angular DI, or a mounted editor. */
|
|
840
|
-
declare function contentEditorToHtml(document: ContentEditorDocument, config?: ContentEditorConfig): string;
|
|
841
|
-
declare function contentEditorBlockToHtml(block: ContentEditorBlock, config?: ContentEditorConfig): string;
|
|
842
|
-
|
|
1281
|
+
export declare function contentEditorToHtml(document: ContentEditorDocument, config?: ContentEditorConfig): string;
|
|
1282
|
+
export declare function contentEditorBlockToHtml(block: ContentEditorBlock, config?: ContentEditorConfig): string;
|
|
843
1283
|
/** Export saved documents with the current environment's shared configuration. */
|
|
844
|
-
declare class ContentEditorHtmlSerializer {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
}
|
|
851
|
-
|
|
1284
|
+
export declare class ContentEditorHtmlSerializer {
|
|
1285
|
+
private readonly config;
|
|
1286
|
+
toHtml(document: ContentEditorDocument, config?: ContentEditorConfig): string;
|
|
1287
|
+
blockToHtml(block: ContentEditorBlock, config?: ContentEditorConfig): string;
|
|
1288
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorHtmlSerializer, never>;
|
|
1289
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1290
|
+
}
|
|
852
1291
|
/** Plain text used by empty states and literal code editing. */
|
|
853
|
-
declare function contentEditorText(value: ContentEditorText | unknown): string;
|
|
1292
|
+
export declare function contentEditorText(value: ContentEditorText | unknown): string;
|
|
854
1293
|
/** Maps a native block to the existing UI inputs. Saved data always stays native. */
|
|
855
|
-
declare function contentEditorBlockView(block: NgsHeadlessEditorBlock): ContentEditorBlockView;
|
|
856
|
-
declare function contentEditorNativeBlock(block: ContentEditorBlockView): NgsHeadlessEditorBlock;
|
|
857
|
-
declare function isContentEditorBlockEmpty(block: NgsHeadlessEditorBlock): boolean;
|
|
858
|
-
declare function contentEditorChildCollections(block: NgsHeadlessEditorBlock): readonly (readonly NgsHeadlessEditorBlock[])[];
|
|
859
|
-
declare function findContentEditorBlock(blocks: readonly NgsHeadlessEditorBlock[], id: string): NgsHeadlessEditorBlock | undefined;
|
|
860
|
-
declare function contentEditorCollection(blocks: readonly NgsHeadlessEditorBlock[], scope: ContentEditorBlockScope): readonly NgsHeadlessEditorBlock[];
|
|
1294
|
+
export declare function contentEditorBlockView(block: NgsHeadlessEditorBlock): ContentEditorBlockView;
|
|
1295
|
+
export declare function contentEditorNativeBlock(block: ContentEditorBlockView): NgsHeadlessEditorBlock;
|
|
1296
|
+
export declare function isContentEditorBlockEmpty(block: NgsHeadlessEditorBlock): boolean;
|
|
1297
|
+
export declare function contentEditorChildCollections(block: NgsHeadlessEditorBlock): readonly (readonly NgsHeadlessEditorBlock[])[];
|
|
1298
|
+
export declare function findContentEditorBlock(blocks: readonly NgsHeadlessEditorBlock[], id: string): NgsHeadlessEditorBlock | undefined;
|
|
1299
|
+
export declare function contentEditorCollection(blocks: readonly NgsHeadlessEditorBlock[], scope: ContentEditorBlockScope): readonly NgsHeadlessEditorBlock[];
|
|
861
1300
|
/** Update only on a cloned document; callers preserve immutable undo snapshots. */
|
|
862
|
-
declare function replaceContentEditorCollection(blocks: NgsHeadlessEditorBlock[], scope: ContentEditorBlockScope, value: readonly NgsHeadlessEditorBlock[]): void;
|
|
1301
|
+
export declare function replaceContentEditorCollection(blocks: NgsHeadlessEditorBlock[], scope: ContentEditorBlockScope, value: readonly NgsHeadlessEditorBlock[]): void;
|
|
863
1302
|
/** Mutable UI payloads must not mutate saved documents or undo snapshots. */
|
|
864
|
-
declare function cloneContentEditorValue<T>(value: T): T;
|
|
1303
|
+
export declare function cloneContentEditorValue<T>(value: T): T;
|
|
865
1304
|
/** Locates the collection owning a block, including deeply nested Grid/Toggle blocks. */
|
|
866
|
-
declare function contentEditorBlockScope(blocks: readonly NgsHeadlessEditorBlock[], id: string, scope?: ContentEditorBlockScope): ContentEditorBlockScope | null;
|
|
1305
|
+
export declare function contentEditorBlockScope(blocks: readonly NgsHeadlessEditorBlock[], id: string, scope?: ContentEditorBlockScope): ContentEditorBlockScope | null;
|
|
867
1306
|
/** Copies for insertion/duplication receive fresh ids throughout the tree. */
|
|
868
|
-
declare function contentEditorCopyBlocks(blocks: readonly NgsHeadlessEditorBlock[]): NgsHeadlessEditorBlock[];
|
|
1307
|
+
export declare function contentEditorCopyBlocks(blocks: readonly NgsHeadlessEditorBlock[]): NgsHeadlessEditorBlock[];
|
|
869
1308
|
/** UTF-16 offsets match the editor selection model; marks remain on sliced runs. */
|
|
870
|
-
declare function contentEditorSliceText(content: ContentEditorText, start: number, end?: number): ContentEditorText;
|
|
871
|
-
|
|
1309
|
+
export declare function contentEditorSliceText(content: ContentEditorText, start: number, end?: number): ContentEditorText;
|
|
872
1310
|
/** Parses and validates the native version-1 format without changing the caller's objects. */
|
|
873
|
-
declare function contentEditorFromJson(source: unknown, config?: ContentEditorConfig, options?: ContentEditorImportOptions): ContentEditorDocument;
|
|
874
|
-
|
|
1311
|
+
export declare function contentEditorFromJson(source: unknown, config?: ContentEditorConfig, options?: ContentEditorImportOptions): ContentEditorDocument;
|
|
875
1312
|
/** Imports semantic HTML into native blocks. Scripts, event handlers and arbitrary CSS are never stored. */
|
|
876
|
-
declare function contentEditorFromHtml(html: string, config?: ContentEditorConfig, options?: ContentEditorHtmlImportOptions): ContentEditorDocument;
|
|
877
|
-
|
|
1313
|
+
export declare function contentEditorFromHtml(html: string, config?: ContentEditorConfig, options?: ContentEditorHtmlImportOptions): ContentEditorDocument;
|
|
878
1314
|
/** Parsing only: applications decide when to replace their current document. */
|
|
879
|
-
declare class ContentEditorImporter {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}
|
|
887
|
-
|
|
1315
|
+
export declare class ContentEditorImporter {
|
|
1316
|
+
private readonly config;
|
|
1317
|
+
private readonly document;
|
|
1318
|
+
fromJson(source: unknown, config?: ContentEditorConfig, options?: ContentEditorImportOptions): NgsHeadlessEditorDocument$1;
|
|
1319
|
+
fromHtml(html: string, config?: ContentEditorConfig, options?: ContentEditorHtmlImportOptions): NgsHeadlessEditorDocument$1;
|
|
1320
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorImporter, never>;
|
|
1321
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1322
|
+
}
|
|
888
1323
|
/** Shared marks and commands for content editing and read-only rendering. */
|
|
889
|
-
declare function provideContentEditor(): Provider[];
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
1324
|
+
export declare function provideContentEditor(): Provider[];
|
|
1325
|
+
export declare abstract class ContentEditorRendererBase<T, S extends object = Record<string, unknown>> {
|
|
1326
|
+
readonly block: import("@angular/core").InputSignal<NgsHeadlessEditorBlock<unknown> | null>;
|
|
1327
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
1328
|
+
readonly type: import("@angular/core").InputSignal<string>;
|
|
1329
|
+
readonly content: import("@angular/core").InputSignal<T | null>;
|
|
1330
|
+
readonly settings: import("@angular/core").InputSignal<Partial<S>>;
|
|
1331
|
+
readonly props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
1332
|
+
readonly index: import("@angular/core").InputSignal<number>;
|
|
1333
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorRendererBase<any, any>, never>;
|
|
1334
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContentEditorRendererBase<any, any>, never, never, {
|
|
1335
|
+
"block": {
|
|
1336
|
+
"alias": "block";
|
|
1337
|
+
"required": false;
|
|
1338
|
+
"isSignal": true;
|
|
1339
|
+
};
|
|
1340
|
+
"id": {
|
|
1341
|
+
"alias": "id";
|
|
1342
|
+
"required": false;
|
|
1343
|
+
"isSignal": true;
|
|
1344
|
+
};
|
|
1345
|
+
"type": {
|
|
1346
|
+
"alias": "type";
|
|
1347
|
+
"required": false;
|
|
1348
|
+
"isSignal": true;
|
|
1349
|
+
};
|
|
1350
|
+
"content": {
|
|
1351
|
+
"alias": "content";
|
|
1352
|
+
"required": false;
|
|
1353
|
+
"isSignal": true;
|
|
1354
|
+
};
|
|
1355
|
+
"settings": {
|
|
1356
|
+
"alias": "settings";
|
|
1357
|
+
"required": false;
|
|
1358
|
+
"isSignal": true;
|
|
1359
|
+
};
|
|
1360
|
+
"props": {
|
|
1361
|
+
"alias": "props";
|
|
1362
|
+
"required": false;
|
|
1363
|
+
"isSignal": true;
|
|
1364
|
+
};
|
|
1365
|
+
"index": {
|
|
1366
|
+
"alias": "index";
|
|
1367
|
+
"required": false;
|
|
1368
|
+
"isSignal": true;
|
|
1369
|
+
};
|
|
1370
|
+
}, {}, never, never, true, never>;
|
|
1371
|
+
}
|
|
1372
|
+
export declare class ContentEditorCalloutRenderer extends ContentEditorRendererBase<ContentEditorText, ContentEditorCalloutSettings> {
|
|
1373
|
+
readonly appearance: import("@angular/core").Signal<string>;
|
|
1374
|
+
readonly icon: import("@angular/core").Signal<string>;
|
|
1375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorCalloutRenderer, never>;
|
|
1376
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorCalloutRenderer, "ngs-content-editor-callout-renderer", never, {}, {}, never, never, true, never>;
|
|
1377
|
+
}
|
|
1378
|
+
export declare class ContentEditorToggleRenderer extends ContentEditorRendererBase<ContentEditorToggleContent, ContentEditorToggleSettings> {
|
|
1379
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorToggleRenderer, never>;
|
|
1380
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorToggleRenderer, "ngs-content-editor-toggle-renderer", never, {}, {}, never, never, true, never>;
|
|
1381
|
+
}
|
|
1382
|
+
export declare class ContentEditorAttachmentRenderer extends ContentEditorRendererBase<ContentEditorAttachmentContent> {
|
|
1383
|
+
readonly sizeLabel: import("@angular/core").Signal<string>;
|
|
1384
|
+
readonly href: import("@angular/core").Signal<string>;
|
|
1385
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorAttachmentRenderer, never>;
|
|
1386
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorAttachmentRenderer, "ngs-content-editor-attachment-renderer", never, {}, {}, never, never, true, never>;
|
|
1387
|
+
}
|
|
1388
|
+
export declare class ContentEditorGalleryRenderer extends ContentEditorRendererBase<ContentEditorGalleryContent> {
|
|
1389
|
+
readonly images: import("@angular/core").Signal<readonly ContentEditorGalleryImage[]>;
|
|
1390
|
+
readonly selectedId: import("@angular/core").WritableSignal<string | null>;
|
|
1391
|
+
readonly selectedIndex: import("@angular/core").Signal<number>;
|
|
1392
|
+
readonly selectedImage: import("@angular/core").Signal<ContentEditorGalleryImage>;
|
|
1393
|
+
readonly captionText: typeof contentEditorText;
|
|
1394
|
+
private readonly cards;
|
|
1395
|
+
private readonly thumbnails;
|
|
1396
|
+
constructor();
|
|
1397
|
+
selectImage(index: number): void;
|
|
1398
|
+
onIndexChange(index: number): void;
|
|
1399
|
+
onKeydown(event: KeyboardEvent): void;
|
|
1400
|
+
private scrollToImage;
|
|
1401
|
+
private revealThumbnail;
|
|
1402
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorGalleryRenderer, never>;
|
|
1403
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorGalleryRenderer, "ngs-content-editor-gallery-renderer", never, {}, {}, never, never, true, never>;
|
|
1404
|
+
}
|
|
1405
|
+
export declare class ContentEditorGridRenderer extends ContentEditorRendererBase<ContentEditorGridContent, ContentEditorGridSettings> {
|
|
1406
|
+
readonly layout: import("@angular/core").Signal<ContentEditorGridSettings>;
|
|
1407
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorGridRenderer, never>;
|
|
1408
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentEditorGridRenderer, "ngs-content-editor-grid-renderer", never, {}, {}, never, never, true, never>;
|
|
1409
|
+
}
|
|
1410
|
+
export interface ContentEditorUploadedFile {
|
|
1411
|
+
file: File;
|
|
1412
|
+
url: string;
|
|
1413
|
+
dataUrl: string;
|
|
1414
|
+
}
|
|
1415
|
+
export interface ContentEditorUploadRequest {
|
|
1416
|
+
files: readonly File[];
|
|
1417
|
+
upload: ContentEditorUploadFn;
|
|
1418
|
+
accept?: (file: File) => boolean;
|
|
1419
|
+
urlKind?: ContentEditorHtmlUrlKind;
|
|
1420
|
+
maxFileSize?: number;
|
|
1421
|
+
apply(results: readonly ContentEditorUploadedFile[]): void;
|
|
958
1422
|
}
|
|
959
1423
|
/** One cancellable request per block. Retry only sends failed files again. */
|
|
960
|
-
declare class ContentEditorUploadTask {
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
}
|
|
973
|
-
|
|
1424
|
+
export declare class ContentEditorUploadTask {
|
|
1425
|
+
private readonly writable;
|
|
1426
|
+
readonly uploading: import("@angular/core").WritableSignal<boolean>;
|
|
1427
|
+
readonly progress: import("@angular/core").WritableSignal<number | null>;
|
|
1428
|
+
readonly error: import("@angular/core").WritableSignal<string>;
|
|
1429
|
+
readonly canRetry: import("@angular/core").WritableSignal<boolean>;
|
|
1430
|
+
private controller;
|
|
1431
|
+
private failed;
|
|
1432
|
+
constructor(writable: () => boolean);
|
|
1433
|
+
cancel(): void;
|
|
1434
|
+
retry(): Promise<void>;
|
|
1435
|
+
run(request: ContentEditorUploadRequest): Promise<void>;
|
|
1436
|
+
}
|
|
974
1437
|
/** UI state and block operations. The headless document is the only content store. */
|
|
975
1438
|
declare class ContentBuilderStore {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1439
|
+
readonly editor: NgsHeadlessEditor;
|
|
1440
|
+
private dragging;
|
|
1441
|
+
constructor();
|
|
1442
|
+
private textEdit;
|
|
1443
|
+
/** Scopes typing groups to one text region, so adjacent cells never share undo. */
|
|
1444
|
+
withTextEdit(origin: NgsHeadlessEditorChangeOrigin, group: string, edit: () => void): void;
|
|
1445
|
+
readonly insertionTarget: import("@angular/core").WritableSignal<ContentEditorBlockInsertionTarget>;
|
|
1446
|
+
readonly restoreTextSelection: import("@angular/core").WritableSignal<{
|
|
1447
|
+
blockId: string;
|
|
1448
|
+
selection: NgsHeadlessEditorSelection;
|
|
1449
|
+
} | null>;
|
|
1450
|
+
readonly focusedBlockId: import("@angular/core").WritableSignal<string | null>;
|
|
1451
|
+
readonly activeBlockId: import("@angular/core").WritableSignal<string | null>;
|
|
1452
|
+
readonly dragPointer: import("@angular/core").WritableSignal<{
|
|
1453
|
+
x: number;
|
|
1454
|
+
y: number;
|
|
1455
|
+
} | null>;
|
|
1456
|
+
setDragging(dragging: boolean): void;
|
|
1457
|
+
readonly dropLists: import("@angular/core").WritableSignal<CdkDropList<ContentEditorBlockScope>[]>;
|
|
1458
|
+
registerDropList(list: CdkDropList<ContentEditorBlockScope>): void;
|
|
1459
|
+
unregisterDropList(list: CdkDropList<ContentEditorBlockScope>): void;
|
|
1460
|
+
readonly blocks: import("@angular/core").Signal<ContentEditorBlockView[]>;
|
|
1461
|
+
setFocusedBlockId(id: string | null): void;
|
|
1462
|
+
setActiveBlockId(id: string | null): void;
|
|
1463
|
+
setBlocks(value: ContentEditorDocument): void;
|
|
1464
|
+
addBlock(block: ContentEditorBlockView, index: number, scope?: ContentEditorBlockScope): void;
|
|
1465
|
+
deleteBlock(id: string, _index: number): void;
|
|
1466
|
+
deleteBlocks(ids: readonly string[]): void;
|
|
1467
|
+
updateBlock(id: string, data: Partial<ContentEditorBlockView>): void;
|
|
1468
|
+
moveBlock(from: number, to: number): void;
|
|
1469
|
+
moveBetweenCollections(from: number, to: number, source: ContentEditorBlockScope, target: ContentEditorBlockScope): void;
|
|
1470
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentBuilderStore, never>;
|
|
1471
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1472
|
+
}
|
|
1011
1473
|
/** Shared native inputs and root history for the built-in block editors. */
|
|
1012
|
-
declare abstract class ContentEditorBlockBase<T, S extends object = Record<string, unknown>> implements ContentEditorDataBlock {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1474
|
+
export declare abstract class ContentEditorBlockBase<T, S extends object = Record<string, unknown>> implements ContentEditorDataBlock {
|
|
1475
|
+
protected readonly store: ContentBuilderStore;
|
|
1476
|
+
protected readonly builder: ContentBuilderComponent;
|
|
1477
|
+
protected readonly element: HTMLElement;
|
|
1478
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
1479
|
+
readonly content: import("@angular/core").InputSignal<T>;
|
|
1480
|
+
readonly settings: import("@angular/core").InputSignal<S>;
|
|
1481
|
+
readonly index: import("@angular/core").InputSignal<number>;
|
|
1482
|
+
readonly props: import("@angular/core").InputSignal<ContentEditorItemProperty[]>;
|
|
1483
|
+
readonly initialized: import("@angular/core").WritableSignal<boolean>;
|
|
1484
|
+
constructor();
|
|
1485
|
+
focus(): void;
|
|
1486
|
+
getData(): {
|
|
1487
|
+
content: T;
|
|
1488
|
+
settings: S;
|
|
1489
|
+
props: ContentEditorItemProperty[];
|
|
1490
|
+
};
|
|
1491
|
+
isEmpty(): boolean;
|
|
1492
|
+
protected save(content: T, settings?: S): void;
|
|
1493
|
+
protected latestContent(): T;
|
|
1494
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorBlockBase<any, any>, never>;
|
|
1495
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContentEditorBlockBase<any, any>, never, never, {
|
|
1496
|
+
"id": {
|
|
1497
|
+
"alias": "id";
|
|
1498
|
+
"required": true;
|
|
1499
|
+
"isSignal": true;
|
|
1500
|
+
};
|
|
1501
|
+
"content": {
|
|
1502
|
+
"alias": "content";
|
|
1503
|
+
"required": true;
|
|
1504
|
+
"isSignal": true;
|
|
1505
|
+
};
|
|
1506
|
+
"settings": {
|
|
1507
|
+
"alias": "settings";
|
|
1508
|
+
"required": true;
|
|
1509
|
+
"isSignal": true;
|
|
1510
|
+
};
|
|
1511
|
+
"index": {
|
|
1512
|
+
"alias": "index";
|
|
1513
|
+
"required": false;
|
|
1514
|
+
"isSignal": true;
|
|
1515
|
+
};
|
|
1516
|
+
"props": {
|
|
1517
|
+
"alias": "props";
|
|
1518
|
+
"required": false;
|
|
1519
|
+
"isSignal": true;
|
|
1520
|
+
};
|
|
1521
|
+
}, {}, never, never, true, never>;
|
|
1522
|
+
}
|
|
1523
|
+
export declare abstract class ContentEditorUploadBlockBase<T, S extends object = Record<string, unknown>> extends ContentEditorBlockBase<T, S> {
|
|
1524
|
+
readonly uploadTask: ContentEditorUploadTask;
|
|
1525
|
+
readonly uploading: import("@angular/core").WritableSignal<boolean>;
|
|
1526
|
+
readonly error: import("@angular/core").WritableSignal<string>;
|
|
1527
|
+
constructor();
|
|
1528
|
+
protected uploadFiles(type: string, request: Omit<ContentEditorUploadRequest, 'upload' | 'maxFileSize'>): Promise<void>;
|
|
1529
|
+
cancelUpload(): void;
|
|
1530
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentEditorUploadBlockBase<any, any>, never>;
|
|
1531
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContentEditorUploadBlockBase<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
1532
|
+
}
|
|
1047
1533
|
/** Read files with actual cancellation and progress. */
|
|
1048
|
-
declare function readContentEditorFile(file: File, context?: ContentEditorUploadContext): Promise<string>;
|
|
1049
|
-
declare function contentEditorFileSize(size: number): string;
|
|
1050
|
-
declare function contentEditorResourceUrl(url: string): string;
|
|
1051
|
-
|
|
1052
|
-
export { BlockSelectionDirective, CONTENT_BUILDER, CONTENT_EDITOR_BLOCK, CONTENT_EDITOR_BLOCK_RENDERERS, CONTENT_EDITOR_CALLOUT_HTML_STYLES, CONTENT_EDITOR_CONFIG, CONTENT_EDITOR_CONVERTIBLE_BLOCKS, CONTENT_EDITOR_DEFAULT_HTML_CONVERTERS, CONTENT_EDITOR_DEFAULT_RENDERERS, CONTENT_EDITOR_GALLERY_HTML_STYLES, CONTENT_EDITOR_GRID_HTML_STYLES, CONTENT_EDITOR_RENDER_CONFIG, CommandBarComponent, ContentBuilderComponent, ContentEditorAttachmentRenderer, ContentEditorBlockBase, ContentEditorCalloutRenderer, ContentEditorCodeRenderer, ContentEditorDividerRenderer, ContentEditorDraftController, ContentEditorEmbedRenderer, ContentEditorGalleryRenderer, ContentEditorGridRenderer, ContentEditorHeadingRenderer, ContentEditorHtmlSerializer, ContentEditorImageRenderer, ContentEditorImportError, ContentEditorImporter, ContentEditorListRenderer, ContentEditorParagraphRenderer, ContentEditorQuoteRenderer, ContentEditorRenderer, ContentEditorRendererBase, ContentEditorTableRenderer, ContentEditorToggleRenderer, ContentEditorUploadBlockBase, ContentEditorUploadTask, ContentEditorVideoRenderer, TextSelectionPopupDirective, cloneContentEditorValue, contentEditorAttachmentToHtml, contentEditorBlockScope, contentEditorBlockToHtml, contentEditorBlockView, contentEditorCalloutToHtml, contentEditorChildCollections, contentEditorCodeToHtml, contentEditorCollection, contentEditorConvertBlock, contentEditorCopyBlocks, contentEditorDividerToHtml, contentEditorEmbedToHtml, contentEditorFileSize, contentEditorFromHtml, contentEditorFromJson, contentEditorGalleryToHtml, contentEditorGridToHtml, contentEditorHeadingToHtml, contentEditorImageToHtml, contentEditorListToHtml, contentEditorNativeBlock, contentEditorParagraphToHtml, contentEditorQuoteToHtml, contentEditorResourceUrl, contentEditorSliceText, contentEditorTableToHtml, contentEditorText, contentEditorToHtml, contentEditorToggleToHtml, contentEditorVideoToHtml, findContentEditorBlock, isContentEditorBlockEmpty, mergeContentEditorConfig, provideContentEditor, provideContentEditorConfig, provideContentEditorRenderer, provideContentEditorRenderers, readContentEditorFile, replaceContentEditorCollection };
|
|
1053
|
-
export type { ContentEditorAttachmentContent, ContentEditorBlock, ContentEditorBlockConfig, ContentEditorBlockDef, ContentEditorBlockEmpty, ContentEditorBlockHtmlConverter, ContentEditorBlockHtmlImporter, ContentEditorBlockImportValidator, ContentEditorBlockInsertionTarget, ContentEditorBlockRendererDef, ContentEditorBlockRendererInputSignals, ContentEditorBlockRendererInputs, ContentEditorBlockScope, ContentEditorBlockView, ContentEditorBuiltinBlockType, ContentEditorCalloutSettings, ContentEditorCalloutVariant, ContentEditorCodeRendererSettings, ContentEditorConfig, ContentEditorConvertibleBlockType, ContentEditorDataBlock, ContentEditorDimension, ContentEditorDocument, ContentEditorDraftConfig, ContentEditorDraftStatus, ContentEditorDraftStorage, ContentEditorEmbedBlockSettings, ContentEditorEmbedContent, ContentEditorGalleryContent, ContentEditorGalleryImage, ContentEditorGridCell, ContentEditorGridContent, ContentEditorGridGap, ContentEditorGridSettings, ContentEditorHeadingBlockSettings, ContentEditorHtmlContext, ContentEditorHtmlImportContext, ContentEditorHtmlImportOptions, ContentEditorHtmlUrlKind, ContentEditorImageBlockSettings, ContentEditorImageContent, ContentEditorImportMarkDefinition, ContentEditorImportOptions, ContentEditorImportPlacement, ContentEditorItemProperty, ContentEditorListItem, ContentEditorListSettings, ContentEditorMarkHtmlConverter, ContentEditorOptions, ContentEditorQuoteContent, ContentEditorQuoteRendererContent, ContentEditorQuoteRendererContentPart, ContentEditorSuggestionHeading, ContentEditorSuggestionItem, ContentEditorTableAttributes, ContentEditorTableBlockSettings, ContentEditorTableCell, ContentEditorTableCellMetadata, ContentEditorText, ContentEditorToggleContent, ContentEditorToggleSettings, ContentEditorUploadContext, ContentEditorUploadFn, ContentEditorUploadRequest, ContentEditorUploadedFile, ContentEditorVideoBlockSettings, ContentEditorVideoContent, ISelectionPopupComponent };
|
|
1534
|
+
export declare function readContentEditorFile(file: File, context?: ContentEditorUploadContext): Promise<string>;
|
|
1535
|
+
export declare function contentEditorFileSize(size: number): string;
|
|
1536
|
+
export declare function contentEditorResourceUrl(url: string): string;
|
|
1537
|
+
export {};
|