@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,184 +1,270 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
class
|
|
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
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, NgZone, PLATFORM_ID, computed, effect, inject, input, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { Icon } from "@ngstarter-ui/components/icon";
|
|
4
|
+
import { isPlatformBrowser } from "@angular/common";
|
|
5
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
6
|
+
import { fromEvent, merge, takeUntil } from "rxjs";
|
|
7
|
+
var ComparisonSlider = class ComparisonSlider {
|
|
8
|
+
resizeObserver = null;
|
|
9
|
+
platformId = inject(PLATFORM_ID);
|
|
10
|
+
ngZone = inject(NgZone);
|
|
11
|
+
destroyRef = inject(DestroyRef);
|
|
12
|
+
sliderContainerRef = viewChild.required("sliderContainer", ...ngDevMode ? [{ debugName: "sliderContainerRef" }] : /* istanbul ignore next */ []);
|
|
13
|
+
handleRef = viewChild.required("handle", ...ngDevMode ? [{ debugName: "handleRef" }] : /* istanbul ignore next */ []);
|
|
14
|
+
initialPosition = input(50, ...ngDevMode ? [{ debugName: "initialPosition" }] : /* istanbul ignore next */ []);
|
|
15
|
+
sliderPosition = signal(0, ...ngDevMode ? [{ debugName: "sliderPosition" }] : /* istanbul ignore next */ []);
|
|
16
|
+
isDragging = signal(false, ...ngDevMode ? [{ debugName: "isDragging" }] : /* istanbul ignore next */ []);
|
|
17
|
+
containerRect = null;
|
|
18
|
+
handleLeftStyle = computed(() => `${this.sliderPosition()}%`, ...ngDevMode ? [{ debugName: "handleLeftStyle" }] : /* istanbul ignore next */ []);
|
|
19
|
+
afterImageClipStyle = computed(() => `inset(0 ${100 - this.sliderPosition()}% 0 0)`, ...ngDevMode ? [{ debugName: "afterImageClipStyle" }] : /* istanbul ignore next */ []);
|
|
20
|
+
isBrowser;
|
|
21
|
+
constructor() {
|
|
22
|
+
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
23
|
+
effect(() => {
|
|
24
|
+
const initial = this.initialPosition();
|
|
25
|
+
this.sliderPosition.set(Math.max(0, Math.min(100, initial)));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
ngAfterViewInit() {
|
|
29
|
+
if (this.isBrowser) {
|
|
30
|
+
this.updateContainerRect();
|
|
31
|
+
if (typeof ResizeObserver !== "undefined" && this.sliderContainerRef() && this.sliderContainerRef().nativeElement) {
|
|
32
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
33
|
+
this.updateContainerRect();
|
|
34
|
+
});
|
|
35
|
+
this.resizeObserver.observe(this.sliderContainerRef().nativeElement);
|
|
36
|
+
}
|
|
37
|
+
this.initDragStreams();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
initDragStreams() {
|
|
41
|
+
const container = this.sliderContainerRef().nativeElement;
|
|
42
|
+
const handle = this.handleRef().nativeElement;
|
|
43
|
+
this.ngZone.runOutsideAngular(() => {
|
|
44
|
+
const mouseDown$ = fromEvent(handle, "mousedown");
|
|
45
|
+
const touchStart$ = fromEvent(handle, "touchstart");
|
|
46
|
+
const containerMouseDown$ = fromEvent(container, "mousedown");
|
|
47
|
+
const containerTouchStart$ = fromEvent(container, "touchstart");
|
|
48
|
+
const mouseMove$ = fromEvent(window, "mousemove");
|
|
49
|
+
const touchMove$ = fromEvent(window, "touchmove", { passive: false });
|
|
50
|
+
const mouseUp$ = fromEvent(window, "mouseup");
|
|
51
|
+
const touchEnd$ = fromEvent(window, "touchend");
|
|
52
|
+
const start$ = merge(mouseDown$, touchStart$);
|
|
53
|
+
const move$ = merge(mouseMove$, touchMove$);
|
|
54
|
+
const end$ = merge(mouseUp$, touchEnd$);
|
|
55
|
+
merge(start$, containerMouseDown$, containerTouchStart$).pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
56
|
+
if (event instanceof MouseEvent && event.button !== 0) return;
|
|
57
|
+
if (event.currentTarget === container && handle.contains(event.target)) return;
|
|
58
|
+
this.ngZone.run(() => {
|
|
59
|
+
this.isDragging.set(true);
|
|
60
|
+
this.updateContainerRect();
|
|
61
|
+
const clientX = event instanceof MouseEvent ? event.clientX : event.touches.length > 0 ? event.touches[0].clientX : 0;
|
|
62
|
+
this.updateSliderPosition(clientX);
|
|
63
|
+
});
|
|
64
|
+
const moveSubscription = move$.pipe(takeUntil(end$)).subscribe((moveEvent) => {
|
|
65
|
+
if (moveEvent.cancelable) moveEvent.preventDefault();
|
|
66
|
+
const clientX = moveEvent instanceof MouseEvent ? moveEvent.clientX : moveEvent.touches.length > 0 ? moveEvent.touches[0].clientX : 0;
|
|
67
|
+
this.ngZone.run(() => {
|
|
68
|
+
this.updateSliderPosition(clientX);
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
const endSubscription = end$.pipe(takeUntil(start$)).subscribe(() => {
|
|
72
|
+
moveSubscription.unsubscribe();
|
|
73
|
+
endSubscription.unsubscribe();
|
|
74
|
+
this.ngZone.run(() => {
|
|
75
|
+
this.isDragging.set(false);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
ngOnDestroy() {
|
|
82
|
+
if (this.resizeObserver) this.resizeObserver.disconnect();
|
|
83
|
+
}
|
|
84
|
+
updateContainerRect() {
|
|
85
|
+
if (this.isBrowser && this.sliderContainerRef()) this.containerRect = this.sliderContainerRef().nativeElement.getBoundingClientRect();
|
|
86
|
+
else this.containerRect = null;
|
|
87
|
+
}
|
|
88
|
+
updateSliderPosition(clientX) {
|
|
89
|
+
const rect = this.containerRect;
|
|
90
|
+
if (!rect) return;
|
|
91
|
+
let percentage = (clientX - rect.left) / rect.width * 100;
|
|
92
|
+
percentage = Math.max(0, Math.min(100, percentage));
|
|
93
|
+
this.sliderPosition.set(percentage);
|
|
94
|
+
}
|
|
95
|
+
onContextMenu(event) {
|
|
96
|
+
event.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
onDragStart(event) {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
event.stopPropagation();
|
|
101
|
+
}
|
|
102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
103
|
+
minVersion: "12.0.0",
|
|
104
|
+
version: "22.3.0",
|
|
105
|
+
ngImport: i0,
|
|
106
|
+
type: ComparisonSlider,
|
|
107
|
+
deps: [],
|
|
108
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
109
|
+
});
|
|
110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
111
|
+
minVersion: "17.2.0",
|
|
112
|
+
version: "22.3.0",
|
|
113
|
+
type: ComparisonSlider,
|
|
114
|
+
isStandalone: true,
|
|
115
|
+
selector: "ngs-comparison-slider",
|
|
116
|
+
inputs: { initialPosition: {
|
|
117
|
+
classPropertyName: "initialPosition",
|
|
118
|
+
publicName: "initialPosition",
|
|
119
|
+
isSignal: true,
|
|
120
|
+
isRequired: false,
|
|
121
|
+
transformFunction: null
|
|
122
|
+
} },
|
|
123
|
+
host: {
|
|
124
|
+
listeners: {
|
|
125
|
+
"contextmenu": "onContextMenu($event)",
|
|
126
|
+
"dragstart": "onDragStart($event)"
|
|
127
|
+
},
|
|
128
|
+
classAttribute: "ngs-comparison-slider not-prose"
|
|
129
|
+
},
|
|
130
|
+
viewQueries: [{
|
|
131
|
+
propertyName: "sliderContainerRef",
|
|
132
|
+
first: true,
|
|
133
|
+
predicate: ["sliderContainer"],
|
|
134
|
+
descendants: true,
|
|
135
|
+
isSignal: true
|
|
136
|
+
}, {
|
|
137
|
+
propertyName: "handleRef",
|
|
138
|
+
first: true,
|
|
139
|
+
predicate: ["handle"],
|
|
140
|
+
descendants: true,
|
|
141
|
+
isSignal: true
|
|
142
|
+
}],
|
|
143
|
+
exportAs: ["ngsComparisonSlider"],
|
|
144
|
+
ngImport: i0,
|
|
145
|
+
template: "<div\n #sliderContainer\n class=\"comparison-slider-container\">\n <div class=\"image-wrapper before-image-slot\">\n <ng-content select=\"[ngsComparisonSliderBeforeImage]\"/>\n </div>\n <div class=\"image-wrapper after-image-slot\" [style.clipPath]=\"afterImageClipStyle()\">\n <ng-content select=\"[ngsComparisonSliderAfterImage]\"/>\n </div>\n <div\n #handle\n class=\"slider-handle\"\n [style.left]=\"handleLeftStyle()\"\n role=\"slider\"\n aria-orientation=\"horizontal\"\n [attr.aria-valuenow]=\"sliderPosition()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-label]=\"'Image comparison slider control'\">\n <div class=\"handle-line\"></div>\n <div class=\"handle-grip\">\n <ngs-icon name=\"fluent:chevron-left-24-regular\"/>\n <ngs-icon name=\"fluent:chevron-right-24-regular\"/>\n </div>\n </div>\n</div>\n",
|
|
146
|
+
styles: [":host{display:block;position:relative;overflow:hidden;width:100%;-webkit-user-select:none;user-select:none}:host .comparison-slider-container{position:relative;width:100%;height:100%;overflow:hidden;cursor:default}:host .image-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}:host .image-wrapper>::slotted(*){display:block;width:100%;height:100%;object-fit:cover}:host .before-image-slot{z-index:1}:host .after-image-slot{z-index:2}:host .slider-handle{position:absolute;top:0;bottom:0;width:40px;transform:translate(-50%);cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:10}:host .slider-handle .handle-line{position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%);width:4px;background:#fff;pointer-events:none}:host .slider-handle .handle-line:before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:1px;background:#000}:host .slider-handle .handle-line:after{content:\"\";position:absolute;top:0;bottom:0;right:0;width:1px;background:#000}:host .slider-handle .handle-grip{height:36px;display:flex;align-items:center;justify-content:center;z-index:1;pointer-events:none;gap:calc(var(--spacing, .25rem) * 3)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
147
|
+
dependencies: [{
|
|
148
|
+
kind: "component",
|
|
149
|
+
type: Icon,
|
|
150
|
+
selector: "ngs-icon",
|
|
151
|
+
inputs: ["name"],
|
|
152
|
+
exportAs: ["ngsIcon"]
|
|
153
|
+
}],
|
|
154
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
158
|
+
minVersion: "12.0.0",
|
|
159
|
+
version: "22.3.0",
|
|
160
|
+
ngImport: i0,
|
|
161
|
+
type: ComparisonSlider,
|
|
162
|
+
decorators: [{
|
|
163
|
+
type: Component,
|
|
164
|
+
args: [{
|
|
165
|
+
selector: "ngs-comparison-slider",
|
|
166
|
+
exportAs: "ngsComparisonSlider",
|
|
167
|
+
imports: [Icon],
|
|
168
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
169
|
+
host: {
|
|
170
|
+
"class": "ngs-comparison-slider not-prose",
|
|
171
|
+
"(contextmenu)": "onContextMenu($event)",
|
|
172
|
+
"(dragstart)": "onDragStart($event)"
|
|
173
|
+
},
|
|
174
|
+
template: "<div\n #sliderContainer\n class=\"comparison-slider-container\">\n <div class=\"image-wrapper before-image-slot\">\n <ng-content select=\"[ngsComparisonSliderBeforeImage]\"/>\n </div>\n <div class=\"image-wrapper after-image-slot\" [style.clipPath]=\"afterImageClipStyle()\">\n <ng-content select=\"[ngsComparisonSliderAfterImage]\"/>\n </div>\n <div\n #handle\n class=\"slider-handle\"\n [style.left]=\"handleLeftStyle()\"\n role=\"slider\"\n aria-orientation=\"horizontal\"\n [attr.aria-valuenow]=\"sliderPosition()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-label]=\"'Image comparison slider control'\">\n <div class=\"handle-line\"></div>\n <div class=\"handle-grip\">\n <ngs-icon name=\"fluent:chevron-left-24-regular\"/>\n <ngs-icon name=\"fluent:chevron-right-24-regular\"/>\n </div>\n </div>\n</div>\n",
|
|
175
|
+
styles: [":host{display:block;position:relative;overflow:hidden;width:100%;-webkit-user-select:none;user-select:none}:host .comparison-slider-container{position:relative;width:100%;height:100%;overflow:hidden;cursor:default}:host .image-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}:host .image-wrapper>::slotted(*){display:block;width:100%;height:100%;object-fit:cover}:host .before-image-slot{z-index:1}:host .after-image-slot{z-index:2}:host .slider-handle{position:absolute;top:0;bottom:0;width:40px;transform:translate(-50%);cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:10}:host .slider-handle .handle-line{position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%);width:4px;background:#fff;pointer-events:none}:host .slider-handle .handle-line:before{content:\"\";position:absolute;top:0;bottom:0;left:0;width:1px;background:#000}:host .slider-handle .handle-line:after{content:\"\";position:absolute;top:0;bottom:0;right:0;width:1px;background:#000}:host .slider-handle .handle-grip{height:36px;display:flex;align-items:center;justify-content:center;z-index:1;pointer-events:none;gap:calc(var(--spacing, .25rem) * 3)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
176
|
+
}]
|
|
177
|
+
}],
|
|
178
|
+
ctorParameters: () => [],
|
|
179
|
+
propDecorators: {
|
|
180
|
+
sliderContainerRef: [{
|
|
181
|
+
type: i0.ViewChild,
|
|
182
|
+
args: ["sliderContainer", { isSignal: true }]
|
|
183
|
+
}],
|
|
184
|
+
handleRef: [{
|
|
185
|
+
type: i0.ViewChild,
|
|
186
|
+
args: ["handle", { isSignal: true }]
|
|
187
|
+
}],
|
|
188
|
+
initialPosition: [{
|
|
189
|
+
type: i0.Input,
|
|
190
|
+
args: [{
|
|
191
|
+
isSignal: true,
|
|
192
|
+
alias: "initialPosition",
|
|
193
|
+
required: false
|
|
194
|
+
}]
|
|
195
|
+
}]
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
var ComparisonSliderAfterImageDirective = class ComparisonSliderAfterImageDirective {
|
|
199
|
+
onDragStart(event) {
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
}
|
|
202
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
203
|
+
minVersion: "12.0.0",
|
|
204
|
+
version: "22.3.0",
|
|
205
|
+
ngImport: i0,
|
|
206
|
+
type: ComparisonSliderAfterImageDirective,
|
|
207
|
+
deps: [],
|
|
208
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
209
|
+
});
|
|
210
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
211
|
+
minVersion: "14.0.0",
|
|
212
|
+
version: "22.3.0",
|
|
213
|
+
type: ComparisonSliderAfterImageDirective,
|
|
214
|
+
isStandalone: true,
|
|
215
|
+
selector: "[ngsComparisonSliderAfterImage]",
|
|
216
|
+
host: { listeners: { "dragstart": "onDragStart($event)" } },
|
|
217
|
+
ngImport: i0
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
221
|
+
minVersion: "12.0.0",
|
|
222
|
+
version: "22.3.0",
|
|
223
|
+
ngImport: i0,
|
|
224
|
+
type: ComparisonSliderAfterImageDirective,
|
|
225
|
+
decorators: [{
|
|
226
|
+
type: Directive,
|
|
227
|
+
args: [{
|
|
228
|
+
selector: "[ngsComparisonSliderAfterImage]",
|
|
229
|
+
host: { "(dragstart)": "onDragStart($event)" }
|
|
230
|
+
}]
|
|
231
|
+
}]
|
|
232
|
+
});
|
|
233
|
+
var ComparisonSliderBeforeImageDirective = class ComparisonSliderBeforeImageDirective {
|
|
234
|
+
onDragStart(event) {
|
|
235
|
+
event.preventDefault();
|
|
236
|
+
}
|
|
237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
238
|
+
minVersion: "12.0.0",
|
|
239
|
+
version: "22.3.0",
|
|
240
|
+
ngImport: i0,
|
|
241
|
+
type: ComparisonSliderBeforeImageDirective,
|
|
242
|
+
deps: [],
|
|
243
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
244
|
+
});
|
|
245
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
246
|
+
minVersion: "14.0.0",
|
|
247
|
+
version: "22.3.0",
|
|
248
|
+
type: ComparisonSliderBeforeImageDirective,
|
|
249
|
+
isStandalone: true,
|
|
250
|
+
selector: "[ngsComparisonSliderBeforeImage]",
|
|
251
|
+
host: { listeners: { "dragstart": "onDragStart($event)" } },
|
|
252
|
+
ngImport: i0
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
256
|
+
minVersion: "12.0.0",
|
|
257
|
+
version: "22.3.0",
|
|
258
|
+
ngImport: i0,
|
|
259
|
+
type: ComparisonSliderBeforeImageDirective,
|
|
260
|
+
decorators: [{
|
|
261
|
+
type: Directive,
|
|
262
|
+
args: [{
|
|
263
|
+
selector: "[ngsComparisonSliderBeforeImage]",
|
|
264
|
+
host: { "(dragstart)": "onDragStart($event)" }
|
|
265
|
+
}]
|
|
266
|
+
}]
|
|
267
|
+
});
|
|
183
268
|
export { ComparisonSlider, ComparisonSliderAfterImageDirective, ComparisonSliderBeforeImageDirective };
|
|
184
|
-
|
|
269
|
+
|
|
270
|
+
//# sourceMappingURL=ngstarter-ui-components-comparison-slider.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngstarter-ui-components-comparison-slider.mjs","sources":["../../../projects/components/comparison-slider/src/comparison-slider/comparison-slider.ts","../../../projects/components/comparison-slider/src/comparison-slider/comparison-slider.html","../../../projects/components/comparison-slider/src/comparison-slider-after-image.directive.ts","../../../projects/components/comparison-slider/src/comparison-slider-before-image.directive.ts","../../../projects/components/comparison-slider/ngstarter-ui-components-comparison-slider.ts"],"sourcesContent":["import {\n Component,\n input,\n signal,\n ElementRef,\n viewChild,\n AfterViewInit,\n OnDestroy,\n NgZone,\n DestroyRef,\n effect,\n computed,\n PLATFORM_ID,\n inject,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { fromEvent, merge, takeUntil } from 'rxjs';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-comparison-slider',\n exportAs: 'ngsComparisonSlider',\n imports: [\n Icon,\n ],\n templateUrl: './comparison-slider.html',\n styleUrl: './comparison-slider.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-comparison-slider not-prose',\n '(contextmenu)': 'onContextMenu($event)',\n '(dragstart)': 'onDragStart($event)'\n }\n})\nexport class ComparisonSlider implements AfterViewInit, OnDestroy {\n private resizeObserver: ResizeObserver | null = null;\n private platformId = inject(PLATFORM_ID);\n private ngZone = inject(NgZone);\n private destroyRef = inject(DestroyRef);\n\n private sliderContainerRef = viewChild.required<ElementRef<HTMLDivElement>>('sliderContainer');\n private handleRef = viewChild.required<ElementRef<HTMLDivElement>>('handle');\n\n initialPosition = input<number>(50);\n\n sliderPosition = signal<number>(0);\n isDragging = signal<boolean>(false);\n private containerRect: DOMRect | null = null;\n\n handleLeftStyle = computed(() => `${this.sliderPosition()}%`);\n afterImageClipStyle = computed(() => `inset(0 ${100 - this.sliderPosition()}% 0 0)`);\n\n private isBrowser: boolean;\n\n constructor() {\n this.isBrowser = isPlatformBrowser(this.platformId);\n\n effect(() => {\n const initial = this.initialPosition();\n this.sliderPosition.set(Math.max(0, Math.min(100, initial)));\n });\n }\n\n ngAfterViewInit(): void {\n if (this.isBrowser) {\n this.updateContainerRect();\n\n if (typeof ResizeObserver !== 'undefined' && this.sliderContainerRef() && this.sliderContainerRef().nativeElement) {\n this.resizeObserver = new ResizeObserver(() => {\n this.updateContainerRect();\n });\n this.resizeObserver.observe(this.sliderContainerRef().nativeElement);\n }\n\n this.initDragStreams();\n }\n }\n\n private initDragStreams(): void {\n const container = this.sliderContainerRef().nativeElement;\n const handle = this.handleRef().nativeElement;\n\n this.ngZone.runOutsideAngular(() => {\n const mouseDown$ = fromEvent<MouseEvent>(handle, 'mousedown');\n const touchStart$ = fromEvent<TouchEvent>(handle, 'touchstart');\n const containerMouseDown$ = fromEvent<MouseEvent>(container, 'mousedown');\n const containerTouchStart$ = fromEvent<TouchEvent>(container, 'touchstart');\n\n const mouseMove$ = fromEvent<MouseEvent>(window, 'mousemove');\n const touchMove$ = fromEvent<TouchEvent>(window, 'touchmove', { passive: false });\n const mouseUp$ = fromEvent<MouseEvent>(window, 'mouseup');\n const touchEnd$ = fromEvent<TouchEvent>(window, 'touchend');\n\n const start$ = merge(mouseDown$, touchStart$);\n const move$ = merge(mouseMove$, touchMove$);\n const end$ = merge(mouseUp$, touchEnd$);\n\n merge(start$, containerMouseDown$, containerTouchStart$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event: MouseEvent | TouchEvent) => {\n if (event instanceof MouseEvent && event.button !== 0) {\n return;\n }\n\n if (event.currentTarget === container && handle.contains(event.target as Node)) {\n return;\n }\n\n this.ngZone.run(() => {\n this.isDragging.set(true);\n this.updateContainerRect();\n\n const clientX = event instanceof MouseEvent ? event.clientX : (event.touches.length > 0 ? event.touches[0].clientX : 0);\n this.updateSliderPosition(clientX);\n });\n\n const moveSubscription = move$\n .pipe(\n takeUntil(end$)\n )\n .subscribe((moveEvent: MouseEvent | TouchEvent) => {\n if (moveEvent.cancelable) {\n moveEvent.preventDefault();\n }\n\n const clientX = moveEvent instanceof MouseEvent ? moveEvent.clientX : (moveEvent.touches.length > 0 ? moveEvent.touches[0].clientX : 0);\n this.ngZone.run(() => {\n this.updateSliderPosition(clientX);\n });\n });\n\n const endSubscription = end$\n .pipe(\n takeUntil(start$)\n )\n .subscribe(() => {\n moveSubscription.unsubscribe();\n endSubscription.unsubscribe();\n this.ngZone.run(() => {\n this.isDragging.set(false);\n });\n });\n });\n });\n }\n\n ngOnDestroy(): void {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n }\n\n private updateContainerRect(): void {\n if (this.isBrowser && this.sliderContainerRef()) {\n this.containerRect = this.sliderContainerRef().nativeElement.getBoundingClientRect();\n } else {\n this.containerRect = null;\n }\n }\n\n private updateSliderPosition(clientX: number): void {\n const rect = this.containerRect;\n\n if (!rect) {\n return;\n }\n\n const x = clientX - rect.left;\n let percentage = (x / rect.width) * 100;\n percentage = Math.max(0, Math.min(100, percentage));\n this.sliderPosition.set(percentage);\n }\n\n protected onContextMenu(event: MouseEvent): void {\n event.preventDefault();\n }\n\n protected onDragStart(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n }\n}\n","<div\n #sliderContainer\n class=\"comparison-slider-container\">\n <div class=\"image-wrapper before-image-slot\">\n <ng-content select=\"[ngsComparisonSliderBeforeImage]\"/>\n </div>\n <div class=\"image-wrapper after-image-slot\" [style.clipPath]=\"afterImageClipStyle()\">\n <ng-content select=\"[ngsComparisonSliderAfterImage]\"/>\n </div>\n <div\n #handle\n class=\"slider-handle\"\n [style.left]=\"handleLeftStyle()\"\n role=\"slider\"\n aria-orientation=\"horizontal\"\n [attr.aria-valuenow]=\"sliderPosition()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-label]=\"'Image comparison slider control'\">\n <div class=\"handle-line\"></div>\n <div class=\"handle-grip\">\n <ngs-icon name=\"fluent:chevron-left-24-regular\"/>\n <ngs-icon name=\"fluent:chevron-right-24-regular\"/>\n </div>\n </div>\n</div>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsComparisonSliderAfterImage]',\n host: {\n '(dragstart)': 'onDragStart($event)'\n }\n})\nexport class ComparisonSliderAfterImageDirective {\n protected onDragStart(event: DragEvent) {\n event.preventDefault();\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsComparisonSliderBeforeImage]',\n host: {\n '(dragstart)': 'onDragStart($event)'\n }\n})\nexport class ComparisonSliderBeforeImageDirective {\n protected onDragStart(event: DragEvent) {\n event.preventDefault();\n }\n}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A,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnC,mCAAmC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iCAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnC,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAN/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iCAAiC;AAC3C,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE;AAChB;AACF,iBAAA;;;MCCY,oCAAoC,CAAA;AACrC,IAAA,WAAW,CAAC,KAAgB,EAAA;QACpC,KAAK,CAAC,cAAc,EAAE;IACxB;uGAHW,oCAAoC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAApC,oCAAoC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApC,oCAAoC,EAAA,UAAA,EAAA,CAAA;kBANhD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kCAAkC;AAC5C,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE;AAChB;AACF,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngstarter-ui-components-comparison-slider.mjs","names":[],"sources":["../../../projects/components/comparison-slider/src/comparison-slider/comparison-slider.ts","../../../projects/components/comparison-slider/src/comparison-slider/comparison-slider.html","../../../projects/components/comparison-slider/src/comparison-slider-after-image.directive.ts","../../../projects/components/comparison-slider/src/comparison-slider-before-image.directive.ts"],"sourcesContent":["import {\n Component,\n input,\n signal,\n ElementRef,\n viewChild,\n AfterViewInit,\n OnDestroy,\n NgZone,\n DestroyRef,\n effect,\n computed,\n PLATFORM_ID,\n inject,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Icon } from '@ngstarter-ui/components/icon';\nimport { fromEvent, merge, takeUntil } from 'rxjs';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-comparison-slider',\n exportAs: 'ngsComparisonSlider',\n imports: [\n Icon,\n ],\n templateUrl: './comparison-slider.html',\n styleUrl: './comparison-slider.scss',\n changeDetection: ChangeDetectionStrategy.Eager,\n host: {\n 'class': 'ngs-comparison-slider not-prose',\n '(contextmenu)': 'onContextMenu($event)',\n '(dragstart)': 'onDragStart($event)'\n }\n})\nexport class ComparisonSlider implements AfterViewInit, OnDestroy {\n private resizeObserver: ResizeObserver | null = null;\n private platformId = inject(PLATFORM_ID);\n private ngZone = inject(NgZone);\n private destroyRef = inject(DestroyRef);\n\n private sliderContainerRef = viewChild.required<ElementRef<HTMLDivElement>>('sliderContainer');\n private handleRef = viewChild.required<ElementRef<HTMLDivElement>>('handle');\n\n initialPosition = input<number>(50);\n\n sliderPosition = signal<number>(0);\n isDragging = signal<boolean>(false);\n private containerRect: DOMRect | null = null;\n\n handleLeftStyle = computed(() => `${this.sliderPosition()}%`);\n afterImageClipStyle = computed(() => `inset(0 ${100 - this.sliderPosition()}% 0 0)`);\n\n private isBrowser: boolean;\n\n constructor() {\n this.isBrowser = isPlatformBrowser(this.platformId);\n\n effect(() => {\n const initial = this.initialPosition();\n this.sliderPosition.set(Math.max(0, Math.min(100, initial)));\n });\n }\n\n ngAfterViewInit(): void {\n if (this.isBrowser) {\n this.updateContainerRect();\n\n if (typeof ResizeObserver !== 'undefined' && this.sliderContainerRef() && this.sliderContainerRef().nativeElement) {\n this.resizeObserver = new ResizeObserver(() => {\n this.updateContainerRect();\n });\n this.resizeObserver.observe(this.sliderContainerRef().nativeElement);\n }\n\n this.initDragStreams();\n }\n }\n\n private initDragStreams(): void {\n const container = this.sliderContainerRef().nativeElement;\n const handle = this.handleRef().nativeElement;\n\n this.ngZone.runOutsideAngular(() => {\n const mouseDown$ = fromEvent<MouseEvent>(handle, 'mousedown');\n const touchStart$ = fromEvent<TouchEvent>(handle, 'touchstart');\n const containerMouseDown$ = fromEvent<MouseEvent>(container, 'mousedown');\n const containerTouchStart$ = fromEvent<TouchEvent>(container, 'touchstart');\n\n const mouseMove$ = fromEvent<MouseEvent>(window, 'mousemove');\n const touchMove$ = fromEvent<TouchEvent>(window, 'touchmove', { passive: false });\n const mouseUp$ = fromEvent<MouseEvent>(window, 'mouseup');\n const touchEnd$ = fromEvent<TouchEvent>(window, 'touchend');\n\n const start$ = merge(mouseDown$, touchStart$);\n const move$ = merge(mouseMove$, touchMove$);\n const end$ = merge(mouseUp$, touchEnd$);\n\n merge(start$, containerMouseDown$, containerTouchStart$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((event: MouseEvent | TouchEvent) => {\n if (event instanceof MouseEvent && event.button !== 0) {\n return;\n }\n\n if (event.currentTarget === container && handle.contains(event.target as Node)) {\n return;\n }\n\n this.ngZone.run(() => {\n this.isDragging.set(true);\n this.updateContainerRect();\n\n const clientX = event instanceof MouseEvent ? event.clientX : (event.touches.length > 0 ? event.touches[0].clientX : 0);\n this.updateSliderPosition(clientX);\n });\n\n const moveSubscription = move$\n .pipe(\n takeUntil(end$)\n )\n .subscribe((moveEvent: MouseEvent | TouchEvent) => {\n if (moveEvent.cancelable) {\n moveEvent.preventDefault();\n }\n\n const clientX = moveEvent instanceof MouseEvent ? moveEvent.clientX : (moveEvent.touches.length > 0 ? moveEvent.touches[0].clientX : 0);\n this.ngZone.run(() => {\n this.updateSliderPosition(clientX);\n });\n });\n\n const endSubscription = end$\n .pipe(\n takeUntil(start$)\n )\n .subscribe(() => {\n moveSubscription.unsubscribe();\n endSubscription.unsubscribe();\n this.ngZone.run(() => {\n this.isDragging.set(false);\n });\n });\n });\n });\n }\n\n ngOnDestroy(): void {\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n }\n\n private updateContainerRect(): void {\n if (this.isBrowser && this.sliderContainerRef()) {\n this.containerRect = this.sliderContainerRef().nativeElement.getBoundingClientRect();\n } else {\n this.containerRect = null;\n }\n }\n\n private updateSliderPosition(clientX: number): void {\n const rect = this.containerRect;\n\n if (!rect) {\n return;\n }\n\n const x = clientX - rect.left;\n let percentage = (x / rect.width) * 100;\n percentage = Math.max(0, Math.min(100, percentage));\n this.sliderPosition.set(percentage);\n }\n\n protected onContextMenu(event: MouseEvent): void {\n event.preventDefault();\n }\n\n protected onDragStart(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n }\n}\n","<div\n #sliderContainer\n class=\"comparison-slider-container\">\n <div class=\"image-wrapper before-image-slot\">\n <ng-content select=\"[ngsComparisonSliderBeforeImage]\"/>\n </div>\n <div class=\"image-wrapper after-image-slot\" [style.clipPath]=\"afterImageClipStyle()\">\n <ng-content select=\"[ngsComparisonSliderAfterImage]\"/>\n </div>\n <div\n #handle\n class=\"slider-handle\"\n [style.left]=\"handleLeftStyle()\"\n role=\"slider\"\n aria-orientation=\"horizontal\"\n [attr.aria-valuenow]=\"sliderPosition()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-label]=\"'Image comparison slider control'\">\n <div class=\"handle-line\"></div>\n <div class=\"handle-grip\">\n <ngs-icon name=\"fluent:chevron-left-24-regular\"/>\n <ngs-icon name=\"fluent:chevron-right-24-regular\"/>\n </div>\n </div>\n</div>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsComparisonSliderAfterImage]',\n host: {\n '(dragstart)': 'onDragStart($event)'\n }\n})\nexport class ComparisonSliderAfterImageDirective {\n protected onDragStart(event: DragEvent) {\n event.preventDefault();\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[ngsComparisonSliderBeforeImage]',\n host: {\n '(dragstart)': 'onDragStart($event)'\n }\n})\nexport class ComparisonSliderBeforeImageDirective {\n protected onDragStart(event: DragEvent) {\n event.preventDefault();\n }\n}\n"],"mappings":";;;;;;AAoCA,IAAa,mBAAb,MAAa,iBAAgB;CACnB,iBAAwC;CACxC,aAAa,OAAO,WAAW;CAC/B,SAAS,OAAO,MAAM;CACtB,aAAa,OAAO,UAAU;CAE9B,qBAAqB,UAAU,SAAqC,mBAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,qBAAA,CAAA,+BAAA,CAAA,CAAA;CACtF,YAAY,UAAU,SAAqC,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAE5E,kBAAkB,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,kBAAA,CAAA,+BAAA,CAAA,CAAA;CAEnC,iBAAiB,OAAe,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,aAAa,OAAgB,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAC3B,gBAAgC;CAExC,kBAAkB,eAAe,GAAG,KAAK,eAAc,EAAE,IAAI,GAAA,YAAA,CAAA,EAAA,WAAA,kBAAA,CAAA,+BAAA,CAAA,CAAA;CAC7D,sBAAsB,eAAe,WAAW,MAAM,KAAK,eAAc,EAAE,SAAS,GAAA,YAAA,CAAA,EAAA,WAAA,sBAAA,CAAA,+BAAA,CAAA,CAAA;CAE5E;CAER,cAAA;EACE,KAAK,YAAY,kBAAkB,KAAK,UAAU;EAElD,aAAY;GACV,MAAM,UAAU,KAAK,gBAAe;GACpC,KAAK,eAAe,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,OAAO,CAAC,CAAC;EAC7D,CAAC;CACH;CAEA,kBAAe;EACb,IAAI,KAAK,WAAW;GAClB,KAAK,oBAAmB;GAExB,IAAI,OAAO,mBAAmB,eA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