Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/datepicker/bs-datepicker-inline.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from '@angular/core';

import { ComponentLoader, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
import { PositioningService } from 'ngx-bootstrap/positioning';

import { Subscription } from 'rxjs';
import { BsDatepickerInlineConfig } from './bs-datepicker-inline.config';
Expand All @@ -28,7 +29,7 @@ import { checkBsValue, setCurrentTimeOnDateSelect } from './utils/bs-calendar-ut
selector: 'bs-datepicker-inline',
exportAs: 'bsDatepickerInline',
standalone: true,
providers: [ComponentLoaderFactory]
providers: [ComponentLoaderFactory, PositioningService]
})
export class BsDatepickerInlineDirective implements OnInit, OnDestroy, OnChanges {
/**
Expand Down
3 changes: 2 additions & 1 deletion src/datepicker/bs-datepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
ViewContainerRef
} from '@angular/core';
import { ComponentLoader, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
import { PositioningService } from 'ngx-bootstrap/positioning';
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
import { filter, takeUntil } from 'rxjs/operators';
import { BsDatepickerConfig } from './bs-datepicker.config';
Expand All @@ -27,7 +28,7 @@ export let previousDate: Date | Date[] | undefined;
@Directive({
selector: '[bsDatepicker]',
exportAs: 'bsDatepicker',
providers: [ComponentLoaderFactory],
providers: [ComponentLoaderFactory, PositioningService],
standalone: true
})
export class BsDatepickerDirective implements OnInit, OnDestroy, OnChanges, AfterViewInit {
Expand Down
5 changes: 2 additions & 3 deletions src/datepicker/bs-daterangepicker-inline.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular/core';

import { ComponentLoader, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
import { PositioningService } from 'ngx-bootstrap/positioning';

import { Subscription } from 'rxjs';
import { filter } from 'rxjs/operators';
Expand All @@ -22,9 +23,7 @@ import {
selector: 'bs-daterangepicker-inline',
exportAs: 'bsDaterangepickerInline',
standalone: true,
providers: [
ComponentLoaderFactory
]
providers: [ComponentLoaderFactory, PositioningService]
})
export class BsDaterangepickerInlineDirective implements OnInit, OnDestroy, OnChanges {
_bsValue?: (Date|undefined)[] | undefined;
Expand Down
5 changes: 2 additions & 3 deletions src/datepicker/bs-daterangepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { BsDaterangepickerContainerComponent } from './themes/bs/bs-daterangepic
import { Observable, Subscription, Subject, BehaviorSubject } from 'rxjs';
import { filter, takeUntil } from 'rxjs/operators';
import { ComponentLoaderFactory, ComponentLoader } from 'ngx-bootstrap/component-loader';
import { PositioningService } from 'ngx-bootstrap/positioning';
import { BsDatepickerConfig } from './bs-datepicker.config';
import { DatepickerDateCustomClasses } from './models';
import {
Expand All @@ -25,9 +26,7 @@ export let previousDate: (Date | undefined)[] | undefined;
selector: '[bsDaterangepicker]',
exportAs: 'bsDaterangepicker',
standalone: true,
providers: [
ComponentLoaderFactory
]
providers: [ComponentLoaderFactory, PositioningService]
})
export class BsDaterangepickerDirective
implements OnInit, OnDestroy, OnChanges, AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { NgIf, NgClass, NgSwitch, NgSwitchCase, NgFor, AsyncPipe } from '@angula

@Component({
selector: 'bs-datepicker-inline-container',
providers: [BsDatepickerStore, BsDatepickerEffects, PositioningService],
providers: [BsDatepickerStore, BsDatepickerEffects],
templateUrl: './bs-datepicker-view.html',
host: {
'(click)': '_stopPropagation($event)'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { NgIf, NgClass, NgSwitch, NgSwitchCase, NgFor, AsyncPipe } from '@angula

@Component({
selector: 'bs-daterangepicker-container',
providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions, PositioningService],
providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions],
templateUrl: './bs-datepicker-view.html',
host: {
class: 'bottom',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { NgIf, NgClass, NgSwitch, NgSwitchCase, NgFor, AsyncPipe } from '@angula

@Component({
selector: 'bs-daterangepicker-inline-container',
providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions, PositioningService],
providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions],
templateUrl: './bs-datepicker-view.html',
host: {
'(click)': '_stopPropagation($event)'
Expand Down
Loading