@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,188 +0,0 @@
|
|
|
1
|
-
import { C as ContentBuilderStore, a as CONTENT_BUILDER, c as cloneContentEditorValue, b as contentEditorText, d as ContentEditorContentEditableDirective, e as CONTENT_EDITOR_BLOCK } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, ElementRef, Injector, input, signal, effect, untracked, afterNextRender, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
|
|
5
|
-
import { C as CursorController } from './ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs';
|
|
6
|
-
|
|
7
|
-
class ListBlockComponent {
|
|
8
|
-
_store = inject(ContentBuilderStore);
|
|
9
|
-
_contentBuilder = inject(CONTENT_BUILDER);
|
|
10
|
-
document = inject(DOCUMENT);
|
|
11
|
-
element = inject(ElementRef).nativeElement;
|
|
12
|
-
injector = inject(Injector);
|
|
13
|
-
id = input.required(/* @ts-ignore */
|
|
14
|
-
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
15
|
-
content = input.required(/* @ts-ignore */
|
|
16
|
-
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
17
|
-
settings = input.required(/* @ts-ignore */
|
|
18
|
-
...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
|
|
19
|
-
index = input.required(/* @ts-ignore */
|
|
20
|
-
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
21
|
-
props = input([], /* @ts-ignore */
|
|
22
|
-
...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
|
|
23
|
-
_placeholder = signal('List item', /* @ts-ignore */
|
|
24
|
-
...(ngDevMode ? [{ debugName: "_placeholder" }] : /* istanbul ignore next */ []));
|
|
25
|
-
_content = signal([
|
|
26
|
-
{
|
|
27
|
-
content: [],
|
|
28
|
-
props: [],
|
|
29
|
-
children: []
|
|
30
|
-
}
|
|
31
|
-
], /* @ts-ignore */
|
|
32
|
-
...(ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []));
|
|
33
|
-
_listStyle = signal('', /* @ts-ignore */
|
|
34
|
-
...(ngDevMode ? [{ debugName: "_listStyle" }] : /* istanbul ignore next */ []));
|
|
35
|
-
initialized = signal(false, /* @ts-ignore */
|
|
36
|
-
...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
|
|
37
|
-
constructor() {
|
|
38
|
-
effect(() => {
|
|
39
|
-
const content = this.content();
|
|
40
|
-
const settings = this.settings();
|
|
41
|
-
untracked(() => {
|
|
42
|
-
this._content.set(cloneContentEditorValue(content.length ? content : [{ content: [], props: [], children: [] }]));
|
|
43
|
-
this._listStyle.set(settings.listStyle);
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
afterNextRender(() => {
|
|
47
|
-
if (this._store.focusedBlockId() === this.id())
|
|
48
|
-
this.focus();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
ngOnInit() {
|
|
52
|
-
this._listStyle.set(this.settings().listStyle);
|
|
53
|
-
if (this.content().length !== 0) {
|
|
54
|
-
this._content.set(cloneContentEditorValue(this.content()));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
ngAfterViewInit() {
|
|
58
|
-
this.initialized.set(true);
|
|
59
|
-
}
|
|
60
|
-
focus() {
|
|
61
|
-
this.focusItem(this.element.querySelector(':scope > .list > .list-item'));
|
|
62
|
-
}
|
|
63
|
-
onContentChanged(content, list, index) {
|
|
64
|
-
if (!list[index]) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
list[index].content = content;
|
|
68
|
-
this.update();
|
|
69
|
-
}
|
|
70
|
-
onPressedEnter(event, contentEditable, list, index, parentItem, parentList, listItem) {
|
|
71
|
-
event.preventDefault();
|
|
72
|
-
event.stopPropagation();
|
|
73
|
-
if (contentEditorText(contentEditable.getContent())) {
|
|
74
|
-
list.splice(index + 1, 0, { content: [], props: [], styles: {}, children: [] });
|
|
75
|
-
this.focusAfterEdit(listItem, () => listItem.nextElementSibling);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
list.splice(index, 1);
|
|
79
|
-
if (parentItem) {
|
|
80
|
-
const parentIndex = parentList.findIndex(item => item === parentItem);
|
|
81
|
-
const parentElement = listItem.parentElement?.parentElement;
|
|
82
|
-
parentList.splice(parentIndex + 1, 0, { content: [], props: [], children: [] });
|
|
83
|
-
this.focusAfterEdit(listItem, () => parentElement?.nextElementSibling ?? null);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
if (list.length === 0)
|
|
87
|
-
this._contentBuilder.deleteBlock(this.id());
|
|
88
|
-
this._contentBuilder.insertEmptyBlock(this.index());
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
this.update();
|
|
92
|
-
}
|
|
93
|
-
getId(level, index) {
|
|
94
|
-
return 'item-level-' + (level + index + 2).toString();
|
|
95
|
-
}
|
|
96
|
-
getData() {
|
|
97
|
-
return {
|
|
98
|
-
content: this._content(),
|
|
99
|
-
settings: {
|
|
100
|
-
...this.settings(),
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
isEmpty() {
|
|
105
|
-
return !this._content().some(item => contentEditorText(item.content).trim() || item.children.length > 0);
|
|
106
|
-
}
|
|
107
|
-
focusAfterEdit(origin, target) {
|
|
108
|
-
afterNextRender(() => {
|
|
109
|
-
const active = this.document.activeElement;
|
|
110
|
-
if (origin.contains(active) || (!origin.isConnected && active === this.document.body)) {
|
|
111
|
-
this.focusItem(target());
|
|
112
|
-
}
|
|
113
|
-
}, { injector: this.injector });
|
|
114
|
-
}
|
|
115
|
-
focusItem(item) {
|
|
116
|
-
const element = item?.querySelector(':scope > .list-item-content');
|
|
117
|
-
if (element)
|
|
118
|
-
new CursorController(element).setToEnd();
|
|
119
|
-
}
|
|
120
|
-
_onKeyDown(event, contentEditable, list, index, level, parentItem, parentList, listItem) {
|
|
121
|
-
if (event.key === 'Backspace' && !contentEditorText(contentEditable.getContent())) {
|
|
122
|
-
const parentElement = parentItem ? listItem.parentElement?.parentElement : null;
|
|
123
|
-
const previous = listItem.previousElementSibling ?? parentElement ?? null;
|
|
124
|
-
list.splice(index, 1);
|
|
125
|
-
this.focusAfterEdit(listItem, () => previous);
|
|
126
|
-
}
|
|
127
|
-
else if (event.key === 'Tab') {
|
|
128
|
-
event.preventDefault();
|
|
129
|
-
event.stopPropagation();
|
|
130
|
-
if (event.shiftKey && parentItem) {
|
|
131
|
-
const parentElement = listItem.parentElement?.parentElement;
|
|
132
|
-
const cached = JSON.parse(JSON.stringify(list[index]));
|
|
133
|
-
list.splice(index, 1);
|
|
134
|
-
const parentIndex = parentList.findIndex(item => item === parentItem);
|
|
135
|
-
parentList.splice(parentIndex + 1, 0, cached);
|
|
136
|
-
this.focusAfterEdit(listItem, () => parentElement?.nextElementSibling ?? null);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
if (list[index - 1]) {
|
|
140
|
-
const previous = listItem.previousElementSibling;
|
|
141
|
-
const cached = JSON.parse(JSON.stringify(list[index]));
|
|
142
|
-
list.splice(index, 1);
|
|
143
|
-
list[index - 1].children.push(cached);
|
|
144
|
-
this.focusAfterEdit(listItem, () => previous?.querySelector(':scope > .list > .list-item:last-child') ?? null);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
if (level === 0 && list.length === 0) {
|
|
149
|
-
this._contentBuilder.deleteBlock(this.id());
|
|
150
|
-
}
|
|
151
|
-
this.update();
|
|
152
|
-
}
|
|
153
|
-
onPropsChanged(props, item) {
|
|
154
|
-
item.props = props;
|
|
155
|
-
this.update();
|
|
156
|
-
}
|
|
157
|
-
update() {
|
|
158
|
-
this._store.updateBlock(this.id(), { ...this.getData(), isEmpty: this.isEmpty() });
|
|
159
|
-
this._contentBuilder.emitContentChangeEvent();
|
|
160
|
-
}
|
|
161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ListBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: ListBlockComponent, isStandalone: true, selector: "ngs-list-block", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: true, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.list-bullet": "_listStyle() === 'bullet'", "class.list-ordered": "_listStyle() === 'ordered'" } }, providers: [
|
|
163
|
-
{
|
|
164
|
-
provide: CONTENT_EDITOR_BLOCK,
|
|
165
|
-
useExisting: ListBlockComponent,
|
|
166
|
-
multi: true
|
|
167
|
-
}
|
|
168
|
-
], exportAs: ["ngsListBlock"], ngImport: i0, template: "<ul class=\"list\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _content(), level: 0, parentItem: null, parentList: [] }\"/>\n</ul>\n\n<ng-template #listTpl let-list let-level=\"level\" let-parentItem=\"parentItem\" let-parentList=\"parentList\">\n @for (item of list; track $index; let index = $index) {\n <li #listItem class=\"list-item\" [attr.id]=\"getId(level, index)\">\n <div [singleLine]=\"true\"\n [ngsContentEditorContentEditable]=\"item.content\"\n [props]=\"item.props\"\n (propsChanged)=\"onPropsChanged($event, item)\"\n #contentEditable=\"ngsContentEditorContentEditable\"\n class=\"list-item-content\"\n (contentChanged)=\"onContentChanged($event, list, index)\"\n (pressedEnter)=\"onPressedEnter($event, contentEditable, list, index, parentItem, parentList, listItem)\"\n (keydown)=\"_onKeyDown($event, contentEditable, list, index, level, parentItem, parentList, listItem)\"\n [attr.data-empty-placeholder]=\"_placeholder()\"></div>\n @if (item.children.length > 0) {\n <ol class=\"list\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item.children, level: level + 1, parentItem: item, parentList: list }\"/>\n </ol>\n }\n </li>\n }\n</ng-template>\n", styles: [":host .list{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);padding-inline-start:calc(var(--spacing, .25rem) * 4);--tw-outline-style: none;outline-style:none}:host .list .list{margin-top:calc(var(--spacing, .25rem) * 2);padding-inline-start:calc(var(--spacing, .25rem) * 4)}:host.list-ordered .list{list-style-type:decimal}:host.list-bullet .list{list-style-type:disc}:host .list-item-content{--tw-outline-style: none;outline-style:none}:host .list-item-content:empty:before{content:attr(data-empty-placeholder);color:var(--ngs-content-editor-placeholder-color, var(--ngs-color-on-surface-variant))}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: ContentEditorContentEditableDirective, selector: "[ngsContentEditorContentEditable]", inputs: ["ngsContentEditorContentEditable", "settings", "props", "singleLine"], outputs: ["contentChanged", "propsChanged", "pressedEnter", "initialized"], exportAs: ["ngsContentEditorContentEditable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
169
|
-
}
|
|
170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ListBlockComponent, decorators: [{
|
|
171
|
-
type: Component,
|
|
172
|
-
args: [{ selector: 'ngs-list-block', exportAs: 'ngsListBlock', imports: [
|
|
173
|
-
ContentEditorContentEditableDirective,
|
|
174
|
-
NgTemplateOutlet
|
|
175
|
-
], providers: [
|
|
176
|
-
{
|
|
177
|
-
provide: CONTENT_EDITOR_BLOCK,
|
|
178
|
-
useExisting: ListBlockComponent,
|
|
179
|
-
multi: true
|
|
180
|
-
}
|
|
181
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
182
|
-
'[class.list-bullet]': "_listStyle() === 'bullet'",
|
|
183
|
-
'[class.list-ordered]': "_listStyle() === 'ordered'",
|
|
184
|
-
}, template: "<ul class=\"list\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _content(), level: 0, parentItem: null, parentList: [] }\"/>\n</ul>\n\n<ng-template #listTpl let-list let-level=\"level\" let-parentItem=\"parentItem\" let-parentList=\"parentList\">\n @for (item of list; track $index; let index = $index) {\n <li #listItem class=\"list-item\" [attr.id]=\"getId(level, index)\">\n <div [singleLine]=\"true\"\n [ngsContentEditorContentEditable]=\"item.content\"\n [props]=\"item.props\"\n (propsChanged)=\"onPropsChanged($event, item)\"\n #contentEditable=\"ngsContentEditorContentEditable\"\n class=\"list-item-content\"\n (contentChanged)=\"onContentChanged($event, list, index)\"\n (pressedEnter)=\"onPressedEnter($event, contentEditable, list, index, parentItem, parentList, listItem)\"\n (keydown)=\"_onKeyDown($event, contentEditable, list, index, level, parentItem, parentList, listItem)\"\n [attr.data-empty-placeholder]=\"_placeholder()\"></div>\n @if (item.children.length > 0) {\n <ol class=\"list\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item.children, level: level + 1, parentItem: item, parentList: list }\"/>\n </ol>\n }\n </li>\n }\n</ng-template>\n", styles: [":host .list{display:flex;flex-direction:column;gap:calc(var(--spacing, .25rem) * 2);padding-inline-start:calc(var(--spacing, .25rem) * 4);--tw-outline-style: none;outline-style:none}:host .list .list{margin-top:calc(var(--spacing, .25rem) * 2);padding-inline-start:calc(var(--spacing, .25rem) * 4)}:host.list-ordered .list{list-style-type:decimal}:host.list-bullet .list{list-style-type:disc}:host .list-item-content{--tw-outline-style: none;outline-style:none}:host .list-item-content:empty:before{content:attr(data-empty-placeholder);color:var(--ngs-content-editor-placeholder-color, var(--ngs-color-on-surface-variant))}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
185
|
-
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: true }] }], content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }], settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "settings", required: true }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }] } });
|
|
186
|
-
|
|
187
|
-
export { ListBlockComponent };
|
|
188
|
-
//# sourceMappingURL=ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map
|
package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs","sources":["../../../projects/components/content-editor/src/_builder/list-block/list-block.component.ts","../../../projects/components/content-editor/src/_builder/list-block/list-block.component.html"],"sourcesContent":["import { NgsHeadlessEditorText } from '@ngstarter-ui/components/headless-editor';\nimport { contentEditorText, cloneContentEditorValue } from '../../document';\nimport {\n afterNextRender,\n AfterViewInit,\n ChangeDetectionStrategy,\n Component, effect, untracked,\n ElementRef,\n inject,\n Injector,\n input,\n OnInit,\n signal\n} from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport {\n CONTENT_BUILDER, CONTENT_EDITOR_BLOCK,\n ContentEditorDataBlock,\n ContentEditorItemProperty,\n ContentEditorListItem,\n ContentEditorListSettings\n} from '../../types';\nimport { ContentEditorContentEditableDirective } from '../../content-editor-content-editable.directive';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { CursorController } from '../../utils/cursor-controller';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\n\n@Component({\n selector: 'ngs-list-block',\n exportAs: 'ngsListBlock',\n imports: [\n ContentEditorContentEditableDirective,\n NgTemplateOutlet\n ],\n templateUrl: './list-block.component.html',\n styleUrl: './list-block.component.scss',\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: ListBlockComponent,\n multi: true\n }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.list-bullet]': \"_listStyle() === 'bullet'\",\n '[class.list-ordered]': \"_listStyle() === 'ordered'\",\n }\n})\nexport class ListBlockComponent implements OnInit, ContentEditorDataBlock, AfterViewInit {\n private _store = inject(ContentBuilderStore);\n private _contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n private readonly document = inject(DOCUMENT);\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly injector = inject(Injector);\n\n id = input.required<string>();\n content = input.required<ContentEditorListItem[]>();\n settings = input.required<ContentEditorListSettings>();\n index = input.required<number>();\n props = input<ContentEditorItemProperty[]>([]);\n\n protected _placeholder = signal<string>('List item');\n protected _content = signal<ContentEditorListItem[]>([\n {\n content: [],\n props: [],\n children: []\n }\n ]);\n protected _listStyle = signal('');\n readonly initialized = signal(false);\n\n constructor() {\n effect(() => {\n const content = this.content();\n const settings = this.settings();\n untracked(() => {\n this._content.set(cloneContentEditorValue(content.length ? content : [{ content: [], props: [], children: [] }]));\n this._listStyle.set(settings.listStyle);\n });\n });\n afterNextRender(() => {\n if (this._store.focusedBlockId() === this.id()) this.focus();\n });\n }\n\n ngOnInit() {\n this._listStyle.set(this.settings().listStyle);\n\n if (this.content().length !== 0) {\n this._content.set(cloneContentEditorValue(this.content()));\n }\n }\n\n ngAfterViewInit() {\n this.initialized.set(true);\n }\n\n focus() {\n this.focusItem(this.element.querySelector(':scope > .list > .list-item'));\n }\n\n protected onContentChanged(content: readonly NgsHeadlessEditorText[], list: ContentEditorListItem[], index: number) {\n if (!list[index]) {\n return;\n }\n\n list[index].content = content;\n this.update();\n }\n\n protected onPressedEnter(\n event: KeyboardEvent,\n contentEditable: ContentEditorContentEditableDirective,\n list: ContentEditorListItem[],\n index: number,\n parentItem: ContentEditorListItem | null,\n parentList: ContentEditorListItem[],\n listItem: HTMLElement\n ) {\n event.preventDefault();\n event.stopPropagation();\n\n if (contentEditorText(contentEditable.getContent())) {\n list.splice(index + 1, 0, { content: [], props: [], styles: {}, children: [] });\n this.focusAfterEdit(listItem, () => listItem.nextElementSibling);\n } else {\n list.splice(index, 1);\n if (parentItem) {\n const parentIndex = parentList.findIndex(item => item === parentItem);\n const parentElement = listItem.parentElement?.parentElement;\n parentList.splice(parentIndex + 1, 0, { content: [], props: [], children: [] });\n this.focusAfterEdit(listItem, () => parentElement?.nextElementSibling ?? null);\n } else {\n if (list.length === 0) this._contentBuilder.deleteBlock(this.id());\n this._contentBuilder.insertEmptyBlock(this.index());\n }\n }\n\n this.update();\n }\n\n getId(level: number, index: number): string {\n return 'item-level-' + (level + index + 2).toString();\n }\n\n getData(): any {\n return {\n content: this._content(),\n settings: {\n ...this.settings(),\n }\n };\n }\n\n isEmpty(): boolean {\n return !this._content().some(item => contentEditorText(item.content).trim() || item.children.length > 0);\n }\n\n private focusAfterEdit(origin: HTMLElement, target: () => Element | null): void {\n afterNextRender(() => {\n const active = this.document.activeElement;\n if (origin.contains(active) || (!origin.isConnected && active === this.document.body)) {\n this.focusItem(target());\n }\n }, { injector: this.injector });\n }\n\n private focusItem(item: Element | null): void {\n const element = item?.querySelector<HTMLElement>(':scope > .list-item-content');\n if (element) new CursorController(element).setToEnd();\n }\n\n protected _onKeyDown(\n event: KeyboardEvent,\n contentEditable: ContentEditorContentEditableDirective,\n list: ContentEditorListItem[],\n index: number,\n level: number,\n parentItem: ContentEditorListItem | null,\n parentList: ContentEditorListItem[],\n listItem: HTMLElement\n ) {\n if (event.key === 'Backspace' && !contentEditorText(contentEditable.getContent())) {\n const parentElement = parentItem ? listItem.parentElement?.parentElement : null;\n const previous = listItem.previousElementSibling ?? parentElement ?? null;\n list.splice(index, 1);\n this.focusAfterEdit(listItem, () => previous);\n } else if (event.key === 'Tab') {\n event.preventDefault();\n event.stopPropagation();\n\n if (event.shiftKey && parentItem) {\n const parentElement = listItem.parentElement?.parentElement;\n const cached = JSON.parse(JSON.stringify(list[index]));\n list.splice(index, 1);\n const parentIndex = parentList.findIndex(item => item === parentItem);\n parentList.splice(parentIndex + 1, 0, cached);\n this.focusAfterEdit(listItem, () => parentElement?.nextElementSibling ?? null);\n } else {\n if (list[index - 1]) {\n const previous = listItem.previousElementSibling;\n const cached = JSON.parse(JSON.stringify(list[index]));\n list.splice(index, 1);\n list[index - 1].children.push(cached);\n this.focusAfterEdit(listItem, () => previous?.querySelector(':scope > .list > .list-item:last-child') ?? null);\n }\n }\n }\n\n if (level === 0 && list.length === 0) {\n this._contentBuilder.deleteBlock(this.id());\n }\n\n this.update();\n }\n\n onPropsChanged(props: ContentEditorItemProperty[], item: any) {\n item.props = props;\n this.update();\n }\n\n private update() {\n this._store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this._contentBuilder.emitContentChangeEvent();\n }\n}\n","<ul class=\"list\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _content(), level: 0, parentItem: null, parentList: [] }\"/>\n</ul>\n\n<ng-template #listTpl let-list let-level=\"level\" let-parentItem=\"parentItem\" let-parentList=\"parentList\">\n @for (item of list; track $index; let index = $index) {\n <li #listItem class=\"list-item\" [attr.id]=\"getId(level, index)\">\n <div [singleLine]=\"true\"\n [ngsContentEditorContentEditable]=\"item.content\"\n [props]=\"item.props\"\n (propsChanged)=\"onPropsChanged($event, item)\"\n #contentEditable=\"ngsContentEditorContentEditable\"\n class=\"list-item-content\"\n (contentChanged)=\"onContentChanged($event, list, index)\"\n (pressedEnter)=\"onPressedEnter($event, contentEditable, list, index, parentItem, parentList, listItem)\"\n (keydown)=\"_onKeyDown($event, contentEditable, list, index, level, parentItem, parentList, listItem)\"\n [attr.data-empty-placeholder]=\"_placeholder()\"></div>\n @if (item.children.length > 0) {\n <ol class=\"list\">\n <ng-container [ngTemplateOutlet]=\"listTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: item.children, level: level + 1, parentItem: item, parentList: list }\"/>\n </ol>\n }\n </li>\n }\n</ng-template>\n"],"names":[],"mappings":";;;;;;MAiDa,kBAAkB,CAAA;AACrB,IAAA,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACpC,IAAA,eAAe,GAAG,MAAM,CAA0B,eAAe,CAAC;AACzD,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AACnE,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAE5C,EAAE,GAAG,KAAK,CAAC,QAAQ;2EAAU;IAC7B,OAAO,GAAG,KAAK,CAAC,QAAQ;gFAA2B;IACnD,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAA6B;IACtD,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU;IAChC,KAAK,GAAG,KAAK,CAA8B,EAAE;8EAAC;I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ACrD,qBAAA,EAAA,QAAA,EAAA,45CAAA,EAAA,MAAA,EAAA,CAAA,srBAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { DOCUMENT, NgComponentOutlet, AsyncPipe } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, viewChild, input, signal, EventEmitter, effect, afterNextRender, DestroyRef, computed, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import { CdkDropList, CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
5
|
-
import { Button } from '@ngstarter-ui/components/button';
|
|
6
|
-
import { Icon } from '@ngstarter-ui/components/icon';
|
|
7
|
-
import { Menu, MenuItem, MenuTrigger } from '@ngstarter-ui/components/menu';
|
|
8
|
-
import { a as CONTENT_BUILDER, C as ContentBuilderStore, m as contentEditorCollection, n as contentEditorBlockView, c as cloneContentEditorValue, o as contentEditorChildCollections, k as findContentEditorBlock } from './ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs';
|
|
9
|
-
import { createNgsHeadlessEditorId } from '@ngstarter-ui/components/headless-editor';
|
|
10
|
-
|
|
11
|
-
class ContentEditorNestedBlocks {
|
|
12
|
-
parent = inject(CONTENT_BUILDER, { skipSelf: true });
|
|
13
|
-
store = inject(ContentBuilderStore);
|
|
14
|
-
document = inject(DOCUMENT);
|
|
15
|
-
dropList = viewChild.required(CdkDropList, /* @ts-ignore */
|
|
16
|
-
...(ngDevMode ? [{ debugName: "dropList" }] : /* istanbul ignore next */ []));
|
|
17
|
-
connectedDropLists = this.store.dropLists;
|
|
18
|
-
scope = input.required(/* @ts-ignore */
|
|
19
|
-
...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
20
|
-
emptyBlock = signal(this.rootBuilder.createBlockView('paragraph'), /* @ts-ignore */
|
|
21
|
-
...(ngDevMode ? [{ debugName: "emptyBlock" }] : /* istanbul ignore next */ []));
|
|
22
|
-
focusChanged = new EventEmitter();
|
|
23
|
-
constructor() {
|
|
24
|
-
effect(() => {
|
|
25
|
-
if (this.blocks().some(block => block.id === this.emptyBlock().id))
|
|
26
|
-
this.emptyBlock.set(this.rootBuilder.createBlockView('paragraph'));
|
|
27
|
-
});
|
|
28
|
-
let registered = null;
|
|
29
|
-
afterNextRender(() => { registered = this.dropList(); this.store.registerDropList(registered); });
|
|
30
|
-
inject(DestroyRef).onDestroy(() => { if (registered)
|
|
31
|
-
this.store.unregisterDropList(registered); });
|
|
32
|
-
}
|
|
33
|
-
get rootBuilder() { return this.parent.rootBuilder; }
|
|
34
|
-
blocks = computed(() => contentEditorCollection(this.store.editor.document().blocks, this.scope()).map(contentEditorBlockView), /* @ts-ignore */
|
|
35
|
-
...(ngDevMode ? [{ debugName: "blocks" }] : /* istanbul ignore next */ []));
|
|
36
|
-
renderedBlocks = computed(() => {
|
|
37
|
-
const blocks = this.blocks();
|
|
38
|
-
return blocks.length ? blocks : [this.emptyBlock()];
|
|
39
|
-
}, /* @ts-ignore */
|
|
40
|
-
...(ngDevMode ? [{ debugName: "renderedBlocks" }] : /* istanbul ignore next */ []));
|
|
41
|
-
getBlockComponent(type) { return this.rootBuilder.getBlockComponent(type); }
|
|
42
|
-
getBlockDefOption(type, key) { return this.rootBuilder.getBlockDefOption(type, key); }
|
|
43
|
-
emitContentChangeEvent() { }
|
|
44
|
-
focusBlock(id) { this.store.setFocusedBlockId(id); this.focusChanged.emit(); }
|
|
45
|
-
insertEmptyBlock(index) { this.addBlock('paragraph', {}, index + 1); }
|
|
46
|
-
updateParagraph(id, data) {
|
|
47
|
-
if (this.blocks().some(block => block.id === id))
|
|
48
|
-
this.store.updateBlock(id, data);
|
|
49
|
-
else if (id === this.emptyBlock().id)
|
|
50
|
-
this.store.addBlock({ ...this.emptyBlock(), ...data }, this.blocks().length, this.scope());
|
|
51
|
-
}
|
|
52
|
-
addBlock(type, settings = {}, index = this.blocks().length) {
|
|
53
|
-
const block = this.rootBuilder.createBlockView(type, settings);
|
|
54
|
-
this.store.addBlock(block, index, this.scope());
|
|
55
|
-
this.focusBlock(block.id);
|
|
56
|
-
}
|
|
57
|
-
deleteBlock(id) {
|
|
58
|
-
const index = this.blocks().findIndex(block => block.id === id);
|
|
59
|
-
if (index < 0)
|
|
60
|
-
return;
|
|
61
|
-
this.store.deleteBlock(id, index);
|
|
62
|
-
this.focusBlock(this.blocks()[Math.max(0, index - 1)]?.id ?? null);
|
|
63
|
-
}
|
|
64
|
-
duplicateBlock(id) {
|
|
65
|
-
const index = this.blocks().findIndex(block => block.id === id);
|
|
66
|
-
if (index < 0)
|
|
67
|
-
return;
|
|
68
|
-
const block = cloneContentEditorValue(this.blocks()[index]);
|
|
69
|
-
const reidentify = (item) => {
|
|
70
|
-
item.id = createNgsHeadlessEditorId(item.type);
|
|
71
|
-
for (const children of contentEditorChildCollections(item))
|
|
72
|
-
for (const child of children)
|
|
73
|
-
reidentify(child);
|
|
74
|
-
if (item.type === 'grid')
|
|
75
|
-
for (const cell of item.content.cells)
|
|
76
|
-
cell.id = createNgsHeadlessEditorId('cell');
|
|
77
|
-
if (item.type === 'gallery')
|
|
78
|
-
for (const image of item.content.images)
|
|
79
|
-
image.id = createNgsHeadlessEditorId('image');
|
|
80
|
-
};
|
|
81
|
-
reidentify(block);
|
|
82
|
-
this.store.addBlock(block, index + 1, this.scope());
|
|
83
|
-
}
|
|
84
|
-
drop(event) {
|
|
85
|
-
this.store.moveBetweenCollections(event.previousIndex, event.currentIndex, event.previousContainer.data, event.container.data);
|
|
86
|
-
}
|
|
87
|
-
onDragStarted() { this.store.setDragging(true); }
|
|
88
|
-
onDragEnded() { this.store.setDragging(false); }
|
|
89
|
-
canEnter = (drag, drop) => {
|
|
90
|
-
const pointer = this.store.dragPointer();
|
|
91
|
-
const nearest = pointer ? this.document.elementFromPoint(pointer.x, pointer.y)?.closest('.cdk-drop-list') : null;
|
|
92
|
-
if (nearest && nearest.id !== drop.id)
|
|
93
|
-
return false;
|
|
94
|
-
const parentId = drop.data.parentId;
|
|
95
|
-
const block = findContentEditorBlock(this.store.editor.document().blocks, drag.data);
|
|
96
|
-
return !parentId || !block || !findContentEditorBlock([block], parentId);
|
|
97
|
-
};
|
|
98
|
-
onKeyDown(event) {
|
|
99
|
-
if (event.defaultPrevented)
|
|
100
|
-
return;
|
|
101
|
-
if ((event.ctrlKey || event.metaKey) && ['z', 'y'].includes(event.key.toLowerCase())) {
|
|
102
|
-
const redo = event.key.toLowerCase() === 'y' || event.shiftKey;
|
|
103
|
-
if (redo ? this.store.editor.redo() : this.store.editor.undo())
|
|
104
|
-
event.preventDefault();
|
|
105
|
-
event.stopPropagation();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorNestedBlocks, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: ContentEditorNestedBlocks, isStandalone: true, selector: "ngs-content-editor-nested-blocks", inputs: { scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "keydown": "onKeyDown($event)" } }, providers: [{ provide: CONTENT_BUILDER, useExisting: forwardRef(() => ContentEditorNestedBlocks) }], viewQueries: [{ propertyName: "dropList", first: true, predicate: CdkDropList, descendants: true, isSignal: true }], ngImport: i0, template: "<div cdkDropList [cdkDropListData]=\"scope()\" [cdkDropListConnectedTo]=\"connectedDropLists()\" [cdkDropListEnterPredicate]=\"canEnter\" (cdkDropListDropped)=\"drop($event)\" class=\"min-h-12\">\n @for (block of renderedBlocks(); track block.id) {\n <div cdkDrag [cdkDragData]=\"block.id\" (cdkDragStarted)=\"onDragStarted()\" (cdkDragEnded)=\"onDragEnded()\" class=\"nested-block relative min-w-0 py-2\" [attr.data-block-id]=\"block.id\">\n <div class=\"nested-controls block-controls absolute top-1/2 z-10 flex -translate-y-1/2 items-center\"\n [class.is-menu-open]=\"addTrigger.menuOpen() || actionsTrigger.menuOpen()\">\n <button ngsIconButton aria-label=\"Add block\" #addTrigger=\"ngsMenuTrigger\"\n [ngsMenuTriggerFor]=\"rootBuilder.blockMenu()\" [ngsMenuTriggerRestoreFocus]=\"false\"\n [ngsMenuTriggerData]=\"{target: {scope: scope(), afterId: block.id}}\">\n <ngs-icon name=\"fluent:add-24-regular\"/>\n </button>\n <button ngsIconButton cdkDragHandle [ngsMenuTriggerFor]=\"blockMenu\"\n #actionsTrigger=\"ngsMenuTrigger\" aria-label=\"Move block\"><ngs-icon name=\"fluent:re-order-dots-vertical-24-regular\"/></button>\n <ngs-menu #blockMenu>\n @if (block.type === 'table' && rootBuilder.tableWidthAction(block.id); as action) {\n <button ngs-menu-item (click)=\"rootBuilder.toggleTableWidth(block.id)\">{{ action }}</button>\n }\n @if (rootBuilder.canConvertBlock(block.id)) {\n <button ngs-menu-item [ngsMenuTriggerFor]=\"rootBuilder.conversionMenu()\" [ngsMenuTriggerData]=\"{blockId: block.id}\" [ngsMenuTriggerRestoreFocus]=\"false\">Turn into</button>\n }\n <button ngs-menu-item (click)=\"duplicateBlock(block.id)\">Duplicate</button>\n <button ngs-menu-item (click)=\"deleteBlock(block.id)\">Delete</button>\n </ngs-menu>\n </div>\n <div class=\"min-w-0\">\n <ng-container [ngComponentOutlet]=\"getBlockComponent(block.type) | async\"\n [ngComponentOutletInputs]=\"{id: block.id, content: block.content, settings: block.settings, props: block.props, index: $index}\"/>\n </div>\n </div>\n }\n</div>\n", styles: [":host{--ngs-content-editor-nested-controls-offset: 0px;display:block;min-width:0}:host .nested-controls{--ngs-button-height: var(--ngs-content-editor-control-size, calc(var(--spacing, .25rem) * 8));right:100%;width:calc(calc(var(--spacing, .25rem) * 18) + var(--ngs-content-editor-nested-controls-offset));padding-left:calc(var(--spacing, .25rem) * 2);padding-right:calc(calc(var(--spacing, .25rem) * 2) + var(--ngs-content-editor-nested-controls-offset));opacity:0;pointer-events:none}:host .nested-controls.is-menu-open{opacity:1;pointer-events:auto}@media(hover:none){:host .nested-controls{opacity:1;pointer-events:auto}}:host .nested-block:hover .nested-controls,:host .nested-block:focus-within .nested-controls{opacity:1;pointer-events:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "component", type: Button, selector: " button[ngsButton], button[ngsIconButton], a[ngsButton], a[ngsIconButton] ", inputs: ["ngsButton", "ngsIconButton", "loading", "disabled", "disabledInteractive", "disableRipple", "reverse", "fullWidth", "hideTextOnMobile"], exportAs: ["ngsButton"] }, { kind: "component", type: Icon, selector: "ngs-icon", inputs: ["name"], exportAs: ["ngsIcon"] }, { kind: "component", type: Menu, selector: "ngs-menu", inputs: ["themeSource", "role", "classList", "xPosition", "yPosition", "pushIntoViewport"], outputs: ["closed"], exportAs: ["ngsMenu"] }, { kind: "component", type: MenuItem, selector: "ngs-menu-item, [ngs-menu-item]", inputs: ["disabled", "role", "selected"], outputs: ["_triggered"], exportAs: ["ngsMenuItem"] }, { kind: "directive", type: MenuTrigger, selector: "[ngsMenuTriggerFor]", inputs: ["ngsMenuTriggerFor", "ngsMenuTriggerData", "ngsMenuDisabled", "xPosition", "yPosition", "ngsMenuTriggerRestoreFocus"], outputs: ["menuOpened", "menuClosed"], exportAs: ["ngsMenuTrigger"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
110
|
-
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ContentEditorNestedBlocks, decorators: [{
|
|
112
|
-
type: Component,
|
|
113
|
-
args: [{ selector: 'ngs-content-editor-nested-blocks', imports: [AsyncPipe, NgComponentOutlet, CdkDrag, CdkDragHandle, CdkDropList, Button, Icon, Menu, MenuItem, MenuTrigger], providers: [{ provide: CONTENT_BUILDER, useExisting: forwardRef(() => ContentEditorNestedBlocks) }], changeDetection: ChangeDetectionStrategy.OnPush, host: { '(keydown)': 'onKeyDown($event)' }, template: "<div cdkDropList [cdkDropListData]=\"scope()\" [cdkDropListConnectedTo]=\"connectedDropLists()\" [cdkDropListEnterPredicate]=\"canEnter\" (cdkDropListDropped)=\"drop($event)\" class=\"min-h-12\">\n @for (block of renderedBlocks(); track block.id) {\n <div cdkDrag [cdkDragData]=\"block.id\" (cdkDragStarted)=\"onDragStarted()\" (cdkDragEnded)=\"onDragEnded()\" class=\"nested-block relative min-w-0 py-2\" [attr.data-block-id]=\"block.id\">\n <div class=\"nested-controls block-controls absolute top-1/2 z-10 flex -translate-y-1/2 items-center\"\n [class.is-menu-open]=\"addTrigger.menuOpen() || actionsTrigger.menuOpen()\">\n <button ngsIconButton aria-label=\"Add block\" #addTrigger=\"ngsMenuTrigger\"\n [ngsMenuTriggerFor]=\"rootBuilder.blockMenu()\" [ngsMenuTriggerRestoreFocus]=\"false\"\n [ngsMenuTriggerData]=\"{target: {scope: scope(), afterId: block.id}}\">\n <ngs-icon name=\"fluent:add-24-regular\"/>\n </button>\n <button ngsIconButton cdkDragHandle [ngsMenuTriggerFor]=\"blockMenu\"\n #actionsTrigger=\"ngsMenuTrigger\" aria-label=\"Move block\"><ngs-icon name=\"fluent:re-order-dots-vertical-24-regular\"/></button>\n <ngs-menu #blockMenu>\n @if (block.type === 'table' && rootBuilder.tableWidthAction(block.id); as action) {\n <button ngs-menu-item (click)=\"rootBuilder.toggleTableWidth(block.id)\">{{ action }}</button>\n }\n @if (rootBuilder.canConvertBlock(block.id)) {\n <button ngs-menu-item [ngsMenuTriggerFor]=\"rootBuilder.conversionMenu()\" [ngsMenuTriggerData]=\"{blockId: block.id}\" [ngsMenuTriggerRestoreFocus]=\"false\">Turn into</button>\n }\n <button ngs-menu-item (click)=\"duplicateBlock(block.id)\">Duplicate</button>\n <button ngs-menu-item (click)=\"deleteBlock(block.id)\">Delete</button>\n </ngs-menu>\n </div>\n <div class=\"min-w-0\">\n <ng-container [ngComponentOutlet]=\"getBlockComponent(block.type) | async\"\n [ngComponentOutletInputs]=\"{id: block.id, content: block.content, settings: block.settings, props: block.props, index: $index}\"/>\n </div>\n </div>\n }\n</div>\n", styles: [":host{--ngs-content-editor-nested-controls-offset: 0px;display:block;min-width:0}:host .nested-controls{--ngs-button-height: var(--ngs-content-editor-control-size, calc(var(--spacing, .25rem) * 8));right:100%;width:calc(calc(var(--spacing, .25rem) * 18) + var(--ngs-content-editor-nested-controls-offset));padding-left:calc(var(--spacing, .25rem) * 2);padding-right:calc(calc(var(--spacing, .25rem) * 2) + var(--ngs-content-editor-nested-controls-offset));opacity:0;pointer-events:none}:host .nested-controls.is-menu-open{opacity:1;pointer-events:auto}@media(hover:none){:host .nested-controls{opacity:1;pointer-events:auto}}:host .nested-block:hover .nested-controls,:host .nested-block:focus-within .nested-controls{opacity:1;pointer-events:auto}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
|
|
114
|
-
}], ctorParameters: () => [], propDecorators: { dropList: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkDropList), { isSignal: true }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: true }] }] } });
|
|
115
|
-
|
|
116
|
-
export { ContentEditorNestedBlocks as C };
|
|
117
|
-
//# sourceMappingURL=ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs","sources":["../../../projects/components/content-editor/src/_builder/nested-blocks/nested-blocks.ts","../../../projects/components/content-editor/src/_builder/nested-blocks/nested-blocks.html"],"sourcesContent":["import { AsyncPipe, DOCUMENT, NgComponentOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DestroyRef, EventEmitter, afterNextRender, computed, effect, forwardRef, inject, input, signal, viewChild } from '@angular/core';\nimport { CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList } from '@angular/cdk/drag-drop';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Menu, MenuItem, MenuTrigger } from '@ngstarter-ui/components/menu';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport { CONTENT_BUILDER, ContentEditorBlockScope, ContentEditorBlockView } from '../../types';\nimport { cloneContentEditorValue, contentEditorBlockView, contentEditorCollection, contentEditorChildCollections, findContentEditorBlock } from '../../document';\nimport { createNgsHeadlessEditorId } from '@ngstarter-ui/components/headless-editor';\n\n@Component({\n selector: 'ngs-content-editor-nested-blocks',\n imports: [AsyncPipe, NgComponentOutlet, CdkDrag, CdkDragHandle, CdkDropList, Button, Icon, Menu, MenuItem, MenuTrigger],\n providers: [{ provide: CONTENT_BUILDER, useExisting: forwardRef(() => ContentEditorNestedBlocks) }],\n templateUrl: './nested-blocks.html', styleUrl: './nested-blocks.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '(keydown)': 'onKeyDown($event)' }\n})\nexport class ContentEditorNestedBlocks {\n private readonly parent = inject<ContentBuilderComponent>(CONTENT_BUILDER, { skipSelf: true });\n private readonly store = inject(ContentBuilderStore);\n private readonly document = inject(DOCUMENT);\n private readonly dropList = viewChild.required(CdkDropList);\n readonly connectedDropLists = this.store.dropLists;\n readonly scope = input.required<ContentEditorBlockScope>();\n readonly emptyBlock = signal(this.rootBuilder.createBlockView('paragraph'));\n readonly focusChanged = new EventEmitter<void>();\n constructor() {\n effect(() => {\n if (this.blocks().some(block => block.id === this.emptyBlock().id)) this.emptyBlock.set(this.rootBuilder.createBlockView('paragraph'));\n });\n let registered: CdkDropList<ContentEditorBlockScope> | null = null;\n afterNextRender(() => { registered = this.dropList(); this.store.registerDropList(registered); });\n inject(DestroyRef).onDestroy(() => { if (registered) this.store.unregisterDropList(registered); });\n }\n get rootBuilder(): ContentBuilderComponent { return this.parent.rootBuilder; }\n readonly blocks = computed(() => contentEditorCollection(this.store.editor.document().blocks, this.scope()).map(contentEditorBlockView));\n readonly renderedBlocks = computed(() => {\n const blocks = this.blocks();\n return blocks.length ? blocks : [this.emptyBlock()];\n });\n getBlockComponent(type: string): any { return this.rootBuilder.getBlockComponent(type); }\n getBlockDefOption(type: string, key: string): any { return this.rootBuilder.getBlockDefOption(type, key); }\n emitContentChangeEvent(): void {}\n focusBlock(id: string | null): void { this.store.setFocusedBlockId(id); this.focusChanged.emit(); }\n insertEmptyBlock(index: number): void { this.addBlock('paragraph', {}, index + 1); }\n updateParagraph(id: string, data: Partial<ContentEditorBlockView>): void {\n if (this.blocks().some(block => block.id === id)) this.store.updateBlock(id, data);\n else if (id === this.emptyBlock().id) this.store.addBlock({ ...this.emptyBlock(), ...data }, this.blocks().length, this.scope());\n }\n addBlock(type: string, settings = {}, index = this.blocks().length): void {\n const block = this.rootBuilder.createBlockView(type, settings);\n this.store.addBlock(block, index, this.scope());\n this.focusBlock(block.id);\n }\n deleteBlock(id: string): void {\n const index = this.blocks().findIndex(block => block.id === id);\n if (index < 0) return;\n this.store.deleteBlock(id, index);\n this.focusBlock(this.blocks()[Math.max(0, index - 1)]?.id ?? null);\n }\n duplicateBlock(id: string): void {\n const index = this.blocks().findIndex(block => block.id === id);\n if (index < 0) return;\n const block = cloneContentEditorValue(this.blocks()[index]);\n const reidentify = (item: any) => {\n item.id = createNgsHeadlessEditorId(item.type);\n for (const children of contentEditorChildCollections(item)) for (const child of children) reidentify(child);\n if (item.type === 'grid') for (const cell of item.content.cells) cell.id = createNgsHeadlessEditorId('cell');\n if (item.type === 'gallery') for (const image of item.content.images) image.id = createNgsHeadlessEditorId('image');\n };\n reidentify(block);\n this.store.addBlock(block, index + 1, this.scope());\n }\n drop(event: CdkDragDrop<ContentEditorBlockScope>): void {\n this.store.moveBetweenCollections(event.previousIndex, event.currentIndex, event.previousContainer.data, event.container.data);\n }\n onDragStarted(): void { this.store.setDragging(true); }\n onDragEnded(): void { this.store.setDragging(false); }\n readonly canEnter = (drag: CdkDrag<string>, drop: CdkDropList<ContentEditorBlockScope>): boolean => {\n const pointer = this.store.dragPointer();\n const nearest = pointer ? this.document.elementFromPoint(pointer.x, pointer.y)?.closest('.cdk-drop-list') : null;\n if (nearest && nearest.id !== drop.id) return false;\n const parentId = drop.data.parentId;\n const block = findContentEditorBlock(this.store.editor.document().blocks, drag.data);\n return !parentId || !block || !findContentEditorBlock([block], parentId);\n };\n onKeyDown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n if ((event.ctrlKey || event.metaKey) && ['z', 'y'].includes(event.key.toLowerCase())) {\n const redo = event.key.toLowerCase() === 'y' || event.shiftKey;\n if (redo ? this.store.editor.redo() : this.store.editor.undo()) event.preventDefault();\n event.stopPropagation();\n }\n }\n}\n","<div cdkDropList [cdkDropListData]=\"scope()\" [cdkDropListConnectedTo]=\"connectedDropLists()\" [cdkDropListEnterPredicate]=\"canEnter\" (cdkDropListDropped)=\"drop($event)\" class=\"min-h-12\">\n @for (block of renderedBlocks(); track block.id) {\n <div cdkDrag [cdkDragData]=\"block.id\" (cdkDragStarted)=\"onDragStarted()\" (cdkDragEnded)=\"onDragEnded()\" class=\"nested-block relative min-w-0 py-2\" [attr.data-block-id]=\"block.id\">\n <div class=\"nested-controls block-controls absolute top-1/2 z-10 flex -translate-y-1/2 items-center\"\n [class.is-menu-open]=\"addTrigger.menuOpen() || actionsTrigger.menuOpen()\">\n <button ngsIconButton aria-label=\"Add block\" #addTrigger=\"ngsMenuTrigger\"\n [ngsMenuTriggerFor]=\"rootBuilder.blockMenu()\" [ngsMenuTriggerRestoreFocus]=\"false\"\n [ngsMenuTriggerData]=\"{target: {scope: scope(), afterId: block.id}}\">\n <ngs-icon name=\"fluent:add-24-regular\"/>\n </button>\n <button ngsIconButton cdkDragHandle [ngsMenuTriggerFor]=\"blockMenu\"\n #actionsTrigger=\"ngsMenuTrigger\" aria-label=\"Move block\"><ngs-icon name=\"fluent:re-order-dots-vertical-24-regular\"/></button>\n <ngs-menu #blockMenu>\n @if (block.type === 'table' && rootBuilder.tableWidthAction(block.id); as action) {\n <button ngs-menu-item (click)=\"rootBuilder.toggleTableWidth(block.id)\">{{ action }}</button>\n }\n @if (rootBuilder.canConvertBlock(block.id)) {\n <button ngs-menu-item [ngsMenuTriggerFor]=\"rootBuilder.conversionMenu()\" [ngsMenuTriggerData]=\"{blockId: block.id}\" [ngsMenuTriggerRestoreFocus]=\"false\">Turn into</button>\n }\n <button ngs-menu-item (click)=\"duplicateBlock(block.id)\">Duplicate</button>\n <button ngs-menu-item (click)=\"deleteBlock(block.id)\">Delete</button>\n </ngs-menu>\n </div>\n <div class=\"min-w-0\">\n <ng-container [ngComponentOutlet]=\"getBlockComponent(block.type) | async\"\n [ngComponentOutletInputs]=\"{id: block.id, content: block.content, settings: block.settings, props: block.props, index: $index}\"/>\n </div>\n </div>\n }\n</div>\n"],"names":[],"mappings":";;;;;;;;;;MAoBa,yBAAyB,CAAA;IACnB,MAAM,GAAG,MAAM,CAA0B,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC7E,IAAA,KAAK,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACnC,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW;iFAAC;AAClD,IAAA,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS;IACzC,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAA2B;IACjD,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC;mFAAC;AAClE,IAAA,YAAY,GAAG,IAAI,YAAY,EAAQ;AAChD,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;YACV,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC;AAAE,gBAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;AACxI,QAAA,CAAC,CAAC;QACF,IAAI,UAAU,GAAgD,IAAI;QAClE,eAAe,CAAC,MAAK,EAAG,UAAU,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAA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