ngx-bootstrap 5.6.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +127 -0
- package/README.md +8 -1
- package/accordion/accordion-group.component.d.ts +3 -2
- package/accordion/accordion.module.d.ts +1 -1
- package/accordion/bundles/ngx-bootstrap-accordion.umd.js +5 -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/esm2015/accordion.config.js +6 -2
- package/accordion/esm2015/accordion.module.js +2 -3
- package/accordion/esm5/accordion.config.js +6 -2
- package/accordion/esm5/accordion.module.js +2 -3
- package/accordion/fesm2015/ngx-bootstrap-accordion.js +6 -3
- package/accordion/fesm2015/ngx-bootstrap-accordion.js.map +1 -1
- package/accordion/fesm5/ngx-bootstrap-accordion.js +6 -3
- package/accordion/fesm5/ngx-bootstrap-accordion.js.map +1 -1
- package/accordion/ngx-bootstrap-accordion.metadata.json +1 -1
- package/accordion/package.json +2 -2
- package/alert/alert.module.d.ts +1 -1
- package/alert/bundles/ngx-bootstrap-alert.umd.js +5 -2
- package/alert/bundles/ngx-bootstrap-alert.umd.js.map +1 -1
- package/alert/bundles/ngx-bootstrap-alert.umd.min.js +2 -2
- package/alert/bundles/ngx-bootstrap-alert.umd.min.js.map +1 -1
- package/alert/esm2015/alert.component.js +3 -3
- package/alert/esm2015/alert.config.js +6 -2
- package/alert/esm2015/alert.module.js +2 -3
- package/alert/esm5/alert.component.js +3 -3
- package/alert/esm5/alert.config.js +6 -2
- package/alert/esm5/alert.module.js +2 -3
- package/alert/fesm2015/ngx-bootstrap-alert.js +6 -3
- package/alert/fesm2015/ngx-bootstrap-alert.js.map +1 -1
- package/alert/fesm5/ngx-bootstrap-alert.js +6 -3
- package/alert/fesm5/ngx-bootstrap-alert.js.map +1 -1
- package/alert/ngx-bootstrap-alert.metadata.json +1 -1
- package/alert/package.json +2 -2
- package/buttons/bundles/ngx-bootstrap-buttons.umd.js +293 -16
- 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-checkbox.directive.d.ts +2 -2
- package/buttons/button-radio-group.directive.d.ts +12 -1
- package/buttons/button-radio.directive.d.ts +19 -7
- package/buttons/buttons.module.d.ts +1 -1
- package/buttons/esm2015/button-radio-group.directive.js +140 -3
- package/buttons/esm2015/button-radio.directive.js +98 -18
- package/buttons/esm2015/buttons.module.js +1 -1
- package/buttons/esm5/button-radio-group.directive.js +171 -3
- package/buttons/esm5/button-radio.directive.js +126 -17
- package/buttons/esm5/buttons.module.js +1 -1
- package/buttons/fesm2015/ngx-bootstrap-buttons.js +235 -18
- package/buttons/fesm2015/ngx-bootstrap-buttons.js.map +1 -1
- package/buttons/fesm5/ngx-bootstrap-buttons.js +294 -17
- 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 +5 -3
- package/carousel/bundles/ngx-bootstrap-carousel.umd.js.map +1 -1
- package/carousel/bundles/ngx-bootstrap-carousel.umd.min.js +1 -1
- package/carousel/bundles/ngx-bootstrap-carousel.umd.min.js.map +1 -1
- package/carousel/carousel.component.d.ts +7 -5
- package/carousel/carousel.module.d.ts +1 -1
- package/carousel/esm2015/carousel.config.js +6 -2
- package/carousel/esm2015/carousel.module.js +2 -4
- package/carousel/esm5/carousel.component.js +4 -4
- package/carousel/esm5/carousel.config.js +6 -2
- package/carousel/esm5/carousel.module.js +2 -4
- package/carousel/fesm2015/ngx-bootstrap-carousel.js +6 -4
- package/carousel/fesm2015/ngx-bootstrap-carousel.js.map +1 -1
- package/carousel/fesm5/ngx-bootstrap-carousel.js +6 -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/chronos/bundles/ngx-bootstrap-chronos.umd.js +90 -73
- package/chronos/bundles/ngx-bootstrap-chronos.umd.js.map +1 -1
- package/chronos/bundles/ngx-bootstrap-chronos.umd.min.js +69 -1
- package/chronos/bundles/ngx-bootstrap-chronos.umd.min.js.map +1 -1
- package/chronos/esm2015/create/from-anything.js +2 -2
- package/chronos/esm2015/duration/valid.js +4 -6
- package/chronos/esm2015/i18n/ar.js +1 -4
- package/chronos/esm2015/i18n/bg.js +18 -20
- package/chronos/esm2015/i18n/cs.js +45 -47
- package/chronos/esm2015/i18n/et.js +1 -3
- package/chronos/esm2015/i18n/th-be.js +21 -1
- package/chronos/esm2015/locale/locale.class.js +5 -3
- package/chronos/esm5/create/from-anything.js +2 -2
- package/chronos/esm5/duration/valid.js +4 -6
- package/chronos/esm5/i18n/ar.js +1 -4
- package/chronos/esm5/i18n/bg.js +18 -20
- package/chronos/esm5/i18n/cs.js +45 -47
- package/chronos/esm5/i18n/et.js +1 -3
- package/chronos/esm5/i18n/th-be.js +21 -1
- package/chronos/esm5/locale/locale.class.js +6 -3
- package/chronos/esm5/test/chain.js +4 -4
- package/chronos/fesm2015/ngx-bootstrap-chronos.js +89 -73
- package/chronos/fesm2015/ngx-bootstrap-chronos.js.map +1 -1
- package/chronos/fesm5/ngx-bootstrap-chronos.js +90 -73
- package/chronos/fesm5/ngx-bootstrap-chronos.js.map +1 -1
- package/chronos/locale/locale.class.d.ts +4 -3
- package/chronos/package.json +2 -2
- package/collapse/bundles/ngx-bootstrap-collapse.umd.js.map +1 -1
- package/collapse/bundles/ngx-bootstrap-collapse.umd.min.js.map +1 -1
- package/collapse/collapse.directive.d.ts +3 -2
- package/collapse/collapse.module.d.ts +1 -1
- package/collapse/esm2015/collapse.module.js +1 -1
- package/collapse/esm5/collapse.module.js +1 -1
- package/collapse/fesm2015/ngx-bootstrap-collapse.js.map +1 -1
- package/collapse/fesm5/ngx-bootstrap-collapse.js.map +1 -1
- package/collapse/package.json +2 -2
- package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js +5 -4
- 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/component-loader.class.d.ts +4 -3
- package/component-loader/esm2015/component-loader.class.js +5 -5
- package/component-loader/esm5/component-loader.class.js +6 -5
- package/component-loader/fesm2015/ngx-bootstrap-component-loader.js +4 -4
- package/component-loader/fesm2015/ngx-bootstrap-component-loader.js.map +1 -1
- package/component-loader/fesm5/ngx-bootstrap-component-loader.js +5 -4
- 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 +20 -8
- package/datepicker/bs-datepicker-inline.component.d.ts +6 -2
- package/datepicker/bs-datepicker.component.d.ts +14 -5
- package/datepicker/bs-datepicker.config.d.ts +41 -1
- package/datepicker/bs-datepicker.css +126 -5
- package/datepicker/bs-datepicker.css.map +4 -4
- package/datepicker/bs-datepicker.module.d.ts +1 -1
- package/datepicker/bs-datepicker.scss +25 -5
- package/datepicker/bs-daterangepicker-inline.component.d.ts +1 -1
- package/datepicker/bs-daterangepicker.component.d.ts +9 -4
- package/datepicker/bs-locale.service.d.ts +3 -3
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js +604 -93
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js.map +1 -1
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js +2 -2
- package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js.map +1 -1
- package/datepicker/datepicker-inner.component.d.ts +2 -1
- package/datepicker/datepicker.component.d.ts +2 -1
- package/datepicker/datepicker.module.d.ts +1 -1
- package/datepicker/daypicker.component.d.ts +1 -1
- package/datepicker/engine/flag-days-calendar.d.ts +2 -1
- package/datepicker/engine/flag-months-calendar.d.ts +1 -0
- package/datepicker/engine/flag-years-calendar.d.ts +1 -0
- package/datepicker/esm2015/base/bs-datepicker-container.js +38 -1
- package/datepicker/esm2015/bs-datepicker-inline.component.js +12 -1
- package/datepicker/esm2015/bs-datepicker-inline.config.js +6 -2
- package/datepicker/esm2015/bs-datepicker-input.directive.js +9 -1
- package/datepicker/esm2015/bs-datepicker.component.js +45 -6
- package/datepicker/esm2015/bs-datepicker.config.js +88 -2
- package/datepicker/esm2015/bs-datepicker.module.js +3 -10
- package/datepicker/esm2015/bs-daterangepicker-inline.component.js +3 -2
- package/datepicker/esm2015/bs-daterangepicker-inline.config.js +6 -2
- package/datepicker/esm2015/bs-daterangepicker-input.directive.js +11 -3
- package/datepicker/esm2015/bs-daterangepicker.component.js +36 -7
- package/datepicker/esm2015/bs-daterangepicker.config.js +6 -2
- package/datepicker/esm2015/datepicker.config.js +6 -2
- package/datepicker/esm2015/datepicker.module.js +1 -1
- package/datepicker/esm2015/engine/flag-days-calendar.js +22 -3
- package/datepicker/esm2015/engine/flag-months-calendar.js +14 -3
- package/datepicker/esm2015/engine/flag-years-calendar.js +14 -3
- package/datepicker/esm2015/models/index.js +13 -1
- package/datepicker/esm2015/public_api.js +1 -1
- package/datepicker/esm2015/reducer/bs-datepicker.actions.js +14 -1
- package/datepicker/esm2015/reducer/bs-datepicker.effects.js +27 -33
- package/datepicker/esm2015/reducer/bs-datepicker.reducer.js +10 -2
- package/datepicker/esm2015/reducer/bs-datepicker.state.js +3 -1
- package/datepicker/esm2015/themes/bs/bs-custom-dates-view.component.js +5 -2
- package/datepicker/esm2015/themes/bs/bs-datepicker-container.component.js +57 -5
- package/datepicker/esm2015/themes/bs/bs-datepicker-inline-container.component.js +2 -2
- package/datepicker/esm2015/themes/bs/bs-daterangepicker-container.component.js +73 -4
- package/datepicker/esm2015/themes/bs/bs-daterangepicker-inline-container.component.js +2 -2
- package/datepicker/esm2015/themes/bs/bs-days-calendar-view.component.js +42 -4
- package/datepicker/esm5/base/bs-datepicker-container.js +52 -1
- package/datepicker/esm5/bs-datepicker-inline.component.js +12 -1
- package/datepicker/esm5/bs-datepicker-inline.config.js +8 -4
- package/datepicker/esm5/bs-datepicker-input.directive.js +9 -1
- package/datepicker/esm5/bs-datepicker.component.js +58 -8
- package/datepicker/esm5/bs-datepicker.config.js +88 -2
- package/datepicker/esm5/bs-datepicker.module.js +3 -10
- package/datepicker/esm5/bs-daterangepicker-inline.component.js +3 -2
- package/datepicker/esm5/bs-daterangepicker-inline.config.js +8 -4
- package/datepicker/esm5/bs-daterangepicker-input.directive.js +11 -3
- package/datepicker/esm5/bs-daterangepicker.component.js +49 -9
- package/datepicker/esm5/bs-daterangepicker.config.js +8 -4
- package/datepicker/esm5/datepicker.config.js +6 -2
- package/datepicker/esm5/datepicker.module.js +1 -1
- package/datepicker/esm5/engine/flag-days-calendar.js +22 -3
- package/datepicker/esm5/engine/flag-months-calendar.js +14 -3
- package/datepicker/esm5/engine/flag-years-calendar.js +14 -3
- package/datepicker/esm5/engine/format-days-calendar.js +3 -3
- package/datepicker/esm5/models/index.js +13 -1
- package/datepicker/esm5/public_api.js +1 -1
- package/datepicker/esm5/reducer/bs-datepicker.actions.js +18 -1
- package/datepicker/esm5/reducer/bs-datepicker.effects.js +33 -35
- package/datepicker/esm5/reducer/bs-datepicker.reducer.js +10 -2
- package/datepicker/esm5/reducer/bs-datepicker.state.js +3 -1
- package/datepicker/esm5/reducer/bs-datepicker.store.js +3 -3
- package/datepicker/esm5/themes/bs/bs-custom-dates-view.component.js +5 -2
- package/datepicker/esm5/themes/bs/bs-datepicker-container.component.js +74 -8
- package/datepicker/esm5/themes/bs/bs-datepicker-inline-container.component.js +4 -4
- package/datepicker/esm5/themes/bs/bs-daterangepicker-container.component.js +92 -7
- package/datepicker/esm5/themes/bs/bs-daterangepicker-inline-container.component.js +4 -4
- package/datepicker/esm5/themes/bs/bs-days-calendar-view.component.js +25 -2
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.js +549 -96
- package/datepicker/fesm2015/ngx-bootstrap-datepicker.js.map +1 -1
- package/datepicker/fesm5/ngx-bootstrap-datepicker.js +606 -94
- package/datepicker/fesm5/ngx-bootstrap-datepicker.js.map +1 -1
- package/datepicker/models/index.d.ts +5 -0
- package/datepicker/monthpicker.component.d.ts +1 -1
- package/datepicker/ngx-bootstrap-datepicker.metadata.json +1 -1
- package/datepicker/package.json +2 -2
- package/datepicker/public_api.d.ts +1 -1
- package/datepicker/reducer/bs-datepicker.actions.d.ts +3 -1
- package/datepicker/reducer/bs-datepicker.effects.d.ts +2 -1
- package/datepicker/reducer/bs-datepicker.state.d.ts +2 -1
- package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +1 -0
- package/datepicker/themes/bs/bs-datepicker-container.component.d.ts +9 -5
- package/datepicker/themes/bs/bs-daterangepicker-container.component.d.ts +9 -5
- package/datepicker/themes/bs/bs-days-calendar-view.component.d.ts +2 -0
- package/datepicker/utils/scss/mixins.css.map +2 -2
- package/datepicker/utils/scss/mixins.scss +98 -0
- package/datepicker/utils/scss/variables.css.map +1 -1
- package/datepicker/utils/scss/variables.scss +14 -0
- package/datepicker/yearpicker.component.d.ts +1 -1
- package/dropdown/bs-dropdown-container.component.d.ts +1 -1
- package/dropdown/bs-dropdown.directive.d.ts +12 -7
- package/dropdown/bs-dropdown.module.d.ts +1 -1
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js +13 -8
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js.map +1 -1
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js +1 -1
- package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js.map +1 -1
- package/dropdown/esm2015/bs-dropdown.config.js +6 -2
- package/dropdown/esm2015/bs-dropdown.directive.js +8 -3
- package/dropdown/esm2015/bs-dropdown.module.js +2 -7
- package/dropdown/esm5/bs-dropdown-toggle.directive.js +3 -3
- package/dropdown/esm5/bs-dropdown.config.js +6 -2
- package/dropdown/esm5/bs-dropdown.directive.js +11 -5
- package/dropdown/esm5/bs-dropdown.module.js +2 -7
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.js +13 -9
- package/dropdown/fesm2015/ngx-bootstrap-dropdown.js.map +1 -1
- package/dropdown/fesm5/ngx-bootstrap-dropdown.js +14 -9
- 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/package.json +2 -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.map +1 -1
- package/mini-ngrx/esm5/state.class.js +3 -3
- package/mini-ngrx/esm5/store.class.js +3 -3
- package/mini-ngrx/fesm5/ngx-bootstrap-mini-ngrx.js.map +1 -1
- package/mini-ngrx/package.json +2 -2
- package/modal/bs-modal-ref.service.d.ts +15 -2
- package/modal/bs-modal.service.d.ts +7 -4
- package/modal/bundles/ngx-bootstrap-modal.umd.js +154 -59
- package/modal/bundles/ngx-bootstrap-modal.umd.js.map +1 -1
- package/modal/bundles/ngx-bootstrap-modal.umd.min.js +1 -1
- package/modal/bundles/ngx-bootstrap-modal.umd.min.js.map +1 -1
- package/modal/esm2015/bs-modal-ref.service.js +20 -1
- package/modal/esm2015/bs-modal.service.js +102 -47
- package/modal/esm2015/modal-container.component.js +10 -2
- package/modal/esm2015/modal-options.class.js +14 -3
- package/modal/esm2015/modal.directive.js +10 -7
- package/modal/esm2015/modal.module.js +1 -1
- package/modal/esm2015/models/index.js +3 -1
- package/modal/esm2015/ngx-bootstrap-modal.js +2 -2
- package/modal/esm2015/public_api.js +2 -2
- package/modal/esm5/bs-modal-ref.service.js +19 -1
- package/modal/esm5/bs-modal.service.js +109 -57
- package/modal/esm5/modal-container.component.js +13 -2
- package/modal/esm5/modal-options.class.js +14 -3
- package/modal/esm5/modal.directive.js +9 -7
- package/modal/esm5/modal.module.js +1 -1
- package/modal/esm5/models/index.js +3 -1
- package/modal/esm5/ngx-bootstrap-modal.js +2 -2
- package/modal/esm5/public_api.js +2 -2
- package/modal/fesm2015/ngx-bootstrap-modal.js +148 -52
- package/modal/fesm2015/ngx-bootstrap-modal.js.map +1 -1
- package/modal/fesm5/ngx-bootstrap-modal.js +155 -61
- package/modal/fesm5/ngx-bootstrap-modal.js.map +1 -1
- package/modal/modal-backdrop.component.d.ts +4 -2
- package/modal/modal-container.component.d.ts +1 -0
- package/modal/modal-options.class.d.ts +8 -3
- package/modal/modal.directive.d.ts +5 -4
- package/modal/modal.module.d.ts +2 -2
- package/modal/models/index.d.ts +1 -0
- package/modal/ngx-bootstrap-modal.metadata.json +1 -1
- package/modal/package.json +2 -2
- package/modal/public_api.d.ts +1 -1
- package/package.json +2 -2
- package/pagination/bundles/ngx-bootstrap-pagination.umd.js +5 -2
- 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/pagination.config.js +6 -2
- package/pagination/esm2015/pagination.module.js +2 -3
- package/pagination/esm5/pagination.config.js +6 -2
- package/pagination/esm5/pagination.module.js +2 -3
- package/pagination/fesm2015/ngx-bootstrap-pagination.js +6 -3
- package/pagination/fesm2015/ngx-bootstrap-pagination.js.map +1 -1
- package/pagination/fesm5/ngx-bootstrap-pagination.js +6 -3
- package/pagination/fesm5/ngx-bootstrap-pagination.js.map +1 -1
- package/pagination/ngx-bootstrap-pagination.metadata.json +1 -1
- package/pagination/package.json +2 -2
- package/pagination/pager.component.d.ts +8 -4
- package/pagination/pagination.component.d.ts +8 -4
- package/pagination/pagination.module.d.ts +1 -1
- package/popover/bundles/ngx-bootstrap-popover.umd.js +55 -3
- 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-container.component.js +4 -1
- package/popover/esm2015/popover.config.js +6 -2
- package/popover/esm2015/popover.directive.js +39 -2
- package/popover/esm2015/popover.module.js +2 -3
- package/popover/esm5/popover-container.component.js +4 -1
- package/popover/esm5/popover.config.js +6 -2
- package/popover/esm5/popover.directive.js +48 -2
- package/popover/esm5/popover.module.js +2 -3
- package/popover/fesm2015/ngx-bootstrap-popover.js +47 -4
- package/popover/fesm2015/ngx-bootstrap-popover.js.map +1 -1
- package/popover/fesm5/ngx-bootstrap-popover.js +56 -4
- 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-container.component.d.ts +2 -1
- package/popover/popover.directive.d.ts +10 -1
- package/popover/popover.module.d.ts +1 -1
- package/positioning/bundles/ngx-bootstrap-positioning.umd.js +7 -7
- package/positioning/bundles/ngx-bootstrap-positioning.umd.js.map +1 -1
- package/positioning/bundles/ngx-bootstrap-positioning.umd.min.js +1 -1
- package/positioning/bundles/ngx-bootstrap-positioning.umd.min.js.map +1 -1
- package/positioning/esm2015/modifiers/flip.js +3 -3
- package/positioning/esm2015/modifiers/preventOverflow.js +2 -2
- package/positioning/esm2015/modifiers/shift.js +2 -2
- package/positioning/esm2015/utils/computeAutoPlacement.js +2 -2
- package/positioning/esm2015/utils/getClientRect.js +2 -2
- package/positioning/esm5/modifiers/flip.js +4 -4
- package/positioning/esm5/modifiers/preventOverflow.js +4 -4
- package/positioning/esm5/modifiers/shift.js +3 -3
- package/positioning/esm5/utils/computeAutoPlacement.js +3 -3
- package/positioning/esm5/utils/getClientRect.js +3 -3
- package/positioning/fesm2015/ngx-bootstrap-positioning.js +6 -6
- package/positioning/fesm2015/ngx-bootstrap-positioning.js.map +1 -1
- package/positioning/fesm5/ngx-bootstrap-positioning.js +7 -7
- package/positioning/fesm5/ngx-bootstrap-positioning.js.map +1 -1
- package/positioning/package.json +2 -2
- package/positioning/positioning.service.d.ts +1 -1
- package/progressbar/bar.component.d.ts +4 -5
- package/progressbar/bundles/ngx-bootstrap-progressbar.umd.js +45 -66
- 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/esm2015/bar.component.js +33 -48
- package/progressbar/esm2015/progressbar.component.js +5 -8
- package/progressbar/esm2015/progressbar.config.js +6 -2
- package/progressbar/esm2015/progressbar.module.js +2 -3
- package/progressbar/esm5/bar.component.js +37 -58
- package/progressbar/esm5/progressbar.component.js +5 -8
- package/progressbar/esm5/progressbar.config.js +6 -2
- package/progressbar/esm5/progressbar.module.js +2 -3
- package/progressbar/fesm2015/ngx-bootstrap-progressbar.js +42 -57
- package/progressbar/fesm2015/ngx-bootstrap-progressbar.js.map +1 -1
- package/progressbar/fesm5/ngx-bootstrap-progressbar.js +46 -67
- package/progressbar/fesm5/ngx-bootstrap-progressbar.js.map +1 -1
- package/progressbar/ngx-bootstrap-progressbar.metadata.json +1 -1
- package/progressbar/package.json +2 -2
- package/progressbar/progressbar.component.d.ts +7 -6
- package/progressbar/progressbar.module.d.ts +1 -1
- package/rating/bundles/ngx-bootstrap-rating.umd.js +5 -2
- 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/rating.config.js +6 -2
- package/rating/esm2015/rating.module.js +2 -3
- package/rating/esm5/rating.config.js +6 -2
- package/rating/esm5/rating.module.js +2 -3
- package/rating/fesm2015/ngx-bootstrap-rating.js +6 -3
- package/rating/fesm2015/ngx-bootstrap-rating.js.map +1 -1
- package/rating/fesm5/ngx-bootstrap-rating.js +6 -3
- 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/rating.module.d.ts +1 -1
- package/schematics/ng-add/index.spec.js +30 -27
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/schematics/utils/index.js +18 -5
- package/schematics/utils/index.js.map +1 -1
- package/sortable/bundles/ngx-bootstrap-sortable.umd.js.map +1 -1
- package/sortable/bundles/ngx-bootstrap-sortable.umd.min.js.map +1 -1
- package/sortable/esm2015/sortable.module.js +1 -1
- package/sortable/esm5/sortable.component.js +4 -4
- package/sortable/esm5/sortable.module.js +1 -1
- package/sortable/fesm2015/ngx-bootstrap-sortable.js.map +1 -1
- package/sortable/fesm5/ngx-bootstrap-sortable.js.map +1 -1
- package/sortable/package.json +2 -2
- package/sortable/sortable.component.d.ts +2 -1
- package/sortable/sortable.module.d.ts +1 -1
- package/tabs/bundles/ngx-bootstrap-tabs.umd.js +40 -3
- 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 +2 -2
- package/tabs/esm2015/tabs.module.js +2 -3
- package/tabs/esm2015/tabset.component.js +22 -1
- package/tabs/esm2015/tabset.config.js +15 -2
- package/tabs/esm5/tab.directive.js +2 -2
- package/tabs/esm5/tabs.module.js +2 -3
- package/tabs/esm5/tabset.component.js +26 -1
- package/tabs/esm5/tabset.config.js +15 -2
- package/tabs/fesm2015/ngx-bootstrap-tabs.js +37 -4
- package/tabs/fesm2015/ngx-bootstrap-tabs.js.map +1 -1
- package/tabs/fesm5/ngx-bootstrap-tabs.js +41 -4
- package/tabs/fesm5/ngx-bootstrap-tabs.js.map +1 -1
- package/tabs/ng-transclude.directive.d.ts +2 -2
- package/tabs/ngx-bootstrap-tabs.metadata.json +1 -1
- package/tabs/package.json +2 -2
- package/tabs/tab.directive.d.ts +5 -3
- package/tabs/tabs.module.d.ts +1 -1
- package/tabs/tabset.component.d.ts +9 -3
- package/tabs/tabset.config.d.ts +2 -0
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.js +11 -6
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.js.map +1 -1
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.min.js +1 -1
- package/timepicker/bundles/ngx-bootstrap-timepicker.umd.min.js.map +1 -1
- package/timepicker/esm2015/timepicker-controls.util.js +4 -2
- package/timepicker/esm2015/timepicker.component.js +2 -2
- package/timepicker/esm2015/timepicker.config.js +8 -4
- package/timepicker/esm2015/timepicker.module.js +2 -3
- package/timepicker/esm5/reducer/timepicker.store.js +3 -3
- package/timepicker/esm5/timepicker-controls.util.js +4 -2
- package/timepicker/esm5/timepicker.component.js +2 -2
- package/timepicker/esm5/timepicker.config.js +8 -4
- package/timepicker/esm5/timepicker.module.js +2 -3
- package/timepicker/fesm2015/ngx-bootstrap-timepicker.js +12 -7
- package/timepicker/fesm2015/ngx-bootstrap-timepicker.js.map +1 -1
- package/timepicker/fesm5/ngx-bootstrap-timepicker.js +12 -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 -3
- package/timepicker/timepicker.config.d.ts +1 -1
- package/timepicker/timepicker.module.d.ts +1 -1
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js +5 -2
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js.map +1 -1
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js +1 -1
- package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js.map +1 -1
- package/tooltip/esm2015/tooltip.config.js +6 -2
- package/tooltip/esm2015/tooltip.directive.js +3 -3
- package/tooltip/esm2015/tooltip.module.js +2 -3
- package/tooltip/esm5/tooltip.config.js +6 -2
- package/tooltip/esm5/tooltip.directive.js +3 -3
- package/tooltip/esm5/tooltip.module.js +2 -3
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.js +6 -3
- package/tooltip/fesm2015/ngx-bootstrap-tooltip.js.map +1 -1
- package/tooltip/fesm5/ngx-bootstrap-tooltip.js +6 -3
- 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-container.component.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +15 -10
- package/tooltip/tooltip.module.d.ts +1 -1
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js +170 -19
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js.map +1 -1
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js +1 -1
- package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js.map +1 -1
- package/typeahead/esm2015/typeahead-utils.js +35 -4
- package/typeahead/esm2015/typeahead.config.js +6 -2
- package/typeahead/esm2015/typeahead.directive.js +121 -16
- package/typeahead/esm2015/typeahead.module.js +2 -3
- package/typeahead/esm5/typeahead-utils.js +37 -6
- package/typeahead/esm5/typeahead.config.js +6 -2
- package/typeahead/esm5/typeahead.directive.js +135 -18
- package/typeahead/esm5/typeahead.module.js +2 -3
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.js +160 -21
- package/typeahead/fesm2015/ngx-bootstrap-typeahead.js.map +1 -1
- package/typeahead/fesm5/ngx-bootstrap-typeahead.js +172 -21
- package/typeahead/fesm5/ngx-bootstrap-typeahead.js.map +1 -1
- package/typeahead/ngx-bootstrap-typeahead.metadata.json +1 -1
- package/typeahead/package.json +2 -2
- package/typeahead/typeahead-container.component.d.ts +14 -12
- package/typeahead/typeahead-utils.d.ts +1 -1
- package/typeahead/typeahead.directive.d.ts +20 -1
- package/typeahead/typeahead.module.d.ts +1 -1
- package/utils/package.json +2 -2
@@ -20,8 +20,11 @@
|
|
20
20
|
this.max = 100;
|
21
21
|
}
|
22
22
|
ProgressbarConfig.decorators = [
|
23
|
-
{ type: core.Injectable
|
23
|
+
{ type: core.Injectable, args: [{
|
24
|
+
providedIn: 'root'
|
25
|
+
},] }
|
24
26
|
];
|
27
|
+
/** @nocollapse */ ProgressbarConfig.ɵprov = core["ɵɵdefineInjectable"]({ factory: function ProgressbarConfig_Factory() { return new ProgressbarConfig(); }, token: ProgressbarConfig, providedIn: "root" });
|
25
28
|
return ProgressbarConfig;
|
26
29
|
}());
|
27
30
|
if (false) {
|
@@ -44,10 +47,10 @@
|
|
44
47
|
var ProgressbarComponent = /** @class */ (function () {
|
45
48
|
function ProgressbarComponent(config) {
|
46
49
|
this.isStacked = false;
|
50
|
+
this._max = 100;
|
47
51
|
this.addClass = true;
|
48
52
|
/* tslint:disable-next-line:no-any */
|
49
53
|
this.bars = [];
|
50
|
-
this._max = 100;
|
51
54
|
Object.assign(this, config);
|
52
55
|
}
|
53
56
|
Object.defineProperty(ProgressbarComponent.prototype, "animate", {
|
@@ -170,7 +173,7 @@
|
|
170
173
|
ProgressbarComponent.decorators = [
|
171
174
|
{ type: core.Component, args: [{
|
172
175
|
selector: 'progressbar',
|
173
|
-
template: "<bar [type]=\"type\" [value]=\"_value\" *ngIf=\"!isStacked\">\n <ng-content></ng-content>\n</bar>\n<ng-template [ngIf]=\"isStacked\">\n <bar *ngFor=\"let item of _value\" [type]=\"item.type\" [value]=\"item.value\">{{ item.label }}</bar>\n</ng-template>\n",
|
176
|
+
template: "<bar [type]=\"type\" [value]=\"_value\" [max]=\"_max\" *ngIf=\"!isStacked\">\n <ng-content></ng-content>\n</bar>\n<ng-template [ngIf]=\"isStacked\">\n <bar *ngFor=\"let item of _value\" [type]=\"item.type\" [value]=\"item.value\" [max]=\"item.max\">{{ item.label }}</bar>\n</ng-template>\n",
|
174
177
|
styles: ["\n :host {\n width: 100%;\n display: flex;\n }\n "]
|
175
178
|
}] }
|
176
179
|
];
|
@@ -201,16 +204,13 @@
|
|
201
204
|
/** @type {?} */
|
202
205
|
ProgressbarComponent.prototype._animate;
|
203
206
|
/** @type {?} */
|
207
|
+
ProgressbarComponent.prototype._max;
|
208
|
+
/** @type {?} */
|
204
209
|
ProgressbarComponent.prototype._value;
|
205
210
|
/** @type {?} */
|
206
211
|
ProgressbarComponent.prototype.addClass;
|
207
212
|
/** @type {?} */
|
208
213
|
ProgressbarComponent.prototype.bars;
|
209
|
-
/**
|
210
|
-
* @type {?}
|
211
|
-
* @protected
|
212
|
-
*/
|
213
|
-
ProgressbarComponent.prototype._max;
|
214
214
|
}
|
215
215
|
|
216
216
|
/**
|
@@ -227,49 +227,6 @@
|
|
227
227
|
this.percent = 0;
|
228
228
|
this.progress = progress;
|
229
229
|
}
|
230
|
-
Object.defineProperty(BarComponent.prototype, "type", {
|
231
|
-
/** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */
|
232
|
-
get: /**
|
233
|
-
* provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger`
|
234
|
-
* @return {?}
|
235
|
-
*/
|
236
|
-
function () {
|
237
|
-
return this._type;
|
238
|
-
},
|
239
|
-
set: /**
|
240
|
-
* @param {?} v
|
241
|
-
* @return {?}
|
242
|
-
*/
|
243
|
-
function (v) {
|
244
|
-
this._type = v;
|
245
|
-
this.applyTypeClasses();
|
246
|
-
},
|
247
|
-
enumerable: true,
|
248
|
-
configurable: true
|
249
|
-
});
|
250
|
-
Object.defineProperty(BarComponent.prototype, "value", {
|
251
|
-
/** current value of progress bar */
|
252
|
-
get: /**
|
253
|
-
* current value of progress bar
|
254
|
-
* @return {?}
|
255
|
-
*/
|
256
|
-
function () {
|
257
|
-
return this._value;
|
258
|
-
},
|
259
|
-
set: /**
|
260
|
-
* @param {?} v
|
261
|
-
* @return {?}
|
262
|
-
*/
|
263
|
-
function (v) {
|
264
|
-
if (!v && v !== 0) {
|
265
|
-
return;
|
266
|
-
}
|
267
|
-
this._value = v;
|
268
|
-
this.recalculatePercentage();
|
269
|
-
},
|
270
|
-
enumerable: true,
|
271
|
-
configurable: true
|
272
|
-
});
|
273
230
|
Object.defineProperty(BarComponent.prototype, "setBarWidth", {
|
274
231
|
get: /**
|
275
232
|
* @return {?}
|
@@ -309,6 +266,27 @@
|
|
309
266
|
function () {
|
310
267
|
this.progress.removeBar(this);
|
311
268
|
};
|
269
|
+
/**
|
270
|
+
* @param {?} changes
|
271
|
+
* @return {?}
|
272
|
+
*/
|
273
|
+
BarComponent.prototype.ngOnChanges = /**
|
274
|
+
* @param {?} changes
|
275
|
+
* @return {?}
|
276
|
+
*/
|
277
|
+
function (changes) {
|
278
|
+
if (changes.value) {
|
279
|
+
if (!changes.value.currentValue && changes.value.currentValue !== 0) {
|
280
|
+
return;
|
281
|
+
}
|
282
|
+
this.value = changes.value.currentValue;
|
283
|
+
this.recalculatePercentage();
|
284
|
+
}
|
285
|
+
if (changes.type) {
|
286
|
+
this.type = changes.type.currentValue;
|
287
|
+
this.applyTypeClasses();
|
288
|
+
}
|
289
|
+
};
|
312
290
|
/**
|
313
291
|
* @return {?}
|
314
292
|
*/
|
@@ -349,14 +327,14 @@
|
|
349
327
|
this.renderer.removeClass(this.el.nativeElement, bgClass);
|
350
328
|
this._prevType = null;
|
351
329
|
}
|
352
|
-
if (this.
|
330
|
+
if (this.type) {
|
353
331
|
/** @type {?} */
|
354
|
-
var barTypeClass = "progress-bar-" + this.
|
332
|
+
var barTypeClass = "progress-bar-" + this.type;
|
355
333
|
/** @type {?} */
|
356
|
-
var bgClass = "bg-" + this.
|
334
|
+
var bgClass = "bg-" + this.type;
|
357
335
|
this.renderer.addClass(this.el.nativeElement, barTypeClass);
|
358
336
|
this.renderer.addClass(this.el.nativeElement, bgClass);
|
359
|
-
this._prevType = this.
|
337
|
+
this._prevType = this.type;
|
360
338
|
}
|
361
339
|
};
|
362
340
|
BarComponent.decorators = [
|
@@ -383,6 +361,7 @@
|
|
383
361
|
{ type: core.Renderer2 }
|
384
362
|
]; };
|
385
363
|
BarComponent.propDecorators = {
|
364
|
+
max: [{ type: core.Input }],
|
386
365
|
type: [{ type: core.Input }],
|
387
366
|
value: [{ type: core.Input }],
|
388
367
|
setBarWidth: [{ type: core.HostBinding, args: ['style.width.%',] }],
|
@@ -393,6 +372,16 @@
|
|
393
372
|
if (false) {
|
394
373
|
/** @type {?} */
|
395
374
|
BarComponent.prototype.max;
|
375
|
+
/**
|
376
|
+
* provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger`
|
377
|
+
* @type {?}
|
378
|
+
*/
|
379
|
+
BarComponent.prototype.type;
|
380
|
+
/**
|
381
|
+
* current value of progress bar
|
382
|
+
* @type {?}
|
383
|
+
*/
|
384
|
+
BarComponent.prototype.value;
|
396
385
|
/** @type {?} */
|
397
386
|
BarComponent.prototype.addClass;
|
398
387
|
/** @type {?} */
|
@@ -403,16 +392,6 @@
|
|
403
392
|
BarComponent.prototype.percent;
|
404
393
|
/** @type {?} */
|
405
394
|
BarComponent.prototype.progress;
|
406
|
-
/**
|
407
|
-
* @type {?}
|
408
|
-
* @protected
|
409
|
-
*/
|
410
|
-
BarComponent.prototype._value;
|
411
|
-
/**
|
412
|
-
* @type {?}
|
413
|
-
* @protected
|
414
|
-
*/
|
415
|
-
BarComponent.prototype._type;
|
416
395
|
/**
|
417
396
|
* @type {?}
|
418
397
|
* @private
|
@@ -444,7 +423,7 @@
|
|
444
423
|
* @return {?}
|
445
424
|
*/
|
446
425
|
function () {
|
447
|
-
return { ngModule: ProgressbarModule, providers: [
|
426
|
+
return { ngModule: ProgressbarModule, providers: [] };
|
448
427
|
};
|
449
428
|
ProgressbarModule.decorators = [
|
450
429
|
{ type: core.NgModule, args: [{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-progressbar.umd.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":["Injectable","isBs3","Component","Input","HostBinding","ElementRef","Host","Renderer2","NgModule","CommonModule"],"mappings":";;;;;;;;;;;QAEA;;;;YAGE,YAAO,GAAY,KAAK,CAAC;;;;YAEzB,QAAG,GAAG,GAAG,CAAC;SACX;;oBANAA,eAAU;;QAMX,wBAAC;KAND,IAMC;;;;;;QAHC,oCAAyB;;;;;QAEzB,gCAAU;;;;;;;;QCsEV,8BAAY,MAAyB;YA9BrC,cAAS,GAAG,KAAK,CAAC;YAuBa,aAAQ,GAAG,IAAI,C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xB,iCAA0B;;;;;QAGxB,0BAAsB;;;;;QAEtB,gCAA2B;;;;;;;;QC7E/B;SASC;;;;QAHQ,yBAAO;;;QAAd;YACE,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC;SACxE;;oBARFI,aAAQ,SAAC;wBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;wBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;wBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;qBAC9C;;QAKD,wBAAC;KATD;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"ngx-bootstrap-progressbar.umd.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({\n providedIn: 'root'\n})\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 _max = 100;\n\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 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, SimpleChanges\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 @Input() max: number;\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: string;\n\n /** current value of progress bar */\n @Input() value: number;\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 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 ngOnChanges(changes: SimpleChanges) {\n if (changes.value) {\n if (!changes.value.currentValue && changes.value.currentValue !== 0) {\n return;\n }\n this.value = changes.value.currentValue;\n this.recalculatePercentage();\n }\n\n if (changes.type) {\n this.type = changes.type.currentValue;\n this.applyTypeClasses();\n }\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';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders<ProgressbarModule> {\n return { ngModule: ProgressbarModule, providers: [] };\n }\n}\n"],"names":["Injectable","isBs3","Component","Input","HostBinding","ElementRef","Host","Renderer2","NgModule","CommonModule"],"mappings":";;;;;;;;;;;QAEA;;;;YAKE,YAAO,GAAY,KAAK,CAAC;;;;YAEzB,QAAG,GAAG,GAAG,CAAC;SACX;;oBARAA,eAAU,SAAC;wBACV,UAAU,EAAE,MAAM;qBACnB;;;gCAJD;KAEA,IAQC;;;;;;QAHC,oCAAyB;;;;;QAEzB,gCAAU;;;;;;;;QCmEV,8BAAY,MAAyB;YA7BrC,cAAS,GAAG,KAAK,CAAC;YAGlB,SAAI,GAAG,GAAG,CAAC;YAsBoB,aAAQ,GAAG,IAAI,CAAC;;YAG/C,SAAI,GAAmB,EAAE,CAAC;YAExB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAC7B;QA1DD,sBACI,yCAAO;;;;;;;YADX,UACY,KAAc;gBACxB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,CAAC,IAAI,CAAC,OAAO;;;;gBAAC,UAAC,CAAe;oBAChC,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC;iBACnB,EAAC,CAAC;aACJ;;;WAAA;QAED,sBACI,yCAAO;;;;;;;YADX,UACY,KAAc;gBACxB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,CAAC,IAAI,CAAC,OAAO;;;;gBAAC,UAAC,CAAe;oBAChC,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC;iBACnB,EAAC,CAAC;aACJ;;;WAAA;QAOD,sBAEI,uCAAK;;;;;;;;;;YAFT,UAEU,KAAqB;gBAC7B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;gBACtC,IAAI,CAA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B,EAAE,SAAS;4BACzC,gBAAgB,EAAE,kBAAkB;4BACpC,sBAAsB,EAAE,OAAO;4BAC/B,uBAAuB,EAAE,yCAAyC;4BAClE,sBAAsB,EAAE,KAAK;4BAC7B,kBAAkB,EAAE,OAAO;yBAC5B;qBACF;;;;oBAvBCG,eAAU;oBAIH,oBAAoB,uBAkDxBC,SAAI;oBArDPC,cAAS;;;0BAwBRJ,UAAK;2BAELA,UAAK;4BAGLA,UAAK;kCAELC,gBAAW,SAAC,eAAe;+BAO3BA,gBAAW,SAAC,oBAAoB;;QA0EnC,mBAAC;KAxGD,IAwGC;;;QAxFC,2BAAqB;;;;;QAErB,4BAAsB;;;;;QAGtB,6BAAuB;;QASvB,gCAAmD;;QAMnD,+BAAiB;;QACjB,+BAAiB;;QACjB,+BAAY;;QACZ,gCAA+B;;;;;QAE/B,iCAA0B;;;;;QAGxB,0BAAsB;;;;;QAEtB,gCAA2B;;;;;;;;QCxD/B;SASC;;;;QAHQ,yBAAO;;;QAAd;YACE,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SACvD;;oBARFI,aAAQ,SAAC;wBACR,OAAO,EAAE,CAACC,mBAAY,CAAC;wBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;wBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;qBAC9C;;QAKD,wBAAC;KATD;;;;;;;;;;;;;;;"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("ngx-bootstrap/utils"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-bootstrap/progressbar",["exports","@angular/core","ngx-bootstrap/utils","@angular/common"],t):t(((e=e||self)["ngx-bootstrap"]=e["ngx-bootstrap"]||{},e["ngx-bootstrap"].progressbar={}),e.ng.core,e.utils,e.ng.common)}(this,(function(e,t,r,n){"use strict";var s=function(){function e(){this.animate=!1,this.max=100}return e.decorators=[{type:t.Injectable}],e}();var a=function(){function e(e){this.isStacked=!1,this.addClass=!0,this.bars=[],
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("ngx-bootstrap/utils"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-bootstrap/progressbar",["exports","@angular/core","ngx-bootstrap/utils","@angular/common"],t):t(((e=e||self)["ngx-bootstrap"]=e["ngx-bootstrap"]||{},e["ngx-bootstrap"].progressbar={}),e.ng.core,e.utils,e.ng.common)}(this,(function(e,t,r,n){"use strict";var s=function(){function e(){this.animate=!1,this.max=100}return e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e}();var a=function(){function e(e){this.isStacked=!1,this._max=100,this.addClass=!0,this.bars=[],Object.assign(this,e)}return Object.defineProperty(e.prototype,"animate",{set:function(e){this._animate=e,this.bars.forEach((function(t){t.animate=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"striped",{set:function(e){this._striped=e,this.bars.forEach((function(t){t.striped=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this.isStacked=Array.isArray(e),this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBs3",{get:function(){return r.isBs3()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e,this.bars.forEach((function(e){e.recalculatePercentage()}))},enumerable:!0,configurable:!0}),e.prototype.addBar=function(e){e.animate=this._animate,e.striped=this._striped,this.bars.push(e)},e.prototype.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)},e.decorators=[{type:t.Component,args:[{selector:"progressbar",template:'<bar [type]="type" [value]="_value" [max]="_max" *ngIf="!isStacked">\n <ng-content></ng-content>\n</bar>\n<ng-template [ngIf]="isStacked">\n <bar *ngFor="let item of _value" [type]="item.type" [value]="item.value" [max]="item.max">{{ item.label }}</bar>\n</ng-template>\n',styles:["\n :host {\n width: 100%;\n display: flex;\n }\n "]}]}],e.ctorParameters=function(){return[{type:s}]},e.propDecorators={animate:[{type:t.Input}],striped:[{type:t.Input}],type:[{type:t.Input}],value:[{type:t.Input}],max:[{type:t.HostBinding,args:["attr.max"]},{type:t.Input}],addClass:[{type:t.HostBinding,args:["class.progress"]}]},e}();var o=function(){function e(e,t,r){this.el=e,this.renderer=r,this.addClass=!0,this.percent=0,this.progress=t}return Object.defineProperty(e.prototype,"setBarWidth",{get:function(){return this.recalculatePercentage(),this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBs3",{get:function(){return r.isBs3()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.progress.addBar(this)},e.prototype.ngOnDestroy=function(){this.progress.removeBar(this)},e.prototype.ngOnChanges=function(e){if(e.value){if(!e.value.currentValue&&0!==e.value.currentValue)return;this.value=e.value.currentValue,this.recalculatePercentage()}e.type&&(this.type=e.type.currentValue,this.applyTypeClasses())},e.prototype.recalculatePercentage=function(){this.percent=+(this.value/this.progress.max*100).toFixed(2);var e=this.progress.bars.reduce((function(e,t){return e+t.percent}),0);e>100&&(this.percent-=e-100)},e.prototype.applyTypeClasses=function(){if(this._prevType){var e="progress-bar-"+this._prevType,t="bg-"+this._prevType;this.renderer.removeClass(this.el.nativeElement,e),this.renderer.removeClass(this.el.nativeElement,t),this._prevType=null}if(this.type){e="progress-bar-"+this.type,t="bg-"+this.type;this.renderer.addClass(this.el.nativeElement,e),this.renderer.addClass(this.el.nativeElement,t),this._prevType=this.type}},e.decorators=[{type:t.Component,args:[{selector:"bar",template:"<ng-content></ng-content>\n",host:{role:"progressbar","aria-valuemin":"0","[class.progress-bar-animated]":"!isBs3 && animate","[class.progress-bar-striped]":"striped","[class.active]":"isBs3 && animate","[attr.aria-valuenow]":"value","[attr.aria-valuetext]":'percent ? percent.toFixed(0) + "%" : ""',"[attr.aria-valuemax]":"max","[style.height.%]":'"100"'}}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:a,decorators:[{type:t.Host}]},{type:t.Renderer2}]},e.propDecorators={max:[{type:t.Input}],type:[{type:t.Input}],value:[{type:t.Input}],setBarWidth:[{type:t.HostBinding,args:["style.width.%"]}],addClass:[{type:t.HostBinding,args:["class.progress-bar"]}]},e}();var i=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],declarations:[o,a],exports:[o,a]}]}],e}();e.BarComponent=o,e.ProgressbarComponent=a,e.ProgressbarConfig=s,e.ProgressbarModule=i,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2
2
|
//# sourceMappingURL=ngx-bootstrap-progressbar.umd.min.js.map
|
@@ -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":"keAEA,SAAAA,IAGEC,KAAAC,SAAmB,EAEnBD,KAAAE,IAAM,IACR,2B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GACjDtD,KAAKoD,UAAY,KAGnB,GAAIpD,KAAK4C,MAAO,CACRS,EAAe,gBAAgBrD,KAAK4C,MACpCU,EAAU,MAAMtD,KAAK4C,MAC3B5C,KAAK0C,SAASnC,SAASP,KAAKwC,GAAGgB,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,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"]}
|
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","args","providedIn","ProgressbarComponent","config","isStacked","_max","addClass","bars","Object","assign","defineProperty","prototype","value","_animate","forEach","b","_striped","striped","Array","isArray","_value","isBs3","v","bar","recalculatePercentage","addBar","push","removeBar","splice","indexOf","Component","selector","template","Input","HostBinding","type","BarComponent","el","progress","renderer","percent","ngOnInit","ngOnDestroy","ngOnChanges","changes","currentValue","applyTypeClasses","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,IAKEC,KAAAC,SAAmB,EAEnBD,KAAAE,IAAM,+BAPPC,EAAAA,WAAUC,KAAA,CAAC,CACVC,WAAY,+HCyEZ,SAAAC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GnB,GAAIvD,KAAKuC,KAAM,CACPiB,EAAe,gBAAgBxD,KAAKuC,KACpCkB,EAAU,MAAMzD,KAAKuC,KAC3BvC,KAAK2C,SAASjC,SAASV,KAAKyC,GAAGkB,cAAeH,GAC9CxD,KAAK2C,SAASjC,SAASV,KAAKyC,GAAGkB,cAAeF,GAC9CzD,KAAKuD,UAAYvD,KAAKuC,2BArG3BL,EAAAA,UAAS9B,KAAA,CAAC,CACT+B,SAAU,MACVC,SAAA,8BACAwB,KAAM,CACJC,KAAM,cACNC,gBAAiB,IACjBC,gCAAiC,oBACjCC,+BAAgC,UAChCC,iBAAkB,mBAClBC,uBAAwB,QACxBC,wBAAyB,0CACzBC,uBAAwB,MACxBC,mBAAoB,sDArBtBC,EAAAA,kBAIOhE,EAAoBiE,WAAA,CAAA,CAAAhC,KAkDxBiC,EAAAA,cArDHC,EAAAA,0CAwBCpC,EAAAA,oBAEAA,EAAAA,qBAGAA,EAAAA,2BAEAC,EAAAA,YAAWlC,KAAA,CAAC,mCAOZkC,EAAAA,YAAWlC,KAAA,CAAC,yBA0EfoC,sBClHA,SAAAkC,KASA,OAHSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAmBG,UAAW,yBAPpDC,EAAAA,SAAQ1E,KAAA,CAAC,CACR2E,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACzC,EAAclC,GAC7B4E,QAAS,CAAC1C,EAAclC,OAM1BoE","sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\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 _max = 100;\n\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 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, SimpleChanges\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 @Input() max: number;\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type: string;\n\n /** current value of progress bar */\n @Input() value: number;\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 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 ngOnChanges(changes: SimpleChanges) {\n if (changes.value) {\n if (!changes.value.currentValue && changes.value.currentValue !== 0) {\n return;\n }\n this.value = changes.value.currentValue;\n this.recalculatePercentage();\n }\n\n if (changes.type) {\n this.type = changes.type.currentValue;\n this.applyTypeClasses();\n }\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';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders<ProgressbarModule> {\n return { ngModule: ProgressbarModule, providers: [] };\n }\n}\n"]}
|
@@ -20,39 +20,6 @@ export class BarComponent {
|
|
20
20
|
this.percent = 0;
|
21
21
|
this.progress = progress;
|
22
22
|
}
|
23
|
-
/**
|
24
|
-
* provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger`
|
25
|
-
* @return {?}
|
26
|
-
*/
|
27
|
-
get type() {
|
28
|
-
return this._type;
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* @param {?} v
|
32
|
-
* @return {?}
|
33
|
-
*/
|
34
|
-
set type(v) {
|
35
|
-
this._type = v;
|
36
|
-
this.applyTypeClasses();
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* current value of progress bar
|
40
|
-
* @return {?}
|
41
|
-
*/
|
42
|
-
get value() {
|
43
|
-
return this._value;
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* @param {?} v
|
47
|
-
* @return {?}
|
48
|
-
*/
|
49
|
-
set value(v) {
|
50
|
-
if (!v && v !== 0) {
|
51
|
-
return;
|
52
|
-
}
|
53
|
-
this._value = v;
|
54
|
-
this.recalculatePercentage();
|
55
|
-
}
|
56
23
|
/**
|
57
24
|
* @return {?}
|
58
25
|
*/
|
@@ -78,6 +45,23 @@ export class BarComponent {
|
|
78
45
|
ngOnDestroy() {
|
79
46
|
this.progress.removeBar(this);
|
80
47
|
}
|
48
|
+
/**
|
49
|
+
* @param {?} changes
|
50
|
+
* @return {?}
|
51
|
+
*/
|
52
|
+
ngOnChanges(changes) {
|
53
|
+
if (changes.value) {
|
54
|
+
if (!changes.value.currentValue && changes.value.currentValue !== 0) {
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
this.value = changes.value.currentValue;
|
58
|
+
this.recalculatePercentage();
|
59
|
+
}
|
60
|
+
if (changes.type) {
|
61
|
+
this.type = changes.type.currentValue;
|
62
|
+
this.applyTypeClasses();
|
63
|
+
}
|
64
|
+
}
|
81
65
|
/**
|
82
66
|
* @return {?}
|
83
67
|
*/
|
@@ -111,14 +95,14 @@ export class BarComponent {
|
|
111
95
|
this.renderer.removeClass(this.el.nativeElement, bgClass);
|
112
96
|
this._prevType = null;
|
113
97
|
}
|
114
|
-
if (this.
|
98
|
+
if (this.type) {
|
115
99
|
/** @type {?} */
|
116
|
-
const barTypeClass = `progress-bar-${this.
|
100
|
+
const barTypeClass = `progress-bar-${this.type}`;
|
117
101
|
/** @type {?} */
|
118
|
-
const bgClass = `bg-${this.
|
102
|
+
const bgClass = `bg-${this.type}`;
|
119
103
|
this.renderer.addClass(this.el.nativeElement, barTypeClass);
|
120
104
|
this.renderer.addClass(this.el.nativeElement, bgClass);
|
121
|
-
this._prevType = this.
|
105
|
+
this._prevType = this.type;
|
122
106
|
}
|
123
107
|
}
|
124
108
|
}
|
@@ -146,6 +130,7 @@ BarComponent.ctorParameters = () => [
|
|
146
130
|
{ type: Renderer2 }
|
147
131
|
];
|
148
132
|
BarComponent.propDecorators = {
|
133
|
+
max: [{ type: Input }],
|
149
134
|
type: [{ type: Input }],
|
150
135
|
value: [{ type: Input }],
|
151
136
|
setBarWidth: [{ type: HostBinding, args: ['style.width.%',] }],
|
@@ -154,6 +139,16 @@ BarComponent.propDecorators = {
|
|
154
139
|
if (false) {
|
155
140
|
/** @type {?} */
|
156
141
|
BarComponent.prototype.max;
|
142
|
+
/**
|
143
|
+
* provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger`
|
144
|
+
* @type {?}
|
145
|
+
*/
|
146
|
+
BarComponent.prototype.type;
|
147
|
+
/**
|
148
|
+
* current value of progress bar
|
149
|
+
* @type {?}
|
150
|
+
*/
|
151
|
+
BarComponent.prototype.value;
|
157
152
|
/** @type {?} */
|
158
153
|
BarComponent.prototype.addClass;
|
159
154
|
/** @type {?} */
|
@@ -164,16 +159,6 @@ if (false) {
|
|
164
159
|
BarComponent.prototype.percent;
|
165
160
|
/** @type {?} */
|
166
161
|
BarComponent.prototype.progress;
|
167
|
-
/**
|
168
|
-
* @type {?}
|
169
|
-
* @protected
|
170
|
-
*/
|
171
|
-
BarComponent.prototype._value;
|
172
|
-
/**
|
173
|
-
* @type {?}
|
174
|
-
* @protected
|
175
|
-
*/
|
176
|
-
BarComponent.prototype._type;
|
177
162
|
/**
|
178
163
|
* @type {?}
|
179
164
|
* @private
|
@@ -190,4 +175,4 @@ if (false) {
|
|
190
175
|
*/
|
191
176
|
BarComponent.prototype.renderer;
|
192
177
|
}
|
193
|
-
//# sourceMappingURL=data:application/json;base64,
|
178
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1ib290c3RyYXAvcHJvZ3Jlc3NiYXIvIiwic291cmNlcyI6WyJiYXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULElBQUksRUFDSixXQUFXLEVBQ1gsS0FBSyxFQUdMLFVBQVUsRUFDVixTQUFTLEVBQ1YsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDL0QsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHFCQUFxQixDQUFDOzs7QUFtQjVDLE1BQU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ENsYXNzKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgYmFyVHlwZUNsYXNzKTtcbiAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5lbC5uYXRpdmVFbGVtZW50LCBiZ0NsYXNzKTtcbiAgICAgIHRoaXMuX3ByZXZUeXBlID0gdGhpcy50eXBlO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -11,10 +11,10 @@ export class ProgressbarComponent {
|
|
11
11
|
*/
|
12
12
|
constructor(config) {
|
13
13
|
this.isStacked = false;
|
14
|
+
this._max = 100;
|
14
15
|
this.addClass = true;
|
15
16
|
/* tslint:disable-next-line:no-any */
|
16
17
|
this.bars = [];
|
17
|
-
this._max = 100;
|
18
18
|
Object.assign(this, config);
|
19
19
|
}
|
20
20
|
/**
|
@@ -104,7 +104,7 @@ export class ProgressbarComponent {
|
|
104
104
|
ProgressbarComponent.decorators = [
|
105
105
|
{ type: Component, args: [{
|
106
106
|
selector: 'progressbar',
|
107
|
-
template: "<bar [type]=\"type\" [value]=\"_value\" *ngIf=\"!isStacked\">\n <ng-content></ng-content>\n</bar>\n<ng-template [ngIf]=\"isStacked\">\n <bar *ngFor=\"let item of _value\" [type]=\"item.type\" [value]=\"item.value\">{{ item.label }}</bar>\n</ng-template>\n",
|
107
|
+
template: "<bar [type]=\"type\" [value]=\"_value\" [max]=\"_max\" *ngIf=\"!isStacked\">\n <ng-content></ng-content>\n</bar>\n<ng-template [ngIf]=\"isStacked\">\n <bar *ngFor=\"let item of _value\" [type]=\"item.type\" [value]=\"item.value\" [max]=\"item.max\">{{ item.label }}</bar>\n</ng-template>\n",
|
108
108
|
styles: [`
|
109
109
|
:host {
|
110
110
|
width: 100%;
|
@@ -138,15 +138,12 @@ if (false) {
|
|
138
138
|
/** @type {?} */
|
139
139
|
ProgressbarComponent.prototype._animate;
|
140
140
|
/** @type {?} */
|
141
|
+
ProgressbarComponent.prototype._max;
|
142
|
+
/** @type {?} */
|
141
143
|
ProgressbarComponent.prototype._value;
|
142
144
|
/** @type {?} */
|
143
145
|
ProgressbarComponent.prototype.addClass;
|
144
146
|
/** @type {?} */
|
145
147
|
ProgressbarComponent.prototype.bars;
|
146
|
-
/**
|
147
|
-
* @type {?}
|
148
|
-
* @protected
|
149
|
-
*/
|
150
|
-
ProgressbarComponent.prototype._max;
|
151
148
|
}
|
152
|
-
//# sourceMappingURL=data:application/json;base64,
|
149
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWJvb3RzdHJhcC9wcm9ncmVzc2Jhci8iLCJzb3VyY2VzIjpbInByb2dyZXNzYmFyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRXpELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQWU1QyxNQUFNLE9BQU8sb0JBQW9COzs7O0lBMEQvQixZQUFZLE1BQXlCO1FBN0JyQyxjQUFTLEdBQUcsS0FBSyxDQUFDO1FBR2xCLFNBQUksR0FBRyxHQUFHLENBQUM7UUFzQm9CLGFBQVEsR0FBRyxJQUFJLENBQUM7O1FBRy9DLFNBQUksR0FBbUIsRUFBRSxDQUFDO1FBRXhCLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0lBQzlCLENBQUM7Ozs7OztJQTFERCxJQUNJLE9BQU8sQ0FBQyxLQUFjO1FBQ3hCLElBQUksQ0FBQyxRQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ3RCLElBQUksQ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xuICAgIHRoaXMuYmFycy5mb3JFYWNoKChiYXI6IEJhckNvbXBvbmVudCkgPT4ge1xuICAgICAgYmFyLnJlY2FsY3VsYXRlUGVyY2VudGFnZSgpO1xuICAgIH0pO1xuICB9XG5cbiAgQEhvc3RCaW5kaW5nKCdjbGFzcy5wcm9ncmVzcycpIGFkZENsYXNzID0gdHJ1ZTtcblxuICAvKiB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6bm8tYW55ICovXG4gIGJhcnM6IEJhckNvbXBvbmVudFtdID0gW107XG4gIGNvbnN0cnVjdG9yKGNvbmZpZzogUHJvZ3Jlc3NiYXJDb25maWcpIHtcbiAgICBPYmplY3QuYXNzaWduKHRoaXMsIGNvbmZpZyk7XG4gIH1cbiAgYWRkQmFyKGJhcjogQmFyQ29tcG9uZW50KTogdm9pZCB7XG4gICAgYmFyLmFuaW1hdGUgPSB0aGlzLl9hbmltYXRlO1xuICAgIGJhci5zdHJpcGVkID0gdGhpcy5fc3RyaXBlZDtcblxuICAgIHRoaXMuYmFycy5wdXNoKGJhcik7XG4gIH1cblxuICByZW1vdmVCYXIoYmFyOiBCYXJDb21wb25lbnQpOiB2b2lkIHtcbiAgICB0aGlzLmJhcnMuc3BsaWNlKHRoaXMuYmFycy5pbmRleE9mKGJhciksIDEpO1xuICB9XG59XG4iXX0=
|
@@ -3,6 +3,7 @@
|
|
3
3
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
4
4
|
*/
|
5
5
|
import { Injectable } from '@angular/core';
|
6
|
+
import * as i0 from "@angular/core";
|
6
7
|
export class ProgressbarConfig {
|
7
8
|
constructor() {
|
8
9
|
/**
|
@@ -16,8 +17,11 @@ export class ProgressbarConfig {
|
|
16
17
|
}
|
17
18
|
}
|
18
19
|
ProgressbarConfig.decorators = [
|
19
|
-
{ type: Injectable
|
20
|
+
{ type: Injectable, args: [{
|
21
|
+
providedIn: 'root'
|
22
|
+
},] }
|
20
23
|
];
|
24
|
+
/** @nocollapse */ ProgressbarConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressbarConfig_Factory() { return new ProgressbarConfig(); }, token: ProgressbarConfig, providedIn: "root" });
|
21
25
|
if (false) {
|
22
26
|
/**
|
23
27
|
* if `true` changing value of progress bar will be animated
|
@@ -30,4 +34,4 @@ if (false) {
|
|
30
34
|
*/
|
31
35
|
ProgressbarConfig.prototype.max;
|
32
36
|
}
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXIuY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWJvb3RzdHJhcC9wcm9ncmVzc2Jhci8iLCJzb3VyY2VzIjpbInByb2dyZXNzYmFyLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLGlCQUFpQjtJQUg5Qjs7OztRQUtFLFlBQU8sR0FBWSxLQUFLLENBQUM7Ozs7UUFFekIsUUFBRyxHQUFHLEdBQUcsQ0FBQztLQUNYOzs7WUFSQSxVQUFVLFNBQUM7Z0JBQ1YsVUFBVSxFQUFFLE1BQU07YUFDbkI7Ozs7Ozs7O0lBR0Msb0NBQXlCOzs7OztJQUV6QixnQ0FBVSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgUHJvZ3Jlc3NiYXJDb25maWcge1xuICAvKiogaWYgYHRydWVgIGNoYW5naW5nIHZhbHVlIG9mIHByb2dyZXNzIGJhciB3aWxsIGJlIGFuaW1hdGVkICovXG4gIGFuaW1hdGU6IEJvb2xlYW4gPSBmYWxzZTtcbiAgLyoqIG1heGltdW0gdG90YWwgdmFsdWUgb2YgcHJvZ3Jlc3MgZWxlbWVudCAqL1xuICBtYXggPSAxMDA7XG59XG4iXX0=
|
@@ -6,13 +6,12 @@ import { CommonModule } from '@angular/common';
|
|
6
6
|
import { NgModule } from '@angular/core';
|
7
7
|
import { BarComponent } from './bar.component';
|
8
8
|
import { ProgressbarComponent } from './progressbar.component';
|
9
|
-
import { ProgressbarConfig } from './progressbar.config';
|
10
9
|
export class ProgressbarModule {
|
11
10
|
/**
|
12
11
|
* @return {?}
|
13
12
|
*/
|
14
13
|
static forRoot() {
|
15
|
-
return { ngModule: ProgressbarModule, providers: [
|
14
|
+
return { ngModule: ProgressbarModule, providers: [] };
|
16
15
|
}
|
17
16
|
}
|
18
17
|
ProgressbarModule.decorators = [
|
@@ -22,4 +21,4 @@ ProgressbarModule.decorators = [
|
|
22
21
|
exports: [BarComponent, ProgressbarComponent]
|
23
22
|
},] }
|
24
23
|
];
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3NiYXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWJvb3RzdHJhcC9wcm9ncmVzc2Jhci8iLCJzb3VyY2VzIjpbInByb2dyZXNzYmFyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxRQUFRLEVBQXVCLE1BQU0sZUFBZSxDQUFDO0FBRTlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztB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