@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
|
@@ -1,62 +1,54 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
const TOUR_CONFIG = new InjectionToken('TOUR_CONFIG');
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, ElementRef, HostListener, Injectable, InjectionToken, ViewContainerRef, computed, inject, input, output, signal } from "@angular/core";
|
|
3
|
+
import { Button } from "@ngstarter-ui/components/button";
|
|
4
|
+
import { CommonModule, DOCUMENT as DOCUMENT$1, NgClass, NgTemplateOutlet } from "@angular/common";
|
|
5
|
+
import { FlexibleConnectedPositionStrategy, Overlay } from "@angular/cdk/overlay";
|
|
6
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
7
|
+
import { Subject } from "rxjs";
|
|
8
|
+
import { Router } from "@angular/router";
|
|
9
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
10
|
+
import { PositionManager } from "@ngstarter-ui/components/overlay";
|
|
11
|
+
const TOUR_CONFIG = new InjectionToken("TOUR_CONFIG");
|
|
13
12
|
function provideTourConfig(config) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
return {
|
|
14
|
+
provide: TOUR_CONFIG,
|
|
15
|
+
useValue: config
|
|
16
|
+
};
|
|
18
17
|
}
|
|
19
18
|
var TourState;
|
|
20
|
-
(function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
(function(TourState) {
|
|
20
|
+
TourState[TourState["OFF"] = 0] = "OFF";
|
|
21
|
+
TourState[TourState["ON"] = 1] = "ON";
|
|
22
|
+
TourState[TourState["PAUSED"] = 2] = "PAUSED";
|
|
24
23
|
})(TourState || (TourState = {}));
|
|
25
|
-
const TOUR_STEP_COMPONENT = new InjectionToken(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const rectLeft = left - p;
|
|
54
|
-
const rectWidth = width + 2 * p;
|
|
55
|
-
const rectHeight = height + 2 * p;
|
|
56
|
-
// Outer rectangle (entire screen)
|
|
57
|
-
const screenPath = `M0,0 H${w} V${h} H0 Z`;
|
|
58
|
-
// Hole (inner contour)
|
|
59
|
-
const holePath = `
|
|
24
|
+
const TOUR_STEP_COMPONENT = new InjectionToken("TOUR_STEP_COMPONENT");
|
|
25
|
+
var TourBackdrop = class TourBackdrop {
|
|
26
|
+
elementRef = inject(ElementRef);
|
|
27
|
+
backdropClick = output();
|
|
28
|
+
animateEnterClass = input(true, ...ngDevMode ? [{ debugName: "animateEnterClass" }] : /* istanbul ignore next */ []);
|
|
29
|
+
animateLeaveClass = input(false, ...ngDevMode ? [{ debugName: "animateLeaveClass" }] : /* istanbul ignore next */ []);
|
|
30
|
+
rect = signal({
|
|
31
|
+
top: 0,
|
|
32
|
+
left: 0,
|
|
33
|
+
width: 0,
|
|
34
|
+
height: 0
|
|
35
|
+
}, ...ngDevMode ? [{ debugName: "rect" }] : /* istanbul ignore next */ []);
|
|
36
|
+
rx = signal(0, ...ngDevMode ? [{ debugName: "rx" }] : /* istanbul ignore next */ []);
|
|
37
|
+
padding = signal(0, ...ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []);
|
|
38
|
+
disableInteraction = signal(false, ...ngDevMode ? [{ debugName: "disableInteraction" }] : /* istanbul ignore next */ []);
|
|
39
|
+
viewBox = signal(`0 0 ${window.innerWidth || 1e3} ${window.innerHeight || 1e3}`, ...ngDevMode ? [{ debugName: "viewBox" }] : /* istanbul ignore next */ []);
|
|
40
|
+
isInitial = signal(true, ...ngDevMode ? [{ debugName: "isInitial" }] : /* istanbul ignore next */ []);
|
|
41
|
+
backdropPath = computed(() => {
|
|
42
|
+
const { top, left, width, height } = this.rect();
|
|
43
|
+
const p = this.padding();
|
|
44
|
+
const radius = this.rx();
|
|
45
|
+
const w = window.innerWidth;
|
|
46
|
+
const h = window.innerHeight;
|
|
47
|
+
const rectTop = top - p;
|
|
48
|
+
const rectLeft = left - p;
|
|
49
|
+
const rectWidth = width + 2 * p;
|
|
50
|
+
const rectHeight = height + 2 * p;
|
|
51
|
+
return `${`M0,0 H${w} V${h} H0 Z`} ${`
|
|
60
52
|
M${rectLeft + radius},${rectTop}
|
|
61
53
|
L${rectLeft + rectWidth - radius},${rectTop}
|
|
62
54
|
A${radius},${radius} 0 0 1 ${rectLeft + rectWidth},${rectTop + radius}
|
|
@@ -67,689 +59,838 @@ class TourBackdrop {
|
|
|
67
59
|
L${rectLeft},${rectTop + radius}
|
|
68
60
|
A${radius},${radius} 0 0 1 ${rectLeft + radius},${rectTop}
|
|
69
61
|
Z
|
|
70
|
-
`.replace(/\s+/g,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
62
|
+
`.replace(/\s+/g, " ")}`;
|
|
63
|
+
}, ...ngDevMode ? [{ debugName: "backdropPath" }] : /* istanbul ignore next */ []);
|
|
64
|
+
constructor() {
|
|
65
|
+
this.updateViewBox();
|
|
66
|
+
}
|
|
67
|
+
onResize() {
|
|
68
|
+
this.updatePositionFromAnchor();
|
|
69
|
+
this.updateViewBox();
|
|
70
|
+
}
|
|
71
|
+
anchorElement = null;
|
|
72
|
+
updatePosition(rect, borderRadius, anchorElement, padding = 0, disableInteraction = false) {
|
|
73
|
+
if (anchorElement) this.anchorElement = anchorElement;
|
|
74
|
+
const isInitial = this.isInitial();
|
|
75
|
+
this.rect.set({
|
|
76
|
+
top: rect.top,
|
|
77
|
+
left: rect.left,
|
|
78
|
+
width: rect.width,
|
|
79
|
+
height: rect.height
|
|
80
|
+
});
|
|
81
|
+
const radius = parseInt(borderRadius, 10) || 0;
|
|
82
|
+
this.rx.set(radius);
|
|
83
|
+
this.padding.set(padding);
|
|
84
|
+
this.disableInteraction.set(disableInteraction);
|
|
85
|
+
this.updateViewBox();
|
|
86
|
+
if (isInitial) setTimeout(() => {
|
|
87
|
+
this.isInitial.set(false);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
updatePositionFromAnchor() {
|
|
91
|
+
if (this.anchorElement) {
|
|
92
|
+
const rect = this.anchorElement.getBoundingClientRect();
|
|
93
|
+
this.rect.set({
|
|
94
|
+
top: rect.top,
|
|
95
|
+
left: rect.left,
|
|
96
|
+
width: rect.width,
|
|
97
|
+
height: rect.height
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
updateViewBox() {
|
|
102
|
+
const w = window.innerWidth || 1e3;
|
|
103
|
+
const h = window.innerHeight || 1e3;
|
|
104
|
+
this.viewBox.set(`0 0 ${w} ${h}`);
|
|
105
|
+
}
|
|
106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
107
|
+
minVersion: "12.0.0",
|
|
108
|
+
version: "22.3.0",
|
|
109
|
+
ngImport: i0,
|
|
110
|
+
type: TourBackdrop,
|
|
111
|
+
deps: [],
|
|
112
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
113
|
+
});
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
115
|
+
minVersion: "17.1.0",
|
|
116
|
+
version: "22.3.0",
|
|
117
|
+
type: TourBackdrop,
|
|
118
|
+
isStandalone: true,
|
|
119
|
+
selector: "ngs-tour-backdrop",
|
|
120
|
+
inputs: {
|
|
121
|
+
animateEnterClass: {
|
|
122
|
+
classPropertyName: "animateEnterClass",
|
|
123
|
+
publicName: "animateEnterClass",
|
|
124
|
+
isSignal: true,
|
|
125
|
+
isRequired: false,
|
|
126
|
+
transformFunction: null
|
|
127
|
+
},
|
|
128
|
+
animateLeaveClass: {
|
|
129
|
+
classPropertyName: "animateLeaveClass",
|
|
130
|
+
publicName: "animateLeaveClass",
|
|
131
|
+
isSignal: true,
|
|
132
|
+
isRequired: false,
|
|
133
|
+
transformFunction: null
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
outputs: { backdropClick: "backdropClick" },
|
|
137
|
+
host: {
|
|
138
|
+
listeners: {
|
|
139
|
+
"window:resize": "onResize()",
|
|
140
|
+
"window:scroll": "onResize()"
|
|
141
|
+
},
|
|
142
|
+
properties: {
|
|
143
|
+
"class.is-initial": "isInitial()",
|
|
144
|
+
"class.animate-enter": "animateEnterClass()",
|
|
145
|
+
"class.animate-leave": "animateLeaveClass()",
|
|
146
|
+
"style.pointer-events": "\"none\""
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
exportAs: ["ngsTourBackdrop"],
|
|
150
|
+
ngImport: i0,
|
|
151
|
+
template: "<svg\n class=\"absolute top-0 left-0 w-full h-full pointer-events-none\"\n [attr.viewBox]=\"viewBox()\"\n preserveAspectRatio=\"xMinYMin slice\"\n>\n <path\n fill-rule=\"evenodd\"\n [attr.d]=\"backdropPath()\"\n (click)=\"backdropClick.emit()\"\n />\n <rect\n [attr.x]=\"rect().left - padding()\"\n [attr.y]=\"rect().top - padding()\"\n [attr.width]=\"rect().width + 2 * padding()\"\n [attr.height]=\"rect().height + 2 * padding()\"\n [attr.rx]=\"rx()\"\n [class.interactive]=\"!disableInteraction()\"\n ></rect>\n</svg>\n",
|
|
152
|
+
styles: [":host{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:1100;display:block;background:transparent;overflow:hidden;visibility:visible}:host path{fill:var(--ngs-overlay-backdrop-bg);pointer-events:auto;cursor:default}:host rect{fill:transparent;stroke:var(--ngs-color-primary);stroke-width:2;pointer-events:auto}:host rect:not(.interactive){pointer-events:none}:host path,:host rect{transition:all .3s cubic-bezier(.4,0,.2,1)}:host.animate-enter{animation:backdrop-fade-in .2s ease-out forwards}:host.animate-leave{animation:backdrop-fade-out .15s ease-in forwards}@keyframes backdrop-fade-in{0%{opacity:0}to{opacity:1}}@keyframes backdrop-fade-out{0%{opacity:1}to{opacity:0}}:host(.is-initial) path,:host(.is-initial) rect{transition:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
153
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
157
|
+
minVersion: "12.0.0",
|
|
158
|
+
version: "22.3.0",
|
|
159
|
+
ngImport: i0,
|
|
160
|
+
type: TourBackdrop,
|
|
161
|
+
decorators: [{
|
|
162
|
+
type: Component,
|
|
163
|
+
args: [{
|
|
164
|
+
selector: "ngs-tour-backdrop",
|
|
165
|
+
exportAs: "ngsTourBackdrop",
|
|
166
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
167
|
+
host: {
|
|
168
|
+
"[class.is-initial]": "isInitial()",
|
|
169
|
+
"[class.animate-enter]": "animateEnterClass()",
|
|
170
|
+
"[class.animate-leave]": "animateLeaveClass()",
|
|
171
|
+
"[style.pointer-events]": "\"none\""
|
|
172
|
+
},
|
|
173
|
+
template: "<svg\n class=\"absolute top-0 left-0 w-full h-full pointer-events-none\"\n [attr.viewBox]=\"viewBox()\"\n preserveAspectRatio=\"xMinYMin slice\"\n>\n <path\n fill-rule=\"evenodd\"\n [attr.d]=\"backdropPath()\"\n (click)=\"backdropClick.emit()\"\n />\n <rect\n [attr.x]=\"rect().left - padding()\"\n [attr.y]=\"rect().top - padding()\"\n [attr.width]=\"rect().width + 2 * padding()\"\n [attr.height]=\"rect().height + 2 * padding()\"\n [attr.rx]=\"rx()\"\n [class.interactive]=\"!disableInteraction()\"\n ></rect>\n</svg>\n",
|
|
174
|
+
styles: [":host{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:1100;display:block;background:transparent;overflow:hidden;visibility:visible}:host path{fill:var(--ngs-overlay-backdrop-bg);pointer-events:auto;cursor:default}:host rect{fill:transparent;stroke:var(--ngs-color-primary);stroke-width:2;pointer-events:auto}:host rect:not(.interactive){pointer-events:none}:host path,:host rect{transition:all .3s cubic-bezier(.4,0,.2,1)}:host.animate-enter{animation:backdrop-fade-in .2s ease-out forwards}:host.animate-leave{animation:backdrop-fade-out .15s ease-in forwards}@keyframes backdrop-fade-in{0%{opacity:0}to{opacity:1}}@keyframes backdrop-fade-out{0%{opacity:1}to{opacity:0}}:host(.is-initial) path,:host(.is-initial) rect{transition:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
175
|
+
}]
|
|
176
|
+
}],
|
|
177
|
+
ctorParameters: () => [],
|
|
178
|
+
propDecorators: {
|
|
179
|
+
backdropClick: [{
|
|
180
|
+
type: i0.Output,
|
|
181
|
+
args: ["backdropClick"]
|
|
182
|
+
}],
|
|
183
|
+
animateEnterClass: [{
|
|
184
|
+
type: i0.Input,
|
|
185
|
+
args: [{
|
|
186
|
+
isSignal: true,
|
|
187
|
+
alias: "animateEnterClass",
|
|
188
|
+
required: false
|
|
189
|
+
}]
|
|
190
|
+
}],
|
|
191
|
+
animateLeaveClass: [{
|
|
192
|
+
type: i0.Input,
|
|
193
|
+
args: [{
|
|
194
|
+
isSignal: true,
|
|
195
|
+
alias: "animateLeaveClass",
|
|
196
|
+
required: false
|
|
197
|
+
}]
|
|
198
|
+
}],
|
|
199
|
+
onResize: [{
|
|
200
|
+
type: HostListener,
|
|
201
|
+
args: ["window:resize"]
|
|
202
|
+
}, {
|
|
203
|
+
type: HostListener,
|
|
204
|
+
args: ["window:scroll"]
|
|
205
|
+
}]
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
var TourStep = class TourStep {
|
|
209
|
+
tourService = inject(TourService);
|
|
210
|
+
_sanitizer = inject(DomSanitizer);
|
|
211
|
+
step = input.required(...ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []);
|
|
212
|
+
isFirst = input(false, ...ngDevMode ? [{ debugName: "isFirst" }] : /* istanbul ignore next */ []);
|
|
213
|
+
isLast = input(false, ...ngDevMode ? [{ debugName: "isLast" }] : /* istanbul ignore next */ []);
|
|
214
|
+
position = input(null, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
215
|
+
animateEnterClass = input(true, ...ngDevMode ? [{ debugName: "animateEnterClass" }] : /* istanbul ignore next */ []);
|
|
216
|
+
animateLeaveClass = input(false, ...ngDevMode ? [{ debugName: "animateLeaveClass" }] : /* istanbul ignore next */ []);
|
|
217
|
+
config = inject(TOUR_CONFIG, { optional: true });
|
|
218
|
+
htmlContent = computed(() => {
|
|
219
|
+
const html = this.step().htmlContent;
|
|
220
|
+
return html ? this._sanitizer.bypassSecurityTrustHtml(html) : null;
|
|
221
|
+
}, ...ngDevMode ? [{ debugName: "htmlContent" }] : /* istanbul ignore next */ []);
|
|
222
|
+
getArrowClasses(pos) {
|
|
223
|
+
if (!pos) return "hidden";
|
|
224
|
+
const classes = [];
|
|
225
|
+
if (pos.overlayY === "top" && pos.originY === "bottom") classes.push("pos-top");
|
|
226
|
+
else if (pos.overlayY === "bottom" && pos.originY === "top") classes.push("pos-bottom");
|
|
227
|
+
else if (pos.overlayX === "start" && pos.originX === "end") classes.push("pos-left");
|
|
228
|
+
else if (pos.overlayX === "end" && pos.originX === "start") classes.push("pos-right");
|
|
229
|
+
if (classes.includes("pos-top") || classes.includes("pos-bottom")) {
|
|
230
|
+
if (pos.overlayX === "center") classes.push("align-center");
|
|
231
|
+
else if (pos.overlayX === "start") classes.push("align-start");
|
|
232
|
+
else if (pos.overlayX === "end") classes.push("align-end");
|
|
233
|
+
} else if (classes.includes("pos-left") || classes.includes("pos-right")) {
|
|
234
|
+
if (pos.overlayY === "center") classes.push("align-center");
|
|
235
|
+
else if (pos.overlayY === "top") classes.push("align-start");
|
|
236
|
+
else if (pos.overlayY === "bottom") classes.push("align-end");
|
|
237
|
+
}
|
|
238
|
+
return classes.join(" ");
|
|
239
|
+
}
|
|
240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
241
|
+
minVersion: "12.0.0",
|
|
242
|
+
version: "22.3.0",
|
|
243
|
+
ngImport: i0,
|
|
244
|
+
type: TourStep,
|
|
245
|
+
deps: [],
|
|
246
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
247
|
+
});
|
|
248
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
249
|
+
minVersion: "17.0.0",
|
|
250
|
+
version: "22.3.0",
|
|
251
|
+
type: TourStep,
|
|
252
|
+
isStandalone: true,
|
|
253
|
+
selector: "ngs-tour-step",
|
|
254
|
+
inputs: {
|
|
255
|
+
step: {
|
|
256
|
+
classPropertyName: "step",
|
|
257
|
+
publicName: "step",
|
|
258
|
+
isSignal: true,
|
|
259
|
+
isRequired: true,
|
|
260
|
+
transformFunction: null
|
|
261
|
+
},
|
|
262
|
+
isFirst: {
|
|
263
|
+
classPropertyName: "isFirst",
|
|
264
|
+
publicName: "isFirst",
|
|
265
|
+
isSignal: true,
|
|
266
|
+
isRequired: false,
|
|
267
|
+
transformFunction: null
|
|
268
|
+
},
|
|
269
|
+
isLast: {
|
|
270
|
+
classPropertyName: "isLast",
|
|
271
|
+
publicName: "isLast",
|
|
272
|
+
isSignal: true,
|
|
273
|
+
isRequired: false,
|
|
274
|
+
transformFunction: null
|
|
275
|
+
},
|
|
276
|
+
position: {
|
|
277
|
+
classPropertyName: "position",
|
|
278
|
+
publicName: "position",
|
|
279
|
+
isSignal: true,
|
|
280
|
+
isRequired: false,
|
|
281
|
+
transformFunction: null
|
|
282
|
+
},
|
|
283
|
+
animateEnterClass: {
|
|
284
|
+
classPropertyName: "animateEnterClass",
|
|
285
|
+
publicName: "animateEnterClass",
|
|
286
|
+
isSignal: true,
|
|
287
|
+
isRequired: false,
|
|
288
|
+
transformFunction: null
|
|
289
|
+
},
|
|
290
|
+
animateLeaveClass: {
|
|
291
|
+
classPropertyName: "animateLeaveClass",
|
|
292
|
+
publicName: "animateLeaveClass",
|
|
293
|
+
isSignal: true,
|
|
294
|
+
isRequired: false,
|
|
295
|
+
transformFunction: null
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
host: {
|
|
299
|
+
properties: {
|
|
300
|
+
"class.animate-enter": "animateEnterClass()",
|
|
301
|
+
"class.animate-leave": "animateLeaveClass()"
|
|
302
|
+
},
|
|
303
|
+
classAttribute: "ngs-tour-step not-prose"
|
|
304
|
+
},
|
|
305
|
+
exportAs: ["ngsTourStep"],
|
|
306
|
+
ngImport: i0,
|
|
307
|
+
template: "@if (!step().hideArrow) {\n <div class=\"tour-step-arrow\" [ngClass]=\"getArrowClasses(position())\"></div>\n}\n<div class=\"relative z-[1] transform-gpu\">\n @if (step().title) {\n <h3 class=\"mt-0 mb-2 font-semibold text-base leading-none tracking-tight\">{{ step().title }}</h3>\n }\n\n <div class=\"text-sm text-on-surface-variant\">\n @if (step().template) {\n <ng-container *ngTemplateOutlet=\"step().template!; context: step().templateContext\"/>\n } @else if (htmlContent()) {\n <div [innerHTML]=\"htmlContent()\"></div>\n } @else {\n {{ step().content }}\n }\n </div>\n\n <div class=\"flex justify-between gap-4 mt-4\">\n <button ngsButton (click)=\"tourService.end()\" class=\"button\">\n {{ step().skipBtnText || config?.skipBtnText || 'Close' }}\n </button>\n <div class=\"flex gap-2\">\n <button ngsButton=\"tonal\" (click)=\"tourService.prev()\" [disabled]=\"isFirst()\" class=\"button\">\n {{ step().prevBtnText || config?.prevBtnText || 'Prev' }}\n </button>\n <button ngsButton=\"filled\" (click)=\"tourService.next()\" class=\"button\">\n @if (isLast()) {\n {{ step().finishBtnText || config?.finishBtnText || 'Finish' }}\n } @else {\n {{ step().nextBtnText || config?.nextBtnText || 'Next' }}\n }\n </button>\n </div>\n </div>\n</div>\n",
|
|
308
|
+
styles: [":host{--ngs-guided-tour-step-bg: var(--ngs-color-surface-container-lowest);--ngs-guided-tour-step-border: 1px solid var(--ngs-color-subtle);--ngs-guided-tour-arrow-border-color: var(--ngs-color-subtle);display:block;z-index:1200;position:relative;background:var(--ngs-guided-tour-step-bg);border-radius:var(--ngs-guided-tour-step-radius, var(--ngs-radius-xl));box-shadow:var(--ngs-guided-tour-step-shadow, var(--ngs-shadow-lg));max-width:var(--ngs-guided-tour-step-max-width, 400px);padding:var(--ngs-guided-tour-step-step-padding, calc(var(--spacing, .25rem) * 4));border:var(--ngs-guided-tour-step-border);overflow:visible}:host .button{--ngs-button-height: calc(var(--spacing, .25rem) * 8);--ngs-button-padding: 0 calc(var(--spacing, .25rem) * 3)}:host.animate-enter{animation:step-enter .3s cubic-bezier(.4,0,.2,1) forwards}:host.animate-leave{animation:step-leave .15s cubic-bezier(.4,0,.2,1) forwards}:host .tour-step-arrow{position:absolute;width:12px;height:12px;background:var(--ngs-guided-tour-step-bg);z-index:10;pointer-events:none;border:1px solid transparent}:host .tour-step-arrow.hidden{display:none}:host .tour-step-arrow.pos-top{top:0;border-top-color:var(--ngs-guided-tour-arrow-border-color);border-left-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-top.align-center{left:50%;transform:translate(-50%) translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-top.align-start{left:16px;transform:translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-top.align-end{right:16px;transform:translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-bottom{bottom:0;border-bottom-color:var(--ngs-guided-tour-arrow-border-color);border-right-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-bottom.align-center{left:50%;transform:translate(-50%) translateY(50%) rotate(45deg)}:host .tour-step-arrow.pos-bottom.align-start{left:16px;transform:translateY(50%) rotate(45deg)}:host .tour-step-arrow.pos-bottom.align-end{right:16px;transform:translateY(50%) rotate(45deg)}:host .tour-step-arrow.pos-left{left:0;border-bottom-color:var(--ngs-guided-tour-arrow-border-color);border-left-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-left.align-center{top:50%;transform:translate(-50%) translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-left.align-start{top:16px;transform:translate(-50%) rotate(45deg)}:host .tour-step-arrow.pos-left.align-end{bottom:16px;transform:translate(-50%) rotate(45deg)}:host .tour-step-arrow.pos-right{right:0;border-top-color:var(--ngs-guided-tour-arrow-border-color);border-right-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-right.align-center{top:50%;transform:translate(50%) translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-right.align-start{top:16px;transform:translate(50%) rotate(45deg)}:host .tour-step-arrow.pos-right.align-end{bottom:16px;transform:translate(50%) rotate(45deg)}@keyframes step-enter{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes step-leave{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
309
|
+
dependencies: [
|
|
310
|
+
{
|
|
311
|
+
kind: "directive",
|
|
312
|
+
type: NgTemplateOutlet,
|
|
313
|
+
selector: "[ngTemplateOutlet]",
|
|
314
|
+
inputs: [
|
|
315
|
+
"ngTemplateOutletContext",
|
|
316
|
+
"ngTemplateOutlet",
|
|
317
|
+
"ngTemplateOutletInjector"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
kind: "directive",
|
|
322
|
+
type: NgClass,
|
|
323
|
+
selector: "[ngClass]",
|
|
324
|
+
inputs: ["class", "ngClass"]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
kind: "ngmodule",
|
|
328
|
+
type: CommonModule
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
kind: "component",
|
|
332
|
+
type: Button,
|
|
333
|
+
selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
|
|
334
|
+
inputs: [
|
|
335
|
+
"ngsButton",
|
|
336
|
+
"ngsIconButton",
|
|
337
|
+
"loading",
|
|
338
|
+
"disabled",
|
|
339
|
+
"disabledInteractive",
|
|
340
|
+
"disableRipple",
|
|
341
|
+
"reverse",
|
|
342
|
+
"fullWidth",
|
|
343
|
+
"hideTextOnMobile"
|
|
344
|
+
],
|
|
345
|
+
exportAs: ["ngsButton"]
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
352
|
+
minVersion: "12.0.0",
|
|
353
|
+
version: "22.3.0",
|
|
354
|
+
ngImport: i0,
|
|
355
|
+
type: TourStep,
|
|
356
|
+
decorators: [{
|
|
357
|
+
type: Component,
|
|
358
|
+
args: [{
|
|
359
|
+
selector: "ngs-tour-step",
|
|
360
|
+
exportAs: "ngsTourStep",
|
|
361
|
+
imports: [
|
|
362
|
+
NgTemplateOutlet,
|
|
363
|
+
NgClass,
|
|
364
|
+
CommonModule,
|
|
365
|
+
Button
|
|
366
|
+
],
|
|
367
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
368
|
+
host: {
|
|
369
|
+
"class": "ngs-tour-step not-prose",
|
|
370
|
+
"[class.animate-enter]": "animateEnterClass()",
|
|
371
|
+
"[class.animate-leave]": "animateLeaveClass()"
|
|
372
|
+
},
|
|
373
|
+
template: "@if (!step().hideArrow) {\n <div class=\"tour-step-arrow\" [ngClass]=\"getArrowClasses(position())\"></div>\n}\n<div class=\"relative z-[1] transform-gpu\">\n @if (step().title) {\n <h3 class=\"mt-0 mb-2 font-semibold text-base leading-none tracking-tight\">{{ step().title }}</h3>\n }\n\n <div class=\"text-sm text-on-surface-variant\">\n @if (step().template) {\n <ng-container *ngTemplateOutlet=\"step().template!; context: step().templateContext\"/>\n } @else if (htmlContent()) {\n <div [innerHTML]=\"htmlContent()\"></div>\n } @else {\n {{ step().content }}\n }\n </div>\n\n <div class=\"flex justify-between gap-4 mt-4\">\n <button ngsButton (click)=\"tourService.end()\" class=\"button\">\n {{ step().skipBtnText || config?.skipBtnText || 'Close' }}\n </button>\n <div class=\"flex gap-2\">\n <button ngsButton=\"tonal\" (click)=\"tourService.prev()\" [disabled]=\"isFirst()\" class=\"button\">\n {{ step().prevBtnText || config?.prevBtnText || 'Prev' }}\n </button>\n <button ngsButton=\"filled\" (click)=\"tourService.next()\" class=\"button\">\n @if (isLast()) {\n {{ step().finishBtnText || config?.finishBtnText || 'Finish' }}\n } @else {\n {{ step().nextBtnText || config?.nextBtnText || 'Next' }}\n }\n </button>\n </div>\n </div>\n</div>\n",
|
|
374
|
+
styles: [":host{--ngs-guided-tour-step-bg: var(--ngs-color-surface-container-lowest);--ngs-guided-tour-step-border: 1px solid var(--ngs-color-subtle);--ngs-guided-tour-arrow-border-color: var(--ngs-color-subtle);display:block;z-index:1200;position:relative;background:var(--ngs-guided-tour-step-bg);border-radius:var(--ngs-guided-tour-step-radius, var(--ngs-radius-xl));box-shadow:var(--ngs-guided-tour-step-shadow, var(--ngs-shadow-lg));max-width:var(--ngs-guided-tour-step-max-width, 400px);padding:var(--ngs-guided-tour-step-step-padding, calc(var(--spacing, .25rem) * 4));border:var(--ngs-guided-tour-step-border);overflow:visible}:host .button{--ngs-button-height: calc(var(--spacing, .25rem) * 8);--ngs-button-padding: 0 calc(var(--spacing, .25rem) * 3)}:host.animate-enter{animation:step-enter .3s cubic-bezier(.4,0,.2,1) forwards}:host.animate-leave{animation:step-leave .15s cubic-bezier(.4,0,.2,1) forwards}:host .tour-step-arrow{position:absolute;width:12px;height:12px;background:var(--ngs-guided-tour-step-bg);z-index:10;pointer-events:none;border:1px solid transparent}:host .tour-step-arrow.hidden{display:none}:host .tour-step-arrow.pos-top{top:0;border-top-color:var(--ngs-guided-tour-arrow-border-color);border-left-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-top.align-center{left:50%;transform:translate(-50%) translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-top.align-start{left:16px;transform:translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-top.align-end{right:16px;transform:translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-bottom{bottom:0;border-bottom-color:var(--ngs-guided-tour-arrow-border-color);border-right-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-bottom.align-center{left:50%;transform:translate(-50%) translateY(50%) rotate(45deg)}:host .tour-step-arrow.pos-bottom.align-start{left:16px;transform:translateY(50%) rotate(45deg)}:host .tour-step-arrow.pos-bottom.align-end{right:16px;transform:translateY(50%) rotate(45deg)}:host .tour-step-arrow.pos-left{left:0;border-bottom-color:var(--ngs-guided-tour-arrow-border-color);border-left-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-left.align-center{top:50%;transform:translate(-50%) translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-left.align-start{top:16px;transform:translate(-50%) rotate(45deg)}:host .tour-step-arrow.pos-left.align-end{bottom:16px;transform:translate(-50%) rotate(45deg)}:host .tour-step-arrow.pos-right{right:0;border-top-color:var(--ngs-guided-tour-arrow-border-color);border-right-color:var(--ngs-guided-tour-arrow-border-color)}:host .tour-step-arrow.pos-right.align-center{top:50%;transform:translate(50%) translateY(-50%) rotate(45deg)}:host .tour-step-arrow.pos-right.align-start{top:16px;transform:translate(50%) rotate(45deg)}:host .tour-step-arrow.pos-right.align-end{bottom:16px;transform:translate(50%) rotate(45deg)}@keyframes step-enter{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes step-leave{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
375
|
+
}]
|
|
376
|
+
}],
|
|
377
|
+
propDecorators: {
|
|
378
|
+
step: [{
|
|
379
|
+
type: i0.Input,
|
|
380
|
+
args: [{
|
|
381
|
+
isSignal: true,
|
|
382
|
+
alias: "step",
|
|
383
|
+
required: true
|
|
384
|
+
}]
|
|
385
|
+
}],
|
|
386
|
+
isFirst: [{
|
|
387
|
+
type: i0.Input,
|
|
388
|
+
args: [{
|
|
389
|
+
isSignal: true,
|
|
390
|
+
alias: "isFirst",
|
|
391
|
+
required: false
|
|
392
|
+
}]
|
|
393
|
+
}],
|
|
394
|
+
isLast: [{
|
|
395
|
+
type: i0.Input,
|
|
396
|
+
args: [{
|
|
397
|
+
isSignal: true,
|
|
398
|
+
alias: "isLast",
|
|
399
|
+
required: false
|
|
400
|
+
}]
|
|
401
|
+
}],
|
|
402
|
+
position: [{
|
|
403
|
+
type: i0.Input,
|
|
404
|
+
args: [{
|
|
405
|
+
isSignal: true,
|
|
406
|
+
alias: "position",
|
|
407
|
+
required: false
|
|
408
|
+
}]
|
|
409
|
+
}],
|
|
410
|
+
animateEnterClass: [{
|
|
411
|
+
type: i0.Input,
|
|
412
|
+
args: [{
|
|
413
|
+
isSignal: true,
|
|
414
|
+
alias: "animateEnterClass",
|
|
415
|
+
required: false
|
|
416
|
+
}]
|
|
417
|
+
}],
|
|
418
|
+
animateLeaveClass: [{
|
|
419
|
+
type: i0.Input,
|
|
420
|
+
args: [{
|
|
421
|
+
isSignal: true,
|
|
422
|
+
alias: "animateLeaveClass",
|
|
423
|
+
required: false
|
|
424
|
+
}]
|
|
425
|
+
}]
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
var TourService = class TourService {
|
|
429
|
+
overlay = inject(Overlay);
|
|
430
|
+
config = inject(TOUR_CONFIG, { optional: true });
|
|
431
|
+
document = inject(DOCUMENT$1);
|
|
432
|
+
router = inject(Router);
|
|
433
|
+
backdropOverlayRef = null;
|
|
434
|
+
backdropComponentRef = null;
|
|
435
|
+
_steps = signal([], ...ngDevMode ? [{ debugName: "_steps" }] : /* istanbul ignore next */ []);
|
|
436
|
+
_currentStepIndex = signal(-1, ...ngDevMode ? [{ debugName: "_currentStepIndex" }] : /* istanbul ignore next */ []);
|
|
437
|
+
_state = signal(TourState.OFF, ...ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []);
|
|
438
|
+
_anchors = /* @__PURE__ */ new Map();
|
|
439
|
+
stepOverlayRef = null;
|
|
440
|
+
stepComponentRef = null;
|
|
441
|
+
customStepComponent = inject(TOUR_STEP_COMPONENT, { optional: true });
|
|
442
|
+
constructor() {
|
|
443
|
+
this.document.addEventListener("keydown", this.handleKeyDown);
|
|
444
|
+
}
|
|
445
|
+
ngOnDestroy() {
|
|
446
|
+
this.document.removeEventListener("keydown", this.handleKeyDown);
|
|
447
|
+
}
|
|
448
|
+
handleKeyDown = (event) => {
|
|
449
|
+
if (this.state() !== TourState.ON || this.config?.keyboardNavigation === false) return;
|
|
450
|
+
switch (event.key) {
|
|
451
|
+
case "ArrowRight":
|
|
452
|
+
this.next();
|
|
453
|
+
break;
|
|
454
|
+
case "ArrowLeft":
|
|
455
|
+
this.prev();
|
|
456
|
+
break;
|
|
457
|
+
case "Escape": this.end();
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
steps = this._steps.asReadonly();
|
|
461
|
+
currentStepIndex = this._currentStepIndex.asReadonly();
|
|
462
|
+
state = this._state.asReadonly();
|
|
463
|
+
currentStep = computed(() => {
|
|
464
|
+
const index = this._currentStepIndex();
|
|
465
|
+
const steps = this._steps();
|
|
466
|
+
return index >= 0 && index < steps.length ? steps[index] : null;
|
|
467
|
+
}, ...ngDevMode ? [{ debugName: "currentStep" }] : /* istanbul ignore next */ []);
|
|
468
|
+
stepShow$ = new Subject();
|
|
469
|
+
stepHide$ = new Subject();
|
|
470
|
+
start$ = new Subject();
|
|
471
|
+
end$ = new Subject();
|
|
472
|
+
registerAnchor(id, anchor) {
|
|
473
|
+
this._anchors.set(id, anchor);
|
|
474
|
+
}
|
|
475
|
+
unregisterAnchor(id) {
|
|
476
|
+
this._anchors.delete(id);
|
|
477
|
+
}
|
|
478
|
+
start(steps) {
|
|
479
|
+
this._steps.set(steps);
|
|
480
|
+
this._state.set(TourState.ON);
|
|
481
|
+
this.start$.next();
|
|
482
|
+
this.goToStep(0);
|
|
483
|
+
}
|
|
484
|
+
async end() {
|
|
485
|
+
const currentStep = this.currentStep();
|
|
486
|
+
if (currentStep) {
|
|
487
|
+
if (currentStep.onHide) await currentStep.onHide();
|
|
488
|
+
this.stepHide$.next(currentStep);
|
|
489
|
+
const hideStepPromise = this._hideStep(currentStep);
|
|
490
|
+
const hideBackdropPromise = this.hideBackdrop(true);
|
|
491
|
+
await Promise.all([hideStepPromise, hideBackdropPromise]);
|
|
492
|
+
} else await this.hideBackdrop(true);
|
|
493
|
+
this._state.set(TourState.OFF);
|
|
494
|
+
this._currentStepIndex.set(-1);
|
|
495
|
+
this._steps.set([]);
|
|
496
|
+
this.end$.next();
|
|
497
|
+
}
|
|
498
|
+
async next() {
|
|
499
|
+
const currentStep = this.currentStep();
|
|
500
|
+
if (currentStep?.onNext) await currentStep.onNext();
|
|
501
|
+
if (this._currentStepIndex() < this._steps().length - 1) await this.goToStep(this._currentStepIndex() + 1);
|
|
502
|
+
else await this.end();
|
|
503
|
+
}
|
|
504
|
+
async prev() {
|
|
505
|
+
const currentStep = this.currentStep();
|
|
506
|
+
if (currentStep?.onPrev) await currentStep.onPrev();
|
|
507
|
+
if (this._currentStepIndex() > 0) await this.goToStep(this._currentStepIndex() - 1);
|
|
508
|
+
}
|
|
509
|
+
async goToStep(index) {
|
|
510
|
+
const currentStep = this.currentStep();
|
|
511
|
+
const nextStep = this._steps()[index];
|
|
512
|
+
if (currentStep) {
|
|
513
|
+
if (currentStep.onHide) await currentStep.onHide();
|
|
514
|
+
this.stepHide$.next(currentStep);
|
|
515
|
+
await this._hideStep(currentStep);
|
|
516
|
+
}
|
|
517
|
+
if (currentStep?.withBackdrop && !nextStep?.withBackdrop) this.hideBackdrop(false);
|
|
518
|
+
if (nextStep?.route) {
|
|
519
|
+
const currentUrl = this.router.url;
|
|
520
|
+
const targetUrl = nextStep.route;
|
|
521
|
+
if (currentUrl !== targetUrl) await this.router.navigateByUrl(targetUrl);
|
|
522
|
+
}
|
|
523
|
+
if (nextStep?.onShow) await nextStep.onShow();
|
|
524
|
+
if (nextStep?.waitFor) try {
|
|
525
|
+
await this.waitForElement(nextStep.waitFor);
|
|
526
|
+
} catch (e) {
|
|
527
|
+
console.warn(`TourService: Element "${nextStep.waitFor}" not found after timeout.`);
|
|
528
|
+
}
|
|
529
|
+
this._currentStepIndex.set(index);
|
|
530
|
+
if (nextStep) {
|
|
531
|
+
this.stepShow$.next(nextStep);
|
|
532
|
+
this._showStep(nextStep);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
waitForElement(selector, timeout = 3e3) {
|
|
536
|
+
return new Promise((resolve, reject) => {
|
|
537
|
+
const element = document.querySelector(selector);
|
|
538
|
+
if (element) return resolve(element);
|
|
539
|
+
const observer = new MutationObserver(() => {
|
|
540
|
+
const element = document.querySelector(selector);
|
|
541
|
+
if (element) {
|
|
542
|
+
observer.disconnect();
|
|
543
|
+
clearTimeout(timer);
|
|
544
|
+
resolve(element);
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
observer.observe(document.body, {
|
|
548
|
+
childList: true,
|
|
549
|
+
subtree: true
|
|
550
|
+
});
|
|
551
|
+
const timer = setTimeout(() => {
|
|
552
|
+
observer.disconnect();
|
|
553
|
+
reject(/* @__PURE__ */ new Error(`Timeout waiting for element: ${selector}`));
|
|
554
|
+
}, timeout);
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
showBackdrop(rect, borderRadius, viewContainerRef, anchorElement, padding = 0, disableInteraction = false) {
|
|
558
|
+
if (!this.backdropOverlayRef) {
|
|
559
|
+
this.backdropOverlayRef = this.overlay.create({
|
|
560
|
+
positionStrategy: this.overlay.position().global(),
|
|
561
|
+
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
562
|
+
hasBackdrop: false
|
|
563
|
+
});
|
|
564
|
+
const portal = new ComponentPortal(TourBackdrop, viewContainerRef);
|
|
565
|
+
this.backdropComponentRef = this.backdropOverlayRef.attach(portal);
|
|
566
|
+
this.backdropComponentRef.instance.backdropClick.subscribe(() => {
|
|
567
|
+
if (this.currentStep()?.closeOnBackdropClick ?? this.config?.closeOnBackdropClick ?? false) this.end();
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
this.backdropComponentRef?.instance.updatePosition(rect, borderRadius, anchorElement, padding, disableInteraction);
|
|
571
|
+
}
|
|
572
|
+
async hideBackdrop(animate) {
|
|
573
|
+
const overlayRef = this.backdropOverlayRef;
|
|
574
|
+
const componentRef = this.backdropComponentRef;
|
|
575
|
+
if (!overlayRef) return;
|
|
576
|
+
if (this.backdropOverlayRef === overlayRef) {
|
|
577
|
+
this.backdropOverlayRef = null;
|
|
578
|
+
this.backdropComponentRef = null;
|
|
579
|
+
}
|
|
580
|
+
if (animate) {
|
|
581
|
+
if (componentRef) {
|
|
582
|
+
const safeSetInput = (name, value) => {
|
|
583
|
+
try {
|
|
584
|
+
componentRef.setInput(name, value);
|
|
585
|
+
} catch (e) {}
|
|
586
|
+
};
|
|
587
|
+
safeSetInput("animateEnterClass", false);
|
|
588
|
+
safeSetInput("animateLeaveClass", true);
|
|
589
|
+
}
|
|
590
|
+
return new Promise((resolve) => {
|
|
591
|
+
setTimeout(() => {
|
|
592
|
+
overlayRef.dispose();
|
|
593
|
+
resolve();
|
|
594
|
+
}, 150);
|
|
595
|
+
});
|
|
596
|
+
} else {
|
|
597
|
+
overlayRef.dispose();
|
|
598
|
+
return Promise.resolve();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
_showStep(step) {
|
|
602
|
+
const anchorId = typeof step.anchorId === "function" ? step.anchorId() : step.anchorId;
|
|
603
|
+
let anchorElement = null;
|
|
604
|
+
let anchorDirective = null;
|
|
605
|
+
if (typeof anchorId === "string") {
|
|
606
|
+
anchorDirective = this._anchors.get(anchorId);
|
|
607
|
+
if (anchorDirective) {
|
|
608
|
+
anchorDirective.showStep(step);
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
anchorElement = document.querySelector(anchorId);
|
|
612
|
+
if (!anchorElement) anchorElement = document.getElementById(anchorId);
|
|
613
|
+
} else if (anchorId instanceof HTMLElement) anchorElement = anchorId;
|
|
614
|
+
if (anchorElement) this.showStepForElement(anchorElement, step);
|
|
615
|
+
}
|
|
616
|
+
showStepForElement(element, step) {
|
|
617
|
+
if (this.stepOverlayRef) {
|
|
618
|
+
const oldOverlayRef = this.stepOverlayRef;
|
|
619
|
+
this.stepComponentRef;
|
|
620
|
+
this.stepOverlayRef = null;
|
|
621
|
+
this.stepComponentRef = null;
|
|
622
|
+
oldOverlayRef.dispose();
|
|
623
|
+
}
|
|
624
|
+
const rect = element.getBoundingClientRect();
|
|
625
|
+
if (!(rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth))) element.scrollIntoView({
|
|
626
|
+
behavior: "instant",
|
|
627
|
+
block: "center",
|
|
628
|
+
inline: "nearest"
|
|
629
|
+
});
|
|
630
|
+
setTimeout(() => {
|
|
631
|
+
if (this.state() === TourState.OFF) return;
|
|
632
|
+
const rect = element.getBoundingClientRect();
|
|
633
|
+
const style = window.getComputedStyle(element);
|
|
634
|
+
const padding = step.padding ?? this.config?.padding ?? 4;
|
|
635
|
+
let positionStrategy;
|
|
636
|
+
const positionManager = new PositionManager();
|
|
637
|
+
const defaultPositions = [
|
|
638
|
+
...positionManager.build("below-center"),
|
|
639
|
+
...positionManager.build("above-center"),
|
|
640
|
+
...positionManager.build("after-center"),
|
|
641
|
+
...positionManager.build("before-center")
|
|
642
|
+
].map((p) => ({
|
|
643
|
+
...p,
|
|
644
|
+
...this._getOffset(p, padding)
|
|
645
|
+
}));
|
|
646
|
+
const preferredPositions = step.position ? positionManager.build(step.position).map((p) => ({
|
|
647
|
+
...p,
|
|
648
|
+
...this._getOffset(p, padding)
|
|
649
|
+
})) : defaultPositions;
|
|
650
|
+
positionStrategy = this.overlay.position().flexibleConnectedTo(element).withPush(false).withPositions(preferredPositions);
|
|
651
|
+
this.stepOverlayRef = this.overlay.create({
|
|
652
|
+
positionStrategy,
|
|
653
|
+
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
654
|
+
hasBackdrop: false,
|
|
655
|
+
panelClass: "ngs-tour-step-overlay"
|
|
656
|
+
});
|
|
657
|
+
if (step.withBackdrop) this.showBackdrop(rect, style.borderRadius, void 0, element, padding, step.disableInteraction);
|
|
658
|
+
const componentType = this.customStepComponent || TourStep;
|
|
659
|
+
const portal = new ComponentPortal(componentType);
|
|
660
|
+
this.stepComponentRef = this.stepOverlayRef.attach(portal);
|
|
661
|
+
const safeSetInput = (name, value) => {
|
|
662
|
+
try {
|
|
663
|
+
this.stepComponentRef?.setInput(name, value);
|
|
664
|
+
} catch (e) {}
|
|
665
|
+
};
|
|
666
|
+
if (positionStrategy instanceof FlexibleConnectedPositionStrategy) positionStrategy.positionChanges.subscribe((change) => {
|
|
667
|
+
safeSetInput("position", change.connectionPair);
|
|
668
|
+
});
|
|
669
|
+
const steps = this.steps();
|
|
670
|
+
const index = this.currentStepIndex();
|
|
671
|
+
const isFirst = index === 0;
|
|
672
|
+
const isLast = index === steps.length - 1;
|
|
673
|
+
safeSetInput("step", step);
|
|
674
|
+
safeSetInput("isFirst", isFirst);
|
|
675
|
+
safeSetInput("isLast", isLast);
|
|
676
|
+
if (positionStrategy instanceof FlexibleConnectedPositionStrategy) this.stepOverlayRef.updatePosition();
|
|
677
|
+
}, 0);
|
|
678
|
+
}
|
|
679
|
+
_getOffset(position, padding) {
|
|
680
|
+
const offset = 8 + padding;
|
|
681
|
+
if (position.originY === "bottom" && position.overlayY === "top") return { offsetY: offset };
|
|
682
|
+
if (position.originY === "top" && position.overlayY === "bottom") return { offsetY: -offset };
|
|
683
|
+
if (position.originX === "end" && position.overlayX === "start") return { offsetX: offset };
|
|
684
|
+
if (position.originX === "start" && position.overlayX === "end") return { offsetX: -offset };
|
|
685
|
+
return {};
|
|
686
|
+
}
|
|
687
|
+
async _hideStep(step) {
|
|
688
|
+
const anchorId = typeof step.anchorId === "function" ? step.anchorId() : step.anchorId;
|
|
689
|
+
if (typeof anchorId === "string") {
|
|
690
|
+
const anchor = this._anchors.get(anchorId);
|
|
691
|
+
if (anchor) {
|
|
692
|
+
await anchor.hideStep();
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
const overlayRef = this.stepOverlayRef;
|
|
697
|
+
const componentRef = this.stepComponentRef;
|
|
698
|
+
if (overlayRef) {
|
|
699
|
+
if (this.stepOverlayRef === overlayRef) {
|
|
700
|
+
this.stepOverlayRef = null;
|
|
701
|
+
this.stepComponentRef = null;
|
|
702
|
+
}
|
|
703
|
+
const safeSetInput = (name, value) => {
|
|
704
|
+
try {
|
|
705
|
+
componentRef?.setInput(name, value);
|
|
706
|
+
} catch (e) {}
|
|
707
|
+
};
|
|
708
|
+
safeSetInput("animateEnterClass", false);
|
|
709
|
+
safeSetInput("animateLeaveClass", true);
|
|
710
|
+
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
711
|
+
overlayRef.dispose();
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
715
|
+
minVersion: "12.0.0",
|
|
716
|
+
version: "22.3.0",
|
|
717
|
+
ngImport: i0,
|
|
718
|
+
type: TourService,
|
|
719
|
+
deps: [],
|
|
720
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
721
|
+
});
|
|
722
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
723
|
+
minVersion: "12.0.0",
|
|
724
|
+
version: "22.3.0",
|
|
725
|
+
ngImport: i0,
|
|
726
|
+
type: TourService,
|
|
727
|
+
providedIn: "root"
|
|
728
|
+
});
|
|
729
|
+
};
|
|
730
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
731
|
+
minVersion: "12.0.0",
|
|
732
|
+
version: "22.3.0",
|
|
733
|
+
ngImport: i0,
|
|
734
|
+
type: TourService,
|
|
735
|
+
decorators: [{
|
|
736
|
+
type: Injectable,
|
|
737
|
+
args: [{ providedIn: "root" }]
|
|
738
|
+
}],
|
|
739
|
+
ctorParameters: () => []
|
|
740
|
+
});
|
|
741
|
+
var TourAnchorDirective = class TourAnchorDirective {
|
|
742
|
+
anchorId = input.required({
|
|
743
|
+
...ngDevMode ? { debugName: "anchorId" } : /* istanbul ignore next */ {},
|
|
744
|
+
alias: "ngsTourAnchor"
|
|
745
|
+
});
|
|
746
|
+
elementRef = inject(ElementRef);
|
|
747
|
+
tourService = inject(TourService);
|
|
748
|
+
overlay = inject(Overlay);
|
|
749
|
+
viewContainerRef = inject(ViewContainerRef);
|
|
750
|
+
customStepComponent = inject(TOUR_STEP_COMPONENT, { optional: true });
|
|
751
|
+
config = inject(TOUR_CONFIG, { optional: true });
|
|
752
|
+
overlayRef = null;
|
|
753
|
+
componentRef = null;
|
|
754
|
+
ngOnInit() {
|
|
755
|
+
this.tourService.registerAnchor(this.anchorId(), this);
|
|
756
|
+
}
|
|
757
|
+
ngOnDestroy() {
|
|
758
|
+
this.tourService.unregisterAnchor(this.anchorId());
|
|
759
|
+
this.hideStep();
|
|
760
|
+
}
|
|
761
|
+
showStep(step) {
|
|
762
|
+
const currentOverlayRef = this.overlayRef;
|
|
763
|
+
this.componentRef;
|
|
764
|
+
if (this.overlayRef === currentOverlayRef) {
|
|
765
|
+
this.overlayRef = null;
|
|
766
|
+
this.componentRef = null;
|
|
767
|
+
}
|
|
768
|
+
if (currentOverlayRef) currentOverlayRef.dispose();
|
|
769
|
+
const rect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
770
|
+
if (!(rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth))) this.elementRef.nativeElement.scrollIntoView({
|
|
771
|
+
behavior: "instant",
|
|
772
|
+
block: "center",
|
|
773
|
+
inline: "nearest"
|
|
774
|
+
});
|
|
775
|
+
setTimeout(() => {
|
|
776
|
+
if (this.tourService.state() === 0) return;
|
|
777
|
+
const rect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
778
|
+
const style = window.getComputedStyle(this.elementRef.nativeElement);
|
|
779
|
+
const padding = step.padding ?? this.config?.padding ?? 4;
|
|
780
|
+
const positionManager = new PositionManager();
|
|
781
|
+
const defaultPositions = [
|
|
782
|
+
...positionManager.build("below-center"),
|
|
783
|
+
...positionManager.build("above-center"),
|
|
784
|
+
...positionManager.build("after-center"),
|
|
785
|
+
...positionManager.build("before-center")
|
|
786
|
+
].map((p) => ({
|
|
787
|
+
...p,
|
|
788
|
+
...this._getOffset(p, padding)
|
|
789
|
+
}));
|
|
790
|
+
const preferredPositions = step.position ? positionManager.build(step.position).map((p) => ({
|
|
791
|
+
...p,
|
|
792
|
+
...this._getOffset(p, padding)
|
|
793
|
+
})) : defaultPositions;
|
|
794
|
+
const positionStrategy = this.overlay.position().flexibleConnectedTo(this.elementRef).withPush(false).withPositions(preferredPositions);
|
|
795
|
+
this.overlayRef = this.overlay.create({
|
|
796
|
+
positionStrategy,
|
|
797
|
+
scrollStrategy: this.overlay.scrollStrategies.block(),
|
|
798
|
+
hasBackdrop: false,
|
|
799
|
+
panelClass: "ngs-tour-step-overlay"
|
|
800
|
+
});
|
|
801
|
+
if (step.withBackdrop) this.tourService.showBackdrop(rect, style.borderRadius, this.viewContainerRef, this.elementRef.nativeElement, padding, step.disableInteraction);
|
|
802
|
+
const componentType = this.customStepComponent || TourStep;
|
|
803
|
+
const portal = new ComponentPortal(componentType, this.viewContainerRef);
|
|
804
|
+
this.componentRef = this.overlayRef.attach(portal);
|
|
805
|
+
const safeSetInput = (name, value) => {
|
|
806
|
+
try {
|
|
807
|
+
this.componentRef?.setInput(name, value);
|
|
808
|
+
} catch (e) {}
|
|
809
|
+
};
|
|
810
|
+
if (positionStrategy instanceof FlexibleConnectedPositionStrategy) {
|
|
811
|
+
positionStrategy.positionChanges.subscribe((change) => {
|
|
812
|
+
safeSetInput("position", change.connectionPair);
|
|
813
|
+
});
|
|
814
|
+
this.overlayRef.updatePosition();
|
|
815
|
+
}
|
|
816
|
+
const steps = this.tourService.steps();
|
|
817
|
+
const index = this.tourService.currentStepIndex();
|
|
818
|
+
const isFirst = index === 0;
|
|
819
|
+
const isLast = index === steps.length - 1;
|
|
820
|
+
safeSetInput("step", step);
|
|
821
|
+
safeSetInput("isFirst", isFirst);
|
|
822
|
+
safeSetInput("isLast", isLast);
|
|
823
|
+
}, 0);
|
|
824
|
+
}
|
|
825
|
+
async hideStep() {
|
|
826
|
+
const overlayRef = this.overlayRef;
|
|
827
|
+
const componentRef = this.componentRef;
|
|
828
|
+
if (this.overlayRef === overlayRef) {
|
|
829
|
+
this.overlayRef = null;
|
|
830
|
+
this.componentRef = null;
|
|
831
|
+
}
|
|
832
|
+
if (overlayRef) {
|
|
833
|
+
const safeSetInput = (name, value) => {
|
|
834
|
+
try {
|
|
835
|
+
componentRef?.setInput(name, value);
|
|
836
|
+
} catch (e) {}
|
|
837
|
+
};
|
|
838
|
+
safeSetInput("animateEnterClass", false);
|
|
839
|
+
safeSetInput("animateLeaveClass", true);
|
|
840
|
+
await new Promise((resolve) => setTimeout(resolve, 200));
|
|
841
|
+
overlayRef.dispose();
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
_getOffset(position, padding) {
|
|
845
|
+
const offset = 8 + padding;
|
|
846
|
+
if (position.originY === "bottom" && position.overlayY === "top") return { offsetY: offset };
|
|
847
|
+
if (position.originY === "top" && position.overlayY === "bottom") return { offsetY: -offset };
|
|
848
|
+
if (position.originX === "end" && position.overlayX === "start") return { offsetX: offset };
|
|
849
|
+
if (position.originX === "start" && position.overlayX === "end") return { offsetX: -offset };
|
|
850
|
+
return {};
|
|
851
|
+
}
|
|
852
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
853
|
+
minVersion: "12.0.0",
|
|
854
|
+
version: "22.3.0",
|
|
855
|
+
ngImport: i0,
|
|
856
|
+
type: TourAnchorDirective,
|
|
857
|
+
deps: [],
|
|
858
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
859
|
+
});
|
|
860
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
861
|
+
minVersion: "17.1.0",
|
|
862
|
+
version: "22.3.0",
|
|
863
|
+
type: TourAnchorDirective,
|
|
864
|
+
isStandalone: true,
|
|
865
|
+
selector: "[ngsTourAnchor]",
|
|
866
|
+
inputs: { anchorId: {
|
|
867
|
+
classPropertyName: "anchorId",
|
|
868
|
+
publicName: "ngsTourAnchor",
|
|
869
|
+
isSignal: true,
|
|
870
|
+
isRequired: true,
|
|
871
|
+
transformFunction: null
|
|
872
|
+
} },
|
|
873
|
+
ngImport: i0
|
|
874
|
+
});
|
|
875
|
+
};
|
|
876
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
877
|
+
minVersion: "12.0.0",
|
|
878
|
+
version: "22.3.0",
|
|
879
|
+
ngImport: i0,
|
|
880
|
+
type: TourAnchorDirective,
|
|
881
|
+
decorators: [{
|
|
882
|
+
type: Directive,
|
|
883
|
+
args: [{ selector: "[ngsTourAnchor]" }]
|
|
884
|
+
}],
|
|
885
|
+
propDecorators: { anchorId: [{
|
|
886
|
+
type: i0.Input,
|
|
887
|
+
args: [{
|
|
888
|
+
isSignal: true,
|
|
889
|
+
alias: "ngsTourAnchor",
|
|
890
|
+
required: true
|
|
891
|
+
}]
|
|
892
|
+
}] }
|
|
893
|
+
});
|
|
754
894
|
export { TOUR_CONFIG, TOUR_STEP_COMPONENT, TourAnchorDirective, TourService, TourState, TourStep, provideTourConfig };
|
|
755
|
-
|
|
895
|
+
|
|
896
|
+
//# sourceMappingURL=ngstarter-ui-components-guided-tour.mjs.map
|