@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-priority-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav-item/priority-nav-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.html","../../../../libs/mintplayer-ng-bootstrap/priority-nav/mintplayer-ng-bootstrap-priority-nav.ts"],"sourcesContent":["import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\n\n@Directive({\n selector: '[bsPriorityNavItem]',\n})\nexport class BsPriorityNavItemDirective {\n templateRef = inject(TemplateRef);\n\n priority = input<number | null>(null, { alias: 'bsPriorityNavItem' });\n hideBelow = input<Breakpoint | null>(null, { alias: 'bsPriorityNavItemHideBelow' });\n\n readonly id: number = ++BsPriorityNavItemDirective.idCounter;\n private static idCounter = 0;\n}\n","import { isPlatformServer, NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef,\n inject, input, output, PLATFORM_ID, signal, TemplateRef, viewChild, viewChildren\n} from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-swiper/observe-size';\nimport { BsPriorityNavItemDirective } from '../priority-nav-item/priority-nav-item.directive';\n\n@Component({\n selector: 'bs-priority-nav',\n templateUrl: './priority-nav.component.html',\n styleUrls: ['./priority-nav.component.scss'],\n imports: [NgClass, NgTemplateOutlet, BsNoNoscriptDirective, BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:click)': 'onDocumentClick($event)',\n '(document:keydown.escape)': 'onEscape()',\n '(window:resize)': 'onWindowResize()',\n },\n})\nexport class BsPriorityNavComponent {\n private platformId = inject(PLATFORM_ID);\n private element = inject(ElementRef);\n private overlayStack = inject(BsOverlayStackService);\n private stackToken: symbol | null = null;\n\n isServerSide = isPlatformServer(this.platformId);\n\n private static counter = 0;\n uid = `pn-${++BsPriorityNavComponent.counter}`;\n\n // Inputs\n moreLabel = input('More');\n moreLabelTemplate = input<TemplateRef<{ $implicit: boolean }> | null>(null);\n collapseAt = input<Breakpoint | null>(null);\n overflowFrom = input<'start' | 'end'>('end');\n hideEmptyMore = input(true);\n ariaLabel = input<string>('Navigation');\n\n // Outputs\n overflowChange = output<BsPriorityNavItemDirective[]>();\n\n // Children\n readonly items = contentChildren(BsPriorityNavItemDirective);\n\n // Per-item width measurements (from the off-screen measure strip)\n private measureSizers = viewChildren<BsObserveSizeDirective>('measureItem');\n // Visible strip width and its element (for reading computed `column-gap`)\n stripSizer = viewChild<BsObserveSizeDirective>('stripSize');\n private stripElement = viewChild('stripSize', { read: ElementRef });\n // More button width\n moreSizer = viewChild<BsObserveSizeDirective>('moreSize');\n\n // Open/closed state for the More menu (JS path)\n isMoreOpen = signal(false);\n windowWidth = signal<number>(0);\n\n collapseAtPx = computed(() => {\n switch (this.collapseAt()) {\n case 'xxl': return 1400;\n case 'xl': return 1200;\n case 'lg': return 992;\n case 'md': return 768;\n case 'sm': return 576;\n case 'xs': return 0;\n default: return null;\n }\n });\n\n forceCollapse = computed(() => {\n const bp = this.collapseAtPx();\n if (bp === null) return false;\n const w = this.windowWidth();\n return w > 0 && w < bp;\n });\n\n // Items in overflow order. Convention: a LOWER priority number means MORE\n // important (priority: 1 stays visible longest). Items without a priority\n // are treated as least important and overflow before any prioritized item.\n // Tiebreaker uses declaration order (last-declared overflows first when\n // overflowFrom='end').\n overflowOrder = computed(() => {\n const items = this.items();\n const fromEnd = this.overflowFrom() === 'end';\n return [...items]\n .map((item, index) => ({ item, index, priority: item.priority() }))\n .sort((a, b) => {\n // Unprioritized items overflow first\n if (a.priority === null && b.priority !== null) return -1;\n if (a.priority !== null && b.priority === null) return 1;\n // Both prioritized: higher number overflows first (less important)\n if (a.priority !== null && b.priority !== null && a.priority !== b.priority) {\n return b.priority - a.priority;\n }\n // Tiebreaker by declaration order\n return fromEnd ? b.index - a.index : a.index - b.index;\n })\n .map(x => x.item);\n });\n\n // Per-item width map (from measure strip, indexed by item id, in items() order)\n itemWidths = computed<Map<number, number>>(() => {\n if (this.isServerSide) return new Map();\n const sizers = this.measureSizers();\n const items = this.items();\n const map = new Map<number, number>();\n items.forEach((item, i) => {\n const sizer = sizers[i];\n if (!sizer) return;\n const w = sizer.width();\n if (w !== undefined) map.set(item.id, w);\n });\n return map;\n });\n\n // The strip's `column-gap` (or `gap`) value in pixels. Read from computed\n // style so consumers' `gap` declarations get factored into the overflow math\n // — without this, items overflow late or layout-shift when a gap is set.\n // Re-read whenever the strip width changes (covers media-query gap changes\n // that piggy-back on the same breakpoint).\n itemGap = computed(() => {\n if (this.isServerSide) return 0;\n this.stripSizer()?.width();\n const el = this.stripElement()?.nativeElement as HTMLElement | undefined;\n if (!el) return 0;\n const cs = getComputedStyle(el);\n const raw = parseFloat(cs.columnGap || cs.gap || '0');\n return Number.isFinite(raw) ? raw : 0;\n });\n\n overflowingIds = computed<Set<number>>(() => {\n if (this.isServerSide) return new Set();\n if (this.forceCollapse()) {\n return new Set(this.items().map(i => i.id));\n }\n\n const stripWidth = this.stripSizer()?.width() ?? 0;\n const moreWidth = this.moreSizer()?.width() ?? 0;\n const widths = this.itemWidths();\n const gap = this.itemGap();\n\n if (stripWidth === 0 || widths.size === 0) return new Set();\n\n // Layout when all items fit (no More toggle): N items separated by N-1 gaps\n const sumWidths = Array.from(widths.values()).reduce((a, b) => a + b, 0);\n const allVisibleWidth = sumWidths + gap * Math.max(0, widths.size - 1);\n if (allVisibleWidth <= stripWidth) return new Set();\n\n // Need overflow → More toggle is shown. Layout when K items are kicked:\n // (N - K) items + 1 More toggle = (N - K + 1) elements with (N - K) gaps\n const overflowing = new Set<number>();\n let visibleSum = sumWidths;\n let visibleCount = widths.size;\n\n for (const item of this.overflowOrder()) {\n const totalWithMore = visibleSum + moreWidth + gap * visibleCount;\n if (totalWithMore <= stripWidth) break;\n visibleSum -= widths.get(item.id) ?? 0;\n visibleCount -= 1;\n overflowing.add(item.id);\n }\n return overflowing;\n });\n\n hasAnyOverflow = computed(() => this.overflowingIds().size > 0);\n showMoreButton = computed(() => !this.hideEmptyMore() || this.hasAnyOverflow());\n\n // When every item is overflowing the toggle ends up at the start edge of\n // the strip (no inline items push it). Anchor the dropdown to that side\n // so it stays visually attached to the toggle.\n fullyCollapsed = computed(() => {\n const items = this.items();\n return items.length > 0 && this.overflowingIds().size === items.length;\n });\n\n // Derived per-item view used by all three rendering passes (measure strip,\n // inline strip, overflow menu). Pre-computes the breakpoint class string and\n // the JS-mode-only hide flags so the template can stay purely declarative —\n // no method calls, no inline `!isServerSide` guards. The SSR/noscript path\n // relies on CSS media queries instead of these flags, so both `hideInline`\n // and `hideInOverflow` are forced to false on the server.\n itemsWithMeta = computed(() => {\n const items = this.items();\n const overflowing = this.overflowingIds();\n const ssr = this.isServerSide;\n return items.map(item => {\n const bp = item.hideBelow();\n const isOverflowing = overflowing.has(item.id);\n return {\n item,\n hideBelowClass: bp ? `priority-nav-item-hide-below-${bp}` : '',\n hideInline: !ssr && isOverflowing,\n hideInOverflow: !ssr && !isOverflowing,\n };\n });\n });\n\n constructor() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n\n effect(() => {\n const overflowing = this.overflowingIds();\n const overflowingItems = this.items().filter(i => overflowing.has(i.id));\n this.overflowChange.emit(overflowingItems);\n });\n\n effect(() => {\n const open = this.isMoreOpen();\n if (open && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!open && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n }\n\n onWindowResize() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n }\n\n toggleMore() {\n this.isMoreOpen.update(v => !v);\n }\n\n onEscape() {\n if (this.isMoreOpen() && this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.isMoreOpen.set(false);\n }\n }\n\n onDocumentClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n if (!this.element.nativeElement.contains(event.target as Node)) {\n this.isMoreOpen.set(false);\n }\n }\n\n}\n","<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox d-none\" bsNoNoscript>\n }\n\n @if (!isServerSide) {\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\">\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\"\n role=\"button\" tabindex=\"0\"\n aria-haspopup=\"true\"\n [attr.aria-controls]=\"uid + '-overflow'\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <button bsObserveSize #moreSize=\"bsObserveSize\" type=\"button\"\n class=\"priority-nav-more-toggle\"\n [class.priority-nav-hidden]=\"!showMoreButton()\"\n (click)=\"toggleMore()\"\n aria-haspopup=\"true\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n }\n </div>\n\n <div [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n role=\"menu\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n role=\"menuitem\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">▾</span>\n</ng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AAA,CACzB,WAAW,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,iEAEpB,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtD1D;;AAEG;;;;"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ChangeDetectionStrategy, Component, computed } from '@angular/core';
|
|
3
|
-
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
|
-
|
|
5
|
-
class BsProgressComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.height = input(null, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
8
|
-
this.isIndeterminate = input(false, ...(ngDevMode ? [{ debugName: "isIndeterminate" }] : /* istanbul ignore next */ []));
|
|
9
|
-
this.ariaLabel = input('Loading', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
10
|
-
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: BsProgressComponent, isStandalone: true, selector: "bs-progress", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, isIndeterminate: { classPropertyName: "isIndeterminate", publicName: "isIndeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.height.px": "height()", "class.d-block": "true", "class.overflow-hidden": "true" } }, ngImport: i0, template: "<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host .progress,:host .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host .progress-bar{transition:none}}:host .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host .progress-stacked>.progress{overflow:visible}:host .progress-stacked>.progress>.progress-bar{width:100%}:host .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host .progress-bar-animated{animation:none}}:host .progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsProgressComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{ selector: 'bs-progress', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
17
|
-
'[style.height.px]': 'height()',
|
|
18
|
-
'[class.d-block]': 'true',
|
|
19
|
-
'[class.overflow-hidden]': 'true',
|
|
20
|
-
}, template: "<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host .progress,:host .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host .progress-bar{transition:none}}:host .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host .progress-stacked>.progress{overflow:visible}:host .progress-stacked>.progress>.progress-bar{width:100%}:host .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host .progress-bar-animated{animation:none}}:host .progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"] }]
|
|
21
|
-
}], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], isIndeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "isIndeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
22
|
-
|
|
23
|
-
class BsProgressBarComponent {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.minimum = input(0, ...(ngDevMode ? [{ debugName: "minimum" }] : /* istanbul ignore next */ []));
|
|
26
|
-
this.maximum = input(100, ...(ngDevMode ? [{ debugName: "maximum" }] : /* istanbul ignore next */ []));
|
|
27
|
-
this.value = input(50, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
28
|
-
this.color = input(Color.primary, ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
29
|
-
this.striped = input(false, ...(ngDevMode ? [{ debugName: "striped" }] : /* istanbul ignore next */ []));
|
|
30
|
-
this.animated = input(false, ...(ngDevMode ? [{ debugName: "animated" }] : /* istanbul ignore next */ []));
|
|
31
|
-
this.ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
32
|
-
this.percentage = computed(() => {
|
|
33
|
-
const min = this.minimum();
|
|
34
|
-
const max = this.maximum();
|
|
35
|
-
const val = this.value();
|
|
36
|
-
return (val - min) / (max - min) * 100;
|
|
37
|
-
}, ...(ngDevMode ? [{ debugName: "percentage" }] : /* istanbul ignore next */ []));
|
|
38
|
-
this.width = computed(() => `${this.percentage()}%`, ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
39
|
-
this.colorClassComputed = computed(() => {
|
|
40
|
-
const name = Color[this.color()];
|
|
41
|
-
return `bg-${name}`;
|
|
42
|
-
}, ...(ngDevMode ? [{ debugName: "colorClassComputed" }] : /* istanbul ignore next */ []));
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: BsProgressBarComponent, isStandalone: true, selector: "bs-progress-bar", inputs: { minimum: { classPropertyName: "minimum", publicName: "minimum", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.progress-bar": "true", "class.progress-bar-striped": "striped()", "class.progress-bar-animated": "animated()", "class": "colorClassComputed()", "style.width": "width()", "attr.role": "\"progressbar\"", "attr.aria-valuenow": "value()", "attr.aria-valuemin": "minimum()", "attr.aria-valuemax": "maximum()", "attr.aria-label": "ariaLabel()" } }, ngImport: i0, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host ::ng-deep .progress,:host ::ng-deep .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host ::ng-deep .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar{transition:none}}:host ::ng-deep .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host ::ng-deep .progress-stacked>.progress{overflow:visible}:host ::ng-deep .progress-stacked>.progress>.progress-bar{width:100%}:host ::ng-deep .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsProgressBarComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'bs-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
50
|
-
'[class.progress-bar]': 'true',
|
|
51
|
-
'[class.progress-bar-striped]': 'striped()',
|
|
52
|
-
'[class.progress-bar-animated]': 'animated()',
|
|
53
|
-
'[class]': 'colorClassComputed()',
|
|
54
|
-
'[style.width]': 'width()',
|
|
55
|
-
'[attr.role]': '"progressbar"',
|
|
56
|
-
'[attr.aria-valuenow]': 'value()',
|
|
57
|
-
'[attr.aria-valuemin]': 'minimum()',
|
|
58
|
-
'[attr.aria-valuemax]': 'maximum()',
|
|
59
|
-
'[attr.aria-label]': 'ariaLabel()',
|
|
60
|
-
}, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host ::ng-deep .progress,:host ::ng-deep .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host ::ng-deep .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar{transition:none}}:host ::ng-deep .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host ::ng-deep .progress-stacked>.progress{overflow:visible}:host ::ng-deep .progress-stacked>.progress>.progress-bar{width:100%}:host ::ng-deep .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"] }]
|
|
61
|
-
}], propDecorators: { minimum: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimum", required: false }] }], maximum: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Generated bundle index. Do not edit.
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
export { BsProgressBarComponent, BsProgressComponent };
|
|
68
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-progress-bar.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-progress-bar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/mintplayer-ng-bootstrap-progress-bar.ts"],"sourcesContent":["import { Component, input, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-progress',\n templateUrl: './progress.component.html',\n styleUrls: ['./progress.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.height.px]': 'height()',\n '[class.d-block]': 'true',\n '[class.overflow-hidden]': 'true',\n },\n})\nexport class BsProgressComponent {\n readonly height = input<number | null>(null);\n readonly isIndeterminate = input(false);\n readonly ariaLabel = input<string>('Loading');\n}\n","<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-progress-bar',\n templateUrl: './progress-bar.component.html',\n styleUrls: ['./progress-bar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.progress-bar]': 'true',\n '[class.progress-bar-striped]': 'striped()',\n '[class.progress-bar-animated]': 'animated()',\n '[class]': 'colorClassComputed()',\n '[style.width]': 'width()',\n '[attr.role]': '\"progressbar\"',\n '[attr.aria-valuenow]': 'value()',\n '[attr.aria-valuemin]': 'minimum()',\n '[attr.aria-valuemax]': 'maximum()',\n '[attr.aria-label]': 'ariaLabel()',\n },\n})\nexport class BsProgressBarComponent {\n\n minimum = input<number>(0);\n maximum = input<number>(100);\n value = input<number>(50);\n color = input<Color>(Color.primary);\n striped = input(false);\n animated = input(false);\n ariaLabel = input<string | null>(null);\n\n percentage = computed(() => {\n const min = this.minimum();\n const max = this.maximum();\n const val = this.value();\n return (val - min) / (max - min) * 100;\n });\n\n width = computed(() => `${this.percentage()}%`);\n\n colorClassComputed = computed(() => {\n const name = Color[this.color()];\n return `bg-${name}`;\n });\n}\n","","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAaa,mBAAmB,CAAA;AAXhC,IAAA,WAAA,GAAA;AAYW,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,IAAI,6EAAC;AACnC,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK,CAAC,KAAK,sFAAC;AAC9B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,SAAS,gFAAC;AAC9C,IAAA;+GAJY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,2lBCbhC,gQAOA,EAAA,MAAA,EAAA,CAAA,otDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FDMa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAX/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,eAAA,EAGN,uB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ectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
class BsRangeValueAccessor {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.host = inject(BsRangeComponent);
|
|
8
|
-
}
|
|
9
|
-
onInputEvent(ev) {
|
|
10
|
-
if (this.onValueChange) {
|
|
11
|
-
const val = parseFloat(ev.target.value);
|
|
12
|
-
this.onValueChange(val);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//#region ControlValueAccessor implementation
|
|
16
|
-
registerOnChange(fn) {
|
|
17
|
-
this.onValueChange = fn;
|
|
18
|
-
}
|
|
19
|
-
registerOnTouched(fn) {
|
|
20
|
-
this.onTouched = fn;
|
|
21
|
-
}
|
|
22
|
-
writeValue(value) {
|
|
23
|
-
if (this.host.slider() && (typeof value === 'number')) {
|
|
24
|
-
this.host.slider().nativeElement.value = value.toString();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
setDisabledState(isDisabled) {
|
|
28
|
-
if (this.host.slider()) {
|
|
29
|
-
this.host.slider().nativeElement.disabled = isDisabled;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsRangeValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsRangeValueAccessor, isStandalone: true, selector: "bs-range", host: { listeners: { "input": "onInputEvent($event)" } }, providers: [{
|
|
34
|
-
provide: NG_VALUE_ACCESSOR,
|
|
35
|
-
useExisting: forwardRef(() => BsRangeValueAccessor),
|
|
36
|
-
multi: true,
|
|
37
|
-
}], ngImport: i0 }); }
|
|
38
|
-
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsRangeValueAccessor, decorators: [{
|
|
40
|
-
type: Directive,
|
|
41
|
-
args: [{
|
|
42
|
-
selector: 'bs-range',
|
|
43
|
-
providers: [{
|
|
44
|
-
provide: NG_VALUE_ACCESSOR,
|
|
45
|
-
useExisting: forwardRef(() => BsRangeValueAccessor),
|
|
46
|
-
multi: true,
|
|
47
|
-
}],
|
|
48
|
-
host: {
|
|
49
|
-
'(input)': 'onInputEvent($event)',
|
|
50
|
-
},
|
|
51
|
-
}]
|
|
52
|
-
}] });
|
|
53
|
-
|
|
54
|
-
class BsRangeComponent {
|
|
55
|
-
constructor() {
|
|
56
|
-
this.slider = viewChild.required('slider');
|
|
57
|
-
this.min = input(0, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
58
|
-
this.max = input(10, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
59
|
-
this.step = input(1, ...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
|
|
60
|
-
this.ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
61
|
-
}
|
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.11", type: BsRangeComponent, isStandalone: true, selector: "bs-range", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsRangeValueAccessor }], ngImport: i0, template: "<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n", styles: [":host ::ng-deep .form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}:host ::ng-deep .form-range:focus{outline:0}:host ::ng-deep .form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range::-moz-focus-outer{border:0}:host ::ng-deep .form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-webkit-slider-thumb{transition:none}}:host ::ng-deep .form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-moz-range-thumb{transition:none}}:host ::ng-deep .form-range::-moz-range-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range:disabled{pointer-events:none}:host ::ng-deep .form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}:host ::ng-deep .form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
64
|
-
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsRangeComponent, decorators: [{
|
|
66
|
-
type: Component,
|
|
67
|
-
args: [{ selector: 'bs-range', changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsRangeValueAccessor], template: "<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n", styles: [":host ::ng-deep .form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}:host ::ng-deep .form-range:focus{outline:0}:host ::ng-deep .form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range::-moz-focus-outer{border:0}:host ::ng-deep .form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-webkit-slider-thumb{transition:none}}:host ::ng-deep .form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-moz-range-thumb{transition:none}}:host ::ng-deep .form-range::-moz-range-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range:disabled{pointer-events:none}:host ::ng-deep .form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}:host ::ng-deep .form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}\n"] }]
|
|
68
|
-
}], propDecorators: { slider: [{ type: i0.ViewChild, args: ['slider', { isSignal: true }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Generated bundle index. Do not edit.
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
export { BsRangeComponent, BsRangeValueAccessor };
|
|
75
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-range.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-range.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/range/src/value-accessor/range-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/range/src/component/range.component.ts","../../../../libs/mintplayer-ng-bootstrap/range/src/component/range.component.html","../../../../libs/mintplayer-ng-bootstrap/range/mintplayer-ng-bootstrap-range.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsRangeComponent } from '../component/range.component';\n\n@Directive({\n selector: 'bs-range',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRangeValueAccessor),\n multi: true,\n }],\n host: {\n '(input)': 'onInputEvent($event)',\n },\n})\nexport class BsRangeValueAccessor implements ControlValueAccessor {\n private host = inject(BsRangeComponent);\n\n onValueChange?: (value: number) => void;\n onTouched?: () => void;\n\n onInputEvent(ev: Event) {\n if (this.onValueChange) {\n const val = parseFloat((<HTMLInputElement>ev.target).value);\n this.onValueChange(val);\n }\n }\n\n //#region ControlValueAccessor implementation\n registerOnChange(fn: (_: any) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value?: number) {\n if (this.host.slider() && (typeof value === 'number')) {\n this.host.slider().nativeElement.value = value.toString();\n }\n }\n\n setDisabledState(isDisabled: boolean) {\n if (this.host.slider()) {\n this.host.slider().nativeElement.disabled = isDisabled;\n }\n }\n //#endregion\n\n}\n","import { Component, ElementRef, input, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsRangeValueAccessor } from '../value-accessor/range-value-accessor';\n\n@Component({\n selector: 'bs-range',\n templateUrl: './range.component.html',\n styleUrls: ['./range.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsRangeValueAccessor],\n})\nexport class BsRangeComponent {\n readonly slider = viewChild.required<ElementRef<HTMLInputElement>>('slider');\n\n readonly min = input(0);\n readonly max = input(10);\n readonly step = input(1);\n readonly ariaLabel = input<string | null>(null);\n}\n","<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAea,oBAAoB,CAAA;AAXjC,IAAA,WAAA,GAAA;AAYU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAkCxC,IAAA;AA7BC,IAAA,YAAY,CAAC,EAAS,EAAA;AACpB,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,MAAM,GAAG,GAAG,UAAU,CAAoB,EAAE,CAAC,MAAO,CAAC,KAAK,CAAC;AAC3D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EAG6B,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,KAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,KAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEX7E;;AAEG;;;;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, model, signal, output, viewChildren, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
class BsRatingComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.maximum = input(5, ...(ngDevMode ? [{ debugName: "maximum" }] : /* istanbul ignore next */ []));
|
|
7
|
-
this.value = model(3, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
8
|
-
this.previewValue = signal(null, ...(ngDevMode ? [{ debugName: "previewValue" }] : /* istanbul ignore next */ []));
|
|
9
|
-
this.starsChange = output();
|
|
10
|
-
this.starButtons = viewChildren('star', ...(ngDevMode ? [{ debugName: "starButtons" }] : /* istanbul ignore next */ []));
|
|
11
|
-
this.stars = computed(() => {
|
|
12
|
-
const v = this.previewValue() ?? this.value();
|
|
13
|
-
const max = this.maximum();
|
|
14
|
-
return [
|
|
15
|
-
...[...Array(v).keys()].map(() => true),
|
|
16
|
-
...[...Array(max - v).keys()].map(() => false)
|
|
17
|
-
];
|
|
18
|
-
}, ...(ngDevMode ? [{ debugName: "stars" }] : /* istanbul ignore next */ []));
|
|
19
|
-
effect(() => {
|
|
20
|
-
const v = this.previewValue() ?? this.value();
|
|
21
|
-
this.starsChange.emit(v);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
hoverValue(index) {
|
|
25
|
-
this.previewValue.set(index + 1);
|
|
26
|
-
}
|
|
27
|
-
selectValue(index) {
|
|
28
|
-
this.value.set(index + 1);
|
|
29
|
-
}
|
|
30
|
-
onMouseLeave() {
|
|
31
|
-
this.previewValue.set(null);
|
|
32
|
-
}
|
|
33
|
-
onKeydown(event) {
|
|
34
|
-
const max = this.maximum();
|
|
35
|
-
const cur = this.value();
|
|
36
|
-
let next = null;
|
|
37
|
-
switch (event.key) {
|
|
38
|
-
case 'ArrowRight':
|
|
39
|
-
case 'ArrowDown':
|
|
40
|
-
next = Math.min(cur + 1, max);
|
|
41
|
-
break;
|
|
42
|
-
case 'ArrowLeft':
|
|
43
|
-
case 'ArrowUp':
|
|
44
|
-
next = Math.max(cur - 1, 1);
|
|
45
|
-
break;
|
|
46
|
-
case 'Home':
|
|
47
|
-
next = 1;
|
|
48
|
-
break;
|
|
49
|
-
case 'End':
|
|
50
|
-
next = max;
|
|
51
|
-
break;
|
|
52
|
-
default:
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
event.preventDefault();
|
|
56
|
-
if (next !== cur) {
|
|
57
|
-
this.value.set(next);
|
|
58
|
-
}
|
|
59
|
-
this.starButtons()[next - 1]?.nativeElement.focus();
|
|
60
|
-
}
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: BsRatingComponent, isStandalone: true, selector: "bs-rating", inputs: { maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", starsChange: "starsChange" }, host: { attributes: { "role": "radiogroup", "aria-label": "Rating" }, listeners: { "mouseleave": "onMouseLeave()", "keydown": "onKeydown($event)" } }, viewQueries: [{ propertyName: "starButtons", predicate: ["star"], descendants: true, isSignal: true }], ngImport: i0, template: "@for (star of stars(); let i = $index; track i) {\n <button type=\"button\"\n #star\n class=\"cursor-pointer btn-star\"\n role=\"radio\"\n [attr.tabindex]=\"value() === (i + 1) ? 0 : -1\"\n (mouseenter)=\"hoverValue(i)\"\n (click)=\"selectValue(i)\"\n [attr.aria-label]=\"'Rate ' + (i + 1) + ' out of ' + maximum() + ' stars'\"\n [attr.aria-checked]=\"value() === (i + 1)\">\n <span aria-hidden=\"true\">{{ star ? '★' : '☆' }}</span>\n </button>\n}\n", styles: [".btn-star{background:none;border:none;padding:0;font-size:inherit;color:inherit;line-height:1}.btn-star:focus{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
63
|
-
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsRatingComponent, decorators: [{
|
|
65
|
-
type: Component,
|
|
66
|
-
args: [{ selector: 'bs-rating', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
67
|
-
'role': 'radiogroup',
|
|
68
|
-
'aria-label': 'Rating',
|
|
69
|
-
'(mouseleave)': 'onMouseLeave()',
|
|
70
|
-
'(keydown)': 'onKeydown($event)',
|
|
71
|
-
}, template: "@for (star of stars(); let i = $index; track i) {\n <button type=\"button\"\n #star\n class=\"cursor-pointer btn-star\"\n role=\"radio\"\n [attr.tabindex]=\"value() === (i + 1) ? 0 : -1\"\n (mouseenter)=\"hoverValue(i)\"\n (click)=\"selectValue(i)\"\n [attr.aria-label]=\"'Rate ' + (i + 1) + ' out of ' + maximum() + ' stars'\"\n [attr.aria-checked]=\"value() === (i + 1)\">\n <span aria-hidden=\"true\">{{ star ? '★' : '☆' }}</span>\n </button>\n}\n", styles: [".btn-star{background:none;border:none;padding:0;font-size:inherit;color:inherit;line-height:1}.btn-star:focus{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}\n"] }]
|
|
72
|
-
}], ctorParameters: () => [], propDecorators: { maximum: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], starsChange: [{ type: i0.Output, args: ["starsChange"] }], starButtons: [{ type: i0.ViewChildren, args: ['star', { isSignal: true }] }] } });
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Generated bundle index. Do not edit.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
export { BsRatingComponent };
|
|
79
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-rating.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-rating.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/rating/src/component/rating.component.ts","../../../../libs/mintplayer-ng-bootstrap/rating/src/component/rating.component.html","../../../../libs/mintplayer-ng-bootstrap/rating/mintplayer-ng-bootstrap-rating.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, input, model, output, signal, viewChildren } from '@angular/core';\n\n@Component({\n selector: 'bs-rating',\n templateUrl: './rating.component.html',\n styleUrls: ['./rating.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'role': 'radiogroup',\n 'aria-label': 'Rating',\n '(mouseleave)': 'onMouseLeave()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class BsRatingComponent {\n\n constructor() {\n effect(() => {\n const v = this.previewValue() ?? this.value();\n this.starsChange.emit(v);\n });\n }\n\n maximum = input<number>(5);\n value = model<number>(3);\n previewValue = signal<number | null>(null);\n starsChange = output<number>();\n\n readonly starButtons = viewChildren<ElementRef<HTMLButtonElement>>('star');\n\n stars = computed(() => {\n const v = this.previewValue() ?? this.value();\n const max = this.maximum();\n return [\n ...[...Array(v).keys()].map(() => true),\n ...[...Array(max - v).keys()].map(() => false)\n ];\n });\n\n hoverValue(index: number) {\n this.previewValue.set(index + 1);\n }\n\n selectValue(index: number) {\n this.value.set(index + 1);\n }\n\n onMouseLeave() {\n this.previewValue.set(null);\n }\n\n onKeydown(event: KeyboardEvent) {\n const max = this.maximum();\n const cur = this.value();\n let next: number | null = null;\n switch (event.key) {\n case 'ArrowRight':\n case 'ArrowDown':\n next = Math.min(cur + 1, max);\n break;\n case 'ArrowLeft':\n case 'ArrowUp':\n next = Math.max(cur - 1, 1);\n break;\n case 'Home':\n next = 1;\n break;\n case 'End':\n next = max;\n break;\n default:\n return;\n }\n event.preventDefault();\n if (next !== cur) {\n this.value.set(next);\n }\n this.starButtons()[next - 1]?.nativeElement.focus();\n }\n}\n","@for (star of stars(); let i = $index; track i) {\n <button type=\"button\"\n #star\n class=\"cursor-pointer btn-star\"\n role=\"radio\"\n [attr.tabindex]=\"value() === (i + 1) ? 0 : -1\"\n (mouseenter)=\"hoverValue(i)\"\n (click)=\"selectValue(i)\"\n [attr.aria-label]=\"'Rate ' + (i + 1) + ' out of ' + maximum() + ' stars'\"\n [attr.aria-checked]=\"value() === (i + 1)\">\n <span aria-hidden=\"true\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EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,qoBCd9B,qhBAaA,EAAA,MAAA,EAAA,CAAA,kLAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FDCa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,eAAA,EAGJ,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,MAAM,EAAE,YAAY;AACpB,wBAAA,YAAY,EAAE,QAAQ;AACtB,wBAAA,cAAc,EAAE,gBAAgB;AAChC,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,QAAA,EAAA,qhBAAA,EAAA,MAAA,EAAA,CAAA,kLAAA,CAAA,EAAA;qYAgBkE,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE5B3E;;AAEG;;;;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, PLATFORM_ID, DestroyRef, signal, Directive } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Tracks `(prefers-reduced-motion: reduce)` live and exposes the result as a
|
|
7
|
-
* signal. Designed to be composed onto a host component via `hostDirectives`
|
|
8
|
-
* so the host can `inject(BsReducedMotionDirective)` and read `matches()` to
|
|
9
|
-
* gate animations / auto-advance / non-essential motion. SSR-safe — on the
|
|
10
|
-
* server (or in environments without `matchMedia`) the signal stays `false`.
|
|
11
|
-
*
|
|
12
|
-
* Usage:
|
|
13
|
-
* @Component({
|
|
14
|
-
* // ...
|
|
15
|
-
* hostDirectives: [BsReducedMotionDirective],
|
|
16
|
-
* })
|
|
17
|
-
* export class MyComponent {
|
|
18
|
-
* private readonly reducedMotion = inject(BsReducedMotionDirective);
|
|
19
|
-
* readonly animationsDisabled = computed(() => this.reducedMotion.matches());
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* Or attach as a template attribute and read via a template reference:
|
|
23
|
-
* <div bsReducedMotion #rm="bsReducedMotion">
|
|
24
|
-
* <span *ngIf="!rm.matches()">animated content</span>
|
|
25
|
-
* </div>
|
|
26
|
-
*/
|
|
27
|
-
class BsReducedMotionDirective {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.platformId = inject(PLATFORM_ID);
|
|
30
|
-
this.destroyRef = inject(DestroyRef);
|
|
31
|
-
this._matches = signal(false, ...(ngDevMode ? [{ debugName: "_matches" }] : /* istanbul ignore next */ []));
|
|
32
|
-
this.matches = this._matches.asReadonly();
|
|
33
|
-
if (isPlatformBrowser(this.platformId) &&
|
|
34
|
-
typeof window !== 'undefined' &&
|
|
35
|
-
typeof window.matchMedia === 'function') {
|
|
36
|
-
const mql = window.matchMedia('(prefers-reduced-motion: reduce)');
|
|
37
|
-
this._matches.set(mql.matches);
|
|
38
|
-
const listener = (e) => this._matches.set(e.matches);
|
|
39
|
-
mql.addEventListener('change', listener);
|
|
40
|
-
this.destroyRef.onDestroy(() => mql.removeEventListener('change', listener));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsReducedMotionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
44
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsReducedMotionDirective, isStandalone: true, selector: "[bsReducedMotion]", exportAs: ["bsReducedMotion"], ngImport: i0 }); }
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsReducedMotionDirective, decorators: [{
|
|
47
|
-
type: Directive,
|
|
48
|
-
args: [{
|
|
49
|
-
selector: '[bsReducedMotion]',
|
|
50
|
-
exportAs: 'bsReducedMotion',
|
|
51
|
-
}]
|
|
52
|
-
}], ctorParameters: () => [] });
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Generated bundle index. Do not edit.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
export { BsReducedMotionDirective };
|
|
59
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-reduced-motion.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-reduced-motion.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/reduced-motion/src/reduced-motion.directive.ts","../../../../libs/mintplayer-ng-bootstrap/reduced-motion/mintplayer-ng-bootstrap-reduced-motion.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { DestroyRef, Directive, inject, PLATFORM_ID, signal, type Signal } from '@angular/core';\n\n/**\n * Tracks `(prefers-reduced-motion: reduce)` live and exposes the result as a\n * signal. Designed to be composed onto a host component via `hostDirectives`\n * so the host can `inject(BsReducedMotionDirective)` and read `matches()` to\n * gate animations / auto-advance / non-essential motion. SSR-safe — on the\n * server (or in environments without `matchMedia`) the signal stays `false`.\n *\n * Usage:\n * @Component({\n * // ...\n * hostDirectives: [BsReducedMotionDirective],\n * })\n * export class MyComponent {\n * private readonly reducedMotion = inject(BsReducedMotionDirective);\n * readonly animationsDisabled = computed(() => this.reducedMotion.matches());\n * }\n *\n * Or attach as a template attribute and read via a template reference:\n * <div bsReducedMotion #rm=\"bsReducedMotion\">\n * <span *ngIf=\"!rm.matches()\">animated content</span>\n * </div>\n */\n@Directive({\n selector: '[bsReducedMotion]',\n exportAs: 'bsReducedMotion',\n})\nexport class BsReducedMotionDirective {\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n private readonly _matches = signal(false);\n\n readonly matches: Signal<boolean> = this._matches.asReadonly();\n\n constructor() {\n if (\n isPlatformBrowser(this.platformId) &&\n typeof window !== 'undefined' &&\n typeof window.matchMedia === 'function'\n ) {\n const mql = window.matchMedia('(prefers-reduced-motion: reduce)');\n this._matches.set(mql.matches);\n const listener = (e: MediaQueryListEvent) => this._matches.set(e.matches);\n mql.addEventListener('change', listener);\n this.destroyRef.onDestroy(() => mql.removeEventListener('change', listener));\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;;;;;;;;;AAqBG;MAKU,wBAAwB,CAAA;AAOnC,IAAA,WAAA,GAAA;AANiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK,+EAAC;AAEhC,QAAA,IAAA,CAAA,OAAO,GAAoB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;AAG5D,QAAA,IACE,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;YAClC,OAAO,MAAM,KAAK,WAAW;AAC7B,YAAA,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,EACvC;YACA,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,kCAAkC,CAAC;YACjE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC;AAC9B,YAAA,MAAM,QAAQ,GAAG,CAAC,CAAsB,KAAK,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;AACzE,YAAA,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACxC,YAAA,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC9E;IACF;+GAnBW,wBA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