ngx-bootstrap 8.0.0-RC.8 → 9.0.0-RC.1
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/accordion/accordion-group.component.d.ts +1 -1
- package/accordion/accordion.component.d.ts +1 -1
- package/accordion/esm2020/accordion-group.component.mjs +3 -3
- package/accordion/esm2020/accordion.component.mjs +3 -3
- package/accordion/esm2020/accordion.config.mjs +3 -3
- package/accordion/esm2020/accordion.module.mjs +5 -5
- package/accordion/fesm2015/ngx-bootstrap-accordion.mjs +13 -13
- package/accordion/fesm2015/ngx-bootstrap-accordion.mjs.map +1 -1
- package/accordion/fesm2020/ngx-bootstrap-accordion.mjs +13 -13
- package/accordion/fesm2020/ngx-bootstrap-accordion.mjs.map +1 -1
- package/accordion/package.json +7 -9
- package/alert/alert.component.d.ts +1 -1
- package/alert/esm2020/alert.component.mjs +3 -3
- package/alert/esm2020/alert.config.mjs +3 -3
- package/alert/esm2020/alert.module.mjs +6 -7
- package/alert/fesm2015/ngx-bootstrap-alert.mjs +11 -12
- package/alert/fesm2015/ngx-bootstrap-alert.mjs.map +1 -1
- package/alert/fesm2020/ngx-bootstrap-alert.mjs +11 -12
- package/alert/fesm2020/ngx-bootstrap-alert.mjs.map +1 -1
- package/alert/package.json +6 -6
- package/buttons/button-checkbox.directive.d.ts +1 -1
- package/buttons/button-radio-group.directive.d.ts +1 -1
- package/buttons/button-radio.directive.d.ts +1 -1
- package/buttons/esm2020/button-checkbox.directive.mjs +3 -3
- package/buttons/esm2020/button-radio-group.directive.mjs +3 -3
- package/buttons/esm2020/button-radio.directive.mjs +3 -3
- package/buttons/esm2020/buttons.module.mjs +4 -4
- package/buttons/fesm2015/ngx-bootstrap-buttons.mjs +13 -13
- package/buttons/fesm2015/ngx-bootstrap-buttons.mjs.map +1 -1
- package/buttons/fesm2020/ngx-bootstrap-buttons.mjs +13 -13
- package/buttons/fesm2020/ngx-bootstrap-buttons.mjs.map +1 -1
- package/buttons/package.json +5 -5
- package/carousel/carousel.component.d.ts +3 -2
- package/carousel/esm2020/carousel.component.mjs +13 -8
- package/carousel/esm2020/carousel.config.mjs +3 -3
- package/carousel/esm2020/carousel.module.mjs +5 -5
- package/carousel/esm2020/slide.component.mjs +7 -34
- package/carousel/fesm2015/ngx-bootstrap-carousel.mjs +28 -49
- package/carousel/fesm2015/ngx-bootstrap-carousel.mjs.map +1 -1
- package/carousel/fesm2020/ngx-bootstrap-carousel.mjs +26 -49
- package/carousel/fesm2020/ngx-bootstrap-carousel.mjs.map +1 -1
- package/carousel/package.json +6 -6
- package/carousel/slide.component.d.ts +1 -1
- package/chronos/fesm2015/ngx-bootstrap-chronos.mjs.map +1 -1
- package/chronos/fesm2020/ngx-bootstrap-chronos.mjs.map +1 -1
- package/chronos/package.json +3 -3
- package/collapse/collapse.directive.d.ts +1 -1
- package/collapse/esm2020/collapse.directive.mjs +5 -5
- package/collapse/esm2020/collapse.module.mjs +4 -4
- package/collapse/fesm2015/ngx-bootstrap-collapse.mjs +8 -8
- package/collapse/fesm2015/ngx-bootstrap-collapse.mjs.map +1 -1
- package/collapse/fesm2020/ngx-bootstrap-collapse.mjs +8 -8
- package/collapse/fesm2020/ngx-bootstrap-collapse.mjs.map +1 -1
- package/collapse/package.json +6 -6
- package/component-loader/component-loader.class.d.ts +2 -1
- package/component-loader/component-loader.factory.d.ts +2 -1
- package/component-loader/esm2020/component-loader.class.mjs +8 -5
- package/component-loader/esm2020/component-loader.factory.mjs +13 -8
- package/component-loader/fesm2015/ngx-bootstrap-component-loader.mjs +21 -11
- package/component-loader/fesm2015/ngx-bootstrap-component-loader.mjs.map +1 -1
- package/component-loader/fesm2020/ngx-bootstrap-component-loader.mjs +19 -11
- package/component-loader/fesm2020/ngx-bootstrap-component-loader.mjs.map +1 -1
- package/component-loader/package.json +5 -9
- package/datepicker/bs-datepicker-inline.component.d.ts +3 -1
- package/datepicker/bs-datepicker-input.directive.d.ts +1 -1
- package/datepicker/bs-datepicker.component.d.ts +3 -1
- package/datepicker/bs-datepicker.config.d.ts +4 -0
- package/datepicker/bs-daterangepicker-inline.component.d.ts +3 -1
- package/datepicker/bs-daterangepicker-input.directive.d.ts +1 -1
- package/datepicker/bs-daterangepicker.component.d.ts +3 -1
- package/datepicker/esm2020/bs-datepicker-inline.component.mjs +16 -6
- package/datepicker/esm2020/bs-datepicker-inline.config.mjs +3 -3
- package/datepicker/esm2020/bs-datepicker-input.directive.mjs +3 -3
- package/datepicker/esm2020/bs-datepicker.component.mjs +27 -17
- package/datepicker/esm2020/bs-datepicker.config.mjs +8 -4
- package/datepicker/esm2020/bs-datepicker.module.mjs +6 -13
- package/datepicker/esm2020/bs-daterangepicker-inline.component.mjs +30 -18
- package/datepicker/esm2020/bs-daterangepicker-inline.config.mjs +3 -3
- package/datepicker/esm2020/bs-daterangepicker-input.directive.mjs +3 -3
- package/datepicker/esm2020/bs-daterangepicker.component.mjs +14 -4
- package/datepicker/esm2020/bs-daterangepicker.config.mjs +3 -3
- package/datepicker/esm2020/bs-locale.service.mjs +3 -3
- package/datepicker/esm2020/reducer/bs-datepicker.actions.mjs +3 -3
- package/datepicker/esm2020/reducer/bs-datepicker.effects.mjs +3 -3
- package/datepicker/esm2020/reducer/bs-datepicker.reducer.mjs +2 -2
- package/datepicker/esm2020/reducer/bs-datepicker.store.mjs +3 -3
- package/datepicker/esm2020/themes/bs/bs-calendar-layout.component.mjs +7 -7
- package/datepicker/esm2020/themes/bs/bs-current-date-view.component.mjs +3 -3
- package/datepicker/esm2020/themes/bs/bs-custom-dates-view.component.mjs +4 -4
- package/datepicker/esm2020/themes/bs/bs-datepicker-container.component.mjs +29 -12
- package/datepicker/esm2020/themes/bs/bs-datepicker-day-decorator.directive.mjs +3 -3
- package/datepicker/esm2020/themes/bs/bs-datepicker-inline-container.component.mjs +9 -9
- package/datepicker/esm2020/themes/bs/bs-datepicker-navigation-view.component.mjs +4 -4
- package/datepicker/esm2020/themes/bs/bs-daterangepicker-container.component.mjs +31 -11
- package/datepicker/esm2020/themes/bs/bs-daterangepicker-inline-container.component.mjs +9 -9
- package/datepicker/esm2020/themes/bs/bs-days-calendar-view.component.mjs +9 -9
- package/datepicker/esm2020/themes/bs/bs-months-calendar-view.component.mjs +7 -7
- package/datepicker/esm2020/themes/bs/bs-timepicker-view.component.mjs +3 -3
- package/datepicker/esm2020/themes/bs/bs-years-calendar-view.component.mjs +7 -7
- package/datepicker/esm2020/utils/copy-time-utils.mjs +4 -1
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs +303 -218
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs +298 -218
- package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/datepicker/package.json +11 -17
- package/datepicker/themes/bs/bs-calendar-layout.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-current-date-view.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-datepicker-container.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.d.ts +1 -1
- package/datepicker/themes/bs/bs-datepicker-inline-container.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-datepicker-navigation-view.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-daterangepicker-container.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-daterangepicker-inline-container.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-days-calendar-view.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-months-calendar-view.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-timepicker-view.component.d.ts +1 -1
- package/datepicker/themes/bs/bs-years-calendar-view.component.d.ts +1 -1
- package/dropdown/bs-dropdown-container.component.d.ts +1 -1
- package/dropdown/bs-dropdown-menu.directive.d.ts +1 -1
- package/dropdown/bs-dropdown-toggle.directive.d.ts +1 -1
- package/dropdown/bs-dropdown.directive.d.ts +1 -1
- package/dropdown/esm2020/bs-dropdown-container.component.mjs +4 -4
- package/dropdown/esm2020/bs-dropdown-menu.directive.mjs +3 -3
- package/dropdown/esm2020/bs-dropdown-toggle.directive.mjs +3 -3
- package/dropdown/esm2020/bs-dropdown.config.mjs +3 -3
- package/dropdown/esm2020/bs-dropdown.directive.mjs +3 -3
- package/dropdown/esm2020/bs-dropdown.module.mjs +6 -7
- package/dropdown/esm2020/bs-dropdown.state.mjs +3 -3
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.mjs +24 -25
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.mjs.map +1 -1
- package/dropdown/fesm2020/ngx-bootstrap-dropdown.mjs +24 -25
- package/dropdown/fesm2020/ngx-bootstrap-dropdown.mjs.map +1 -1
- package/dropdown/package.json +9 -12
- package/fesm2015/ngx-bootstrap.mjs.map +1 -1
- package/fesm2020/ngx-bootstrap.mjs.map +1 -1
- package/focus-trap/esm2020/focus-trap-manager.mjs +3 -3
- package/focus-trap/esm2020/focus-trap.mjs +6 -6
- package/focus-trap/esm2020/focus-trap.module.mjs +5 -5
- package/focus-trap/esm2020/interactivity-checker.mjs +3 -3
- package/focus-trap/esm2020/platform.mjs +3 -3
- package/focus-trap/fesm2015/ngx-bootstrap-focus-trap.mjs +19 -19
- package/focus-trap/fesm2015/ngx-bootstrap-focus-trap.mjs.map +1 -1
- package/focus-trap/fesm2020/ngx-bootstrap-focus-trap.mjs +19 -19
- package/focus-trap/fesm2020/ngx-bootstrap-focus-trap.mjs.map +1 -1
- package/focus-trap/focus-trap.d.ts +1 -1
- package/focus-trap/package.json +6 -6
- package/locale/fesm2015/ngx-bootstrap-locale.mjs.map +1 -1
- package/locale/fesm2020/ngx-bootstrap-locale.mjs.map +1 -1
- package/locale/package.json +4 -4
- package/mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.mjs.map +1 -1
- package/mini-ngrx/fesm2020/ngx-bootstrap-mini-ngrx.mjs.map +1 -1
- package/mini-ngrx/package.json +4 -4
- package/modal/esm2020/bs-modal-ref.service.mjs +3 -3
- package/modal/esm2020/bs-modal.service.mjs +3 -3
- package/modal/esm2020/modal-backdrop.component.mjs +3 -3
- package/modal/esm2020/modal-container.component.mjs +4 -4
- package/modal/esm2020/modal-options.class.mjs +3 -3
- package/modal/esm2020/modal.directive.mjs +3 -3
- package/modal/esm2020/modal.module.mjs +6 -7
- package/modal/fesm2015/ngx-bootstrap-modal.mjs +24 -25
- package/modal/fesm2015/ngx-bootstrap-modal.mjs.map +1 -1
- package/modal/fesm2020/ngx-bootstrap-modal.mjs +24 -25
- package/modal/fesm2020/ngx-bootstrap-modal.mjs.map +1 -1
- package/modal/modal-backdrop.component.d.ts +1 -1
- package/modal/modal-container.component.d.ts +1 -1
- package/modal/modal.directive.d.ts +1 -1
- package/modal/package.json +6 -11
- package/package.json +6 -3
- package/pagination/esm2020/pager.component.mjs +3 -3
- package/pagination/esm2020/pagination.component.mjs +3 -3
- package/pagination/esm2020/pagination.config.mjs +3 -3
- package/pagination/esm2020/pagination.module.mjs +5 -5
- package/pagination/fesm2015/ngx-bootstrap-pagination.mjs +13 -13
- package/pagination/fesm2015/ngx-bootstrap-pagination.mjs.map +1 -1
- package/pagination/fesm2020/ngx-bootstrap-pagination.mjs +13 -13
- package/pagination/fesm2020/ngx-bootstrap-pagination.mjs.map +1 -1
- package/pagination/package.json +6 -6
- package/pagination/pager.component.d.ts +1 -1
- package/pagination/pagination.component.d.ts +1 -1
- package/popover/esm2020/popover-container.component.mjs +5 -26
- package/popover/esm2020/popover.config.mjs +4 -4
- package/popover/esm2020/popover.directive.mjs +8 -5
- package/popover/esm2020/popover.module.mjs +6 -7
- package/popover/fesm2015/ngx-bootstrap-popover.mjs +19 -38
- package/popover/fesm2015/ngx-bootstrap-popover.mjs.map +1 -1
- package/popover/fesm2020/ngx-bootstrap-popover.mjs +19 -38
- package/popover/fesm2020/ngx-bootstrap-popover.mjs.map +1 -1
- package/popover/package.json +7 -10
- package/popover/popover-container.component.d.ts +1 -1
- package/popover/popover.config.d.ts +1 -0
- package/popover/popover.directive.d.ts +2 -1
- package/positioning/esm2020/positioning.service.mjs +3 -3
- package/positioning/fesm2015/ngx-bootstrap-positioning.mjs +3 -3
- package/positioning/fesm2015/ngx-bootstrap-positioning.mjs.map +1 -1
- package/positioning/fesm2020/ngx-bootstrap-positioning.mjs +3 -3
- package/positioning/fesm2020/ngx-bootstrap-positioning.mjs.map +1 -1
- package/positioning/package.json +8 -8
- package/progressbar/bar.component.d.ts +1 -1
- package/progressbar/esm2020/bar.component.mjs +5 -5
- package/progressbar/esm2020/progressbar.component.mjs +7 -11
- package/progressbar/esm2020/progressbar.config.mjs +3 -3
- package/progressbar/esm2020/progressbar.module.mjs +5 -5
- package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs +18 -22
- package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs.map +1 -1
- package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs +16 -20
- package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs.map +1 -1
- package/progressbar/package.json +6 -6
- package/progressbar/progressbar.component.d.ts +1 -1
- package/rating/esm2020/rating.component.mjs +3 -3
- package/rating/esm2020/rating.config.mjs +3 -3
- package/rating/esm2020/rating.module.mjs +5 -5
- package/rating/fesm2015/ngx-bootstrap-rating.mjs +10 -10
- package/rating/fesm2015/ngx-bootstrap-rating.mjs.map +1 -1
- package/rating/fesm2020/ngx-bootstrap-rating.mjs +10 -10
- package/rating/fesm2020/ngx-bootstrap-rating.mjs.map +1 -1
- package/rating/package.json +6 -6
- package/rating/rating.component.d.ts +1 -1
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/package.json +6 -10
- package/schematics/{README.md → src/schematics/README.md} +0 -0
- package/schematics/utils/current_dependency_versions.json +1 -1
- package/sortable/esm2020/draggable-item.service.mjs +3 -3
- package/sortable/esm2020/sortable.component.mjs +4 -4
- package/sortable/esm2020/sortable.module.mjs +5 -5
- package/sortable/fesm2015/ngx-bootstrap-sortable.mjs +11 -11
- package/sortable/fesm2015/ngx-bootstrap-sortable.mjs.map +1 -1
- package/sortable/fesm2020/ngx-bootstrap-sortable.mjs +11 -11
- package/sortable/fesm2020/ngx-bootstrap-sortable.mjs.map +1 -1
- package/sortable/package.json +8 -8
- package/sortable/sortable.component.d.ts +1 -1
- package/tabs/esm2020/ng-transclude.directive.mjs +3 -3
- package/tabs/esm2020/tab-heading.directive.mjs +3 -3
- package/tabs/esm2020/tab.directive.mjs +3 -3
- package/tabs/esm2020/tabs.module.mjs +5 -5
- package/tabs/esm2020/tabset.component.mjs +3 -3
- package/tabs/esm2020/tabset.config.mjs +3 -3
- package/tabs/fesm2015/ngx-bootstrap-tabs.mjs +19 -19
- package/tabs/fesm2015/ngx-bootstrap-tabs.mjs.map +1 -1
- package/tabs/fesm2020/ngx-bootstrap-tabs.mjs +19 -19
- package/tabs/fesm2020/ngx-bootstrap-tabs.mjs.map +1 -1
- package/tabs/ng-transclude.directive.d.ts +1 -1
- package/tabs/package.json +5 -5
- package/tabs/tab-heading.directive.d.ts +1 -1
- package/tabs/tab.directive.d.ts +1 -1
- package/tabs/tabset.component.d.ts +1 -1
- package/timepicker/esm2020/reducer/timepicker.actions.mjs +3 -3
- package/timepicker/esm2020/reducer/timepicker.store.mjs +3 -3
- package/timepicker/esm2020/timepicker.component.mjs +5 -31
- package/timepicker/esm2020/timepicker.config.mjs +3 -3
- package/timepicker/esm2020/timepicker.module.mjs +5 -5
- package/timepicker/fesm2015/ngx-bootstrap-timepicker.mjs +17 -43
- package/timepicker/fesm2015/ngx-bootstrap-timepicker.mjs.map +1 -1
- package/timepicker/fesm2020/ngx-bootstrap-timepicker.mjs +17 -43
- package/timepicker/fesm2020/ngx-bootstrap-timepicker.mjs.map +1 -1
- package/timepicker/package.json +8 -9
- package/timepicker/timepicker.component.d.ts +1 -1
- package/tooltip/esm2020/tooltip-container.component.mjs +7 -33
- package/tooltip/esm2020/tooltip.config.mjs +3 -3
- package/tooltip/esm2020/tooltip.directive.mjs +3 -3
- package/tooltip/esm2020/tooltip.module.mjs +6 -7
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs +17 -44
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs +17 -44
- package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/tooltip/package.json +8 -11
- package/tooltip/tooltip-container.component.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +1 -1
- package/typeahead/esm2020/typeahead-container.component.mjs +5 -16
- package/typeahead/esm2020/typeahead.config.mjs +3 -3
- package/typeahead/esm2020/typeahead.directive.mjs +3 -3
- package/typeahead/esm2020/typeahead.module.mjs +6 -7
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.mjs +15 -27
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.mjs.map +1 -1
- package/typeahead/fesm2020/ngx-bootstrap-typeahead.mjs +15 -27
- package/typeahead/fesm2020/ngx-bootstrap-typeahead.mjs.map +1 -1
- package/typeahead/package.json +10 -13
- package/typeahead/typeahead-container.component.d.ts +1 -1
- package/typeahead/typeahead.directive.d.ts +1 -1
- package/utils/esm2020/theme-provider.mjs +9 -7
- package/utils/fesm2015/ngx-bootstrap-utils.mjs +8 -6
- package/utils/fesm2015/ngx-bootstrap-utils.mjs.map +1 -1
- package/utils/fesm2020/ngx-bootstrap-utils.mjs +8 -6
- package/utils/fesm2020/ngx-bootstrap-utils.mjs.map +1 -1
- package/utils/package.json +4 -4
- package/accordion/ngx-bootstrap-accordion.d.ts +0 -5
- package/alert/ngx-bootstrap-alert.d.ts +0 -5
- package/buttons/ngx-bootstrap-buttons.d.ts +0 -5
- package/carousel/ngx-bootstrap-carousel.d.ts +0 -5
- package/chronos/ngx-bootstrap-chronos.d.ts +0 -5
- package/collapse/ngx-bootstrap-collapse.d.ts +0 -5
- package/component-loader/ngx-bootstrap-component-loader.d.ts +0 -5
- package/datepicker/ngx-bootstrap-datepicker.d.ts +0 -5
- package/dropdown/ngx-bootstrap-dropdown.d.ts +0 -5
- package/focus-trap/ngx-bootstrap-focus-trap.d.ts +0 -5
- package/locale/ngx-bootstrap-locale.d.ts +0 -5
- package/mini-ngrx/ngx-bootstrap-mini-ngrx.d.ts +0 -5
- package/modal/ngx-bootstrap-modal.d.ts +0 -5
- package/ngx-bootstrap.d.ts +0 -5
- package/pagination/ngx-bootstrap-pagination.d.ts +0 -5
- package/popover/ngx-bootstrap-popover.d.ts +0 -5
- package/positioning/ngx-bootstrap-positioning.d.ts +0 -5
- package/progressbar/ngx-bootstrap-progressbar.d.ts +0 -5
- package/rating/ngx-bootstrap-rating.d.ts +0 -5
- package/sortable/ngx-bootstrap-sortable.d.ts +0 -5
- package/tabs/ngx-bootstrap-tabs.d.ts +0 -5
- package/timepicker/ngx-bootstrap-timepicker.d.ts +0 -5
- package/tooltip/ngx-bootstrap-tooltip.d.ts +0 -5
- package/typeahead/ngx-bootstrap-typeahead.d.ts +0 -5
- package/utils/ngx-bootstrap-utils.d.ts +0 -5
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable,
|
2
|
+
import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, Directive, forwardRef, Host, NgModule } from '@angular/core';
|
3
3
|
import { filter, map, take, takeUntil, distinctUntilChanged } from 'rxjs/operators';
|
4
4
|
import { isFirstDayOfWeek, getDay, shiftDate, isBefore, endOf, isAfter, startOf, isArray, isSame, getFirstDayOfMonth, formatDate, getLocale, isSameMonth, isSameDay, isDisabledDay, isSameYear, isDateValid, setFullDate, getMonth, getFullYear, isDate, parseDate, utcAsLocal } from 'ngx-bootstrap/chronos';
|
5
5
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
@@ -7,12 +7,12 @@ import { Subscription, BehaviorSubject, combineLatest, Subject } from 'rxjs';
|
|
7
7
|
import { MiniStore, MiniState } from 'ngx-bootstrap/mini-ngrx';
|
8
8
|
import * as i5 from 'ngx-bootstrap/positioning';
|
9
9
|
import { PositioningService } from 'ngx-bootstrap/positioning';
|
10
|
-
import * as
|
10
|
+
import * as i6 from '@angular/common';
|
11
11
|
import { CommonModule } from '@angular/common';
|
12
|
-
import * as i6 from 'ngx-bootstrap/tooltip';
|
13
|
-
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
14
12
|
import * as i7 from 'ngx-bootstrap/timepicker';
|
15
13
|
import { TimepickerActions, TimepickerModule } from 'ngx-bootstrap/timepicker';
|
14
|
+
import * as i3 from 'ngx-bootstrap/tooltip';
|
15
|
+
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
16
16
|
import * as i2 from 'ngx-bootstrap/component-loader';
|
17
17
|
import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
18
18
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
@@ -93,11 +93,15 @@ class BsDatepickerConfig {
|
|
93
93
|
* Shows timepicker under datepicker
|
94
94
|
*/
|
95
95
|
this.withTimepicker = false;
|
96
|
+
/**
|
97
|
+
* Set allowed positions of container.
|
98
|
+
*/
|
99
|
+
this.allowedPositions = ['top', 'bottom'];
|
96
100
|
}
|
97
101
|
}
|
98
|
-
BsDatepickerConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
99
|
-
BsDatepickerConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
102
|
+
BsDatepickerConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
103
|
+
BsDatepickerConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerConfig, providedIn: 'root' });
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerConfig, decorators: [{
|
101
105
|
type: Injectable,
|
102
106
|
args: [{
|
103
107
|
providedIn: 'root'
|
@@ -336,9 +340,9 @@ BsDatepickerActions.SET_DATE_TOOLTIP_TEXTS = '[datepicker] set date tooltip text
|
|
336
340
|
BsDatepickerActions.SET_LOCALE = '[datepicker] set datepicker locale';
|
337
341
|
BsDatepickerActions.SELECT_TIME = '[datepicker] select time';
|
338
342
|
BsDatepickerActions.SELECT_RANGE = '[daterangepicker] select dates range';
|
339
|
-
BsDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
340
|
-
BsDatepickerActions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
343
|
+
BsDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerActions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
344
|
+
BsDatepickerActions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerActions, providedIn: 'platform' });
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerActions, decorators: [{
|
342
346
|
type: Injectable,
|
343
347
|
args: [{ providedIn: 'platform' }]
|
344
348
|
}] });
|
@@ -365,9 +369,9 @@ class BsLocaleService {
|
|
365
369
|
this._locale.next(locale);
|
366
370
|
}
|
367
371
|
}
|
368
|
-
BsLocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
369
|
-
BsLocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
372
|
+
BsLocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsLocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
373
|
+
BsLocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsLocaleService, providedIn: 'platform' });
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsLocaleService, decorators: [{
|
371
375
|
type: Injectable,
|
372
376
|
args: [{ providedIn: 'platform' }]
|
373
377
|
}] });
|
@@ -554,9 +558,9 @@ class BsDatepickerEffects {
|
|
554
558
|
}
|
555
559
|
}
|
556
560
|
}
|
557
|
-
BsDatepickerEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
558
|
-
BsDatepickerEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
561
|
+
BsDatepickerEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerEffects, deps: [{ token: BsDatepickerActions }, { token: BsLocaleService }], target: i0.ɵɵFactoryTarget.Injectable });
|
562
|
+
BsDatepickerEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerEffects, providedIn: 'platform' });
|
563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerEffects, decorators: [{
|
560
564
|
type: Injectable,
|
561
565
|
args: [{ providedIn: 'platform' }]
|
562
566
|
}], ctorParameters: function () { return [{ type: BsDatepickerActions }, { type: BsLocaleService }]; } });
|
@@ -999,6 +1003,9 @@ function flagYearsCalendar(yearsCalendar, options) {
|
|
999
1003
|
}
|
1000
1004
|
|
1001
1005
|
function copyTime(sourceDate, time) {
|
1006
|
+
if (!sourceDate || !isNaN(sourceDate.getTime())) {
|
1007
|
+
return;
|
1008
|
+
}
|
1002
1009
|
sourceDate.setHours(time.getHours());
|
1003
1010
|
sourceDate.setMinutes(time.getMinutes());
|
1004
1011
|
sourceDate.setSeconds(time.getSeconds());
|
@@ -1006,6 +1013,7 @@ function copyTime(sourceDate, time) {
|
|
1006
1013
|
}
|
1007
1014
|
|
1008
1015
|
function bsDatepickerReducer(state = initialDatepickerState, action) {
|
1016
|
+
var _a;
|
1009
1017
|
switch (action.type) {
|
1010
1018
|
case BsDatepickerActions.CALCULATE: {
|
1011
1019
|
return calculateReducer(state);
|
@@ -1113,7 +1121,7 @@ function bsDatepickerReducer(state = initialDatepickerState, action) {
|
|
1113
1121
|
selectedRange: action.payload,
|
1114
1122
|
view: state.view
|
1115
1123
|
};
|
1116
|
-
newState.selectedRange.forEach((dte, index) => {
|
1124
|
+
(_a = newState.selectedRange) === null || _a === void 0 ? void 0 : _a.forEach((dte, index) => {
|
1117
1125
|
if (Array.isArray(state.selectedTime)) {
|
1118
1126
|
const _time = state.selectedTime[index];
|
1119
1127
|
if (_time) {
|
@@ -1379,13 +1387,60 @@ class BsDatepickerStore extends MiniStore {
|
|
1379
1387
|
super(_dispatcher, bsDatepickerReducer, state);
|
1380
1388
|
}
|
1381
1389
|
}
|
1382
|
-
BsDatepickerStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1383
|
-
BsDatepickerStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
1384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1390
|
+
BsDatepickerStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1391
|
+
BsDatepickerStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerStore, providedIn: 'platform' });
|
1392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerStore, decorators: [{
|
1385
1393
|
type: Injectable,
|
1386
1394
|
args: [{ providedIn: 'platform' }]
|
1387
1395
|
}], ctorParameters: function () { return []; } });
|
1388
1396
|
|
1397
|
+
class BsCustomDatesViewComponent {
|
1398
|
+
constructor() {
|
1399
|
+
this.onSelect = new EventEmitter();
|
1400
|
+
}
|
1401
|
+
selectFromRanges(range) {
|
1402
|
+
this.onSelect.emit(range);
|
1403
|
+
}
|
1404
|
+
}
|
1405
|
+
BsCustomDatesViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsCustomDatesViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1406
|
+
BsCustomDatesViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: { ranges: "ranges", selectedRange: "selectedRange", customRangeLabel: "customRangeLabel" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: `
|
1407
|
+
<div class="bs-datepicker-predefined-btns">
|
1408
|
+
<button *ngFor="let range of ranges"
|
1409
|
+
type="button"
|
1410
|
+
class="btn"
|
1411
|
+
(click)="selectFromRanges(range)"
|
1412
|
+
[class.selected]="range.value === selectedRange">
|
1413
|
+
{{ range.label }}
|
1414
|
+
</button>
|
1415
|
+
</div>
|
1416
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsCustomDatesViewComponent, decorators: [{
|
1418
|
+
type: Component,
|
1419
|
+
args: [{
|
1420
|
+
selector: 'bs-custom-date-view',
|
1421
|
+
template: `
|
1422
|
+
<div class="bs-datepicker-predefined-btns">
|
1423
|
+
<button *ngFor="let range of ranges"
|
1424
|
+
type="button"
|
1425
|
+
class="btn"
|
1426
|
+
(click)="selectFromRanges(range)"
|
1427
|
+
[class.selected]="range.value === selectedRange">
|
1428
|
+
{{ range.label }}
|
1429
|
+
</button>
|
1430
|
+
</div>
|
1431
|
+
`,
|
1432
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
1433
|
+
}]
|
1434
|
+
}], propDecorators: { ranges: [{
|
1435
|
+
type: Input
|
1436
|
+
}], selectedRange: [{
|
1437
|
+
type: Input
|
1438
|
+
}], customRangeLabel: [{
|
1439
|
+
type: Input
|
1440
|
+
}], onSelect: [{
|
1441
|
+
type: Output
|
1442
|
+
}] } });
|
1443
|
+
|
1389
1444
|
/** *************** */
|
1390
1445
|
// events
|
1391
1446
|
/** *************** */
|
@@ -1397,9 +1452,9 @@ var BsNavigationDirection;
|
|
1397
1452
|
|
1398
1453
|
class BsCurrentDateViewComponent {
|
1399
1454
|
}
|
1400
|
-
BsCurrentDateViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1401
|
-
BsCurrentDateViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1455
|
+
BsCurrentDateViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsCurrentDateViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1456
|
+
BsCurrentDateViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsCurrentDateViewComponent, selector: "bs-current-date", inputs: { title: "title" }, ngImport: i0, template: `<div class="current-timedate"><span>{{ title }}</span></div>`, isInline: true });
|
1457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsCurrentDateViewComponent, decorators: [{
|
1403
1458
|
type: Component,
|
1404
1459
|
args: [{
|
1405
1460
|
selector: 'bs-current-date',
|
@@ -1416,8 +1471,8 @@ class BsTimepickerViewComponent {
|
|
1416
1471
|
this.minutes = 0;
|
1417
1472
|
}
|
1418
1473
|
}
|
1419
|
-
BsTimepickerViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1420
|
-
BsTimepickerViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1474
|
+
BsTimepickerViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsTimepickerViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1475
|
+
BsTimepickerViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsTimepickerViewComponent, selector: "bs-timepicker", ngImport: i0, template: `
|
1421
1476
|
<div class="bs-timepicker-container">
|
1422
1477
|
<div class="bs-timepicker-controls">
|
1423
1478
|
<button class="bs-decrease" type="button">-</button>
|
@@ -1436,7 +1491,7 @@ BsTimepickerViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
1436
1491
|
</button>
|
1437
1492
|
</div>
|
1438
1493
|
`, isInline: true });
|
1439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsTimepickerViewComponent, decorators: [{
|
1440
1495
|
type: Component,
|
1441
1496
|
args: [{
|
1442
1497
|
selector: 'bs-timepicker',
|
@@ -1464,8 +1519,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
1464
1519
|
|
1465
1520
|
class BsCalendarLayoutComponent {
|
1466
1521
|
}
|
1467
|
-
BsCalendarLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1468
|
-
BsCalendarLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1522
|
+
BsCalendarLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsCalendarLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1523
|
+
BsCalendarLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout", ngImport: i0, template: `
|
1469
1524
|
<!-- current date, will be added in nearest releases -->
|
1470
1525
|
<bs-current-date title="hey there" *ngIf="false"></bs-current-date>
|
1471
1526
|
|
@@ -1480,8 +1535,8 @@ BsCalendarLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
1480
1535
|
|
1481
1536
|
<!--timepicker-->
|
1482
1537
|
<bs-timepicker *ngIf="false"></bs-timepicker>
|
1483
|
-
`, isInline: true,
|
1484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1538
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BsCurrentDateViewComponent, selector: "bs-current-date", inputs: ["title"] }, { kind: "component", type: BsTimepickerViewComponent, selector: "bs-timepicker" }] });
|
1539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsCalendarLayoutComponent, decorators: [{
|
1485
1540
|
type: Component,
|
1486
1541
|
args: [{
|
1487
1542
|
selector: 'bs-calendar-layout',
|
@@ -1504,6 +1559,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
1504
1559
|
}]
|
1505
1560
|
}] });
|
1506
1561
|
|
1562
|
+
class BsDatepickerDayDecoratorComponent {
|
1563
|
+
constructor(_config, _elRef, _renderer) {
|
1564
|
+
this._config = _config;
|
1565
|
+
this._elRef = _elRef;
|
1566
|
+
this._renderer = _renderer;
|
1567
|
+
this.day = { date: new Date(), label: '' };
|
1568
|
+
}
|
1569
|
+
ngOnInit() {
|
1570
|
+
var _a, _b, _c;
|
1571
|
+
if (((_a = this.day) === null || _a === void 0 ? void 0 : _a.isToday) && this._config && this._config.customTodayClass) {
|
1572
|
+
this._renderer.addClass(this._elRef.nativeElement, this._config.customTodayClass);
|
1573
|
+
}
|
1574
|
+
if (typeof ((_b = this.day) === null || _b === void 0 ? void 0 : _b.customClasses) === 'string') {
|
1575
|
+
(_c = this.day) === null || _c === void 0 ? void 0 : _c.customClasses.split(' ').filter((className) => className).forEach((className) => {
|
1576
|
+
this._renderer.addClass(this._elRef.nativeElement, className);
|
1577
|
+
});
|
1578
|
+
}
|
1579
|
+
}
|
1580
|
+
}
|
1581
|
+
BsDatepickerDayDecoratorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerDayDecoratorComponent, deps: [{ token: BsDatepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
1582
|
+
BsDatepickerDayDecoratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerDayDecoratorComponent, selector: "[bsDatepickerDayDecorator]", inputs: { day: "day" }, host: { properties: { "class.disabled": "day.isDisabled", "class.is-highlighted": "day.isHovered", "class.is-other-month": "day.isOtherMonth", "class.is-active-other-month": "day.isOtherMonthHovered", "class.in-range": "day.isInRange", "class.select-start": "day.isSelectionStart", "class.select-end": "day.isSelectionEnd", "class.selected": "day.isSelected" } }, ngImport: i0, template: `{{ day && day.label || '' }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerDayDecoratorComponent, decorators: [{
|
1584
|
+
type: Component,
|
1585
|
+
args: [{
|
1586
|
+
selector: '[bsDatepickerDayDecorator]',
|
1587
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1588
|
+
host: {
|
1589
|
+
'[class.disabled]': 'day.isDisabled',
|
1590
|
+
'[class.is-highlighted]': 'day.isHovered',
|
1591
|
+
'[class.is-other-month]': 'day.isOtherMonth',
|
1592
|
+
'[class.is-active-other-month]': 'day.isOtherMonthHovered',
|
1593
|
+
'[class.in-range]': 'day.isInRange',
|
1594
|
+
'[class.select-start]': 'day.isSelectionStart',
|
1595
|
+
'[class.select-end]': 'day.isSelectionEnd',
|
1596
|
+
'[class.selected]': 'day.isSelected'
|
1597
|
+
},
|
1598
|
+
template: `{{ day && day.label || '' }}`
|
1599
|
+
}]
|
1600
|
+
}], ctorParameters: function () { return [{ type: BsDatepickerConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { day: [{
|
1601
|
+
type: Input
|
1602
|
+
}] } });
|
1603
|
+
|
1507
1604
|
class BsDatepickerNavigationViewComponent {
|
1508
1605
|
constructor() {
|
1509
1606
|
this.onNavigate = new EventEmitter();
|
@@ -1516,8 +1613,8 @@ class BsDatepickerNavigationViewComponent {
|
|
1516
1613
|
this.onViewMode.emit(viewMode);
|
1517
1614
|
}
|
1518
1615
|
}
|
1519
|
-
BsDatepickerNavigationViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1520
|
-
BsDatepickerNavigationViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1616
|
+
BsDatepickerNavigationViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerNavigationViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1617
|
+
BsDatepickerNavigationViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: { calendar: "calendar" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode" }, ngImport: i0, template: `
|
1521
1618
|
<button class="previous"
|
1522
1619
|
[disabled]="calendar.disableLeftArrow"
|
1523
1620
|
[style.visibility]="calendar.hideLeftArrow ? 'hidden' : 'visible'"
|
@@ -1553,8 +1650,8 @@ BsDatepickerNavigationViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersi
|
|
1553
1650
|
type="button"
|
1554
1651
|
(click)="navTo(false)"><span>›</span>
|
1555
1652
|
</button>
|
1556
|
-
`, isInline: true,
|
1557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1653
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerNavigationViewComponent, decorators: [{
|
1558
1655
|
type: Component,
|
1559
1656
|
args: [{
|
1560
1657
|
selector: 'bs-datepicker-navigation-view',
|
@@ -1605,48 +1702,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
1605
1702
|
type: Output
|
1606
1703
|
}] } });
|
1607
1704
|
|
1608
|
-
class BsDatepickerDayDecoratorComponent {
|
1609
|
-
constructor(_config, _elRef, _renderer) {
|
1610
|
-
this._config = _config;
|
1611
|
-
this._elRef = _elRef;
|
1612
|
-
this._renderer = _renderer;
|
1613
|
-
this.day = { date: new Date(), label: '' };
|
1614
|
-
}
|
1615
|
-
ngOnInit() {
|
1616
|
-
var _a, _b, _c;
|
1617
|
-
if (((_a = this.day) === null || _a === void 0 ? void 0 : _a.isToday) && this._config && this._config.customTodayClass) {
|
1618
|
-
this._renderer.addClass(this._elRef.nativeElement, this._config.customTodayClass);
|
1619
|
-
}
|
1620
|
-
if (typeof ((_b = this.day) === null || _b === void 0 ? void 0 : _b.customClasses) === 'string') {
|
1621
|
-
(_c = this.day) === null || _c === void 0 ? void 0 : _c.customClasses.split(' ').filter((className) => className).forEach((className) => {
|
1622
|
-
this._renderer.addClass(this._elRef.nativeElement, className);
|
1623
|
-
});
|
1624
|
-
}
|
1625
|
-
}
|
1626
|
-
}
|
1627
|
-
BsDatepickerDayDecoratorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDatepickerDayDecoratorComponent, deps: [{ token: BsDatepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
1628
|
-
BsDatepickerDayDecoratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsDatepickerDayDecoratorComponent, selector: "[bsDatepickerDayDecorator]", inputs: { day: "day" }, host: { properties: { "class.disabled": "day.isDisabled", "class.is-highlighted": "day.isHovered", "class.is-other-month": "day.isOtherMonth", "class.is-active-other-month": "day.isOtherMonthHovered", "class.in-range": "day.isInRange", "class.select-start": "day.isSelectionStart", "class.select-end": "day.isSelectionEnd", "class.selected": "day.isSelected" } }, ngImport: i0, template: `{{ day && day.label || '' }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDatepickerDayDecoratorComponent, decorators: [{
|
1630
|
-
type: Component,
|
1631
|
-
args: [{
|
1632
|
-
selector: '[bsDatepickerDayDecorator]',
|
1633
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
1634
|
-
host: {
|
1635
|
-
'[class.disabled]': 'day.isDisabled',
|
1636
|
-
'[class.is-highlighted]': 'day.isHovered',
|
1637
|
-
'[class.is-other-month]': 'day.isOtherMonth',
|
1638
|
-
'[class.is-active-other-month]': 'day.isOtherMonthHovered',
|
1639
|
-
'[class.in-range]': 'day.isInRange',
|
1640
|
-
'[class.select-start]': 'day.isSelectionStart',
|
1641
|
-
'[class.select-end]': 'day.isSelectionEnd',
|
1642
|
-
'[class.selected]': 'day.isSelected'
|
1643
|
-
},
|
1644
|
-
template: `{{ day && day.label || '' }}`
|
1645
|
-
}]
|
1646
|
-
}], ctorParameters: function () { return [{ type: BsDatepickerConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { day: [{
|
1647
|
-
type: Input
|
1648
|
-
}] } });
|
1649
|
-
|
1650
1705
|
class BsDaysCalendarViewComponent {
|
1651
1706
|
constructor(_config) {
|
1652
1707
|
this._config = _config;
|
@@ -1731,8 +1786,8 @@ class BsDaysCalendarViewComponent {
|
|
1731
1786
|
this.onHover.emit({ cell, isHovered });
|
1732
1787
|
}
|
1733
1788
|
}
|
1734
|
-
BsDaysCalendarViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1735
|
-
BsDaysCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1789
|
+
BsDaysCalendarViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaysCalendarViewComponent, deps: [{ token: BsDatepickerConfig }], target: i0.ɵɵFactoryTarget.Component });
|
1790
|
+
BsDaysCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: { calendar: "calendar", options: "options" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode", onSelect: "onSelect", onHover: "onHover", onHoverWeek: "onHoverWeek" }, ngImport: i0, template: `
|
1736
1791
|
<bs-calendar-layout>
|
1737
1792
|
<bs-datepicker-navigation-view
|
1738
1793
|
[calendar]="calendar"
|
@@ -1785,8 +1840,8 @@ BsDaysCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
1785
1840
|
</table>
|
1786
1841
|
|
1787
1842
|
</bs-calendar-layout>
|
1788
|
-
`, isInline: true,
|
1789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1843
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }, { kind: "component", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout" }, { kind: "component", type: BsDatepickerDayDecoratorComponent, selector: "[bsDatepickerDayDecorator]", inputs: ["day"] }, { kind: "component", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode"] }] });
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaysCalendarViewComponent, decorators: [{
|
1790
1845
|
type: Component,
|
1791
1846
|
args: [{
|
1792
1847
|
selector: 'bs-days-calendar-view',
|
@@ -1883,8 +1938,8 @@ class BsMonthCalendarViewComponent {
|
|
1883
1938
|
this.onViewMode.emit(event);
|
1884
1939
|
}
|
1885
1940
|
}
|
1886
|
-
BsMonthCalendarViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1887
|
-
BsMonthCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
1941
|
+
BsMonthCalendarViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsMonthCalendarViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1942
|
+
BsMonthCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: { calendar: "calendar" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode", onSelect: "onSelect", onHover: "onHover" }, ngImport: i0, template: `
|
1888
1943
|
<bs-calendar-layout>
|
1889
1944
|
<bs-datepicker-navigation-view
|
1890
1945
|
[calendar]="calendar"
|
@@ -1907,8 +1962,8 @@ BsMonthCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
1907
1962
|
</tbody>
|
1908
1963
|
</table>
|
1909
1964
|
</bs-calendar-layout>
|
1910
|
-
`, isInline: true,
|
1911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1965
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout" }, { kind: "component", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode"] }] });
|
1966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsMonthCalendarViewComponent, decorators: [{
|
1912
1967
|
type: Component,
|
1913
1968
|
args: [{
|
1914
1969
|
selector: 'bs-month-calendar-view',
|
@@ -1970,8 +2025,8 @@ class BsYearsCalendarViewComponent {
|
|
1970
2025
|
this.onViewMode.emit(event);
|
1971
2026
|
}
|
1972
2027
|
}
|
1973
|
-
BsYearsCalendarViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
1974
|
-
BsYearsCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
2028
|
+
BsYearsCalendarViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsYearsCalendarViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
2029
|
+
BsYearsCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: { calendar: "calendar" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode", onSelect: "onSelect", onHover: "onHover" }, ngImport: i0, template: `
|
1975
2030
|
<bs-calendar-layout>
|
1976
2031
|
<bs-datepicker-navigation-view
|
1977
2032
|
[calendar]="calendar"
|
@@ -1994,8 +2049,8 @@ BsYearsCalendarViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
1994
2049
|
</tbody>
|
1995
2050
|
</table>
|
1996
2051
|
</bs-calendar-layout>
|
1997
|
-
`, isInline: true,
|
1998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2052
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout" }, { kind: "component", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode"] }] });
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsYearsCalendarViewComponent, decorators: [{
|
1999
2054
|
type: Component,
|
2000
2055
|
args: [{
|
2001
2056
|
selector: 'bs-years-calendar-view',
|
@@ -2036,53 +2091,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
2036
2091
|
type: Output
|
2037
2092
|
}] } });
|
2038
2093
|
|
2039
|
-
class BsCustomDatesViewComponent {
|
2040
|
-
constructor() {
|
2041
|
-
this.onSelect = new EventEmitter();
|
2042
|
-
}
|
2043
|
-
selectFromRanges(range) {
|
2044
|
-
this.onSelect.emit(range);
|
2045
|
-
}
|
2046
|
-
}
|
2047
|
-
BsCustomDatesViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCustomDatesViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
2048
|
-
BsCustomDatesViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: { ranges: "ranges", selectedRange: "selectedRange", customRangeLabel: "customRangeLabel" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: `
|
2049
|
-
<div class="bs-datepicker-predefined-btns">
|
2050
|
-
<button *ngFor="let range of ranges"
|
2051
|
-
type="button"
|
2052
|
-
class="btn"
|
2053
|
-
(click)="selectFromRanges(range)"
|
2054
|
-
[class.selected]="range.value === selectedRange">
|
2055
|
-
{{ range.label }}
|
2056
|
-
</button>
|
2057
|
-
</div>
|
2058
|
-
`, isInline: true, directives: [{ type: i11.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
2059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCustomDatesViewComponent, decorators: [{
|
2060
|
-
type: Component,
|
2061
|
-
args: [{
|
2062
|
-
selector: 'bs-custom-date-view',
|
2063
|
-
template: `
|
2064
|
-
<div class="bs-datepicker-predefined-btns">
|
2065
|
-
<button *ngFor="let range of ranges"
|
2066
|
-
type="button"
|
2067
|
-
class="btn"
|
2068
|
-
(click)="selectFromRanges(range)"
|
2069
|
-
[class.selected]="range.value === selectedRange">
|
2070
|
-
{{ range.label }}
|
2071
|
-
</button>
|
2072
|
-
</div>
|
2073
|
-
`,
|
2074
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
2075
|
-
}]
|
2076
|
-
}], propDecorators: { ranges: [{
|
2077
|
-
type: Input
|
2078
|
-
}], selectedRange: [{
|
2079
|
-
type: Input
|
2080
|
-
}], customRangeLabel: [{
|
2081
|
-
type: Input
|
2082
|
-
}], onSelect: [{
|
2083
|
-
type: Output
|
2084
|
-
}] } });
|
2085
|
-
|
2086
2094
|
class BsDatepickerContainerComponent extends BsDatepickerAbstractComponent {
|
2087
2095
|
constructor(_renderer, _config, _store, _element, _actions, _effects, _positionService) {
|
2088
2096
|
super();
|
@@ -2106,8 +2114,15 @@ class BsDatepickerContainerComponent extends BsDatepickerAbstractComponent {
|
|
2106
2114
|
ngOnInit() {
|
2107
2115
|
var _a, _b;
|
2108
2116
|
this._positionService.setOptions({
|
2109
|
-
modifiers: {
|
2110
|
-
|
2117
|
+
modifiers: {
|
2118
|
+
flip: {
|
2119
|
+
enabled: this._config.adaptivePosition
|
2120
|
+
},
|
2121
|
+
preventOverflow: {
|
2122
|
+
enabled: this._config.adaptivePosition
|
2123
|
+
}
|
2124
|
+
},
|
2125
|
+
allowedPositions: this._config.allowedPositions
|
2111
2126
|
});
|
2112
2127
|
(_a = this._positionService.event$) === null || _a === void 0 ? void 0 : _a.pipe(take(1)).subscribe(() => {
|
2113
2128
|
this._positionService.disable();
|
@@ -2128,9 +2143,19 @@ class BsDatepickerContainerComponent extends BsDatepickerAbstractComponent {
|
|
2128
2143
|
this.customRangeBtnLbl = this._config.customRangeButtonLabel;
|
2129
2144
|
this.withTimepicker = this._config.withTimepicker;
|
2130
2145
|
(_b = this._effects) === null || _b === void 0 ? void 0 : _b.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects();
|
2146
|
+
let currentDate;
|
2131
2147
|
// todo: move it somewhere else
|
2132
2148
|
// on selected date change
|
2133
|
-
this._subs.push(this._store.select((state) => state.selectedDate).subscribe((date) =>
|
2149
|
+
this._subs.push(this._store.select((state) => state.selectedDate).subscribe((date) => {
|
2150
|
+
currentDate = date;
|
2151
|
+
this.valueChange.emit(date);
|
2152
|
+
}));
|
2153
|
+
this._subs.push(this._store.select((state) => state.selectedTime).subscribe((time) => {
|
2154
|
+
if (!time[0] || !(time[0] instanceof Date) || time[0] === currentDate) {
|
2155
|
+
return;
|
2156
|
+
}
|
2157
|
+
this.valueChange.emit(time[0]);
|
2158
|
+
}));
|
2134
2159
|
this._store.dispatch(this._actions.changeViewMode(this._config.startView));
|
2135
2160
|
}
|
2136
2161
|
ngAfterViewInit() {
|
@@ -2202,9 +2227,9 @@ class BsDatepickerContainerComponent extends BsDatepickerAbstractComponent {
|
|
2202
2227
|
(_a = this._effects) === null || _a === void 0 ? void 0 : _a.destroy();
|
2203
2228
|
}
|
2204
2229
|
}
|
2205
|
-
BsDatepickerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2206
|
-
BsDatepickerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
2207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2230
|
+
BsDatepickerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component });
|
2231
|
+
BsDatepickerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerContainerComponent, selector: "bs-datepicker-container", host: { attributes: { "role": "dialog", "aria-label": "calendar" }, listeners: { "click": "_stopPropagation($event)" }, classAttribute: "bottom" }, providers: [BsDatepickerStore, BsDatepickerEffects], viewQueries: [{ propertyName: "startTimepicker", first: true, predicate: ["startTP"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\" *ngIf=\"viewMode | async\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" [ngSwitch]=\"viewMode | async\" role=\"application\">\n <!--days calendar-->\n <ng-container *ngSwitchCase=\"'day'\">\n <div class=\"bs-media-container\">\n <bs-days-calendar-view\n *ngFor=\"let calendar of daysCalendar$ | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n </div>\n <div *ngIf=\"withTimepicker\" class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP></timepicker>\n <timepicker #endTP *ngIf=\"isRangePicker\"></timepicker>\n </div>\n </ng-container>\n\n <!--months calendar-->\n <div *ngSwitchCase=\"'month'\" class=\"bs-media-container\">\n <bs-month-calendar-view\n *ngFor=\"let calendar of monthsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n </div>\n\n <!--years calendar-->\n <div *ngSwitchCase=\"'year'\" class=\"bs-media-container\">\n <bs-years-calendar-view\n *ngFor=\"let calendar of yearsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n </div>\n </div>\n\n <!--applycancel buttons-->\n <div class=\"bs-datepicker-buttons\" *ngIf=\"false\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n\n <div class=\"bs-datepicker-buttons\" *ngIf=\"showTodayBtn || showClearBtn\">\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n *ngIf=\"showTodayBtn\">\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n *ngIf=\"showClearBtn\">\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n <!--custom dates or date ranges picker-->\n <div class=\"bs-datepicker-custom-range\" *ngIf=\"customRanges && customRanges.length > 0\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i7.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }], animations: [datepickerAnimation] });
|
2232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerContainerComponent, decorators: [{
|
2208
2233
|
type: Component,
|
2209
2234
|
args: [{ selector: 'bs-datepicker-container', providers: [BsDatepickerStore, BsDatepickerEffects], host: {
|
2210
2235
|
class: 'bottom',
|
@@ -2338,6 +2363,21 @@ class BsDatepickerDirective {
|
|
2338
2363
|
this._datepickerRef.instance.dateTooltipTexts = this.dateTooltipTexts;
|
2339
2364
|
}
|
2340
2365
|
}
|
2366
|
+
initSubscribes() {
|
2367
|
+
// if date changes from external source (model -> view)
|
2368
|
+
this._subs.push(this.bsValueChange.subscribe((value) => {
|
2369
|
+
if (this._datepickerRef) {
|
2370
|
+
this._datepickerRef.instance.value = value;
|
2371
|
+
}
|
2372
|
+
}));
|
2373
|
+
// if date changes from picker (view -> model)
|
2374
|
+
if (this._datepickerRef) {
|
2375
|
+
this._subs.push(this._datepickerRef.instance.valueChange.subscribe((value) => {
|
2376
|
+
this.bsValue = value;
|
2377
|
+
this.hide();
|
2378
|
+
}));
|
2379
|
+
}
|
2380
|
+
}
|
2341
2381
|
ngAfterViewInit() {
|
2342
2382
|
this.isOpen$.pipe(filter(isOpen => isOpen !== this.isOpen), takeUntil(this.isDestroy$))
|
2343
2383
|
.subscribe(() => this.toggle());
|
@@ -2357,19 +2397,7 @@ class BsDatepickerDirective {
|
|
2357
2397
|
.to(this.container)
|
2358
2398
|
.position({ attachment: this.placement })
|
2359
2399
|
.show({ placement: this.placement });
|
2360
|
-
|
2361
|
-
this._subs.push(this.bsValueChange.subscribe((value) => {
|
2362
|
-
if (this._datepickerRef) {
|
2363
|
-
this._datepickerRef.instance.value = value;
|
2364
|
-
}
|
2365
|
-
}));
|
2366
|
-
// if date changes from picker (view -> model)
|
2367
|
-
if (this._datepickerRef) {
|
2368
|
-
this._subs.push(this._datepickerRef.instance.valueChange.subscribe((value) => {
|
2369
|
-
this.bsValue = value;
|
2370
|
-
this.hide();
|
2371
|
-
}));
|
2372
|
-
}
|
2400
|
+
this.initSubscribes();
|
2373
2401
|
}
|
2374
2402
|
/**
|
2375
2403
|
* Closes an element’s datepicker. This is considered a “manual” triggering of
|
@@ -2415,6 +2443,13 @@ class BsDatepickerDirective {
|
|
2415
2443
|
initCurrentTime: (_a = this.bsConfig) === null || _a === void 0 ? void 0 : _a.initCurrentTime
|
2416
2444
|
});
|
2417
2445
|
}
|
2446
|
+
unsubscribeSubscriptions() {
|
2447
|
+
var _a;
|
2448
|
+
if ((_a = this._subs) === null || _a === void 0 ? void 0 : _a.length) {
|
2449
|
+
this._subs.map(sub => sub.unsubscribe());
|
2450
|
+
this._subs.length = 0;
|
2451
|
+
}
|
2452
|
+
}
|
2418
2453
|
ngOnDestroy() {
|
2419
2454
|
this._datepicker.dispose();
|
2420
2455
|
this.isOpen$.next(false);
|
@@ -2422,11 +2457,12 @@ class BsDatepickerDirective {
|
|
2422
2457
|
this.isDestroy$.next(null);
|
2423
2458
|
this.isDestroy$.complete();
|
2424
2459
|
}
|
2460
|
+
this.unsubscribeSubscriptions();
|
2425
2461
|
}
|
2426
2462
|
}
|
2427
|
-
BsDatepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2428
|
-
BsDatepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
2429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2463
|
+
BsDatepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerDirective, deps: [{ token: BsDatepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive });
|
2464
|
+
BsDatepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerDirective, selector: "[bsDatepicker]", inputs: { placement: "placement", triggers: "triggers", outsideClick: "outsideClick", container: "container", outsideEsc: "outsideEsc", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", minMode: "minMode", daysDisabled: "daysDisabled", datesDisabled: "datesDisabled", datesEnabled: "datesEnabled", dateCustomClasses: "dateCustomClasses", dateTooltipTexts: "dateTooltipTexts", isOpen: "isOpen", bsValue: "bsValue", bsConfig: "bsConfig" }, outputs: { onShown: "onShown", onHidden: "onHidden", bsValueChange: "bsValueChange" }, exportAs: ["bsDatepicker"], usesOnChanges: true, ngImport: i0 });
|
2465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerDirective, decorators: [{
|
2430
2466
|
type: Directive,
|
2431
2467
|
args: [{
|
2432
2468
|
selector: '[bsDatepicker]',
|
@@ -2476,9 +2512,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
2476
2512
|
|
2477
2513
|
class BsDatepickerInlineConfig extends BsDatepickerConfig {
|
2478
2514
|
}
|
2479
|
-
BsDatepickerInlineConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2480
|
-
BsDatepickerInlineConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2515
|
+
BsDatepickerInlineConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
2516
|
+
BsDatepickerInlineConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineConfig, providedIn: 'root' });
|
2517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineConfig, decorators: [{
|
2482
2518
|
type: Injectable,
|
2483
2519
|
args: [{
|
2484
2520
|
providedIn: 'root'
|
@@ -2492,9 +2528,9 @@ class BsDatepickerInlineContainerComponent extends BsDatepickerContainerComponen
|
|
2492
2528
|
_renderer.setStyle(_element.nativeElement, 'position', 'static');
|
2493
2529
|
}
|
2494
2530
|
}
|
2495
|
-
BsDatepickerInlineContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2496
|
-
BsDatepickerInlineContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
2497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2531
|
+
BsDatepickerInlineContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component });
|
2532
|
+
BsDatepickerInlineContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerInlineContainerComponent, selector: "bs-datepicker-inline-container", host: { listeners: { "click": "_stopPropagation($event)" } }, providers: [BsDatepickerStore, BsDatepickerEffects], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\" *ngIf=\"viewMode | async\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" [ngSwitch]=\"viewMode | async\" role=\"application\">\n <!--days calendar-->\n <ng-container *ngSwitchCase=\"'day'\">\n <div class=\"bs-media-container\">\n <bs-days-calendar-view\n *ngFor=\"let calendar of daysCalendar$ | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n </div>\n <div *ngIf=\"withTimepicker\" class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP></timepicker>\n <timepicker #endTP *ngIf=\"isRangePicker\"></timepicker>\n </div>\n </ng-container>\n\n <!--months calendar-->\n <div *ngSwitchCase=\"'month'\" class=\"bs-media-container\">\n <bs-month-calendar-view\n *ngFor=\"let calendar of monthsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n </div>\n\n <!--years calendar-->\n <div *ngSwitchCase=\"'year'\" class=\"bs-media-container\">\n <bs-years-calendar-view\n *ngFor=\"let calendar of yearsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n </div>\n </div>\n\n <!--applycancel buttons-->\n <div class=\"bs-datepicker-buttons\" *ngIf=\"false\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n\n <div class=\"bs-datepicker-buttons\" *ngIf=\"showTodayBtn || showClearBtn\">\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n *ngIf=\"showTodayBtn\">\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n *ngIf=\"showClearBtn\">\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n <!--custom dates or date ranges picker-->\n <div class=\"bs-datepicker-custom-range\" *ngIf=\"customRanges && customRanges.length > 0\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i7.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }], animations: [datepickerAnimation] });
|
2533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineContainerComponent, decorators: [{
|
2498
2534
|
type: Component,
|
2499
2535
|
args: [{ selector: 'bs-datepicker-inline-container', providers: [BsDatepickerStore, BsDatepickerEffects], host: {
|
2500
2536
|
'(click)': '_stopPropagation($event)'
|
@@ -2538,19 +2574,28 @@ class BsDatepickerInlineDirective {
|
|
2538
2574
|
}
|
2539
2575
|
ngOnInit() {
|
2540
2576
|
this.setConfig();
|
2541
|
-
|
2577
|
+
this.initSubscribes();
|
2578
|
+
}
|
2579
|
+
initSubscribes() {
|
2580
|
+
this.unsubscribeSubscriptions();
|
2542
2581
|
this._subs.push(this.bsValueChange.subscribe((value) => {
|
2543
2582
|
if (this._datepickerRef) {
|
2544
2583
|
this._datepickerRef.instance.value = value;
|
2545
2584
|
}
|
2546
2585
|
}));
|
2547
|
-
// if date changes from picker (view -> model)
|
2548
2586
|
if (this._datepickerRef) {
|
2549
2587
|
this._subs.push(this._datepickerRef.instance.valueChange.subscribe((value) => {
|
2550
2588
|
this.bsValue = value;
|
2551
2589
|
}));
|
2552
2590
|
}
|
2553
2591
|
}
|
2592
|
+
unsubscribeSubscriptions() {
|
2593
|
+
var _a;
|
2594
|
+
if ((_a = this._subs) === null || _a === void 0 ? void 0 : _a.length) {
|
2595
|
+
this._subs.map(sub => sub.unsubscribe());
|
2596
|
+
this._subs.length = 0;
|
2597
|
+
}
|
2598
|
+
}
|
2554
2599
|
ngOnChanges(changes) {
|
2555
2600
|
var _a, _b, _c;
|
2556
2601
|
if (changes["bsConfig"]) {
|
@@ -2610,14 +2655,16 @@ class BsDatepickerInlineDirective {
|
|
2610
2655
|
.attach(BsDatepickerInlineContainerComponent)
|
2611
2656
|
.to(this._elementRef)
|
2612
2657
|
.show();
|
2658
|
+
this.initSubscribes();
|
2613
2659
|
}
|
2614
2660
|
ngOnDestroy() {
|
2615
2661
|
this._datepicker.dispose();
|
2662
|
+
this.unsubscribeSubscriptions();
|
2616
2663
|
}
|
2617
2664
|
}
|
2618
|
-
BsDatepickerInlineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2619
|
-
BsDatepickerInlineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
2620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2665
|
+
BsDatepickerInlineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineDirective, deps: [{ token: BsDatepickerInlineConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive });
|
2666
|
+
BsDatepickerInlineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerInlineDirective, selector: "bs-datepicker-inline", inputs: { bsConfig: "bsConfig", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", dateCustomClasses: "dateCustomClasses", dateTooltipTexts: "dateTooltipTexts", datesEnabled: "datesEnabled", datesDisabled: "datesDisabled", bsValue: "bsValue" }, outputs: { bsValueChange: "bsValueChange" }, exportAs: ["bsDatepickerInline"], usesOnChanges: true, ngImport: i0 });
|
2667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInlineDirective, decorators: [{
|
2621
2668
|
type: Directive,
|
2622
2669
|
args: [{
|
2623
2670
|
selector: 'bs-datepicker-inline',
|
@@ -2654,9 +2701,9 @@ class BsDaterangepickerInlineConfig extends BsDatepickerConfig {
|
|
2654
2701
|
this.isAnimated = false;
|
2655
2702
|
}
|
2656
2703
|
}
|
2657
|
-
BsDaterangepickerInlineConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2658
|
-
BsDaterangepickerInlineConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
2659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2704
|
+
BsDaterangepickerInlineConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
2705
|
+
BsDaterangepickerInlineConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineConfig, providedIn: 'root' });
|
2706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineConfig, decorators: [{
|
2660
2707
|
type: Injectable,
|
2661
2708
|
args: [{
|
2662
2709
|
providedIn: 'root'
|
@@ -2690,8 +2737,15 @@ class BsDaterangepickerContainerComponent extends BsDatepickerAbstractComponent
|
|
2690
2737
|
ngOnInit() {
|
2691
2738
|
var _a, _b;
|
2692
2739
|
this._positionService.setOptions({
|
2693
|
-
modifiers: {
|
2694
|
-
|
2740
|
+
modifiers: {
|
2741
|
+
flip: {
|
2742
|
+
enabled: this._config.adaptivePosition
|
2743
|
+
},
|
2744
|
+
preventOverflow: {
|
2745
|
+
enabled: this._config.adaptivePosition
|
2746
|
+
}
|
2747
|
+
},
|
2748
|
+
allowedPositions: this._config.allowedPositions
|
2695
2749
|
});
|
2696
2750
|
(_a = this._positionService.event$) === null || _a === void 0 ? void 0 : _a.pipe(take(1)).subscribe(() => {
|
2697
2751
|
this._positionService.disable();
|
@@ -2705,14 +2759,27 @@ class BsDaterangepickerContainerComponent extends BsDatepickerAbstractComponent
|
|
2705
2759
|
this.isOtherMonthsActive = this._config.selectFromOtherMonth;
|
2706
2760
|
this.withTimepicker = this._config.withTimepicker;
|
2707
2761
|
(_b = this._effects) === null || _b === void 0 ? void 0 : _b.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects();
|
2762
|
+
let currentDate;
|
2708
2763
|
// todo: move it somewhere else
|
2709
2764
|
// on selected date change
|
2710
2765
|
this._subs.push(this._store
|
2711
2766
|
.select(state => state.selectedRange)
|
2712
2767
|
.subscribe(dateRange => {
|
2768
|
+
currentDate = dateRange;
|
2713
2769
|
this.valueChange.emit(dateRange);
|
2714
2770
|
this.chosenRange = dateRange || [];
|
2715
2771
|
}));
|
2772
|
+
this._subs.push(this._store
|
2773
|
+
.select(state => state.selectedTime)
|
2774
|
+
.subscribe((time) => {
|
2775
|
+
if ((!time[0] || !time[1]) ||
|
2776
|
+
(!(time[0] instanceof Date) || !(time[1] instanceof Date)) ||
|
2777
|
+
(currentDate && (time[0] === currentDate[0] && time[1] === currentDate[1]))) {
|
2778
|
+
return;
|
2779
|
+
}
|
2780
|
+
this.valueChange.emit(time);
|
2781
|
+
this.chosenRange = time || [];
|
2782
|
+
}));
|
2716
2783
|
}
|
2717
2784
|
ngAfterViewInit() {
|
2718
2785
|
var _a, _b, _c;
|
@@ -2844,9 +2911,9 @@ class BsDaterangepickerContainerComponent extends BsDatepickerAbstractComponent
|
|
2844
2911
|
(_a = this._effects) === null || _a === void 0 ? void 0 : _a.setMaxDate(maxDateRange);
|
2845
2912
|
}
|
2846
2913
|
}
|
2847
|
-
BsDaterangepickerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2848
|
-
BsDaterangepickerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
2849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2914
|
+
BsDaterangepickerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component });
|
2915
|
+
BsDaterangepickerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDaterangepickerContainerComponent, selector: "bs-daterangepicker-container", host: { attributes: { "role": "dialog", "aria-label": "calendar" }, listeners: { "click": "_stopPropagation($event)" }, classAttribute: "bottom" }, providers: [BsDatepickerStore, BsDatepickerEffects], viewQueries: [{ propertyName: "startTimepicker", first: true, predicate: ["startTP"], descendants: true }, { propertyName: "endTimepicker", first: true, predicate: ["endTP"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\" *ngIf=\"viewMode | async\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" [ngSwitch]=\"viewMode | async\" role=\"application\">\n <!--days calendar-->\n <ng-container *ngSwitchCase=\"'day'\">\n <div class=\"bs-media-container\">\n <bs-days-calendar-view\n *ngFor=\"let calendar of daysCalendar$ | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n </div>\n <div *ngIf=\"withTimepicker\" class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP></timepicker>\n <timepicker #endTP *ngIf=\"isRangePicker\"></timepicker>\n </div>\n </ng-container>\n\n <!--months calendar-->\n <div *ngSwitchCase=\"'month'\" class=\"bs-media-container\">\n <bs-month-calendar-view\n *ngFor=\"let calendar of monthsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n </div>\n\n <!--years calendar-->\n <div *ngSwitchCase=\"'year'\" class=\"bs-media-container\">\n <bs-years-calendar-view\n *ngFor=\"let calendar of yearsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n </div>\n </div>\n\n <!--applycancel buttons-->\n <div class=\"bs-datepicker-buttons\" *ngIf=\"false\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n\n <div class=\"bs-datepicker-buttons\" *ngIf=\"showTodayBtn || showClearBtn\">\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n *ngIf=\"showTodayBtn\">\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n *ngIf=\"showClearBtn\">\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n <!--custom dates or date ranges picker-->\n <div class=\"bs-datepicker-custom-range\" *ngIf=\"customRanges && customRanges.length > 0\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i7.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }], animations: [datepickerAnimation] });
|
2916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerContainerComponent, decorators: [{
|
2850
2917
|
type: Component,
|
2851
2918
|
args: [{ selector: 'bs-daterangepicker-container', providers: [BsDatepickerStore, BsDatepickerEffects], host: {
|
2852
2919
|
class: 'bottom',
|
@@ -2869,9 +2936,9 @@ class BsDaterangepickerInlineContainerComponent extends BsDaterangepickerContain
|
|
2869
2936
|
_renderer.setStyle(_element.nativeElement, 'position', 'static');
|
2870
2937
|
}
|
2871
2938
|
}
|
2872
|
-
BsDaterangepickerInlineContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2873
|
-
BsDaterangepickerInlineContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
2874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2939
|
+
BsDaterangepickerInlineContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component });
|
2940
|
+
BsDaterangepickerInlineContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BsDaterangepickerInlineContainerComponent, selector: "bs-daterangepicker-inline-container", host: { listeners: { "click": "_stopPropagation($event)" } }, providers: [BsDatepickerStore, BsDatepickerEffects], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\" *ngIf=\"viewMode | async\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" [ngSwitch]=\"viewMode | async\" role=\"application\">\n <!--days calendar-->\n <ng-container *ngSwitchCase=\"'day'\">\n <div class=\"bs-media-container\">\n <bs-days-calendar-view\n *ngFor=\"let calendar of daysCalendar$ | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n </div>\n <div *ngIf=\"withTimepicker\" class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP></timepicker>\n <timepicker #endTP *ngIf=\"isRangePicker\"></timepicker>\n </div>\n </ng-container>\n\n <!--months calendar-->\n <div *ngSwitchCase=\"'month'\" class=\"bs-media-container\">\n <bs-month-calendar-view\n *ngFor=\"let calendar of monthsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n </div>\n\n <!--years calendar-->\n <div *ngSwitchCase=\"'year'\" class=\"bs-media-container\">\n <bs-years-calendar-view\n *ngFor=\"let calendar of yearsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n </div>\n </div>\n\n <!--applycancel buttons-->\n <div class=\"bs-datepicker-buttons\" *ngIf=\"false\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n\n <div class=\"bs-datepicker-buttons\" *ngIf=\"showTodayBtn || showClearBtn\">\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n *ngIf=\"showTodayBtn\">\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n *ngIf=\"showClearBtn\">\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n <!--custom dates or date ranges picker-->\n <div class=\"bs-datepicker-custom-range\" *ngIf=\"customRanges && customRanges.length > 0\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i7.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }], animations: [datepickerAnimation] });
|
2941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineContainerComponent, decorators: [{
|
2875
2942
|
type: Component,
|
2876
2943
|
args: [{ selector: 'bs-daterangepicker-inline-container', providers: [BsDatepickerStore, BsDatepickerEffects], host: {
|
2877
2944
|
'(click)': '_stopPropagation($event)'
|
@@ -2911,20 +2978,7 @@ class BsDaterangepickerInlineDirective {
|
|
2911
2978
|
}
|
2912
2979
|
ngOnInit() {
|
2913
2980
|
this.setConfig();
|
2914
|
-
|
2915
|
-
this._subs.push(this.bsValueChange.subscribe((value) => {
|
2916
|
-
if (this._datepickerRef) {
|
2917
|
-
this._datepickerRef.instance.value = value;
|
2918
|
-
}
|
2919
|
-
}));
|
2920
|
-
// if date changes from picker (view -> model)
|
2921
|
-
if (this._datepickerRef) {
|
2922
|
-
this._subs.push(this._datepickerRef.instance.valueChange
|
2923
|
-
.pipe(filter((range) => range && range[0] && !!range[1]))
|
2924
|
-
.subscribe((value) => {
|
2925
|
-
this.bsValue = value;
|
2926
|
-
}));
|
2927
|
-
}
|
2981
|
+
this.initSubscribes();
|
2928
2982
|
}
|
2929
2983
|
ngOnChanges(changes) {
|
2930
2984
|
if (changes["bsConfig"]) {
|
@@ -2986,14 +3040,40 @@ class BsDaterangepickerInlineDirective {
|
|
2986
3040
|
.attach(BsDaterangepickerInlineContainerComponent)
|
2987
3041
|
.to(this._elementRef)
|
2988
3042
|
.show();
|
3043
|
+
this.initSubscribes();
|
3044
|
+
}
|
3045
|
+
initSubscribes() {
|
3046
|
+
this.unsubscribeSubscriptions();
|
3047
|
+
// if date changes from external source (model -> view)
|
3048
|
+
this._subs.push(this.bsValueChange.subscribe((value) => {
|
3049
|
+
if (this._datepickerRef) {
|
3050
|
+
this._datepickerRef.instance.value = value;
|
3051
|
+
}
|
3052
|
+
}));
|
3053
|
+
// if date changes from picker (view -> model)
|
3054
|
+
if (this._datepickerRef) {
|
3055
|
+
this._subs.push(this._datepickerRef.instance.valueChange
|
3056
|
+
.pipe(filter((range) => range && range[0] && !!range[1]))
|
3057
|
+
.subscribe((value) => {
|
3058
|
+
this.bsValue = value;
|
3059
|
+
}));
|
3060
|
+
}
|
3061
|
+
}
|
3062
|
+
unsubscribeSubscriptions() {
|
3063
|
+
var _a;
|
3064
|
+
if ((_a = this._subs) === null || _a === void 0 ? void 0 : _a.length) {
|
3065
|
+
this._subs.map(sub => sub.unsubscribe());
|
3066
|
+
this._subs.length = 0;
|
3067
|
+
}
|
2989
3068
|
}
|
2990
3069
|
ngOnDestroy() {
|
2991
3070
|
this._datepicker.dispose();
|
3071
|
+
this.unsubscribeSubscriptions();
|
2992
3072
|
}
|
2993
3073
|
}
|
2994
|
-
BsDaterangepickerInlineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2995
|
-
BsDaterangepickerInlineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
2996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
3074
|
+
BsDaterangepickerInlineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineDirective, deps: [{ token: BsDaterangepickerInlineConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive });
|
3075
|
+
BsDaterangepickerInlineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: BsDaterangepickerInlineDirective, selector: "bs-daterangepicker-inline", inputs: { bsValue: "bsValue", bsConfig: "bsConfig", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", dateCustomClasses: "dateCustomClasses", daysDisabled: "daysDisabled", datesDisabled: "datesDisabled", datesEnabled: "datesEnabled" }, outputs: { bsValueChange: "bsValueChange" }, exportAs: ["bsDaterangepickerInline"], usesOnChanges: true, ngImport: i0 });
|
3076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInlineDirective, decorators: [{
|
2997
3077
|
type: Directive,
|
2998
3078
|
args: [{
|
2999
3079
|
selector: 'bs-daterangepicker-inline',
|
@@ -3155,9 +3235,9 @@ class BsDatepickerInputDirective {
|
|
3155
3235
|
}
|
3156
3236
|
}
|
3157
3237
|
}
|
3158
|
-
BsDatepickerInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
3159
|
-
BsDatepickerInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
3160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
3238
|
+
BsDatepickerInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInputDirective, deps: [{ token: BsDatepickerDirective, host: true }, { token: BsLocaleService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
3239
|
+
BsDatepickerInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: BsDatepickerInputDirective, selector: "input[bsDatepicker]", host: { listeners: { "change": "onChange($event)", "keyup.esc": "hide()", "keydown": "onKeydownEvent($event)", "blur": "onBlur()" } }, providers: [BS_DATEPICKER_VALUE_ACCESSOR, BS_DATEPICKER_VALIDATOR], ngImport: i0 });
|
3240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerInputDirective, decorators: [{
|
3161
3241
|
type: Directive,
|
3162
3242
|
args: [{
|
3163
3243
|
selector: `input[bsDatepicker]`,
|
@@ -3183,9 +3263,9 @@ class BsDaterangepickerConfig extends BsDatepickerConfig {
|
|
3183
3263
|
this.displayMonths = 2;
|
3184
3264
|
}
|
3185
3265
|
}
|
3186
|
-
BsDaterangepickerConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
3187
|
-
BsDaterangepickerConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
3188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
3266
|
+
BsDaterangepickerConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
3267
|
+
BsDaterangepickerConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerConfig, providedIn: 'root' });
|
3268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerConfig, decorators: [{
|
3189
3269
|
type: Injectable,
|
3190
3270
|
args: [{
|
3191
3271
|
providedIn: 'root'
|
@@ -3325,6 +3405,9 @@ class BsDaterangepickerDirective {
|
|
3325
3405
|
.to(this.container)
|
3326
3406
|
.position({ attachment: this.placement })
|
3327
3407
|
.show({ placement: this.placement });
|
3408
|
+
this.initSubscribes();
|
3409
|
+
}
|
3410
|
+
initSubscribes() {
|
3328
3411
|
// if date changes from external source (model -> view)
|
3329
3412
|
this._subs.push(this.bsValueChange.subscribe((value) => {
|
3330
3413
|
if (this._datepickerRef) {
|
@@ -3385,6 +3468,13 @@ class BsDaterangepickerDirective {
|
|
3385
3468
|
}
|
3386
3469
|
this.show();
|
3387
3470
|
}
|
3471
|
+
unsubscribeSubscriptions() {
|
3472
|
+
var _a;
|
3473
|
+
if ((_a = this._subs) === null || _a === void 0 ? void 0 : _a.length) {
|
3474
|
+
this._subs.map(sub => sub.unsubscribe());
|
3475
|
+
this._subs.length = 0;
|
3476
|
+
}
|
3477
|
+
}
|
3388
3478
|
ngOnDestroy() {
|
3389
3479
|
this._datepicker.dispose();
|
3390
3480
|
this.isOpen$.next(false);
|
@@ -3392,11 +3482,12 @@ class BsDaterangepickerDirective {
|
|
3392
3482
|
this.isDestroy$.next(null);
|
3393
3483
|
this.isDestroy$.complete();
|
3394
3484
|
}
|
3485
|
+
this.unsubscribeSubscriptions();
|
3395
3486
|
}
|
3396
3487
|
}
|
3397
|
-
BsDaterangepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
3398
|
-
BsDaterangepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
3399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
3488
|
+
BsDaterangepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerDirective, deps: [{ token: BsDaterangepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive });
|
3489
|
+
BsDaterangepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: BsDaterangepickerDirective, selector: "[bsDaterangepicker]", inputs: { placement: "placement", triggers: "triggers", outsideClick: "outsideClick", container: "container", outsideEsc: "outsideEsc", isOpen: "isOpen", bsValue: "bsValue", bsConfig: "bsConfig", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", dateCustomClasses: "dateCustomClasses", daysDisabled: "daysDisabled", datesDisabled: "datesDisabled", datesEnabled: "datesEnabled" }, outputs: { onShown: "onShown", onHidden: "onHidden", bsValueChange: "bsValueChange" }, exportAs: ["bsDaterangepicker"], usesOnChanges: true, ngImport: i0 });
|
3490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerDirective, decorators: [{
|
3400
3491
|
type: Directive,
|
3401
3492
|
args: [{
|
3402
3493
|
selector: '[bsDaterangepicker]',
|
@@ -3619,9 +3710,9 @@ class BsDaterangepickerInputDirective {
|
|
3619
3710
|
}
|
3620
3711
|
}
|
3621
3712
|
}
|
3622
|
-
BsDaterangepickerInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
3623
|
-
BsDaterangepickerInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
3624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
3713
|
+
BsDaterangepickerInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInputDirective, deps: [{ token: BsDaterangepickerDirective, host: true }, { token: BsLocaleService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
3714
|
+
BsDaterangepickerInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.6", type: BsDaterangepickerInputDirective, selector: "input[bsDaterangepicker]", host: { listeners: { "change": "onChange($event)", "keyup.esc": "hide()", "keydown": "onKeydownEvent($event)", "blur": "onBlur()" } }, providers: [BS_DATERANGEPICKER_VALUE_ACCESSOR, BS_DATERANGEPICKER_VALIDATOR], ngImport: i0 });
|
3715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDaterangepickerInputDirective, decorators: [{
|
3625
3716
|
type: Directive,
|
3626
3717
|
args: [{
|
3627
3718
|
selector: `input[bsDaterangepicker]`,
|
@@ -3656,8 +3747,8 @@ class BsDatepickerModule {
|
|
3656
3747
|
};
|
3657
3748
|
}
|
3658
3749
|
}
|
3659
|
-
BsDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
3660
|
-
BsDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
3750
|
+
BsDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3751
|
+
BsDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerModule, declarations: [BsCalendarLayoutComponent,
|
3661
3752
|
BsCurrentDateViewComponent,
|
3662
3753
|
BsCustomDatesViewComponent,
|
3663
3754
|
BsDatepickerDayDecoratorComponent,
|
@@ -3685,8 +3776,8 @@ BsDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
3685
3776
|
BsDaterangepickerInlineContainerComponent,
|
3686
3777
|
BsDaterangepickerInlineDirective,
|
3687
3778
|
BsDaterangepickerInputDirective] });
|
3688
|
-
BsDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
3689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
3779
|
+
BsDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerModule, imports: [CommonModule, TooltipModule, TimepickerModule] });
|
3780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BsDatepickerModule, decorators: [{
|
3690
3781
|
type: NgModule,
|
3691
3782
|
args: [{
|
3692
3783
|
imports: [CommonModule, TooltipModule, TimepickerModule],
|
@@ -3711,12 +3802,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
3711
3802
|
BsDaterangepickerInlineDirective,
|
3712
3803
|
BsDaterangepickerInputDirective
|
3713
3804
|
],
|
3714
|
-
entryComponents: [
|
3715
|
-
BsDatepickerContainerComponent,
|
3716
|
-
BsDaterangepickerContainerComponent,
|
3717
|
-
BsDatepickerInlineContainerComponent,
|
3718
|
-
BsDaterangepickerInlineContainerComponent
|
3719
|
-
],
|
3720
3805
|
exports: [
|
3721
3806
|
BsDatepickerContainerComponent,
|
3722
3807
|
BsDatepickerDirective,
|