@mintplayer/ng-bootstrap 20.6.3 → 21.1.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/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +41 -54
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +20 -38
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +8 -20
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +10 -10
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +32 -66
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +11 -11
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +207 -138
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +16 -19
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +252 -368
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +53 -49
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -37
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +12 -11
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -12
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +59 -98
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +19 -18
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +14 -14
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +48 -90
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +16 -16
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs +8 -9
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +11 -11
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +26 -26
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +44 -45
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs +29 -23
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +10 -30
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +224 -285
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +17 -30
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +64 -59
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +8 -8
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +61 -122
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +4 -5
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +19 -33
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +10 -30
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +80 -116
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +44 -73
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +16 -16
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +21 -49
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +43 -49
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +208 -782
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +43 -48
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +85 -111
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +48 -90
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +88 -55
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +24 -34
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +16 -42
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +10 -34
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +79 -85
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +20 -20
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -107
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +9 -40
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +24 -50
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +53 -58
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +56 -109
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +21 -33
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +27 -49
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +8 -8
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +31 -51
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +1 -1
- package/package.json +96 -96
- package/{accordion/index.d.ts → types/mintplayer-ng-bootstrap-accordion.d.ts} +11 -15
- package/{alert/index.d.ts → types/mintplayer-ng-bootstrap-alert.d.ts} +4 -9
- package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -0
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +25 -0
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +73 -0
- package/{close/index.d.ts → types/mintplayer-ng-bootstrap-close.d.ts} +1 -2
- package/{code-snippet/index.d.ts → types/mintplayer-ng-bootstrap-code-snippet.d.ts} +4 -5
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +170 -0
- package/{context-menu/index.d.ts → types/mintplayer-ng-bootstrap-context-menu.d.ts} +1 -1
- package/{datatable/index.d.ts → types/mintplayer-ng-bootstrap-datatable.d.ts} +11 -11
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +13 -0
- package/{dropdown/index.d.ts → types/mintplayer-ng-bootstrap-dropdown.d.ts} +17 -23
- package/{enhanced-paste/index.d.ts → types/mintplayer-ng-bootstrap-enhanced-paste.d.ts} +1 -3
- package/{file-upload/index.d.ts → types/mintplayer-ng-bootstrap-file-upload.d.ts} +1 -1
- package/{grid/index.d.ts → types/mintplayer-ng-bootstrap-grid.d.ts} +14 -26
- package/{let/index.d.ts → types/mintplayer-ng-bootstrap-let.d.ts} +0 -2
- package/{markdown/index.d.ts → types/mintplayer-ng-bootstrap-markdown.d.ts} +1 -5
- package/{modal/index.d.ts → types/mintplayer-ng-bootstrap-modal.d.ts} +4 -7
- package/{multiselect/index.d.ts → types/mintplayer-ng-bootstrap-multiselect.d.ts} +6 -6
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +11 -0
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +148 -0
- package/{navigation-lock/index.d.ts → types/mintplayer-ng-bootstrap-navigation-lock.d.ts} +2 -4
- package/{offcanvas/index.d.ts → types/mintplayer-ng-bootstrap-offcanvas.d.ts} +12 -14
- package/{ordinal-number/index.d.ts → types/mintplayer-ng-bootstrap-ordinal-number.d.ts} +1 -2
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +42 -0
- package/{placeholder/index.d.ts → types/mintplayer-ng-bootstrap-placeholder.d.ts} +3 -8
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +11 -0
- package/{popover/index.d.ts → types/mintplayer-ng-bootstrap-popover.d.ts} +15 -23
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +43 -0
- package/{range/index.d.ts → types/mintplayer-ng-bootstrap-range.d.ts} +1 -2
- package/types/mintplayer-ng-bootstrap-rating.d.ts +17 -0
- package/{resizable/index.d.ts → types/mintplayer-ng-bootstrap-resizable.d.ts} +7 -11
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +144 -0
- package/{scrollspy/index.d.ts → types/mintplayer-ng-bootstrap-scrollspy.d.ts} +14 -15
- package/{searchbox/index.d.ts → types/mintplayer-ng-bootstrap-searchbox.d.ts} +20 -27
- package/{select/index.d.ts → types/mintplayer-ng-bootstrap-select.d.ts} +14 -24
- package/{select2/index.d.ts → types/mintplayer-ng-bootstrap-select2.d.ts} +16 -14
- package/{shell/index.d.ts → types/mintplayer-ng-bootstrap-shell.d.ts} +6 -12
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +36 -0
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -0
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +76 -0
- package/{sticky-footer/index.d.ts → types/mintplayer-ng-bootstrap-sticky-footer.d.ts} +3 -3
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +64 -0
- package/types/mintplayer-ng-bootstrap-table.d.ts +11 -0
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +26 -0
- package/{toast/index.d.ts → types/mintplayer-ng-bootstrap-toast.d.ts} +5 -10
- package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +55 -0
- package/{tooltip/index.d.ts → types/mintplayer-ng-bootstrap-tooltip.d.ts} +5 -8
- package/{treeview/index.d.ts → types/mintplayer-ng-bootstrap-treeview.d.ts} +10 -15
- package/{trust-html/index.d.ts → types/mintplayer-ng-bootstrap-trust-html.d.ts} +0 -2
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +25 -0
- package/badge/index.d.ts +0 -16
- package/calendar/index.d.ts +0 -33
- package/carousel/index.d.ts +0 -67
- package/color-picker/index.d.ts +0 -197
- package/datepicker/index.d.ts +0 -20
- package/navbar/index.d.ts +0 -154
- package/navbar-toggler/index.d.ts +0 -17
- package/pagination/index.d.ts +0 -56
- package/playlist-toggler/index.d.ts +0 -17
- package/progress-bar/index.d.ts +0 -46
- package/rating/index.d.ts +0 -23
- package/scheduler/index.d.ts +0 -232
- package/signature-pad/index.d.ts +0 -41
- package/spinner/index.d.ts +0 -22
- package/splitter/index.d.ts +0 -82
- package/tab-control/index.d.ts +0 -72
- package/table/index.d.ts +0 -18
- package/timepicker/index.d.ts +0 -33
- package/toggle-button/index.d.ts +0 -69
- package/typeahead/index.d.ts +0 -28
- /package/{async-host-binding/index.d.ts → types/mintplayer-ng-bootstrap-async-host-binding.d.ts} +0 -0
- /package/{breadcrumb/index.d.ts → types/mintplayer-ng-bootstrap-breadcrumb.d.ts} +0 -0
- /package/{button-group/index.d.ts → types/mintplayer-ng-bootstrap-button-group.d.ts} +0 -0
- /package/{button-type/index.d.ts → types/mintplayer-ng-bootstrap-button-type.d.ts} +0 -0
- /package/{calendar-month/index.d.ts → types/mintplayer-ng-bootstrap-calendar-month.d.ts} +0 -0
- /package/{card/index.d.ts → types/mintplayer-ng-bootstrap-card.d.ts} +0 -0
- /package/{container/index.d.ts → types/mintplayer-ng-bootstrap-container.d.ts} +0 -0
- /package/{copy/index.d.ts → types/mintplayer-ng-bootstrap-copy.d.ts} +0 -0
- /package/{dock/index.d.ts → types/mintplayer-ng-bootstrap-dock.d.ts} +0 -0
- /package/{dropdown-divider/index.d.ts → types/mintplayer-ng-bootstrap-dropdown-divider.d.ts} +0 -0
- /package/{dropdown-menu/index.d.ts → types/mintplayer-ng-bootstrap-dropdown-menu.d.ts} +0 -0
- /package/{enum/index.d.ts → types/mintplayer-ng-bootstrap-enum.d.ts} +0 -0
- /package/{floating-labels/index.d.ts → types/mintplayer-ng-bootstrap-floating-labels.d.ts} +0 -0
- /package/{font-color/index.d.ts → types/mintplayer-ng-bootstrap-font-color.d.ts} +0 -0
- /package/{for/index.d.ts → types/mintplayer-ng-bootstrap-for.d.ts} +0 -0
- /package/{form/index.d.ts → types/mintplayer-ng-bootstrap-form.d.ts} +0 -0
- /package/{has-id/index.d.ts → types/mintplayer-ng-bootstrap-has-id.d.ts} +0 -0
- /package/{has-overlay/index.d.ts → types/mintplayer-ng-bootstrap-has-overlay.d.ts} +0 -0
- /package/{has-property/index.d.ts → types/mintplayer-ng-bootstrap-has-property.d.ts} +0 -0
- /package/{in-list/index.d.ts → types/mintplayer-ng-bootstrap-in-list.d.ts} +0 -0
- /package/{input-group/index.d.ts → types/mintplayer-ng-bootstrap-input-group.d.ts} +0 -0
- /package/{instance-of/index.d.ts → types/mintplayer-ng-bootstrap-instance-of.d.ts} +0 -0
- /package/{linify/index.d.ts → types/mintplayer-ng-bootstrap-linify.d.ts} +0 -0
- /package/{list-group/index.d.ts → types/mintplayer-ng-bootstrap-list-group.d.ts} +0 -0
- /package/{marquee/index.d.ts → types/mintplayer-ng-bootstrap-marquee.d.ts} +0 -0
- /package/{no-noscript/index.d.ts → types/mintplayer-ng-bootstrap-no-noscript.d.ts} +0 -0
- /package/{parallax/index.d.ts → types/mintplayer-ng-bootstrap-parallax.d.ts} +0 -0
- /package/{slugify/index.d.ts → types/mintplayer-ng-bootstrap-slugify.d.ts} +0 -0
- /package/{split-string/index.d.ts → types/mintplayer-ng-bootstrap-split-string.d.ts} +0 -0
- /package/{uc-first/index.d.ts → types/mintplayer-ng-bootstrap-uc-first.d.ts} +0 -0
- /package/{user-agent/index.d.ts → types/mintplayer-ng-bootstrap-user-agent.d.ts} +0 -0
- /package/{word-count/index.d.ts → types/mintplayer-ng-bootstrap-word-count.d.ts} +0 -0
- /package/{index.d.ts → types/mintplayer-ng-bootstrap.d.ts} +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Pipe, HostListener, HostBinding, ViewChildren, ContentChildren,
|
|
3
|
-
import * as i3 from '@angular/common';
|
|
2
|
+
import { inject, ElementRef, ChangeDetectionStrategy, Component, Pipe, input, signal, computed, HostListener, HostBinding, ViewChildren, ContentChildren, NgModule } from '@angular/core';
|
|
4
3
|
import { AsyncPipe } from '@angular/common';
|
|
5
4
|
import * as i1 from '@angular/cdk/portal';
|
|
6
5
|
import { DomPortal, PortalModule } from '@angular/cdk/portal';
|
|
7
6
|
import * as i2 from '@mintplayer/ng-bootstrap/user-agent';
|
|
8
7
|
import { BsUserAgentDirective } from '@mintplayer/ng-bootstrap/user-agent';
|
|
9
|
-
import { BehaviorSubject, map, combineLatest, take } from 'rxjs';
|
|
10
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
11
8
|
|
|
12
9
|
var EDragOperation;
|
|
13
10
|
(function (EDragOperation) {
|
|
@@ -16,19 +13,19 @@ var EDragOperation;
|
|
|
16
13
|
})(EDragOperation || (EDragOperation = {}));
|
|
17
14
|
|
|
18
15
|
class BsSplitPanelComponent {
|
|
19
|
-
constructor(
|
|
20
|
-
this.element =
|
|
16
|
+
constructor() {
|
|
17
|
+
this.element = inject(ElementRef);
|
|
21
18
|
}
|
|
22
19
|
ngAfterViewInit() {
|
|
23
20
|
setTimeout(() => this.portal = new DomPortal(this.element.nativeElement), 10);
|
|
24
21
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: BsSplitPanelComponent, isStandalone: false, selector: "bs-split-panel", ngImport: i0, template: "<div class=\"w-100 h-100\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
24
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitPanelComponent, decorators: [{
|
|
29
26
|
type: Component,
|
|
30
|
-
args: [{ selector: 'bs-split-panel', standalone: false, template: "<div class=\"w-100 h-100\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;height:100%}\n"] }]
|
|
31
|
-
}]
|
|
27
|
+
args: [{ selector: 'bs-split-panel', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"w-100 h-100\">\n <ng-content></ng-content>\n</div>", styles: [":host{display:block;height:100%}\n"] }]
|
|
28
|
+
}] });
|
|
32
29
|
|
|
33
30
|
class BsElementAtPipe {
|
|
34
31
|
transform(value, index) {
|
|
@@ -39,10 +36,10 @@ class BsElementAtPipe {
|
|
|
39
36
|
return null;
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsElementAtPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
40
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: BsElementAtPipe, isStandalone: false, name: "bsElementAt" }); }
|
|
44
41
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsElementAtPipe, decorators: [{
|
|
46
43
|
type: Pipe,
|
|
47
44
|
args: [{
|
|
48
45
|
name: 'bsElementAt',
|
|
@@ -51,31 +48,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImpo
|
|
|
51
48
|
}] });
|
|
52
49
|
|
|
53
50
|
class BsSplitterComponent {
|
|
54
|
-
constructor(
|
|
55
|
-
this.
|
|
56
|
-
|
|
57
|
-
this.
|
|
58
|
-
|
|
59
|
-
this.
|
|
60
|
-
this.panels$ = new BehaviorSubject([]);
|
|
51
|
+
constructor() {
|
|
52
|
+
this.orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
|
|
53
|
+
this.previewSizes = signal(null, ...(ngDevMode ? [{ debugName: "previewSizes" }] : []));
|
|
54
|
+
this.panels = signal([], ...(ngDevMode ? [{ debugName: "panels" }] : []));
|
|
55
|
+
this.isResizing = signal(false, ...(ngDevMode ? [{ debugName: "isResizing" }] : []));
|
|
56
|
+
this.touchedDivider = signal(null, ...(ngDevMode ? [{ debugName: "touchedDivider" }] : []));
|
|
61
57
|
this.classes = true;
|
|
62
|
-
this.
|
|
63
|
-
|
|
64
|
-
this.operation = null;
|
|
65
|
-
this.directionClass$ = this.orientation$.pipe(map((orientation) => {
|
|
66
|
-
switch (orientation) {
|
|
58
|
+
this.directionClass = computed(() => {
|
|
59
|
+
switch (this.orientation()) {
|
|
67
60
|
case 'horizontal': return 'flex-row';
|
|
68
61
|
case 'vertical': return 'flex-column';
|
|
69
62
|
}
|
|
70
|
-
}));
|
|
71
|
-
this.splitterClass
|
|
72
|
-
switch (orientation) {
|
|
63
|
+
}, ...(ngDevMode ? [{ debugName: "directionClass" }] : []));
|
|
64
|
+
this.splitterClass = computed(() => {
|
|
65
|
+
switch (this.orientation()) {
|
|
73
66
|
case 'horizontal': return 'split-hor';
|
|
74
67
|
case 'vertical': return 'split-ver';
|
|
75
68
|
}
|
|
76
|
-
}));
|
|
77
|
-
this.widthStyles
|
|
78
|
-
|
|
69
|
+
}, ...(ngDevMode ? [{ debugName: "splitterClass" }] : []));
|
|
70
|
+
this.widthStyles = computed(() => {
|
|
71
|
+
const orientation = this.orientation();
|
|
72
|
+
const previewSizes = this.previewSizes();
|
|
73
|
+
const panels = this.panels();
|
|
79
74
|
switch (orientation) {
|
|
80
75
|
case 'horizontal':
|
|
81
76
|
if (previewSizes) {
|
|
@@ -89,14 +84,16 @@ class BsSplitterComponent {
|
|
|
89
84
|
});
|
|
90
85
|
}
|
|
91
86
|
else {
|
|
92
|
-
return Array(panels.length).
|
|
87
|
+
return Array(panels.length).fill('100%');
|
|
93
88
|
}
|
|
94
89
|
case 'vertical':
|
|
95
90
|
return null;
|
|
96
91
|
}
|
|
97
|
-
}));
|
|
98
|
-
this.heightStyles
|
|
99
|
-
|
|
92
|
+
}, ...(ngDevMode ? [{ debugName: "widthStyles" }] : []));
|
|
93
|
+
this.heightStyles = computed(() => {
|
|
94
|
+
const orientation = this.orientation();
|
|
95
|
+
const previewSizes = this.previewSizes();
|
|
96
|
+
const panels = this.panels();
|
|
100
97
|
switch (orientation) {
|
|
101
98
|
case 'horizontal':
|
|
102
99
|
return null;
|
|
@@ -112,26 +109,21 @@ class BsSplitterComponent {
|
|
|
112
109
|
});
|
|
113
110
|
}
|
|
114
111
|
else {
|
|
115
|
-
return Array(panels.length).
|
|
112
|
+
return Array(panels.length).fill('100%');
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
|
-
}));
|
|
119
|
-
|
|
120
|
-
get orientation() {
|
|
121
|
-
return this.orientation$.value;
|
|
122
|
-
}
|
|
123
|
-
set orientation(value) {
|
|
124
|
-
this.orientation$.next(value);
|
|
115
|
+
}, ...(ngDevMode ? [{ debugName: "heightStyles" }] : []));
|
|
116
|
+
this.operation = null;
|
|
125
117
|
}
|
|
126
|
-
set
|
|
127
|
-
this.panels
|
|
118
|
+
set panelsList(value) {
|
|
119
|
+
this.panels.set(value.toArray());
|
|
128
120
|
}
|
|
129
121
|
computeSizes() {
|
|
130
122
|
if (typeof window !== 'undefined') {
|
|
131
123
|
const sizes = this.splitPanels
|
|
132
124
|
.map((sp) => {
|
|
133
125
|
const styles = window.getComputedStyle(sp.nativeElement);
|
|
134
|
-
switch (this.orientation) {
|
|
126
|
+
switch (this.orientation()) {
|
|
135
127
|
case 'horizontal': return styles.width;
|
|
136
128
|
case 'vertical': return styles.height;
|
|
137
129
|
}
|
|
@@ -151,13 +143,14 @@ class BsSplitterComponent {
|
|
|
151
143
|
startResizeTouch(ev, indexBefore, indexAfter, divider) {
|
|
152
144
|
if (ev.cancelable) {
|
|
153
145
|
ev.preventDefault();
|
|
154
|
-
|
|
146
|
+
ev.stopPropagation();
|
|
147
|
+
this.touchedDivider.set(divider);
|
|
155
148
|
this.startResize(indexBefore, indexAfter, { x: ev.touches[0].clientX, y: ev.touches[0].clientY });
|
|
156
149
|
}
|
|
157
150
|
}
|
|
158
151
|
startResize(indexBefore, indexAfter, pt) {
|
|
159
152
|
const sizes = this.computeSizes();
|
|
160
|
-
this.previewSizes
|
|
153
|
+
this.previewSizes.set(sizes);
|
|
161
154
|
this.operation = {
|
|
162
155
|
operation: EDragOperation.resizeSplitter,
|
|
163
156
|
startPosition: pt,
|
|
@@ -165,12 +158,16 @@ class BsSplitterComponent {
|
|
|
165
158
|
indexBefore,
|
|
166
159
|
indexAfter,
|
|
167
160
|
};
|
|
168
|
-
this.isResizing
|
|
161
|
+
this.isResizing.set(true);
|
|
169
162
|
}
|
|
170
163
|
onMouseMove(ev) {
|
|
171
164
|
this.onResizeMove({ x: ev.clientX, y: ev.clientY });
|
|
172
165
|
}
|
|
173
166
|
onTouchMove(ev) {
|
|
167
|
+
if (this.operation) {
|
|
168
|
+
ev.preventDefault();
|
|
169
|
+
ev.stopPropagation();
|
|
170
|
+
}
|
|
174
171
|
this.onResizeMove({ x: ev.touches[0].clientX, y: ev.touches[0].clientY });
|
|
175
172
|
}
|
|
176
173
|
onResizeMove(pt) {
|
|
@@ -178,28 +175,23 @@ class BsSplitterComponent {
|
|
|
178
175
|
switch (this.operation.operation) {
|
|
179
176
|
case EDragOperation.resizeSplitter:
|
|
180
177
|
{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
this.previewSizes$.next(sy);
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
});
|
|
178
|
+
const orientation = this.orientation();
|
|
179
|
+
switch (orientation) {
|
|
180
|
+
case 'horizontal':
|
|
181
|
+
const deltaX = pt.x - this.operation.startPosition.x;
|
|
182
|
+
const sx = Array.from(this.operation.sizes);
|
|
183
|
+
sx[this.operation.indexBefore] = this.operation.sizes[this.operation.indexBefore] + deltaX;
|
|
184
|
+
sx[this.operation.indexAfter] = this.operation.sizes[this.operation.indexAfter] - deltaX;
|
|
185
|
+
this.previewSizes.set(sx);
|
|
186
|
+
break;
|
|
187
|
+
case 'vertical':
|
|
188
|
+
const deltaY = pt.y - this.operation.startPosition.y;
|
|
189
|
+
const sy = Array.from(this.operation.sizes);
|
|
190
|
+
sy[this.operation.indexBefore] = this.operation.sizes[this.operation.indexBefore] + deltaY;
|
|
191
|
+
sy[this.operation.indexAfter] = this.operation.sizes[this.operation.indexAfter] - deltaY;
|
|
192
|
+
this.previewSizes.set(sy);
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
203
195
|
}
|
|
204
196
|
break;
|
|
205
197
|
}
|
|
@@ -209,22 +201,24 @@ class BsSplitterComponent {
|
|
|
209
201
|
this.onResizeUp();
|
|
210
202
|
}
|
|
211
203
|
onTouchEnd(ev) {
|
|
212
|
-
this.
|
|
204
|
+
if (this.operation) {
|
|
205
|
+
ev.preventDefault();
|
|
206
|
+
ev.stopPropagation();
|
|
207
|
+
}
|
|
208
|
+
this.touchedDivider.set(null);
|
|
213
209
|
this.onResizeUp();
|
|
214
210
|
}
|
|
215
211
|
onResizeUp() {
|
|
216
|
-
this.isResizing
|
|
212
|
+
this.isResizing.set(false);
|
|
217
213
|
this.operation = null;
|
|
218
214
|
}
|
|
219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
220
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsSplitterComponent, isStandalone: false, selector: "bs-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:mousemove": "onMouseMove($event)", "document:mouseup": "onMouseUp($event)" }, properties: { "class.w-100": "this.classes", "class.h-100": "this.classes", "class.d-flex": "this.classes" } }, queries: [{ propertyName: "panelsList", predicate: BsSplitPanelComponent }], viewQueries: [{ propertyName: "splitPanels", predicate: ["splitPanel"], descendants: true }], ngImport: i0, template: "<div class=\"d-flex w-100 root\" [class]=\"[directionClass(), splitterClass()]\" bsUserAgent>\n <ng-content></ng-content>\n @for (panel of panels(); let index = $index; let last = $last; track panel) {\n @let widthStylesValue = widthStyles();\n @let heightStylesValue = heightStyles();\n\n <div class=\"split-panel overflow-hidden\" [class.flex-none]=\"isResizing()\" #splitPanel [style.width]=\"widthStylesValue | bsElementAt:index\" [style.height]=\"heightStylesValue | bsElementAt:index\">\n <ng-template [cdkPortalOutlet]=\"panel.portal\"></ng-template>\n </div>\n @if (!last) {\n <div class=\"divider\" bsUserAgent [class.hover]=\"touchedDivider() === divider\" #divider (mousedown)=\"startResizeMouse($event, index, index + 1)\" (touchstart)=\"startResizeTouch($event, index, index + 1, divider)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\"></div>\n }\n }\n</div>\n", styles: [".root{--thumb-margin: 3px}.root.os-android{--thumb-margin: 20px}.split-panel{flex-grow:1}.divider{flex-shrink:0;transition:background-color .15s ease-in-out;z-index:3}.divider:before{background-position:center center;background-repeat:no-repeat}.divider:not(.os-android):hover:before{background-color:#1389fd;border-radius:4px}.divider.os-android.hover:before{background-color:#1389fd;border-radius:4px}.divider:before{content:\"\";display:block;background-color:#eee}.split-hor>.divider{width:calc(8px + 2 * var(--thumb-margin));height:100%;cursor:col-resize;border-left:var(--thumb-margin) solid transparent;border-right:var(--thumb-margin) solid transparent}.split-hor>.divider:before{height:100%;width:8px;margin:0 auto;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.split-hor>.split-panel:not(:first-child){margin-left:calc(-1 * var(--thumb-margin))}.split-hor>.split-panel:not(:last-child){margin-right:calc(-1 * var(--thumb-margin))}.split-ver>.divider{width:100%;height:calc(8px + 2 * var(--thumb-margin));cursor:row-resize;border-top:var(--thumb-margin) solid transparent;border-bottom:var(--thumb-margin) solid transparent}.split-ver>.divider:before{height:8px;margin:auto 0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.split-ver>.split-panel:not(:first-child){margin-top:calc(-1 * var(--thumb-margin))}.split-ver>.split-panel:not(:last-child){margin-bottom:calc(-1 * var(--thumb-margin))}.flex-none{flex:none}\n"], dependencies: [{ kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: i2.BsUserAgentDirective, selector: "[bsUserAgent]", outputs: ["detected"] }, { kind: "pipe", type: BsElementAtPipe, name: "bsElementAt" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
221
217
|
}
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitterComponent, decorators: [{
|
|
223
219
|
type: Component,
|
|
224
|
-
args: [{ selector: 'bs-splitter', standalone: false, template: "<div class=\"d-flex w-100 root\" [class]=\"[directionClass
|
|
225
|
-
}],
|
|
226
|
-
type: Input
|
|
227
|
-
}], panels: [{
|
|
220
|
+
args: [{ selector: 'bs-splitter', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"d-flex w-100 root\" [class]=\"[directionClass(), splitterClass()]\" bsUserAgent>\n <ng-content></ng-content>\n @for (panel of panels(); let index = $index; let last = $last; track panel) {\n @let widthStylesValue = widthStyles();\n @let heightStylesValue = heightStyles();\n\n <div class=\"split-panel overflow-hidden\" [class.flex-none]=\"isResizing()\" #splitPanel [style.width]=\"widthStylesValue | bsElementAt:index\" [style.height]=\"heightStylesValue | bsElementAt:index\">\n <ng-template [cdkPortalOutlet]=\"panel.portal\"></ng-template>\n </div>\n @if (!last) {\n <div class=\"divider\" bsUserAgent [class.hover]=\"touchedDivider() === divider\" #divider (mousedown)=\"startResizeMouse($event, index, index + 1)\" (touchstart)=\"startResizeTouch($event, index, index + 1, divider)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\"></div>\n }\n }\n</div>\n", styles: [".root{--thumb-margin: 3px}.root.os-android{--thumb-margin: 20px}.split-panel{flex-grow:1}.divider{flex-shrink:0;transition:background-color .15s ease-in-out;z-index:3}.divider:before{background-position:center center;background-repeat:no-repeat}.divider:not(.os-android):hover:before{background-color:#1389fd;border-radius:4px}.divider.os-android.hover:before{background-color:#1389fd;border-radius:4px}.divider:before{content:\"\";display:block;background-color:#eee}.split-hor>.divider{width:calc(8px + 2 * var(--thumb-margin));height:100%;cursor:col-resize;border-left:var(--thumb-margin) solid transparent;border-right:var(--thumb-margin) solid transparent}.split-hor>.divider:before{height:100%;width:8px;margin:0 auto;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.split-hor>.split-panel:not(:first-child){margin-left:calc(-1 * var(--thumb-margin))}.split-hor>.split-panel:not(:last-child){margin-right:calc(-1 * var(--thumb-margin))}.split-ver>.divider{width:100%;height:calc(8px + 2 * var(--thumb-margin));cursor:row-resize;border-top:var(--thumb-margin) solid transparent;border-bottom:var(--thumb-margin) solid transparent}.split-ver>.divider:before{height:8px;margin:auto 0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.split-ver>.split-panel:not(:first-child){margin-top:calc(-1 * var(--thumb-margin))}.split-ver>.split-panel:not(:last-child){margin-bottom:calc(-1 * var(--thumb-margin))}.flex-none{flex:none}\n"] }]
|
|
221
|
+
}], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], panelsList: [{
|
|
228
222
|
type: ContentChildren,
|
|
229
223
|
args: [BsSplitPanelComponent]
|
|
230
224
|
}], splitPanels: [{
|
|
@@ -248,11 +242,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImpo
|
|
|
248
242
|
}] } });
|
|
249
243
|
|
|
250
244
|
class BsSplitterModule {
|
|
251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
253
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
246
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: BsSplitterModule, declarations: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe], imports: [AsyncPipe, PortalModule, BsUserAgentDirective], exports: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe] }); }
|
|
247
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitterModule, imports: [PortalModule] }); }
|
|
254
248
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsSplitterModule, decorators: [{
|
|
256
250
|
type: NgModule,
|
|
257
251
|
args: [{
|
|
258
252
|
declarations: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/interfaces/drag-operation.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/split-panel/split-panel.component.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/split-panel/split-panel.component.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/element-at/element-at.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter.module.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["import { Point } from \"./point\";\n\nexport interface DragOperation {\n operation: EDragOperation;\n startPosition: Point;\n sizes: number[];\n indexBefore: number;\n indexAfter: number;\n}\n\nexport enum EDragOperation {\n none,\n resizeSplitter,\n}","import { DomPortal } from '@angular/cdk/portal';\nimport { Component, ElementRef, ViewChild, AfterViewInit } from '@angular/core';\n\n@Component({\n selector: 'bs-split-panel',\n templateUrl: './split-panel.component.html',\n styleUrls: ['./split-panel.component.scss'],\n standalone: false,\n})\nexport class BsSplitPanelComponent implements AfterViewInit {\n constructor(private element: ElementRef) {}\n\n portal?: DomPortal;\n\n ngAfterViewInit() {\n setTimeout(() => this.portal = new DomPortal(this.element.nativeElement), 10);\n }\n}\n","<div class=\"w-100 h-100\">\n <ng-content></ng-content>\n</div>","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsElementAt',\n standalone: false,\n})\nexport class BsElementAtPipe implements PipeTransform {\n\n transform(value: any[] | null | undefined, index: number) {\n if (value) {\n return value[index];\n } else {\n return null;\n }\n }\n\n}\n","import { Component, Input, ContentChildren, QueryList, ElementRef, HostListener, HostBinding, ViewChildren, DestroyRef } from '@angular/core';\nimport { BehaviorSubject, map, combineLatest, Observable, take } from 'rxjs';\nimport { DragOperation, EDragOperation } from '../interfaces/drag-operation';\nimport { Point } from '../interfaces/point';\nimport { BsSplitPanelComponent } from '../split-panel/split-panel.component';\nimport { Direction } from '../types/direction.type';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.component.html',\n styleUrls: ['./splitter.component.scss'],\n standalone: false,\n})\nexport class BsSplitterComponent {\n\n constructor(private destroy: DestroyRef) {\n this.directionClass$ = this.orientation$.pipe(map((orientation) => {\n switch (orientation) {\n case 'horizontal': return 'flex-row';\n case 'vertical': return 'flex-column';\n }\n }));\n this.splitterClass$ = this.orientation$.pipe(map((orientation) => {\n switch (orientation) {\n case 'horizontal': return 'split-hor';\n case 'vertical': return 'split-ver';\n }\n }));\n this.widthStyles$ = combineLatest([this.orientation$, this.previewSizes$, this.panels$])\n .pipe(map(([orientation, previewSizes, panels]) => {\n switch (orientation) {\n case 'horizontal':\n if (previewSizes) {\n return [...Array(panels.length).keys()].map((v, i) => {\n if (i < previewSizes.length) {\n return previewSizes[i] + 'px';\n } else {\n return '100%';\n }\n });\n } else {\n return Array(panels.length).map((v, i) => '100%');\n }\n case 'vertical':\n return null;\n }\n }));\n this.heightStyles$ = combineLatest([this.orientation$, this.previewSizes$, this.panels$])\n .pipe(map(([orientation, previewSizes, panels]) => {\n switch (orientation) {\n case 'horizontal':\n return null;\n case 'vertical':\n if (previewSizes) {\n return [...Array(panels.length).keys()].map((v, i) => {\n if (i < previewSizes.length) {\n return previewSizes[i] + 'px';\n } else {\n return '100%';\n }\n });\n } else {\n return Array(panels.length).map((v, i) => '100%');\n }\n }\n }));\n }\n\n //#region Orientation\n orientation$ = new BehaviorSubject<Direction>('horizontal');\n public get orientation() {\n return this.orientation$.value;\n }\n @Input() public set orientation(value: Direction) {\n this.orientation$.next(value);\n }\n //#endregion\n\n previewSizes$ = new BehaviorSubject<number[] | null>(null);\n\n panels$ = new BehaviorSubject<BsSplitPanelComponent[]>([]);\n @ContentChildren(BsSplitPanelComponent) set panels(value: QueryList<BsSplitPanelComponent>) {\n this.panels$.next(value.toArray());\n }\n @ViewChildren('splitPanel') splitPanels!: QueryList<ElementRef<HTMLDivElement>>;\n \n @HostBinding('class.w-100')\n @HostBinding('class.h-100')\n @HostBinding('class.d-flex')\n classes = true;\n\n directionClass$: Observable<string>;\n splitterClass$: Observable<string>;\n widthStyles$: Observable<string[] | null>;\n heightStyles$: Observable<string[] | null>;\n isResizing$ = new BehaviorSubject<boolean>(false);\n touchedDivider$ = new BehaviorSubject<HTMLDivElement | null>(null);\n operation: DragOperation | null = null;\n\n computeSizes() {\n if (typeof window !== 'undefined') {\n const sizes = this.splitPanels\n .map((sp) => {\n const styles = window.getComputedStyle(sp.nativeElement);\n switch (this.orientation) {\n case 'horizontal': return styles.width;\n case 'vertical': return styles.height;\n }\n })\n .map((size) => size.slice(0, -2))\n .map((size) => parseFloat(size));\n return sizes;\n } else {\n return this.splitPanels.map(p => 50);\n }\n }\n \n startResizeMouse(ev: MouseEvent, indexBefore: number, indexAfter: number) {\n ev.preventDefault();\n this.startResize(indexBefore, indexAfter, { x: ev.clientX, y: ev.clientY });\n }\n\n startResizeTouch(ev: TouchEvent, indexBefore: number, indexAfter: number, divider: HTMLDivElement) {\n if (ev.cancelable) {\n ev.preventDefault();\n this.touchedDivider$.next(divider);\n this.startResize(indexBefore, indexAfter, { x: ev.touches[0].clientX, y: ev.touches[0].clientY });\n }\n }\n\n private startResize(indexBefore: number, indexAfter: number, pt: Point) {\n const sizes = this.computeSizes();\n this.previewSizes$.next(sizes);\n this.operation = {\n operation: EDragOperation.resizeSplitter,\n startPosition: pt,\n sizes,\n indexBefore,\n indexAfter,\n };\n\n this.isResizing$.next(true);\n }\n\n @HostListener('document:mousemove', ['$event'])\n onMouseMove(ev: MouseEvent) {\n this.onResizeMove({ x: ev.clientX, y: ev.clientY });\n }\n\n onTouchMove(ev: TouchEvent) {\n this.onResizeMove({ x: ev.touches[0].clientX, y: ev.touches[0].clientY });\n }\n\n onResizeMove(pt: Point) {\n if (this.operation) {\n switch (this.operation.operation) {\n case EDragOperation.resizeSplitter: {\n combineLatest([this.orientation$])\n .pipe(take(1), takeUntilDestroyed(this.destroy))\n .subscribe(([orientation]) => {\n if (this.operation) {\n switch (orientation) {\n case 'horizontal':\n const deltaX = pt.x - this.operation.startPosition.x;\n const sx = Array.from(this.operation.sizes);\n sx[this.operation.indexBefore] = this.operation.sizes[this.operation.indexBefore] + deltaX;\n sx[this.operation.indexAfter] = this.operation.sizes[this.operation.indexAfter] - deltaX;\n this.previewSizes$.next(sx);\n break;\n case 'vertical':\n const deltaY = pt.y - this.operation.startPosition.y;\n const sy = Array.from(this.operation.sizes);\n sy[this.operation.indexBefore] = this.operation.sizes[this.operation.indexBefore] + deltaY;\n sy[this.operation.indexAfter] = this.operation.sizes[this.operation.indexAfter] - deltaY;\n this.previewSizes$.next(sy);\n break;\n }\n }\n })\n } break;\n }\n }\n }\n\n @HostListener('document:mouseup', ['$event'])\n onMouseUp(ev: MouseEvent) {\n this.onResizeUp();\n }\n\n onTouchEnd(ev: TouchEvent) {\n this.touchedDivider$.next(null);\n this.onResizeUp();\n }\n\n onResizeUp() {\n this.isResizing$.next(false);\n this.operation = null;\n }\n}\n","<div class=\"d-flex w-100 root\" [class]=\"[directionClass$ | async, splitterClass$ | async]\" bsUserAgent>\n <ng-content></ng-content>\n @for (panel of (panels$ | async); let index = $index; let last = $last; track panel) {\n @let widthStyles = widthStyles$ | async;\n @let heightStyles = heightStyles$ | async;\n \n <!-- [style.width.%]=\"100\" [style.height.%]=\"100\" -->\n <div class=\"split-panel overflow-hidden\" [class.flex-none]=\"isResizing$ | async\" #splitPanel [style.width]=\"widthStyles | bsElementAt:index\" [style.height]=\"heightStyles | bsElementAt:index\">\n <ng-template [cdkPortalOutlet]=\"panel.portal\"></ng-template>\n </div>\n @if (!last) {\n <div class=\"divider\" bsUserAgent [class.hover]=\"(touchedDivider$ | async) === divider\" #divider (mousedown)=\"startResizeMouse($event, index, index + 1)\" (touchstart)=\"startResizeTouch($event, index, index + 1, divider)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\"></div>\n }\n }\n</div>","import { NgModule } from '@angular/core';\nimport { AsyncPipe } from '@angular/common';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { BsUserAgentDirective } from '@mintplayer/ng-bootstrap/user-agent';\nimport { BsSplitterComponent } from './splitter/splitter.component';\nimport { BsSplitPanelComponent } from './split-panel/split-panel.component';\nimport { BsElementAtPipe } from './element-at/element-at.pipe';\n\n@NgModule({\n declarations: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe],\n imports: [AsyncPipe, PortalModule, BsUserAgentDirective],\n exports: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe],\n})\nexport class BsSplitterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i4.BsElementAtPipe"],"mappings":";;;;;;;;;;;AAUA,IAAY,cAGX;AAHD,CAAA,UAAY,cAAc,EAAA;AACtB,IAAA,cAAA,CAAA,cAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,cAAA,CAAA,cAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,gBAAc;AAClB,CAAC,EAHW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;MCDb,qBAAqB,CAAA;AAChC,IAAA,WAAA,CAAoB,OAAmB,EAAA;QAAnB,IAAA,CAAA,OAAO,GAAP,OAAO;IAAe;IAI1C,eAAe,GA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mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/interfaces/drag-operation.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/split-panel/split-panel.component.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/split-panel/split-panel.component.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/element-at/element-at.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter.module.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["import { Point } from \"./point\";\n\nexport interface DragOperation {\n operation: EDragOperation;\n startPosition: Point;\n sizes: number[];\n indexBefore: number;\n indexAfter: number;\n}\n\nexport enum EDragOperation {\n none,\n resizeSplitter,\n}","import { DomPortal } from '@angular/cdk/portal';\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, AfterViewInit } from '@angular/core';\n\n@Component({\n selector: 'bs-split-panel',\n templateUrl: './split-panel.component.html',\n styleUrls: ['./split-panel.component.scss'],\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitPanelComponent implements AfterViewInit {\n\n private element = inject(ElementRef);\n\n portal?: DomPortal;\n\n ngAfterViewInit() {\n setTimeout(() => this.portal = new DomPortal(this.element.nativeElement), 10);\n }\n}\n","<div class=\"w-100 h-100\">\n <ng-content></ng-content>\n</div>","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsElementAt',\n standalone: false,\n})\nexport class BsElementAtPipe implements PipeTransform {\n\n transform(value: any[] | null | undefined, index: number) {\n if (value) {\n return value[index];\n } else {\n return null;\n }\n }\n\n}\n","import { ChangeDetectionStrategy, Component, computed, ContentChildren, ElementRef, HostBinding, HostListener, input, QueryList, signal, ViewChildren } from '@angular/core';\nimport { DragOperation, EDragOperation } from '../interfaces/drag-operation';\nimport { Point } from '../interfaces/point';\nimport { BsSplitPanelComponent } from '../split-panel/split-panel.component';\nimport { Direction } from '../types/direction.type';\n\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.component.html',\n styleUrls: ['./splitter.component.scss'],\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterComponent {\n\n orientation = input<Direction>('horizontal');\n previewSizes = signal<number[] | null>(null);\n panels = signal<BsSplitPanelComponent[]>([]);\n isResizing = signal<boolean>(false);\n touchedDivider = signal<HTMLDivElement | null>(null);\n\n @ContentChildren(BsSplitPanelComponent) set panelsList(value: QueryList<BsSplitPanelComponent>) {\n this.panels.set(value.toArray());\n }\n @ViewChildren('splitPanel') splitPanels!: QueryList<ElementRef<HTMLDivElement>>;\n\n @HostBinding('class.w-100')\n @HostBinding('class.h-100')\n @HostBinding('class.d-flex')\n classes = true;\n\n directionClass = computed(() => {\n switch (this.orientation()) {\n case 'horizontal': return 'flex-row';\n case 'vertical': return 'flex-column';\n }\n });\n\n splitterClass = computed(() => {\n switch (this.orientation()) {\n case 'horizontal': return 'split-hor';\n case 'vertical': return 'split-ver';\n }\n });\n\n widthStyles = computed(() => {\n const orientation = this.orientation();\n const previewSizes = this.previewSizes();\n const panels = this.panels();\n switch (orientation) {\n case 'horizontal':\n if (previewSizes) {\n return [...Array(panels.length).keys()].map((v, i) => {\n if (i < previewSizes.length) {\n return previewSizes[i] + 'px';\n } else {\n return '100%';\n }\n });\n } else {\n return Array(panels.length).fill('100%');\n }\n case 'vertical':\n return null;\n }\n });\n\n heightStyles = computed(() => {\n const orientation = this.orientation();\n const previewSizes = this.previewSizes();\n const panels = this.panels();\n switch (orientation) {\n case 'horizontal':\n return null;\n case 'vertical':\n if (previewSizes) {\n return [...Array(panels.length).keys()].map((v, i) => {\n if (i < previewSizes.length) {\n return previewSizes[i] + 'px';\n } else {\n return '100%';\n }\n });\n } else {\n return Array(panels.length).fill('100%');\n }\n }\n });\n\n operation: DragOperation | null = null;\n\n computeSizes() {\n if (typeof window !== 'undefined') {\n const sizes = this.splitPanels\n .map((sp) => {\n const styles = window.getComputedStyle(sp.nativeElement);\n switch (this.orientation()) {\n case 'horizontal': return styles.width;\n case 'vertical': return styles.height;\n }\n })\n .map((size) => size.slice(0, -2))\n .map((size) => parseFloat(size));\n return sizes;\n } else {\n return this.splitPanels.map(p => 50);\n }\n }\n\n startResizeMouse(ev: MouseEvent, indexBefore: number, indexAfter: number) {\n ev.preventDefault();\n this.startResize(indexBefore, indexAfter, { x: ev.clientX, y: ev.clientY });\n }\n\n startResizeTouch(ev: TouchEvent, indexBefore: number, indexAfter: number, divider: HTMLDivElement) {\n if (ev.cancelable) {\n ev.preventDefault();\n ev.stopPropagation();\n this.touchedDivider.set(divider);\n this.startResize(indexBefore, indexAfter, { x: ev.touches[0].clientX, y: ev.touches[0].clientY });\n }\n }\n\n private startResize(indexBefore: number, indexAfter: number, pt: Point) {\n const sizes = this.computeSizes();\n this.previewSizes.set(sizes);\n this.operation = {\n operation: EDragOperation.resizeSplitter,\n startPosition: pt,\n sizes,\n indexBefore,\n indexAfter,\n };\n\n this.isResizing.set(true);\n }\n\n @HostListener('document:mousemove', ['$event'])\n onMouseMove(ev: MouseEvent) {\n this.onResizeMove({ x: ev.clientX, y: ev.clientY });\n }\n\n onTouchMove(ev: TouchEvent) {\n if (this.operation) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n this.onResizeMove({ x: ev.touches[0].clientX, y: ev.touches[0].clientY });\n }\n\n onResizeMove(pt: Point) {\n if (this.operation) {\n switch (this.operation.operation) {\n case EDragOperation.resizeSplitter: {\n const orientation = this.orientation();\n switch (orientation) {\n case 'horizontal':\n const deltaX = pt.x - this.operation.startPosition.x;\n const sx = Array.from(this.operation.sizes);\n sx[this.operation.indexBefore] = this.operation.sizes[this.operation.indexBefore] + deltaX;\n sx[this.operation.indexAfter] = this.operation.sizes[this.operation.indexAfter] - deltaX;\n this.previewSizes.set(sx);\n break;\n case 'vertical':\n const deltaY = pt.y - this.operation.startPosition.y;\n const sy = Array.from(this.operation.sizes);\n sy[this.operation.indexBefore] = this.operation.sizes[this.operation.indexBefore] + deltaY;\n sy[this.operation.indexAfter] = this.operation.sizes[this.operation.indexAfter] - deltaY;\n this.previewSizes.set(sy);\n break;\n }\n } break;\n }\n }\n }\n\n @HostListener('document:mouseup', ['$event'])\n onMouseUp(ev: MouseEvent) {\n this.onResizeUp();\n }\n\n onTouchEnd(ev: TouchEvent) {\n if (this.operation) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n this.touchedDivider.set(null);\n this.onResizeUp();\n }\n\n onResizeUp() {\n this.isResizing.set(false);\n this.operation = null;\n }\n}\n","<div class=\"d-flex w-100 root\" [class]=\"[directionClass(), splitterClass()]\" bsUserAgent>\n <ng-content></ng-content>\n @for (panel of panels(); let index = $index; let last = $last; track panel) {\n @let widthStylesValue = widthStyles();\n @let heightStylesValue = heightStyles();\n\n <div class=\"split-panel overflow-hidden\" [class.flex-none]=\"isResizing()\" #splitPanel [style.width]=\"widthStylesValue | bsElementAt:index\" [style.height]=\"heightStylesValue | bsElementAt:index\">\n <ng-template [cdkPortalOutlet]=\"panel.portal\"></ng-template>\n </div>\n @if (!last) {\n <div class=\"divider\" bsUserAgent [class.hover]=\"touchedDivider() === divider\" #divider (mousedown)=\"startResizeMouse($event, index, index + 1)\" (touchstart)=\"startResizeTouch($event, index, index + 1, divider)\" (touchmove)=\"onTouchMove($event)\" (touchend)=\"onTouchEnd($event)\"></div>\n }\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { AsyncPipe } from '@angular/common';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { BsUserAgentDirective } from '@mintplayer/ng-bootstrap/user-agent';\nimport { BsSplitterComponent } from './splitter/splitter.component';\nimport { BsSplitPanelComponent } from './split-panel/split-panel.component';\nimport { BsElementAtPipe } from './element-at/element-at.pipe';\n\n@NgModule({\n declarations: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe],\n imports: [AsyncPipe, PortalModule, BsUserAgentDirective],\n exports: [BsSplitterComponent, BsSplitPanelComponent, BsElementAtPipe],\n})\nexport class BsSplitterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3.BsElementAtPipe"],"mappings":";;;;;;;;AAUA,IAAY,cAGX;AAHD,CAAA,UAAY,cAAc,EAAA;AACtB,IAAA,cAAA,CAAA,cAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,cAAA,CAAA,cAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,gBAAc;AAClB,CAAC,EAHW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;MCAb,qBAAqB,CAAA;AAPlC,IAAA,WAAA,GAAA;AASU,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAOrC,IAAA;IAHC,eAAe,GAAA;QACb,UAAU,CAAC,MAAM,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;IAC/E;8GARW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,2ECVlC,oEAEM,EAAA,MAAA,EAAA,CAAA,oCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDQO,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,UAAA,EAGd,KAAK,EAAA,eA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EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,CAAC;AAC3E,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,oBAAoB,CAAC;AACxD,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,CAAC;AACvE,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { HostBinding, Directive, ViewChild, Component, NgModule } from '@angular/core';
|
|
2
|
+
import { HostBinding, Directive, effect, ViewChild, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i2 from '@mintplayer/ng-swiper/observe-size';
|
|
5
5
|
import { BsObserveSizeDirective } from '@mintplayer/ng-swiper/observe-size';
|
|
6
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
6
|
|
|
8
7
|
class BsStickyFooterParentDirective {
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsStickyFooterParentDirective, isStandalone: false, selector: "[bsStickyFooterParent]", host: { properties: { "style.margin-bottom.px": "this.marginBottom" } }, ngImport: i0 }); }
|
|
11
10
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterParentDirective, decorators: [{
|
|
13
12
|
type: Directive,
|
|
14
13
|
args: [{
|
|
15
14
|
selector: '[bsStickyFooterParent]',
|
|
@@ -21,34 +20,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImpo
|
|
|
21
20
|
}] } });
|
|
22
21
|
|
|
23
22
|
class BsStickyFooterComponent {
|
|
24
|
-
constructor(parent,
|
|
23
|
+
constructor(parent, injector) {
|
|
25
24
|
this.parent = parent;
|
|
26
|
-
this.
|
|
25
|
+
this.injector = injector;
|
|
27
26
|
}
|
|
28
27
|
ngAfterViewInit() {
|
|
29
|
-
|
|
30
|
-
this.sizeObserver.height
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
effect(() => {
|
|
29
|
+
const height = this.sizeObserver.height();
|
|
30
|
+
if (height !== undefined) {
|
|
31
|
+
this.parent.marginBottom = height;
|
|
32
|
+
}
|
|
33
|
+
}, { injector: this.injector });
|
|
34
34
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterComponent, deps: [{ token: BsStickyFooterParentDirective }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: BsStickyFooterComponent, isStandalone: false, selector: "bs-sticky-footer", viewQueries: [{ propertyName: "sizeObserver", first: true, predicate: ["sizeObserver"], descendants: true }], ngImport: i0, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"], dependencies: [{ kind: "directive", type: i2.BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }] }); }
|
|
37
37
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
|
|
39
39
|
type: Component,
|
|
40
40
|
args: [{ selector: 'bs-sticky-footer', standalone: false, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"] }]
|
|
41
|
-
}], ctorParameters: () => [{ type: BsStickyFooterParentDirective }, { type: i0.
|
|
41
|
+
}], ctorParameters: () => [{ type: BsStickyFooterParentDirective }, { type: i0.Injector }], propDecorators: { sizeObserver: [{
|
|
42
42
|
type: ViewChild,
|
|
43
43
|
args: ['sizeObserver']
|
|
44
44
|
}] } });
|
|
45
45
|
|
|
46
46
|
class BsStickyFooterModule {
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
48
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
49
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
48
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterModule, declarations: [BsStickyFooterComponent, BsStickyFooterParentDirective], imports: [CommonModule, BsObserveSizeDirective], exports: [BsStickyFooterComponent, BsStickyFooterParentDirective] }); }
|
|
49
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterModule, imports: [CommonModule] }); }
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsStickyFooterModule, decorators: [{
|
|
52
52
|
type: NgModule,
|
|
53
53
|
args: [{
|
|
54
54
|
declarations: [BsStickyFooterComponent, BsStickyFooterParentDirective],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer.module.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n standalone: false,\n})\nexport class BsStickyFooterParentDirective {\n @HostBinding('style.margin-bottom.px') marginBottom?: number;\n}\n","import { AfterViewInit, Component,
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer.module.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n standalone: false,\n})\nexport class BsStickyFooterParentDirective {\n @HostBinding('style.margin-bottom.px') marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, ViewChild } from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-swiper/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n standalone: false,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver.height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n @ViewChild('sizeObserver') sizeObserver!: BsObserveSizeDirective;\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-swiper/observe-size';\nimport { BsStickyFooterComponent } from './sticky-footer/sticky-footer.component';\nimport { BsStickyFooterParentDirective } from './sticky-footer-parent/sticky-footer-parent.directive';\n\n@NgModule({\n declarations: [BsStickyFooterComponent, BsStickyFooterParentDirective],\n imports: [CommonModule, BsObserveSizeDirective],\n exports: [BsStickyFooterComponent, BsStickyFooterParentDirective],\n})\nexport class BsStickyFooterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;;;M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