@mintplayer/ng-bootstrap 14.5.1 → 14.7.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/_bootstrap.scss +55 -4
- package/esm2020/index.mjs +2 -1
- package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +4 -4
- package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +3 -3
- package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +3 -3
- package/esm2020/lib/components/accordion/accordion.module.mjs +4 -4
- package/esm2020/lib/components/alert/alert/alert.component.mjs +5 -5
- package/esm2020/lib/components/alert/alert-close/alert-close.component.mjs +3 -3
- package/esm2020/lib/components/alert/alert.module.mjs +4 -4
- package/esm2020/lib/components/badge/badge.component.mjs +30 -0
- package/esm2020/lib/components/badge/badge.module.mjs +18 -0
- package/esm2020/lib/components/badge/index.mjs +3 -0
- package/esm2020/lib/components/breadcrumb/breadcrumb/breadcrumb.component.mjs +13 -0
- package/esm2020/lib/components/breadcrumb/breadcrumb-item/breadcrumb-item.component.mjs +18 -0
- package/esm2020/lib/components/breadcrumb/breadcrumb.module.mjs +19 -0
- package/esm2020/lib/components/breadcrumb/index.mjs +4 -0
- package/esm2020/lib/components/button-group/button-group/button-group.component.mjs +13 -0
- package/esm2020/lib/components/button-group/button-group.module.mjs +18 -0
- package/esm2020/lib/components/button-group/index.mjs +3 -0
- package/esm2020/lib/components/calendar/calendar.component.mjs +3 -3
- package/esm2020/lib/components/calendar/calendar.module.mjs +4 -4
- package/esm2020/lib/components/card/card/card.component.mjs +5 -5
- package/esm2020/lib/components/card/card-header/card-header.component.mjs +3 -3
- package/esm2020/lib/components/card/card.module.mjs +4 -4
- package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +23 -6
- package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +3 -3
- package/esm2020/lib/components/carousel/carousel.module.mjs +4 -4
- package/esm2020/lib/components/close/close.component.mjs +21 -0
- package/esm2020/lib/components/close/close.module.mjs +18 -0
- package/esm2020/lib/components/close/index.mjs +3 -0
- package/esm2020/lib/components/code-snippet/code-snippet.component.mjs +3 -3
- package/esm2020/lib/components/code-snippet/code-snippet.module.mjs +4 -4
- package/esm2020/lib/components/context-menu/context-menu.directive.mjs +3 -3
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +4 -4
- package/esm2020/lib/components/copy/copy.directive.mjs +3 -3
- package/esm2020/lib/components/copy/copy.module.mjs +4 -4
- package/esm2020/lib/components/datatable/datatable/datatable.component.mjs +3 -3
- package/esm2020/lib/components/datatable/datatable-column/datatable-column.directive.mjs +3 -3
- package/esm2020/lib/components/datatable/datatable.module.mjs +4 -4
- package/esm2020/lib/components/datatable/row-template/row-template.directive.mjs +3 -3
- package/esm2020/lib/components/datepicker/datepicker.component.mjs +3 -3
- package/esm2020/lib/components/datepicker/datepicker.module.mjs +4 -4
- package/esm2020/lib/components/dropdown/dropdown/dropdown.directive.mjs +8 -6
- package/esm2020/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.mjs +31 -13
- package/esm2020/lib/components/dropdown/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
- package/esm2020/lib/components/dropdown/dropdown.module.mjs +4 -4
- package/esm2020/lib/components/file-upload/component/file-upload.component.mjs +3 -3
- package/esm2020/lib/components/file-upload/directive/file-upload-template.directive.mjs +3 -3
- package/esm2020/lib/components/file-upload/file-upload.module.mjs +4 -4
- package/esm2020/lib/components/for/for.directive.mjs +3 -3
- package/esm2020/lib/components/for/for.module.mjs +4 -4
- package/esm2020/lib/components/index.mjs +9 -1
- package/esm2020/lib/components/list-group/list-group/list-group.component.mjs +4 -4
- package/esm2020/lib/components/list-group/list-group-item/list-group-item.component.mjs +3 -3
- package/esm2020/lib/components/list-group/list-group.module.mjs +4 -4
- package/esm2020/lib/components/modal/components/modal/modal.component.mjs +5 -5
- package/esm2020/lib/components/modal/components/modal-host/modal-host.component.mjs +16 -6
- package/esm2020/lib/components/modal/directives/modal/modal.directive.mjs +3 -3
- package/esm2020/lib/components/modal/directives/modal-body/modal-body.directive.mjs +3 -3
- package/esm2020/lib/components/modal/directives/modal-close/modal-close.directive.mjs +3 -3
- package/esm2020/lib/components/modal/directives/modal-footer/modal-footer.directive.mjs +3 -3
- package/esm2020/lib/components/modal/directives/modal-header/modal-header.directive.mjs +3 -3
- package/esm2020/lib/components/modal/modal.module.mjs +4 -4
- package/esm2020/lib/components/multiselect/component/multiselect.component.mjs +3 -3
- package/esm2020/lib/components/multiselect/directives/button-template/button-template.directive.mjs +3 -3
- package/esm2020/lib/components/multiselect/directives/footer-template/footer-template.directive.mjs +3 -3
- package/esm2020/lib/components/multiselect/directives/header-template/header-template.directive.mjs +3 -3
- package/esm2020/lib/components/multiselect/multiselect.module.mjs +4 -4
- package/esm2020/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/expand-button/expand-button.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +4 -4
- package/esm2020/lib/components/navbar/navbar-brand/navbar-brand.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-content/navbar-content.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +55 -10
- package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-toggler/navbar-toggler.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar.module.mjs +4 -4
- package/esm2020/lib/components/offcanvas/components/offcanvas/offcanvas.component.mjs +14 -5
- package/esm2020/lib/components/offcanvas/components/offcanvas-body/offcanvas-body.component.mjs +3 -3
- package/esm2020/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.mjs +3 -3
- package/esm2020/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.mjs +16 -7
- package/esm2020/lib/components/offcanvas/directives/offcanvas-close/offcanvas-close.directive.mjs +3 -3
- package/esm2020/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.mjs +3 -3
- package/esm2020/lib/components/offcanvas/offcanvas.module.mjs +4 -4
- package/esm2020/lib/components/pagination/pagination/pagination.component.mjs +63 -28
- package/esm2020/lib/components/pagination/pagination.module.mjs +4 -4
- package/esm2020/lib/components/placeholder/index.mjs +4 -0
- package/esm2020/lib/components/placeholder/placeholder/placeholder.component.mjs +20 -0
- package/esm2020/lib/components/placeholder/placeholder-field/placeholder-field.directive.mjs +37 -0
- package/esm2020/lib/components/placeholder/placeholder.module.mjs +19 -0
- package/esm2020/lib/components/popover/component/popover.component.mjs +56 -0
- package/esm2020/lib/components/popover/directives/index.mjs +4 -0
- package/esm2020/lib/components/popover/directives/popover/popover.directive.mjs +129 -0
- package/esm2020/lib/components/popover/directives/popover-body/popover-body.directive.mjs +19 -0
- package/esm2020/lib/components/popover/directives/popover-header/popover-header.directive.mjs +19 -0
- package/esm2020/lib/components/popover/index.mjs +4 -0
- package/esm2020/lib/components/popover/popover.module.mjs +35 -0
- package/esm2020/lib/components/popover/providers/popover-content.provider.mjs +3 -0
- package/esm2020/lib/components/popover/providers/portal-factory.provider.mjs +3 -0
- package/esm2020/lib/components/progress-bar/progress/progress.component.mjs +14 -10
- package/esm2020/lib/components/progress-bar/progress-bar/progress-bar.component.mjs +4 -4
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +4 -4
- package/esm2020/lib/components/rating/rating.component.mjs +3 -3
- package/esm2020/lib/components/rating/rating.module.mjs +4 -4
- package/esm2020/lib/components/scheduler/components/resource-group-presenter/resource-group-presenter.component.mjs +3 -3
- package/esm2020/lib/components/scheduler/components/scheduler/scheduler.component.mjs +5 -6
- package/esm2020/lib/components/scheduler/pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/date-offset/date-offset.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/day-of-week/day-of-week.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/scheduler.module.mjs +4 -4
- package/esm2020/lib/components/scheduler/services/timeline/timeline.service.mjs +3 -3
- package/esm2020/lib/components/scrollspy/component/scrollspy.component.mjs +3 -3
- package/esm2020/lib/components/scrollspy/directives/scrollspy.directive.mjs +3 -3
- package/esm2020/lib/components/scrollspy/scrollspy.module.mjs +4 -4
- package/esm2020/lib/components/select2/component/select2.component.mjs +5 -5
- package/esm2020/lib/components/select2/directive/item-template.directive.mjs +3 -3
- package/esm2020/lib/components/select2/select2.module.mjs +4 -4
- package/esm2020/lib/components/snackbar/component/snackbar.component.mjs +3 -3
- package/esm2020/lib/components/snackbar/directives/snackbar-close/snackbar-close.directive.mjs +3 -3
- package/esm2020/lib/components/snackbar/service/snackbar.service.mjs +3 -3
- package/esm2020/lib/components/snackbar/snackbar.module.mjs +4 -4
- package/esm2020/lib/components/spinner/index.mjs +3 -0
- package/esm2020/lib/components/spinner/spinner.component.mjs +41 -0
- package/esm2020/lib/components/spinner/spinner.module.mjs +18 -0
- package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +4 -4
- package/esm2020/lib/components/tab-control/tab-control.module.mjs +4 -4
- package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +3 -3
- package/esm2020/lib/components/timepicker/timepicker.component.mjs +5 -5
- package/esm2020/lib/components/timepicker/timepicker.module.mjs +4 -4
- package/esm2020/lib/components/toast/components/index.mjs +5 -0
- package/esm2020/lib/components/toast/components/toast/toast.component.mjs +16 -0
- package/esm2020/lib/components/toast/components/toast-body/toast-body.component.mjs +20 -0
- package/esm2020/lib/components/toast/components/toast-container/toast-container.component.mjs +22 -0
- package/esm2020/lib/components/toast/components/toast-header/toast-header.component.mjs +17 -0
- package/esm2020/lib/components/toast/directives/index.mjs +2 -0
- package/esm2020/lib/components/toast/directives/toast-close/toast-close.directive.mjs +32 -0
- package/esm2020/lib/components/toast/index.mjs +5 -0
- package/esm2020/lib/components/toast/providers/portal-factory.provider.mjs +3 -0
- package/esm2020/lib/components/toast/services/index.mjs +2 -0
- package/esm2020/lib/components/toast/services/toast/toast.service.mjs +56 -0
- package/esm2020/lib/components/toast/toast.module.mjs +72 -0
- package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +3 -3
- package/esm2020/lib/components/toggle-button/toggle-button.module.mjs +4 -4
- package/esm2020/lib/components/tooltip/component/tooltip.component.mjs +5 -5
- package/esm2020/lib/components/tooltip/directive/tooltip.directive.mjs +3 -3
- package/esm2020/lib/components/tooltip/tooltip.module.mjs +4 -4
- package/esm2020/lib/components/typeahead/typeahead.component.mjs +4 -4
- package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
- package/esm2020/lib/directives/enhanced-paste/enhanced-paste.directive.mjs +3 -3
- package/esm2020/lib/directives/enhanced-paste/enhanced-paste.module.mjs +4 -4
- package/esm2020/lib/pipes/add-properties/add-properties.module.mjs +24 -0
- package/esm2020/lib/pipes/add-properties/add-properties.pipe.mjs +17 -0
- package/esm2020/lib/pipes/add-properties/index.mjs +3 -0
- package/esm2020/lib/pipes/font-color/font-color.module.mjs +4 -4
- package/esm2020/lib/pipes/font-color/font-color.pipe.mjs +3 -3
- package/esm2020/lib/pipes/format-bytes/format-bytes.module.mjs +4 -4
- package/esm2020/lib/pipes/format-bytes/format-bytes.pipe.mjs +3 -3
- package/esm2020/lib/pipes/in-list/in-list.module.mjs +4 -4
- package/esm2020/lib/pipes/in-list/in-list.pipe.mjs +3 -3
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/pipes/month-name/month-name.module.mjs +4 -4
- package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +3 -3
- package/esm2020/lib/pipes/uc-first/uc-first.module.mjs +4 -4
- package/esm2020/lib/pipes/uc-first/uc-first.pipe.mjs +3 -3
- package/esm2020/lib/pipes/weekday-name/weekday-name.module.mjs +4 -4
- package/esm2020/lib/pipes/weekday-name/weekday-name.pipe.mjs +3 -3
- package/esm2020/lib/providers/development.provider.mjs +8 -0
- package/esm2020/lib/providers/index.mjs +2 -0
- package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +3 -3
- package/esm2020/lib/services/scroll-offset/scroll-offset.service.mjs +3 -3
- package/esm2020/lib/types/index.mjs +2 -1
- package/esm2020/lib/types/size.mjs +2 -0
- package/fesm2015/mintplayer-ng-bootstrap.mjs +1353 -478
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +1347 -478
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/components/badge/badge.component.d.ts +15 -0
- package/lib/components/badge/badge.module.d.ts +8 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/breadcrumb/breadcrumb/breadcrumb.component.d.ts +8 -0
- package/lib/components/breadcrumb/breadcrumb-item/breadcrumb-item.component.d.ts +9 -0
- package/lib/components/breadcrumb/breadcrumb.module.d.ts +9 -0
- package/lib/components/breadcrumb/index.d.ts +3 -0
- package/lib/components/button-group/button-group/button-group.component.d.ts +8 -0
- package/lib/components/button-group/button-group.module.d.ts +8 -0
- package/lib/components/button-group/index.d.ts +2 -0
- package/lib/components/carousel/carousel/carousel.component.d.ts +1 -0
- package/lib/components/close/close.component.d.ts +10 -0
- package/lib/components/close/close.module.d.ts +8 -0
- package/lib/components/close/index.d.ts +2 -0
- package/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +5 -2
- package/lib/components/index.d.ts +8 -0
- package/lib/components/modal/components/modal-host/modal-host.component.d.ts +8 -4
- package/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.d.ts +15 -5
- package/lib/components/offcanvas/components/offcanvas/offcanvas.component.d.ts +1 -0
- package/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.d.ts +2 -1
- package/lib/components/pagination/pagination/pagination.component.d.ts +10 -5
- package/lib/components/placeholder/index.d.ts +3 -0
- package/lib/components/placeholder/placeholder/placeholder.component.d.ts +8 -0
- package/lib/components/placeholder/placeholder-field/placeholder-field.directive.d.ts +14 -0
- package/lib/components/placeholder/placeholder.module.d.ts +9 -0
- package/lib/components/popover/component/popover.component.d.ts +19 -0
- package/lib/components/popover/directives/index.d.ts +3 -0
- package/lib/components/popover/directives/popover/popover.directive.d.ts +27 -0
- package/lib/components/popover/directives/popover-body/popover-body.directive.d.ts +7 -0
- package/lib/components/popover/directives/popover-header/popover-header.directive.d.ts +7 -0
- package/lib/components/popover/index.d.ts +3 -0
- package/lib/components/popover/popover.module.d.ts +12 -0
- package/lib/components/popover/providers/popover-content.provider.d.ts +2 -0
- package/lib/components/popover/providers/portal-factory.provider.d.ts +3 -0
- package/lib/components/progress-bar/progress/progress.component.d.ts +1 -1
- package/lib/components/spinner/index.d.ts +2 -0
- package/lib/components/spinner/spinner.component.d.ts +19 -0
- package/lib/components/spinner/spinner.module.d.ts +8 -0
- package/lib/components/toast/components/index.d.ts +4 -0
- package/lib/components/toast/components/toast/toast.component.d.ts +6 -0
- package/lib/components/toast/components/toast-body/toast-body.component.d.ts +7 -0
- package/lib/components/toast/components/toast-container/toast-container.component.d.ts +9 -0
- package/lib/components/toast/components/toast-header/toast-header.component.d.ts +7 -0
- package/lib/components/toast/directives/index.d.ts +1 -0
- package/lib/components/toast/directives/toast-close/toast-close.directive.d.ts +12 -0
- package/lib/components/toast/index.d.ts +4 -0
- package/lib/components/toast/providers/portal-factory.provider.d.ts +3 -0
- package/lib/components/toast/services/index.d.ts +1 -0
- package/lib/components/toast/services/toast/toast.service.d.ts +22 -0
- package/lib/components/toast/toast.module.d.ts +14 -0
- package/lib/pipes/add-properties/add-properties.module.d.ts +8 -0
- package/lib/pipes/add-properties/add-properties.pipe.d.ts +7 -0
- package/lib/pipes/add-properties/index.d.ts +2 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/providers/development.provider.d.ts +7 -0
- package/lib/providers/index.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/size.d.ts +1 -0
- package/package.json +3 -3
- package/src/styles/custom.scss +4 -16
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { BehaviorSubject, delay, map, Subject, take, takeUntil } from 'rxjs';
|
|
3
|
+
import { Directive, ElementRef, Host, Inject, Injector, Input, SkipSelf, TemplateRef } from '@angular/core';
|
|
4
|
+
import { Position } from '../../../../enums/position.enum';
|
|
5
|
+
import { POPOVER_CONTENT } from '../../providers/popover-content.provider';
|
|
6
|
+
import { PORTAL_FACTORY } from '../../providers/portal-factory.provider';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/cdk/overlay";
|
|
9
|
+
export class BsPopoverDirective {
|
|
10
|
+
constructor(overlay, templateRef, parentInjector, portalFactory, parent) {
|
|
11
|
+
this.overlay = overlay;
|
|
12
|
+
this.templateRef = templateRef;
|
|
13
|
+
this.parentInjector = parentInjector;
|
|
14
|
+
this.portalFactory = portalFactory;
|
|
15
|
+
this.parent = parent;
|
|
16
|
+
this.injector = null;
|
|
17
|
+
this.portal = null;
|
|
18
|
+
this.overlayRef = null;
|
|
19
|
+
this.component = null;
|
|
20
|
+
this.position$ = new BehaviorSubject(Position.bottom);
|
|
21
|
+
this.isVisible$ = new BehaviorSubject(false);
|
|
22
|
+
this.destroyed$ = new Subject();
|
|
23
|
+
this.position$.pipe(takeUntil(this.destroyed$)).subscribe((position) => {
|
|
24
|
+
if (this.component) {
|
|
25
|
+
this.component.instance.position = position;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
this.isVisible$.pipe(takeUntil(this.destroyed$)).subscribe((isVisible) => {
|
|
29
|
+
if (this.component) {
|
|
30
|
+
this.component.instance.isVisible = isVisible;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
this.connectedPosition$ = this.position$
|
|
34
|
+
.pipe(delay(20), map((position) => {
|
|
35
|
+
switch (position) {
|
|
36
|
+
case Position.top:
|
|
37
|
+
return {
|
|
38
|
+
originX: "center",
|
|
39
|
+
originY: "top",
|
|
40
|
+
overlayX: "center",
|
|
41
|
+
overlayY: "bottom"
|
|
42
|
+
};
|
|
43
|
+
case Position.left:
|
|
44
|
+
return {
|
|
45
|
+
originX: "start",
|
|
46
|
+
originY: "center",
|
|
47
|
+
overlayX: "end",
|
|
48
|
+
overlayY: "center",
|
|
49
|
+
};
|
|
50
|
+
case Position.right:
|
|
51
|
+
return {
|
|
52
|
+
originX: "end",
|
|
53
|
+
originY: "center",
|
|
54
|
+
overlayX: "start",
|
|
55
|
+
overlayY: "center"
|
|
56
|
+
};
|
|
57
|
+
default:
|
|
58
|
+
return {
|
|
59
|
+
originX: "center",
|
|
60
|
+
originY: "bottom",
|
|
61
|
+
overlayX: "center",
|
|
62
|
+
overlayY: "top"
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
this.connectedPosition$
|
|
67
|
+
.pipe(takeUntil(this.destroyed$))
|
|
68
|
+
.subscribe((connectedPosition) => {
|
|
69
|
+
if (this.overlayRef) {
|
|
70
|
+
this.overlayRef.updatePositionStrategy(this.overlay.position()
|
|
71
|
+
.flexibleConnectedTo(this.parent)
|
|
72
|
+
.withPositions([connectedPosition]));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
this.destroyed$.pipe(take(1)).subscribe(() => {
|
|
76
|
+
if (this.overlayRef) {
|
|
77
|
+
this.overlayRef.detach();
|
|
78
|
+
this.overlayRef.dispose();
|
|
79
|
+
this.overlayRef = null;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
set bsPopover(value) {
|
|
84
|
+
this.position$.next(value);
|
|
85
|
+
}
|
|
86
|
+
ngAfterViewInit() {
|
|
87
|
+
this.connectedPosition$.pipe(take(1)).subscribe((connectedPosition) => {
|
|
88
|
+
this.injector = Injector.create({
|
|
89
|
+
providers: [{ provide: POPOVER_CONTENT, useValue: this.templateRef }],
|
|
90
|
+
parent: this.parentInjector
|
|
91
|
+
});
|
|
92
|
+
this.portal = this.portalFactory(this.injector);
|
|
93
|
+
this.overlayRef = this.overlay.create({
|
|
94
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
95
|
+
positionStrategy: this.overlay.position()
|
|
96
|
+
.flexibleConnectedTo(this.parent)
|
|
97
|
+
.withPositions([connectedPosition]),
|
|
98
|
+
});
|
|
99
|
+
this.component = this.overlayRef.attach(this.portal);
|
|
100
|
+
this.component.instance.position = this.position$.value;
|
|
101
|
+
});
|
|
102
|
+
this.parent.nativeElement.onclick = () => {
|
|
103
|
+
this.isVisible$.pipe(take(1)).subscribe((isVisible) => {
|
|
104
|
+
this.isVisible$.next(!isVisible);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
ngOnDestroy() {
|
|
109
|
+
this.destroyed$.next(true);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
BsPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverDirective, deps: [{ token: i1.Overlay }, { token: i0.TemplateRef }, { token: i0.Injector }, { token: PORTAL_FACTORY }, { token: i0.ElementRef, host: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
113
|
+
BsPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: BsPopoverDirective, selector: "*[bsPopover]", inputs: { bsPopover: "bsPopover" }, ngImport: i0 });
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverDirective, decorators: [{
|
|
115
|
+
type: Directive,
|
|
116
|
+
args: [{
|
|
117
|
+
selector: '*[bsPopover]'
|
|
118
|
+
}]
|
|
119
|
+
}], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.TemplateRef }, { type: i0.Injector }, { type: undefined, decorators: [{
|
|
120
|
+
type: Inject,
|
|
121
|
+
args: [PORTAL_FACTORY]
|
|
122
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
123
|
+
type: Host
|
|
124
|
+
}, {
|
|
125
|
+
type: SkipSelf
|
|
126
|
+
}] }]; }, propDecorators: { bsPopover: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}] } });
|
|
129
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9wb3BvdmVyL2RpcmVjdGl2ZXMvcG9wb3Zlci9wb3BvdmVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXFCLE9BQU8sRUFBZ0MsTUFBTSxzQkFBc0IsQ0FBQztBQUVoRyxPQUFPLEVBQUUsZUFBZSxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQWMsT0FBTyxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDekYsT0FBTyxFQUF5RCxTQUFTLEVBQUUsVUFBVSxFQUFFLElBQUksRUFBZ0IsTUFBTSxFQUFFLFFBQVEsRUFBRSxLQUFLLEVBQWEsUUFBUSxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM1TCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFFM0QsT0FBTyxFQUFF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yKSA9PiBDb21wb25lbnRQb3J0YWw8YW55PixcbiAgICBASG9zdCgpIEBTa2lwU2VsZigpIHByaXZhdGUgcGFyZW50OiBFbGVtZW50UmVmXG4gICkge1xuICAgIHRoaXMucG9zaXRpb24kLnBpcGUodGFrZVVudGlsKHRoaXMuZGVzdHJveWVkJCkpLnN1YnNjcmliZSgocG9zaXRpb24pID0+IHtcbiAgICAgIGlmICh0aGlzLmNvbXBvbmVudCkge1xuICAgICAgICB0aGlzLmNvbXBvbmVudC5pbnN0YW5jZS5wb3NpdGlvbiA9IHBvc2l0aW9uO1xuICAgICAgfVxuICAgIH0pO1xuICAgIHRoaXMuaXNWaXNpYmxlJC5waXBlKHRha2VVbnRpbCh0aGlzLmRlc3Ryb3llZCQpKS5zdWJzY3JpYmUoKGlzVmlzaWJsZSkgPT4ge1xuICAgICAgaWYgKHRoaXMuY29tcG9uZW50KSB7XG4gICAgICAgIHRoaXMuY29tcG9uZW50Lmluc3RhbmNlLmlzVmlzaWJsZSA9IGlzVmlzaWJsZTtcbiAgICAgIH1cbiAgICB9KTtcbiAgICB0aGlzLmNvbm5lY3RlZFBvc2l0aW9uJCA9IHRoaXMucG9zaXRpb24kXG4gICAgICAucGlwZShkZWxheSgyMCksIG1hcCgocG9zaXRpb24pID0+IHtcbiAgICAgICAgc3dpdGNoIChwb3NpdGlvbikge1xuICAgICAgICAgIGNhc2UgUG9zaXRpb24udG9wOlxuICAgICAgICAgICAgcmV0dXJuIDxDb25uZWN0ZWRQb3NpdGlvbj57XG4gICAgICAgICAgICAgIG9yaWdpblg6IFwiY2VudGVyXCIsXG4gICAgICAgICAgICAgIG9yaWdpblk6IFwidG9wXCIsIC8vPC0tXG4gICAgICAgICAgICAgIG92ZXJsYXlYOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICBvdmVybGF5WTogXCJib3R0b21cIlxuICAgICAgICAgICAgfTtcbiAgICAgICAgICBjYXNlIFBvc2l0aW9uLmxlZnQ6XG4gICAgICAgICAgICByZXR1cm4gPENvbm5lY3RlZFBvc2l0aW9uPntcbiAgICAgICAgICAgICAgb3JpZ2luWDogXCJzdGFydFwiLCAvLzwtLVxuICAgICAgICAgICAgICBvcmlnaW5ZOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICBvdmVybGF5WDogXCJlbmRcIixcbiAgICAgICAgICAgICAgb3ZlcmxheVk6IFwiY2VudGVyXCIsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIGNhc2UgUG9zaXRpb24ucmlnaHQ6XG4gICAgICAgICAgICByZXR1cm4gPENvbm5lY3RlZFBvc2l0aW9uPntcbiAgICAgICAgICAgICAgb3JpZ2luWDogXCJlbmRcIiwgLy88LS1cbiAgICAgICAgICAgICAgb3JpZ2luWTogXCJjZW50ZXJcIixcbiAgICAgICAgICAgICAgb3ZlcmxheVg6IFwic3RhcnRcIixcbiAgICAgICAgICAgICAgb3ZlcmxheVk6IFwiY2VudGVyXCJcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgIHJldHVybiA8Q29ubmVjdGVkUG9zaXRpb24+e1xuICAgICAgICAgICAgICBvcmlnaW5YOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICBvcmlnaW5ZOiBcImJvdHRvbVwiLCAvLzwtLVxuICAgICAgICAgICAgICBvdmVybGF5WDogXCJjZW50ZXJcIixcbiAgICAgICAgICAgICAgb3ZlcmxheVk6IFwidG9wXCJcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cbiAgICAgIH0pKTtcblxuICAgIHRoaXMuY29ubmVjdGVkUG9zaXRpb24kXG4gICAgICAucGlwZSh0YWtlVW50aWwodGhpcy5kZXN0cm95ZWQkKSlcbiAgICAgIC5zdWJzY3JpYmUoKGNvbm5lY3RlZFBvc2l0aW9uKSA9PiB7XG4gICAgICAgIGlmICh0aGlzLm92ZXJsYXlSZWYpIHtcbiAgICAgICAgICB0aGlzLm92ZXJsYXlSZWYudXBkYXRlUG9zaXRpb25Td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W50Lm5hdGl2ZUVsZW1lbnQub25jbGljayA9ICgpID0+IHtcbiAgICAgIHRoaXMuaXNWaXNpYmxlJC5waXBlKHRha2UoMSkpLnN1YnNjcmliZSgoaXNWaXNpYmxlKSA9PiB7XG4gICAgICAgIHRoaXMuaXNWaXNpYmxlJC5uZXh0KCFpc1Zpc2libGUpO1xuICAgICAgfSk7XG4gICAgfTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuZGVzdHJveWVkJC5uZXh0KHRydWUpO1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Directive, HostBinding } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class BsPopoverBodyDirective {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.bodyClass = true;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
BsPopoverBodyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
BsPopoverBodyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: BsPopoverBodyDirective, selector: "[bsPopoverBody]", host: { properties: { "class.popover-body": "this.bodyClass" } }, ngImport: i0 });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverBodyDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[bsPopoverBody]'
|
|
14
|
+
}]
|
|
15
|
+
}], ctorParameters: function () { return []; }, propDecorators: { bodyClass: [{
|
|
16
|
+
type: HostBinding,
|
|
17
|
+
args: ['class.popover-body']
|
|
18
|
+
}] } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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PopoverHeaderDirective {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.headerClass = true;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
BsPopoverHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
BsPopoverHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.2", type: BsPopoverHeaderDirective, selector: "[bsPopoverHeader]", host: { properties: { "class.popover-header": "this.headerClass" } }, ngImport: i0 });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverHeaderDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: '[bsPopoverHeader]'
|
|
14
|
+
}]
|
|
15
|
+
}], ctorParameters: function () { return []; }, propDecorators: { headerClass: [{
|
|
16
|
+
type: HostBinding,
|
|
17
|
+
args: ['class.popover-header']
|
|
18
|
+
}] } });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci1oZWFkZXIuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9zcmMvbGliL2NvbXBvbmVudHMvcG9wb3Zlci9kaXJlY3RpdmVzL3BvcG92ZXItaGVhZGVyL3BvcG92ZXItaGVhZGVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLdkQsTUFBTSxPQUFPLHdCQUF3QjtJQUVuQztRQUVxQyxnQkFBVyxHQUFHLElBQUksQ0FBQztJQUZ4QyxDQUFDOztxSEFGTix3QkFBd0I7eUdBQXhCLHdCQUF3QjsyRkFBeEIsd0JBQXdCO2tCQUhwQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxtQkFBbUI7aUJBQzlCOzBFQUtzQyxXQUFXO3NCQUEvQyxXQUFXO3VCQUFDLHNCQUFzQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgSG9zdEJpbmRpbmcgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW2JzUG9wb3ZlckhlYWRlcl0nXG59KVxuZXhwb3J0IGNsYXNzIEJzUG9wb3ZlckhlYWRlckRpcmVjdGl2ZSB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLnBvcG92ZXItaGVhZGVyJykgaGVhZGVyQ2xhc3MgPSB0cnVlO1xuXG59XG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './component/popover.component';
|
|
2
|
+
export * from './directives';
|
|
3
|
+
export * from './popover.module';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9wb3BvdmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50L3BvcG92ZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZGlyZWN0aXZlcyc7XG5leHBvcnQgKiBmcm9tICcuL3BvcG92ZXIubW9kdWxlJzsiXX0=
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
4
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
+
import { BsPopoverComponent } from './component/popover.component';
|
|
6
|
+
import { BsPopoverDirective } from './directives/popover/popover.directive';
|
|
7
|
+
import { BsPopoverHeaderDirective } from './directives/popover-header/popover-header.directive';
|
|
8
|
+
import { BsPopoverBodyDirective } from './directives/popover-body/popover-body.directive';
|
|
9
|
+
import { PORTAL_FACTORY } from './providers/portal-factory.provider';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export class BsPopoverModule {
|
|
12
|
+
}
|
|
13
|
+
BsPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14
|
+
BsPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverModule, declarations: [BsPopoverComponent, BsPopoverDirective, BsPopoverHeaderDirective, BsPopoverBodyDirective], imports: [CommonModule, OverlayModule], exports: [BsPopoverDirective, BsPopoverHeaderDirective, BsPopoverBodyDirective] });
|
|
15
|
+
BsPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverModule, providers: [{
|
|
16
|
+
provide: PORTAL_FACTORY,
|
|
17
|
+
useValue: (injector) => {
|
|
18
|
+
return new ComponentPortal(BsPopoverComponent, null, injector);
|
|
19
|
+
}
|
|
20
|
+
}], imports: [CommonModule, OverlayModule] });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsPopoverModule, decorators: [{
|
|
22
|
+
type: NgModule,
|
|
23
|
+
args: [{
|
|
24
|
+
declarations: [BsPopoverComponent, BsPopoverDirective, BsPopoverHeaderDirective, BsPopoverBodyDirective],
|
|
25
|
+
imports: [CommonModule, OverlayModule],
|
|
26
|
+
exports: [BsPopoverDirective, BsPopoverHeaderDirective, BsPopoverBodyDirective],
|
|
27
|
+
providers: [{
|
|
28
|
+
provide: PORTAL_FACTORY,
|
|
29
|
+
useValue: (injector) => {
|
|
30
|
+
return new ComponentPortal(BsPopoverComponent, null, injector);
|
|
31
|
+
}
|
|
32
|
+
}]
|
|
33
|
+
}]
|
|
34
|
+
}] });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9wb3BvdmVyL3BvcG92ZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBWSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDbkUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDNUUs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mVyQm9keURpcmVjdGl2ZV0sXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIE92ZXJsYXlNb2R1bGVdLFxuICBleHBvcnRzOiBbQnNQb3BvdmVyRGlyZWN0aXZlLCBCc1BvcG92ZXJIZWFkZXJEaXJlY3RpdmUsIEJzUG9wb3ZlckJvZHlEaXJlY3RpdmVdLFxuICBwcm92aWRlcnM6IFt7XG4gICAgcHJvdmlkZTogUE9SVEFMX0ZBQ1RPUlksXG4gICAgdXNlVmFsdWU6IChpbmplY3RvcjogSW5qZWN0b3IpID0+IHtcbiAgICAgIHJldHVybiBuZXcgQ29tcG9uZW50UG9ydGFsKEJzUG9wb3ZlckNvbXBvbmVudCwgbnVsbCwgaW5qZWN0b3IpO1xuICAgIH1cbiAgfV1cbn0pXG5leHBvcnQgY2xhc3MgQnNQb3BvdmVyTW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
export const POPOVER_CONTENT = new InjectionToken('PopoverContent');
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci1jb250ZW50LnByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9zcmMvbGliL2NvbXBvbmVudHMvcG9wb3Zlci9wcm92aWRlcnMvcG9wb3Zlci1jb250ZW50LnByb3ZpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQWUsTUFBTSxlQUFlLENBQUM7QUFFNUQsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHLElBQUksY0FBYyxDQUFtQixnQkFBZ0IsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4sIFRlbXBsYXRlUmVmIH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuZXhwb3J0IGNvbnN0IFBPUE9WRVJfQ09OVEVOVCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxUZW1wbGF0ZVJlZjxhbnk+PignUG9wb3ZlckNvbnRlbnQnKTsiXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
export const PORTAL_FACTORY = new InjectionToken('PopoverPortalFactory');
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9ydGFsLWZhY3RvcnkucHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9wb3BvdmVyL3Byb3ZpZGVycy9wb3J0YWwtZmFjdG9yeS5wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsY0FBYyxFQUFZLE1BQU0sZUFBZSxDQUFDO0FBRXpELE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxJQUFJLGNBQWMsQ0FBK0Msc0JBQXNCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudFBvcnRhbCB9IGZyb20gXCJAYW5ndWxhci9jZGsvcG9ydGFsXCI7XG5pbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiwgSW5qZWN0b3IgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuXG5leHBvcnQgY29uc3QgUE9SVEFMX0ZBQ1RPUlkgPSBuZXcgSW5qZWN0aW9uVG9rZW48KGluamVjdG9yOiBJbmplY3RvcikgPT4gQ29tcG9uZW50UG9ydGFsPGFueT4+KCdQb3BvdmVyUG9ydGFsRmFjdG9yeScpOyJdfQ==
|
|
@@ -3,25 +3,29 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
4
|
export class BsProgressComponent {
|
|
5
5
|
constructor() {
|
|
6
|
-
|
|
6
|
+
// @HostBinding('class.progress') private progressClass = true;
|
|
7
7
|
this.height = null;
|
|
8
8
|
this.isIndeterminate = false;
|
|
9
|
+
this.progressClass = true;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
|
-
BsProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
12
|
-
BsProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
12
|
+
BsProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
BsProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: BsProgressComponent, selector: "bs-progress", inputs: { height: "height", isIndeterminate: "isIndeterminate" }, host: { properties: { "style.height.px": "this.height", "class.d-block": "this.progressClass", "class.overflow-hidden": "this.progressClass" } }, ngImport: i0, template: "<div class=\"progress\">\n <ng-content *ngIf=\"!isIndeterminate\"></ng-content>\n <div *ngIf=\"isIndeterminate\" class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" aria-valuenow=\"infinite\"></div>\n</div>", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:1rem}}:host .progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--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-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"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressComponent, decorators: [{
|
|
14
15
|
type: Component,
|
|
15
|
-
args: [{ selector: 'bs-progress', template: "<ng-content *ngIf=\"!isIndeterminate\"></ng-content>\n<div *ngIf=\"isIndeterminate\" class=\"progress-bar progress-bar-infinite\" role=\"progressbar\" aria-valuenow=\"infinite\"></div>", styles: ["@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%}}
|
|
16
|
-
}], propDecorators: {
|
|
17
|
-
type: HostBinding,
|
|
18
|
-
args: ['class.progress']
|
|
19
|
-
}], height: [{
|
|
16
|
+
args: [{ selector: 'bs-progress', template: "<div class=\"progress\">\n <ng-content *ngIf=\"!isIndeterminate\"></ng-content>\n <div *ngIf=\"isIndeterminate\" class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" aria-valuenow=\"infinite\"></div>\n</div>", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:1rem}}:host .progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--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-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"] }]
|
|
17
|
+
}], propDecorators: { height: [{
|
|
20
18
|
type: Input
|
|
21
19
|
}, {
|
|
22
20
|
type: HostBinding,
|
|
23
21
|
args: ['style.height.px']
|
|
24
22
|
}], isIndeterminate: [{
|
|
25
23
|
type: Input
|
|
24
|
+
}], progressClass: [{
|
|
25
|
+
type: HostBinding,
|
|
26
|
+
args: ['class.d-block']
|
|
27
|
+
}, {
|
|
28
|
+
type: HostBinding,
|
|
29
|
+
args: ['class.overflow-hidden']
|
|
26
30
|
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9zcmMvbGliL2NvbXBvbmVudHMvcHJvZ3Jlc3MtYmFyL3Byb2dyZXNzL3Byb2dyZXNzLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbWludHBsYXllci1uZy1ib290c3RyYXAvc3JjL2xpYi9jb21wb25lbnRzL3Byb2dyZXNzLWJhci9wcm9ncmVzcy9wcm9ncmVzcy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQU85RCxNQUFNLE9BQU8sbUJBQW1CO0lBTGhDO1FBTUUsK0RBQStEO1FBQ2YsV0FBTSxHQUFrQixJQUFJLENBQUM7UUFDN0Qsb0JBQWUsR0FBRyxLQUFLLENBQUM7UUFJaEMsa0JBQWEsR0FBRyxJQUFJLENBQUM7S0FFOUI7O2dIQVRZLG1CQUFtQjtvR0FBbkIsbUJBQW1CLHVRQ1BoQywrT0FHTTsyRkRJTyxtQkFBbUI7a0JBTC9CLFNBQVM7K0JBQ0UsYUFBYTs4QkFNeUIsTUFBTTtzQkFBckQsS0FBS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NsYXNzPVwicHJvZ3Jlc3MtYmFyIHByb2dyZXNzLWJhci1pbmZpbml0ZSBiZy1wcmltYXJ5XCIgcm9sZT1cInByb2dyZXNzYmFyXCIgYXJpYS12YWx1ZW5vdz1cImluZmluaXRlXCI+PC9kaXY+XG48L2Rpdj4iXX0=
|
|
@@ -73,11 +73,11 @@ export class BsProgressBarComponent {
|
|
|
73
73
|
this.destroyed$.next(true);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
BsProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
77
|
-
BsProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
76
|
+
BsProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
BsProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: BsProgressBarComponent, selector: "bs-progress-bar", inputs: { minimum: "minimum", maximum: "maximum", value: "value", color: "color", striped: "striped", animated: "animated" }, host: { properties: { "class.progress-bar-striped": "this.striped", "class.progress-bar-animated": "this.animated", "class.progress-bar": "this.progressBar", "class": "this.colorClass", "style.width": "this.widthStyle", "attr.role": "this.role", "attr.aria-valuenow": "this.valueNow", "attr.aria-valuemin": "this.valueMin", "attr.aria-valuemax": "this.valueMax" } }, ngImport: i0, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:1rem}}:host ::ng-deep .progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--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-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"] });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressBarComponent, decorators: [{
|
|
79
79
|
type: Component,
|
|
80
|
-
args: [{ selector: 'bs-progress-bar', template: "" }]
|
|
80
|
+
args: [{ selector: 'bs-progress-bar', template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:1rem}}:host ::ng-deep .progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--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-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"] }]
|
|
81
81
|
}], ctorParameters: function () { return []; }, propDecorators: { minimum: [{
|
|
82
82
|
type: Input
|
|
83
83
|
}], maximum: [{
|
|
@@ -5,12 +5,12 @@ import { BsProgressBarComponent } from './progress-bar/progress-bar.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export class BsProgressBarModule {
|
|
7
7
|
}
|
|
8
|
-
BsProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
9
|
-
BsProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.
|
|
8
|
+
BsProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
BsProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: BsProgressBarModule, declarations: [BsProgressBarComponent,
|
|
10
10
|
BsProgressComponent], imports: [CommonModule], exports: [BsProgressBarComponent,
|
|
11
11
|
BsProgressComponent] });
|
|
12
|
-
BsProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
12
|
+
BsProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressBarModule, imports: [CommonModule] });
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsProgressBarModule, decorators: [{
|
|
14
14
|
type: NgModule,
|
|
15
15
|
args: [{
|
|
16
16
|
declarations: [
|
|
@@ -52,9 +52,9 @@ export class BsRatingComponent {
|
|
|
52
52
|
this.previewValue$.next(null);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
BsRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
56
|
-
BsRatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
55
|
+
BsRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
BsRatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: BsRatingComponent, selector: "bs-rating", inputs: { maximum: "maximum", value: "value" }, outputs: { valueChange: "valueChange", starsChange: "starsChange" }, host: { listeners: { "mouseleave": "onMouseLeave()" } }, ngImport: i0, template: "<span class=\"cursor-pointer\" *ngFor=\"let star of (stars$ | async), let i = index\" (mouseenter)=\"hoverValue(i)\" (click)=\"selectValue(i)\">\n {{ star ? '★' : '☆' }}\n</span>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsRatingComponent, decorators: [{
|
|
58
58
|
type: Component,
|
|
59
59
|
args: [{ selector: 'bs-rating', template: "<span class=\"cursor-pointer\" *ngFor=\"let star of (stars$ | async), let i = index\" (mouseenter)=\"hoverValue(i)\" (click)=\"selectValue(i)\">\n {{ star ? '★' : '☆' }}\n</span>" }]
|
|
60
60
|
}], ctorParameters: function () { return []; }, propDecorators: { maximum: [{
|
|
@@ -4,10 +4,10 @@ import { BsRatingComponent } from './rating.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export class BsRatingModule {
|
|
6
6
|
}
|
|
7
|
-
BsRatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
8
|
-
BsRatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.
|
|
9
|
-
BsRatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
7
|
+
BsRatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsRatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
BsRatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: BsRatingModule, declarations: [BsRatingComponent], imports: [CommonModule], exports: [BsRatingComponent] });
|
|
9
|
+
BsRatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsRatingModule, imports: [CommonModule] });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsRatingModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
declarations: [
|
|
@@ -67,9 +67,9 @@ export class ResourceGroupPresenterComponent {
|
|
|
67
67
|
this.destroyed$.next(true);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
ResourceGroupPresenterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
71
|
-
ResourceGroupPresenterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
70
|
+
ResourceGroupPresenterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ResourceGroupPresenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
+
ResourceGroupPresenterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: ResourceGroupPresenterComponent, selector: "bs-resource-group-presenter", inputs: { level: "level", resourceGroup: "resourceGroup", timeSlots: "timeSlots", isExpanded: "isExpanded" }, ngImport: i0, template: "<ng-container *ngIf=\"(data$ | async) as data\">\n\n <!-- Data is a resource group -->\n <ng-container *ngIf=\"data.resourceGroup\">\n <!-- Header -->\n <tr class=\"p-0 cursor-pointer\" *ngIf=\"(timeSlots$ | async) as timeSlots\" [title]=\"data.resourceGroup.description\">\n <ng-container *ngIf=\"(colSpan$ | async) as colspan\">\n <td class=\"p-2 cursor-pointer\" [colSpan]=\"colspan + 1\" (click)=\"toggleExpanded()\">\n <span class=\"p-2 align-middle position-sticky\">\n <i class=\"bi bi-chevron-down\" [style.padding-left.px]=\"level * 20\" *ngIf=\"isExpanded$ | async\"></i>\n <i class=\"bi bi-chevron-right\" [style.padding-left.px]=\"level * 20\" *ngIf=\"(isExpanded$ | async) === false\"></i>\n {{ data.resourceGroup.description }}\n </span>\n </td>\n </ng-container>\n </tr>\n\n <!-- Subgroups or resources -->\n <ng-container *ngIf=\"isExpanded$ | async\">\n <ng-container *ngIf=\"(timeSlots$ | async) as timeSlots\">\n <ng-container *ngFor=\"let child of data.resourceGroup.children\">\n <bs-resource-group-presenter [resourceGroup]=\"child\" [timeSlots]=\"timeSlots\" [level]=\"level + 1\"></bs-resource-group-presenter>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- Data is a resource -->\n <tr *ngIf=\"data.resource\" class=\"p-0 bordered\" [title]=\"data.resource.description\">\n <td class=\"p-0 bg-white\">\n <div class=\"p-2\">{{ data.resource.description }}</div>\n </td>\n <ng-container *ngFor=\"let slots of (timeSlots$ | async)\">\n <td class=\"bg-white border-1\" *ngFor=\"let slot of slots.slots\">\n <!-- {{ slot.start | date: 'dd/MM/yyyy HH:mm:ss' }} -->\n </td>\n </ng-container>\n </tr>\n</ng-container>", styles: [":host{display:contents}tr{border-bottom-width:1px}tr:not(.bordered) td span.position-sticky{left:0;right:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ResourceGroupPresenterComponent, selector: "bs-resource-group-presenter", inputs: ["level", "resourceGroup", "timeSlots", "isExpanded"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ResourceGroupPresenterComponent, decorators: [{
|
|
73
73
|
type: Component,
|
|
74
74
|
args: [{ selector: 'bs-resource-group-presenter', template: "<ng-container *ngIf=\"(data$ | async) as data\">\n\n <!-- Data is a resource group -->\n <ng-container *ngIf=\"data.resourceGroup\">\n <!-- Header -->\n <tr class=\"p-0 cursor-pointer\" *ngIf=\"(timeSlots$ | async) as timeSlots\" [title]=\"data.resourceGroup.description\">\n <ng-container *ngIf=\"(colSpan$ | async) as colspan\">\n <td class=\"p-2 cursor-pointer\" [colSpan]=\"colspan + 1\" (click)=\"toggleExpanded()\">\n <span class=\"p-2 align-middle position-sticky\">\n <i class=\"bi bi-chevron-down\" [style.padding-left.px]=\"level * 20\" *ngIf=\"isExpanded$ | async\"></i>\n <i class=\"bi bi-chevron-right\" [style.padding-left.px]=\"level * 20\" *ngIf=\"(isExpanded$ | async) === false\"></i>\n {{ data.resourceGroup.description }}\n </span>\n </td>\n </ng-container>\n </tr>\n\n <!-- Subgroups or resources -->\n <ng-container *ngIf=\"isExpanded$ | async\">\n <ng-container *ngIf=\"(timeSlots$ | async) as timeSlots\">\n <ng-container *ngFor=\"let child of data.resourceGroup.children\">\n <bs-resource-group-presenter [resourceGroup]=\"child\" [timeSlots]=\"timeSlots\" [level]=\"level + 1\"></bs-resource-group-presenter>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <!-- Data is a resource -->\n <tr *ngIf=\"data.resource\" class=\"p-0 bordered\" [title]=\"data.resource.description\">\n <td class=\"p-0 bg-white\">\n <div class=\"p-2\">{{ data.resource.description }}</div>\n </td>\n <ng-container *ngFor=\"let slots of (timeSlots$ | async)\">\n <td class=\"bg-white border-1\" *ngFor=\"let slot of slots.slots\">\n <!-- {{ slot.start | date: 'dd/MM/yyyy HH:mm:ss' }} -->\n </td>\n </ng-container>\n </tr>\n</ng-container>", styles: [":host{display:contents}tr{border-bottom-width:1px}tr:not(.bordered) td span.position-sticky{left:0;right:0}\n"] }]
|
|
75
75
|
}], ctorParameters: function () { return []; }, propDecorators: { level: [{
|