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,12 +1,12 @@
|
|
1
1
|
import { __values } from 'tslib';
|
2
|
-
import { EventEmitter, Component, Renderer2, ElementRef, ChangeDetectorRef, Output, ViewChild, ViewChildren, HostListener, Injectable, Directive, ViewContainerRef, Input, NgModule } from '@angular/core';
|
2
|
+
import { EventEmitter, Component, Renderer2, ElementRef, ChangeDetectorRef, Output, ViewChild, ViewChildren, HostListener, Injectable, ɵɵdefineInjectable, Directive, ViewContainerRef, Input, NgModule } from '@angular/core';
|
3
3
|
import { isBs3, Utils } from 'ngx-bootstrap/utils';
|
4
4
|
import { PositioningService } from 'ngx-bootstrap/positioning';
|
5
5
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
6
6
|
import { NgControl } from '@angular/forms';
|
7
7
|
import { isObservable, from } from 'rxjs';
|
8
8
|
import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
9
|
-
import { debounceTime, switchMap, mergeMap, filter, toArray } from 'rxjs/operators';
|
9
|
+
import { debounceTime, tap, switchMap, mergeMap, filter, toArray } from 'rxjs/operators';
|
10
10
|
import { CommonModule } from '@angular/common';
|
11
11
|
|
12
12
|
/**
|
@@ -963,11 +963,44 @@ function escapeRegexp(queryToEscape) {
|
|
963
963
|
* @param {?} str
|
964
964
|
* @param {?=} wordRegexDelimiters
|
965
965
|
* @param {?=} phraseRegexDelimiters
|
966
|
+
* @param {?=} delimitersForMultipleSearch
|
966
967
|
* @return {?}
|
967
968
|
*/
|
968
|
-
function tokenize(str, wordRegexDelimiters, phraseRegexDelimiters) {
|
969
|
+
function tokenize(str, wordRegexDelimiters, phraseRegexDelimiters, delimitersForMultipleSearch) {
|
969
970
|
if (wordRegexDelimiters === void 0) { wordRegexDelimiters = ' '; }
|
970
971
|
if (phraseRegexDelimiters === void 0) { phraseRegexDelimiters = ''; }
|
972
|
+
/** @type {?} */
|
973
|
+
var result = [];
|
974
|
+
if (!delimitersForMultipleSearch) {
|
975
|
+
result = tokenizeWordsAndPhrases(str, wordRegexDelimiters, phraseRegexDelimiters);
|
976
|
+
}
|
977
|
+
else {
|
978
|
+
/** @type {?} */
|
979
|
+
var multipleSearchRegexStr = "([" + delimitersForMultipleSearch + "]+)";
|
980
|
+
/** @type {?} */
|
981
|
+
var delimitedTokens = str.split(new RegExp(multipleSearchRegexStr, 'g'));
|
982
|
+
/** @type {?} */
|
983
|
+
var lastToken = delimitedTokens[delimitedTokens.length - 1];
|
984
|
+
if (lastToken > '') {
|
985
|
+
if (wordRegexDelimiters && phraseRegexDelimiters) {
|
986
|
+
result = tokenizeWordsAndPhrases(lastToken, wordRegexDelimiters, phraseRegexDelimiters);
|
987
|
+
}
|
988
|
+
else {
|
989
|
+
result.push(lastToken);
|
990
|
+
}
|
991
|
+
}
|
992
|
+
}
|
993
|
+
return result;
|
994
|
+
}
|
995
|
+
/**
|
996
|
+
* @param {?} str
|
997
|
+
* @param {?} wordRegexDelimiters
|
998
|
+
* @param {?} phraseRegexDelimiters
|
999
|
+
* @return {?}
|
1000
|
+
*/
|
1001
|
+
function tokenizeWordsAndPhrases(str, wordRegexDelimiters, phraseRegexDelimiters) {
|
1002
|
+
/** @type {?} */
|
1003
|
+
var result = [];
|
971
1004
|
/* tslint:enable */
|
972
1005
|
/** @type {?} */
|
973
1006
|
var regexStr = "(?:[" + phraseRegexDelimiters + "])([^" + phraseRegexDelimiters + "]+)" +
|
@@ -975,8 +1008,6 @@ function tokenize(str, wordRegexDelimiters, phraseRegexDelimiters) {
|
|
975
1008
|
/** @type {?} */
|
976
1009
|
var preTokenized = str.split(new RegExp(regexStr, 'g'));
|
977
1010
|
/** @type {?} */
|
978
|
-
var result = [];
|
979
|
-
/** @type {?} */
|
980
1011
|
var preTokenizedLength = preTokenized.length;
|
981
1012
|
/** @type {?} */
|
982
1013
|
var token;
|
@@ -1705,8 +1736,11 @@ var TypeaheadConfig = /** @class */ (function () {
|
|
1705
1736
|
this.minLength = 1;
|
1706
1737
|
}
|
1707
1738
|
TypeaheadConfig.decorators = [
|
1708
|
-
{ type: Injectable
|
1739
|
+
{ type: Injectable, args: [{
|
1740
|
+
providedIn: 'root'
|
1741
|
+
},] }
|
1709
1742
|
];
|
1743
|
+
/** @nocollapse */ TypeaheadConfig.ɵprov = ɵɵdefineInjectable({ factory: function TypeaheadConfig_Factory() { return new TypeaheadConfig(); }, token: TypeaheadConfig, providedIn: "root" });
|
1710
1744
|
return TypeaheadConfig;
|
1711
1745
|
}());
|
1712
1746
|
if (false) {
|
@@ -1789,6 +1823,23 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
1789
1823
|
* Sets the word delimiter to break words. Defaults to space.
|
1790
1824
|
*/
|
1791
1825
|
this.typeaheadWordDelimiters = ' ';
|
1826
|
+
/**
|
1827
|
+
* Can be used to conduct a search of multiple items and have suggestion not for the
|
1828
|
+
* whole value of the input but for the value that comes after a delimiter provided via
|
1829
|
+
* typeaheadMultipleSearchDelimiters attribute. This option can only be used together with
|
1830
|
+
* typeaheadSingleWords option if typeaheadWordDelimiters and typeaheadPhraseDelimiters
|
1831
|
+
* are different from typeaheadMultipleSearchDelimiters to avoid conflict in determining
|
1832
|
+
* when to delimit multiple searches and when a single word.
|
1833
|
+
*/
|
1834
|
+
this.typeaheadMultipleSearch = void 0;
|
1835
|
+
/**
|
1836
|
+
* should be used only in case typeaheadMultipleSearch attribute is true.
|
1837
|
+
* Sets the multiple search delimiter to know when to start a new search. Defaults to comma.
|
1838
|
+
* If space needs to be used, then explicitly set typeaheadWordDelimiters to something else than space
|
1839
|
+
* because space is used by default OR set typeaheadSingleWords attribute to false if you don't need
|
1840
|
+
* to use it together with multiple search.
|
1841
|
+
*/
|
1842
|
+
this.typeaheadMultipleSearchDelimiters = ',';
|
1792
1843
|
/**
|
1793
1844
|
* should be used only in case typeaheadSingleWords attribute is true.
|
1794
1845
|
* Sets the word delimiter to match exact phrase.
|
@@ -1842,13 +1893,14 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
1842
1893
|
this.cancelRequestOnFocusLost = false;
|
1843
1894
|
// tslint:disable-next-line:no-any
|
1844
1895
|
this.keyUpEventEmitter = new EventEmitter();
|
1896
|
+
this._matches = [];
|
1845
1897
|
this.placement = 'bottom left';
|
1846
1898
|
this._subscriptions = [];
|
1847
1899
|
this._typeahead = cis.createLoader(element, viewContainerRef, renderer)
|
1848
1900
|
.provide({ provide: TypeaheadConfig, useValue: config });
|
1849
1901
|
Object.assign(this, {
|
1850
1902
|
typeaheadHideResultsOnBlur: config.hideResultsOnBlur,
|
1851
|
-
|
1903
|
+
cancelRequestOnFocusLost: config.cancelRequestOnFocusLost,
|
1852
1904
|
typeaheadSelectFirstItem: config.selectFirstItem,
|
1853
1905
|
typeaheadIsFirstItemActive: config.isFirstItemActive,
|
1854
1906
|
typeaheadMinLength: config.minLength,
|
@@ -1880,6 +1932,7 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
1880
1932
|
else {
|
1881
1933
|
this.syncActions();
|
1882
1934
|
}
|
1935
|
+
this.checkDelimitersConflict();
|
1883
1936
|
};
|
1884
1937
|
/**
|
1885
1938
|
* @param {?} e
|
@@ -2026,7 +2079,16 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2026
2079
|
*/
|
2027
2080
|
function (match) {
|
2028
2081
|
/** @type {?} */
|
2029
|
-
var valueStr
|
2082
|
+
var valueStr;
|
2083
|
+
if (this.typeaheadMultipleSearch) {
|
2084
|
+
/** @type {?} */
|
2085
|
+
var tokens = this._allEnteredValue.split(new RegExp("([" + this.typeaheadMultipleSearchDelimiters + "]+)"));
|
2086
|
+
this._allEnteredValue = tokens.slice(0, tokens.length - 1).concat(match.value).join('');
|
2087
|
+
valueStr = this._allEnteredValue;
|
2088
|
+
}
|
2089
|
+
else {
|
2090
|
+
valueStr = match.value;
|
2091
|
+
}
|
2030
2092
|
this.ngControl.viewToModelUpdate(valueStr);
|
2031
2093
|
(this.ngControl.control).setValue(valueStr);
|
2032
2094
|
this.changeDetection.markForCheck();
|
@@ -2082,9 +2144,7 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2082
2144
|
: this.ngControl.control.value)
|
2083
2145
|
.toString()
|
2084
2146
|
.toLowerCase();
|
2085
|
-
this._container.query = this.
|
2086
|
-
? tokenize(normalizedQuery, this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters)
|
2087
|
-
: normalizedQuery;
|
2147
|
+
this._container.query = this.tokenizeQuery(normalizedQuery);
|
2088
2148
|
this._container.matches = this._matches;
|
2089
2149
|
this.element.nativeElement.focus();
|
2090
2150
|
this._container.activeChangeEvent.subscribe((/**
|
@@ -2158,7 +2218,13 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2158
2218
|
function () {
|
2159
2219
|
var _this = this;
|
2160
2220
|
this._subscriptions.push(this.keyUpEventEmitter
|
2161
|
-
.pipe(debounceTime(this.typeaheadWaitMs),
|
2221
|
+
.pipe(debounceTime(this.typeaheadWaitMs), tap((/**
|
2222
|
+
* @param {?} value
|
2223
|
+
* @return {?}
|
2224
|
+
*/
|
2225
|
+
function (value) {
|
2226
|
+
_this._allEnteredValue = value;
|
2227
|
+
})), switchMap((/**
|
2162
2228
|
* @return {?}
|
2163
2229
|
*/
|
2164
2230
|
function () { return _this.typeahead; })))
|
@@ -2186,6 +2252,7 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2186
2252
|
* @return {?}
|
2187
2253
|
*/
|
2188
2254
|
function (value) {
|
2255
|
+
_this._allEnteredValue = value;
|
2189
2256
|
/** @type {?} */
|
2190
2257
|
var normalizedQuery = _this.normalizeQuery(value);
|
2191
2258
|
return from(_this.typeahead)
|
@@ -2224,6 +2291,34 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2224
2291
|
: optionValue;
|
2225
2292
|
return normalizedOption.toLowerCase();
|
2226
2293
|
};
|
2294
|
+
/**
|
2295
|
+
* @protected
|
2296
|
+
* @param {?} currentQuery
|
2297
|
+
* @return {?}
|
2298
|
+
*/
|
2299
|
+
TypeaheadDirective.prototype.tokenizeQuery = /**
|
2300
|
+
* @protected
|
2301
|
+
* @param {?} currentQuery
|
2302
|
+
* @return {?}
|
2303
|
+
*/
|
2304
|
+
function (currentQuery) {
|
2305
|
+
/** @type {?} */
|
2306
|
+
var query = currentQuery;
|
2307
|
+
if (this.typeaheadMultipleSearch && this.typeaheadSingleWords) {
|
2308
|
+
if (!this.haveCommonCharacters("" + this.typeaheadPhraseDelimiters + this.typeaheadWordDelimiters, this.typeaheadMultipleSearchDelimiters)) {
|
2309
|
+
// single words and multiple search delimiters are different, can be used together
|
2310
|
+
query = tokenize((/** @type {?} */ (query)), this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters, this.typeaheadMultipleSearchDelimiters);
|
2311
|
+
}
|
2312
|
+
}
|
2313
|
+
else if (this.typeaheadSingleWords) {
|
2314
|
+
query = tokenize((/** @type {?} */ (query)), this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters);
|
2315
|
+
}
|
2316
|
+
else {
|
2317
|
+
// multiple searches
|
2318
|
+
query = tokenize((/** @type {?} */ (query)), null, null, this.typeaheadMultipleSearchDelimiters);
|
2319
|
+
}
|
2320
|
+
return query;
|
2321
|
+
};
|
2227
2322
|
/**
|
2228
2323
|
* @protected
|
2229
2324
|
* @param {?} value
|
@@ -2242,9 +2337,7 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2242
2337
|
: value)
|
2243
2338
|
.toString()
|
2244
2339
|
.toLowerCase();
|
2245
|
-
normalizedQuery = this.
|
2246
|
-
? tokenize(normalizedQuery, this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters)
|
2247
|
-
: normalizedQuery;
|
2340
|
+
normalizedQuery = this.tokenizeQuery(normalizedQuery);
|
2248
2341
|
return normalizedQuery;
|
2249
2342
|
};
|
2250
2343
|
/**
|
@@ -2303,9 +2396,7 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2303
2396
|
// This improves the speed as it won't have to be done for each list item
|
2304
2397
|
/** @type {?} */
|
2305
2398
|
var normalizedQuery = _controlValue.toString().toLowerCase();
|
2306
|
-
this._container.query = this.
|
2307
|
-
? tokenize(normalizedQuery, this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters)
|
2308
|
-
: normalizedQuery;
|
2399
|
+
this._container.query = this.tokenizeQuery(normalizedQuery);
|
2309
2400
|
this._container.matches = this._matches;
|
2310
2401
|
}
|
2311
2402
|
else {
|
@@ -2453,14 +2544,48 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2453
2544
|
function () {
|
2454
2545
|
return this._matches.length > 0;
|
2455
2546
|
};
|
2547
|
+
/**
|
2548
|
+
* @protected
|
2549
|
+
* @return {?}
|
2550
|
+
*/
|
2551
|
+
TypeaheadDirective.prototype.checkDelimitersConflict = /**
|
2552
|
+
* @protected
|
2553
|
+
* @return {?}
|
2554
|
+
*/
|
2555
|
+
function () {
|
2556
|
+
if (this.typeaheadMultipleSearch && this.typeaheadSingleWords
|
2557
|
+
&& (this.haveCommonCharacters("" + this.typeaheadPhraseDelimiters + this.typeaheadWordDelimiters, this.typeaheadMultipleSearchDelimiters))) {
|
2558
|
+
throw new Error("Delimiters used in typeaheadMultipleSearchDelimiters must be different\n from delimiters used in typeaheadWordDelimiters (current value: " + this.typeaheadWordDelimiters + ") and\n typeaheadPhraseDelimiters (current value: " + this.typeaheadPhraseDelimiters + ").\n Please refer to the documentation");
|
2559
|
+
}
|
2560
|
+
};
|
2561
|
+
/**
|
2562
|
+
* @protected
|
2563
|
+
* @param {?} str1
|
2564
|
+
* @param {?} str2
|
2565
|
+
* @return {?}
|
2566
|
+
*/
|
2567
|
+
TypeaheadDirective.prototype.haveCommonCharacters = /**
|
2568
|
+
* @protected
|
2569
|
+
* @param {?} str1
|
2570
|
+
* @param {?} str2
|
2571
|
+
* @return {?}
|
2572
|
+
*/
|
2573
|
+
function (str1, str2) {
|
2574
|
+
for (var i = 0; i < str1.length; i++) {
|
2575
|
+
if (str1.charAt(i).indexOf(str2) > -1) {
|
2576
|
+
return true;
|
2577
|
+
}
|
2578
|
+
}
|
2579
|
+
return false;
|
2580
|
+
};
|
2456
2581
|
TypeaheadDirective.decorators = [
|
2457
2582
|
{ type: Directive, args: [{
|
2458
2583
|
selector: '[typeahead]',
|
2459
2584
|
exportAs: 'bs-typeahead',
|
2460
2585
|
host: {
|
2461
2586
|
'[attr.aria-activedescendant]': 'activeDescendant',
|
2462
|
-
'[attr.aria-
|
2463
|
-
'[attr.aria-
|
2587
|
+
'[attr.aria-owns]': 'isOpen ? this._container.popupId : null',
|
2588
|
+
'[attr.aria-expanded]': 'isOpen',
|
2464
2589
|
'[attr.aria-autocomplete]': 'list'
|
2465
2590
|
}
|
2466
2591
|
},] }
|
@@ -2489,6 +2614,8 @@ var TypeaheadDirective = /** @class */ (function () {
|
|
2489
2614
|
typeaheadLatinize: [{ type: Input }],
|
2490
2615
|
typeaheadSingleWords: [{ type: Input }],
|
2491
2616
|
typeaheadWordDelimiters: [{ type: Input }],
|
2617
|
+
typeaheadMultipleSearch: [{ type: Input }],
|
2618
|
+
typeaheadMultipleSearchDelimiters: [{ type: Input }],
|
2492
2619
|
typeaheadPhraseDelimiters: [{ type: Input }],
|
2493
2620
|
typeaheadItemTemplate: [{ type: Input }],
|
2494
2621
|
optionsListTemplate: [{ type: Input }],
|
@@ -2590,6 +2717,25 @@ if (false) {
|
|
2590
2717
|
* @type {?}
|
2591
2718
|
*/
|
2592
2719
|
TypeaheadDirective.prototype.typeaheadWordDelimiters;
|
2720
|
+
/**
|
2721
|
+
* Can be used to conduct a search of multiple items and have suggestion not for the
|
2722
|
+
* whole value of the input but for the value that comes after a delimiter provided via
|
2723
|
+
* typeaheadMultipleSearchDelimiters attribute. This option can only be used together with
|
2724
|
+
* typeaheadSingleWords option if typeaheadWordDelimiters and typeaheadPhraseDelimiters
|
2725
|
+
* are different from typeaheadMultipleSearchDelimiters to avoid conflict in determining
|
2726
|
+
* when to delimit multiple searches and when a single word.
|
2727
|
+
* @type {?}
|
2728
|
+
*/
|
2729
|
+
TypeaheadDirective.prototype.typeaheadMultipleSearch;
|
2730
|
+
/**
|
2731
|
+
* should be used only in case typeaheadMultipleSearch attribute is true.
|
2732
|
+
* Sets the multiple search delimiter to know when to start a new search. Defaults to comma.
|
2733
|
+
* If space needs to be used, then explicitly set typeaheadWordDelimiters to something else than space
|
2734
|
+
* because space is used by default OR set typeaheadSingleWords attribute to false if you don't need
|
2735
|
+
* to use it together with multiple search.
|
2736
|
+
* @type {?}
|
2737
|
+
*/
|
2738
|
+
TypeaheadDirective.prototype.typeaheadMultipleSearchDelimiters;
|
2593
2739
|
/**
|
2594
2740
|
* should be used only in case typeaheadSingleWords attribute is true.
|
2595
2741
|
* Sets the word delimiter to match exact phrase.
|
@@ -2715,6 +2861,11 @@ if (false) {
|
|
2715
2861
|
* @private
|
2716
2862
|
*/
|
2717
2863
|
TypeaheadDirective.prototype._outsideClickListener;
|
2864
|
+
/**
|
2865
|
+
* @type {?}
|
2866
|
+
* @private
|
2867
|
+
*/
|
2868
|
+
TypeaheadDirective.prototype._allEnteredValue;
|
2718
2869
|
/**
|
2719
2870
|
* @type {?}
|
2720
2871
|
* @private
|
@@ -2753,7 +2904,7 @@ var TypeaheadModule = /** @class */ (function () {
|
|
2753
2904
|
function () {
|
2754
2905
|
return {
|
2755
2906
|
ngModule: TypeaheadModule,
|
2756
|
-
providers: [ComponentLoaderFactory, PositioningService
|
2907
|
+
providers: [ComponentLoaderFactory, PositioningService]
|
2757
2908
|
};
|
2758
2909
|
};
|
2759
2910
|
TypeaheadModule.decorators = [
|