@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
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { DestroyRef, Injectable, InjectionToken, computed, inject, signal } from "@angular/core";
|
|
3
|
+
import { DOCUMENT as DOCUMENT$1 } from "@angular/common";
|
|
4
|
+
import { NgsHeadlessEditor, createNgsHeadlessEditorId, getNgsHeadlessEditorTableData, isNgsHeadlessEditorTextContent } from "@ngstarter-ui/components/headless-editor";
|
|
5
|
+
function contentEditorText(value) {
|
|
6
|
+
return isNgsHeadlessEditorTextContent(value) ? value.map((run) => run.text).join("") : "";
|
|
7
|
+
}
|
|
8
|
+
function contentEditorBlockView(block) {
|
|
9
|
+
return {
|
|
10
|
+
id: block.id,
|
|
11
|
+
type: block.type,
|
|
12
|
+
content: block.type === "table" ? contentEditorTableCells(block) : cloneContentEditorValue(block.content),
|
|
13
|
+
attrs: cloneContentEditorValue(block.attrs),
|
|
14
|
+
settings: cloneContentEditorValue(block.attrs?.["settings"] ?? {}),
|
|
15
|
+
props: cloneContentEditorValue(block.attrs?.["props"] ?? []),
|
|
16
|
+
isEmpty: isContentEditorBlockEmpty(block)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function contentEditorNativeBlock(block) {
|
|
20
|
+
const attrs = {
|
|
21
|
+
...cloneContentEditorValue(block.attrs),
|
|
22
|
+
settings: cloneContentEditorValue(block.settings),
|
|
23
|
+
props: cloneContentEditorValue(block.props ?? [])
|
|
24
|
+
};
|
|
25
|
+
if (block.type === "table") {
|
|
26
|
+
const cells = cloneContentEditorValue(block.content);
|
|
27
|
+
return {
|
|
28
|
+
id: block.id,
|
|
29
|
+
type: "table",
|
|
30
|
+
content: null,
|
|
31
|
+
attrs: {
|
|
32
|
+
...attrs,
|
|
33
|
+
rows: cells.map((row) => row.map((cell) => cell["content"])),
|
|
34
|
+
header: block.attrs?.["header"] === true,
|
|
35
|
+
cellMetadata: cells.map((row) => row.map(({ content, ...metadata }) => metadata))
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
id: block.id,
|
|
41
|
+
type: block.type,
|
|
42
|
+
content: cloneContentEditorValue(block.content),
|
|
43
|
+
attrs
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function contentEditorTableCells(block) {
|
|
47
|
+
const table = getNgsHeadlessEditorTableData(block);
|
|
48
|
+
const metadata = block.attrs?.["cellMetadata"];
|
|
49
|
+
return table.rows.map((row, r) => row.map((content, c) => {
|
|
50
|
+
const cell = metadata?.[r]?.[c] ?? {};
|
|
51
|
+
return {
|
|
52
|
+
...cloneContentEditorValue(cell),
|
|
53
|
+
content: cloneContentEditorValue(content),
|
|
54
|
+
props: cloneContentEditorValue(cell.props ?? []),
|
|
55
|
+
options: {
|
|
56
|
+
colspan: 1,
|
|
57
|
+
rowspan: 1,
|
|
58
|
+
...cloneContentEditorValue(cell.options ?? {})
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
function isContentEditorBlockEmpty(block) {
|
|
64
|
+
const content = block.content;
|
|
65
|
+
if (isNgsHeadlessEditorTextContent(content)) return !contentEditorText(content).trim();
|
|
66
|
+
switch (block.type) {
|
|
67
|
+
case "bulletList":
|
|
68
|
+
case "orderedList": return !(content ?? []).some((item) => contentEditorText(item.content).trim() || !isContentEditorBlockEmpty({
|
|
69
|
+
...block,
|
|
70
|
+
content: item.children
|
|
71
|
+
}));
|
|
72
|
+
case "table": return !getNgsHeadlessEditorTableData(block).rows.some((row) => row.some((cell) => contentEditorText(cell).trim()));
|
|
73
|
+
case "quote": return !contentEditorText(content?.cite?.content).trim() && !contentEditorText(content?.caption?.content).trim();
|
|
74
|
+
case "image":
|
|
75
|
+
case "video": return !content?.src;
|
|
76
|
+
case "embed": return !content?.url;
|
|
77
|
+
case "attachment": return !content?.url;
|
|
78
|
+
case "gallery": return !(content?.images ?? []).some((image) => image.src);
|
|
79
|
+
case "toggle": return !contentEditorText(content?.title).trim() && (content?.blocks ?? []).every(isContentEditorBlockEmpty);
|
|
80
|
+
case "grid": return (content?.cells ?? []).every((cell) => cell.blocks.every(isContentEditorBlockEmpty));
|
|
81
|
+
case "divider": return false;
|
|
82
|
+
default: return content == null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function contentEditorChildCollections(block) {
|
|
86
|
+
if (block.type === "toggle") return [block.content?.blocks ?? []];
|
|
87
|
+
if (block.type === "grid") return (block.content?.cells ?? []).map((cell) => cell.blocks);
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
function findContentEditorBlock(blocks, id) {
|
|
91
|
+
for (const block of blocks) {
|
|
92
|
+
if (block.id === id) return block;
|
|
93
|
+
for (const children of contentEditorChildCollections(block)) {
|
|
94
|
+
const found = findContentEditorBlock(children, id);
|
|
95
|
+
if (found) return found;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function contentEditorCollection(blocks, scope) {
|
|
100
|
+
if (!scope.parentId) return blocks;
|
|
101
|
+
const parent = findContentEditorBlock(blocks, scope.parentId);
|
|
102
|
+
if (parent?.type === "toggle") return parent.content.blocks;
|
|
103
|
+
if (parent?.type === "grid") return parent.content.cells.find((cell) => cell.id === scope.cellId)?.blocks ?? [];
|
|
104
|
+
return [];
|
|
105
|
+
}
|
|
106
|
+
function replaceContentEditorCollection(blocks, scope, value) {
|
|
107
|
+
if (!scope.parentId) {
|
|
108
|
+
blocks.splice(0, blocks.length, ...value);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const parent = findContentEditorBlock(blocks, scope.parentId);
|
|
112
|
+
if (parent?.type === "toggle") parent.content.blocks = value;
|
|
113
|
+
if (parent?.type === "grid") {
|
|
114
|
+
const cell = parent.content.cells.find((cell) => cell.id === scope.cellId);
|
|
115
|
+
if (cell) cell.blocks = value;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function cloneContentEditorValue(value) {
|
|
119
|
+
if (Array.isArray(value)) return value.map((item) => cloneContentEditorValue(item));
|
|
120
|
+
if (value !== null && typeof value === "object") return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, cloneContentEditorValue(item)]));
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
function contentEditorBlockScope(blocks, id, scope = {}) {
|
|
124
|
+
for (const block of blocks) {
|
|
125
|
+
if (block.id === id) return scope;
|
|
126
|
+
if (block.type === "toggle") {
|
|
127
|
+
const found = contentEditorBlockScope(block.content.blocks, id, { parentId: block.id });
|
|
128
|
+
if (found) return found;
|
|
129
|
+
}
|
|
130
|
+
if (block.type === "grid") for (const cell of block.content.cells) {
|
|
131
|
+
const found = contentEditorBlockScope(cell.blocks, id, {
|
|
132
|
+
parentId: block.id,
|
|
133
|
+
cellId: cell.id
|
|
134
|
+
});
|
|
135
|
+
if (found) return found;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
function contentEditorCopyBlocks(blocks) {
|
|
141
|
+
const copy = cloneContentEditorValue([...blocks]);
|
|
142
|
+
const visit = (block) => {
|
|
143
|
+
block.id = createNgsHeadlessEditorId(block.type);
|
|
144
|
+
for (const children of contentEditorChildCollections(block)) children.forEach(visit);
|
|
145
|
+
if (block.type === "grid") block.content.cells.forEach((cell) => cell.id = createNgsHeadlessEditorId("cell"));
|
|
146
|
+
if (block.type === "gallery") block.content.images.forEach((image) => image.id = createNgsHeadlessEditorId("image"));
|
|
147
|
+
};
|
|
148
|
+
copy.forEach(visit);
|
|
149
|
+
return copy;
|
|
150
|
+
}
|
|
151
|
+
function contentEditorSliceText(content, start, end = Infinity) {
|
|
152
|
+
let offset = 0;
|
|
153
|
+
return content.flatMap((run) => {
|
|
154
|
+
const from = Math.max(0, start - offset);
|
|
155
|
+
const to = Math.min(run.text.length, end - offset);
|
|
156
|
+
offset += run.text.length;
|
|
157
|
+
return to > from ? [{
|
|
158
|
+
...run,
|
|
159
|
+
text: run.text.slice(from, to)
|
|
160
|
+
}] : [];
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
const CONTENT_BUILDER = new InjectionToken("CONTENT_BUILDER");
|
|
164
|
+
const CONTENT_EDITOR_BLOCK = new InjectionToken("CONTENT_EDITOR_BLOCK");
|
|
165
|
+
var ContentBuilderStore = class ContentBuilderStore {
|
|
166
|
+
editor = inject(NgsHeadlessEditor);
|
|
167
|
+
dragging = false;
|
|
168
|
+
constructor() {
|
|
169
|
+
const document = inject(DOCUMENT$1);
|
|
170
|
+
const mouse = (event) => {
|
|
171
|
+
if (this.dragging) this.dragPointer.set({
|
|
172
|
+
x: event.clientX,
|
|
173
|
+
y: event.clientY
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
const touch = (event) => {
|
|
177
|
+
const point = event.touches[0];
|
|
178
|
+
if (this.dragging && point) this.dragPointer.set({
|
|
179
|
+
x: point.clientX,
|
|
180
|
+
y: point.clientY
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
document.addEventListener("mousemove", mouse, true);
|
|
184
|
+
document.addEventListener("touchmove", touch, {
|
|
185
|
+
capture: true,
|
|
186
|
+
passive: true
|
|
187
|
+
});
|
|
188
|
+
inject(DestroyRef).onDestroy(() => {
|
|
189
|
+
document.removeEventListener("mousemove", mouse, true);
|
|
190
|
+
document.removeEventListener("touchmove", touch, true);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
textEdit = null;
|
|
194
|
+
withTextEdit(origin, group, edit) {
|
|
195
|
+
const previous = this.textEdit;
|
|
196
|
+
this.textEdit = {
|
|
197
|
+
origin,
|
|
198
|
+
group
|
|
199
|
+
};
|
|
200
|
+
try {
|
|
201
|
+
edit();
|
|
202
|
+
} finally {
|
|
203
|
+
this.textEdit = previous;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
insertionTarget = signal({ scope: {} }, ...ngDevMode ? [{ debugName: "insertionTarget" }] : /* istanbul ignore next */ []);
|
|
207
|
+
restoreTextSelection = signal(null, ...ngDevMode ? [{ debugName: "restoreTextSelection" }] : /* istanbul ignore next */ []);
|
|
208
|
+
focusedBlockId = signal(null, ...ngDevMode ? [{ debugName: "focusedBlockId" }] : /* istanbul ignore next */ []);
|
|
209
|
+
activeBlockId = signal(null, ...ngDevMode ? [{ debugName: "activeBlockId" }] : /* istanbul ignore next */ []);
|
|
210
|
+
dragPointer = signal(null, ...ngDevMode ? [{ debugName: "dragPointer" }] : /* istanbul ignore next */ []);
|
|
211
|
+
setDragging(dragging) {
|
|
212
|
+
this.dragging = dragging;
|
|
213
|
+
if (!dragging) this.dragPointer.set(null);
|
|
214
|
+
}
|
|
215
|
+
dropLists = signal([], ...ngDevMode ? [{ debugName: "dropLists" }] : /* istanbul ignore next */ []);
|
|
216
|
+
registerDropList(list) {
|
|
217
|
+
if (!this.dropLists().includes(list)) this.dropLists.update((lists) => [...lists, list]);
|
|
218
|
+
}
|
|
219
|
+
unregisterDropList(list) {
|
|
220
|
+
this.dropLists.update((lists) => lists.filter((item) => item !== list));
|
|
221
|
+
}
|
|
222
|
+
blocks = computed(() => this.editor.document().blocks.map(contentEditorBlockView), ...ngDevMode ? [{ debugName: "blocks" }] : /* istanbul ignore next */ []);
|
|
223
|
+
setFocusedBlockId(id) {
|
|
224
|
+
this.focusedBlockId.set(id);
|
|
225
|
+
}
|
|
226
|
+
setActiveBlockId(id) {
|
|
227
|
+
this.activeBlockId.set(id);
|
|
228
|
+
}
|
|
229
|
+
setBlocks(value) {
|
|
230
|
+
this.editor.setDocument(value);
|
|
231
|
+
}
|
|
232
|
+
addBlock(block, index, scope = {}) {
|
|
233
|
+
const native = contentEditorNativeBlock(block);
|
|
234
|
+
const blocks = cloneContentEditorValue([...this.editor.document().blocks]);
|
|
235
|
+
const collection = [...contentEditorCollection(blocks, scope)];
|
|
236
|
+
collection.splice(index, 0, native);
|
|
237
|
+
replaceContentEditorCollection(blocks, scope, collection);
|
|
238
|
+
this.editor.updateDocument({
|
|
239
|
+
version: 1,
|
|
240
|
+
blocks
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
deleteBlock(id, _index) {
|
|
244
|
+
this.deleteBlocks([id]);
|
|
245
|
+
}
|
|
246
|
+
deleteBlocks(ids) {
|
|
247
|
+
const selected = new Set(ids);
|
|
248
|
+
const blocks = cloneContentEditorValue([...this.editor.document().blocks]);
|
|
249
|
+
let changed = false;
|
|
250
|
+
const remove = (items) => {
|
|
251
|
+
for (let index = items.length - 1; index >= 0; index--) if (selected.has(items[index].id)) {
|
|
252
|
+
items.splice(index, 1);
|
|
253
|
+
changed = true;
|
|
254
|
+
} else for (const children of contentEditorChildCollections(items[index])) remove(children);
|
|
255
|
+
};
|
|
256
|
+
remove(blocks);
|
|
257
|
+
if (changed) this.editor.updateDocument({
|
|
258
|
+
version: 1,
|
|
259
|
+
blocks
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
updateBlock(id, data) {
|
|
263
|
+
const blocks = cloneContentEditorValue([...this.editor.document().blocks]);
|
|
264
|
+
const previous = findContentEditorBlock(blocks, id);
|
|
265
|
+
if (!previous) return;
|
|
266
|
+
const next = contentEditorNativeBlock({
|
|
267
|
+
...contentEditorBlockView(previous),
|
|
268
|
+
...data
|
|
269
|
+
});
|
|
270
|
+
const origin = this.textEdit?.origin ?? "command";
|
|
271
|
+
const typing = origin === "keyboard" || origin === "composition";
|
|
272
|
+
const root = blocks.find((block) => !!findContentEditorBlock([block], id));
|
|
273
|
+
Object.assign(previous, next);
|
|
274
|
+
this.editor.updateBlock(root.id, {
|
|
275
|
+
content: root.content,
|
|
276
|
+
attrs: root.attrs
|
|
277
|
+
}, typing ? origin : "command", typing ? this.textEdit?.group ?? null : null);
|
|
278
|
+
}
|
|
279
|
+
moveBlock(from, to) {
|
|
280
|
+
const blocks = [...this.editor.document().blocks];
|
|
281
|
+
const [block] = blocks.splice(from, 1);
|
|
282
|
+
blocks.splice(to, 0, block);
|
|
283
|
+
this.editor.updateDocument({
|
|
284
|
+
version: 1,
|
|
285
|
+
blocks
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
moveBetweenCollections(from, to, source, target) {
|
|
289
|
+
const blocks = cloneContentEditorValue([...this.editor.document().blocks]);
|
|
290
|
+
const sourceItems = [...contentEditorCollection(blocks, source)];
|
|
291
|
+
const block = sourceItems[from];
|
|
292
|
+
if (!block || target.parentId && findContentEditorBlock([block], target.parentId)) return;
|
|
293
|
+
sourceItems.splice(from, 1);
|
|
294
|
+
replaceContentEditorCollection(blocks, source, sourceItems);
|
|
295
|
+
const targetItems = [...contentEditorCollection(blocks, target)];
|
|
296
|
+
targetItems.splice(to, 0, block);
|
|
297
|
+
replaceContentEditorCollection(blocks, target, targetItems);
|
|
298
|
+
this.editor.updateDocument({
|
|
299
|
+
version: 1,
|
|
300
|
+
blocks
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
304
|
+
minVersion: "12.0.0",
|
|
305
|
+
version: "22.3.0",
|
|
306
|
+
ngImport: i0,
|
|
307
|
+
type: ContentBuilderStore,
|
|
308
|
+
deps: [],
|
|
309
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
310
|
+
});
|
|
311
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
312
|
+
minVersion: "12.0.0",
|
|
313
|
+
version: "22.3.0",
|
|
314
|
+
ngImport: i0,
|
|
315
|
+
type: ContentBuilderStore
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
319
|
+
minVersion: "12.0.0",
|
|
320
|
+
version: "22.3.0",
|
|
321
|
+
ngImport: i0,
|
|
322
|
+
type: ContentBuilderStore,
|
|
323
|
+
decorators: [{ type: Injectable }],
|
|
324
|
+
ctorParameters: () => []
|
|
325
|
+
});
|
|
326
|
+
export { contentEditorBlockScope as a, contentEditorCollection as c, contentEditorSliceText as d, contentEditorText as f, replaceContentEditorCollection as h, cloneContentEditorValue as i, contentEditorCopyBlocks as l, isContentEditorBlockEmpty as m, CONTENT_BUILDER as n, contentEditorBlockView as o, findContentEditorBlock as p, CONTENT_EDITOR_BLOCK as r, contentEditorChildCollections as s, ContentBuilderStore as t, contentEditorNativeBlock as u };
|
|
327
|
+
|
|
328
|
+
//# sourceMappingURL=content-builder.store-D622mHxt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-builder.store-D622mHxt.mjs","names":["DOCUMENT"],"sources":["../../../projects/components/content-editor/src/document.ts","../../../projects/components/content-editor/src/types.ts","../../../projects/components/content-editor/src/content-builder.store.ts"],"sourcesContent":["import {\n createNgsHeadlessEditorId, getNgsHeadlessEditorTableData, isNgsHeadlessEditorTextContent, NgsHeadlessEditorBlock\n} from '@ngstarter-ui/components/headless-editor';\nimport { ContentEditorBlockScope, ContentEditorBlockView, ContentEditorText } from './types';\n\n/** Plain text used by empty states and literal code editing. */\nexport function contentEditorText(value: ContentEditorText | unknown): string {\n return isNgsHeadlessEditorTextContent(value) ? value.map(run => run.text).join('') : '';\n}\n\n/** Maps a native block to the existing UI inputs. Saved data always stays native. */\nexport function contentEditorBlockView(block: NgsHeadlessEditorBlock): ContentEditorBlockView {\n return {\n id: block.id, type: block.type, content: block.type === 'table' ? contentEditorTableCells(block) : cloneContentEditorValue(block.content),\n attrs: cloneContentEditorValue(block.attrs),\n settings: cloneContentEditorValue(block.attrs?.['settings'] ?? {}),\n props: cloneContentEditorValue(block.attrs?.['props'] ?? []) as ContentEditorBlockView['props'],\n isEmpty: isContentEditorBlockEmpty(block)\n };\n}\n\nexport function contentEditorNativeBlock(block: ContentEditorBlockView): NgsHeadlessEditorBlock {\n const attrs = {\n ...cloneContentEditorValue(block.attrs),\n settings: cloneContentEditorValue(block.settings), props: cloneContentEditorValue(block.props ?? [])\n };\n if (block.type === 'table') {\n const cells = cloneContentEditorValue(block.content) as Array<Array<Record<string, any>>>;\n return {\n id: block.id, type: 'table', content: null,\n attrs: {\n ...attrs,\n rows: cells.map(row => row.map(cell => cell['content'])),\n header: block.attrs?.['header'] === true,\n cellMetadata: cells.map(row => row.map(({ content, ...metadata }) => metadata))\n }\n };\n }\n return { id: block.id, type: block.type, content: cloneContentEditorValue(block.content), attrs };\n}\n\n/** Text rows use the headless table schema; content-builder cell settings stay in metadata. */\nfunction contentEditorTableCells(block: NgsHeadlessEditorBlock): unknown[][] {\n const table = getNgsHeadlessEditorTableData(block);\n const metadata = block.attrs?.['cellMetadata'] as Array<Array<Record<string, unknown>>> | undefined;\n return table.rows.map((row, r) => row.map((content, c) => {\n const cell: any = metadata?.[r]?.[c] ?? {};\n return {\n ...cloneContentEditorValue(cell), content: cloneContentEditorValue(content),\n props: cloneContentEditorValue(cell.props ?? []),\n options: { colspan: 1, rowspan: 1, ...cloneContentEditorValue(cell.options ?? {}) }\n };\n }));\n}\n\nexport function isContentEditorBlockEmpty(block: NgsHeadlessEditorBlock): boolean {\n const content: any = block.content;\n if (isNgsHeadlessEditorTextContent(content)) return !contentEditorText(content).trim();\n switch (block.type) {\n case 'bulletList': case 'orderedList': return !(content ?? []).some((item: any) =>\n contentEditorText(item.content).trim() || !isContentEditorBlockEmpty({ ...block, content: item.children }));\n case 'table': return !getNgsHeadlessEditorTableData(block).rows.some(row => row.some(cell => contentEditorText(cell).trim()));\n case 'quote': return !contentEditorText(content?.cite?.content).trim() && !contentEditorText(content?.caption?.content).trim();\n case 'image': case 'video': return !content?.src;\n case 'embed': return !content?.url;\n case 'attachment': return !content?.url;\n case 'gallery': return !(content?.images ?? []).some((image: any) => image.src);\n case 'toggle': return !contentEditorText(content?.title).trim() && (content?.blocks ?? []).every(isContentEditorBlockEmpty);\n case 'grid': return (content?.cells ?? []).every((cell: any) => cell.blocks.every(isContentEditorBlockEmpty));\n case 'divider': return false;\n default: return content == null;\n }\n}\n\nexport function contentEditorChildCollections(block: NgsHeadlessEditorBlock): readonly (readonly NgsHeadlessEditorBlock[])[] {\n if (block.type === 'toggle') return [(block.content as any)?.blocks ?? []];\n if (block.type === 'grid') return ((block.content as any)?.cells ?? []).map((cell: any) => cell.blocks);\n return [];\n}\n\nexport function findContentEditorBlock(blocks: readonly NgsHeadlessEditorBlock[], id: string): NgsHeadlessEditorBlock | undefined {\n for (const block of blocks) {\n if (block.id === id) return block;\n for (const children of contentEditorChildCollections(block)) {\n const found = findContentEditorBlock(children, id);\n if (found) return found;\n }\n }\n return undefined;\n}\n\nexport function contentEditorCollection(blocks: readonly NgsHeadlessEditorBlock[], scope: ContentEditorBlockScope): readonly NgsHeadlessEditorBlock[] {\n if (!scope.parentId) return blocks;\n const parent = findContentEditorBlock(blocks, scope.parentId);\n if (parent?.type === 'toggle') return (parent.content as any).blocks;\n if (parent?.type === 'grid') return (parent.content as any).cells.find((cell: any) => cell.id === scope.cellId)?.blocks ?? [];\n return [];\n}\n\n/** Update only on a cloned document; callers preserve immutable undo snapshots. */\nexport function replaceContentEditorCollection(blocks: NgsHeadlessEditorBlock[], scope: ContentEditorBlockScope, value: readonly NgsHeadlessEditorBlock[]): void {\n if (!scope.parentId) { blocks.splice(0, blocks.length, ...value); return; }\n const parent = findContentEditorBlock(blocks, scope.parentId);\n if (parent?.type === 'toggle') (parent.content as any).blocks = value;\n if (parent?.type === 'grid') {\n const cell = (parent.content as any).cells.find((cell: any) => cell.id === scope.cellId);\n if (cell) cell.blocks = value;\n }\n}\n\n/** Mutable UI payloads must not mutate saved documents or undo snapshots. */\nexport function cloneContentEditorValue<T>(value: T): T {\n if (Array.isArray(value)) return value.map(item => cloneContentEditorValue(item)) as T;\n if (value !== null && typeof value === 'object') {\n return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, cloneContentEditorValue(item)])) as T;\n }\n return value;\n}\n\n/** Locates the collection owning a block, including deeply nested Grid/Toggle blocks. */\nexport function contentEditorBlockScope(blocks: readonly NgsHeadlessEditorBlock[], id: string, scope: ContentEditorBlockScope = {}): ContentEditorBlockScope | null {\n for (const block of blocks) {\n if (block.id === id) return scope;\n if (block.type === 'toggle') {\n const found = contentEditorBlockScope((block.content as any).blocks, id, { parentId: block.id });\n if (found) return found;\n }\n if (block.type === 'grid') for (const cell of (block.content as any).cells) {\n const found = contentEditorBlockScope(cell.blocks, id, { parentId: block.id, cellId: cell.id });\n if (found) return found;\n }\n }\n return null;\n}\n\n/** Copies for insertion/duplication receive fresh ids throughout the tree. */\nexport function contentEditorCopyBlocks(blocks: readonly NgsHeadlessEditorBlock[]): NgsHeadlessEditorBlock[] {\n const copy = cloneContentEditorValue([...blocks]);\n const visit = (block: any) => {\n block.id = createNgsHeadlessEditorId(block.type);\n for (const children of contentEditorChildCollections(block)) children.forEach(visit);\n if (block.type === 'grid') block.content.cells.forEach((cell: any) => cell.id = createNgsHeadlessEditorId('cell'));\n if (block.type === 'gallery') block.content.images.forEach((image: any) => image.id = createNgsHeadlessEditorId('image'));\n };\n copy.forEach(visit); return copy;\n}\n\n/** UTF-16 offsets match the editor selection model; marks remain on sliced runs. */\nexport function contentEditorSliceText(content: ContentEditorText, start: number, end = Infinity): ContentEditorText {\n let offset = 0;\n return content.flatMap(run => {\n const from = Math.max(0, start - offset); const to = Math.min(run.text.length, end - offset);\n offset += run.text.length;\n return to > from ? [{ ...run, text: run.text.slice(from, to) }] : [];\n });\n}\n","import { NgsHeadlessEditorDocument, NgsHeadlessEditorText, NgsHeadlessEditorBlock } from '@ngstarter-ui/components/headless-editor';\nimport { InjectionToken, InputSignal, Signal, Type } from '@angular/core';\nimport type { ContentEditorBlockHtmlConverter } from './html/types';\n\nexport const CONTENT_BUILDER = new InjectionToken('CONTENT_BUILDER');\nexport const CONTENT_EDITOR_BLOCK = new InjectionToken<ReadonlyArray<ContentEditorDataBlock>>('CONTENT_EDITOR_BLOCK');\n\nexport interface ContentEditorDataBlock {\n id: Signal<string>;\n getData(): any;\n focus(): void;\n isEmpty(): boolean;\n initialized: Signal<boolean>;\n}\n\nexport interface ContentEditorBlockEmpty {\n content: any;\n settings: {\n [prop: string]: any;\n }\n}\n\nexport type ContentEditorDocument = NgsHeadlessEditorDocument;\nexport type ContentEditorBlock<TContent = unknown> = NgsHeadlessEditorBlock<TContent>;\nexport type ContentEditorText = readonly NgsHeadlessEditorText[];\nexport type ContentEditorBuiltinBlockType = 'paragraph' | 'heading' | 'code' | 'divider' | 'bulletList' | 'orderedList' |\n 'quote' | 'table' | 'image' | 'video' | 'embed' | 'callout' | 'toggle' | 'attachment' | 'gallery' | 'grid';\nexport type ContentEditorDimension = number | 'auto' | null;\nexport interface ContentEditorQuoteContent {\n cite: { content: ContentEditorText; props?: ContentEditorItemProperty[] };\n caption: { content: ContentEditorText; props?: ContentEditorItemProperty[] };\n}\nexport interface ContentEditorTableCellMetadata {\n props?: ContentEditorItemProperty[];\n options?: { colspan?: number; rowspan?: number; width?: ContentEditorDimension };\n styles?: Readonly<Record<string, unknown>>;\n [key: string]: unknown;\n}\nexport interface ContentEditorTableAttributes {\n rows: readonly (readonly ContentEditorText[])[];\n header?: boolean;\n cellMetadata?: readonly (readonly ContentEditorTableCellMetadata[])[];\n settings?: ContentEditorTableBlockSettings;\n props?: ContentEditorItemProperty[];\n}\n\nexport type ContentEditorCalloutVariant = 'note' | 'tip' | 'warning' | 'danger';\nexport interface ContentEditorCalloutSettings { variant: ContentEditorCalloutVariant; }\nexport interface ContentEditorToggleContent { title: ContentEditorText; blocks: readonly ContentEditorBlock[]; }\nexport interface ContentEditorToggleSettings { expanded: boolean; }\nexport interface ContentEditorAttachmentContent { url: string; name: string; size: number; mimeType: string; }\nexport interface ContentEditorGalleryImage { id: string; src: string; alt: string; caption: ContentEditorText; }\nexport interface ContentEditorGalleryContent { images: readonly ContentEditorGalleryImage[]; }\nexport interface ContentEditorGridCell { id: string; blocks: readonly ContentEditorBlock[]; }\nexport interface ContentEditorGridContent { cells: readonly ContentEditorGridCell[]; }\nexport type ContentEditorGridGap = 'small' | 'medium' | 'large';\nexport interface ContentEditorGridSettings { columns: 2 | 3 | 4; gap: ContentEditorGridGap; stackOnMobile: boolean; }\n/** A block collection in the root document, a toggle, or a cell. */\nexport interface ContentEditorBlockScope { parentId?: string; cellId?: string; }\n/** Destination passed to the shared block menu; omission of afterId appends to the collection. */\nexport interface ContentEditorBlockInsertionTarget { scope: ContentEditorBlockScope; afterId?: string; }\nexport interface ContentEditorUploadContext {\n /** Abort the transport when cancelled, replaced or the block is removed. */\n signal: AbortSignal;\n /** Report transport progress from 0 to 100; omit for indeterminate progress. */\n onProgress(percent: number): void;\n}\nexport type ContentEditorUploadFn = (file: File, dataUrl: string, context: ContentEditorUploadContext) => Promise<string>;\n\n/** UI input view of a native document block. Never used as the saved document. */\nexport interface ContentEditorBlockView {\n id: string;\n type: string;\n content: any;\n isEmpty: boolean;\n attrs?: Readonly<Record<string, unknown>>;\n props?: ContentEditorItemProperty[],\n settings: any;\n}\n\nexport interface ContentEditorBlockDef {\n component: () => any,\n type: string,\n empty: () => ContentEditorBlockEmpty,\n toHtml?: ContentEditorBlockHtmlConverter;\n options: {\n [prop: string]: any;\n }\n}\n\nexport interface ContentEditorHeadingBlockSettings {\n level: number;\n}\n\nexport interface ContentEditorSuggestionHeading {\n type: 'item' | 'heading';\n title: string;\n}\n\nexport interface ContentEditorSuggestionItem {\n type: 'item' | 'heading';\n title: string;\n description: string;\n iconName: string;\n hotKeys: string;\n blockType: string;\n blockOptions: object;\n}\n\nexport interface ContentEditorImageContent {\n src: string;\n alt: string;\n [prop: string]: any;\n}\n\nexport interface ContentEditorVideoContent {\n src: string;\n caption: string;\n orientation?: 'portrait' | 'landscape';\n [prop: string]: any;\n}\n\nexport interface ContentEditorEmbedContent {\n url: string;\n type: string;\n}\n\nexport interface ContentEditorImageBlockSettings {\n // uploadFn: (file: File, base64: string | ArrayBuffer | null) => Promise<ContentEditorImageContent>;\n width?: ContentEditorDimension;\n height?: ContentEditorDimension;\n actualWidth?: ContentEditorDimension;\n actualHeight?: ContentEditorDimension;\n}\n\nexport interface ContentEditorVideoBlockSettings {\n width?: ContentEditorDimension;\n height?: ContentEditorDimension;\n actualWidth?: ContentEditorDimension;\n actualHeight?: ContentEditorDimension;\n}\n\nexport interface ContentEditorEmbedBlockSettings {\n width?: ContentEditorDimension;\n height?: ContentEditorDimension;\n}\n\nexport interface ContentEditorListItem {\n content: ContentEditorText;\n props?: ContentEditorItemProperty[];\n children: ContentEditorListItem[];\n [prop: string]: any;\n}\n\nexport interface ContentEditorListSettings {\n listStyle: string;\n}\n\nexport interface ContentEditorItemProperty {\n name: string;\n value: string;\n}\n\nexport interface ContentEditorTableBlockSettings {\n fullWidth?: boolean;\n}\n\nexport interface ContentEditorOptions {\n [prop: string]: any;\n}\n\nexport interface ContentEditorBlockRendererDef {\n type: string;\n component: Type<unknown>;\n}\n\nexport interface ContentEditorBlockRendererInputs<TContent = unknown, TSettings = unknown> extends Record<string, unknown> {\n block: NgsHeadlessEditorBlock | null;\n id: string;\n type: string;\n content: TContent;\n props: ContentEditorItemProperty[];\n settings: TSettings;\n index: number;\n}\n\nexport interface ContentEditorBlockRendererInputSignals<TContent = unknown, TSettings = unknown> {\n block: InputSignal<NgsHeadlessEditorBlock | null>;\n id: InputSignal<string>;\n type: InputSignal<string>;\n content: InputSignal<TContent>;\n props: InputSignal<ContentEditorItemProperty[]>;\n settings: InputSignal<TSettings>;\n index: InputSignal<number>;\n}\n","import { computed, DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { CdkDropList } from '@angular/cdk/drag-drop';\nimport { NgsHeadlessEditor, NgsHeadlessEditorChangeOrigin, NgsHeadlessEditorSelection } from '@ngstarter-ui/components/headless-editor';\nimport { ContentEditorBlockInsertionTarget, ContentEditorBlockScope, ContentEditorBlockView, ContentEditorDocument } from './types';\nimport { cloneContentEditorValue, contentEditorBlockView, contentEditorNativeBlock, contentEditorCollection, findContentEditorBlock, replaceContentEditorCollection, contentEditorChildCollections } from './document';\n\n/** UI state and block operations. The headless document is the only content store. */\n@Injectable()\nexport class ContentBuilderStore {\n readonly editor = inject(NgsHeadlessEditor);\n private dragging = false;\n constructor() {\n const document = inject(DOCUMENT);\n // Capture the current point before CDK chooses a connected list. Its moved\n // output is emitted after hit testing and would provide the previous point.\n const mouse = (event: MouseEvent) => { if (this.dragging) this.dragPointer.set({ x: event.clientX, y: event.clientY }); };\n const touch = (event: TouchEvent) => {\n const point = event.touches[0];\n if (this.dragging && point) this.dragPointer.set({ x: point.clientX, y: point.clientY });\n };\n document.addEventListener('mousemove', mouse, true);\n document.addEventListener('touchmove', touch, { capture: true, passive: true });\n inject(DestroyRef).onDestroy(() => {\n document.removeEventListener('mousemove', mouse, true);\n document.removeEventListener('touchmove', touch, true);\n });\n }\n private textEdit: { origin: NgsHeadlessEditorChangeOrigin; group: string } | null = null;\n\n /** Scopes typing groups to one text region, so adjacent cells never share undo. */\n withTextEdit(origin: NgsHeadlessEditorChangeOrigin, group: string, edit: () => void): void {\n const previous = this.textEdit;\n this.textEdit = { origin, group };\n try { edit(); } finally { this.textEdit = previous; }\n }\n readonly insertionTarget = signal<ContentEditorBlockInsertionTarget>({ scope: {} });\n readonly restoreTextSelection = signal<{ blockId: string; selection: NgsHeadlessEditorSelection } | null>(null);\n readonly focusedBlockId = signal<string | null>(null);\n readonly activeBlockId = signal<string | null>(null);\n readonly dragPointer = signal<{ x: number; y: number } | null>(null);\n setDragging(dragging: boolean): void {\n this.dragging = dragging;\n if (!dragging) this.dragPointer.set(null);\n }\n readonly dropLists = signal<CdkDropList<ContentEditorBlockScope>[]>([]);\n registerDropList(list: CdkDropList<ContentEditorBlockScope>): void {\n if (!this.dropLists().includes(list)) this.dropLists.update(lists => [...lists, list]);\n }\n unregisterDropList(list: CdkDropList<ContentEditorBlockScope>): void {\n this.dropLists.update(lists => lists.filter(item => item !== list));\n }\n readonly blocks = computed(() => this.editor.document().blocks.map(contentEditorBlockView));\n\n setFocusedBlockId(id: string | null): void { this.focusedBlockId.set(id); }\n setActiveBlockId(id: string | null): void { this.activeBlockId.set(id); }\n setBlocks(value: ContentEditorDocument): void {\n this.editor.setDocument(value);\n }\n addBlock(block: ContentEditorBlockView, index: number, scope: ContentEditorBlockScope = {}): void {\n const native = contentEditorNativeBlock(block);\n const blocks = cloneContentEditorValue([...this.editor.document().blocks]);\n const collection = [...contentEditorCollection(blocks, scope)];\n collection.splice(index, 0, native);\n replaceContentEditorCollection(blocks, scope, collection);\n this.editor.updateDocument({ version: 1, blocks });\n }\n deleteBlock(id: string, _index: number): void { this.deleteBlocks([id]); }\n deleteBlocks(ids: readonly string[]): void {\n const selected = new Set(ids);\n const blocks = cloneContentEditorValue([...this.editor.document().blocks]);\n let changed = false;\n const remove = (items: any[]): void => {\n for (let index = items.length - 1; index >= 0; index--) {\n if (selected.has(items[index].id)) { items.splice(index, 1); changed = true; }\n else for (const children of contentEditorChildCollections(items[index])) remove(children as any[]);\n }\n };\n remove(blocks);\n if (changed) this.editor.updateDocument({ version: 1, blocks });\n }\n updateBlock(id: string, data: Partial<ContentEditorBlockView>): void {\n const blocks = cloneContentEditorValue([...this.editor.document().blocks]);\n const previous = findContentEditorBlock(blocks, id);\n if (!previous) return;\n const next = contentEditorNativeBlock({ ...contentEditorBlockView(previous), ...data });\n const origin = this.textEdit?.origin ?? 'command';\n const typing = origin === 'keyboard' || origin === 'composition';\n const root = blocks.find(block => !!findContentEditorBlock([block], id))!;\n Object.assign(previous, next);\n this.editor.updateBlock(root.id, { content: root.content, attrs: root.attrs },\n typing ? origin : 'command', typing ? this.textEdit?.group ?? null : null);\n }\n moveBlock(from: number, to: number): void {\n const blocks = [...this.editor.document().blocks];\n const [block] = blocks.splice(from, 1);\n blocks.splice(to, 0, block);\n this.editor.updateDocument({ version: 1, blocks });\n }\n moveBetweenCollections(from: number, to: number, source: ContentEditorBlockScope, target: ContentEditorBlockScope): void {\n const blocks = cloneContentEditorValue([...this.editor.document().blocks]);\n const sourceItems = [...contentEditorCollection(blocks, source)];\n const block = sourceItems[from];\n if (!block || (target.parentId && findContentEditorBlock([block], target.parentId))) return;\n sourceItems.splice(from, 1);\n replaceContentEditorCollection(blocks, source, sourceItems);\n const targetItems = [...contentEditorCollection(blocks, target)];\n targetItems.splice(to, 0, block);\n replaceContentEditorCollection(blocks, target, targetItems);\n this.editor.updateDocument({ version: 1, blocks });\n }\n}\n"],"mappings":";;;;AAMA,SAAgB,kBAAkB,OAAkC;CAClE,OAAO,+BAA+B,KAAK,IAAI,MAAM,KAAI,QAAO,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI;AACvF;AAGA,SAAgB,uBAAuB,OAA6B;CAClE,OAAO;EACL,IAAI,MAAM;EAAI,MAAM,MAAM;EAAM,SAAS,MAAM,SAAS,UAAU,wBAAwB,KAAK,IAAI,wBAAwB,MAAM,OAAO;EACxI,OAAO,wBAAwB,MAAM,KAAK;EAC1C,UAAU,wBAAwB,MAAM,QAAQ,eAAe,CAAA,CAAE;EACjE,OAAO,wBAAwB,MAAM,QAAQ,YAAY,CAAA,CAAE;EAC3D,SAAS,0BAA0B,KAAK;CACzC;AACH;AAEA,SAAgB,yBAAyB,OAA6B;CACpE,MAAM,QAAQ;EACZ,GAAG,wBAAwB,MAAM,KAAK;EACtC,UAAU,wBAAwB,MAAM,QAAQ;EAAG,OAAO,wBAAwB,MAAM,SAAS,CAAA,CAAE;CACpG;CACD,IAAI,M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