@mintplayer/ng-bootstrap 21.32.0 → 21.33.0
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/package.json +1 -377
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +0 -455
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +0 -94
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +0 -45
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +0 -24
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +0 -35
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +0 -21
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +0 -36
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +0 -210
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +0 -33
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +0 -270
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +0 -25
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +0 -44
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +0 -654
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +0 -88
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +0 -46
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +0 -181
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +0 -30
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +0 -4101
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -195
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +0 -326
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +0 -62
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +0 -38
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +0 -135
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +0 -25
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +0 -34
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +0 -41
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +0 -59
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +0 -122
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +0 -23
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +0 -23
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +0 -18
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +0 -183
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs +0 -46
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +0 -28
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +0 -33
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +0 -118
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +0 -21
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +0 -240
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +0 -693
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +0 -29
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +0 -629
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +0 -205
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +0 -366
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +0 -36
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +0 -188
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +0 -26
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +0 -64
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +0 -29
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +0 -246
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +0 -250
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +0 -68
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +0 -75
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +0 -79
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +0 -59
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +0 -387
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +0 -5016
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +0 -237
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +0 -120
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +0 -194
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +0 -213
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +0 -205
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +0 -52
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +0 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +0 -30
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +0 -26
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +0 -25
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +0 -46
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +0 -124
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +0 -40
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +0 -1446
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +0 -104
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +0 -163
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +0 -236
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +0 -174
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +0 -100
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +0 -28
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +0 -111
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +0 -24
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +0 -94
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +0 -48
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-virtual-datatable.mjs +0 -282
- package/fesm2022/mintplayer-ng-bootstrap-virtual-datatable.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-web-components-a11y.mjs +0 -74
- package/fesm2022/mintplayer-ng-bootstrap-web-components-a11y.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler-core.mjs +0 -1356
- package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler-core.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler.mjs +0 -5224
- package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-web-components-splitter.mjs +0 -923
- package/fesm2022/mintplayer-ng-bootstrap-web-components-splitter.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-web-components-tab-control.mjs +0 -553
- package/fesm2022/mintplayer-ng-bootstrap-web-components-tab-control.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +0 -34
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +0 -1
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +0 -196
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +0 -39
- package/types/mintplayer-ng-bootstrap-alert.d.ts +0 -21
- package/types/mintplayer-ng-bootstrap-badge.d.ts +0 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +0 -14
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +0 -9
- package/types/mintplayer-ng-bootstrap-button-type.d.ts +0 -12
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +0 -57
- package/types/mintplayer-ng-bootstrap-card.d.ts +0 -15
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +0 -121
- package/types/mintplayer-ng-bootstrap-close.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +0 -20
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +0 -236
- package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +0 -21
- package/types/mintplayer-ng-bootstrap-copy.d.ts +0 -12
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +0 -63
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +0 -13
- package/types/mintplayer-ng-bootstrap-dock.d.ts +0 -419
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -66
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +0 -102
- package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +0 -20
- package/types/mintplayer-ng-bootstrap-enum.d.ts +0 -17
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +0 -51
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +0 -9
- package/types/mintplayer-ng-bootstrap-font-color.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-for.d.ts +0 -13
- package/types/mintplayer-ng-bootstrap-form.d.ts +0 -24
- package/types/mintplayer-ng-bootstrap-grid.d.ts +0 -50
- package/types/mintplayer-ng-bootstrap-has-id.d.ts +0 -5
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
- package/types/mintplayer-ng-bootstrap-has-property.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-in-list.d.ts +0 -11
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-instance-of.d.ts +0 -74
- package/types/mintplayer-ng-bootstrap-let.d.ts +0 -44
- package/types/mintplayer-ng-bootstrap-linify.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +0 -14
- package/types/mintplayer-ng-bootstrap-markdown.d.ts +0 -33
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +0 -9
- package/types/mintplayer-ng-bootstrap-modal.d.ts +0 -82
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +0 -170
- package/types/mintplayer-ng-bootstrap-multiselect.d.ts +0 -58
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +0 -13
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +0 -189
- package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +0 -117
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +0 -106
- package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +0 -12
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +0 -40
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +0 -11
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +0 -23
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +0 -13
- package/types/mintplayer-ng-bootstrap-popover.d.ts +0 -67
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +0 -64
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +0 -27
- package/types/mintplayer-ng-bootstrap-range.d.ts +0 -28
- package/types/mintplayer-ng-bootstrap-rating.d.ts +0 -20
- package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +0 -36
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +0 -89
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +0 -958
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +0 -171
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +0 -36
- package/types/mintplayer-ng-bootstrap-searchbox.d.ts +0 -65
- package/types/mintplayer-ng-bootstrap-select.d.ts +0 -65
- package/types/mintplayer-ng-bootstrap-select2.d.ts +0 -61
- package/types/mintplayer-ng-bootstrap-shell.d.ts +0 -26
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +0 -36
- package/types/mintplayer-ng-bootstrap-slugify.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +0 -14
- package/types/mintplayer-ng-bootstrap-split-string.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +0 -21
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +0 -50
- package/types/mintplayer-ng-bootstrap-table.d.ts +0 -24
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +0 -304
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +0 -26
- package/types/mintplayer-ng-bootstrap-toast.d.ts +0 -67
- package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +0 -57
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +0 -29
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +0 -44
- package/types/mintplayer-ng-bootstrap-trust-html.d.ts +0 -12
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +0 -34
- package/types/mintplayer-ng-bootstrap-uc-first.d.ts +0 -10
- package/types/mintplayer-ng-bootstrap-user-agent.d.ts +0 -27
- package/types/mintplayer-ng-bootstrap-viewport.d.ts +0 -16
- package/types/mintplayer-ng-bootstrap-virtual-datatable.d.ts +0 -68
- package/types/mintplayer-ng-bootstrap-web-components-a11y.d.ts +0 -34
- package/types/mintplayer-ng-bootstrap-web-components-scheduler-core.d.ts +0 -914
- package/types/mintplayer-ng-bootstrap-web-components-scheduler.d.ts +0 -600
- package/types/mintplayer-ng-bootstrap-web-components-splitter.d.ts +0 -223
- package/types/mintplayer-ng-bootstrap-web-components-tab-control.d.ts +0 -95
- package/types/mintplayer-ng-bootstrap-word-count.d.ts +0 -10
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { isPlatformServer, NgTemplateOutlet } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, TemplateRef, ElementRef, Directive, PLATFORM_ID, DestroyRef, signal, contentChildren, forwardRef, input, model, output, computed, viewChild, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
import { Color } from '@mintplayer/ng-bootstrap';
|
|
5
|
-
import { BsSwipeContainerDirective, BsSwipeDirective, BsSwipeViewportDirective } from '@mintplayer/ng-swiper/swiper';
|
|
6
|
-
import { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';
|
|
7
|
-
import * as i1 from '@mintplayer/ng-bootstrap/reduced-motion';
|
|
8
|
-
import { BsReducedMotionDirective } from '@mintplayer/ng-bootstrap/reduced-motion';
|
|
9
|
-
|
|
10
|
-
class BsCarouselImageDirective {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.templateRef = inject((TemplateRef));
|
|
13
|
-
this.carousel = inject(BsCarouselComponent);
|
|
14
|
-
this.element = inject((ElementRef));
|
|
15
|
-
this.isFirst = false;
|
|
16
|
-
this.itemTemplate = this.templateRef;
|
|
17
|
-
// Post-increment semantics: this.id gets the OLD value, then the counter increments.
|
|
18
|
-
this.id = this.carousel.imageCounter();
|
|
19
|
-
this.carousel.imageCounter.update(c => c + 1);
|
|
20
|
-
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselImageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
22
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsCarouselImageDirective, isStandalone: true, selector: "*[bsCarouselImage]", ngImport: i0 }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselImageDirective, decorators: [{
|
|
25
|
-
type: Directive,
|
|
26
|
-
args: [{
|
|
27
|
-
selector: '*[bsCarouselImage]',
|
|
28
|
-
}]
|
|
29
|
-
}], ctorParameters: () => [] });
|
|
30
|
-
|
|
31
|
-
class BsCarouselComponent {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.platformId = inject(PLATFORM_ID);
|
|
34
|
-
this.destroyRef = inject(DestroyRef);
|
|
35
|
-
this.reducedMotion = inject(BsReducedMotionDirective);
|
|
36
|
-
this.colors = Color;
|
|
37
|
-
this.isServerSide = isPlatformServer(this.platformId);
|
|
38
|
-
this.currentImageIndex = signal(0, ...(ngDevMode ? [{ debugName: "currentImageIndex" }] : /* istanbul ignore next */ []));
|
|
39
|
-
this.images = contentChildren(forwardRef(() => BsCarouselImageDirective), ...(ngDevMode ? [{ debugName: "images" }] : /* istanbul ignore next */ []));
|
|
40
|
-
this.isDestroyed = false;
|
|
41
|
-
// Inputs
|
|
42
|
-
this.indicators = input(false, ...(ngDevMode ? [{ debugName: "indicators" }] : /* istanbul ignore next */ []));
|
|
43
|
-
this.keyboardEvents = input(true, ...(ngDevMode ? [{ debugName: "keyboardEvents" }] : /* istanbul ignore next */ []));
|
|
44
|
-
this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
45
|
-
this.animation = input('slide', ...(ngDevMode ? [{ debugName: "animation" }] : /* istanbul ignore next */ []));
|
|
46
|
-
this.interval = input(null, ...(ngDevMode ? [{ debugName: "interval" }] : /* istanbul ignore next */ []));
|
|
47
|
-
this.wrap = input(true, ...(ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []));
|
|
48
|
-
this.ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
49
|
-
// Two-way: pause / resume the auto-advance timer. Toggled by the
|
|
50
|
-
// consumer's `*bsCarouselPlayPause` template via the `toggle` callback in
|
|
51
|
-
// its context, or by the public `play()` / `pause()` methods. Default
|
|
52
|
-
// false (auto-advance allowed); has no effect when `interval` is null/0.
|
|
53
|
-
this.paused = model(false, ...(ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []));
|
|
54
|
-
/**
|
|
55
|
-
* Template projected via `*bsCarouselPlayPause`. When set, the carousel
|
|
56
|
-
* renders it in a control row above the slides. Per APG, auto-advancing
|
|
57
|
-
* carousels must expose a play/pause control — this is how consumers
|
|
58
|
-
* provide one without us imposing a button style.
|
|
59
|
-
*/
|
|
60
|
-
this.playPauseTemplate = signal(null, ...(ngDevMode ? [{ debugName: "playPauseTemplate" }] : /* istanbul ignore next */ []));
|
|
61
|
-
// Outputs
|
|
62
|
-
this.slideChange = output();
|
|
63
|
-
this.animationStart = output();
|
|
64
|
-
this.animationEnd = output();
|
|
65
|
-
// Computed signals
|
|
66
|
-
this.imageCount = computed(() => this.images().length, ...(ngDevMode ? [{ debugName: "imageCount" }] : /* istanbul ignore next */ []));
|
|
67
|
-
this.innerElement = viewChild('innerElement', ...(ngDevMode ? [{ debugName: "innerElement" }] : /* istanbul ignore next */ []));
|
|
68
|
-
this.swipeContainer = viewChild('container', ...(ngDevMode ? [{ debugName: "swipeContainer" }] : /* istanbul ignore next */ []));
|
|
69
|
-
// Returns 200 when swipeContainer isn't ready or height is null/0, ensuring images render and ResizeObserver triggers
|
|
70
|
-
this.slideHeight = computed(() => {
|
|
71
|
-
const container = this.swipeContainer();
|
|
72
|
-
const height = container?.currentSlideHeight();
|
|
73
|
-
return (height && height > 0) ? height : 200;
|
|
74
|
-
}, ...(ngDevMode ? [{ debugName: "slideHeight" }] : /* istanbul ignore next */ []));
|
|
75
|
-
this.firstImageTemplate = computed(() => {
|
|
76
|
-
const images = this.images();
|
|
77
|
-
if (images.length === 0)
|
|
78
|
-
return null;
|
|
79
|
-
const img = images[0];
|
|
80
|
-
if (!img)
|
|
81
|
-
return null;
|
|
82
|
-
return img.itemTemplate;
|
|
83
|
-
}, ...(ngDevMode ? [{ debugName: "firstImageTemplate" }] : /* istanbul ignore next */ []));
|
|
84
|
-
this.lastImageTemplate = computed(() => {
|
|
85
|
-
const images = this.images();
|
|
86
|
-
if (images.length === 0)
|
|
87
|
-
return null;
|
|
88
|
-
const img = images[images.length - 1];
|
|
89
|
-
if (!img)
|
|
90
|
-
return null;
|
|
91
|
-
return img.itemTemplate;
|
|
92
|
-
}, ...(ngDevMode ? [{ debugName: "lastImageTemplate" }] : /* istanbul ignore next */ []));
|
|
93
|
-
this.animationsDisabled = signal(false, ...(ngDevMode ? [{ debugName: "animationsDisabled" }] : /* istanbul ignore next */ []));
|
|
94
|
-
/**
|
|
95
|
-
* `aria-live` value for the slide viewport. Stays `off` while
|
|
96
|
-
* auto-advance is actually rotating — otherwise the SR would re-read the
|
|
97
|
-
* active slide every interval — and switches to `polite` whenever the
|
|
98
|
-
* rotation is paused (by `paused`, missing/zero `interval`, or
|
|
99
|
-
* `prefers-reduced-motion`), so manual prev/next/indicator clicks get
|
|
100
|
-
* announced.
|
|
101
|
-
*/
|
|
102
|
-
this.slideAriaLive = computed(() => {
|
|
103
|
-
const intervalTime = this.interval();
|
|
104
|
-
if (!intervalTime || intervalTime <= 0)
|
|
105
|
-
return 'polite';
|
|
106
|
-
if (this.paused())
|
|
107
|
-
return 'polite';
|
|
108
|
-
if (this.reducedMotion.matches())
|
|
109
|
-
return 'polite';
|
|
110
|
-
return 'off';
|
|
111
|
-
}, ...(ngDevMode ? [{ debugName: "slideAriaLive" }] : /* istanbul ignore next */ []));
|
|
112
|
-
/** Toggle the paused state. Used as the `toggle` callback in `BsCarouselPlayPauseContext`. */
|
|
113
|
-
this.togglePaused = () => {
|
|
114
|
-
this.paused.update((p) => !p);
|
|
115
|
-
};
|
|
116
|
-
this.imageCounter = signal(1, ...(ngDevMode ? [{ debugName: "imageCounter" }] : /* istanbul ignore next */ []));
|
|
117
|
-
// Mark first image whenever images change
|
|
118
|
-
effect(() => {
|
|
119
|
-
const images = this.images();
|
|
120
|
-
images.forEach((item, index) => item.isFirst = (index === 0));
|
|
121
|
-
});
|
|
122
|
-
// Setup auto-advance interval effect — gated on the two new axes added
|
|
123
|
-
// by the APG carousel bundle (PRD aria-accessibility-audit §13.2):
|
|
124
|
-
// • `paused` model: lets the consumer (or the projected play/pause
|
|
125
|
-
// button) suspend rotation.
|
|
126
|
-
// • prefers-reduced-motion: suppresses auto-advance entirely when
|
|
127
|
-
// the user opts out of motion at the OS level.
|
|
128
|
-
effect(() => {
|
|
129
|
-
const intervalTime = this.interval();
|
|
130
|
-
const isPaused = this.paused();
|
|
131
|
-
const reduceMotion = this.reducedMotion.matches();
|
|
132
|
-
this.clearAutoAdvance();
|
|
133
|
-
if (intervalTime && intervalTime > 0 && !isPaused && !reduceMotion) {
|
|
134
|
-
this.intervalId = setInterval(() => {
|
|
135
|
-
this.next();
|
|
136
|
-
}, intervalTime);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
// Emit slideChange when currentImageIndex changes
|
|
140
|
-
effect(() => {
|
|
141
|
-
const index = this.currentImageIndex();
|
|
142
|
-
if (!this.isDestroyed) {
|
|
143
|
-
this.slideChange.emit(index);
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
// Cleanup on destroy
|
|
147
|
-
this.destroyRef.onDestroy(() => {
|
|
148
|
-
this.isDestroyed = true;
|
|
149
|
-
this.clearAutoAdvance();
|
|
150
|
-
this.resizeObserver?.disconnect();
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
/** Resume auto-advance. No-op if `interval` is unset or reduce-motion is on. */
|
|
154
|
-
play() {
|
|
155
|
-
this.paused.set(false);
|
|
156
|
-
}
|
|
157
|
-
/** Pause auto-advance. Manual prev/next/goto still work. */
|
|
158
|
-
pause() {
|
|
159
|
-
this.paused.set(true);
|
|
160
|
-
}
|
|
161
|
-
clearAutoAdvance() {
|
|
162
|
-
if (this.intervalId) {
|
|
163
|
-
clearInterval(this.intervalId);
|
|
164
|
-
this.intervalId = undefined;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
previous() {
|
|
168
|
-
if (!this.wrap() && this.currentImageIndex() === 0)
|
|
169
|
-
return;
|
|
170
|
-
this.swipeContainer()?.previous();
|
|
171
|
-
}
|
|
172
|
-
next() {
|
|
173
|
-
if (!this.wrap() && this.currentImageIndex() === this.imageCount() - 1)
|
|
174
|
-
return;
|
|
175
|
-
this.swipeContainer()?.next();
|
|
176
|
-
}
|
|
177
|
-
goto(index) {
|
|
178
|
-
if (index < 0 || index >= this.imageCount())
|
|
179
|
-
return;
|
|
180
|
-
this.swipeContainer()?.goto(index);
|
|
181
|
-
}
|
|
182
|
-
ngAfterViewInit() {
|
|
183
|
-
if (!this.isServerSide) {
|
|
184
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
185
|
-
// Signals automatically trigger change detection in zoneless mode
|
|
186
|
-
// The resize will be picked up by the observe-size directive
|
|
187
|
-
});
|
|
188
|
-
const el = this.innerElement();
|
|
189
|
-
if (el) {
|
|
190
|
-
this.resizeObserver.observe(el.nativeElement);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
ngOnDestroy() {
|
|
195
|
-
this.isDestroyed = true;
|
|
196
|
-
const innerEl = this.innerElement();
|
|
197
|
-
if (innerEl) {
|
|
198
|
-
this.resizeObserver?.unobserve(innerEl.nativeElement);
|
|
199
|
-
}
|
|
200
|
-
this.resizeObserver?.disconnect();
|
|
201
|
-
this.clearAutoAdvance();
|
|
202
|
-
}
|
|
203
|
-
onContainerAnimationStart() {
|
|
204
|
-
this.animationStart.emit();
|
|
205
|
-
}
|
|
206
|
-
onContainerAnimationEnd() {
|
|
207
|
-
this.animationEnd.emit();
|
|
208
|
-
}
|
|
209
|
-
onImageIndexChange(index) {
|
|
210
|
-
this.currentImageIndex.set(index);
|
|
211
|
-
}
|
|
212
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
213
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: BsCarouselComponent, isStandalone: true, selector: "bs-carousel", inputs: { indicators: { classPropertyName: "indicators", publicName: "indicators", isSignal: true, isRequired: false, transformFunction: null }, keyboardEvents: { classPropertyName: "keyboardEvents", publicName: "keyboardEvents", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, interval: { classPropertyName: "interval", publicName: "interval", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, paused: { classPropertyName: "paused", publicName: "paused", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { paused: "pausedChange", slideChange: "slideChange", animationStart: "animationStart", animationEnd: "animationEnd" }, host: { properties: { "@.disabled": "animationsDisabled()" } }, queries: [{ propertyName: "images", predicate: i0.forwardRef(() => BsCarouselImageDirective), isSignal: true }], viewQueries: [{ propertyName: "innerElement", first: true, predicate: ["innerElement"], descendants: true, isSignal: true }, { propertyName: "swipeContainer", first: true, predicate: ["container"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.BsReducedMotionDirective }], ngImport: i0, template: "@if (isServerSide) {\n <div class=\"carousel mx-auto noscript\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n [attr.aria-label]=\"ariaLabel()\"\n [class.carousel-vertical]=\"orientation() === 'vertical'\">\n <div class=\"carousel-inner d-grid\">\n @let imagesValue = images();\n @if (imageCount(); as imageCount) {\n @for (image of imagesValue; track image.id; let i = $index) {\n <input type=\"radio\" [id]=\"'car-' + i\" [name]=\"'car'\" class=\"car-radio d-none\" bsNoNoscript [checked]=\"i === 0\">\n <div class=\"carousel-item fade d-flex flex-row h-100 align-items-center\"\n role=\"group\"\n aria-roledescription=\"slide\"\n [attr.aria-label]=\"(i + 1) + ' of ' + imageCount\"\n [class.flex-column]=\"orientation() === 'vertical'\">\n <div class=\"w-100 position-relative\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container>\n @if (indicators()) {\n <div class=\"carousel-indicators\"\n [class.carousel-indicators-vertical]=\"orientation() === 'vertical'\">\n @for (image of imagesValue; track image.id; let j = $index) {\n <label [attr.for]=\"'car-' + (j % imageCount)\" [attr.aria-label]=\"'Slide ' + (j + 1)\" [class.active]=\"i === j\" data-bs-target></label>\n }\n </div>\n }\n </div>\n </div>\n\n <label class=\"carousel-control-prev cursor-pointer\" [for]=\"'car-' + ((i - 1 + imageCount) % imageCount)\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </label>\n <label class=\"carousel-control-next cursor-pointer\" [for]=\"'car-' + ((i + 1) % imageCount)\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </label>\n }\n }\n </div>\n </div>\n} @else {\n <div class=\"carousel mx-auto\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n [attr.aria-label]=\"ariaLabel()\"\n [class.slide]=\"animation() === 'slide'\"\n [class.fade]=\"animation() === 'fade'\"\n [class.carousel-vertical]=\"orientation() === 'vertical'\">\n @if (playPauseTemplate() || (interval() ?? 0) > 0) {\n <div class=\"carousel-play-pause\">\n <ng-container *ngTemplateOutlet=\"playPauseTemplate() ?? defaultPlayPauseTemplate; context: { $implicit: paused(), paused: paused(), toggle: togglePaused }\"></ng-container>\n </div>\n }\n @if (indicators()) {\n <div class=\"carousel-indicators\" [class.carousel-indicators-vertical]=\"orientation() === 'vertical'\">\n @for (image of images(); track image.id; let i = $index) {\n <button type=\"button\" (click)=\"goto(i)\"\n [class.active]=\"currentImageIndex() === i\" data-bs-target\n [attr.aria-current]=\"currentImageIndex() === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + (i + 1)\"></button>\n }\n </div>\n }\n <div class=\"carousel-inner\" bsSwipeViewport #innerElement [style.height.px]=\"slideHeight()\"\n [ariaLive]=\"slideAriaLive()\"\n [ariaBusy]=\"container.isAnimating() ? true : null\">\n <div bsSwipeContainer #container=\"bsSwipeContainer\"\n [minimumOffset]=\"50\"\n [animation]=\"animation()\"\n [orientation]=\"orientation()\"\n [keyboardEvents]=\"keyboardEvents()\"\n [(imageIndex)]=\"currentImageIndex\"\n (animationStart)=\"onContainerAnimationStart()\"\n (animationEnd)=\"onContainerAnimationEnd()\">\n @if (animation() === 'slide') {\n <div class=\"carousel-item\" bsSwipe [offside]=\"true\">\n <ng-container *ngTemplateOutlet=\"lastImageTemplate()\"></ng-container>\n </div>\n }\n @for (image of images(); track image.id; let i = $index) {\n <div class=\"carousel-item\" bsSwipe\n [class.active]=\"currentImageIndex() === i\">\n <ng-container *ngTemplateOutlet=\"image.itemTemplate\"></ng-container>\n </div>\n }\n @if (animation() === 'slide') {\n <div class=\"carousel-item\" bsSwipe [offside]=\"true\">\n <ng-container *ngTemplateOutlet=\"firstImageTemplate()\"></ng-container>\n </div>\n }\n </div>\n </div>\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previous()\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\"\n aria-label=\"Previous slide\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"next()\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\"\n aria-label=\"Next slide\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n </div>\n}\n\n<!-- Fallback rendered when the consumer does not supply a `*bsCarouselPlayPause`\n template but auto-advance is configured. APG requires auto-advancing\n carousels to expose a pause control; this is the carousel's \"make it\n correct by default\" path so consumers don't have to write boilerplate. -->\n<ng-template #defaultPlayPauseTemplate let-paused=\"paused\" let-toggle=\"toggle\">\n <button type=\"button\"\n class=\"carousel-play-pause-btn\"\n [class.carousel-play-pause-paused]=\"paused\"\n [class.carousel-play-pause-playing]=\"!paused\"\n (click)=\"toggle()\" [attr.aria-pressed]=\"paused\"\n [attr.aria-label]=\"paused ? 'Resume auto-advance' : 'Pause auto-advance'\">\n <span class=\"carousel-play-pause-icon\" aria-hidden=\"true\"></span>\n </button>\n</ng-template>\n", styles: [":host ::ng-deep .carousel{position:relative}:host ::ng-deep .carousel.pointer-event{touch-action:pan-y}:host ::ng-deep .carousel-inner{position:relative;width:100%;overflow:hidden}:host ::ng-deep .carousel-inner:after{display:block;clear:both;content:\"\"}:host ::ng-deep .carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-item{transition:none}}:host ::ng-deep .carousel-item.active,:host ::ng-deep .carousel-item-next,:host ::ng-deep .carousel-item-prev{display:block}:host ::ng-deep .carousel-item-next:not(.carousel-item-start),:host ::ng-deep .active.carousel-item-end{transform:translate(100%)}:host ::ng-deep .carousel-item-prev:not(.carousel-item-end),:host ::ng-deep .active.carousel-item-start{transform:translate(-100%)}:host ::ng-deep .carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}:host ::ng-deep .carousel-fade .carousel-item.active,:host ::ng-deep .carousel-fade .carousel-item-next.carousel-item-start,:host ::ng-deep .carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}:host ::ng-deep .carousel-fade .active.carousel-item-start,:host ::ng-deep .carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-fade .active.carousel-item-start,:host ::ng-deep .carousel-fade .active.carousel-item-end{transition:none}}:host ::ng-deep .carousel-control-prev,:host ::ng-deep .carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;filter:var(--bs-carousel-control-icon-filter);border:0;opacity:.5;transition:opacity .15s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-control-prev,:host ::ng-deep .carousel-control-next{transition:none}}:host ::ng-deep .carousel-control-prev:hover,:host ::ng-deep .carousel-control-prev:focus,:host ::ng-deep .carousel-control-next:hover,:host ::ng-deep .carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}:host ::ng-deep .carousel-control-prev{left:0}:host ::ng-deep .carousel-control-next{right:0}:host ::ng-deep .carousel-control-prev-icon,:host ::ng-deep .carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}:host ::ng-deep .carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e\")}:host ::ng-deep .carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e\")}:host ::ng-deep .carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}:host ::ng-deep .carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:var(--bs-carousel-indicator-active-bg);background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-indicators [data-bs-target]{transition:none}}:host ::ng-deep .carousel-indicators .active{opacity:1}:host ::ng-deep .carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:var(--bs-carousel-caption-color);text-align:center}:host ::ng-deep .carousel-dark{--bs-carousel-indicator-active-bg: #000;--bs-carousel-caption-color: #000;--bs-carousel-control-icon-filter: invert(1) grayscale(100)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-carousel-indicator-active-bg: #fff;--bs-carousel-caption-color: #fff;--bs-carousel-control-icon-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-carousel-indicator-active-bg: #000;--bs-carousel-caption-color: #000;--bs-carousel-control-icon-filter: invert(1) grayscale(100)}:host ::ng-deep .carousel{min-height:100px;max-width:500px}:host ::ng-deep .carousel.noscript .carousel-inner{grid-template-rows:100%;grid-template-columns:100%}:host ::ng-deep .carousel.noscript .carousel-control-prev,:host ::ng-deep .carousel.noscript .carousel-control-next{display:none;z-index:10}:host ::ng-deep .carousel.noscript .carousel-item{display:block;opacity:0;transition:opacity .4s ease-in-out;grid-row:1;grid-column:1}:host ::ng-deep .carousel.noscript .car-radio.noscript:checked+.carousel-item{opacity:1;z-index:5}:host ::ng-deep .carousel.noscript .car-radio.noscript:checked+.carousel-item+label.carousel-control-prev,:host ::ng-deep .carousel.noscript .car-radio.noscript:checked+.carousel-item+label.carousel-control-prev+.carousel-control-next{display:flex}:host ::ng-deep .carousel.noscript .carousel-indicators{z-index:10}:host ::ng-deep .carousel.noscript .carousel-item img{width:100%;height:auto}:host ::ng-deep .carousel .carousel-item>*{width:100%!important}:host ::ng-deep .carousel-indicators [data-bs-target]{background-color:var(--bs-carousel-indicator-active-bg, #fff)}:host ::ng-deep .carousel-play-pause{position:absolute;bottom:3rem;left:50%;transform:translate(-50%);z-index:3;margin:0}:host ::ng-deep .carousel-play-pause-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:50%;background-color:#00000080;color:#fff;cursor:pointer;transition:background-color .15s ease}:host ::ng-deep .carousel-play-pause-btn:hover,:host ::ng-deep .carousel-play-pause-btn:focus-visible{background-color:#000000bf}:host ::ng-deep .carousel-play-pause-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}:host ::ng-deep .carousel-play-pause-icon{display:inline-block;width:.75rem;height:.75rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}:host ::ng-deep .carousel-play-pause-paused .carousel-play-pause-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M3 1.5v13a.5.5 0 0 0 .77.42l11-6.5a.5.5 0 0 0 0-.84l-11-6.5A.5.5 0 0 0 3 1.5z'/%3E%3C/svg%3E\")}:host ::ng-deep .carousel-play-pause-playing .carousel-play-pause-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M5 2h2v12H5zM9 2h2v12H9z'/%3E%3C/svg%3E\")}:host ::ng-deep .carousel.carousel-vertical .carousel-play-pause{bottom:auto;top:.5rem;left:auto;right:.5rem;transform:none}:host ::ng-deep .carousel.fade .carousel-item{position:absolute;top:0;left:0;right:0;opacity:0;transition:opacity .5s ease-in-out;pointer-events:none}:host ::ng-deep .carousel.fade .carousel-item.active{opacity:1;pointer-events:auto}:host ::ng-deep .carousel.carousel-vertical .carousel-control-prev,:host ::ng-deep .carousel.carousel-vertical .carousel-control-next{width:100%;left:0;right:0}:host ::ng-deep .carousel.carousel-vertical .carousel-control-prev.carousel-control-vertical,:host ::ng-deep .carousel.carousel-vertical .carousel-control-next.carousel-control-vertical{justify-content:center}:host ::ng-deep .carousel.carousel-vertical .carousel-control-prev-icon,:host ::ng-deep .carousel.carousel-vertical .carousel-control-next-icon{background-color:#00000080;border-radius:50%;padding:1.5rem;background-size:50%;box-shadow:0 2px 8px #0000004d}:host ::ng-deep .carousel.carousel-vertical [bsSwipeContainer] .carousel-item{flex:0 0 auto;display:flex!important;flex-direction:column;justify-content:center;align-items:center}:host ::ng-deep .carousel-indicators-vertical{position:absolute;inset:50% auto auto 0;transform:translateY(-50%);flex-direction:column;justify-content:center;align-items:center;margin:0;margin-left:.5rem;gap:.5rem}:host ::ng-deep .carousel-indicators-vertical [data-bs-target]{width:12px;height:12px;border-radius:50%;background-color:#ffffff80;border:none;box-shadow:0 1px 3px #0000004d;opacity:.7;transition:opacity .15s ease}:host ::ng-deep .carousel-indicators-vertical [data-bs-target].active{opacity:1;background-color:#fff}:host ::ng-deep .carousel-control-vertical{top:0;bottom:auto;height:2.5rem;align-items:center}:host ::ng-deep .carousel-control-vertical.carousel-control-next{top:auto;bottom:0}:host ::ng-deep .carousel-control-vertical.carousel-control-prev .carousel-control-prev-icon{transform:rotate(90deg)}:host ::ng-deep .carousel-control-vertical.carousel-control-next .carousel-control-next-icon{transform:rotate(90deg)}.wrapper{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsSwipeContainerDirective, selector: "[bsSwipeContainer]", inputs: ["minimumOffset", "animation", "orientation", "keyboardEvents", "imageIndex"], outputs: ["imageIndexChange", "animationStart", "animationEnd"], exportAs: ["bsSwipeContainer"] }, { kind: "directive", type: BsSwipeDirective, selector: "[bsSwipe]", inputs: ["offside", "ariaRoledescription", "ariaLabel"] }, { kind: "directive", type: BsSwipeViewportDirective, selector: "[bsSwipeViewport]", inputs: ["tabIndex", "ariaLive", "ariaAtomic", "ariaRelevant", "ariaBusy"] }, { kind: "directive", type: BsNoNoscriptDirective, selector: "[bsNoNoscript]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
214
|
-
}
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselComponent, decorators: [{
|
|
216
|
-
type: Component,
|
|
217
|
-
args: [{ selector: 'bs-carousel', imports: [
|
|
218
|
-
NgTemplateOutlet,
|
|
219
|
-
BsSwipeContainerDirective,
|
|
220
|
-
BsSwipeDirective,
|
|
221
|
-
BsSwipeViewportDirective,
|
|
222
|
-
BsNoNoscriptDirective,
|
|
223
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsReducedMotionDirective], host: {
|
|
224
|
-
'[@.disabled]': 'animationsDisabled()',
|
|
225
|
-
}, template: "@if (isServerSide) {\n <div class=\"carousel mx-auto noscript\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n [attr.aria-label]=\"ariaLabel()\"\n [class.carousel-vertical]=\"orientation() === 'vertical'\">\n <div class=\"carousel-inner d-grid\">\n @let imagesValue = images();\n @if (imageCount(); as imageCount) {\n @for (image of imagesValue; track image.id; let i = $index) {\n <input type=\"radio\" [id]=\"'car-' + i\" [name]=\"'car'\" class=\"car-radio d-none\" bsNoNoscript [checked]=\"i === 0\">\n <div class=\"carousel-item fade d-flex flex-row h-100 align-items-center\"\n role=\"group\"\n aria-roledescription=\"slide\"\n [attr.aria-label]=\"(i + 1) + ' of ' + imageCount\"\n [class.flex-column]=\"orientation() === 'vertical'\">\n <div class=\"w-100 position-relative\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container>\n @if (indicators()) {\n <div class=\"carousel-indicators\"\n [class.carousel-indicators-vertical]=\"orientation() === 'vertical'\">\n @for (image of imagesValue; track image.id; let j = $index) {\n <label [attr.for]=\"'car-' + (j % imageCount)\" [attr.aria-label]=\"'Slide ' + (j + 1)\" [class.active]=\"i === j\" data-bs-target></label>\n }\n </div>\n }\n </div>\n </div>\n\n <label class=\"carousel-control-prev cursor-pointer\" [for]=\"'car-' + ((i - 1 + imageCount) % imageCount)\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </label>\n <label class=\"carousel-control-next cursor-pointer\" [for]=\"'car-' + ((i + 1) % imageCount)\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </label>\n }\n }\n </div>\n </div>\n} @else {\n <div class=\"carousel mx-auto\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n [attr.aria-label]=\"ariaLabel()\"\n [class.slide]=\"animation() === 'slide'\"\n [class.fade]=\"animation() === 'fade'\"\n [class.carousel-vertical]=\"orientation() === 'vertical'\">\n @if (playPauseTemplate() || (interval() ?? 0) > 0) {\n <div class=\"carousel-play-pause\">\n <ng-container *ngTemplateOutlet=\"playPauseTemplate() ?? defaultPlayPauseTemplate; context: { $implicit: paused(), paused: paused(), toggle: togglePaused }\"></ng-container>\n </div>\n }\n @if (indicators()) {\n <div class=\"carousel-indicators\" [class.carousel-indicators-vertical]=\"orientation() === 'vertical'\">\n @for (image of images(); track image.id; let i = $index) {\n <button type=\"button\" (click)=\"goto(i)\"\n [class.active]=\"currentImageIndex() === i\" data-bs-target\n [attr.aria-current]=\"currentImageIndex() === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + (i + 1)\"></button>\n }\n </div>\n }\n <div class=\"carousel-inner\" bsSwipeViewport #innerElement [style.height.px]=\"slideHeight()\"\n [ariaLive]=\"slideAriaLive()\"\n [ariaBusy]=\"container.isAnimating() ? true : null\">\n <div bsSwipeContainer #container=\"bsSwipeContainer\"\n [minimumOffset]=\"50\"\n [animation]=\"animation()\"\n [orientation]=\"orientation()\"\n [keyboardEvents]=\"keyboardEvents()\"\n [(imageIndex)]=\"currentImageIndex\"\n (animationStart)=\"onContainerAnimationStart()\"\n (animationEnd)=\"onContainerAnimationEnd()\">\n @if (animation() === 'slide') {\n <div class=\"carousel-item\" bsSwipe [offside]=\"true\">\n <ng-container *ngTemplateOutlet=\"lastImageTemplate()\"></ng-container>\n </div>\n }\n @for (image of images(); track image.id; let i = $index) {\n <div class=\"carousel-item\" bsSwipe\n [class.active]=\"currentImageIndex() === i\">\n <ng-container *ngTemplateOutlet=\"image.itemTemplate\"></ng-container>\n </div>\n }\n @if (animation() === 'slide') {\n <div class=\"carousel-item\" bsSwipe [offside]=\"true\">\n <ng-container *ngTemplateOutlet=\"firstImageTemplate()\"></ng-container>\n </div>\n }\n </div>\n </div>\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previous()\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\"\n aria-label=\"Previous slide\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"next()\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\"\n aria-label=\"Next slide\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n </div>\n}\n\n<!-- Fallback rendered when the consumer does not supply a `*bsCarouselPlayPause`\n template but auto-advance is configured. APG requires auto-advancing\n carousels to expose a pause control; this is the carousel's \"make it\n correct by default\" path so consumers don't have to write boilerplate. -->\n<ng-template #defaultPlayPauseTemplate let-paused=\"paused\" let-toggle=\"toggle\">\n <button type=\"button\"\n class=\"carousel-play-pause-btn\"\n [class.carousel-play-pause-paused]=\"paused\"\n [class.carousel-play-pause-playing]=\"!paused\"\n (click)=\"toggle()\" [attr.aria-pressed]=\"paused\"\n [attr.aria-label]=\"paused ? 'Resume auto-advance' : 'Pause auto-advance'\">\n <span class=\"carousel-play-pause-icon\" aria-hidden=\"true\"></span>\n </button>\n</ng-template>\n", styles: [":host ::ng-deep .carousel{position:relative}:host ::ng-deep .carousel.pointer-event{touch-action:pan-y}:host ::ng-deep .carousel-inner{position:relative;width:100%;overflow:hidden}:host ::ng-deep .carousel-inner:after{display:block;clear:both;content:\"\"}:host ::ng-deep .carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-item{transition:none}}:host ::ng-deep .carousel-item.active,:host ::ng-deep .carousel-item-next,:host ::ng-deep .carousel-item-prev{display:block}:host ::ng-deep .carousel-item-next:not(.carousel-item-start),:host ::ng-deep .active.carousel-item-end{transform:translate(100%)}:host ::ng-deep .carousel-item-prev:not(.carousel-item-end),:host ::ng-deep .active.carousel-item-start{transform:translate(-100%)}:host ::ng-deep .carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}:host ::ng-deep .carousel-fade .carousel-item.active,:host ::ng-deep .carousel-fade .carousel-item-next.carousel-item-start,:host ::ng-deep .carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}:host ::ng-deep .carousel-fade .active.carousel-item-start,:host ::ng-deep .carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-fade .active.carousel-item-start,:host ::ng-deep .carousel-fade .active.carousel-item-end{transition:none}}:host ::ng-deep .carousel-control-prev,:host ::ng-deep .carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;filter:var(--bs-carousel-control-icon-filter);border:0;opacity:.5;transition:opacity .15s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-control-prev,:host ::ng-deep .carousel-control-next{transition:none}}:host ::ng-deep .carousel-control-prev:hover,:host ::ng-deep .carousel-control-prev:focus,:host ::ng-deep .carousel-control-next:hover,:host ::ng-deep .carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}:host ::ng-deep .carousel-control-prev{left:0}:host ::ng-deep .carousel-control-next{right:0}:host ::ng-deep .carousel-control-prev-icon,:host ::ng-deep .carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}:host ::ng-deep .carousel-control-prev-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e\")}:host ::ng-deep .carousel-control-next-icon{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e\")}:host ::ng-deep .carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}:host ::ng-deep .carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:var(--bs-carousel-indicator-active-bg);background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .carousel-indicators [data-bs-target]{transition:none}}:host ::ng-deep .carousel-indicators .active{opacity:1}:host ::ng-deep .carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:var(--bs-carousel-caption-color);text-align:center}:host ::ng-deep .carousel-dark{--bs-carousel-indicator-active-bg: #000;--bs-carousel-caption-color: #000;--bs-carousel-control-icon-filter: invert(1) grayscale(100)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-carousel-indicator-active-bg: #fff;--bs-carousel-caption-color: #fff;--bs-carousel-control-icon-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-carousel-indicator-active-bg: #000;--bs-carousel-caption-color: #000;--bs-carousel-control-icon-filter: invert(1) grayscale(100)}:host ::ng-deep .carousel{min-height:100px;max-width:500px}:host ::ng-deep .carousel.noscript .carousel-inner{grid-template-rows:100%;grid-template-columns:100%}:host ::ng-deep .carousel.noscript .carousel-control-prev,:host ::ng-deep .carousel.noscript .carousel-control-next{display:none;z-index:10}:host ::ng-deep .carousel.noscript .carousel-item{display:block;opacity:0;transition:opacity .4s ease-in-out;grid-row:1;grid-column:1}:host ::ng-deep .carousel.noscript .car-radio.noscript:checked+.carousel-item{opacity:1;z-index:5}:host ::ng-deep .carousel.noscript .car-radio.noscript:checked+.carousel-item+label.carousel-control-prev,:host ::ng-deep .carousel.noscript .car-radio.noscript:checked+.carousel-item+label.carousel-control-prev+.carousel-control-next{display:flex}:host ::ng-deep .carousel.noscript .carousel-indicators{z-index:10}:host ::ng-deep .carousel.noscript .carousel-item img{width:100%;height:auto}:host ::ng-deep .carousel .carousel-item>*{width:100%!important}:host ::ng-deep .carousel-indicators [data-bs-target]{background-color:var(--bs-carousel-indicator-active-bg, #fff)}:host ::ng-deep .carousel-play-pause{position:absolute;bottom:3rem;left:50%;transform:translate(-50%);z-index:3;margin:0}:host ::ng-deep .carousel-play-pause-btn{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:50%;background-color:#00000080;color:#fff;cursor:pointer;transition:background-color .15s ease}:host ::ng-deep .carousel-play-pause-btn:hover,:host ::ng-deep .carousel-play-pause-btn:focus-visible{background-color:#000000bf}:host ::ng-deep .carousel-play-pause-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}:host ::ng-deep .carousel-play-pause-icon{display:inline-block;width:.75rem;height:.75rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}:host ::ng-deep .carousel-play-pause-paused .carousel-play-pause-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M3 1.5v13a.5.5 0 0 0 .77.42l11-6.5a.5.5 0 0 0 0-.84l-11-6.5A.5.5 0 0 0 3 1.5z'/%3E%3C/svg%3E\")}:host ::ng-deep .carousel-play-pause-playing .carousel-play-pause-icon{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M5 2h2v12H5zM9 2h2v12H9z'/%3E%3C/svg%3E\")}:host ::ng-deep .carousel.carousel-vertical .carousel-play-pause{bottom:auto;top:.5rem;left:auto;right:.5rem;transform:none}:host ::ng-deep .carousel.fade .carousel-item{position:absolute;top:0;left:0;right:0;opacity:0;transition:opacity .5s ease-in-out;pointer-events:none}:host ::ng-deep .carousel.fade .carousel-item.active{opacity:1;pointer-events:auto}:host ::ng-deep .carousel.carousel-vertical .carousel-control-prev,:host ::ng-deep .carousel.carousel-vertical .carousel-control-next{width:100%;left:0;right:0}:host ::ng-deep .carousel.carousel-vertical .carousel-control-prev.carousel-control-vertical,:host ::ng-deep .carousel.carousel-vertical .carousel-control-next.carousel-control-vertical{justify-content:center}:host ::ng-deep .carousel.carousel-vertical .carousel-control-prev-icon,:host ::ng-deep .carousel.carousel-vertical .carousel-control-next-icon{background-color:#00000080;border-radius:50%;padding:1.5rem;background-size:50%;box-shadow:0 2px 8px #0000004d}:host ::ng-deep .carousel.carousel-vertical [bsSwipeContainer] .carousel-item{flex:0 0 auto;display:flex!important;flex-direction:column;justify-content:center;align-items:center}:host ::ng-deep .carousel-indicators-vertical{position:absolute;inset:50% auto auto 0;transform:translateY(-50%);flex-direction:column;justify-content:center;align-items:center;margin:0;margin-left:.5rem;gap:.5rem}:host ::ng-deep .carousel-indicators-vertical [data-bs-target]{width:12px;height:12px;border-radius:50%;background-color:#ffffff80;border:none;box-shadow:0 1px 3px #0000004d;opacity:.7;transition:opacity .15s ease}:host ::ng-deep .carousel-indicators-vertical [data-bs-target].active{opacity:1;background-color:#fff}:host ::ng-deep .carousel-control-vertical{top:0;bottom:auto;height:2.5rem;align-items:center}:host ::ng-deep .carousel-control-vertical.carousel-control-next{top:auto;bottom:0}:host ::ng-deep .carousel-control-vertical.carousel-control-prev .carousel-control-prev-icon{transform:rotate(90deg)}:host ::ng-deep .carousel-control-vertical.carousel-control-next .carousel-control-next-icon{transform:rotate(90deg)}.wrapper{overflow:hidden}\n"] }]
|
|
226
|
-
}], ctorParameters: () => [], propDecorators: { images: [{ type: i0.ContentChildren, args: [forwardRef(() => BsCarouselImageDirective), { isSignal: true }] }], indicators: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicators", required: false }] }], keyboardEvents: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyboardEvents", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], interval: [{ type: i0.Input, args: [{ isSignal: true, alias: "interval", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], paused: [{ type: i0.Input, args: [{ isSignal: true, alias: "paused", required: false }] }, { type: i0.Output, args: ["pausedChange"] }], slideChange: [{ type: i0.Output, args: ["slideChange"] }], animationStart: [{ type: i0.Output, args: ["animationStart"] }], animationEnd: [{ type: i0.Output, args: ["animationEnd"] }], innerElement: [{ type: i0.ViewChild, args: ['innerElement', { isSignal: true }] }], swipeContainer: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }] } });
|
|
227
|
-
|
|
228
|
-
class BsCarouselImgDirective {
|
|
229
|
-
constructor() {
|
|
230
|
-
this.image = inject(BsCarouselImageDirective, { optional: true });
|
|
231
|
-
this.fetchPriority = (this.image && this.image.isFirst) ? 'high' : 'low';
|
|
232
|
-
}
|
|
233
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselImgDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
234
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsCarouselImgDirective, isStandalone: true, selector: "img", host: { properties: { "attr.fetch-priority": "fetchPriority" } }, ngImport: i0 }); }
|
|
235
|
-
}
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselImgDirective, decorators: [{
|
|
237
|
-
type: Directive,
|
|
238
|
-
args: [{
|
|
239
|
-
selector: 'img',
|
|
240
|
-
host: {
|
|
241
|
-
'[attr.fetch-priority]': 'fetchPriority',
|
|
242
|
-
},
|
|
243
|
-
}]
|
|
244
|
-
}], ctorParameters: () => [] });
|
|
245
|
-
|
|
246
|
-
class BsCarouselPlayPauseDirective {
|
|
247
|
-
static ngTemplateContextGuard(_dir, ctx) {
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
|
-
constructor() {
|
|
251
|
-
this.templateRef = inject((TemplateRef));
|
|
252
|
-
this.carousel = inject(BsCarouselComponent);
|
|
253
|
-
this.carousel.playPauseTemplate.set(this.templateRef);
|
|
254
|
-
}
|
|
255
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselPlayPauseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
256
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsCarouselPlayPauseDirective, isStandalone: true, selector: "[bsCarouselPlayPause]", ngImport: i0 }); }
|
|
257
|
-
}
|
|
258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCarouselPlayPauseDirective, decorators: [{
|
|
259
|
-
type: Directive,
|
|
260
|
-
args: [{
|
|
261
|
-
selector: '[bsCarouselPlayPause]',
|
|
262
|
-
}]
|
|
263
|
-
}], ctorParameters: () => [] });
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Generated bundle index. Do not edit.
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
export { BsCarouselComponent, BsCarouselImageDirective, BsCarouselImgDirective, BsCarouselPlayPauseDirective };
|
|
270
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-carousel.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-carousel.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel-image/carousel-image.directive.ts","../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel/carousel.component.ts","../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel/carousel.component.html","../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel-img/carousel-img.directive.ts","../../../../libs/mintplayer-ng-bootstrap/carousel/src/carousel-play-pause/carousel-play-pause.directive.ts","../../../../libs/mintplayer-ng-bootstrap/carousel/mintplayer-ng-bootstrap-carousel.ts"],"sourcesContent":["import { Directive, inject, TemplateRef, ElementRef } from '@angular/core';\nimport { BsCarouselComponent } from '../carousel/carousel.component';\n\n@Directive({\n selector: '*[bsCarouselImage]',\n})\nexport class BsCarouselImageDirective {\n private templateRef = inject(TemplateRef<any>);\n private carousel = inject(BsCarouselComponent);\n private element = inject(ElementRef<HTMLElement>);\n\n public itemTemplate: TemplateRef<any>;\n id: number;\n isFirst = false;\n\n constructor() {\n this.itemTemplate = this.templateRef;\n // Post-increment semantics: this.id gets the OLD value, then the counter increments.\n this.id = this.carousel.imageCounter();\n this.carousel.imageCounter.update(c => c + 1);\n }\n}\n","import { isPlatformServer, NgTemplateOutlet } from '@angular/common';\nimport { AfterViewInit, ChangeDetectionStrategy, Component, computed, contentChildren, DestroyRef, effect, ElementRef, forwardRef, inject, input, model, OnDestroy, output, PLATFORM_ID, signal, TemplateRef, viewChild } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport { BsSwipeContainerDirective, BsSwipeDirective, BsSwipeViewportDirective } from '@mintplayer/ng-swiper/swiper';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { BsReducedMotionDirective } from '@mintplayer/ng-bootstrap/reduced-motion';\nimport { BsCarouselImageDirective } from '../carousel-image/carousel-image.directive';\nimport type { BsCarouselPlayPauseContext } from '../carousel-play-pause/carousel-play-pause.directive';\n\n@Component({\n selector: 'bs-carousel',\n templateUrl: './carousel.component.html',\n styleUrls: ['./carousel.component.scss'],\n imports: [\n NgTemplateOutlet,\n BsSwipeContainerDirective,\n BsSwipeDirective,\n BsSwipeViewportDirective,\n BsNoNoscriptDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsReducedMotionDirective],\n host: {\n '[@.disabled]': 'animationsDisabled()',\n },\n})\nexport class BsCarouselComponent implements AfterViewInit, OnDestroy {\n private platformId = inject(PLATFORM_ID);\n private destroyRef = inject(DestroyRef);\n private readonly reducedMotion = inject(BsReducedMotionDirective);\n\n readonly colors = Color;\n readonly isServerSide = isPlatformServer(this.platformId);\n currentImageIndex = signal(0);\n readonly images = contentChildren<BsCarouselImageDirective>(forwardRef(() => BsCarouselImageDirective));\n resizeObserver?: ResizeObserver;\n private intervalId?: ReturnType<typeof setInterval>;\n private isDestroyed = false;\n\n // Inputs\n indicators = input(false);\n keyboardEvents = input(true);\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n animation = input<'fade' | 'slide' | 'none'>('slide');\n interval = input<number | null>(null);\n wrap = input(true);\n ariaLabel = input<string | null>(null);\n\n // Two-way: pause / resume the auto-advance timer. Toggled by the\n // consumer's `*bsCarouselPlayPause` template via the `toggle` callback in\n // its context, or by the public `play()` / `pause()` methods. Default\n // false (auto-advance allowed); has no effect when `interval` is null/0.\n paused = model<boolean>(false);\n\n /**\n * Template projected via `*bsCarouselPlayPause`. When set, the carousel\n * renders it in a control row above the slides. Per APG, auto-advancing\n * carousels must expose a play/pause control — this is how consumers\n * provide one without us imposing a button style.\n */\n readonly playPauseTemplate = signal<TemplateRef<BsCarouselPlayPauseContext> | null>(null);\n\n // Outputs\n slideChange = output<number>();\n animationStart = output<void>();\n animationEnd = output<void>();\n\n // Computed signals\n imageCount = computed(() => this.images().length);\n\n readonly innerElement = viewChild<ElementRef<HTMLDivElement>>('innerElement');\n readonly swipeContainer = viewChild<BsSwipeContainerDirective>('container');\n\n // Returns 200 when swipeContainer isn't ready or height is null/0, ensuring images render and ResizeObserver triggers\n slideHeight = computed(() => {\n const container = this.swipeContainer();\n const height = container?.currentSlideHeight();\n return (height && height > 0) ? height : 200;\n });\n\n firstImageTemplate = computed<TemplateRef<any> | null>(() => {\n const images = this.images();\n if (images.length === 0) return null;\n\n const img = images[0];\n if (!img) return null;\n\n return img.itemTemplate;\n });\n\n lastImageTemplate = computed<TemplateRef<any> | null>(() => {\n const images = this.images();\n if (images.length === 0) return null;\n\n const img = images[images.length - 1];\n if (!img) return null;\n\n return img.itemTemplate;\n });\n\n readonly animationsDisabled = signal<boolean>(false);\n\n /**\n * `aria-live` value for the slide viewport. Stays `off` while\n * auto-advance is actually rotating — otherwise the SR would re-read the\n * active slide every interval — and switches to `polite` whenever the\n * rotation is paused (by `paused`, missing/zero `interval`, or\n * `prefers-reduced-motion`), so manual prev/next/indicator clicks get\n * announced.\n */\n readonly slideAriaLive = computed<'off' | 'polite'>(() => {\n const intervalTime = this.interval();\n if (!intervalTime || intervalTime <= 0) return 'polite';\n if (this.paused()) return 'polite';\n if (this.reducedMotion.matches()) return 'polite';\n return 'off';\n });\n\n constructor() {\n // Mark first image whenever images change\n effect(() => {\n const images = this.images();\n images.forEach((item, index) => item.isFirst = (index === 0));\n });\n\n // Setup auto-advance interval effect — gated on the two new axes added\n // by the APG carousel bundle (PRD aria-accessibility-audit §13.2):\n // • `paused` model: lets the consumer (or the projected play/pause\n // button) suspend rotation.\n // • prefers-reduced-motion: suppresses auto-advance entirely when\n // the user opts out of motion at the OS level.\n effect(() => {\n const intervalTime = this.interval();\n const isPaused = this.paused();\n const reduceMotion = this.reducedMotion.matches();\n this.clearAutoAdvance();\n\n if (intervalTime && intervalTime > 0 && !isPaused && !reduceMotion) {\n this.intervalId = setInterval(() => {\n this.next();\n }, intervalTime);\n }\n });\n\n // Emit slideChange when currentImageIndex changes\n effect(() => {\n const index = this.currentImageIndex();\n if (!this.isDestroyed) {\n this.slideChange.emit(index);\n }\n });\n\n // Cleanup on destroy\n this.destroyRef.onDestroy(() => {\n this.isDestroyed = true;\n this.clearAutoAdvance();\n this.resizeObserver?.disconnect();\n });\n }\n\n /** Resume auto-advance. No-op if `interval` is unset or reduce-motion is on. */\n play() {\n this.paused.set(false);\n }\n\n /** Pause auto-advance. Manual prev/next/goto still work. */\n pause() {\n this.paused.set(true);\n }\n\n /** Toggle the paused state. Used as the `toggle` callback in `BsCarouselPlayPauseContext`. */\n togglePaused = () => {\n this.paused.update((p) => !p);\n };\n\n private clearAutoAdvance() {\n if (this.intervalId) {\n clearInterval(this.intervalId);\n this.intervalId = undefined;\n }\n }\n\n previous() {\n if (!this.wrap() && this.currentImageIndex() === 0) return;\n this.swipeContainer()?.previous();\n }\n\n next() {\n if (!this.wrap() && this.currentImageIndex() === this.imageCount() - 1) return;\n this.swipeContainer()?.next();\n }\n\n goto(index: number) {\n if (index < 0 || index >= this.imageCount()) return;\n this.swipeContainer()?.goto(index);\n }\n\n readonly imageCounter = signal<number>(1);\n\n ngAfterViewInit() {\n if (!this.isServerSide) {\n this.resizeObserver = new ResizeObserver(() => {\n // Signals automatically trigger change detection in zoneless mode\n // The resize will be picked up by the observe-size directive\n });\n const el = this.innerElement();\n if (el) {\n this.resizeObserver.observe(el.nativeElement);\n }\n }\n }\n\n ngOnDestroy() {\n this.isDestroyed = true;\n const innerEl = this.innerElement();\n if (innerEl) {\n this.resizeObserver?.unobserve(innerEl.nativeElement);\n }\n this.resizeObserver?.disconnect();\n this.clearAutoAdvance();\n }\n\n onContainerAnimationStart() {\n this.animationStart.emit();\n }\n\n onContainerAnimationEnd() {\n this.animationEnd.emit();\n }\n\n onImageIndexChange(index: number) {\n this.currentImageIndex.set(index);\n }\n}\n","@if (isServerSide) {\n <div class=\"carousel mx-auto noscript\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n [attr.aria-label]=\"ariaLabel()\"\n [class.carousel-vertical]=\"orientation() === 'vertical'\">\n <div class=\"carousel-inner d-grid\">\n @let imagesValue = images();\n @if (imageCount(); as imageCount) {\n @for (image of imagesValue; track image.id; let i = $index) {\n <input type=\"radio\" [id]=\"'car-' + i\" [name]=\"'car'\" class=\"car-radio d-none\" bsNoNoscript [checked]=\"i === 0\">\n <div class=\"carousel-item fade d-flex flex-row h-100 align-items-center\"\n role=\"group\"\n aria-roledescription=\"slide\"\n [attr.aria-label]=\"(i + 1) + ' of ' + imageCount\"\n [class.flex-column]=\"orientation() === 'vertical'\">\n <div class=\"w-100 position-relative\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container>\n @if (indicators()) {\n <div class=\"carousel-indicators\"\n [class.carousel-indicators-vertical]=\"orientation() === 'vertical'\">\n @for (image of imagesValue; track image.id; let j = $index) {\n <label [attr.for]=\"'car-' + (j % imageCount)\" [attr.aria-label]=\"'Slide ' + (j + 1)\" [class.active]=\"i === j\" data-bs-target></label>\n }\n </div>\n }\n </div>\n </div>\n\n <label class=\"carousel-control-prev cursor-pointer\" [for]=\"'car-' + ((i - 1 + imageCount) % imageCount)\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </label>\n <label class=\"carousel-control-next cursor-pointer\" [for]=\"'car-' + ((i + 1) % imageCount)\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </label>\n }\n }\n </div>\n </div>\n} @else {\n <div class=\"carousel mx-auto\"\n role=\"region\"\n aria-roledescription=\"carousel\"\n [attr.aria-label]=\"ariaLabel()\"\n [class.slide]=\"animation() === 'slide'\"\n [class.fade]=\"animation() === 'fade'\"\n [class.carousel-vertical]=\"orientation() === 'vertical'\">\n @if (playPauseTemplate() || (interval() ?? 0) > 0) {\n <div class=\"carousel-play-pause\">\n <ng-container *ngTemplateOutlet=\"playPauseTemplate() ?? defaultPlayPauseTemplate; context: { $implicit: paused(), paused: paused(), toggle: togglePaused }\"></ng-container>\n </div>\n }\n @if (indicators()) {\n <div class=\"carousel-indicators\" [class.carousel-indicators-vertical]=\"orientation() === 'vertical'\">\n @for (image of images(); track image.id; let i = $index) {\n <button type=\"button\" (click)=\"goto(i)\"\n [class.active]=\"currentImageIndex() === i\" data-bs-target\n [attr.aria-current]=\"currentImageIndex() === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + (i + 1)\"></button>\n }\n </div>\n }\n <div class=\"carousel-inner\" bsSwipeViewport #innerElement [style.height.px]=\"slideHeight()\"\n [ariaLive]=\"slideAriaLive()\"\n [ariaBusy]=\"container.isAnimating() ? true : null\">\n <div bsSwipeContainer #container=\"bsSwipeContainer\"\n [minimumOffset]=\"50\"\n [animation]=\"animation()\"\n [orientation]=\"orientation()\"\n [keyboardEvents]=\"keyboardEvents()\"\n [(imageIndex)]=\"currentImageIndex\"\n (animationStart)=\"onContainerAnimationStart()\"\n (animationEnd)=\"onContainerAnimationEnd()\">\n @if (animation() === 'slide') {\n <div class=\"carousel-item\" bsSwipe [offside]=\"true\">\n <ng-container *ngTemplateOutlet=\"lastImageTemplate()\"></ng-container>\n </div>\n }\n @for (image of images(); track image.id; let i = $index) {\n <div class=\"carousel-item\" bsSwipe\n [class.active]=\"currentImageIndex() === i\">\n <ng-container *ngTemplateOutlet=\"image.itemTemplate\"></ng-container>\n </div>\n }\n @if (animation() === 'slide') {\n <div class=\"carousel-item\" bsSwipe [offside]=\"true\">\n <ng-container *ngTemplateOutlet=\"firstImageTemplate()\"></ng-container>\n </div>\n }\n </div>\n </div>\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previous()\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\"\n aria-label=\"Previous slide\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"next()\"\n [class.carousel-control-vertical]=\"orientation() === 'vertical'\"\n aria-label=\"Next slide\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n </div>\n}\n\n<!-- Fallback rendered when the consumer does not supply a `*bsCarouselPlayPause`\n template but auto-advance is configured. APG requires auto-advancing\n carousels to expose a pause control; this is the carousel's \"make it\n correct by default\" path so consumers don't have to write boilerplate. -->\n<ng-template #defaultPlayPauseTemplate let-paused=\"paused\" let-toggle=\"toggle\">\n <button type=\"button\"\n class=\"carousel-play-pause-btn\"\n [class.carousel-play-pause-paused]=\"paused\"\n [class.carousel-play-pause-playing]=\"!paused\"\n (click)=\"toggle()\" [attr.aria-pressed]=\"paused\"\n [attr.aria-label]=\"paused ? 'Resume auto-advance' : 'Pause auto-advance'\">\n <span class=\"carousel-play-pause-icon\" aria-hidden=\"true\"></span>\n </button>\n</ng-template>\n","import { Directive, inject } from '@angular/core';\nimport { BsCarouselImageDirective } from '../carousel-image/carousel-image.directive';\n\n@Directive({\n selector: 'img',\n host: {\n '[attr.fetch-priority]': 'fetchPriority',\n },\n})\nexport class BsCarouselImgDirective {\n private image = inject(BsCarouselImageDirective, { optional: true });\n\n fetchPriority: 'high' | 'low' | 'auto';\n\n constructor() {\n this.fetchPriority = (this.image && this.image.isFirst) ? 'high' : 'low';\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { BsCarouselComponent } from '../carousel/carousel.component';\n\n/**\n * Context exposed to a `*bsCarouselPlayPause` template — the consumer reads\n * `paused` to render the right glyph/label and calls `toggle` on click.\n *\n * Per PRD aria-accessibility-audit §13.2 (and the WAI-ARIA Authoring\n * Practices Carousel pattern): when a carousel auto-advances, it MUST\n * expose a visible, keyboard-operable play/pause control. The carousel\n * itself doesn't impose a button style — the consumer projects whatever\n * UI fits their app and reads the `paused` flag from this context.\n */\nexport interface BsCarouselPlayPauseContext {\n /** Whether the carousel is currently paused. Same value as `paused`. */\n $implicit: boolean;\n /** Whether the carousel is currently paused. */\n paused: boolean;\n /** Toggle the paused state. Mirrors the carousel's two-way `[(paused)]`. */\n toggle: () => void;\n}\n\n@Directive({\n selector: '[bsCarouselPlayPause]',\n})\nexport class BsCarouselPlayPauseDirective {\n private templateRef = inject(TemplateRef<BsCarouselPlayPauseContext>);\n private carousel = inject(BsCarouselComponent);\n\n static ngTemplateContextGuard(\n _dir: BsCarouselPlayPauseDirective,\n ctx: unknown,\n ): ctx is BsCarouselPlayPauseContext {\n return true;\n }\n\n constructor() {\n this.carousel.playPauseTemplate.set(this.templateRef);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAMa,wBAAwB,CAAA;AASnC,IAAA,WAAA,GAAA;AARQ,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,EAAC,WAAgB,EAAC;AACtC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACtC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,UAAuB,EAAC;QAIjD,IAAA,CAAA,OAAO,GAAG,KAAK;AAGb,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW;;QAEpC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;AACtC,QAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C;+GAdW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC/B,iBAAA;;;MCqBY,mBAAmB,CAAA;AA4F9B,IAAA,WAAA,GAA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A,EAAA,qBAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,IAAI,EAAE;AACJ,wBAAA,uBAAuB,EAAE,eAAe;AACzC,qBAAA;AACF,iBAAA;;;MCiBY,4BAA4B,CAAA;AAIvC,IAAA,OAAO,sBAAsB,CAC3B,IAAkC,EAClC,GAAY,EAAA;AAEZ,QAAA,OAAO,IAAI;IACb;AAEA,IAAA,WAAA,GAAA;AAVQ,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,EAAC,WAAuC,EAAC;AAC7D,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,mBAAmB,CAAC;QAU5C,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;IACvD;+GAbW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAHxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AAClC,iBAAA;;;ACxBD;;AAEG;;;;"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
class BsCloseComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.click = output();
|
|
7
|
-
}
|
|
8
|
-
onClose(ev) {
|
|
9
|
-
this.click.emit();
|
|
10
|
-
ev.stopImmediatePropagation();
|
|
11
|
-
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.11", type: BsCloseComponent, isStandalone: true, selector: "bs-close", outputs: { click: "click" }, ngImport: i0, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" aria-label=\"Close\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14
|
-
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCloseComponent, decorators: [{
|
|
16
|
-
type: Component,
|
|
17
|
-
args: [{ selector: 'bs-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" aria-label=\"Close\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}\n"] }]
|
|
18
|
-
}], propDecorators: { click: [{ type: i0.Output, args: ["click"] }] } });
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Generated bundle index. Do not edit.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
export { BsCloseComponent };
|
|
25
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-close.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-close.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.ts","../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.html","../../../../libs/mintplayer-ng-bootstrap/close/mintplayer-ng-bootstrap-close.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, output } from '@angular/core';\n\n@Component({\n selector: 'bs-close',\n templateUrl: './close.component.html',\n styleUrls: ['./close.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCloseComponent {\n click = output<void>();\n\n onClose(ev: MouseEvent) {\n this.click.emit();\n ev.stopImmediatePropagation();\n }\n}\n","<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" aria-label=\"Close\"></button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,gBAAgB,CAAA;AAN7B,IAAA,WAAA,GAAA;QAOE,IAAA,CAAA,KAAK,GAAG,MAAM,EAAQ;AAMvB,IAAA;AAJC,IAAA,OAAO,CAAC,EAAc,EAAA;AACpB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACjB,EAAE,CAAC,wBAAwB,EAAE;IAC/B;+GANW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,iGCR7B,wGAA8F,EAAA,MAAA,EAAA,CAAA,6iDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FDQjF,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,eAAA,EAGH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wGAAA,EAAA,MAAA,EAAA,CAAA,6iDAAA,CAAA,EAAA;;;AENjD;;AAEG;;;;"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, model, input, viewChild, output, signal, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
|
|
4
|
-
import { BsCopyDirective } from '@mintplayer/ng-bootstrap/copy';
|
|
5
|
-
import { BsOffcanvasHostComponent, BsOffcanvasContentDirective } from '@mintplayer/ng-bootstrap/offcanvas';
|
|
6
|
-
import * as i1 from 'ngx-highlightjs';
|
|
7
|
-
import { HighlightModule } from 'ngx-highlightjs';
|
|
8
|
-
|
|
9
|
-
class BsCodeSnippetComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.announcer = inject(BsLiveAnnouncerService);
|
|
12
|
-
this.offcanvasVisible = model(false, ...(ngDevMode ? [{ debugName: "offcanvasVisible" }] : /* istanbul ignore next */ []));
|
|
13
|
-
this.codeToCopy = input('', ...(ngDevMode ? [{ debugName: "codeToCopy" }] : /* istanbul ignore next */ []));
|
|
14
|
-
this.language = input('', ...(ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []));
|
|
15
|
-
this.copiedTemplate = viewChild.required('copiedTemplate');
|
|
16
|
-
this.detectedLanguage = output();
|
|
17
|
-
this.detectedLanguageValue = signal('code', ...(ngDevMode ? [{ debugName: "detectedLanguageValue" }] : /* istanbul ignore next */ []));
|
|
18
|
-
effect(() => {
|
|
19
|
-
const language = this.detectedLanguageValue();
|
|
20
|
-
this.detectedLanguage.emit(language);
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
copiedHtml() {
|
|
24
|
-
this.announcer.announce('Copied to clipboard');
|
|
25
|
-
this.offcanvasVisible.set(true);
|
|
26
|
-
setTimeout(() => this.offcanvasVisible.set(false), 3000);
|
|
27
|
-
}
|
|
28
|
-
onHighlighted(result) {
|
|
29
|
-
this.detectedLanguageValue.set(result?.language ?? 'code');
|
|
30
|
-
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCodeSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.11", type: BsCodeSnippetComponent, isStandalone: true, selector: "bs-code-snippet", inputs: { offcanvasVisible: { classPropertyName: "offcanvasVisible", publicName: "offcanvasVisible", isSignal: true, isRequired: false, transformFunction: null }, codeToCopy: { classPropertyName: "codeToCopy", publicName: "codeToCopy", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { offcanvasVisible: "offcanvasVisibleChange", detectedLanguage: "detectedLanguage" }, viewQueries: [{ propertyName: "copiedTemplate", first: true, predicate: ["copiedTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"position-relative\">\n <button #copyBtn [bsCopy]=\"codeToCopy()\" (bsCopied)=\"copiedHtml()\" class=\"btn btn-link rounded-0 text-light position-absolute copy-btn\">\n Copy {{ detectedLanguageValue() }}\n </button>\n <pre class=\"white-space-normal\">\n <code class=\"d-block white-space-pre\" [highlight]=\"codeToCopy()\" [language]=\"language()\" (highlighted)=\"onHighlighted($event)\"></code>\n </pre>\n <bs-offcanvas [(isVisible)]=\"offcanvasVisible\" [position]=\"'bottom'\">\n <div *bsOffcanvasContent class=\"p-3 bg-dark text-light\">Copied!</div>\n </bs-offcanvas>\n</div>", styles: [".copy-btn{right:0}\n"], dependencies: [{ kind: "directive", type: BsCopyDirective, selector: "[bsCopy]", inputs: ["bsCopy"], outputs: ["bsCopied"] }, { kind: "component", type: BsOffcanvasHostComponent, selector: "bs-offcanvas", inputs: ["isVisible", "size", "position", "hasBackdrop"], outputs: ["isVisibleChange", "sizeChange", "positionChange", "hasBackdropChange", "backdropClick"] }, { kind: "directive", type: BsOffcanvasContentDirective, selector: "[bsOffcanvasContent]" }, { kind: "ngmodule", type: HighlightModule }, { kind: "directive", type: i1.Highlight, selector: "[highlight]", inputs: ["highlight", "language", "ignoreIllegals"], outputs: ["highlighted"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
33
|
-
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsCodeSnippetComponent, decorators: [{
|
|
35
|
-
type: Component,
|
|
36
|
-
args: [{ selector: 'bs-code-snippet', imports: [BsCopyDirective, BsOffcanvasHostComponent, BsOffcanvasContentDirective, HighlightModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"position-relative\">\n <button #copyBtn [bsCopy]=\"codeToCopy()\" (bsCopied)=\"copiedHtml()\" class=\"btn btn-link rounded-0 text-light position-absolute copy-btn\">\n Copy {{ detectedLanguageValue() }}\n </button>\n <pre class=\"white-space-normal\">\n <code class=\"d-block white-space-pre\" [highlight]=\"codeToCopy()\" [language]=\"language()\" (highlighted)=\"onHighlighted($event)\"></code>\n </pre>\n <bs-offcanvas [(isVisible)]=\"offcanvasVisible\" [position]=\"'bottom'\">\n <div *bsOffcanvasContent class=\"p-3 bg-dark text-light\">Copied!</div>\n </bs-offcanvas>\n</div>", styles: [".copy-btn{right:0}\n"] }]
|
|
37
|
-
}], ctorParameters: () => [], propDecorators: { offcanvasVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "offcanvasVisible", required: false }] }, { type: i0.Output, args: ["offcanvasVisibleChange"] }], codeToCopy: [{ type: i0.Input, args: [{ isSignal: true, alias: "codeToCopy", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], copiedTemplate: [{ type: i0.ViewChild, args: ['copiedTemplate', { isSignal: true }] }], detectedLanguage: [{ type: i0.Output, args: ["detectedLanguage"] }] } });
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Generated bundle index. Do not edit.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
export { BsCodeSnippetComponent };
|
|
44
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-code-snippet.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-code-snippet.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/code-snippet.component.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/code-snippet.component.html","../../../../libs/mintplayer-ng-bootstrap/code-snippet/mintplayer-ng-bootstrap-code-snippet.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, effect, inject, input, model, output, signal, TemplateRef, viewChild } from '@angular/core';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsCopyDirective } from '@mintplayer/ng-bootstrap/copy';\nimport { BsOffcanvasHostComponent, BsOffcanvasContentDirective } from '@mintplayer/ng-bootstrap/offcanvas';\nimport { HighlightModule } from 'ngx-highlightjs';\nimport { HighlightResult } from 'highlight.js';\n\n@Component({\n selector: 'bs-code-snippet',\n templateUrl: './code-snippet.component.html',\n styleUrls: ['./code-snippet.component.scss'],\n imports: [BsCopyDirective, BsOffcanvasHostComponent, BsOffcanvasContentDirective, HighlightModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCodeSnippetComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n constructor() {\n effect(() => {\n const language = this.detectedLanguageValue();\n this.detectedLanguage.emit(language);\n });\n }\n\n offcanvasVisible = model(false);\n codeToCopy = input<string>('');\n language = input<string>('');\n readonly copiedTemplate = viewChild.required<TemplateRef<any>>('copiedTemplate');\n detectedLanguage = output<string>();\n\n detectedLanguageValue = signal<string>('code');\n\n copiedHtml() {\n this.announcer.announce('Copied to clipboard');\n this.offcanvasVisible.set(true);\n setTimeout(() => this.offcanvasVisible.set(false), 3000);\n }\n\n onHighlighted(result: HighlightResult | null) {\n this.detectedLanguageValue.set(result?.language ?? 'code');\n }\n\n}\n","<div class=\"position-relative\">\n <button #copyBtn [bsCopy]=\"codeToCopy()\" (bsCopied)=\"copiedHtml()\" class=\"btn btn-link rounded-0 text-light position-absolute copy-btn\">\n Copy {{ detectedLanguageValue() }}\n </button>\n <pre class=\"white-space-normal\">\n <code class=\"d-block white-space-pre\" [highlight]=\"codeToCopy()\" [language]=\"language()\" (highlighted)=\"onHighlighted($event)\"></code>\n </pre>\n <bs-offcanvas [(isVisible)]=\"offcanvasVisible\" [position]=\"'bottom'\">\n <div *bsOffcanvasContent class=\"p-3 bg-dark text-light\">Copied!</div>\n </bs-offcanvas>\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAca,sBAAsB,CAAA;AAGjC,IAAA,WAAA,GAAA;AAFQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAs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