ngx-bootstrap 5.4.0 → 5.6.2
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 +138 -99
- 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 +4 -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 +26 -0
- 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 +2116 -106
- 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 +18 -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 +36 -2
- 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 +25 -6
- package/datepicker/esm2015/reducer/bs-datepicker.state.js +5 -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 +26 -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 +36 -2
- 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 +25 -6
- package/datepicker/esm5/reducer/bs-datepicker.state.js +5 -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 +1958 -91
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.js.map +1 -1
- package/datepicker/fesm5/ngx-bootstrap-datepicker.js +1989 -93
- 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 +2 -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 +395 -5
- 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/esm2015/bs-dropdown.directive.js +8 -3
- package/dropdown/esm5/bs-dropdown-container.component.js +2 -2
- package/dropdown/esm5/bs-dropdown.directive.js +9 -3
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.js +241 -3
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.js.map +1 -1
- package/dropdown/fesm5/ngx-bootstrap-dropdown.js +242 -3
- 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 +355 -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 +47 -10
- package/tooltip/esm5/tooltip.directive.js +50 -10
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.js +200 -7
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.js.map +1 -1
- package/tooltip/fesm5/ngx-bootstrap-tooltip.js +203 -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 +719 -43
- 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 +52 -11
- 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 +59 -11
- 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 +550 -37
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.js.map +1 -1
- package/typeahead/fesm5/ngx-bootstrap-typeahead.js +567 -43
- 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 +10 -5
- 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 +1 @@
|
|
1
|
-
{"version":3,"sources":["ng://ngx-bootstrap/progressbar/progressbar.config.ts","ng://ngx-bootstrap/progressbar/progressbar.component.ts","ng://ngx-bootstrap/progressbar/bar.component.ts","ng://ngx-bootstrap/progressbar/progressbar.module.ts"],"names":["ProgressbarConfig","this","animate","max","Injectable","ProgressbarComponent","config","isStacked","addClass","bars","_max","Object","assign","defineProperty","prototype","value","_animate","forEach","b","_striped","striped","Array","isArray","_value","isBs3","v","bar","recalculatePercentage","addBar","push","removeBar","splice","indexOf","Component","args","selector","template","Input","HostBinding","type","BarComponent","el","progress","renderer","percent","_type","applyTypeClasses","ngOnInit","ngOnDestroy","toFixed","totalPercentage","reduce","total","_prevType","barTypeClass","bgClass","removeClass","nativeElement","host","role","aria-valuemin","[class.progress-bar-animated]","[class.progress-bar-striped]","[class.active]","[attr.aria-valuenow]","[attr.aria-valuetext]","[attr.aria-valuemax]","[style.height.%]","ElementRef","decorators","Host","Renderer2","ProgressbarModule","forRoot","ngModule","providers","NgModule","imports","CommonModule","declarations","exports"],"mappings":"gdAAA,IAAAA,EAAA,WAEA,SAAAA,IAGEC,KAAAC,SAAmB,EAEnBD,KAAAE,IAAM,IACR,2BANCC,EAAAA,aAMDJ,EARA,GCAAK,EAAA,WA6EE,SAAAA,EAAYC,GA9BZL,KAAAM,WAAY,EAuBmBN,KAAAO,UAAW,EAG1CP,KAAAQ,KAAuB,GAEbR,KAAAS,KAAO,IAGfC,OAAOC,OAAOX,KAAMK,GAYxB,OAtEEK,OAA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gB,cAAeH,GAC9CrD,KAAK0C,SAASnC,SAASP,KAAKwC,GAAGgB,cAAeF,GAC9CtD,KAAKoD,UAAYpD,KAAK4C,4BA5G3BZ,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,MACVC,SAAA,8BACAsB,KAAM,CACJC,KAAM,cACNC,gBAAiB,IACjBC,gCAAiC,oBACjCC,+BAAgC,UAChCC,iBAAkB,mBAClBC,uBAAwB,QACxBC,wBAAyB,0CACzBC,uBAAwB,MACxBC,mBAAoB,sDArBtBC,EAAAA,kBAIO/D,EAAoBgE,WAAA,CAAA,CAAA9B,KAwExB+B,EAAAA,cA3EHC,EAAAA,2CA2BClC,EAAAA,qBAWAA,EAAAA,2BAaAC,EAAAA,YAAWJ,KAAA,CAAC,mCAOZI,EAAAA,YAAWJ,KAAA,CAAC,yBA6DfM,EA/GA,GChBAgC,EAAA,WAOA,SAAAA,KASA,OAHSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAmBG,UAAW,CAAC3E,yBAPrD4E,EAAAA,SAAQ1C,KAAA,CAAC,CACR2C,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACvC,EAAcnC,GAC7B2E,QAAS,CAACxC,EAAcnC,OAM1BmE,EAhBA","sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate: Boolean = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { ProgressbarConfig } from './progressbar.config';\nimport { ProgressbarType } from './progressbar-type.interface';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { BarComponent } from './bar.component';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n styles: [\n `\n :host {\n width: 100%;\n display: flex;\n }\n `\n ]\n})\nexport class ProgressbarComponent {\n /** if `true` changing value of progress bar will be animated */\n @Input()\n set animate(value: boolean) {\n this._animate = value;\n this.bars.forEach((b: BarComponent) => {\n b.animate = value;\n });\n }\n /** If `true`, striped classes are applied */\n @Input()\n set striped(value: boolean) {\n this._striped = value;\n this.bars.forEach((b: BarComponent) => {\n b.striped = value;\n });\n }\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: ProgressbarType;\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n /* tslint:disable-next-line:no-any */\n set value(value: number | any[]) {\n this.isStacked = Array.isArray(value);\n this._value = value;\n }\n isStacked = false;\n _striped: boolean;\n _animate: boolean;\n /* tslint:disable-next-line:no-any */\n _value: number | any[];\n get isBs3(): boolean {\n return isBs3();\n }\n\n /** maximum total value of progress element */\n @HostBinding('attr.max')\n @Input()\n get max(): number {\n return this._max;\n }\n\n set max(v: number) {\n this._max = v;\n this.bars.forEach((bar: BarComponent) => {\n bar.recalculatePercentage();\n });\n }\n\n @HostBinding('class.progress') addClass = true;\n\n /* tslint:disable-next-line:no-any */\n bars: BarComponent[] = [];\n\n protected _max = 100;\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n addBar(bar: BarComponent): void {\n bar.animate = this._animate;\n bar.striped = this._striped;\n\n this.bars.push(bar);\n }\n\n removeBar(bar: BarComponent): void {\n this.bars.splice(this.bars.indexOf(bar), 1);\n }\n}\n","import {\n Component,\n Host,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n ElementRef,\n Renderer2\n} from '@angular/core';\n\nimport { ProgressbarComponent } from './progressbar.component';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n// todo: number pipe\n// todo: use query from progress?\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"'\n }\n})\nexport class BarComponent implements OnInit, OnDestroy {\n max: number;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input()\n get type(): string {\n return this._type;\n }\n\n set type(v: string) {\n this._type = v;\n this.applyTypeClasses();\n }\n\n /** current value of progress bar */\n @Input()\n get value(): number {\n return this._value;\n }\n\n set value(v: number) {\n if (!v && v !== 0) {\n return;\n }\n this._value = v;\n this.recalculatePercentage();\n }\n\n @HostBinding('style.width.%')\n get setBarWidth() {\n this.recalculatePercentage();\n\n return this.percent;\n }\n\n @HostBinding('class.progress-bar') addClass = true;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n striped: boolean;\n animate: boolean;\n percent = 0;\n progress: ProgressbarComponent;\n\n protected _value: number;\n protected _type: string;\n private _prevType: string;\n\n constructor(\n private el: ElementRef,\n @Host() progress: ProgressbarComponent,\n private renderer: Renderer2\n ) {\n this.progress = progress;\n }\n\n ngOnInit(): void {\n this.progress.addBar(this);\n }\n\n ngOnDestroy(): void {\n this.progress.removeBar(this);\n }\n\n recalculatePercentage(): void {\n this.percent = +(this.value / this.progress.max * 100).toFixed(2);\n\n const totalPercentage = this.progress.bars\n .reduce(function (total: number, bar: BarComponent): number {\n return total + bar.percent;\n }, 0);\n\n if (totalPercentage > 100) {\n this.percent -= totalPercentage - 100;\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = null;\n }\n\n if (this._type) {\n const barTypeClass = `progress-bar-${this._type}`;\n const bgClass = `bg-${this._type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this._type;\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: ProgressbarModule, providers: [ProgressbarConfig] };\n }\n}\n"]}
|
1
|
+
{"version":3,"sources":["ng://ngx-bootstrap/progressbar/progressbar.config.ts","ng://ngx-bootstrap/progressbar/progressbar.component.ts","ng://ngx-bootstrap/progressbar/bar.component.ts","ng://ngx-bootstrap/progressbar/progressbar.module.ts"],"names":["ProgressbarConfig","this","animate","max","Injectable","ProgressbarComponent","config","isStacked","addClass","bars","_max","Object","assign","defineProperty","prototype","value","_animate","forEach","b","_striped","striped","Array","isArray","_value","isBs3","v","bar","recalculatePercentage","addBar","push","removeBar","splice","indexOf","Component","args","selector","template","Input","HostBinding","type","BarComponent","el","progress","renderer","percent","_type","applyTypeClasses","ngOnInit","ngOnDestroy","toFixed","totalPercentage","reduce","total","_prevType","barTypeClass","bgClass","removeClass","nativeElement","host","role","aria-valuemin","[class.progress-bar-animated]","[class.progress-bar-striped]","[class.active]","[attr.aria-valuenow]","[attr.aria-valuetext]","[attr.aria-valuemax]","[style.height.%]","ElementRef","decorators","Host","Renderer2","ProgressbarModule","forRoot","ngModule","providers","NgModule","imports","CommonModule","declarations","exports"],"mappings":"keAEA,SAAAA,IAGEC,KAAAC,SAAmB,EAEnBD,KAAAE,IAAM,IACR,2BANCC,EAAAA,aAMDJ,sBCqEE,SAAAK,EAAYC,GA9BZL,KAAAM,WAAY,EAuBmBN,KAAAO,UAAW,EAG1CP,KAAAQ,KAAuB,GAEbR,KAAAS,KAAO,IAGfC,OAAOC,OAAOX,KAAMK,GAYxB,OAtEEK,OAAAE,eACIR,EAAAS,UAAA,UAAO,K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AAGgB,cAAeF,GAC9CtD,KAAKoD,UAAYpD,KAAK4C,4BA5G3BZ,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,MACVC,SAAA,8BACAsB,KAAM,CACJC,KAAM,cACNC,gBAAiB,IACjBC,gCAAiC,oBACjCC,+BAAgC,UAChCC,iBAAkB,mBAClBC,uBAAwB,QACxBC,wBAAyB,0CACzBC,uBAAwB,MACxBC,mBAAoB,sDArBtBC,EAAAA,kBAIO/D,EAAoBgE,WAAA,CAAA,CAAA9B,KAwExB+B,EAAAA,cA3EHC,EAAAA,2CA2BClC,EAAAA,qBAWAA,EAAAA,2BAaAC,EAAAA,YAAWJ,KAAA,CAAC,mCAOZI,EAAAA,YAAWJ,KAAA,CAAC,yBA6DfM,sBCxHA,SAAAgC,KASA,OAHSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAmBG,UAAW,CAAC3E,yBAPrD4E,EAAAA,SAAQ1C,KAAA,CAAC,CACR2C,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACvC,EAAcnC,GAC7B2E,QAAS,CAACxC,EAAcnC,OAM1BmE","sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate: Boolean = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { ProgressbarConfig } from './progressbar.config';\nimport { ProgressbarType } from './progressbar-type.interface';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { BarComponent } from './bar.component';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n styles: [\n `\n :host {\n width: 100%;\n display: flex;\n }\n `\n ]\n})\nexport class ProgressbarComponent {\n /** if `true` changing value of progress bar will be animated */\n @Input()\n set animate(value: boolean) {\n this._animate = value;\n this.bars.forEach((b: BarComponent) => {\n b.animate = value;\n });\n }\n /** If `true`, striped classes are applied */\n @Input()\n set striped(value: boolean) {\n this._striped = value;\n this.bars.forEach((b: BarComponent) => {\n b.striped = value;\n });\n }\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: ProgressbarType;\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n /* tslint:disable-next-line:no-any */\n set value(value: number | any[]) {\n this.isStacked = Array.isArray(value);\n this._value = value;\n }\n isStacked = false;\n _striped: boolean;\n _animate: boolean;\n /* tslint:disable-next-line:no-any */\n _value: number | any[];\n get isBs3(): boolean {\n return isBs3();\n }\n\n /** maximum total value of progress element */\n @HostBinding('attr.max')\n @Input()\n get max(): number {\n return this._max;\n }\n\n set max(v: number) {\n this._max = v;\n this.bars.forEach((bar: BarComponent) => {\n bar.recalculatePercentage();\n });\n }\n\n @HostBinding('class.progress') addClass = true;\n\n /* tslint:disable-next-line:no-any */\n bars: BarComponent[] = [];\n\n protected _max = 100;\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n addBar(bar: BarComponent): void {\n bar.animate = this._animate;\n bar.striped = this._striped;\n\n this.bars.push(bar);\n }\n\n removeBar(bar: BarComponent): void {\n this.bars.splice(this.bars.indexOf(bar), 1);\n }\n}\n","import {\n Component,\n Host,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n ElementRef,\n Renderer2\n} from '@angular/core';\n\nimport { ProgressbarComponent } from './progressbar.component';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n// todo: number pipe\n// todo: use query from progress?\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"'\n }\n})\nexport class BarComponent implements OnInit, OnDestroy {\n max: number;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input()\n get type(): string {\n return this._type;\n }\n\n set type(v: string) {\n this._type = v;\n this.applyTypeClasses();\n }\n\n /** current value of progress bar */\n @Input()\n get value(): number {\n return this._value;\n }\n\n set value(v: number) {\n if (!v && v !== 0) {\n return;\n }\n this._value = v;\n this.recalculatePercentage();\n }\n\n @HostBinding('style.width.%')\n get setBarWidth() {\n this.recalculatePercentage();\n\n return this.percent;\n }\n\n @HostBinding('class.progress-bar') addClass = true;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n striped: boolean;\n animate: boolean;\n percent = 0;\n progress: ProgressbarComponent;\n\n protected _value: number;\n protected _type: string;\n private _prevType: string;\n\n constructor(\n private el: ElementRef,\n @Host() progress: ProgressbarComponent,\n private renderer: Renderer2\n ) {\n this.progress = progress;\n }\n\n ngOnInit(): void {\n this.progress.addBar(this);\n }\n\n ngOnDestroy(): void {\n this.progress.removeBar(this);\n }\n\n recalculatePercentage(): void {\n this.percent = +(this.value / this.progress.max * 100).toFixed(2);\n\n const totalPercentage = this.progress.bars\n .reduce(function (total: number, bar: BarComponent): number {\n return total + bar.percent;\n }, 0);\n\n if (totalPercentage > 100) {\n this.percent -= totalPercentage - 100;\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = null;\n }\n\n if (this._type) {\n const barTypeClass = `progress-bar-${this._type}`;\n const bgClass = `bg-${this._type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this._type;\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: ProgressbarModule, providers: [ProgressbarConfig] };\n }\n}\n"]}
|
@@ -21,6 +21,18 @@ class ProgressbarConfig {
|
|
21
21
|
ProgressbarConfig.decorators = [
|
22
22
|
{ type: Injectable }
|
23
23
|
];
|
24
|
+
if (false) {
|
25
|
+
/**
|
26
|
+
* if `true` changing value of progress bar will be animated
|
27
|
+
* @type {?}
|
28
|
+
*/
|
29
|
+
ProgressbarConfig.prototype.animate;
|
30
|
+
/**
|
31
|
+
* maximum total value of progress element
|
32
|
+
* @type {?}
|
33
|
+
*/
|
34
|
+
ProgressbarConfig.prototype.max;
|
35
|
+
}
|
24
36
|
|
25
37
|
/**
|
26
38
|
* @fileoverview added by tsickle
|
@@ -146,6 +158,30 @@ ProgressbarComponent.propDecorators = {
|
|
146
158
|
max: [{ type: HostBinding, args: ['attr.max',] }, { type: Input }],
|
147
159
|
addClass: [{ type: HostBinding, args: ['class.progress',] }]
|
148
160
|
};
|
161
|
+
if (false) {
|
162
|
+
/**
|
163
|
+
* provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger`
|
164
|
+
* @type {?}
|
165
|
+
*/
|
166
|
+
ProgressbarComponent.prototype.type;
|
167
|
+
/** @type {?} */
|
168
|
+
ProgressbarComponent.prototype.isStacked;
|
169
|
+
/** @type {?} */
|
170
|
+
ProgressbarComponent.prototype._striped;
|
171
|
+
/** @type {?} */
|
172
|
+
ProgressbarComponent.prototype._animate;
|
173
|
+
/** @type {?} */
|
174
|
+
ProgressbarComponent.prototype._value;
|
175
|
+
/** @type {?} */
|
176
|
+
ProgressbarComponent.prototype.addClass;
|
177
|
+
/** @type {?} */
|
178
|
+
ProgressbarComponent.prototype.bars;
|
179
|
+
/**
|
180
|
+
* @type {?}
|
181
|
+
* @protected
|
182
|
+
*/
|
183
|
+
ProgressbarComponent.prototype._max;
|
184
|
+
}
|
149
185
|
|
150
186
|
/**
|
151
187
|
* @fileoverview added by tsickle
|
@@ -297,6 +333,45 @@ BarComponent.propDecorators = {
|
|
297
333
|
setBarWidth: [{ type: HostBinding, args: ['style.width.%',] }],
|
298
334
|
addClass: [{ type: HostBinding, args: ['class.progress-bar',] }]
|
299
335
|
};
|
336
|
+
if (false) {
|
337
|
+
/** @type {?} */
|
338
|
+
BarComponent.prototype.max;
|
339
|
+
/** @type {?} */
|
340
|
+
BarComponent.prototype.addClass;
|
341
|
+
/** @type {?} */
|
342
|
+
BarComponent.prototype.striped;
|
343
|
+
/** @type {?} */
|
344
|
+
BarComponent.prototype.animate;
|
345
|
+
/** @type {?} */
|
346
|
+
BarComponent.prototype.percent;
|
347
|
+
/** @type {?} */
|
348
|
+
BarComponent.prototype.progress;
|
349
|
+
/**
|
350
|
+
* @type {?}
|
351
|
+
* @protected
|
352
|
+
*/
|
353
|
+
BarComponent.prototype._value;
|
354
|
+
/**
|
355
|
+
* @type {?}
|
356
|
+
* @protected
|
357
|
+
*/
|
358
|
+
BarComponent.prototype._type;
|
359
|
+
/**
|
360
|
+
* @type {?}
|
361
|
+
* @private
|
362
|
+
*/
|
363
|
+
BarComponent.prototype._prevType;
|
364
|
+
/**
|
365
|
+
* @type {?}
|
366
|
+
* @private
|
367
|
+
*/
|
368
|
+
BarComponent.prototype.el;
|
369
|
+
/**
|
370
|
+
* @type {?}
|
371
|
+
* @private
|
372
|
+
*/
|
373
|
+
BarComponent.prototype.renderer;
|
374
|
+
}
|
300
375
|
|
301
376
|
/**
|
302
377
|
* @fileoverview added by tsickle
|
@@ -318,5 +393,15 @@ ProgressbarModule.decorators = [
|
|
318
393
|
},] }
|
319
394
|
];
|
320
395
|
|
396
|
+
/**
|
397
|
+
* @fileoverview added by tsickle
|
398
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
399
|
+
*/
|
400
|
+
|
401
|
+
/**
|
402
|
+
* @fileoverview added by tsickle
|
403
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
404
|
+
*/
|
405
|
+
|
321
406
|
export { BarComponent, ProgressbarComponent, ProgressbarConfig, ProgressbarModule };
|
322
407
|
//# sourceMappingURL=ngx-bootstrap-progressbar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-progressbar.js","sources":["ng://ngx-bootstrap/progressbar/progressbar.config.ts","ng://ngx-bootstrap/progressbar/progressbar.component.ts","ng://ngx-bootstrap/progressbar/bar.component.ts","ng://ngx-bootstrap/progressbar/progressbar.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate: Boolean = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { ProgressbarConfig } from './progressbar.config';\nimport { ProgressbarType } from './progressbar-type.interface';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { BarComponent } from './bar.component';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n styles: [\n `\n :host {\n width: 100%;\n display: flex;\n }\n `\n ]\n})\nexport class ProgressbarComponent {\n /** if `true` changing value of progress bar will be animated */\n @Input()\n set animate(value: boolean) {\n this._animate = value;\n this.bars.forEach((b: BarComponent) => {\n b.animate = value;\n });\n }\n /** If `true`, striped classes are applied */\n @Input()\n set striped(value: boolean) {\n this._striped = value;\n this.bars.forEach((b: BarComponent) => {\n b.striped = value;\n });\n }\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: ProgressbarType;\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n /* tslint:disable-next-line:no-any */\n set value(value: number | any[]) {\n this.isStacked = Array.isArray(value);\n this._value = value;\n }\n isStacked = false;\n _striped: boolean;\n _animate: boolean;\n /* tslint:disable-next-line:no-any */\n _value: number | any[];\n get isBs3(): boolean {\n return isBs3();\n }\n\n /** maximum total value of progress element */\n @HostBinding('attr.max')\n @Input()\n get max(): number {\n return this._max;\n }\n\n set max(v: number) {\n this._max = v;\n this.bars.forEach((bar: BarComponent) => {\n bar.recalculatePercentage();\n });\n }\n\n @HostBinding('class.progress') addClass = true;\n\n /* tslint:disable-next-line:no-any */\n bars: BarComponent[] = [];\n\n protected _max = 100;\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n addBar(bar: BarComponent): void {\n bar.animate = this._animate;\n bar.striped = this._striped;\n\n this.bars.push(bar);\n }\n\n removeBar(bar: BarComponent): void {\n this.bars.splice(this.bars.indexOf(bar), 1);\n }\n}\n","import {\n Component,\n Host,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n ElementRef,\n Renderer2\n} from '@angular/core';\n\nimport { ProgressbarComponent } from './progressbar.component';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n// todo: number pipe\n// todo: use query from progress?\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"'\n }\n})\nexport class BarComponent implements OnInit, OnDestroy {\n max: number;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input()\n get type(): string {\n return this._type;\n }\n\n set type(v: string) {\n this._type = v;\n this.applyTypeClasses();\n }\n\n /** current value of progress bar */\n @Input()\n get value(): number {\n return this._value;\n }\n\n set value(v: number) {\n if (!v && v !== 0) {\n return;\n }\n this._value = v;\n this.recalculatePercentage();\n }\n\n @HostBinding('style.width.%')\n get setBarWidth() {\n this.recalculatePercentage();\n\n return this.percent;\n }\n\n @HostBinding('class.progress-bar') addClass = true;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n striped: boolean;\n animate: boolean;\n percent = 0;\n progress: ProgressbarComponent;\n\n protected _value: number;\n protected _type: string;\n private _prevType: string;\n\n constructor(\n private el: ElementRef,\n @Host() progress: ProgressbarComponent,\n private renderer: Renderer2\n ) {\n this.progress = progress;\n }\n\n ngOnInit(): void {\n this.progress.addBar(this);\n }\n\n ngOnDestroy(): void {\n this.progress.removeBar(this);\n }\n\n recalculatePercentage(): void {\n this.percent = +(this.value / this.progress.max * 100).toFixed(2);\n\n const totalPercentage = this.progress.bars\n .reduce(function (total: number, bar: BarComponent): number {\n return total + bar.percent;\n }, 0);\n\n if (totalPercentage > 100) {\n this.percent -= totalPercentage - 100;\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = null;\n }\n\n if (this._type) {\n const barTypeClass = `progress-bar-${this._type}`;\n const bgClass = `bg-${this._type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this._type;\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: Progressb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AE,CAAC,YAAY,EAAE,oBAAoB,CAAC;aAC9C;;;;;"}
|
1
|
+
{"version":3,"file":"ngx-bootstrap-progressbar.js","sources":["ng://ngx-bootstrap/progressbar/progressbar.config.ts","ng://ngx-bootstrap/progressbar/progressbar.component.ts","ng://ngx-bootstrap/progressbar/bar.component.ts","ng://ngx-bootstrap/progressbar/progressbar.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate: Boolean = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { ProgressbarConfig } from './progressbar.config';\nimport { ProgressbarType } from './progressbar-type.interface';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { BarComponent } from './bar.component';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n styles: [\n `\n :host {\n width: 100%;\n display: flex;\n }\n `\n ]\n})\nexport class ProgressbarComponent {\n /** if `true` changing value of progress bar will be animated */\n @Input()\n set animate(value: boolean) {\n this._animate = value;\n this.bars.forEach((b: BarComponent) => {\n b.animate = value;\n });\n }\n /** If `true`, striped classes are applied */\n @Input()\n set striped(value: boolean) {\n this._striped = value;\n this.bars.forEach((b: BarComponent) => {\n b.striped = value;\n });\n }\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: ProgressbarType;\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n /* tslint:disable-next-line:no-any */\n set value(value: number | any[]) {\n this.isStacked = Array.isArray(value);\n this._value = value;\n }\n isStacked = false;\n _striped: boolean;\n _animate: boolean;\n /* tslint:disable-next-line:no-any */\n _value: number | any[];\n get isBs3(): boolean {\n return isBs3();\n }\n\n /** maximum total value of progress element */\n @HostBinding('attr.max')\n @Input()\n get max(): number {\n return this._max;\n }\n\n set max(v: number) {\n this._max = v;\n this.bars.forEach((bar: BarComponent) => {\n bar.recalculatePercentage();\n });\n }\n\n @HostBinding('class.progress') addClass = true;\n\n /* tslint:disable-next-line:no-any */\n bars: BarComponent[] = [];\n\n protected _max = 100;\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n addBar(bar: BarComponent): void {\n bar.animate = this._animate;\n bar.striped = this._striped;\n\n this.bars.push(bar);\n }\n\n removeBar(bar: BarComponent): void {\n this.bars.splice(this.bars.indexOf(bar), 1);\n }\n}\n","import {\n Component,\n Host,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n ElementRef,\n Renderer2\n} from '@angular/core';\n\nimport { ProgressbarComponent } from './progressbar.component';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n// todo: number pipe\n// todo: use query from progress?\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"'\n }\n})\nexport class BarComponent implements OnInit, OnDestroy {\n max: number;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input()\n get type(): string {\n return this._type;\n }\n\n set type(v: string) {\n this._type = v;\n this.applyTypeClasses();\n }\n\n /** current value of progress bar */\n @Input()\n get value(): number {\n return this._value;\n }\n\n set value(v: number) {\n if (!v && v !== 0) {\n return;\n }\n this._value = v;\n this.recalculatePercentage();\n }\n\n @HostBinding('style.width.%')\n get setBarWidth() {\n this.recalculatePercentage();\n\n return this.percent;\n }\n\n @HostBinding('class.progress-bar') addClass = true;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n striped: boolean;\n animate: boolean;\n percent = 0;\n progress: ProgressbarComponent;\n\n protected _value: number;\n protected _type: string;\n private _prevType: string;\n\n constructor(\n private el: ElementRef,\n @Host() progress: ProgressbarComponent,\n private renderer: Renderer2\n ) {\n this.progress = progress;\n }\n\n ngOnInit(): void {\n this.progress.addBar(this);\n }\n\n ngOnDestroy(): void {\n this.progress.removeBar(this);\n }\n\n recalculatePercentage(): void {\n this.percent = +(this.value / this.progress.max * 100).toFixed(2);\n\n const totalPercentage = this.progress.bars\n .reduce(function (total: number, bar: BarComponent): number {\n return total + bar.percent;\n }, 0);\n\n if (totalPercentage > 100) {\n this.percent -= totalPercentage - 100;\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = null;\n }\n\n if (this._type) {\n const barTypeClass = `progress-bar-${this._type}`;\n const bgClass = `bg-${this._type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this._type;\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: ProgressbarModule, providers: [ProgressbarConfig] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;MAGa,iBAAiB;IAD9B;;;;QAGE,YAAO,GAAY,KAAK,CAAC;;;;QAEzB,QAAG,GAAG,GAAG,CAAC;KACX;;;YANA,UAAU;;;;;;;IAGT,oCAAyB;;;;;IAEzB,gCAAU;;;;;;;ACPZ,MAkBa,oBAAoB;;;;IA2D/B,YAAY,MAAyB;QA9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AAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;gBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;aAC9C;;;;;;;;;;;;;;;"}
|
@@ -22,6 +22,18 @@ var ProgressbarConfig = /** @class */ (function () {
|
|
22
22
|
];
|
23
23
|
return ProgressbarConfig;
|
24
24
|
}());
|
25
|
+
if (false) {
|
26
|
+
/**
|
27
|
+
* if `true` changing value of progress bar will be animated
|
28
|
+
* @type {?}
|
29
|
+
*/
|
30
|
+
ProgressbarConfig.prototype.animate;
|
31
|
+
/**
|
32
|
+
* maximum total value of progress element
|
33
|
+
* @type {?}
|
34
|
+
*/
|
35
|
+
ProgressbarConfig.prototype.max;
|
36
|
+
}
|
25
37
|
|
26
38
|
/**
|
27
39
|
* @fileoverview added by tsickle
|
@@ -174,6 +186,30 @@ var ProgressbarComponent = /** @class */ (function () {
|
|
174
186
|
};
|
175
187
|
return ProgressbarComponent;
|
176
188
|
}());
|
189
|
+
if (false) {
|
190
|
+
/**
|
191
|
+
* provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger`
|
192
|
+
* @type {?}
|
193
|
+
*/
|
194
|
+
ProgressbarComponent.prototype.type;
|
195
|
+
/** @type {?} */
|
196
|
+
ProgressbarComponent.prototype.isStacked;
|
197
|
+
/** @type {?} */
|
198
|
+
ProgressbarComponent.prototype._striped;
|
199
|
+
/** @type {?} */
|
200
|
+
ProgressbarComponent.prototype._animate;
|
201
|
+
/** @type {?} */
|
202
|
+
ProgressbarComponent.prototype._value;
|
203
|
+
/** @type {?} */
|
204
|
+
ProgressbarComponent.prototype.addClass;
|
205
|
+
/** @type {?} */
|
206
|
+
ProgressbarComponent.prototype.bars;
|
207
|
+
/**
|
208
|
+
* @type {?}
|
209
|
+
* @protected
|
210
|
+
*/
|
211
|
+
ProgressbarComponent.prototype._max;
|
212
|
+
}
|
177
213
|
|
178
214
|
/**
|
179
215
|
* @fileoverview added by tsickle
|
@@ -352,6 +388,45 @@ var BarComponent = /** @class */ (function () {
|
|
352
388
|
};
|
353
389
|
return BarComponent;
|
354
390
|
}());
|
391
|
+
if (false) {
|
392
|
+
/** @type {?} */
|
393
|
+
BarComponent.prototype.max;
|
394
|
+
/** @type {?} */
|
395
|
+
BarComponent.prototype.addClass;
|
396
|
+
/** @type {?} */
|
397
|
+
BarComponent.prototype.striped;
|
398
|
+
/** @type {?} */
|
399
|
+
BarComponent.prototype.animate;
|
400
|
+
/** @type {?} */
|
401
|
+
BarComponent.prototype.percent;
|
402
|
+
/** @type {?} */
|
403
|
+
BarComponent.prototype.progress;
|
404
|
+
/**
|
405
|
+
* @type {?}
|
406
|
+
* @protected
|
407
|
+
*/
|
408
|
+
BarComponent.prototype._value;
|
409
|
+
/**
|
410
|
+
* @type {?}
|
411
|
+
* @protected
|
412
|
+
*/
|
413
|
+
BarComponent.prototype._type;
|
414
|
+
/**
|
415
|
+
* @type {?}
|
416
|
+
* @private
|
417
|
+
*/
|
418
|
+
BarComponent.prototype._prevType;
|
419
|
+
/**
|
420
|
+
* @type {?}
|
421
|
+
* @private
|
422
|
+
*/
|
423
|
+
BarComponent.prototype.el;
|
424
|
+
/**
|
425
|
+
* @type {?}
|
426
|
+
* @private
|
427
|
+
*/
|
428
|
+
BarComponent.prototype.renderer;
|
429
|
+
}
|
355
430
|
|
356
431
|
/**
|
357
432
|
* @fileoverview added by tsickle
|
@@ -379,5 +454,15 @@ var ProgressbarModule = /** @class */ (function () {
|
|
379
454
|
return ProgressbarModule;
|
380
455
|
}());
|
381
456
|
|
457
|
+
/**
|
458
|
+
* @fileoverview added by tsickle
|
459
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
460
|
+
*/
|
461
|
+
|
462
|
+
/**
|
463
|
+
* @fileoverview added by tsickle
|
464
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
465
|
+
*/
|
466
|
+
|
382
467
|
export { BarComponent, ProgressbarComponent, ProgressbarConfig, ProgressbarModule };
|
383
468
|
//# sourceMappingURL=ngx-bootstrap-progressbar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-progressbar.js","sources":["ng://ngx-bootstrap/progressbar/progressbar.config.ts","ng://ngx-bootstrap/progressbar/progressbar.component.ts","ng://ngx-bootstrap/progressbar/bar.component.ts","ng://ngx-bootstrap/progressbar/progressbar.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate: Boolean = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { ProgressbarConfig } from './progressbar.config';\nimport { ProgressbarType } from './progressbar-type.interface';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { BarComponent } from './bar.component';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n styles: [\n `\n :host {\n width: 100%;\n display: flex;\n }\n `\n ]\n})\nexport class ProgressbarComponent {\n /** if `true` changing value of progress bar will be animated */\n @Input()\n set animate(value: boolean) {\n this._animate = value;\n this.bars.forEach((b: BarComponent) => {\n b.animate = value;\n });\n }\n /** If `true`, striped classes are applied */\n @Input()\n set striped(value: boolean) {\n this._striped = value;\n this.bars.forEach((b: BarComponent) => {\n b.striped = value;\n });\n }\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: ProgressbarType;\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n /* tslint:disable-next-line:no-any */\n set value(value: number | any[]) {\n this.isStacked = Array.isArray(value);\n this._value = value;\n }\n isStacked = false;\n _striped: boolean;\n _animate: boolean;\n /* tslint:disable-next-line:no-any */\n _value: number | any[];\n get isBs3(): boolean {\n return isBs3();\n }\n\n /** maximum total value of progress element */\n @HostBinding('attr.max')\n @Input()\n get max(): number {\n return this._max;\n }\n\n set max(v: number) {\n this._max = v;\n this.bars.forEach((bar: BarComponent) => {\n bar.recalculatePercentage();\n });\n }\n\n @HostBinding('class.progress') addClass = true;\n\n /* tslint:disable-next-line:no-any */\n bars: BarComponent[] = [];\n\n protected _max = 100;\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n addBar(bar: BarComponent): void {\n bar.animate = this._animate;\n bar.striped = this._striped;\n\n this.bars.push(bar);\n }\n\n removeBar(bar: BarComponent): void {\n this.bars.splice(this.bars.indexOf(bar), 1);\n }\n}\n","import {\n Component,\n Host,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n ElementRef,\n Renderer2\n} from '@angular/core';\n\nimport { ProgressbarComponent } from './progressbar.component';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n// todo: number pipe\n// todo: use query from progress?\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"'\n }\n})\nexport class BarComponent implements OnInit, OnDestroy {\n max: number;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input()\n get type(): string {\n return this._type;\n }\n\n set type(v: string) {\n this._type = v;\n this.applyTypeClasses();\n }\n\n /** current value of progress bar */\n @Input()\n get value(): number {\n return this._value;\n }\n\n set value(v: number) {\n if (!v && v !== 0) {\n return;\n }\n this._value = v;\n this.recalculatePercentage();\n }\n\n @HostBinding('style.width.%')\n get setBarWidth() {\n this.recalculatePercentage();\n\n return this.percent;\n }\n\n @HostBinding('class.progress-bar') addClass = true;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n striped: boolean;\n animate: boolean;\n percent = 0;\n progress: ProgressbarComponent;\n\n protected _value: number;\n protected _type: string;\n private _prevType: string;\n\n constructor(\n private el: ElementRef,\n @Host() progress: ProgressbarComponent,\n private renderer: Renderer2\n ) {\n this.progress = progress;\n }\n\n ngOnInit(): void {\n this.progress.addBar(this);\n }\n\n ngOnDestroy(): void {\n this.progress.removeBar(this);\n }\n\n recalculatePercentage(): void {\n this.percent = +(this.value / this.progress.max * 100).toFixed(2);\n\n const totalPercentage = this.progress.bars\n .reduce(function (total: number, bar: BarComponent): number {\n return total + bar.percent;\n }, 0);\n\n if (totalPercentage > 100) {\n this.percent -= totalPercentage - 100;\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = null;\n }\n\n if (this._type) {\n const barTypeClass = `progress-bar-${this._type}`;\n const bgClass = `bg-${this._type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this._type;\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: ProgressbarModule, providers: [ProgressbarConfig] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAAA;IAEA;;;;QAGE,YAAO,GAAY,KAAK,CAAC;;;;QAEzB,QAAG,GAAG,GAAG,CAAC;KACX;;gB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B,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;iBAC9C;;IAKD,wBAAC;CATD;;;;"}
|
1
|
+
{"version":3,"file":"ngx-bootstrap-progressbar.js","sources":["ng://ngx-bootstrap/progressbar/progressbar.config.ts","ng://ngx-bootstrap/progressbar/progressbar.component.ts","ng://ngx-bootstrap/progressbar/bar.component.ts","ng://ngx-bootstrap/progressbar/progressbar.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate: Boolean = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { Component, HostBinding, Input } from '@angular/core';\nimport { ProgressbarConfig } from './progressbar.config';\nimport { ProgressbarType } from './progressbar-type.interface';\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { BarComponent } from './bar.component';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n styles: [\n `\n :host {\n width: 100%;\n display: flex;\n }\n `\n ]\n})\nexport class ProgressbarComponent {\n /** if `true` changing value of progress bar will be animated */\n @Input()\n set animate(value: boolean) {\n this._animate = value;\n this.bars.forEach((b: BarComponent) => {\n b.animate = value;\n });\n }\n /** If `true`, striped classes are applied */\n @Input()\n set striped(value: boolean) {\n this._striped = value;\n this.bars.forEach((b: BarComponent) => {\n b.striped = value;\n });\n }\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: ProgressbarType;\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n /* tslint:disable-next-line:no-any */\n set value(value: number | any[]) {\n this.isStacked = Array.isArray(value);\n this._value = value;\n }\n isStacked = false;\n _striped: boolean;\n _animate: boolean;\n /* tslint:disable-next-line:no-any */\n _value: number | any[];\n get isBs3(): boolean {\n return isBs3();\n }\n\n /** maximum total value of progress element */\n @HostBinding('attr.max')\n @Input()\n get max(): number {\n return this._max;\n }\n\n set max(v: number) {\n this._max = v;\n this.bars.forEach((bar: BarComponent) => {\n bar.recalculatePercentage();\n });\n }\n\n @HostBinding('class.progress') addClass = true;\n\n /* tslint:disable-next-line:no-any */\n bars: BarComponent[] = [];\n\n protected _max = 100;\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n addBar(bar: BarComponent): void {\n bar.animate = this._animate;\n bar.striped = this._striped;\n\n this.bars.push(bar);\n }\n\n removeBar(bar: BarComponent): void {\n this.bars.splice(this.bars.indexOf(bar), 1);\n }\n}\n","import {\n Component,\n Host,\n HostBinding,\n Input,\n OnDestroy,\n OnInit,\n ElementRef,\n Renderer2\n} from '@angular/core';\n\nimport { ProgressbarComponent } from './progressbar.component';\nimport { isBs3 } from 'ngx-bootstrap/utils';\n\n// todo: number pipe\n// todo: use query from progress?\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"'\n }\n})\nexport class BarComponent implements OnInit, OnDestroy {\n max: number;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input()\n get type(): string {\n return this._type;\n }\n\n set type(v: string) {\n this._type = v;\n this.applyTypeClasses();\n }\n\n /** current value of progress bar */\n @Input()\n get value(): number {\n return this._value;\n }\n\n set value(v: number) {\n if (!v && v !== 0) {\n return;\n }\n this._value = v;\n this.recalculatePercentage();\n }\n\n @HostBinding('style.width.%')\n get setBarWidth() {\n this.recalculatePercentage();\n\n return this.percent;\n }\n\n @HostBinding('class.progress-bar') addClass = true;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n striped: boolean;\n animate: boolean;\n percent = 0;\n progress: ProgressbarComponent;\n\n protected _value: number;\n protected _type: string;\n private _prevType: string;\n\n constructor(\n private el: ElementRef,\n @Host() progress: ProgressbarComponent,\n private renderer: Renderer2\n ) {\n this.progress = progress;\n }\n\n ngOnInit(): void {\n this.progress.addBar(this);\n }\n\n ngOnDestroy(): void {\n this.progress.removeBar(this);\n }\n\n recalculatePercentage(): void {\n this.percent = +(this.value / this.progress.max * 100).toFixed(2);\n\n const totalPercentage = this.progress.bars\n .reduce(function (total: number, bar: BarComponent): number {\n return total + bar.percent;\n }, 0);\n\n if (totalPercentage > 100) {\n this.percent -= totalPercentage - 100;\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = null;\n }\n\n if (this._type) {\n const barTypeClass = `progress-bar-${this._type}`;\n const bgClass = `bg-${this._type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this._type;\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: ProgressbarModule, providers: [ProgressbarConfig] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;IAEA;;;;QAGE,YAAO,GAAY,KAAK,CAAC;;;;QAEzB,QAAG,GAAG,GAAG,CAAC;KACX;;gBANA,UAAU;;IAMX,wBAAC;CAND,IAMC;;;;;;IAHC,oCAAyB;;;;;IAEzB,gCAAU;;;;;;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;;;IACzB,6BAAwB;;;;;IACxB,iCAA0B;;;;;IAGxB,0BAAsB;;;;;IAEtB,gCAA2B;;;;;;;ACpF/B;IAOA;KASC;;;;IAHQ,yBAAO;;;IAAd;QACE,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;KACxE;;gBARF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;iBAC9C;;IAKD,wBAAC;CATD;;;;;;;;;;;;;;"}
|
package/progressbar/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-bootstrap/progressbar",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.6.2",
|
4
4
|
"description": "Native Angular Bootstrap Components",
|
5
5
|
"private": true,
|
6
6
|
"main": "bundles/ngx-bootstrap-progressbar.umd.js",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"typings": "ngx-bootstrap-progressbar.d.ts",
|
14
14
|
"metadata": "ngx-bootstrap-progressbar.metadata.json",
|
15
15
|
"sideEffects": false,
|
16
|
-
"
|
16
|
+
"peerDependencies": {
|
17
17
|
"tslib": "^1.9.0"
|
18
18
|
}
|
19
19
|
}
|
@@ -2,7 +2,34 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common')) :
|
3
3
|
typeof define === 'function' && define.amd ? define('ngx-bootstrap/rating', ['exports', '@angular/core', '@angular/forms', '@angular/common'], factory) :
|
4
4
|
(global = global || self, factory((global['ngx-bootstrap'] = global['ngx-bootstrap'] || {}, global['ngx-bootstrap'].rating = {}), global.ng.core, global.ng.forms, global.ng.common));
|
5
|
-
}(this, function (exports, core, forms, common) { 'use strict';
|
5
|
+
}(this, (function (exports, core, forms, common) { 'use strict';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @fileoverview added by tsickle
|
9
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
10
|
+
*/
|
11
|
+
/**
|
12
|
+
* Default values provider for rating
|
13
|
+
*/
|
14
|
+
var RatingConfig = /** @class */ (function () {
|
15
|
+
function RatingConfig() {
|
16
|
+
/**
|
17
|
+
* aria label for rating
|
18
|
+
*/
|
19
|
+
this.ariaLabel = 'rating';
|
20
|
+
}
|
21
|
+
RatingConfig.decorators = [
|
22
|
+
{ type: core.Injectable }
|
23
|
+
];
|
24
|
+
return RatingConfig;
|
25
|
+
}());
|
26
|
+
if (false) {
|
27
|
+
/**
|
28
|
+
* aria label for rating
|
29
|
+
* @type {?}
|
30
|
+
*/
|
31
|
+
RatingConfig.prototype.ariaLabel;
|
32
|
+
}
|
6
33
|
|
7
34
|
/**
|
8
35
|
* @fileoverview added by tsickle
|
@@ -19,7 +46,7 @@
|
|
19
46
|
multi: true
|
20
47
|
};
|
21
48
|
var RatingComponent = /** @class */ (function () {
|
22
|
-
function RatingComponent(changeDetection) {
|
49
|
+
function RatingComponent(changeDetection, config) {
|
23
50
|
this.changeDetection = changeDetection;
|
24
51
|
/**
|
25
52
|
* number of icons
|
@@ -37,6 +64,7 @@
|
|
37
64
|
this.onChange = Function.prototype;
|
38
65
|
// tslint:disable-next-line:no-any
|
39
66
|
this.onTouched = Function.prototype;
|
67
|
+
Object.assign(this, config);
|
40
68
|
}
|
41
69
|
/**
|
42
70
|
* @param {?} event
|
@@ -117,7 +145,7 @@
|
|
117
145
|
* @return {?}
|
118
146
|
*/
|
119
147
|
function () {
|
120
|
-
this.value = this.preValue;
|
148
|
+
this.value = Math.round(this.preValue);
|
121
149
|
this.changeDetection.markForCheck();
|
122
150
|
this.onLeave.emit(this.value);
|
123
151
|
};
|
@@ -181,14 +209,15 @@
|
|
181
209
|
RatingComponent.decorators = [
|
182
210
|
{ type: core.Component, args: [{
|
183
211
|
selector: 'rating',
|
184
|
-
template: "<span (mouseleave)=\"reset()\" (keydown)=\"onKeydown($event)\" tabindex=\"0\"\n role=\"slider\" aria-valuemin=\"0\"
|
212
|
+
template: "<span (mouseleave)=\"reset()\" (keydown)=\"onKeydown($event)\" tabindex=\"0\"\n role=\"slider\" aria-valuemin=\"0\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-valuemax]=\"range.length\"\n [attr.aria-valuenow]=\"value\">\n <ng-template #star let-value=\"value\" let-index=\"index\">{{ index < value ? '★' : '☆' }}</ng-template>\n <ng-template ngFor let-r [ngForOf]=\"range\" let-index=\"index\">\n <span class=\"sr-only\">({{ index < value ? '*' : ' ' }})</span>\n <span class=\"bs-rating-star\"\n (mouseenter)=\"enter(index + 1)\"\n (click)=\"rate(index + 1)\"\n [title]=\"r.title\"\n [style.cursor]=\"readonly ? 'default' : 'pointer'\"\n [class.active]=\"index < value\">\n <ng-template [ngTemplateOutlet]=\"customTemplate || star\"\n [ngTemplateOutletContext]=\"{index: index, value: value}\">\n </ng-template>\n </span>\n </ng-template>\n</span>\n",
|
185
213
|
providers: [RATING_CONTROL_VALUE_ACCESSOR],
|
186
214
|
changeDetection: core.ChangeDetectionStrategy.OnPush
|
187
215
|
}] }
|
188
216
|
];
|
189
217
|
/** @nocollapse */
|
190
218
|
RatingComponent.ctorParameters = function () { return [
|
191
|
-
{ type: core.ChangeDetectorRef }
|
219
|
+
{ type: core.ChangeDetectorRef },
|
220
|
+
{ type: RatingConfig }
|
192
221
|
]; };
|
193
222
|
RatingComponent.propDecorators = {
|
194
223
|
max: [{ type: core.Input }],
|
@@ -201,6 +230,61 @@
|
|
201
230
|
};
|
202
231
|
return RatingComponent;
|
203
232
|
}());
|
233
|
+
if (false) {
|
234
|
+
/**
|
235
|
+
* number of icons
|
236
|
+
* @type {?}
|
237
|
+
*/
|
238
|
+
RatingComponent.prototype.max;
|
239
|
+
/**
|
240
|
+
* if true will not react on any user events
|
241
|
+
* @type {?}
|
242
|
+
*/
|
243
|
+
RatingComponent.prototype.readonly;
|
244
|
+
/**
|
245
|
+
* array of icons titles, default: (["one", "two", "three", "four", "five"])
|
246
|
+
* @type {?}
|
247
|
+
*/
|
248
|
+
RatingComponent.prototype.titles;
|
249
|
+
/**
|
250
|
+
* custom template for icons
|
251
|
+
* @type {?}
|
252
|
+
*/
|
253
|
+
RatingComponent.prototype.customTemplate;
|
254
|
+
/**
|
255
|
+
* fired when icon selected, $event:number equals to selected rating
|
256
|
+
* @type {?}
|
257
|
+
*/
|
258
|
+
RatingComponent.prototype.onHover;
|
259
|
+
/**
|
260
|
+
* fired when icon selected, $event:number equals to previous rating value
|
261
|
+
* @type {?}
|
262
|
+
*/
|
263
|
+
RatingComponent.prototype.onLeave;
|
264
|
+
/** @type {?} */
|
265
|
+
RatingComponent.prototype.onChange;
|
266
|
+
/** @type {?} */
|
267
|
+
RatingComponent.prototype.onTouched;
|
268
|
+
/**
|
269
|
+
* aria label for rating
|
270
|
+
* @type {?}
|
271
|
+
*/
|
272
|
+
RatingComponent.prototype.ariaLabel;
|
273
|
+
/** @type {?} */
|
274
|
+
RatingComponent.prototype.range;
|
275
|
+
/** @type {?} */
|
276
|
+
RatingComponent.prototype.value;
|
277
|
+
/**
|
278
|
+
* @type {?}
|
279
|
+
* @protected
|
280
|
+
*/
|
281
|
+
RatingComponent.prototype.preValue;
|
282
|
+
/**
|
283
|
+
* @type {?}
|
284
|
+
* @private
|
285
|
+
*/
|
286
|
+
RatingComponent.prototype.changeDetection;
|
287
|
+
}
|
204
288
|
|
205
289
|
/**
|
206
290
|
* @fileoverview added by tsickle
|
@@ -218,7 +302,7 @@
|
|
218
302
|
function () {
|
219
303
|
return {
|
220
304
|
ngModule: RatingModule,
|
221
|
-
providers: []
|
305
|
+
providers: [RatingConfig]
|
222
306
|
};
|
223
307
|
};
|
224
308
|
RatingModule.decorators = [
|
@@ -232,10 +316,11 @@
|
|
232
316
|
}());
|
233
317
|
|
234
318
|
exports.RatingComponent = RatingComponent;
|
319
|
+
exports.RatingConfig = RatingConfig;
|
235
320
|
exports.RatingModule = RatingModule;
|
236
321
|
exports.ɵa = RATING_CONTROL_VALUE_ACCESSOR;
|
237
322
|
|
238
323
|
Object.defineProperty(exports, '__esModule', { value: true });
|
239
324
|
|
240
|
-
}));
|
325
|
+
})));
|
241
326
|
//# sourceMappingURL=ngx-bootstrap-rating.umd.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-rating.umd.js","sources":["ng://ngx-bootstrap/rating/rating.component.ts","ng://ngx-bootstrap/rating/rating.module.ts"],"sourcesContent":["import {\n Component,\n EventEmitter,\n HostListener,\n Input,\n OnInit,\n Output,\n forwardRef, TemplateRef, ChangeDetectionStrategy, ChangeDetectorRef\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AccessorContent, RatingResults } from './models';\n\nexport const RATING_CONTROL_VALUE_ACCESSOR: AccessorContent = {\n provide: NG_VALUE_ACCESSOR,\n /* tslint:disable-next-line: no-use-before-declare */\n useExisting: forwardRef(() => RatingComponent),\n multi: true\n};\n\n@Component({\n selector: 'rating',\n templateUrl: './rating.component.html',\n providers: [RATING_CONTROL_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class RatingComponent implements ControlValueAccessor, OnInit {\n /** number of icons */\n @Input() max = 5;\n /** if true will not react on any user events */\n @Input() readonly: boolean;\n /** array of icons titles, default: ([\"one\", \"two\", \"three\", \"four\", \"five\"]) */\n @Input() titles: string[];\n /** custom template for icons */\n // tslint:disable-next-line:no-any\n @Input() customTemplate: TemplateRef<any>;\n /** fired when icon selected, $event:number equals to selected rating */\n @Output() onHover: EventEmitter<number> = new EventEmitter();\n /** fired when icon selected, $event:number equals to previous rating value */\n @Output() onLeave: EventEmitter<number> = new EventEmitter();\n\n // tslint:disable-next-line:no-any\n onChange: any = Function.prototype;\n // tslint:disable-next-line:no-any\n onTouched: any = Function.prototype;\n
|
1
|
+
{"version":3,"file":"ngx-bootstrap-rating.umd.js","sources":["ng://ngx-bootstrap/rating/rating.config.ts","ng://ngx-bootstrap/rating/rating.component.ts","ng://ngx-bootstrap/rating/rating.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n/** Default values provider for rating */\n@Injectable()\nexport class RatingConfig {\n /** aria label for rating */\n ariaLabel = 'rating';\n}\n","import {\n Component,\n EventEmitter,\n HostListener,\n Input,\n OnInit,\n Output,\n forwardRef, TemplateRef, ChangeDetectionStrategy, ChangeDetectorRef\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { AccessorContent, RatingResults } from './models';\nimport { RatingConfig } from './rating.config';\n\nexport const RATING_CONTROL_VALUE_ACCESSOR: AccessorContent = {\n provide: NG_VALUE_ACCESSOR,\n /* tslint:disable-next-line: no-use-before-declare */\n useExisting: forwardRef(() => RatingComponent),\n multi: true\n};\n\n@Component({\n selector: 'rating',\n templateUrl: './rating.component.html',\n providers: [RATING_CONTROL_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class RatingComponent implements ControlValueAccessor, OnInit {\n /** number of icons */\n @Input() max = 5;\n /** if true will not react on any user events */\n @Input() readonly: boolean;\n /** array of icons titles, default: ([\"one\", \"two\", \"three\", \"four\", \"five\"]) */\n @Input() titles: string[];\n /** custom template for icons */\n // tslint:disable-next-line:no-any\n @Input() customTemplate: TemplateRef<any>;\n /** fired when icon selected, $event:number equals to selected rating */\n @Output() onHover: EventEmitter<number> = new EventEmitter();\n /** fired when icon selected, $event:number equals to previous rating value */\n @Output() onLeave: EventEmitter<number> = new EventEmitter();\n\n // tslint:disable-next-line:no-any\n onChange: any = Function.prototype;\n // tslint:disable-next-line:no-any\n onTouched: any = Function.prototype;\n /** aria label for rating */\n ariaLabel: string;\n range: RatingResults[];\n value: number;\n protected preValue: number;\n\n constructor(private changeDetection: ChangeDetectorRef,\n config: RatingConfig) {\n Object.assign(this, config);\n }\n\n @HostListener('keydown', ['$event'])\n onKeydown(event: KeyboardEvent): void {\n /* tslint:disable-next-line: deprecation */\n if ([37, 38, 39, 40].indexOf(event.which) === -1) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n /* tslint:disable-next-line: deprecation */\n const sign = event.which === 38 || event.which === 39 ? 1 : -1;\n this.rate(this.value + sign);\n }\n\n ngOnInit(): void {\n this.max = typeof this.max !== 'undefined' ? this.max : 5;\n this.titles =\n typeof this.titles !== 'undefined' && this.titles.length > 0\n ? this.titles\n : [];\n this.range = this.buildTemplateObjects(this.max);\n }\n\n // model -> view\n writeValue(value: number): void {\n if (value % 1 !== value) {\n this.value = Math.round(value);\n this.preValue = value;\n this.changeDetection.markForCheck();\n\n return;\n }\n\n this.preValue = value;\n this.value = value;\n this.changeDetection.markForCheck();\n }\n\n enter(value: number): void {\n if (!this.readonly) {\n this.value = value;\n this.changeDetection.markForCheck();\n this.onHover.emit(value);\n }\n }\n\n reset(): void {\n this.value = Math.round(this.preValue);\n this.changeDetection.markForCheck();\n this.onLeave.emit(this.value);\n }\n\n registerOnChange(fn: (_: number) => {}): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => {}): void {\n this.onTouched = fn;\n }\n\n rate(value: number): void {\n if (!this.readonly && value >= 0 && value <= this.range.length) {\n this.writeValue(value);\n this.onChange(value);\n }\n }\n\n protected buildTemplateObjects(max: number): RatingResults[] {\n const result: RatingResults[] = [];\n for (let i = 0; i < max; i++) {\n result.push({\n index: i,\n title: this.titles[i] || i + 1\n });\n }\n\n return result;\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { RatingComponent } from './rating.component';\nimport { RatingConfig } from './rating.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [RatingComponent],\n exports: [RatingComponent]\n})\nexport class RatingModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: RatingModule,\n providers: [RatingConfig]\n };\n }\n}\n"],"names":["Injectable","NG_VALUE_ACCESSOR","forwardRef","EventEmitter","Component","ChangeDetectionStrategy","ChangeDetectorRef","Input","Output","HostListener","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;;;QAGA;;;;YAGE,cAAS,GAAG,QAAQ,CAAC;SACtB;;oBAJAA,eAAU;;QAIX,mBAAC;KAJD,IAIC;;;;;;QADC,iCAAqB;;;;;;;ICNvB;QAaa,6BAA6B,GAAoB;QAC5D,OAAO,EAAEC,uBAAiB;;QAE1B,WAAW,EAAEC,eAAU;;;QAAC,cAAM,OAAA,eAAe,GAAA,EAAC;QAC9C,KAAK,EAAE,IAAI;;;QAkCX,yBAAoB,eAAkC,EAC1C,MAAoB;YADZ,oBAAe,GAAf,eAAe,CAAmB;;;;YAvB7C,QAAG,GAAG,CAAC,CAAC;;;;YASP,YAAO,GAAyB,IAAIC,iBAAY,EAAE,CAAC;;;;YAEnD,YAAO,GAAyB,IAAIA,iBAAY,EAAE,CAAC;;YAG7D,aAAQ,GAAQ,QAAQ,CAAC,SAAS,CAAC;;YAEnC,cAAS,GAAQ,QAAQ,CAAC,SAAS,CAAC;YASlC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAC7B;;;;;QAGD,mCAAS;;;;QADT,UACU,KAAoB;;YAE5B,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE;gBAChD,OAAO;aACR;YAED,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;;;gBAElB,IAAI,GAAG,KAAK,CAAC,KAAK,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;YAC9D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC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AAC;KAlHD,IAkHC;;;;;;QA1GC,8BAAiB;;;;;QAEjB,mCAA2B;;;;;QAE3B,iCAA0B;;;;;QAG1B,yCAA0C;;;;;QAE1C,kCAA6D;;;;;QAE7D,kCAA6D;;QAG7D,mCAAmC;;QAEnC,oCAAoC;;;;;QAEpC,oCAAkB;;QAClB,gCAAuB;;QACvB,gCAAc;;;;;QACd,mCAA2B;;;;;QAEf,0CAA0C;;;;;;;;QC7CxD;SAYC;;;;QANQ,oBAAO;;;QAAd;YACE,OAAO;gBACL,QAAQ,EAAE,YAAY;gBACtB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC1B,CAAC;SACH;;oBAXFC,aAAQ,SAAC;wBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;wBACvB,YAAY,EAAE,CAAC,eAAe,CAAC;wBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;qBAC3B;;QAQD,mBAAC;KAZD;;;;;;;;;;;;;;;"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-bootstrap/rating",["exports","@angular/core","@angular/forms","@angular/common"],t):t(((e=e||self)["ngx-bootstrap"]=e["ngx-bootstrap"]||{},e["ngx-bootstrap"].rating={}),e.ng.core,e.ng.forms,e.ng.common)}(this,function(e,t,n,o){"use strict";var r={provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return i}),multi:!0},i=function(){function e(e){this.changeDetection=e,this.max=5,this.onHover=new t.EventEmitter,this.onLeave=new t.EventEmitter,this.onChange=Function.prototype,this.onTouched=Function.prototype}return e.prototype.onKeydown=function(e){if(-1!==[37,38,39,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var t=38===e.which||39===e.which?1:-1;this.rate(this.value+t)}},e.prototype.ngOnInit=function(){this.max=void 0!==this.max?this.max:5,this.titles=void 0!==this.titles&&this.titles.length>0?this.titles:[],this.range=this.buildTemplateObjects(this.max)},e.prototype.writeValue=function(e){if(e%1!==e)return this.value=Math.round(e),this.preValue=e,void this.changeDetection.markForCheck();this.preValue=e,this.value=e,this.changeDetection.markForCheck()},e.prototype.enter=function(e){this.readonly||(this.value=e,this.changeDetection.markForCheck(),this.onHover.emit(e))},e.prototype.reset=function(){this.value=this.preValue,this.changeDetection.markForCheck(),this.onLeave.emit(this.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.rate=function(e){!this.readonly&&e>=0&&e<=this.range.length&&(this.writeValue(e),this.onChange(e))},e.prototype.buildTemplateObjects=function(e){for(var t=[],n=0;n<e;n++)t.push({index:n,title:this.titles[n]||n+1});return t},e.decorators=[{type:t.Component,args:[{selector:"rating",template:'<span (mouseleave)="reset()" (keydown)="onKeydown($event)" tabindex="0"\n role="slider" aria-valuemin="0"
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-bootstrap/rating",["exports","@angular/core","@angular/forms","@angular/common"],t):t(((e=e||self)["ngx-bootstrap"]=e["ngx-bootstrap"]||{},e["ngx-bootstrap"].rating={}),e.ng.core,e.ng.forms,e.ng.common)}(this,(function(e,t,n,o){"use strict";var r=function(){function e(){this.ariaLabel="rating"}return e.decorators=[{type:t.Injectable}],e}();var a={provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0},i=function(){function e(e,n){this.changeDetection=e,this.max=5,this.onHover=new t.EventEmitter,this.onLeave=new t.EventEmitter,this.onChange=Function.prototype,this.onTouched=Function.prototype,Object.assign(this,n)}return e.prototype.onKeydown=function(e){if(-1!==[37,38,39,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var t=38===e.which||39===e.which?1:-1;this.rate(this.value+t)}},e.prototype.ngOnInit=function(){this.max=void 0!==this.max?this.max:5,this.titles=void 0!==this.titles&&this.titles.length>0?this.titles:[],this.range=this.buildTemplateObjects(this.max)},e.prototype.writeValue=function(e){if(e%1!==e)return this.value=Math.round(e),this.preValue=e,void this.changeDetection.markForCheck();this.preValue=e,this.value=e,this.changeDetection.markForCheck()},e.prototype.enter=function(e){this.readonly||(this.value=e,this.changeDetection.markForCheck(),this.onHover.emit(e))},e.prototype.reset=function(){this.value=Math.round(this.preValue),this.changeDetection.markForCheck(),this.onLeave.emit(this.value)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.rate=function(e){!this.readonly&&e>=0&&e<=this.range.length&&(this.writeValue(e),this.onChange(e))},e.prototype.buildTemplateObjects=function(e){for(var t=[],n=0;n<e;n++)t.push({index:n,title:this.titles[n]||n+1});return t},e.decorators=[{type:t.Component,args:[{selector:"rating",template:'<span (mouseleave)="reset()" (keydown)="onKeydown($event)" tabindex="0"\n role="slider" aria-valuemin="0"\n [attr.aria-label]="ariaLabel"\n [attr.aria-valuemax]="range.length"\n [attr.aria-valuenow]="value">\n <ng-template #star let-value="value" let-index="index">{{ index < value ? \'★\' : \'☆\' }}</ng-template>\n <ng-template ngFor let-r [ngForOf]="range" let-index="index">\n <span class="sr-only">({{ index < value ? \'*\' : \' \' }})</span>\n <span class="bs-rating-star"\n (mouseenter)="enter(index + 1)"\n (click)="rate(index + 1)"\n [title]="r.title"\n [style.cursor]="readonly ? \'default\' : \'pointer\'"\n [class.active]="index < value">\n <ng-template [ngTemplateOutlet]="customTemplate || star"\n [ngTemplateOutletContext]="{index: index, value: value}">\n </ng-template>\n </span>\n </ng-template>\n</span>\n',providers:[a],changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:r}]},e.propDecorators={max:[{type:t.Input}],readonly:[{type:t.Input}],titles:[{type:t.Input}],customTemplate:[{type:t.Input}],onHover:[{type:t.Output}],onLeave:[{type:t.Output}],onKeydown:[{type:t.HostListener,args:["keydown",["$event"]]}]},e}();var s=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[r]}},e.decorators=[{type:t.NgModule,args:[{imports:[o.CommonModule],declarations:[i],exports:[i]}]}],e}();e.RatingComponent=i,e.RatingConfig=r,e.RatingModule=s,e.ɵa=a,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2
2
|
//# sourceMappingURL=ngx-bootstrap-rating.umd.min.js.map
|