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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\
|
1
|
+
{"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [AlertComponent],\n exports: [AlertComponent],\n entryComponents: [AlertComponent]\n})\nexport class AlertModule {\n static forRoot(): ModuleWithProviders<AlertModule> {\n return { ngModule: AlertModule, providers: [] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;MAKa,WAAW;IAHxB;;;;QAKE,SAAI,GAAG,SAAS,CAAC;;;;QAGjB,gBAAW,GAAG,KAAK,CAAC;;;;QAGpB,qBAAgB,GAAY,SAAS,CAAC;KACvC;;;YAZA,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;;;;IAGC,2BAAiB;;;;;IAGjB,kCAAoB;;;;;IAGpB,uCAAsC;;;;;;;MCI3B,cAAc;;;;;IAyBzB,YAAY,OAAoB,EAAU,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;;;;;;QApBnE,SAAI,GAAG,SAAS,CAAC;;;;QAED,gBAAW,GAAG,KAAK,CAAC;;;;QAKpC,WAAM,GAAG,IAAI,CAAC;;;;;QAKb,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;;;;QAE7C,aAAQ,GAAG,IAAI,YAAY,EAAkB,CAAC;QAGxD,YAAO,GAAG,EAAE,CAAC;QACb,sBAAiB,GAAG,IAAI,YAAY,EAAW,CAAC;QAG9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,iBAAiB,CAAC,SAAS;;;;QAAC,CAAC,WAAoB;YACpD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,GAAG,mBAAmB,GAAG,EAAE,CAAC;YAC3D,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;SACrC,EAAC,CAAC;KACJ;;;;IAED,QAAQ;QACN,IAAI,IAAI,CAAC,gBAAgB,EAAE;;YAEzB,UAAU;;;YACR,MAAM,IAAI,CAAC,KAAK,EAAE,GAClB,QAAQ,oBAAC,IAAI,CAAC,gBAAgB,IAAY,EAAE,CAAC,CAC9C,CAAC;SACH;KACF;;;;;;;IAOD,KAAK;QACH,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,OAAO;SACR;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;QACpC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC1B;;;YA9DF,SAAS,SAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,+bAAqC;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;;;YAPQ,WAAW;YAPlB,iBAAiB;;;mBAoBhB,KAAK;0BAES,KAAK;+BAEnB,KAAK;qBAGL,KAAK;sBAKL,MAAM;uBAEN,MAAM;;AAZkB;IAAxB,QAAQ,EAAE;;mDAAkC;;;;;;;;IAF7C,8BAA0B;;;;;IAE1B,qCAA6C;;;;;IAE7C,0CAA2C;;;;;IAG3C,gCAAuB;;;;;;IAKvB,iCAAuD;;;;;IAEvD,kCAAwD;;IAGxD,iCAAa;;IACb,2CAAgD;;;;;IAEd,yCAA0C;;;;;;;AC1C9E,MAUa,WAAW;;;;IACtB,OAAO,OAAO;QACZ,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACjD;;;YATF,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,cAAc,CAAC;gBAC9B,OAAO,EAAE,CAAC,cAAc,CAAC;gBACzB,eAAe,EAAE,CAAC,cAAc,CAAC;aAClC;;;;;;;;;;;;;;;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
2
|
-
import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
|
2
|
+
import { Injectable, ɵɵdefineInjectable, EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
|
3
3
|
import { OnChange } from 'ngx-bootstrap/utils';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
|
@@ -23,8 +23,11 @@ var AlertConfig = /** @class */ (function () {
|
|
23
23
|
this.dismissOnTimeout = undefined;
|
24
24
|
}
|
25
25
|
AlertConfig.decorators = [
|
26
|
-
{ type: Injectable
|
26
|
+
{ type: Injectable, args: [{
|
27
|
+
providedIn: 'root'
|
28
|
+
},] }
|
27
29
|
];
|
30
|
+
/** @nocollapse */ AlertConfig.ɵprov = ɵɵdefineInjectable({ factory: function AlertConfig_Factory() { return new AlertConfig(); }, token: AlertConfig, providedIn: "root" });
|
28
31
|
return AlertConfig;
|
29
32
|
}());
|
30
33
|
if (false) {
|
@@ -216,7 +219,7 @@ var AlertModule = /** @class */ (function () {
|
|
216
219
|
* @return {?}
|
217
220
|
*/
|
218
221
|
function () {
|
219
|
-
return { ngModule: AlertModule, providers: [
|
222
|
+
return { ngModule: AlertModule, providers: [] };
|
220
223
|
};
|
221
224
|
AlertModule.decorators = [
|
222
225
|
{ type: NgModule, args: [{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\
|
1
|
+
{"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [AlertComponent],\n exports: [AlertComponent],\n entryComponents: [AlertComponent]\n})\nexport class AlertModule {\n static forRoot(): ModuleWithProviders<AlertModule> {\n return { ngModule: AlertModule, providers: [] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;IAEA;;;;QAKE,SAAI,GAAG,SAAS,CAAC;;;;QAGjB,gBAAW,GAAG,KAAK,CAAC;;;;QAGpB,qBAAgB,GAAY,SAAS,CAAC;KACvC;;gBAZA,UAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;sBAJD;CAEA,IAYC;;;;;;IAPC,2BAAiB;;;;;IAGjB,kCAAoB;;;;;IAGpB,uCAAsC;;;;;;;;IC6BtC,wBAAY,OAAoB,EAAU,eAAkC;QAA5E,iBAMC;QANyC,oBAAe,GAAf,eAAe,CAAmB;;;;;;QApBnE,SAAI,GAAG,SAAS,CAAC;;;;QAED,gBAAW,GAAG,KAAK,CAAC;;;;QAKpC,WAAM,GAAG,IAAI,CAAC;;;;;QAKb,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;;;;QAE7C,aAAQ,GAAG,IAAI,YAAY,EAAkB,CAAC;QAGxD,YAAO,GAAG,EAAE,CAAC;QACb,sBAAiB,GAAG,IAAI,YAAY,EAAW,CAAC;QAG9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,iBAAiB,CAAC,SAAS;;;;QAAC,UAAC,WAAoB;YACpD,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,WAAW,GAAG,mBAAmB,GAAG,EAAE,CAAC;YAC3D,KAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;SACrC,EAAC,CAAC;KACJ;;;;IAED,iCAAQ;;;IAAR;QAAA,iBAQC;QAPC,IAAI,IAAI,CAAC,gBAAgB,EAAE;;YAEzB,UAAU;;;YACR,cAAM,OAAA,KAAI,CAAC,KAAK,EAAE,GAAA,GAClB,QAAQ,oBAAC,IAAI,CAAC,gBAAgB,IAAY,EAAE,CAAC,CAC9C,CAAC;SACH;KACF;;;;;;;;;;;;IAOD,8BAAK;;;;;;;IAAL;QACE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,OAAO;SACR;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;QACpC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC1B;;gBA9DF,SAAS,SAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,+bAAqC;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;;gBAPQ,WAAW;gBAPlB,iBAAiB;;;uBAoBhB,KAAK;8BAES,KAAK;mCAEnB,KAAK;yBAGL,KAAK;0BAKL,MAAM;2BAEN,MAAM;;IAZkB;QAAxB,QAAQ,EAAE;;uDAAkC;IAmD/C,qBAAC;CA/DD,IA+DC;;;;;;;;IArDC,8BAA0B;;;;;IAE1B,qCAA6C;;;;;IAE7C,0CAA2C;;;;;IAG3C,gCAAuB;;;;;;IAKvB,iCAAuD;;;;;IAEvD,kCAAwD;;IAGxD,iCAAa;;IACb,2CAAgD;;;;;IAEd,yCAA0C;;;;;;;AC1C9E;IAIA;KAUC;;;;IAHQ,mBAAO;;;IAAd;QACE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACjD;;gBATF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,cAAc,CAAC;oBAC9B,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,eAAe,EAAE,CAAC,cAAc,CAAC;iBAClC;;IAKD,kBAAC;CAVD;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"AlertComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"alert,bs-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":19},"member":"OnPush"},"template":"<ng-template [ngIf]=\"isOpen\">\n <div [class]=\"'alert alert-' + type\" role=\"alert\" [ngClass]=\"classes\">\n <ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"close()\">\n <span aria-hidden=\"true\">×</span>\n <span class=\"sr-only\">Close</span>\n </button>\n </ng-template>\n <ng-content></ng-content>\n </div>\n</ng-template>\n"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"dismissible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"ngx-bootstrap/utils","name":"OnChange","line":24,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":17}}]}],"dismissOnTimeout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"onClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":3}}]}],"onClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AlertConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":42,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}]}},"AlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"AlertComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"alert,bs-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":19},"member":"OnPush"},"template":"<ng-template [ngIf]=\"isOpen\">\n <div [class]=\"'alert alert-' + type\" role=\"alert\" [ngClass]=\"classes\">\n <ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"close()\">\n <span aria-hidden=\"true\">×</span>\n <span class=\"sr-only\">Close</span>\n </button>\n </ng-template>\n <ng-content></ng-content>\n </div>\n</ng-template>\n"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"dismissible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"ngx-bootstrap/utils","name":"OnChange","line":24,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":17}}]}],"dismissOnTimeout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"onClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":3}}]}],"onClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AlertConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":42,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}]}},"AlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":5,"character":12}],"declarations":[{"__symbolic":"reference","name":"AlertComponent"}],"exports":[{"__symbolic":"reference","name":"AlertComponent"}],"entryComponents":[{"__symbolic":"reference","name":"AlertComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AlertModule"},"providers":[]}}}},"AlertConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ɵprov":{}}}},"origins":{"AlertComponent":"./alert.component","AlertModule":"./alert.module","AlertConfig":"./alert.config"},"importAs":"ngx-bootstrap/alert"}
|
package/alert/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ngx-bootstrap/alert",
|
3
|
-
"version": "
|
3
|
+
"version": "6.2.0",
|
4
4
|
"description": "Native Angular Bootstrap Components",
|
5
5
|
"private": true,
|
6
6
|
"main": "bundles/ngx-bootstrap-alert.umd.js",
|
@@ -14,6 +14,6 @@
|
|
14
14
|
"metadata": "ngx-bootstrap-alert.metadata.json",
|
15
15
|
"sideEffects": false,
|
16
16
|
"peerDependencies": {
|
17
|
-
"tslib": "^1.
|
17
|
+
"tslib": "^1.10.0"
|
18
18
|
}
|
19
19
|
}
|
@@ -220,13 +220,15 @@
|
|
220
220
|
* A value of a selected button is bound to a variable specified via ngModel.
|
221
221
|
*/
|
222
222
|
var ButtonRadioDirective = /** @class */ (function () {
|
223
|
-
function ButtonRadioDirective(el, cdr,
|
223
|
+
function ButtonRadioDirective(el, cdr, renderer, group) {
|
224
224
|
this.el = el;
|
225
225
|
this.cdr = cdr;
|
226
|
-
this.group = group;
|
227
226
|
this.renderer = renderer;
|
227
|
+
this.group = group;
|
228
228
|
this.onChange = Function.prototype;
|
229
229
|
this.onTouched = Function.prototype;
|
230
|
+
this.role = 'radio';
|
231
|
+
this._hasFocus = false;
|
230
232
|
}
|
231
233
|
Object.defineProperty(ButtonRadioDirective.prototype, "value", {
|
232
234
|
/** Current value of radio component or group */
|
@@ -265,12 +267,33 @@
|
|
265
267
|
* @return {?}
|
266
268
|
*/
|
267
269
|
function (disabled) {
|
268
|
-
this._disabled = disabled;
|
269
270
|
this.setDisabledState(disabled);
|
270
271
|
},
|
271
272
|
enumerable: true,
|
272
273
|
configurable: true
|
273
274
|
});
|
275
|
+
Object.defineProperty(ButtonRadioDirective.prototype, "controlOrGroupDisabled", {
|
276
|
+
get: /**
|
277
|
+
* @return {?}
|
278
|
+
*/
|
279
|
+
function () {
|
280
|
+
return this.disabled || (this.group && this.group.disabled) ? true : undefined;
|
281
|
+
},
|
282
|
+
enumerable: true,
|
283
|
+
configurable: true
|
284
|
+
});
|
285
|
+
Object.defineProperty(ButtonRadioDirective.prototype, "hasDisabledClass", {
|
286
|
+
get: /**
|
287
|
+
* @return {?}
|
288
|
+
*/
|
289
|
+
function () {
|
290
|
+
// Although the radio is disabled the active radio should still stand out.
|
291
|
+
// The disabled class will prevent this so don't add it on the active radio
|
292
|
+
return this.controlOrGroupDisabled && !this.isActive;
|
293
|
+
},
|
294
|
+
enumerable: true,
|
295
|
+
configurable: true
|
296
|
+
});
|
274
297
|
Object.defineProperty(ButtonRadioDirective.prototype, "isActive", {
|
275
298
|
get: /**
|
276
299
|
* @return {?}
|
@@ -281,27 +304,77 @@
|
|
281
304
|
enumerable: true,
|
282
305
|
configurable: true
|
283
306
|
});
|
307
|
+
Object.defineProperty(ButtonRadioDirective.prototype, "tabindex", {
|
308
|
+
get: /**
|
309
|
+
* @return {?}
|
310
|
+
*/
|
311
|
+
function () {
|
312
|
+
if (this.controlOrGroupDisabled) {
|
313
|
+
// Disabled radio buttons should not receive focus
|
314
|
+
return undefined;
|
315
|
+
}
|
316
|
+
else if (this.isActive || this.group == null) {
|
317
|
+
return 0;
|
318
|
+
}
|
319
|
+
else {
|
320
|
+
return -1;
|
321
|
+
}
|
322
|
+
},
|
323
|
+
enumerable: true,
|
324
|
+
configurable: true
|
325
|
+
});
|
326
|
+
Object.defineProperty(ButtonRadioDirective.prototype, "hasFocus", {
|
327
|
+
get: /**
|
328
|
+
* @return {?}
|
329
|
+
*/
|
330
|
+
function () {
|
331
|
+
return this._hasFocus;
|
332
|
+
},
|
333
|
+
enumerable: true,
|
334
|
+
configurable: true
|
335
|
+
});
|
284
336
|
/**
|
285
337
|
* @return {?}
|
286
338
|
*/
|
287
|
-
ButtonRadioDirective.prototype.
|
339
|
+
ButtonRadioDirective.prototype.toggleIfAllowed = /**
|
288
340
|
* @return {?}
|
289
341
|
*/
|
290
342
|
function () {
|
291
|
-
if (
|
343
|
+
if (!this.canToggle()) {
|
292
344
|
return;
|
293
345
|
}
|
294
346
|
this.value = this.uncheckable && this.btnRadio === this.value ? undefined : this.btnRadio;
|
295
347
|
this._onChange(this.value);
|
296
348
|
};
|
297
349
|
/**
|
350
|
+
* @param {?} event
|
298
351
|
* @return {?}
|
299
352
|
*/
|
300
|
-
ButtonRadioDirective.prototype.
|
353
|
+
ButtonRadioDirective.prototype.onSpacePressed = /**
|
354
|
+
* @param {?} event
|
355
|
+
* @return {?}
|
356
|
+
*/
|
357
|
+
function (event) {
|
358
|
+
this.toggleIfAllowed();
|
359
|
+
event.preventDefault();
|
360
|
+
};
|
361
|
+
/**
|
362
|
+
* @return {?}
|
363
|
+
*/
|
364
|
+
ButtonRadioDirective.prototype.focus = /**
|
301
365
|
* @return {?}
|
302
366
|
*/
|
303
367
|
function () {
|
304
|
-
this.
|
368
|
+
this.el.nativeElement.focus();
|
369
|
+
};
|
370
|
+
/**
|
371
|
+
* @return {?}
|
372
|
+
*/
|
373
|
+
ButtonRadioDirective.prototype.onFocus = /**
|
374
|
+
* @return {?}
|
375
|
+
*/
|
376
|
+
function () {
|
377
|
+
this._hasFocus = true;
|
305
378
|
};
|
306
379
|
/**
|
307
380
|
* @return {?}
|
@@ -310,8 +383,27 @@
|
|
310
383
|
* @return {?}
|
311
384
|
*/
|
312
385
|
function () {
|
386
|
+
this._hasFocus = false;
|
313
387
|
this.onTouched();
|
314
388
|
};
|
389
|
+
/**
|
390
|
+
* @return {?}
|
391
|
+
*/
|
392
|
+
ButtonRadioDirective.prototype.canToggle = /**
|
393
|
+
* @return {?}
|
394
|
+
*/
|
395
|
+
function () {
|
396
|
+
return !this.controlOrGroupDisabled && (this.uncheckable || this.btnRadio !== this.value);
|
397
|
+
};
|
398
|
+
/**
|
399
|
+
* @return {?}
|
400
|
+
*/
|
401
|
+
ButtonRadioDirective.prototype.ngOnInit = /**
|
402
|
+
* @return {?}
|
403
|
+
*/
|
404
|
+
function () {
|
405
|
+
this.uncheckable = typeof this.uncheckable !== 'undefined';
|
406
|
+
};
|
315
407
|
/**
|
316
408
|
* @param {?} value
|
317
409
|
* @return {?}
|
@@ -322,8 +414,7 @@
|
|
322
414
|
*/
|
323
415
|
function (value) {
|
324
416
|
if (this.group) {
|
325
|
-
this.group.
|
326
|
-
this.group.onChange(value);
|
417
|
+
this.group.value = value;
|
327
418
|
return;
|
328
419
|
}
|
329
420
|
this.onTouched();
|
@@ -379,6 +470,7 @@
|
|
379
470
|
* @return {?}
|
380
471
|
*/
|
381
472
|
function (disabled) {
|
473
|
+
this._disabled = disabled;
|
382
474
|
if (disabled) {
|
383
475
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'disabled');
|
384
476
|
return;
|
@@ -395,16 +487,26 @@
|
|
395
487
|
ButtonRadioDirective.ctorParameters = function () { return [
|
396
488
|
{ type: core.ElementRef },
|
397
489
|
{ type: core.ChangeDetectorRef },
|
398
|
-
{ type:
|
399
|
-
{ type: core.
|
490
|
+
{ type: core.Renderer2 },
|
491
|
+
{ type: ButtonRadioGroupDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef((/**
|
492
|
+
* @return {?}
|
493
|
+
*/
|
494
|
+
function () { return ButtonRadioGroupDirective; })),] }] }
|
400
495
|
]; };
|
401
496
|
ButtonRadioDirective.propDecorators = {
|
402
497
|
btnRadio: [{ type: core.Input }],
|
403
498
|
uncheckable: [{ type: core.Input }],
|
404
499
|
value: [{ type: core.Input }],
|
405
500
|
disabled: [{ type: core.Input }],
|
406
|
-
|
407
|
-
|
501
|
+
controlOrGroupDisabled: [{ type: core.HostBinding, args: ['attr.aria-disabled',] }],
|
502
|
+
hasDisabledClass: [{ type: core.HostBinding, args: ['class.disabled',] }],
|
503
|
+
isActive: [{ type: core.HostBinding, args: ['class.active',] }, { type: core.HostBinding, args: ['attr.aria-checked',] }],
|
504
|
+
role: [{ type: core.HostBinding, args: ['attr.role',] }],
|
505
|
+
tabindex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
|
506
|
+
toggleIfAllowed: [{ type: core.HostListener, args: ['click',] }],
|
507
|
+
onSpacePressed: [{ type: core.HostListener, args: ['keydown.space', ['$event'],] }],
|
508
|
+
onFocus: [{ type: core.HostListener, args: ['focus',] }],
|
509
|
+
onBlur: [{ type: core.HostListener, args: ['blur',] }]
|
408
510
|
};
|
409
511
|
return ButtonRadioDirective;
|
410
512
|
}());
|
@@ -423,6 +525,8 @@
|
|
423
525
|
* @type {?}
|
424
526
|
*/
|
425
527
|
ButtonRadioDirective.prototype.uncheckable;
|
528
|
+
/** @type {?} */
|
529
|
+
ButtonRadioDirective.prototype.role;
|
426
530
|
/**
|
427
531
|
* @type {?}
|
428
532
|
* @private
|
@@ -433,6 +537,11 @@
|
|
433
537
|
* @private
|
434
538
|
*/
|
435
539
|
ButtonRadioDirective.prototype._disabled;
|
540
|
+
/**
|
541
|
+
* @type {?}
|
542
|
+
* @private
|
543
|
+
*/
|
544
|
+
ButtonRadioDirective.prototype._hasFocus;
|
436
545
|
/**
|
437
546
|
* @type {?}
|
438
547
|
* @private
|
@@ -447,12 +556,12 @@
|
|
447
556
|
* @type {?}
|
448
557
|
* @private
|
449
558
|
*/
|
450
|
-
ButtonRadioDirective.prototype.
|
559
|
+
ButtonRadioDirective.prototype.renderer;
|
451
560
|
/**
|
452
561
|
* @type {?}
|
453
562
|
* @private
|
454
563
|
*/
|
455
|
-
ButtonRadioDirective.prototype.
|
564
|
+
ButtonRadioDirective.prototype.group;
|
456
565
|
}
|
457
566
|
|
458
567
|
/**
|
@@ -478,6 +587,7 @@
|
|
478
587
|
this.cdr = cdr;
|
479
588
|
this.onChange = Function.prototype;
|
480
589
|
this.onTouched = Function.prototype;
|
590
|
+
this.role = 'radiogroup';
|
481
591
|
}
|
482
592
|
Object.defineProperty(ButtonRadioGroupDirective.prototype, "value", {
|
483
593
|
get: /**
|
@@ -492,6 +602,22 @@
|
|
492
602
|
*/
|
493
603
|
function (value) {
|
494
604
|
this._value = value;
|
605
|
+
this.onChange(value);
|
606
|
+
},
|
607
|
+
enumerable: true,
|
608
|
+
configurable: true
|
609
|
+
});
|
610
|
+
Object.defineProperty(ButtonRadioGroupDirective.prototype, "tabindex", {
|
611
|
+
get: /**
|
612
|
+
* @return {?}
|
613
|
+
*/
|
614
|
+
function () {
|
615
|
+
if (this._disabled) {
|
616
|
+
return null;
|
617
|
+
}
|
618
|
+
else {
|
619
|
+
return 0;
|
620
|
+
}
|
495
621
|
},
|
496
622
|
enumerable: true,
|
497
623
|
configurable: true
|
@@ -540,6 +666,7 @@
|
|
540
666
|
*/
|
541
667
|
function (disabled) {
|
542
668
|
if (this.radioButtons) {
|
669
|
+
this._disabled = disabled;
|
543
670
|
this.radioButtons.forEach((/**
|
544
671
|
* @param {?} buttons
|
545
672
|
* @return {?}
|
@@ -547,8 +674,145 @@
|
|
547
674
|
function (buttons) {
|
548
675
|
buttons.setDisabledState(disabled);
|
549
676
|
}));
|
677
|
+
this.cdr.markForCheck();
|
678
|
+
}
|
679
|
+
};
|
680
|
+
/**
|
681
|
+
* @return {?}
|
682
|
+
*/
|
683
|
+
ButtonRadioGroupDirective.prototype.onFocus = /**
|
684
|
+
* @return {?}
|
685
|
+
*/
|
686
|
+
function () {
|
687
|
+
if (this._disabled) {
|
688
|
+
return;
|
689
|
+
}
|
690
|
+
/** @type {?} */
|
691
|
+
var activeRadio = this.getActiveOrFocusedRadio();
|
692
|
+
if (activeRadio) {
|
693
|
+
activeRadio.focus();
|
694
|
+
}
|
695
|
+
else {
|
696
|
+
/** @type {?} */
|
697
|
+
var firstEnabled = this.radioButtons.find((/**
|
698
|
+
* @param {?} r
|
699
|
+
* @return {?}
|
700
|
+
*/
|
701
|
+
function (r) { return !r.disabled; }));
|
702
|
+
if (firstEnabled) {
|
703
|
+
firstEnabled.focus();
|
704
|
+
}
|
705
|
+
}
|
706
|
+
};
|
707
|
+
/**
|
708
|
+
* @return {?}
|
709
|
+
*/
|
710
|
+
ButtonRadioGroupDirective.prototype.onBlur = /**
|
711
|
+
* @return {?}
|
712
|
+
*/
|
713
|
+
function () {
|
714
|
+
if (this.onTouched) {
|
715
|
+
this.onTouched();
|
716
|
+
}
|
717
|
+
};
|
718
|
+
/**
|
719
|
+
* @param {?} event
|
720
|
+
* @return {?}
|
721
|
+
*/
|
722
|
+
ButtonRadioGroupDirective.prototype.selectNext = /**
|
723
|
+
* @param {?} event
|
724
|
+
* @return {?}
|
725
|
+
*/
|
726
|
+
function (event) {
|
727
|
+
this.selectInDirection('next');
|
728
|
+
event.preventDefault();
|
729
|
+
};
|
730
|
+
/**
|
731
|
+
* @param {?} event
|
732
|
+
* @return {?}
|
733
|
+
*/
|
734
|
+
ButtonRadioGroupDirective.prototype.selectPrevious = /**
|
735
|
+
* @param {?} event
|
736
|
+
* @return {?}
|
737
|
+
*/
|
738
|
+
function (event) {
|
739
|
+
this.selectInDirection('previous');
|
740
|
+
event.preventDefault();
|
741
|
+
};
|
742
|
+
Object.defineProperty(ButtonRadioGroupDirective.prototype, "disabled", {
|
743
|
+
get: /**
|
744
|
+
* @return {?}
|
745
|
+
*/
|
746
|
+
function () {
|
747
|
+
return this._disabled;
|
748
|
+
},
|
749
|
+
enumerable: true,
|
750
|
+
configurable: true
|
751
|
+
});
|
752
|
+
/**
|
753
|
+
* @private
|
754
|
+
* @param {?} direction
|
755
|
+
* @return {?}
|
756
|
+
*/
|
757
|
+
ButtonRadioGroupDirective.prototype.selectInDirection = /**
|
758
|
+
* @private
|
759
|
+
* @param {?} direction
|
760
|
+
* @return {?}
|
761
|
+
*/
|
762
|
+
function (direction) {
|
763
|
+
if (this._disabled) {
|
764
|
+
return;
|
765
|
+
}
|
766
|
+
/**
|
767
|
+
* @param {?} currentIndex
|
768
|
+
* @param {?} buttonRadioDirectives
|
769
|
+
* @return {?}
|
770
|
+
*/
|
771
|
+
function nextIndex(currentIndex, buttonRadioDirectives) {
|
772
|
+
/** @type {?} */
|
773
|
+
var step = direction === 'next' ? 1 : -1;
|
774
|
+
/** @type {?} */
|
775
|
+
var calcIndex = (currentIndex + step) % buttonRadioDirectives.length;
|
776
|
+
if (calcIndex < 0) {
|
777
|
+
calcIndex = buttonRadioDirectives.length - 1;
|
778
|
+
}
|
779
|
+
return calcIndex;
|
780
|
+
}
|
781
|
+
/** @type {?} */
|
782
|
+
var activeRadio = this.getActiveOrFocusedRadio();
|
783
|
+
if (activeRadio) {
|
784
|
+
/** @type {?} */
|
785
|
+
var buttonRadioDirectives = this.radioButtons.toArray();
|
786
|
+
/** @type {?} */
|
787
|
+
var currentActiveIndex = buttonRadioDirectives.indexOf(activeRadio);
|
788
|
+
for (var i = nextIndex(currentActiveIndex, buttonRadioDirectives); i !== currentActiveIndex; i = nextIndex(i, buttonRadioDirectives)) {
|
789
|
+
if (buttonRadioDirectives[i].canToggle()) {
|
790
|
+
buttonRadioDirectives[i].toggleIfAllowed();
|
791
|
+
buttonRadioDirectives[i].focus();
|
792
|
+
break;
|
793
|
+
}
|
794
|
+
}
|
550
795
|
}
|
551
796
|
};
|
797
|
+
/**
|
798
|
+
* @private
|
799
|
+
* @return {?}
|
800
|
+
*/
|
801
|
+
ButtonRadioGroupDirective.prototype.getActiveOrFocusedRadio = /**
|
802
|
+
* @private
|
803
|
+
* @return {?}
|
804
|
+
*/
|
805
|
+
function () {
|
806
|
+
return this.radioButtons.find((/**
|
807
|
+
* @param {?} button
|
808
|
+
* @return {?}
|
809
|
+
*/
|
810
|
+
function (button) { return button.isActive; })) || this.radioButtons.find((/**
|
811
|
+
* @param {?} button
|
812
|
+
* @return {?}
|
813
|
+
*/
|
814
|
+
function (button) { return button.hasFocus; }));
|
815
|
+
};
|
552
816
|
ButtonRadioGroupDirective.decorators = [
|
553
817
|
{ type: core.Directive, args: [{
|
554
818
|
selector: '[btnRadioGroup]',
|
@@ -560,10 +824,16 @@
|
|
560
824
|
{ type: core.ChangeDetectorRef }
|
561
825
|
]; };
|
562
826
|
ButtonRadioGroupDirective.propDecorators = {
|
827
|
+
role: [{ type: core.HostBinding, args: ['attr.role',] }],
|
563
828
|
radioButtons: [{ type: core.ContentChildren, args: [core.forwardRef((/**
|
564
829
|
* @return {?}
|
565
830
|
*/
|
566
|
-
function () { return ButtonRadioDirective; })),] }]
|
831
|
+
function () { return ButtonRadioDirective; })),] }],
|
832
|
+
tabindex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
|
833
|
+
onFocus: [{ type: core.HostListener, args: ['focus',] }],
|
834
|
+
onBlur: [{ type: core.HostListener, args: ['blur',] }],
|
835
|
+
selectNext: [{ type: core.HostListener, args: ['keydown.ArrowRight', ['$event'],] }, { type: core.HostListener, args: ['keydown.ArrowDown', ['$event'],] }],
|
836
|
+
selectPrevious: [{ type: core.HostListener, args: ['keydown.ArrowLeft', ['$event'],] }, { type: core.HostListener, args: ['keydown.ArrowUp', ['$event'],] }]
|
567
837
|
};
|
568
838
|
return ButtonRadioGroupDirective;
|
569
839
|
}());
|
@@ -573,12 +843,19 @@
|
|
573
843
|
/** @type {?} */
|
574
844
|
ButtonRadioGroupDirective.prototype.onTouched;
|
575
845
|
/** @type {?} */
|
846
|
+
ButtonRadioGroupDirective.prototype.role;
|
847
|
+
/** @type {?} */
|
576
848
|
ButtonRadioGroupDirective.prototype.radioButtons;
|
577
849
|
/**
|
578
850
|
* @type {?}
|
579
851
|
* @private
|
580
852
|
*/
|
581
853
|
ButtonRadioGroupDirective.prototype._value;
|
854
|
+
/**
|
855
|
+
* @type {?}
|
856
|
+
* @private
|
857
|
+
*/
|
858
|
+
ButtonRadioGroupDirective.prototype._disabled;
|
582
859
|
/**
|
583
860
|
* @type {?}
|
584
861
|
* @private
|