@ngstarter-ui/components 22.3.5 → 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-8OmuepvH.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.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-DGCCeU-Y.mjs +0 -375
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.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-Dj82fxTI.mjs +0 -134
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.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,565 @@
|
|
|
1
|
+
import { n as CONTENT_BUILDER, t as ContentBuilderStore } from "./content-builder.store-D622mHxt.mjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Injectable, effect, inject, input, signal, untracked } from "@angular/core";
|
|
4
|
+
import { Icon } from "@ngstarter-ui/components/icon";
|
|
5
|
+
import { Button } from "@ngstarter-ui/components/button";
|
|
6
|
+
import { SafeResourceUrlPipe } from "@ngstarter-ui/components/core";
|
|
7
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
8
|
+
import { FormField, Suffix } from "@ngstarter-ui/components/form-field";
|
|
9
|
+
import { Input as Input$1 } from "@ngstarter-ui/components/input";
|
|
10
|
+
import { FormField as FormField$1, form, required, validate } from "@angular/forms/signals";
|
|
11
|
+
import { Popover, PopoverTriggerForDirective } from "@ngstarter-ui/components/popover";
|
|
12
|
+
import { Tab, TabGroup } from "@ngstarter-ui/components/tabs";
|
|
13
|
+
var EmbedService = class EmbedService {
|
|
14
|
+
parse(rawUrl) {
|
|
15
|
+
const cleaned = (rawUrl || "").trim();
|
|
16
|
+
if (!cleaned) return {
|
|
17
|
+
url: "",
|
|
18
|
+
type: ""
|
|
19
|
+
};
|
|
20
|
+
const withScheme = /^(https?:)?\/\//i.test(cleaned) ? cleaned : `https://${cleaned}`;
|
|
21
|
+
let u = null;
|
|
22
|
+
try {
|
|
23
|
+
u = new URL(withScheme);
|
|
24
|
+
} catch {
|
|
25
|
+
return {
|
|
26
|
+
url: cleaned,
|
|
27
|
+
type: ""
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const host = u.hostname.toLowerCase();
|
|
31
|
+
const path = u.pathname.toLowerCase();
|
|
32
|
+
const href = u.toString();
|
|
33
|
+
if (path.endsWith(".pdf")) return {
|
|
34
|
+
url: href,
|
|
35
|
+
type: "pdf"
|
|
36
|
+
};
|
|
37
|
+
else if (host.includes("youtu.be") || host.includes("youtube.com")) return {
|
|
38
|
+
url: this.toYoutubeEmbed(u),
|
|
39
|
+
type: "youtube"
|
|
40
|
+
};
|
|
41
|
+
else if (host.includes("vimeo.com")) return {
|
|
42
|
+
url: this.toVimeoEmbed(u),
|
|
43
|
+
type: "vimeo"
|
|
44
|
+
};
|
|
45
|
+
else if (host.includes("spotify.com")) return {
|
|
46
|
+
url: this.toSpotifyEmbed(u),
|
|
47
|
+
type: "spotify"
|
|
48
|
+
};
|
|
49
|
+
else if (host.includes("maps.google.") || host.includes("google.") && path.startsWith("/maps")) return {
|
|
50
|
+
url: this.toGoogleMapsEmbed(u),
|
|
51
|
+
type: "google-maps"
|
|
52
|
+
};
|
|
53
|
+
else if (host.includes("docs.google.")) return {
|
|
54
|
+
url: this.toGoogleDocsEmbed(u),
|
|
55
|
+
type: "google-docs"
|
|
56
|
+
};
|
|
57
|
+
else if (host.includes("drive.google.")) return {
|
|
58
|
+
url: this.toGoogleDriveEmbed(u),
|
|
59
|
+
type: "google-drive"
|
|
60
|
+
};
|
|
61
|
+
else if (host.includes("codepen.io")) return {
|
|
62
|
+
url: this.toCodepenEmbed(u),
|
|
63
|
+
type: "codepen"
|
|
64
|
+
};
|
|
65
|
+
else if (host.includes("figma.com")) return {
|
|
66
|
+
url: this.toFigmaEmbed(u),
|
|
67
|
+
type: "figma"
|
|
68
|
+
};
|
|
69
|
+
else if (host.includes("loom.com")) return {
|
|
70
|
+
url: this.toLoomEmbed(u),
|
|
71
|
+
type: "loom"
|
|
72
|
+
};
|
|
73
|
+
else if (host.includes("twitter.com") || host === "x.com" || host.endsWith(".x.com")) return {
|
|
74
|
+
url: this.toTwitterEmbed(u),
|
|
75
|
+
type: "twitter"
|
|
76
|
+
};
|
|
77
|
+
else if (host.includes("instagram.com")) return {
|
|
78
|
+
url: this.toInstagramEmbed(u),
|
|
79
|
+
type: "instagram"
|
|
80
|
+
};
|
|
81
|
+
else if (host.includes("tiktok.com")) return {
|
|
82
|
+
url: this.toTiktokEmbed(u),
|
|
83
|
+
type: "tiktok"
|
|
84
|
+
};
|
|
85
|
+
else if (host.includes("soundcloud.com")) return {
|
|
86
|
+
url: this.toSoundcloudEmbed(u),
|
|
87
|
+
type: "soundcloud"
|
|
88
|
+
};
|
|
89
|
+
else if (host.includes("stackblitz.com")) return {
|
|
90
|
+
url: this.toStackblitzEmbed(u),
|
|
91
|
+
type: "stackblitz"
|
|
92
|
+
};
|
|
93
|
+
else if (host.includes("gist.github.com")) return {
|
|
94
|
+
url: href,
|
|
95
|
+
type: "gist"
|
|
96
|
+
};
|
|
97
|
+
else return {
|
|
98
|
+
url: href,
|
|
99
|
+
type: "website"
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
toYoutubeEmbed(u) {
|
|
103
|
+
if (/^\/embed\//.test(u.pathname)) return `https://www.youtube.com${u.pathname}${u.search}`;
|
|
104
|
+
const host = u.hostname.toLowerCase();
|
|
105
|
+
let id = "";
|
|
106
|
+
let start = "";
|
|
107
|
+
if (host.includes("youtu.be")) {
|
|
108
|
+
id = u.pathname.split("/").filter(Boolean)[0] || "";
|
|
109
|
+
start = this.extractYouTubeStart(u.searchParams);
|
|
110
|
+
} else if (u.searchParams.get("v")) {
|
|
111
|
+
id = u.searchParams.get("v") || "";
|
|
112
|
+
start = this.extractYouTubeStart(u.searchParams);
|
|
113
|
+
} else if (u.pathname.startsWith("/shorts/")) id = u.pathname.split("/")[2] || "";
|
|
114
|
+
else if (u.pathname.startsWith("/live/")) id = u.pathname.split("/")[2] || "";
|
|
115
|
+
const qs = start ? `?start=${start}` : "";
|
|
116
|
+
return id ? `https://www.youtube.com/embed/${id}${qs}` : u.toString();
|
|
117
|
+
}
|
|
118
|
+
extractYouTubeStart(params) {
|
|
119
|
+
const t = params.get("t") || params.get("start") || "";
|
|
120
|
+
if (!t) return "";
|
|
121
|
+
const total = this.parseTimeToSeconds(t);
|
|
122
|
+
return total ? String(total) : "";
|
|
123
|
+
}
|
|
124
|
+
parseTimeToSeconds(t) {
|
|
125
|
+
if (/^\d+$/.test(t)) return parseInt(t, 10);
|
|
126
|
+
const m = t.match(/(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?/i);
|
|
127
|
+
if (!m) return 0;
|
|
128
|
+
const h = parseInt(m[1] || "0", 10);
|
|
129
|
+
const mnt = parseInt(m[2] || "0", 10);
|
|
130
|
+
const s = parseInt(m[3] || "0", 10);
|
|
131
|
+
return h * 3600 + mnt * 60 + s;
|
|
132
|
+
}
|
|
133
|
+
toVimeoEmbed(u) {
|
|
134
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
135
|
+
const last = parts[parts.length - 1] || "";
|
|
136
|
+
const id = /^(\d+)$/.test(last) ? last : parts.includes("videos") ? parts[parts.indexOf("videos") + 1] : "";
|
|
137
|
+
return id ? `https://player.vimeo.com/video/${id}` : u.toString();
|
|
138
|
+
}
|
|
139
|
+
toSpotifyEmbed(u) {
|
|
140
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
141
|
+
if (parts[0] === "embed") return u.toString();
|
|
142
|
+
if (parts.length >= 2) return `https://open.spotify.com/embed/${parts[0]}/${parts[1]}`;
|
|
143
|
+
return u.toString();
|
|
144
|
+
}
|
|
145
|
+
toGoogleMapsEmbed(u) {
|
|
146
|
+
if (u.pathname.includes("/maps/embed") || u.searchParams.get("output") === "embed") return u.toString();
|
|
147
|
+
return `https://www.google.com/maps?output=embed&q=${encodeURIComponent(u.toString())}`;
|
|
148
|
+
}
|
|
149
|
+
toGoogleDocsEmbed(u) {
|
|
150
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
151
|
+
if (parts.length >= 3) {
|
|
152
|
+
const product = parts[0];
|
|
153
|
+
parts[1];
|
|
154
|
+
const id = parts[2];
|
|
155
|
+
if (product === "document") return `https://docs.google.com/document/d/${id}/preview`;
|
|
156
|
+
if (product === "presentation") return `https://docs.google.com/presentation/d/${id}/embed`;
|
|
157
|
+
if (product === "spreadsheets") return `https://docs.google.com/spreadsheets/d/${id}/preview`;
|
|
158
|
+
if (product === "forms") return `https://docs.google.com/forms/d/${id}/viewform?embedded=true`;
|
|
159
|
+
}
|
|
160
|
+
return u.toString();
|
|
161
|
+
}
|
|
162
|
+
toGoogleDriveEmbed(u) {
|
|
163
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
164
|
+
const idx = parts.indexOf("d");
|
|
165
|
+
if (parts[0] === "file" && idx >= 0 && parts[idx + 1]) return `https://drive.google.com/file/d/${parts[idx + 1]}/preview`;
|
|
166
|
+
const openId = u.searchParams.get("id");
|
|
167
|
+
if (openId) return `https://drive.google.com/uc?export=preview&id=${encodeURIComponent(openId)}`;
|
|
168
|
+
return u.toString();
|
|
169
|
+
}
|
|
170
|
+
toCodepenEmbed(u) {
|
|
171
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
172
|
+
const user = parts[0];
|
|
173
|
+
const mode = parts[1];
|
|
174
|
+
const id = parts[2];
|
|
175
|
+
if (mode === "embed") return u.toString();
|
|
176
|
+
if (user && id) return `https://codepen.io/${user}/embed/${id}`;
|
|
177
|
+
return u.toString();
|
|
178
|
+
}
|
|
179
|
+
toFigmaEmbed(u) {
|
|
180
|
+
return `https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(u.toString())}`;
|
|
181
|
+
}
|
|
182
|
+
toLoomEmbed(u) {
|
|
183
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
184
|
+
if (parts[0] === "embed") return u.toString();
|
|
185
|
+
if (parts[0] === "share" && parts[1]) return `https://www.loom.com/embed/${parts[1]}`;
|
|
186
|
+
return u.toString();
|
|
187
|
+
}
|
|
188
|
+
toTwitterEmbed(u) {
|
|
189
|
+
return `https://twitframe.com/show?url=${encodeURIComponent(u.toString())}`;
|
|
190
|
+
}
|
|
191
|
+
toInstagramEmbed(u) {
|
|
192
|
+
let p = u.pathname;
|
|
193
|
+
if (!p.endsWith("/")) p += "/";
|
|
194
|
+
if (!p.endsWith("embed/")) p += "embed/";
|
|
195
|
+
return `${u.protocol}//${u.host}${p}`;
|
|
196
|
+
}
|
|
197
|
+
toTiktokEmbed(u) {
|
|
198
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
199
|
+
const idx = parts.indexOf("video");
|
|
200
|
+
if (idx >= 0 && parts[idx + 1]) return `https://www.tiktok.com/embed/v2/${parts[idx + 1]}`;
|
|
201
|
+
return u.toString();
|
|
202
|
+
}
|
|
203
|
+
toSoundcloudEmbed(u) {
|
|
204
|
+
return `https://w.soundcloud.com/player/?url=${encodeURIComponent(u.toString())}`;
|
|
205
|
+
}
|
|
206
|
+
toStackblitzEmbed(u) {
|
|
207
|
+
const url = new URL(u.toString());
|
|
208
|
+
if (url.searchParams.get("embed") !== "1") url.searchParams.set("embed", "1");
|
|
209
|
+
return url.toString();
|
|
210
|
+
}
|
|
211
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
212
|
+
minVersion: "12.0.0",
|
|
213
|
+
version: "22.3.0",
|
|
214
|
+
ngImport: i0,
|
|
215
|
+
type: EmbedService,
|
|
216
|
+
deps: [],
|
|
217
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
218
|
+
});
|
|
219
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
220
|
+
minVersion: "12.0.0",
|
|
221
|
+
version: "22.3.0",
|
|
222
|
+
ngImport: i0,
|
|
223
|
+
type: EmbedService
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
227
|
+
minVersion: "12.0.0",
|
|
228
|
+
version: "22.3.0",
|
|
229
|
+
ngImport: i0,
|
|
230
|
+
type: EmbedService,
|
|
231
|
+
decorators: [{ type: Injectable }]
|
|
232
|
+
});
|
|
233
|
+
var EmbedBlock = class EmbedBlock {
|
|
234
|
+
store = inject(ContentBuilderStore);
|
|
235
|
+
contentBuilder = inject(CONTENT_BUILDER);
|
|
236
|
+
destroyRef = inject(DestroyRef);
|
|
237
|
+
embedService = inject(EmbedService);
|
|
238
|
+
id = input.required(...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
239
|
+
content = input.required(...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
|
|
240
|
+
settings = input.required(...ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []);
|
|
241
|
+
props = input([], ...ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []);
|
|
242
|
+
index = input.required(...ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []);
|
|
243
|
+
form = form(signal({ url: "" }), (path) => {
|
|
244
|
+
required(path.url);
|
|
245
|
+
validate(path.url, ({ value }) => {
|
|
246
|
+
const url = value().trim();
|
|
247
|
+
if (!url) return null;
|
|
248
|
+
const { type } = this.embedService.parse(url);
|
|
249
|
+
return !type || type === "website" ? { kind: "embedUrl" } : null;
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
_content = signal({
|
|
253
|
+
url: "",
|
|
254
|
+
type: ""
|
|
255
|
+
}, ...ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []);
|
|
256
|
+
_settings = signal({
|
|
257
|
+
width: null,
|
|
258
|
+
height: null
|
|
259
|
+
}, ...ngDevMode ? [{ debugName: "_settings" }] : /* istanbul ignore next */ []);
|
|
260
|
+
_props = signal([], ...ngDevMode ? [{ debugName: "_props" }] : /* istanbul ignore next */ []);
|
|
261
|
+
initialized = signal(false, ...ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []);
|
|
262
|
+
constructor() {
|
|
263
|
+
effect(() => {
|
|
264
|
+
const content = this.content();
|
|
265
|
+
const settings = this.settings();
|
|
266
|
+
const props = this.props();
|
|
267
|
+
untracked(() => {
|
|
268
|
+
this._content.set({ ...content });
|
|
269
|
+
this._settings.set({ ...settings });
|
|
270
|
+
this._props.set([...props]);
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
ngOnInit() {
|
|
275
|
+
this._content.set(this.content());
|
|
276
|
+
this._settings.set(this.settings());
|
|
277
|
+
this._props.set(this.props());
|
|
278
|
+
this.contentBuilder.focusChanged.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
|
|
279
|
+
if (this.store.focusedBlockId() === this.id()) {}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
getData() {
|
|
283
|
+
return {
|
|
284
|
+
content: this._content(),
|
|
285
|
+
props: this._props(),
|
|
286
|
+
settings: this._settings()
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
isEmpty() {
|
|
290
|
+
return this.getData().content.url === "" && this.getData().content.type === "";
|
|
291
|
+
}
|
|
292
|
+
embed(trigger) {
|
|
293
|
+
this._content.set(this.embedService.parse(this.form.url().value()));
|
|
294
|
+
trigger.api.close();
|
|
295
|
+
this.store.updateBlock(this.id(), {
|
|
296
|
+
...this.getData(),
|
|
297
|
+
isEmpty: this.isEmpty()
|
|
298
|
+
});
|
|
299
|
+
this.contentBuilder.emitContentChangeEvent();
|
|
300
|
+
}
|
|
301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
302
|
+
minVersion: "12.0.0",
|
|
303
|
+
version: "22.3.0",
|
|
304
|
+
ngImport: i0,
|
|
305
|
+
type: EmbedBlock,
|
|
306
|
+
deps: [],
|
|
307
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
308
|
+
});
|
|
309
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
310
|
+
minVersion: "17.0.0",
|
|
311
|
+
version: "22.3.0",
|
|
312
|
+
type: EmbedBlock,
|
|
313
|
+
isStandalone: true,
|
|
314
|
+
selector: "app-embed-block",
|
|
315
|
+
inputs: {
|
|
316
|
+
id: {
|
|
317
|
+
classPropertyName: "id",
|
|
318
|
+
publicName: "id",
|
|
319
|
+
isSignal: true,
|
|
320
|
+
isRequired: true,
|
|
321
|
+
transformFunction: null
|
|
322
|
+
},
|
|
323
|
+
content: {
|
|
324
|
+
classPropertyName: "content",
|
|
325
|
+
publicName: "content",
|
|
326
|
+
isSignal: true,
|
|
327
|
+
isRequired: true,
|
|
328
|
+
transformFunction: null
|
|
329
|
+
},
|
|
330
|
+
settings: {
|
|
331
|
+
classPropertyName: "settings",
|
|
332
|
+
publicName: "settings",
|
|
333
|
+
isSignal: true,
|
|
334
|
+
isRequired: true,
|
|
335
|
+
transformFunction: null
|
|
336
|
+
},
|
|
337
|
+
props: {
|
|
338
|
+
classPropertyName: "props",
|
|
339
|
+
publicName: "props",
|
|
340
|
+
isSignal: true,
|
|
341
|
+
isRequired: false,
|
|
342
|
+
transformFunction: null
|
|
343
|
+
},
|
|
344
|
+
index: {
|
|
345
|
+
classPropertyName: "index",
|
|
346
|
+
publicName: "index",
|
|
347
|
+
isSignal: true,
|
|
348
|
+
isRequired: true,
|
|
349
|
+
transformFunction: null
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
host: {
|
|
353
|
+
properties: { "class.is-empty": "isEmpty()" },
|
|
354
|
+
classAttribute: "ngs-embed-block"
|
|
355
|
+
},
|
|
356
|
+
providers: [EmbedService],
|
|
357
|
+
ngImport: i0,
|
|
358
|
+
template: "@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify…)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formField]=\"form.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form().invalid()\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen…</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n",
|
|
359
|
+
styles: [""],
|
|
360
|
+
dependencies: [
|
|
361
|
+
{
|
|
362
|
+
kind: "component",
|
|
363
|
+
type: Icon,
|
|
364
|
+
selector: "ngs-icon",
|
|
365
|
+
inputs: ["name"],
|
|
366
|
+
exportAs: ["ngsIcon"]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
kind: "component",
|
|
370
|
+
type: Popover,
|
|
371
|
+
selector: "ngs-popover",
|
|
372
|
+
exportAs: ["ngsPopover"]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
kind: "directive",
|
|
376
|
+
type: PopoverTriggerForDirective,
|
|
377
|
+
selector: "[ngsPopoverTriggerFor]",
|
|
378
|
+
inputs: [
|
|
379
|
+
"ngsPopoverTriggerFor",
|
|
380
|
+
"ngsPopoverContext",
|
|
381
|
+
"trigger",
|
|
382
|
+
"position",
|
|
383
|
+
"delay",
|
|
384
|
+
"origin",
|
|
385
|
+
"closeOnOriginClick",
|
|
386
|
+
"closeOnOriginMouseLeave",
|
|
387
|
+
"hasBackdrop"
|
|
388
|
+
],
|
|
389
|
+
outputs: ["opened", "closed"],
|
|
390
|
+
exportAs: ["ngsPopoverTriggerFor"]
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
kind: "component",
|
|
394
|
+
type: TabGroup,
|
|
395
|
+
selector: "ngs-tab-group",
|
|
396
|
+
inputs: [
|
|
397
|
+
"selectedIndex",
|
|
398
|
+
"headerPosition",
|
|
399
|
+
"preserveContent",
|
|
400
|
+
"ngs-stretch-tabs",
|
|
401
|
+
"ngs-align-tabs",
|
|
402
|
+
"disableRipple",
|
|
403
|
+
"animationDuration",
|
|
404
|
+
"animate.enter",
|
|
405
|
+
"animate.leave"
|
|
406
|
+
],
|
|
407
|
+
outputs: [
|
|
408
|
+
"selectedIndexChange",
|
|
409
|
+
"selectedTabChange",
|
|
410
|
+
"focusChange"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
kind: "component",
|
|
415
|
+
type: Tab,
|
|
416
|
+
selector: "ngs-tab",
|
|
417
|
+
inputs: [
|
|
418
|
+
"label",
|
|
419
|
+
"aria-label",
|
|
420
|
+
"aria-labelledby",
|
|
421
|
+
"disabled"
|
|
422
|
+
],
|
|
423
|
+
exportAs: ["ngsTab"]
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
kind: "component",
|
|
427
|
+
type: Button,
|
|
428
|
+
selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
|
|
429
|
+
inputs: [
|
|
430
|
+
"ngsButton",
|
|
431
|
+
"ngsIconButton",
|
|
432
|
+
"loading",
|
|
433
|
+
"disabled",
|
|
434
|
+
"disabledInteractive",
|
|
435
|
+
"disableRipple",
|
|
436
|
+
"reverse",
|
|
437
|
+
"fullWidth",
|
|
438
|
+
"hideTextOnMobile"
|
|
439
|
+
],
|
|
440
|
+
exportAs: ["ngsButton"]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
kind: "component",
|
|
444
|
+
type: FormField,
|
|
445
|
+
selector: "ngs-form-field",
|
|
446
|
+
inputs: [
|
|
447
|
+
"labelMode",
|
|
448
|
+
"subscriptHiddenIfEmpty",
|
|
449
|
+
"sameHeightAsButton"
|
|
450
|
+
],
|
|
451
|
+
exportAs: ["ngsFormField"]
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
kind: "directive",
|
|
455
|
+
type: Input$1,
|
|
456
|
+
selector: "input[ngsInput], textarea[ngsInput]",
|
|
457
|
+
inputs: [
|
|
458
|
+
"id",
|
|
459
|
+
"placeholder",
|
|
460
|
+
"required",
|
|
461
|
+
"disabled",
|
|
462
|
+
"readonly",
|
|
463
|
+
"errorStateMatcher"
|
|
464
|
+
],
|
|
465
|
+
exportAs: ["ngsInput"]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
kind: "directive",
|
|
469
|
+
type: Suffix,
|
|
470
|
+
selector: "[ngsSuffix]"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
kind: "directive",
|
|
474
|
+
type: FormField$1,
|
|
475
|
+
selector: "[formField]",
|
|
476
|
+
inputs: ["formField"],
|
|
477
|
+
exportAs: ["formField"]
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
kind: "pipe",
|
|
481
|
+
type: SafeResourceUrlPipe,
|
|
482
|
+
name: "safeResourceUrl"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
489
|
+
minVersion: "12.0.0",
|
|
490
|
+
version: "22.3.0",
|
|
491
|
+
ngImport: i0,
|
|
492
|
+
type: EmbedBlock,
|
|
493
|
+
decorators: [{
|
|
494
|
+
type: Component,
|
|
495
|
+
args: [{
|
|
496
|
+
selector: "app-embed-block",
|
|
497
|
+
imports: [
|
|
498
|
+
Icon,
|
|
499
|
+
Popover,
|
|
500
|
+
PopoverTriggerForDirective,
|
|
501
|
+
TabGroup,
|
|
502
|
+
Tab,
|
|
503
|
+
Button,
|
|
504
|
+
FormField,
|
|
505
|
+
Input$1,
|
|
506
|
+
Suffix,
|
|
507
|
+
FormField$1,
|
|
508
|
+
SafeResourceUrlPipe
|
|
509
|
+
],
|
|
510
|
+
providers: [EmbedService],
|
|
511
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
512
|
+
host: {
|
|
513
|
+
"class": "ngs-embed-block",
|
|
514
|
+
"[class.is-empty]": "isEmpty()"
|
|
515
|
+
},
|
|
516
|
+
template: "@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify…)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formField]=\"form.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form().invalid()\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen…</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n"
|
|
517
|
+
}]
|
|
518
|
+
}],
|
|
519
|
+
ctorParameters: () => [],
|
|
520
|
+
propDecorators: {
|
|
521
|
+
id: [{
|
|
522
|
+
type: i0.Input,
|
|
523
|
+
args: [{
|
|
524
|
+
isSignal: true,
|
|
525
|
+
alias: "id",
|
|
526
|
+
required: true
|
|
527
|
+
}]
|
|
528
|
+
}],
|
|
529
|
+
content: [{
|
|
530
|
+
type: i0.Input,
|
|
531
|
+
args: [{
|
|
532
|
+
isSignal: true,
|
|
533
|
+
alias: "content",
|
|
534
|
+
required: true
|
|
535
|
+
}]
|
|
536
|
+
}],
|
|
537
|
+
settings: [{
|
|
538
|
+
type: i0.Input,
|
|
539
|
+
args: [{
|
|
540
|
+
isSignal: true,
|
|
541
|
+
alias: "settings",
|
|
542
|
+
required: true
|
|
543
|
+
}]
|
|
544
|
+
}],
|
|
545
|
+
props: [{
|
|
546
|
+
type: i0.Input,
|
|
547
|
+
args: [{
|
|
548
|
+
isSignal: true,
|
|
549
|
+
alias: "props",
|
|
550
|
+
required: false
|
|
551
|
+
}]
|
|
552
|
+
}],
|
|
553
|
+
index: [{
|
|
554
|
+
type: i0.Input,
|
|
555
|
+
args: [{
|
|
556
|
+
isSignal: true,
|
|
557
|
+
alias: "index",
|
|
558
|
+
required: true
|
|
559
|
+
}]
|
|
560
|
+
}]
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
export { EmbedBlock };
|
|
564
|
+
|
|
565
|
+
//# sourceMappingURL=embed-block-CYkOv4Wt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embed-block-CYkOv4Wt.mjs","names":["Input","SignalFormField"],"sources":["../../../projects/components/content-editor/src/_builder/embed-block/embed-service.ts","../../../projects/components/content-editor/src/_builder/embed-block/embed-block.ts","../../../projects/components/content-editor/src/_builder/embed-block/embed-block.html"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class EmbedService {\n parse(rawUrl: string): { url: string; type: string } {\n const cleaned = (rawUrl || '').trim();\n if (!cleaned) {\n return { url: '', type: '' };\n }\n\n const withScheme = /^(https?:)?\\/\\//i.test(cleaned) ? cleaned : `https://${cleaned}`;\n\n let u: URL | null = null;\n try {\n u = new URL(withScheme);\n } catch {\n return { url: cleaned, type: '' };\n }\n\n const host = u.hostname.toLowerCase();\n const path = u.pathname.toLowerCase();\n const href = u.toString();\n\n if (path.endsWith('.pdf')) {\n return { url: href, type: 'pdf' };\n } else if (host.includes('youtu.be') || host.includes('youtube.com')) {\n return { url: this.toYoutubeEmbed(u), type: 'youtube' };\n } else if (host.includes('vimeo.com')) {\n return { url: this.toVimeoEmbed(u), type: 'vimeo' };\n } else if (host.includes('spotify.com')) {\n return { url: this.toSpotifyEmbed(u), type: 'spotify' };\n } else if (host.includes('maps.google.') || (host.includes('google.') && path.startsWith('/maps'))) {\n return { url: this.toGoogleMapsEmbed(u), type: 'google-maps' };\n } else if (host.includes('docs.google.')) {\n return { url: this.toGoogleDocsEmbed(u), type: 'google-docs' };\n } else if (host.includes('drive.google.')) {\n return { url: this.toGoogleDriveEmbed(u), type: 'google-drive' };\n } else if (host.includes('codepen.io')) {\n return { url: this.toCodepenEmbed(u), type: 'codepen' };\n } else if (host.includes('figma.com')) {\n return { url: this.toFigmaEmbed(u), type: 'figma' };\n } else if (host.includes('loom.com')) {\n return { url: this.toLoomEmbed(u), type: 'loom' };\n } else if (host.includes('twitter.com') || host === 'x.com' || host.endsWith('.x.com')) {\n return { url: this.toTwitterEmbed(u), type: 'twitter' };\n } else if (host.includes('instagram.com')) {\n return { url: this.toInstagramEmbed(u), type: 'instagram' };\n } else if (host.includes('tiktok.com')) {\n return { url: this.toTiktokEmbed(u), type: 'tiktok' };\n } else if (host.includes('soundcloud.com')) {\n return { url: this.toSoundcloudEmbed(u), type: 'soundcloud' };\n } else if (host.includes('stackblitz.com')) {\n return { url: this.toStackblitzEmbed(u), type: 'stackblitz' };\n } else if (host.includes('gist.github.com')) {\n return { url: href, type: 'gist' };\n } else {\n return { url: href, type: 'website' };\n }\n }\n\n // ==== Provider transformers ====\n private toYoutubeEmbed(u: URL): string {\n // Already embed\n if (/^\\/embed\\//.test(u.pathname)) {\n return `https://www.youtube.com${u.pathname}${u.search}`;\n }\n\n const host = u.hostname.toLowerCase();\n let id = '';\n let start = '';\n\n if (host.includes('youtu.be')) {\n id = u.pathname.split('/').filter(Boolean)[0] || '';\n // t or start\n start = this.extractYouTubeStart(u.searchParams);\n } else {\n // youtube.com variants\n if (u.searchParams.get('v')) {\n id = u.searchParams.get('v') || '';\n start = this.extractYouTubeStart(u.searchParams);\n } else if (u.pathname.startsWith('/shorts/')) {\n id = u.pathname.split('/')[2] || '';\n } else if (u.pathname.startsWith('/live/')) {\n id = u.pathname.split('/')[2] || '';\n }\n }\n\n const qs = start ? `?start=${start}` : '';\n return id ? `https://www.youtube.com/embed/${id}${qs}` : u.toString();\n }\n\n private extractYouTubeStart(params: URLSearchParams): string {\n const t = params.get('t') || params.get('start') || '';\n if (!t) return '';\n // t can be in format 1h2m3s or 90 or 1m30s\n const total = this.parseTimeToSeconds(t);\n return total ? String(total) : '';\n }\n\n private parseTimeToSeconds(t: string): number {\n if (/^\\d+$/.test(t)) return parseInt(t, 10);\n const re = /(?:(\\d+)h)?(?:(\\d+)m)?(?:(\\d+)s)?/i;\n const m = t.match(re);\n if (!m) return 0;\n const h = parseInt(m[1] || '0', 10);\n const mnt = parseInt(m[2] || '0', 10);\n const s = parseInt(m[3] || '0', 10);\n return h * 3600 + mnt * 60 + s;\n }\n\n private toVimeoEmbed(u: URL): string {\n // extract last numeric id\n const parts = u.pathname.split('/').filter(Boolean);\n const last = parts[parts.length - 1] || '';\n const id = /^(\\d+)$/.test(last) ? last : (parts.includes('videos') ? parts[parts.indexOf('videos') + 1] : '');\n return id ? `https://player.vimeo.com/video/${id}` : u.toString();\n }\n\n private toSpotifyEmbed(u: URL): string {\n const parts = u.pathname.split('/').filter(Boolean);\n if (parts[0] === 'embed') return u.toString();\n // /{type}/{id}\n if (parts.length >= 2) {\n const type = parts[0];\n const id = parts[1];\n return `https://open.spotify.com/embed/${type}/${id}`;\n }\n return u.toString();\n }\n\n private toGoogleMapsEmbed(u: URL): string {\n const p = u.pathname;\n if (p.includes('/maps/embed') || u.searchParams.get('output') === 'embed') {\n return u.toString();\n }\n // Best-effort wrap original URL as query for embed\n return `https://www.google.com/maps?output=embed&q=${encodeURIComponent(u.toString())}`;\n }\n\n private toGoogleDocsEmbed(u: URL): string {\n // document, presentation, spreadsheets, forms\n const parts = u.pathname.split('/').filter(Boolean);\n if (parts.length >= 3) {\n const product = parts[0]; // document|presentation|spreadsheets|forms\n const kind = parts[1]; // usually 'd'\n const id = parts[2];\n if (product === 'document') {\n return `https://docs.google.com/document/d/${id}/preview`;\n }\n if (product === 'presentation') {\n return `https://docs.google.com/presentation/d/${id}/embed`;\n }\n if (product === 'spreadsheets') {\n return `https://docs.google.com/spreadsheets/d/${id}/preview`;\n }\n if (product === 'forms') {\n return `https://docs.google.com/forms/d/${id}/viewform?embedded=true`;\n }\n }\n return u.toString();\n }\n\n private toGoogleDriveEmbed(u: URL): string {\n // /file/d/{id}/view -> /file/d/{id}/preview\n const parts = u.pathname.split('/').filter(Boolean);\n const idx = parts.indexOf('d');\n if (parts[0] === 'file' && idx >= 0 && parts[idx + 1]) {\n const id = parts[idx + 1];\n return `https://drive.google.com/file/d/${id}/preview`;\n }\n // open?id=... -> uc?export=preview&id=...\n const openId = u.searchParams.get('id');\n if (openId) {\n return `https://drive.google.com/uc?export=preview&id=${encodeURIComponent(openId)}`;\n }\n return u.toString();\n }\n\n private toCodepenEmbed(u: URL): string {\n const parts = u.pathname.split('/').filter(Boolean);\n const user = parts[0];\n const mode = parts[1]; // pen|full|details|embed\n const id = parts[2];\n if (mode === 'embed') return u.toString();\n if (user && id) {\n return `https://codepen.io/${user}/embed/${id}`;\n }\n return u.toString();\n }\n\n private toFigmaEmbed(u: URL): string {\n return `https://www.figma.com/embed?embed_host=share&url=${encodeURIComponent(u.toString())}`;\n }\n\n private toLoomEmbed(u: URL): string {\n const parts = u.pathname.split('/').filter(Boolean);\n if (parts[0] === 'embed') return u.toString();\n // /share/{id}\n if (parts[0] === 'share' && parts[1]) {\n return `https://www.loom.com/embed/${parts[1]}`;\n }\n return u.toString();\n }\n\n private toTwitterEmbed(u: URL): string {\n // Use twitframe to get an embeddable iframe\n return `https://twitframe.com/show?url=${encodeURIComponent(u.toString())}`;\n }\n\n private toInstagramEmbed(u: URL): string {\n // Append /embed to post/reel URLs\n let p = u.pathname;\n if (!p.endsWith('/')) p += '/';\n if (!p.endsWith('embed/')) {\n p += 'embed/';\n }\n return `${u.protocol}//${u.host}${p}`;\n }\n\n private toTiktokEmbed(u: URL): string {\n // Expect /@user/video/{id}\n const parts = u.pathname.split('/').filter(Boolean);\n const idx = parts.indexOf('video');\n if (idx >= 0 && parts[idx + 1]) {\n const id = parts[idx + 1];\n return `https://www.tiktok.com/embed/v2/${id}`;\n }\n return u.toString();\n }\n\n private toSoundcloudEmbed(u: URL): string {\n return `https://w.soundcloud.com/player/?url=${encodeURIComponent(u.toString())}`;\n }\n\n private toStackblitzEmbed(u: URL): string {\n // Ensure we have the embed parameter for StackBlitz iframe\n const url = new URL(u.toString());\n if (url.searchParams.get('embed') !== '1') {\n url.searchParams.set('embed', '1');\n }\n // Keep other parameters like file, terminal, ctl, hideExplorer if provided by user\n return url.toString();\n }\n}\n","import { Component, effect, untracked, DestroyRef, inject, input, signal, ChangeDetectionStrategy } from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { Popover, PopoverTriggerForDirective } from '@ngstarter-ui/components/popover';\nimport { Tab, TabGroup } from '@ngstarter-ui/components/tabs';\nimport { Button } from '@ngstarter-ui/components/button';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormField, Suffix } from '@ngstarter-ui/components/form-field';\nimport { FormField as SignalFormField, form, required, validate } from '@angular/forms/signals';\nimport { EmbedService } from './embed-service';\nimport { SafeResourceUrlPipe } from '@ngstarter-ui/components/core';\nimport {\n CONTENT_BUILDER,\n ContentEditorEmbedBlockSettings,\n ContentEditorEmbedContent,\n ContentEditorItemProperty\n} from '../../types';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\n\n@Component({\n selector: 'app-embed-block',\n imports: [\n Icon,\n Popover,\n PopoverTriggerForDirective,\n TabGroup,\n Tab,\n Button,\n FormField,\n Input,\n Suffix,\n SignalFormField,\n SafeResourceUrlPipe\n ],\n providers: [EmbedService],\n templateUrl: './embed-block.html',\n styleUrl: './embed-block.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-embed-block',\n '[class.is-empty]': 'isEmpty()'\n }\n})\nexport class EmbedBlock {\n private store = inject(ContentBuilderStore);\n private contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n private destroyRef = inject(DestroyRef);\n private embedService = inject(EmbedService);\n\n id = input.required<string>();\n content = input.required<ContentEditorEmbedContent>();\n settings = input.required<ContentEditorEmbedBlockSettings>();\n props = input<ContentEditorItemProperty[]>([]);\n index = input.required<number>();\n\n protected readonly form = form(signal({ url: '' }), path => {\n required(path.url);\n validate(path.url, ({ value }) => {\n const url = value().trim();\n if (!url) return null;\n const { type } = this.embedService.parse(url);\n return !type || type === 'website' ? { kind: 'embedUrl' } : null;\n });\n });\n\n protected _content = signal<ContentEditorEmbedContent>({\n url: '',\n type: ''\n });\n protected _settings = signal<ContentEditorEmbedBlockSettings>({\n width: null,\n height: null\n });\n protected _props = signal<ContentEditorItemProperty[]>([]);\n readonly initialized = signal(false);\n\n constructor() {\n effect(() => {\n const content = this.content();\n const settings = this.settings();\n const props = this.props();\n untracked(() => {\n this._content.set({ ...content });\n this._settings.set({ ...settings });\n this._props.set([...props]);\n });\n });\n }\n\n ngOnInit() {\n this._content.set(this.content());\n this._settings.set(this.settings());\n this._props.set(this.props());\n this.contentBuilder\n .focusChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (this.store.focusedBlockId() === this.id()) {\n\n }\n });\n }\n\n getData(): any {\n return {\n content: this._content(),\n props: this._props(),\n settings: this._settings()\n };\n }\n\n isEmpty() {\n return this.getData().content.url === '' && this.getData().content.type === '';\n }\n\n embed(trigger: PopoverTriggerForDirective) {\n this._content.set(this.embedService.parse(this.form.url().value()));\n trigger.api.close();\n this.store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this.contentBuilder.emitContentChangeEvent();\n }\n}\n","@if (isEmpty()) {\n <div class=\"bg-surface-container-low cursor-pointer hover:bg-surface-container p-4 rounded-2xl flex items-center gap-3\"\n #trigger=\"ngsPopoverTriggerFor\"\n [ngsPopoverTriggerFor]=\"addPopover\" position=\"below-center\" trigger=\"click\" hasBackdrop>\n <ngs-icon name=\"fluent:globe-24-regular\"/>\n <div class=\"text-sm\">Embed anything (PDFs, Google Docs, Google Maps, Spotify…)</div>\n </div>\n <ngs-popover #addPopover>\n <div class=\"w-[400px] overflow-hidden\">\n <ngs-tab-group>\n <ngs-tab label=\"Embed\">\n <div class=\"p-4\">\n <ngs-form-field class=\"w-full\">\n <input ngsInput [formField]=\"form.url\" placeholder=\"Paste in https://...\">\n <div ngsSuffix class=\"pe-2\">\n <button ngsButton=\"filled\" type=\"button\" [disabled]=\"form().invalid()\" (click)=\"embed(trigger)\">Embed</button>\n </div>\n </ngs-form-field>\n <p class=\"text-xs text-center\">Works with links of PDFs, Google Drive, Google Maps, CodePen…</p>\n </div>\n </ngs-tab>\n <ngs-tab label=\"Upload\">\n <div class=\"p-4\">\n <div>\n <button ngsButton=\"filled\" class=\"w-full\">Upload</button>\n </div>\n <p class=\"text-xs text-center mt-4\">Upload a file from your computer.</p>\n </div>\n </ngs-tab>\n </ngs-tab-group>\n </div>\n </ngs-popover>\n} @else {\n <div class=\"w-full bg-surface-container-low w-[700px] h-[400px]\">\n <iframe width=\"100%\" height=\"100%\" [src]=\"_content().url | safeResourceUrl\" frameborder=\"0\" allowfullscreen></iframe>\n </div>\n}\n"],"mappings":";;;;;;;;;;;;AAGA,IAAa,eAAb,MAAa,aAAY;CACvB,MAAM,QAAc;EAClB,MAAM,WAAW,UAAU,GAAA,CAAI,KAAI;EACnC,IAAI,CAAC,SACH,OAAO;GAAE,KAAK;GAAI,MAAM;EAAE;EAG5B,MAAM,aAAa,mBAAmB,KAAK,OAAO,IAAI,UAAU,WAAW;EAE3E,IAAI,IAAgB;EACpB,IAAI;GACF,IAAI,IAAI,IAAI,UAAU;EACxB,QAAQ;GACN,OAAO;IAAE,KAAK;IAAS,MAAM;GAAE;EACjC;EAEA,MAAM,OAAO,EAAE,SAAS,YAAW;EACnC,MAAM,OAAO,EAAE,SAAS,YAAW;EACnC,MAAM,OAAO,EAAE,SAAQ;EAEvB,IAAI,KAAK,SAAS,MAAM,GACtB,OAAO;GAAE,KAAK;GAAM,MAAM;EAAK;OAC1B,IAAI,KAAK,SAAS,UAAU,KAAK,KAAK,SAAS,aAAa,GACjE,OAAO;GAAE,KAAK,KAAK,eAAe,CAAC;GAAG,MAAM;EAAS;OAChD,IAAI,KAAK,SAAS,WAAW,GAClC,OAAO;GAAE,KAAK,KAAK,aAAa,CAAC;GAAG,MAAM;EAAO;OAC5C,IAAI,KAAK,SAAS,aAAa,GACpC,OAAO;GAAE,KAAK,KAAK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