ngx-bootstrap 5.3.2 → 5.6.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/CHANGELOG.md +148 -99
- package/README.md +14 -10
- package/accordion/bundles/ngx-bootstrap-accordion.umd.js +71 -2
- package/accordion/bundles/ngx-bootstrap-accordion.umd.js.map +1 -1
- package/accordion/bundles/ngx-bootstrap-accordion.umd.min.js +1 -1
- package/accordion/bundles/ngx-bootstrap-accordion.umd.min.js.map +1 -1
- package/accordion/fesm2015/ngx-bootstrap-accordion.js +79 -0
- package/accordion/fesm2015/ngx-bootstrap-accordion.js.map +1 -1
- package/accordion/fesm5/ngx-bootstrap-accordion.js +80 -1
- package/accordion/fesm5/ngx-bootstrap-accordion.js.map +1 -1
- package/accordion/package.json +2 -2
- package/alert/bundles/ngx-bootstrap-alert.umd.js +224 -2
- package/alert/bundles/ngx-bootstrap-alert.umd.js.map +1 -1
- package/alert/bundles/ngx-bootstrap-alert.umd.min.js +15 -1
- package/alert/bundles/ngx-bootstrap-alert.umd.min.js.map +1 -1
- package/alert/fesm2015/ngx-bootstrap-alert.js +71 -0
- package/alert/fesm2015/ngx-bootstrap-alert.js.map +1 -1
- package/alert/fesm5/ngx-bootstrap-alert.js +72 -1
- package/alert/fesm5/ngx-bootstrap-alert.js.map +1 -1
- package/alert/package.json +2 -2
- package/buttons/bundles/ngx-bootstrap-buttons.umd.js +208 -85
- package/buttons/bundles/ngx-bootstrap-buttons.umd.js.map +1 -1
- package/buttons/bundles/ngx-bootstrap-buttons.umd.min.js +1 -1
- package/buttons/bundles/ngx-bootstrap-buttons.umd.min.js.map +1 -1
- package/buttons/button-radio-group.directive.d.ts +4 -1
- package/buttons/esm2015/button-radio-group.directive.js +26 -2
- package/buttons/esm5/button-radio-group.directive.js +30 -2
- package/buttons/fesm2015/ngx-bootstrap-buttons.js +194 -65
- package/buttons/fesm2015/ngx-bootstrap-buttons.js.map +1 -1
- package/buttons/fesm5/ngx-bootstrap-buttons.js +216 -83
- package/buttons/fesm5/ngx-bootstrap-buttons.js.map +1 -1
- package/buttons/ngx-bootstrap-buttons.metadata.json +1 -1
- package/buttons/package.json +2 -2
- package/carousel/bundles/ngx-bootstrap-carousel.umd.js +295 -4
- package/carousel/bundles/ngx-bootstrap-carousel.umd.js.map +1 -1
- package/carousel/bundles/ngx-bootstrap-carousel.umd.min.js +15 -1
- package/carousel/bundles/ngx-bootstrap-carousel.umd.min.js.map +1 -1
- package/carousel/carousel.component.d.ts +2 -0
- package/carousel/esm2015/carousel.component.js +15 -2
- package/carousel/esm2015/slide.component.js +21 -2
- package/carousel/esm5/carousel.component.js +15 -2
- package/carousel/esm5/slide.component.js +6 -2
- package/carousel/fesm2015/ngx-bootstrap-carousel.js +169 -2
- package/carousel/fesm2015/ngx-bootstrap-carousel.js.map +1 -1
- package/carousel/fesm5/ngx-bootstrap-carousel.js +156 -4
- package/carousel/fesm5/ngx-bootstrap-carousel.js.map +1 -1
- package/carousel/ngx-bootstrap-carousel.metadata.json +1 -1
- package/carousel/package.json +2 -2
- package/carousel/slide.component.d.ts +1 -0
- package/chronos/bundles/ngx-bootstrap-chronos.umd.js +11172 -10061
- package/chronos/bundles/ngx-bootstrap-chronos.umd.js.map +1 -1
- package/chronos/bundles/ngx-bootstrap-chronos.umd.min.js +1 -1
- package/chronos/bundles/ngx-bootstrap-chronos.umd.min.js.map +1 -1
- package/chronos/esm2015/format/format.js +1 -1
- package/chronos/esm2015/i18n/ka.js +108 -0
- package/chronos/esm2015/i18n/kk.js +89 -0
- package/chronos/esm2015/i18n/sq.js +62 -0
- package/chronos/esm2015/i18n/th-be.js +85 -0
- package/chronos/esm2015/index.js +2 -2
- package/chronos/esm2015/locale/locale.class.js +16 -2
- package/chronos/esm2015/ngx-bootstrap-chronos.js +2 -2
- package/chronos/esm2015/public_api.js +5 -1
- package/chronos/esm2015/units/year.js +4 -1
- package/chronos/esm5/format/format.js +1 -1
- package/chronos/esm5/i18n/ka.js +108 -0
- package/chronos/esm5/i18n/kk.js +89 -0
- package/chronos/esm5/i18n/sq.js +62 -0
- package/chronos/esm5/i18n/th-be.js +86 -0
- package/chronos/esm5/index.js +2 -2
- package/chronos/esm5/locale/locale.class.js +22 -2
- package/chronos/esm5/ngx-bootstrap-chronos.js +2 -2
- package/chronos/esm5/public_api.js +5 -1
- package/chronos/esm5/units/year.js +4 -1
- package/chronos/fesm2015/ngx-bootstrap-chronos.js +1117 -13
- package/chronos/fesm2015/ngx-bootstrap-chronos.js.map +1 -1
- package/chronos/fesm5/ngx-bootstrap-chronos.js +1130 -13
- package/chronos/fesm5/ngx-bootstrap-chronos.js.map +1 -1
- package/chronos/i18n/ka.d.ts +2 -0
- package/chronos/i18n/kk.d.ts +2 -0
- package/chronos/i18n/sq.d.ts +2 -0
- package/chronos/i18n/th-be.d.ts +2 -0
- package/chronos/locale/locale.class.d.ts +2 -0
- package/chronos/ngx-bootstrap-chronos.metadata.json +1 -1
- package/chronos/package.json +2 -2
- package/chronos/public_api.d.ts +4 -0
- package/collapse/bundles/ngx-bootstrap-collapse.umd.js +100 -2
- package/collapse/bundles/ngx-bootstrap-collapse.umd.js.map +1 -1
- package/collapse/bundles/ngx-bootstrap-collapse.umd.min.js +1 -1
- package/collapse/bundles/ngx-bootstrap-collapse.umd.min.js.map +1 -1
- package/collapse/collapse.directive.d.ts +1 -0
- package/collapse/esm2015/collapse.directive.js +14 -1
- package/collapse/esm5/collapse.directive.js +14 -1
- package/collapse/fesm2015/ngx-bootstrap-collapse.js +108 -0
- package/collapse/fesm2015/ngx-bootstrap-collapse.js.map +1 -1
- package/collapse/fesm5/ngx-bootstrap-collapse.js +109 -1
- package/collapse/fesm5/ngx-bootstrap-collapse.js.map +1 -1
- package/collapse/ngx-bootstrap-collapse.metadata.json +1 -1
- package/collapse/package.json +2 -2
- package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js +169 -2
- package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js.map +1 -1
- package/component-loader/bundles/ngx-bootstrap-component-loader.umd.min.js +1 -1
- package/component-loader/bundles/ngx-bootstrap-component-loader.umd.min.js.map +1 -1
- package/component-loader/fesm2015/ngx-bootstrap-component-loader.js +177 -0
- package/component-loader/fesm2015/ngx-bootstrap-component-loader.js.map +1 -1
- package/component-loader/fesm5/ngx-bootstrap-component-loader.js +178 -1
- package/component-loader/fesm5/ngx-bootstrap-component-loader.js.map +1 -1
- package/component-loader/package.json +2 -2
- package/datepicker/base/bs-datepicker-container.d.ts +2 -1
- package/datepicker/bs-datepicker-inline.component.d.ts +4 -0
- package/datepicker/bs-datepicker-input.directive.d.ts +1 -0
- package/datepicker/bs-datepicker.component.d.ts +12 -3
- package/datepicker/bs-datepicker.config.d.ts +31 -1
- package/datepicker/bs-datepicker.css +19 -1
- package/datepicker/bs-datepicker.css.map +3 -3
- package/datepicker/bs-datepicker.scss +0 -1
- package/datepicker/bs-daterangepicker-inline.component.d.ts +8 -0
- package/datepicker/bs-daterangepicker-input.directive.d.ts +1 -0
- package/datepicker/bs-daterangepicker.component.d.ts +16 -3
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js +2100 -99
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js.map +1 -1
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js +15 -1
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js.map +1 -1
- package/datepicker/engine/flag-days-calendar.d.ts +1 -0
- package/datepicker/esm2015/base/bs-datepicker-container.js +10 -3
- package/datepicker/esm2015/bs-datepicker-inline.component.js +25 -9
- package/datepicker/esm2015/bs-datepicker-input.directive.js +19 -1
- package/datepicker/esm2015/bs-datepicker.component.js +55 -8
- package/datepicker/esm2015/bs-datepicker.config.js +42 -3
- package/datepicker/esm2015/bs-datepicker.module.js +23 -16
- package/datepicker/esm2015/bs-daterangepicker-inline.component.js +37 -7
- package/datepicker/esm2015/bs-daterangepicker-input.directive.js +34 -3
- package/datepicker/esm2015/bs-daterangepicker.component.js +66 -9
- package/datepicker/esm2015/engine/flag-days-calendar.js +6 -3
- package/datepicker/esm2015/reducer/bs-datepicker.actions.js +14 -1
- package/datepicker/esm2015/reducer/bs-datepicker.effects.js +15 -11
- package/datepicker/esm2015/reducer/bs-datepicker.reducer.js +28 -6
- package/datepicker/esm2015/reducer/bs-datepicker.state.js +7 -1
- package/datepicker/esm2015/themes/bs/bs-custom-dates-view.component.js +46 -8
- package/datepicker/esm2015/themes/bs/bs-datepicker-container.component.js +5 -2
- package/datepicker/esm2015/themes/bs/bs-datepicker-inline-container.component.js +2 -2
- package/datepicker/esm2015/themes/bs/bs-datepicker-navigation-view.component.js +8 -7
- package/datepicker/esm2015/themes/bs/bs-daterangepicker-container.component.js +21 -3
- package/datepicker/esm2015/themes/bs/bs-daterangepicker-inline-container.component.js +2 -2
- package/datepicker/esm2015/themes/bs/bs-days-calendar-view.component.js +22 -8
- package/datepicker/esm2015/utils/bs-calendar-utils.js +18 -3
- package/datepicker/esm5/base/bs-datepicker-container.js +14 -3
- package/datepicker/esm5/bs-datepicker-inline.component.js +25 -9
- package/datepicker/esm5/bs-datepicker-input.directive.js +23 -1
- package/datepicker/esm5/bs-datepicker.component.js +59 -8
- package/datepicker/esm5/bs-datepicker.config.js +42 -3
- package/datepicker/esm5/bs-datepicker.module.js +26 -19
- package/datepicker/esm5/bs-daterangepicker-inline.component.js +37 -7
- package/datepicker/esm5/bs-daterangepicker-input.directive.js +38 -3
- package/datepicker/esm5/bs-daterangepicker.component.js +70 -9
- package/datepicker/esm5/engine/flag-days-calendar.js +6 -3
- package/datepicker/esm5/reducer/bs-datepicker.actions.js +18 -1
- package/datepicker/esm5/reducer/bs-datepicker.effects.js +21 -17
- package/datepicker/esm5/reducer/bs-datepicker.reducer.js +28 -6
- package/datepicker/esm5/reducer/bs-datepicker.state.js +7 -1
- package/datepicker/esm5/themes/bs/bs-custom-dates-view.component.js +39 -7
- package/datepicker/esm5/themes/bs/bs-datepicker-container.component.js +5 -2
- package/datepicker/esm5/themes/bs/bs-datepicker-inline-container.component.js +2 -2
- package/datepicker/esm5/themes/bs/bs-datepicker-navigation-view.component.js +2 -2
- package/datepicker/esm5/themes/bs/bs-daterangepicker-container.component.js +25 -3
- package/datepicker/esm5/themes/bs/bs-daterangepicker-inline-container.component.js +2 -2
- package/datepicker/esm5/themes/bs/bs-days-calendar-view.component.js +22 -8
- package/datepicker/esm5/utils/bs-calendar-utils.js +18 -3
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.js +1953 -91
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.js.map +1 -1
- package/datepicker/fesm5/ngx-bootstrap-datepicker.js +1985 -98
- package/datepicker/fesm5/ngx-bootstrap-datepicker.js.map +1 -1
- package/datepicker/ngx-bootstrap-datepicker.metadata.json +1 -1
- package/datepicker/package.json +2 -2
- package/datepicker/reducer/bs-datepicker.actions.d.ts +2 -0
- package/datepicker/reducer/bs-datepicker.effects.d.ts +3 -2
- package/datepicker/reducer/bs-datepicker.state.d.ts +3 -0
- package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +6 -1
- package/datepicker/themes/bs/bs-daterangepicker-container.component.d.ts +3 -0
- package/datepicker/utils/bs-calendar-utils.d.ts +1 -0
- package/datepicker/utils/scss/mixins.css.map +1 -1
- package/datepicker/utils/scss/mixins.scss +9 -0
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js +387 -3
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js.map +1 -1
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js +15 -1
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js.map +1 -1
- package/dropdown/esm2015/bs-dropdown-container.component.js +2 -2
- package/dropdown/esm5/bs-dropdown-container.component.js +2 -2
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.js +234 -1
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.js.map +1 -1
- package/dropdown/fesm5/ngx-bootstrap-dropdown.js +234 -1
- package/dropdown/fesm5/ngx-bootstrap-dropdown.js.map +1 -1
- package/dropdown/ngx-bootstrap-dropdown.metadata.json +1 -1
- package/dropdown/package.json +2 -2
- package/locale/bundles/ngx-bootstrap-locale.umd.js +36 -2
- package/locale/bundles/ngx-bootstrap-locale.umd.js.map +1 -1
- package/locale/bundles/ngx-bootstrap-locale.umd.min.js +1 -1
- package/locale/esm2015/ngx-bootstrap-locale.js +2 -2
- package/locale/esm2015/public_api.js +5 -1
- package/locale/esm5/ngx-bootstrap-locale.js +2 -2
- package/locale/esm5/public_api.js +5 -1
- package/locale/fesm2015/ngx-bootstrap-locale.js +11 -1
- package/locale/fesm2015/ngx-bootstrap-locale.js.map +1 -1
- package/locale/fesm5/ngx-bootstrap-locale.js +11 -1
- package/locale/fesm5/ngx-bootstrap-locale.js.map +1 -1
- package/locale/ngx-bootstrap-locale.metadata.json +1 -1
- package/locale/package.json +2 -2
- package/locale/public_api.d.ts +4 -0
- package/mini-ngrx/bundles/ngx-bootstrap-mini-ngrx.umd.js +187 -2
- package/mini-ngrx/bundles/ngx-bootstrap-mini-ngrx.umd.js.map +1 -1
- package/mini-ngrx/bundles/ngx-bootstrap-mini-ngrx.umd.min.js +15 -1
- package/mini-ngrx/bundles/ngx-bootstrap-mini-ngrx.umd.min.js.map +1 -1
- package/mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.js +32 -0
- package/mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.js.map +1 -1
- package/mini-ngrx/fesm5/ngx-bootstrap-mini-ngrx.js +32 -0
- package/mini-ngrx/fesm5/ngx-bootstrap-mini-ngrx.js.map +1 -1
- package/mini-ngrx/package.json +2 -2
- package/modal/bs-modal.service.d.ts +1 -2
- package/modal/bundles/ngx-bootstrap-modal.umd.js +558 -16
- package/modal/bundles/ngx-bootstrap-modal.umd.js.map +1 -1
- package/modal/bundles/ngx-bootstrap-modal.umd.min.js +15 -1
- package/modal/bundles/ngx-bootstrap-modal.umd.min.js.map +1 -1
- package/modal/esm2015/bs-modal.service.js +13 -4
- package/modal/esm2015/modal-container.component.js +24 -5
- package/modal/esm2015/modal-options.class.js +16 -1
- package/modal/esm2015/modal.directive.js +21 -4
- package/modal/esm2015/modal.module.js +10 -1
- package/modal/esm5/bs-modal.service.js +28 -8
- package/modal/esm5/modal-container.component.js +28 -5
- package/modal/esm5/modal-options.class.js +16 -1
- package/modal/esm5/modal.directive.js +25 -4
- package/modal/esm5/modal.module.js +13 -1
- package/modal/fesm2015/ngx-bootstrap-modal.js +354 -10
- package/modal/fesm2015/ngx-bootstrap-modal.js.map +1 -1
- package/modal/fesm5/ngx-bootstrap-modal.js +381 -15
- package/modal/fesm5/ngx-bootstrap-modal.js.map +1 -1
- package/modal/modal-container.component.d.ts +3 -1
- package/modal/modal-options.class.d.ts +13 -0
- package/modal/modal.directive.d.ts +3 -1
- package/modal/modal.module.d.ts +1 -0
- package/modal/ngx-bootstrap-modal.metadata.json +1 -1
- package/modal/package.json +2 -2
- package/package.json +2 -2
- package/pagination/bundles/ngx-bootstrap-pagination.umd.js +276 -4
- package/pagination/bundles/ngx-bootstrap-pagination.umd.js.map +1 -1
- package/pagination/bundles/ngx-bootstrap-pagination.umd.min.js +1 -1
- package/pagination/bundles/ngx-bootstrap-pagination.umd.min.js.map +1 -1
- package/pagination/esm2015/models/index.js +49 -4
- package/pagination/esm2015/pager.component.js +2 -2
- package/pagination/esm2015/pagination.component.js +33 -3
- package/pagination/esm2015/public_api.js +1 -1
- package/pagination/esm5/models/index.js +49 -4
- package/pagination/esm5/pager.component.js +2 -2
- package/pagination/esm5/pagination.component.js +33 -3
- package/pagination/esm5/public_api.js +1 -1
- package/pagination/fesm2015/ngx-bootstrap-pagination.js +284 -2
- package/pagination/fesm2015/ngx-bootstrap-pagination.js.map +1 -1
- package/pagination/fesm5/ngx-bootstrap-pagination.js +285 -3
- package/pagination/fesm5/ngx-bootstrap-pagination.js.map +1 -1
- package/pagination/models/index.d.ts +28 -0
- package/pagination/ngx-bootstrap-pagination.metadata.json +1 -1
- package/pagination/package.json +2 -2
- package/pagination/pagination.component.d.ts +12 -2
- package/pagination/public_api.d.ts +1 -0
- package/popover/bundles/ngx-bootstrap-popover.umd.js +215 -20
- package/popover/bundles/ngx-bootstrap-popover.umd.js.map +1 -1
- package/popover/bundles/ngx-bootstrap-popover.umd.min.js +1 -1
- package/popover/bundles/ngx-bootstrap-popover.umd.min.js.map +1 -1
- package/popover/esm2015/popover.config.js +10 -1
- package/popover/esm2015/popover.directive.js +97 -16
- package/popover/esm5/popover.config.js +10 -1
- package/popover/esm5/popover.directive.js +98 -16
- package/popover/fesm2015/ngx-bootstrap-popover.js +221 -16
- package/popover/fesm2015/ngx-bootstrap-popover.js.map +1 -1
- package/popover/fesm5/ngx-bootstrap-popover.js +222 -16
- package/popover/fesm5/ngx-bootstrap-popover.js.map +1 -1
- package/popover/ngx-bootstrap-popover.metadata.json +1 -1
- package/popover/package.json +2 -2
- package/popover/popover.config.d.ts +2 -0
- package/popover/popover.directive.d.ts +9 -1
- package/positioning/bundles/ngx-bootstrap-positioning.umd.js +286 -13
- package/positioning/bundles/ngx-bootstrap-positioning.umd.js.map +1 -1
- package/positioning/bundles/ngx-bootstrap-positioning.umd.min.js +15 -1
- package/positioning/bundles/ngx-bootstrap-positioning.umd.min.js.map +1 -1
- package/positioning/esm2015/modifiers/arrow.js +19 -5
- package/positioning/esm2015/modifiers/initData.js +12 -2
- package/positioning/esm2015/modifiers/shift.js +6 -4
- package/positioning/esm5/modifiers/arrow.js +19 -5
- package/positioning/esm5/modifiers/initData.js +12 -2
- package/positioning/esm5/modifiers/shift.js +8 -6
- package/positioning/fesm2015/ngx-bootstrap-positioning.js +128 -8
- package/positioning/fesm2015/ngx-bootstrap-positioning.js.map +1 -1
- package/positioning/fesm5/ngx-bootstrap-positioning.js +132 -10
- package/positioning/fesm5/ngx-bootstrap-positioning.js.map +1 -1
- package/positioning/package.json +2 -2
- package/progressbar/bundles/ngx-bootstrap-progressbar.umd.js +77 -2
- package/progressbar/bundles/ngx-bootstrap-progressbar.umd.js.map +1 -1
- package/progressbar/bundles/ngx-bootstrap-progressbar.umd.min.js +1 -1
- package/progressbar/bundles/ngx-bootstrap-progressbar.umd.min.js.map +1 -1
- package/progressbar/fesm2015/ngx-bootstrap-progressbar.js +85 -0
- package/progressbar/fesm2015/ngx-bootstrap-progressbar.js.map +1 -1
- package/progressbar/fesm5/ngx-bootstrap-progressbar.js +85 -0
- package/progressbar/fesm5/ngx-bootstrap-progressbar.js.map +1 -1
- package/progressbar/package.json +2 -2
- package/rating/bundles/ngx-bootstrap-rating.umd.js +92 -7
- package/rating/bundles/ngx-bootstrap-rating.umd.js.map +1 -1
- package/rating/bundles/ngx-bootstrap-rating.umd.min.js +1 -1
- package/rating/bundles/ngx-bootstrap-rating.umd.min.js.map +1 -1
- package/rating/esm2015/ngx-bootstrap-rating.js +2 -2
- package/rating/esm2015/public_api.js +2 -1
- package/rating/esm2015/rating.component.js +14 -5
- package/rating/esm2015/rating.config.js +27 -0
- package/rating/esm2015/rating.module.js +3 -2
- package/rating/esm5/ngx-bootstrap-rating.js +2 -2
- package/rating/esm5/public_api.js +2 -1
- package/rating/esm5/rating.component.js +13 -5
- package/rating/esm5/rating.config.js +29 -0
- package/rating/esm5/rating.module.js +3 -2
- package/rating/fesm2015/ngx-bootstrap-rating.js +101 -7
- package/rating/fesm2015/ngx-bootstrap-rating.js.map +1 -1
- package/rating/fesm5/ngx-bootstrap-rating.js +101 -7
- package/rating/fesm5/ngx-bootstrap-rating.js.map +1 -1
- package/rating/ngx-bootstrap-rating.metadata.json +1 -1
- package/rating/package.json +2 -2
- package/rating/public_api.d.ts +1 -0
- package/rating/rating.component.d.ts +4 -1
- package/rating/rating.config.d.ts +5 -0
- package/sortable/bundles/ngx-bootstrap-sortable.umd.js +254 -2
- package/sortable/bundles/ngx-bootstrap-sortable.umd.js.map +1 -1
- package/sortable/bundles/ngx-bootstrap-sortable.umd.min.js +15 -1
- package/sortable/bundles/ngx-bootstrap-sortable.umd.min.js.map +1 -1
- package/sortable/fesm2015/ngx-bootstrap-sortable.js +113 -0
- package/sortable/fesm2015/ngx-bootstrap-sortable.js.map +1 -1
- package/sortable/fesm5/ngx-bootstrap-sortable.js +114 -1
- package/sortable/fesm5/ngx-bootstrap-sortable.js.map +1 -1
- package/sortable/package.json +2 -2
- package/tabs/bundles/ngx-bootstrap-tabs.umd.js +153 -4
- package/tabs/bundles/ngx-bootstrap-tabs.umd.js.map +1 -1
- package/tabs/bundles/ngx-bootstrap-tabs.umd.min.js +1 -1
- package/tabs/bundles/ngx-bootstrap-tabs.umd.min.js.map +1 -1
- package/tabs/esm2015/tab.directive.js +13 -2
- package/tabs/esm2015/tabset.component.js +7 -2
- package/tabs/esm2015/tabset.config.js +10 -1
- package/tabs/esm5/tab.directive.js +17 -2
- package/tabs/esm5/tabset.component.js +7 -2
- package/tabs/esm5/tabset.config.js +10 -1
- package/tabs/fesm2015/ngx-bootstrap-tabs.js +157 -2
- package/tabs/fesm2015/ngx-bootstrap-tabs.js.map +1 -1
- package/tabs/fesm5/ngx-bootstrap-tabs.js +162 -3
- package/tabs/fesm5/ngx-bootstrap-tabs.js.map +1 -1
- package/tabs/ngx-bootstrap-tabs.metadata.json +1 -1
- package/tabs/package.json +2 -2
- package/tabs/tab.directive.d.ts +2 -0
- package/tabs/tabset.component.d.ts +2 -0
- package/tabs/tabset.config.d.ts +2 -0
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.js +464 -8
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.js.map +1 -1
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.min.js +15 -1
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.min.js.map +1 -1
- package/timepicker/esm2015/timepicker.component.js +8 -2
- package/timepicker/esm2015/timepicker.config.js +28 -1
- package/timepicker/esm2015/timepicker.utils.js +9 -6
- package/timepicker/esm5/timepicker.component.js +8 -2
- package/timepicker/esm5/timepicker.config.js +28 -1
- package/timepicker/esm5/timepicker.utils.js +9 -6
- package/timepicker/fesm2015/ngx-bootstrap-timepicker.js +311 -6
- package/timepicker/fesm2015/ngx-bootstrap-timepicker.js.map +1 -1
- package/timepicker/fesm5/ngx-bootstrap-timepicker.js +315 -7
- package/timepicker/fesm5/ngx-bootstrap-timepicker.js.map +1 -1
- package/timepicker/ngx-bootstrap-timepicker.metadata.json +1 -1
- package/timepicker/package.json +2 -2
- package/timepicker/timepicker.component.d.ts +3 -0
- package/timepicker/timepicker.config.d.ts +6 -0
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js +356 -8
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js.map +1 -1
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js +15 -1
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js.map +1 -1
- package/tooltip/esm2015/tooltip.directive.js +48 -10
- package/tooltip/esm5/tooltip.directive.js +51 -10
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.js +201 -7
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.js.map +1 -1
- package/tooltip/fesm5/ngx-bootstrap-tooltip.js +204 -7
- package/tooltip/fesm5/ngx-bootstrap-tooltip.js.map +1 -1
- package/tooltip/ngx-bootstrap-tooltip.metadata.json +1 -1
- package/tooltip/package.json +2 -2
- package/tooltip/tooltip.directive.d.ts +3 -1
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js +748 -69
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js.map +1 -1
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js +15 -1
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js.map +1 -1
- package/typeahead/esm2015/models/index.js +87 -0
- package/typeahead/esm2015/ngx-bootstrap-typeahead.js +2 -2
- package/typeahead/esm2015/public_api.js +2 -1
- package/typeahead/esm2015/typeahead-container.component.js +82 -37
- package/typeahead/esm2015/typeahead-order.class.js +19 -0
- package/typeahead/esm2015/typeahead.config.js +10 -1
- package/typeahead/esm2015/typeahead.directive.js +133 -30
- package/typeahead/esm5/models/index.js +87 -0
- package/typeahead/esm5/ngx-bootstrap-typeahead.js +2 -2
- package/typeahead/esm5/public_api.js +2 -1
- package/typeahead/esm5/typeahead-container.component.js +92 -37
- package/typeahead/esm5/typeahead-order.class.js +23 -0
- package/typeahead/esm5/typeahead.config.js +10 -1
- package/typeahead/esm5/typeahead.directive.js +140 -36
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.js +574 -61
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.js.map +1 -1
- package/typeahead/fesm5/ngx-bootstrap-typeahead.js +594 -67
- package/typeahead/fesm5/ngx-bootstrap-typeahead.js.map +1 -1
- package/typeahead/models/index.d.ts +41 -0
- package/typeahead/ngx-bootstrap-typeahead.metadata.json +1 -1
- package/typeahead/package.json +2 -2
- package/typeahead/public_api.d.ts +2 -0
- package/typeahead/typeahead-container.component.d.ts +15 -7
- package/typeahead/typeahead-order.class.d.ts +6 -0
- package/typeahead/typeahead.config.d.ts +2 -0
- package/typeahead/typeahead.directive.d.ts +28 -10
- package/utils/bundles/ngx-bootstrap-utils.umd.js +54 -2
- package/utils/bundles/ngx-bootstrap-utils.umd.js.map +1 -1
- package/utils/bundles/ngx-bootstrap-utils.umd.min.js +2 -2
- package/utils/bundles/ngx-bootstrap-utils.umd.min.js.map +1 -1
- package/utils/fesm2015/ngx-bootstrap-utils.js +62 -0
- package/utils/fesm2015/ngx-bootstrap-utils.js.map +1 -1
- package/utils/fesm5/ngx-bootstrap-utils.js +62 -0
- package/utils/fesm5/ngx-bootstrap-utils.js.map +1 -1
- package/utils/package.json +2 -2
- package/bundles/ngx-bootstrap.umd.js +0 -1037
- package/bundles/ngx-bootstrap.umd.js.map +0 -1
- package/bundles/ngx-bootstrap.umd.min.js +0 -2
- package/bundles/ngx-bootstrap.umd.min.js.map +0 -1
- package/esm2015/ngx-bootstrap.js +0 -9
- package/esm2015/public_api.js +0 -30
- package/esm5/ngx-bootstrap.js +0 -9
- package/esm5/public_api.js +0 -30
- package/fesm2015/ngx-bootstrap.js +0 -24
- package/fesm2015/ngx-bootstrap.js.map +0 -1
- package/fesm5/ngx-bootstrap.js +0 -24
- package/fesm5/ngx-bootstrap.js.map +0 -1
- package/ngx-bootstrap.d.ts +0 -4
- package/ngx-bootstrap.metadata.json +0 -1
- package/public_api.d.ts +0 -25
@@ -1,7 +1,8 @@
|
|
1
1
|
import { Injectable, Component, ChangeDetectionStrategy, Input, Directive, ElementRef, Renderer2, ViewContainerRef, Output, NgModule } from '@angular/core';
|
2
2
|
import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
3
|
-
import { isBs3 } from 'ngx-bootstrap/utils';
|
3
|
+
import { isBs3, parseTriggers } from 'ngx-bootstrap/utils';
|
4
4
|
import { PositioningService } from 'ngx-bootstrap/positioning';
|
5
|
+
import { timer } from 'rxjs';
|
5
6
|
import { CommonModule } from '@angular/common';
|
6
7
|
|
7
8
|
/**
|
@@ -30,11 +31,45 @@ class PopoverConfig {
|
|
30
31
|
*/
|
31
32
|
this.triggers = 'click';
|
32
33
|
this.outsideClick = false;
|
34
|
+
/**
|
35
|
+
* delay before showing the tooltip
|
36
|
+
*/
|
37
|
+
this.delay = 0;
|
33
38
|
}
|
34
39
|
}
|
35
40
|
PopoverConfig.decorators = [
|
36
41
|
{ type: Injectable }
|
37
42
|
];
|
43
|
+
if (false) {
|
44
|
+
/**
|
45
|
+
* sets disable adaptive position
|
46
|
+
* @type {?}
|
47
|
+
*/
|
48
|
+
PopoverConfig.prototype.adaptivePosition;
|
49
|
+
/**
|
50
|
+
* Placement of a popover. Accepts: "top", "bottom", "left", "right", "auto"
|
51
|
+
* @type {?}
|
52
|
+
*/
|
53
|
+
PopoverConfig.prototype.placement;
|
54
|
+
/**
|
55
|
+
* Specifies events that should trigger. Supports a space separated list of
|
56
|
+
* event names.
|
57
|
+
* @type {?}
|
58
|
+
*/
|
59
|
+
PopoverConfig.prototype.triggers;
|
60
|
+
/** @type {?} */
|
61
|
+
PopoverConfig.prototype.outsideClick;
|
62
|
+
/**
|
63
|
+
* A selector specifying the element the popover should be appended to.
|
64
|
+
* @type {?}
|
65
|
+
*/
|
66
|
+
PopoverConfig.prototype.container;
|
67
|
+
/**
|
68
|
+
* delay before showing the tooltip
|
69
|
+
* @type {?}
|
70
|
+
*/
|
71
|
+
PopoverConfig.prototype.delay;
|
72
|
+
}
|
38
73
|
|
39
74
|
/**
|
40
75
|
* @fileoverview added by tsickle
|
@@ -97,6 +132,14 @@ PopoverContainerComponent.propDecorators = {
|
|
97
132
|
placement: [{ type: Input }],
|
98
133
|
title: [{ type: Input }]
|
99
134
|
};
|
135
|
+
if (false) {
|
136
|
+
/** @type {?} */
|
137
|
+
PopoverContainerComponent.prototype.placement;
|
138
|
+
/** @type {?} */
|
139
|
+
PopoverContainerComponent.prototype.title;
|
140
|
+
/** @type {?} */
|
141
|
+
PopoverContainerComponent.prototype.containerClass;
|
142
|
+
}
|
100
143
|
|
101
144
|
/**
|
102
145
|
* @fileoverview added by tsickle
|
@@ -115,6 +158,8 @@ class PopoverDirective {
|
|
115
158
|
* @param {?} _positionService
|
116
159
|
*/
|
117
160
|
constructor(_config, _elementRef, _renderer, _viewContainerRef, cis, _positionService) {
|
161
|
+
this._elementRef = _elementRef;
|
162
|
+
this._renderer = _renderer;
|
118
163
|
this._positionService = _positionService;
|
119
164
|
/**
|
120
165
|
* Close popover on outside click
|
@@ -171,7 +216,7 @@ class PopoverDirective {
|
|
171
216
|
* @return {?}
|
172
217
|
*/
|
173
218
|
show() {
|
174
|
-
if (this._popover.isShown || !this.popover) {
|
219
|
+
if (this._popover.isShown || !this.popover || this._delayTimeoutId) {
|
175
220
|
return;
|
176
221
|
}
|
177
222
|
this._positionService.setOptions({
|
@@ -184,22 +229,69 @@ class PopoverDirective {
|
|
184
229
|
}
|
185
230
|
}
|
186
231
|
});
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
232
|
+
/** @type {?} */
|
233
|
+
const showPopover = (/**
|
234
|
+
* @return {?}
|
235
|
+
*/
|
236
|
+
() => {
|
237
|
+
if (this._delayTimeoutId) {
|
238
|
+
this._delayTimeoutId = undefined;
|
239
|
+
}
|
240
|
+
this._popover
|
241
|
+
.attach(PopoverContainerComponent)
|
242
|
+
.to(this.container)
|
243
|
+
.position({ attachment: this.placement })
|
244
|
+
.show({
|
245
|
+
content: this.popover,
|
246
|
+
context: this.popoverContext,
|
247
|
+
placement: this.placement,
|
248
|
+
title: this.popoverTitle,
|
249
|
+
containerClass: this.containerClass
|
250
|
+
});
|
251
|
+
if (!this.adaptivePosition) {
|
252
|
+
this._positionService.calcPosition();
|
253
|
+
this._positionService.deletePositionElement(this._popover._componentRef.location);
|
254
|
+
}
|
255
|
+
this.isOpen = true;
|
256
|
+
});
|
257
|
+
/** @type {?} */
|
258
|
+
const cancelDelayedTooltipShowing = (/**
|
259
|
+
* @return {?}
|
260
|
+
*/
|
261
|
+
() => {
|
262
|
+
if (this._popoverCancelShowFn) {
|
263
|
+
this._popoverCancelShowFn();
|
264
|
+
}
|
197
265
|
});
|
198
|
-
if (
|
199
|
-
|
200
|
-
this.
|
266
|
+
if (this.delay) {
|
267
|
+
/** @type {?} */
|
268
|
+
const _timer = timer(this.delay).subscribe((/**
|
269
|
+
* @return {?}
|
270
|
+
*/
|
271
|
+
() => {
|
272
|
+
showPopover();
|
273
|
+
cancelDelayedTooltipShowing();
|
274
|
+
}));
|
275
|
+
if (this.triggers) {
|
276
|
+
parseTriggers(this.triggers)
|
277
|
+
.forEach((/**
|
278
|
+
* @param {?} trigger
|
279
|
+
* @return {?}
|
280
|
+
*/
|
281
|
+
(trigger) => {
|
282
|
+
this._popoverCancelShowFn = this._renderer.listen(this._elementRef.nativeElement, trigger.close, (/**
|
283
|
+
* @return {?}
|
284
|
+
*/
|
285
|
+
() => {
|
286
|
+
_timer.unsubscribe();
|
287
|
+
cancelDelayedTooltipShowing();
|
288
|
+
}));
|
289
|
+
}));
|
290
|
+
}
|
291
|
+
}
|
292
|
+
else {
|
293
|
+
showPopover();
|
201
294
|
}
|
202
|
-
this.isOpen = true;
|
203
295
|
}
|
204
296
|
/**
|
205
297
|
* Closes an element’s popover. This is considered a “manual” triggering of
|
@@ -207,6 +299,10 @@ class PopoverDirective {
|
|
207
299
|
* @return {?}
|
208
300
|
*/
|
209
301
|
hide() {
|
302
|
+
if (this._delayTimeoutId) {
|
303
|
+
clearTimeout(this._delayTimeoutId);
|
304
|
+
this._delayTimeoutId = undefined;
|
305
|
+
}
|
210
306
|
if (this.isOpen) {
|
211
307
|
this._popover.hide();
|
212
308
|
this.isOpen = false;
|
@@ -273,9 +369,108 @@ PopoverDirective.propDecorators = {
|
|
273
369
|
container: [{ type: Input }],
|
274
370
|
containerClass: [{ type: Input }],
|
275
371
|
isOpen: [{ type: Input }],
|
372
|
+
delay: [{ type: Input }],
|
276
373
|
onShown: [{ type: Output }],
|
277
374
|
onHidden: [{ type: Output }]
|
278
375
|
};
|
376
|
+
if (false) {
|
377
|
+
/**
|
378
|
+
* sets disable adaptive position
|
379
|
+
* @type {?}
|
380
|
+
*/
|
381
|
+
PopoverDirective.prototype.adaptivePosition;
|
382
|
+
/**
|
383
|
+
* Content to be displayed as popover.
|
384
|
+
* @type {?}
|
385
|
+
*/
|
386
|
+
PopoverDirective.prototype.popover;
|
387
|
+
/**
|
388
|
+
* Context to be used if popover is a template.
|
389
|
+
* @type {?}
|
390
|
+
*/
|
391
|
+
PopoverDirective.prototype.popoverContext;
|
392
|
+
/**
|
393
|
+
* Title of a popover.
|
394
|
+
* @type {?}
|
395
|
+
*/
|
396
|
+
PopoverDirective.prototype.popoverTitle;
|
397
|
+
/**
|
398
|
+
* Placement of a popover. Accepts: "top", "bottom", "left", "right"
|
399
|
+
* @type {?}
|
400
|
+
*/
|
401
|
+
PopoverDirective.prototype.placement;
|
402
|
+
/**
|
403
|
+
* Close popover on outside click
|
404
|
+
* @type {?}
|
405
|
+
*/
|
406
|
+
PopoverDirective.prototype.outsideClick;
|
407
|
+
/**
|
408
|
+
* Specifies events that should trigger. Supports a space separated list of
|
409
|
+
* event names.
|
410
|
+
* @type {?}
|
411
|
+
*/
|
412
|
+
PopoverDirective.prototype.triggers;
|
413
|
+
/**
|
414
|
+
* A selector specifying the element the popover should be appended to.
|
415
|
+
* @type {?}
|
416
|
+
*/
|
417
|
+
PopoverDirective.prototype.container;
|
418
|
+
/**
|
419
|
+
* Css class for popover container
|
420
|
+
* @type {?}
|
421
|
+
*/
|
422
|
+
PopoverDirective.prototype.containerClass;
|
423
|
+
/**
|
424
|
+
* Delay before showing the tooltip
|
425
|
+
* @type {?}
|
426
|
+
*/
|
427
|
+
PopoverDirective.prototype.delay;
|
428
|
+
/**
|
429
|
+
* Emits an event when the popover is shown
|
430
|
+
* @type {?}
|
431
|
+
*/
|
432
|
+
PopoverDirective.prototype.onShown;
|
433
|
+
/**
|
434
|
+
* Emits an event when the popover is hidden
|
435
|
+
* @type {?}
|
436
|
+
*/
|
437
|
+
PopoverDirective.prototype.onHidden;
|
438
|
+
/**
|
439
|
+
* @type {?}
|
440
|
+
* @protected
|
441
|
+
*/
|
442
|
+
PopoverDirective.prototype._popoverCancelShowFn;
|
443
|
+
/**
|
444
|
+
* @type {?}
|
445
|
+
* @protected
|
446
|
+
*/
|
447
|
+
PopoverDirective.prototype._delayTimeoutId;
|
448
|
+
/**
|
449
|
+
* @type {?}
|
450
|
+
* @private
|
451
|
+
*/
|
452
|
+
PopoverDirective.prototype._popover;
|
453
|
+
/**
|
454
|
+
* @type {?}
|
455
|
+
* @private
|
456
|
+
*/
|
457
|
+
PopoverDirective.prototype._isInited;
|
458
|
+
/**
|
459
|
+
* @type {?}
|
460
|
+
* @private
|
461
|
+
*/
|
462
|
+
PopoverDirective.prototype._elementRef;
|
463
|
+
/**
|
464
|
+
* @type {?}
|
465
|
+
* @private
|
466
|
+
*/
|
467
|
+
PopoverDirective.prototype._renderer;
|
468
|
+
/**
|
469
|
+
* @type {?}
|
470
|
+
* @private
|
471
|
+
*/
|
472
|
+
PopoverDirective.prototype._positionService;
|
473
|
+
}
|
279
474
|
|
280
475
|
/**
|
281
476
|
* @fileoverview added by tsickle
|
@@ -301,5 +496,15 @@ PopoverModule.decorators = [
|
|
301
496
|
},] }
|
302
497
|
];
|
303
498
|
|
499
|
+
/**
|
500
|
+
* @fileoverview added by tsickle
|
501
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
502
|
+
*/
|
503
|
+
|
504
|
+
/**
|
505
|
+
* @fileoverview added by tsickle
|
506
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
507
|
+
*/
|
508
|
+
|
304
509
|
export { PopoverConfig, PopoverContainerComponent, PopoverDirective, PopoverModule };
|
305
510
|
//# sourceMappingURL=ngx-bootstrap-popover.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-popover.js","sources":["ng://ngx-bootstrap/popover/popover.config.ts","ng://ngx-bootstrap/popover/popover-container.component.ts","ng://ngx-bootstrap/popover/popover.directive.ts","ng://ngx-bootstrap/popover/popover.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n/**\n * Configuration service for the Popover directive.\n * You can inject this service, typically in your root component, and customize\n * the values of its properties in order to provide default values for all the\n * popovers used in the application.\n */\n@Injectable()\nexport class PopoverConfig {\n /** sets disable adaptive position */\n adaptivePosition = true;\n /**\n * Placement of a popover. Accepts: \"top\", \"bottom\", \"left\", \"right\", \"auto\"\n */\n placement = 'top';\n /**\n * Specifies events that should trigger. Supports a space separated list of\n * event names.\n */\n triggers = 'click';\n\n outsideClick = false;\n /**\n * A selector specifying the element the popover should be appended to.\n */\n container: string;\n}\n","import { ChangeDetectionStrategy, Input, Component } from '@angular/core';\nimport { PopoverConfig } from './popover.config';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'popover-container',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // tslint:disable-next-line\n host: {\n '[class]':\n '\"popover in popover-\" + placement + \" \" + \"bs-popover-\" + placement + \" \" + placement + \" \" + containerClass',\n '[class.show]': '!isBs3',\n '[class.bs3]': 'isBs3',\n role: 'tooltip',\n style: 'display:block;'\n },\n styles: [\n `\n :host.bs3.popover-top {\n margin-bottom: 10px;\n }\n :host.bs3.popover.top>.arrow {\n margin-left: -2px;\n }\n :host.bs3.popover.top {\n margin-bottom: 10px;\n }\n :host.popover.bottom>.arrow {\n margin-left: -4px;\n }\n :host.bs3.bs-popover-left {\n margin-right: .5rem;\n }\n :host.bs3.bs-popover-right .arrow, :host.bs3.bs-popover-left .arrow{\n margin: .3rem 0;\n }\n `\n ],\n templateUrl: './popover-container.component.html'\n})\nexport class PopoverContainerComponent {\n @Input() placement: string;\n @Input() title: string;\n containerClass: string;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n constructor(config: PopoverConfig) {\n Object.assign(this, config);\n }\n}\n","import {\n Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output,\n Renderer2, TemplateRef, ViewContainerRef\n} from '@angular/core';\nimport { PopoverConfig } from './popover.config';\nimport { ComponentLoader, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { PopoverContainerComponent } from './popover-container.component';\nimport { PositioningService } from 'ngx-bootstrap/positioning';\n\n/**\n * A lightweight, extensible directive for fancy popover creation.\n */\n@Directive({selector: '[popover]', exportAs: 'bs-popover'})\nexport class PopoverDirective implements OnInit, OnDestroy {\n /** sets disable adaptive position */\n @Input() adaptivePosition: boolean;\n /**\n * Content to be displayed as popover.\n */\n /* tslint:disable-next-line: no-any */\n @Input() popover: string | TemplateRef<any>;\n /**\n * Context to be used if popover is a template.\n */\n /* tslint:disable-next-line: no-any */\n @Input() popoverContext: any;\n /**\n * Title of a popover.\n */\n @Input() popoverTitle: string;\n /**\n * Placement of a popover. Accepts: \"top\", \"bottom\", \"left\", \"right\"\n */\n @Input() placement: 'top' | 'bottom' | 'left' | 'right' | 'auto';\n /**\n * Close popover on outside click\n */\n @Input() outsideClick = false;\n /**\n * Specifies events that should trigger. Supports a space separated list of\n * event names.\n */\n @Input() triggers: string;\n /**\n * A selector specifying the element the popover should be appended to.\n */\n @Input() container: string;\n\n /**\n * Css class for popover container\n */\n @Input() containerClass = '';\n\n /**\n * Returns whether or not the popover is currently being shown\n */\n @Input()\n get isOpen(): boolean {\n return this._popover.isShown;\n }\n\n set isOpen(value: boolean) {\n if (value) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n /**\n * Emits an event when the popover is shown\n */\n /* tslint:disable-next-line: no-any */\n @Output() onShown: EventEmitter<any>;\n /**\n * Emits an event when the popover is hidden\n */\n /* tslint:disable-next-line: no-any */\n @Output() onHidden: EventEmitter<any>;\n\n private _popover: ComponentLoader<PopoverContainerComponent>;\n private _isInited = false;\n\n constructor(\n _config: PopoverConfig,\n _elementRef: ElementRef,\n _renderer: Renderer2,\n _viewContainerRef: ViewContainerRef,\n cis: ComponentLoaderFactory,\n private _positionService: PositioningService\n ) {\n this._popover = cis\n .createLoader<PopoverContainerComponent>(\n _elementRef,\n _viewContainerRef,\n _renderer\n )\n .provide({provide: PopoverConfig, useValue: _config});\n\n Object.assign(this, _config);\n\n this.onShown = this._popover.onShown;\n this.onHidden = this._popover.onHidden;\n\n // fix: no focus on button on Mac OS #1795\n if (typeof window !== 'undefined') {\n _elementRef.nativeElement.addEventListener('click', function () {\n try {\n _elementRef.nativeElement.focus();\n } catch (err) {\n return;\n }\n });\n }\n }\n\n /**\n * Opens an elementâs popover. This is considered a âmanualâ triggering of\n * the popover.\n */\n show(): void {\n if (this._popover.isShown || !this.popover) {\n return;\n }\n\n this._positionService.setOptions({\n modifiers: {\n flip: {\n enabled: this.adaptivePosition\n },\n preventOverflow: {\n enabled: this.adaptivePosition\n }\n }\n });\n\n this._popover\n .attach(PopoverContainerComponent)\n .to(this.container)\n .position({attachment: this.placement})\n .show({\n content: this.popover,\n context: this.popoverContext,\n placement: this.placement,\n title: this.popoverTitle,\n containerClass: this.containerClass\n });\n\n if (!this.adaptivePosition) {\n this._positionService.calcPosition();\n this._positionService.deletePositionElement(this._popover._componentRef.location);\n }\n\n this.isOpen = true;\n }\n\n /**\n * Closes an elementâs popover. This is considered a âmanualâ triggering of\n * the popover.\n */\n hide(): void {\n if (this.isOpen) {\n this._popover.hide();\n this.isOpen = false;\n }\n }\n\n /**\n * Toggles an elementâs popover. This is considered a âmanualâ triggering of\n * the popover.\n */\n toggle(): void {\n if (this.isOpen) {\n return this.hide();\n }\n\n this.show();\n }\n\n ngOnInit(): void {\n // fix: seems there are an issue with `routerLinkActive`\n // which result in duplicated call ngOnInit without call to ngOnDestroy\n // read more: https://github.com/valor-software/ngx-bootstrap/issues/1885\n if (this._isInited) {\n return;\n }\n this._isInited = true;\n\n this._popover.listen({\n triggers: this.triggers,\n outsideClick: this.outsideClick,\n show: () => this.show()\n });\n }\n\n ngOnDestroy(): void {\n this._popover.dispose();\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { PositioningService } from 'ngx-bootstrap/positioning';\nimport { PopoverConfig } from './popover.config';\nimport { PopoverDirective } from './popover.directive';\nimport { PopoverContainerComponent } from './popover-container.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PopoverDirective, PopoverContainerComponent],\n exports: [PopoverDirective],\n entryComponents: [PopoverContainerComponent]\n})\nexport class PopoverModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: PopoverModule,\n providers: [PopoverConfig, ComponentLoaderFactory, PositioningService]\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;AASA,MAAa,aAAa;IAD1B;;;;QAGE,qBAAgB,GAAG,IAAI,CAAC;;;;QAIxB,cAAS,GAAG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AKL,KAAK;sBAiBL,MAAM;uBAKN,MAAM;;;;;;;AC9ET,MAea,aAAa;;;;IACxB,OAAO,OAAO;QACZ,OAAO;YACL,QAAQ,EAAE,aAAa;YACvB,SAAS,EAAE,CAAC,aAAa,EAAE,sBAAsB,EAAE,kBAAkB,CAAC;SACvE,CAAC;KACH;;;YAZF,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;gBAC3D,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,eAAe,EAAE,CAAC,yBAAyB,CAAC;aAC7C;;;;;"}
|
1
|
+
{"version":3,"file":"ngx-bootstrap-popover.js","sources":["ng://ngx-bootstrap/popover/popover.config.ts","ng://ngx-bootstrap/popover/popover-container.component.ts","ng://ngx-bootstrap/popover/popover.directive.ts","ng://ngx-bootstrap/popover/popover.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n/**\n * Configuration service for the Popover directive.\n * You can inject this service, typically in your root component, and customize\n * the values of its properties in order to provide default values for all the\n * popovers used in the application.\n */\n@Injectable()\nexport class PopoverConfig {\n /** sets disable adaptive position */\n adaptivePosition = true;\n /**\n * Placement of a popover. Accepts: \"top\", \"bottom\", \"left\", \"right\", \"auto\"\n */\n placement = 'top';\n /**\n * Specifies events that should trigger. Supports a space separated list of\n * event names.\n */\n triggers = 'click';\n\n outsideClick = false;\n /**\n * A selector specifying the element the popover should be appended to.\n */\n container: string;\n /** delay before showing the tooltip */\n delay = 0;\n}\n","import { ChangeDetectionStrategy, Input, Component } from '@angular/core';\nimport { PopoverConfig } from './popover.config';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'popover-container',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // tslint:disable-next-line\n host: {\n '[class]':\n '\"popover in popover-\" + placement + \" \" + \"bs-popover-\" + placement + \" \" + placement + \" \" + containerClass',\n '[class.show]': '!isBs3',\n '[class.bs3]': 'isBs3',\n role: 'tooltip',\n style: 'display:block;'\n },\n styles: [\n `\n :host.bs3.popover-top {\n margin-bottom: 10px;\n }\n :host.bs3.popover.top>.arrow {\n margin-left: -2px;\n }\n :host.bs3.popover.top {\n margin-bottom: 10px;\n }\n :host.popover.bottom>.arrow {\n margin-left: -4px;\n }\n :host.bs3.bs-popover-left {\n margin-right: .5rem;\n }\n :host.bs3.bs-popover-right .arrow, :host.bs3.bs-popover-left .arrow{\n margin: .3rem 0;\n }\n `\n ],\n templateUrl: './popover-container.component.html'\n})\nexport class PopoverContainerComponent {\n @Input() placement: string;\n @Input() title: string;\n containerClass: string;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n constructor(config: PopoverConfig) {\n Object.assign(this, config);\n }\n}\n","import {\n Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output,\n Renderer2, TemplateRef, ViewContainerRef\n} from '@angular/core';\nimport { PopoverConfig } from './popover.config';\nimport { ComponentLoader, ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { PopoverContainerComponent } from './popover-container.component';\nimport { PositioningService } from 'ngx-bootstrap/positioning';\nimport { timer } from 'rxjs';\nimport { parseTriggers, Trigger } from 'ngx-bootstrap/utils';\n\n/**\n * A lightweight, extensible directive for fancy popover creation.\n */\n@Directive({selector: '[popover]', exportAs: 'bs-popover'})\nexport class PopoverDirective implements OnInit, OnDestroy {\n /** sets disable adaptive position */\n @Input() adaptivePosition: boolean;\n /**\n * Content to be displayed as popover.\n */\n /* tslint:disable-next-line: no-any */\n @Input() popover: string | TemplateRef<any>;\n /**\n * Context to be used if popover is a template.\n */\n /* tslint:disable-next-line: no-any */\n @Input() popoverContext: any;\n /**\n * Title of a popover.\n */\n @Input() popoverTitle: string;\n /**\n * Placement of a popover. Accepts: \"top\", \"bottom\", \"left\", \"right\"\n */\n @Input() placement: 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top left' | 'top right' |\n 'right top' | 'right bottom' | 'bottom right' | 'bottom left' | 'left bottom' | 'left top';\n /**\n * Close popover on outside click\n */\n @Input() outsideClick = false;\n /**\n * Specifies events that should trigger. Supports a space separated list of\n * event names.\n */\n @Input() triggers: string;\n /**\n * A selector specifying the element the popover should be appended to.\n */\n @Input() container: string;\n\n /**\n * Css class for popover container\n */\n @Input() containerClass = '';\n\n /**\n * Returns whether or not the popover is currently being shown\n */\n @Input()\n get isOpen(): boolean {\n return this._popover.isShown;\n }\n\n set isOpen(value: boolean) {\n if (value) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n /**\n * Delay before showing the tooltip\n */\n @Input() delay: number;\n\n /**\n * Emits an event when the popover is shown\n */\n /* tslint:disable-next-line: no-any */\n @Output() onShown: EventEmitter<any>;\n /**\n * Emits an event when the popover is hidden\n */\n /* tslint:disable-next-line: no-any */\n @Output() onHidden: EventEmitter<any>;\n\n protected _popoverCancelShowFn: Function;\n\n protected _delayTimeoutId: number | any;\n\n private _popover: ComponentLoader<PopoverContainerComponent>;\n private _isInited = false;\n\n constructor(\n _config: PopoverConfig,\n private _elementRef: ElementRef,\n private _renderer: Renderer2,\n _viewContainerRef: ViewContainerRef,\n cis: ComponentLoaderFactory,\n private _positionService: PositioningService\n ) {\n this._popover = cis\n .createLoader<PopoverContainerComponent>(\n _elementRef,\n _viewContainerRef,\n _renderer\n )\n .provide({provide: PopoverConfig, useValue: _config});\n\n Object.assign(this, _config);\n\n this.onShown = this._popover.onShown;\n this.onHidden = this._popover.onHidden;\n\n // fix: no focus on button on Mac OS #1795\n if (typeof window !== 'undefined') {\n _elementRef.nativeElement.addEventListener('click', function () {\n try {\n _elementRef.nativeElement.focus();\n } catch (err) {\n return;\n }\n });\n }\n }\n\n /**\n * Opens an elementâs popover. This is considered a âmanualâ triggering of\n * the popover.\n */\n show(): void {\n if (this._popover.isShown || !this.popover || this._delayTimeoutId) {\n return;\n }\n\n this._positionService.setOptions({\n modifiers: {\n flip: {\n enabled: this.adaptivePosition\n },\n preventOverflow: {\n enabled: this.adaptivePosition\n }\n }\n });\n\n const showPopover = () => {\n if (this._delayTimeoutId) {\n this._delayTimeoutId = undefined;\n }\n\n this._popover\n .attach(PopoverContainerComponent)\n .to(this.container)\n .position({attachment: this.placement})\n .show({\n content: this.popover,\n context: this.popoverContext,\n placement: this.placement,\n title: this.popoverTitle,\n containerClass: this.containerClass\n });\n\n if (!this.adaptivePosition) {\n this._positionService.calcPosition();\n this._positionService.deletePositionElement(this._popover._componentRef.location);\n }\n\n this.isOpen = true;\n };\n\n const cancelDelayedTooltipShowing = () => {\n if (this._popoverCancelShowFn) {\n this._popoverCancelShowFn();\n }\n };\n\n if (this.delay) {\n const _timer = timer(this.delay).subscribe(() => {\n showPopover();\n cancelDelayedTooltipShowing();\n });\n\n if (this.triggers) {\n parseTriggers(this.triggers)\n .forEach((trigger: Trigger) => {\n this._popoverCancelShowFn = this._renderer.listen(\n this._elementRef.nativeElement,\n trigger.close,\n () => {\n _timer.unsubscribe();\n cancelDelayedTooltipShowing();\n }\n );\n });\n }\n } else {\n showPopover();\n }\n }\n\n /**\n * Closes an elementâs popover. This is considered a âmanualâ triggering of\n * the popover.\n */\n hide(): void {\n if (this._delayTimeoutId) {\n clearTimeout(this._delayTimeoutId);\n this._delayTimeoutId = undefined;\n }\n\n if (this.isOpen) {\n this._popover.hide();\n this.isOpen = false;\n }\n }\n\n /**\n * Toggles an elementâs popover. This is considered a âmanualâ triggering of\n * the popover.\n */\n toggle(): void {\n if (this.isOpen) {\n return this.hide();\n }\n\n this.show();\n }\n\n ngOnInit(): void {\n // fix: seems there are an issue with `routerLinkActive`\n // which result in duplicated call ngOnInit without call to ngOnDestroy\n // read more: https://github.com/valor-software/ngx-bootstrap/issues/1885\n if (this._isInited) {\n return;\n }\n this._isInited = true;\n\n this._popover.listen({\n triggers: this.triggers,\n outsideClick: this.outsideClick,\n show: () => this.show()\n });\n }\n\n ngOnDestroy(): void {\n this._popover.dispose();\n }\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';\nimport { PositioningService } from 'ngx-bootstrap/positioning';\nimport { PopoverConfig } from './popover.config';\nimport { PopoverDirective } from './popover.directive';\nimport { PopoverContainerComponent } from './popover-container.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PopoverDirective, PopoverContainerComponent],\n exports: [PopoverDirective],\n entryComponents: [PopoverContainerComponent]\n})\nexport class PopoverModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: PopoverModule,\n providers: [PopoverConfig, ComponentLoaderFactory, PositioningService]\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MASa,aAAa;IAD1B;;;;QAGE,qBAAgB,GAAG,IAAI,CAAC;;;;QAIxB,cAAS,GAAG,KAAK,CAAC;;;;;QAKlB,aAAQ,GAAG,OAAO,CAAC;QAEnB,iBAAY,GAAG,KAAK,CAAC;;;;QAMrB,UAAK,GAAG,CAAC,CAAC;KACX;;;YArBA,UAAU;;;;;;;IAGT,yCAAwB;;;;;IAIxB,kCAAkB;;;;;;IAKlB,iCAAmB;;IAEnB,qCAAqB;;;;;IAIrB,kCAAkB;;;;;IAElB,8BAAU;;;;;;;AC5BZ,MAwCa,yBAAyB;;;;IASpC,YAAY,MAAqB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC7B;;;;IAND,IAAI,KAAK;QACP,OAAO,KAAK,EAAE,CAAC;KAChB;;;YA3CF,SAAS,SAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,eAAe,EAAE,uBAAuB,CAAC,MAAM;;gBAE/C,IAAI,EAAE;oBACJ,SAAS,EACP,8GAA8G;oBAChH,cAAc,EAAE,QAAQ;oBACxB,aAAa,EAAE,OAAO;oBACtB,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,gBAAgB;iBACxB;gBAuBD,uNAAiD;yBArB/C;;;;;;;;;;;;;;;;;;;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AAC;gBAC3D,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,eAAe,EAAE,CAAC,yBAAyB,CAAC;aAC7C;;;;;;;;;;;;;;;"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { Injectable, Component, ChangeDetectionStrategy, Input, Directive, ElementRef, Renderer2, ViewContainerRef, Output, NgModule } from '@angular/core';
|
2
2
|
import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
3
|
-
import { isBs3 } from 'ngx-bootstrap/utils';
|
3
|
+
import { isBs3, parseTriggers } from 'ngx-bootstrap/utils';
|
4
4
|
import { PositioningService } from 'ngx-bootstrap/positioning';
|
5
|
+
import { timer } from 'rxjs';
|
5
6
|
import { CommonModule } from '@angular/common';
|
6
7
|
|
7
8
|
/**
|
@@ -30,12 +31,46 @@ var PopoverConfig = /** @class */ (function () {
|
|
30
31
|
*/
|
31
32
|
this.triggers = 'click';
|
32
33
|
this.outsideClick = false;
|
34
|
+
/**
|
35
|
+
* delay before showing the tooltip
|
36
|
+
*/
|
37
|
+
this.delay = 0;
|
33
38
|
}
|
34
39
|
PopoverConfig.decorators = [
|
35
40
|
{ type: Injectable }
|
36
41
|
];
|
37
42
|
return PopoverConfig;
|
38
43
|
}());
|
44
|
+
if (false) {
|
45
|
+
/**
|
46
|
+
* sets disable adaptive position
|
47
|
+
* @type {?}
|
48
|
+
*/
|
49
|
+
PopoverConfig.prototype.adaptivePosition;
|
50
|
+
/**
|
51
|
+
* Placement of a popover. Accepts: "top", "bottom", "left", "right", "auto"
|
52
|
+
* @type {?}
|
53
|
+
*/
|
54
|
+
PopoverConfig.prototype.placement;
|
55
|
+
/**
|
56
|
+
* Specifies events that should trigger. Supports a space separated list of
|
57
|
+
* event names.
|
58
|
+
* @type {?}
|
59
|
+
*/
|
60
|
+
PopoverConfig.prototype.triggers;
|
61
|
+
/** @type {?} */
|
62
|
+
PopoverConfig.prototype.outsideClick;
|
63
|
+
/**
|
64
|
+
* A selector specifying the element the popover should be appended to.
|
65
|
+
* @type {?}
|
66
|
+
*/
|
67
|
+
PopoverConfig.prototype.container;
|
68
|
+
/**
|
69
|
+
* delay before showing the tooltip
|
70
|
+
* @type {?}
|
71
|
+
*/
|
72
|
+
PopoverConfig.prototype.delay;
|
73
|
+
}
|
39
74
|
|
40
75
|
/**
|
41
76
|
* @fileoverview added by tsickle
|
@@ -81,6 +116,14 @@ var PopoverContainerComponent = /** @class */ (function () {
|
|
81
116
|
};
|
82
117
|
return PopoverContainerComponent;
|
83
118
|
}());
|
119
|
+
if (false) {
|
120
|
+
/** @type {?} */
|
121
|
+
PopoverContainerComponent.prototype.placement;
|
122
|
+
/** @type {?} */
|
123
|
+
PopoverContainerComponent.prototype.title;
|
124
|
+
/** @type {?} */
|
125
|
+
PopoverContainerComponent.prototype.containerClass;
|
126
|
+
}
|
84
127
|
|
85
128
|
/**
|
86
129
|
* @fileoverview added by tsickle
|
@@ -91,6 +134,8 @@ var PopoverContainerComponent = /** @class */ (function () {
|
|
91
134
|
*/
|
92
135
|
var PopoverDirective = /** @class */ (function () {
|
93
136
|
function PopoverDirective(_config, _elementRef, _renderer, _viewContainerRef, cis, _positionService) {
|
137
|
+
this._elementRef = _elementRef;
|
138
|
+
this._renderer = _renderer;
|
94
139
|
this._positionService = _positionService;
|
95
140
|
/**
|
96
141
|
* Close popover on outside click
|
@@ -163,7 +208,8 @@ var PopoverDirective = /** @class */ (function () {
|
|
163
208
|
* @return {?}
|
164
209
|
*/
|
165
210
|
function () {
|
166
|
-
|
211
|
+
var _this = this;
|
212
|
+
if (this._popover.isShown || !this.popover || this._delayTimeoutId) {
|
167
213
|
return;
|
168
214
|
}
|
169
215
|
this._positionService.setOptions({
|
@@ -176,22 +222,69 @@ var PopoverDirective = /** @class */ (function () {
|
|
176
222
|
}
|
177
223
|
}
|
178
224
|
});
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
225
|
+
/** @type {?} */
|
226
|
+
var showPopover = (/**
|
227
|
+
* @return {?}
|
228
|
+
*/
|
229
|
+
function () {
|
230
|
+
if (_this._delayTimeoutId) {
|
231
|
+
_this._delayTimeoutId = undefined;
|
232
|
+
}
|
233
|
+
_this._popover
|
234
|
+
.attach(PopoverContainerComponent)
|
235
|
+
.to(_this.container)
|
236
|
+
.position({ attachment: _this.placement })
|
237
|
+
.show({
|
238
|
+
content: _this.popover,
|
239
|
+
context: _this.popoverContext,
|
240
|
+
placement: _this.placement,
|
241
|
+
title: _this.popoverTitle,
|
242
|
+
containerClass: _this.containerClass
|
243
|
+
});
|
244
|
+
if (!_this.adaptivePosition) {
|
245
|
+
_this._positionService.calcPosition();
|
246
|
+
_this._positionService.deletePositionElement(_this._popover._componentRef.location);
|
247
|
+
}
|
248
|
+
_this.isOpen = true;
|
189
249
|
});
|
190
|
-
|
191
|
-
|
192
|
-
|
250
|
+
/** @type {?} */
|
251
|
+
var cancelDelayedTooltipShowing = (/**
|
252
|
+
* @return {?}
|
253
|
+
*/
|
254
|
+
function () {
|
255
|
+
if (_this._popoverCancelShowFn) {
|
256
|
+
_this._popoverCancelShowFn();
|
257
|
+
}
|
258
|
+
});
|
259
|
+
if (this.delay) {
|
260
|
+
/** @type {?} */
|
261
|
+
var _timer_1 = timer(this.delay).subscribe((/**
|
262
|
+
* @return {?}
|
263
|
+
*/
|
264
|
+
function () {
|
265
|
+
showPopover();
|
266
|
+
cancelDelayedTooltipShowing();
|
267
|
+
}));
|
268
|
+
if (this.triggers) {
|
269
|
+
parseTriggers(this.triggers)
|
270
|
+
.forEach((/**
|
271
|
+
* @param {?} trigger
|
272
|
+
* @return {?}
|
273
|
+
*/
|
274
|
+
function (trigger) {
|
275
|
+
_this._popoverCancelShowFn = _this._renderer.listen(_this._elementRef.nativeElement, trigger.close, (/**
|
276
|
+
* @return {?}
|
277
|
+
*/
|
278
|
+
function () {
|
279
|
+
_timer_1.unsubscribe();
|
280
|
+
cancelDelayedTooltipShowing();
|
281
|
+
}));
|
282
|
+
}));
|
283
|
+
}
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
showPopover();
|
193
287
|
}
|
194
|
-
this.isOpen = true;
|
195
288
|
};
|
196
289
|
/**
|
197
290
|
* Closes an element’s popover. This is considered a “manual” triggering of
|
@@ -208,6 +301,10 @@ var PopoverDirective = /** @class */ (function () {
|
|
208
301
|
* @return {?}
|
209
302
|
*/
|
210
303
|
function () {
|
304
|
+
if (this._delayTimeoutId) {
|
305
|
+
clearTimeout(this._delayTimeoutId);
|
306
|
+
this._delayTimeoutId = undefined;
|
307
|
+
}
|
211
308
|
if (this.isOpen) {
|
212
309
|
this._popover.hide();
|
213
310
|
this.isOpen = false;
|
@@ -289,11 +386,110 @@ var PopoverDirective = /** @class */ (function () {
|
|
289
386
|
container: [{ type: Input }],
|
290
387
|
containerClass: [{ type: Input }],
|
291
388
|
isOpen: [{ type: Input }],
|
389
|
+
delay: [{ type: Input }],
|
292
390
|
onShown: [{ type: Output }],
|
293
391
|
onHidden: [{ type: Output }]
|
294
392
|
};
|
295
393
|
return PopoverDirective;
|
296
394
|
}());
|
395
|
+
if (false) {
|
396
|
+
/**
|
397
|
+
* sets disable adaptive position
|
398
|
+
* @type {?}
|
399
|
+
*/
|
400
|
+
PopoverDirective.prototype.adaptivePosition;
|
401
|
+
/**
|
402
|
+
* Content to be displayed as popover.
|
403
|
+
* @type {?}
|
404
|
+
*/
|
405
|
+
PopoverDirective.prototype.popover;
|
406
|
+
/**
|
407
|
+
* Context to be used if popover is a template.
|
408
|
+
* @type {?}
|
409
|
+
*/
|
410
|
+
PopoverDirective.prototype.popoverContext;
|
411
|
+
/**
|
412
|
+
* Title of a popover.
|
413
|
+
* @type {?}
|
414
|
+
*/
|
415
|
+
PopoverDirective.prototype.popoverTitle;
|
416
|
+
/**
|
417
|
+
* Placement of a popover. Accepts: "top", "bottom", "left", "right"
|
418
|
+
* @type {?}
|
419
|
+
*/
|
420
|
+
PopoverDirective.prototype.placement;
|
421
|
+
/**
|
422
|
+
* Close popover on outside click
|
423
|
+
* @type {?}
|
424
|
+
*/
|
425
|
+
PopoverDirective.prototype.outsideClick;
|
426
|
+
/**
|
427
|
+
* Specifies events that should trigger. Supports a space separated list of
|
428
|
+
* event names.
|
429
|
+
* @type {?}
|
430
|
+
*/
|
431
|
+
PopoverDirective.prototype.triggers;
|
432
|
+
/**
|
433
|
+
* A selector specifying the element the popover should be appended to.
|
434
|
+
* @type {?}
|
435
|
+
*/
|
436
|
+
PopoverDirective.prototype.container;
|
437
|
+
/**
|
438
|
+
* Css class for popover container
|
439
|
+
* @type {?}
|
440
|
+
*/
|
441
|
+
PopoverDirective.prototype.containerClass;
|
442
|
+
/**
|
443
|
+
* Delay before showing the tooltip
|
444
|
+
* @type {?}
|
445
|
+
*/
|
446
|
+
PopoverDirective.prototype.delay;
|
447
|
+
/**
|
448
|
+
* Emits an event when the popover is shown
|
449
|
+
* @type {?}
|
450
|
+
*/
|
451
|
+
PopoverDirective.prototype.onShown;
|
452
|
+
/**
|
453
|
+
* Emits an event when the popover is hidden
|
454
|
+
* @type {?}
|
455
|
+
*/
|
456
|
+
PopoverDirective.prototype.onHidden;
|
457
|
+
/**
|
458
|
+
* @type {?}
|
459
|
+
* @protected
|
460
|
+
*/
|
461
|
+
PopoverDirective.prototype._popoverCancelShowFn;
|
462
|
+
/**
|
463
|
+
* @type {?}
|
464
|
+
* @protected
|
465
|
+
*/
|
466
|
+
PopoverDirective.prototype._delayTimeoutId;
|
467
|
+
/**
|
468
|
+
* @type {?}
|
469
|
+
* @private
|
470
|
+
*/
|
471
|
+
PopoverDirective.prototype._popover;
|
472
|
+
/**
|
473
|
+
* @type {?}
|
474
|
+
* @private
|
475
|
+
*/
|
476
|
+
PopoverDirective.prototype._isInited;
|
477
|
+
/**
|
478
|
+
* @type {?}
|
479
|
+
* @private
|
480
|
+
*/
|
481
|
+
PopoverDirective.prototype._elementRef;
|
482
|
+
/**
|
483
|
+
* @type {?}
|
484
|
+
* @private
|
485
|
+
*/
|
486
|
+
PopoverDirective.prototype._renderer;
|
487
|
+
/**
|
488
|
+
* @type {?}
|
489
|
+
* @private
|
490
|
+
*/
|
491
|
+
PopoverDirective.prototype._positionService;
|
492
|
+
}
|
297
493
|
|
298
494
|
/**
|
299
495
|
* @fileoverview added by tsickle
|
@@ -325,5 +521,15 @@ var PopoverModule = /** @class */ (function () {
|
|
325
521
|
return PopoverModule;
|
326
522
|
}());
|
327
523
|
|
524
|
+
/**
|
525
|
+
* @fileoverview added by tsickle
|
526
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
527
|
+
*/
|
528
|
+
|
529
|
+
/**
|
530
|
+
* @fileoverview added by tsickle
|
531
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
532
|
+
*/
|
533
|
+
|
328
534
|
export { PopoverConfig, PopoverContainerComponent, PopoverDirective, PopoverModule };
|
329
535
|
//# sourceMappingURL=ngx-bootstrap-popover.js.map
|