ngx-bootstrap 9.0.0-RC.2 → 10.0.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.
Files changed (95) hide show
  1. package/README.md +4 -4
  2. package/accordion/accordion-group.component.d.ts +0 -1
  3. package/accordion/esm2020/accordion-group.component.mjs +1 -5
  4. package/accordion/fesm2015/ngx-bootstrap-accordion.mjs +0 -4
  5. package/accordion/fesm2015/ngx-bootstrap-accordion.mjs.map +1 -1
  6. package/accordion/fesm2020/ngx-bootstrap-accordion.mjs +0 -4
  7. package/accordion/fesm2020/ngx-bootstrap-accordion.mjs.map +1 -1
  8. package/accordion/package.json +2 -3
  9. package/alert/package.json +2 -2
  10. package/buttons/button-radio-group.directive.d.ts +2 -2
  11. package/buttons/button-radio.directive.d.ts +5 -5
  12. package/buttons/esm2020/button-radio-group.directive.mjs +1 -1
  13. package/buttons/esm2020/button-radio.directive.mjs +1 -1
  14. package/buttons/fesm2015/ngx-bootstrap-buttons.mjs.map +1 -1
  15. package/buttons/fesm2020/ngx-bootstrap-buttons.mjs.map +1 -1
  16. package/buttons/package.json +1 -1
  17. package/carousel/carousel.component.d.ts +0 -1
  18. package/carousel/esm2020/carousel.component.mjs +4 -7
  19. package/carousel/fesm2015/ngx-bootstrap-carousel.mjs +3 -6
  20. package/carousel/fesm2015/ngx-bootstrap-carousel.mjs.map +1 -1
  21. package/carousel/fesm2020/ngx-bootstrap-carousel.mjs +3 -6
  22. package/carousel/fesm2020/ngx-bootstrap-carousel.mjs.map +1 -1
  23. package/carousel/package.json +2 -2
  24. package/chronos/package.json +1 -1
  25. package/collapse/package.json +1 -1
  26. package/component-loader/package.json +2 -2
  27. package/datepicker/package.json +5 -5
  28. package/dropdown/bs-dropdown.directive.d.ts +0 -1
  29. package/dropdown/esm2020/bs-dropdown-container.component.mjs +2 -3
  30. package/dropdown/esm2020/bs-dropdown.directive.mjs +6 -12
  31. package/dropdown/fesm2015/ngx-bootstrap-dropdown.mjs +6 -12
  32. package/dropdown/fesm2015/ngx-bootstrap-dropdown.mjs.map +1 -1
  33. package/dropdown/fesm2020/ngx-bootstrap-dropdown.mjs +6 -12
  34. package/dropdown/fesm2020/ngx-bootstrap-dropdown.mjs.map +1 -1
  35. package/dropdown/package.json +2 -3
  36. package/focus-trap/package.json +1 -1
  37. package/locale/package.json +2 -2
  38. package/mini-ngrx/package.json +1 -1
  39. package/modal/esm2020/bs-modal.service.mjs +2 -2
  40. package/modal/esm2020/modal-backdrop.component.mjs +4 -12
  41. package/modal/esm2020/modal-container.component.mjs +4 -5
  42. package/modal/esm2020/modal-options.class.mjs +2 -2
  43. package/modal/esm2020/modal.directive.mjs +4 -12
  44. package/modal/fesm2015/ngx-bootstrap-modal.mjs +10 -26
  45. package/modal/fesm2015/ngx-bootstrap-modal.mjs.map +1 -1
  46. package/modal/fesm2020/ngx-bootstrap-modal.mjs +10 -26
  47. package/modal/fesm2020/ngx-bootstrap-modal.mjs.map +1 -1
  48. package/modal/package.json +3 -3
  49. package/package.json +1 -1
  50. package/pagination/package.json +1 -1
  51. package/popover/package.json +4 -4
  52. package/positioning/package.json +2 -2
  53. package/progressbar/bar.component.d.ts +0 -1
  54. package/progressbar/esm2020/bar.component.mjs +3 -8
  55. package/progressbar/esm2020/progressbar-type.interface.mjs +1 -1
  56. package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs +2 -7
  57. package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs.map +1 -1
  58. package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs +2 -7
  59. package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs.map +1 -1
  60. package/progressbar/package.json +1 -2
  61. package/rating/package.json +1 -1
  62. package/schematics/utils/current_dependency_versions.json +1 -1
  63. package/schematics/utils/index.js +9 -4
  64. package/schematics/utils/index.js.map +1 -1
  65. package/sortable/package.json +1 -1
  66. package/tabs/package.json +1 -1
  67. package/timepicker/esm2020/timepicker.component.mjs +3 -3
  68. package/timepicker/fesm2015/ngx-bootstrap-timepicker.mjs +2 -2
  69. package/timepicker/fesm2015/ngx-bootstrap-timepicker.mjs.map +1 -1
  70. package/timepicker/fesm2020/ngx-bootstrap-timepicker.mjs +2 -2
  71. package/timepicker/fesm2020/ngx-bootstrap-timepicker.mjs.map +1 -1
  72. package/timepicker/package.json +2 -2
  73. package/tooltip/esm2020/tooltip-container.component.mjs +3 -5
  74. package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs +2 -4
  75. package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs.map +1 -1
  76. package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs +2 -4
  77. package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs.map +1 -1
  78. package/tooltip/package.json +4 -4
  79. package/typeahead/esm2020/typeahead-container.component.mjs +7 -11
  80. package/typeahead/fesm2015/ngx-bootstrap-typeahead.mjs +6 -10
  81. package/typeahead/fesm2015/ngx-bootstrap-typeahead.mjs.map +1 -1
  82. package/typeahead/fesm2020/ngx-bootstrap-typeahead.mjs +6 -10
  83. package/typeahead/fesm2020/ngx-bootstrap-typeahead.mjs.map +1 -1
  84. package/typeahead/package.json +3 -3
  85. package/typeahead/typeahead-container.component.d.ts +0 -1
  86. package/utils/esm2020/public_api.mjs +2 -2
  87. package/utils/esm2020/theme-provider.mjs +1 -29
  88. package/utils/esm2020/utils.class.mjs +4 -4
  89. package/utils/fesm2015/ngx-bootstrap-utils.mjs +4 -32
  90. package/utils/fesm2015/ngx-bootstrap-utils.mjs.map +1 -1
  91. package/utils/fesm2020/ngx-bootstrap-utils.mjs +4 -32
  92. package/utils/fesm2020/ngx-bootstrap-utils.mjs.map +1 -1
  93. package/utils/package.json +1 -1
  94. package/utils/public_api.d.ts +1 -1
  95. package/utils/theme-provider.d.ts +1 -4
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Component, Output, ViewChild, ViewChildren, HostListener, Injectable, Directive, Input, NgModule } from '@angular/core';
3
- import { isBs3, Utils } from 'ngx-bootstrap/utils';
3
+ import { Utils } from 'ngx-bootstrap/utils';
4
4
  import * as i1 from 'ngx-bootstrap/positioning';
5
5
  import { PositioningService } from 'ngx-bootstrap/positioning';
6
6
  import { Subscription, isObservable, EMPTY, from } from 'rxjs';
@@ -978,9 +978,6 @@ class TypeaheadContainerComponent {
978
978
  this.changeDetectorRef.detectChanges();
979
979
  }));
980
980
  }
981
- get isBs4() {
982
- return !isBs3();
983
- }
984
981
  get typeaheadTemplateMethods() {
985
982
  return {
986
983
  selectMatch: this.selectMatch.bind(this),
@@ -1230,18 +1227,17 @@ class TypeaheadContainerComponent {
1230
1227
  }
1231
1228
  }
1232
1229
  TypeaheadContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: TypeaheadContainerComponent, deps: [{ token: i1.PositioningService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1233
- TypeaheadContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: TypeaheadContainerComponent, selector: "typeahead-container", outputs: { activeChangeEvent: "activeChange" }, host: { listeners: { "mouseleave": "focusLost()", "blur": "focusLost()" }, properties: { "class.dropdown-menu": "isBs4", "style.height": "isBs4 && needScrollbar ? guiHeight: 'auto'", "style.visibility": "'inherit'", "class.dropup": "dropup", "attr.role": "isBs4 ? 'listbox' : null " }, styleAttribute: "position: absolute;display: block;", classAttribute: "dropdown open bottom" }, viewQueries: [{ propertyName: "ulElement", first: true, predicate: ["ulElement"], descendants: true }, { propertyName: "liElements", predicate: ["liElements"], descendants: true }], ngImport: i0, template: "<!-- inject options list template -->\n<ng-template [ngTemplateOutlet]=\"optionsListTemplate || (isBs4 ? bs4Template : bs3Template)\"\n [ngTemplateOutletContext]=\"{\n matches: matches,\n itemTemplate: itemTemplate || bsItemTemplate,\n query: query,\n $implicit: typeaheadTemplateMethods\n }\">\n</ng-template>\n\n<!-- default options item template -->\n<ng-template #bsItemTemplate let-match=\"match\" let-query=\"query\">\n <span [innerHtml]=\"highlight(match, query)\"></span>\n</ng-template>\n\n<!-- Bootstrap 3 options list template -->\n<ng-template #bs3Template>\n <ul class=\"dropdown-menu\"\n #ulElement\n role=\"listbox\"\n [style.overflow-y]=\"needScrollbar ? 'scroll': 'auto'\"\n [style.height]=\"needScrollbar ? guiHeight: 'auto'\">\n <ng-template ngFor let-match let-i=\"index\" [ngForOf]=\"matches\">\n <li #liElements *ngIf=\"match.isHeader()\" class=\"dropdown-header\">{{ match }}</li>\n <li #liElements\n *ngIf=\"!match.isHeader()\"\n [id]=\"popupId + '-' + i\"\n role=\"option\"\n [@typeaheadAnimation]=\"animationState\"\n [class.active]=\"isActive(match)\"\n (mouseenter)=\"selectActive(match)\">\n\n <a href=\"#\" (click)=\"selectMatch(match, $event)\" tabindex=\"-1\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate || bsItemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-template>\n </a>\n </li>\n </ng-template>\n </ul>\n</ng-template>\n\n<!-- Bootstrap 4 options list template -->\n<ng-template #bs4Template>\n <ng-template ngFor let-match let-i=\"index\" [ngForOf]=\"matches\">\n <h6 *ngIf=\"match.isHeader()\" class=\"dropdown-header\">{{ match }}</h6>\n <ng-template [ngIf]=\"!match.isHeader()\">\n <button #liElements\n [id]=\"popupId + '-' + i\"\n role=\"option\"\n [@typeaheadAnimation]=\"animationState\"\n class=\"dropdown-item\"\n (click)=\"selectMatch(match, $event)\"\n (mouseenter)=\"selectActive(match)\"\n [class.active]=\"isActive(match)\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate || bsItemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-template>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n", styles: [":host.dropdown{z-index:1000}:host.dropdown-menu,.dropdown-menu{overflow-y:auto;height:100px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [typeaheadAnimation] });
1230
+ TypeaheadContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: TypeaheadContainerComponent, selector: "typeahead-container", outputs: { activeChangeEvent: "activeChange" }, host: { listeners: { "mouseleave": "focusLost()", "blur": "focusLost()" }, properties: { "style.height": "needScrollbar ? guiHeight: 'auto'", "style.visibility": "'inherit'", "class.dropup": "dropup", "attr.role": "'listbox'" }, styleAttribute: "position: absolute;display: block;", classAttribute: "dropdown open bottom dropdown-menu" }, viewQueries: [{ propertyName: "ulElement", first: true, predicate: ["ulElement"], descendants: true }, { propertyName: "liElements", predicate: ["liElements"], descendants: true }], ngImport: i0, template: "<!-- inject options list template -->\n<ng-template [ngTemplateOutlet]=\"optionsListTemplate || bs4Template\"\n [ngTemplateOutletContext]=\"{\n matches: matches,\n itemTemplate: itemTemplate || bsItemTemplate,\n query: query,\n $implicit: typeaheadTemplateMethods\n }\">\n</ng-template>\n\n<!-- default options item template -->\n<ng-template #bsItemTemplate let-match=\"match\" let-query=\"query\">\n <span [innerHtml]=\"highlight(match, query)\"></span>\n</ng-template>\n\n<!-- Bootstrap 4 options list template -->\n<ng-template #bs4Template>\n <ng-template ngFor let-match let-i=\"index\" [ngForOf]=\"matches\">\n <h6 *ngIf=\"match.isHeader()\" class=\"dropdown-header\">{{ match }}</h6>\n <ng-template [ngIf]=\"!match.isHeader()\">\n <button #liElements\n [id]=\"popupId + '-' + i\"\n role=\"option\"\n [@typeaheadAnimation]=\"animationState\"\n class=\"dropdown-item\"\n (click)=\"selectMatch(match, $event)\"\n (mouseenter)=\"selectActive(match)\"\n [class.active]=\"isActive(match)\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate || bsItemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-template>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n", styles: [":host.dropdown{z-index:1000}:host.dropdown-menu,.dropdown-menu{overflow-y:auto;height:100px}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [typeaheadAnimation] });
1234
1231
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: TypeaheadContainerComponent, decorators: [{
1235
1232
  type: Component,
1236
1233
  args: [{ selector: 'typeahead-container', host: {
1237
- class: 'dropdown open bottom',
1238
- '[class.dropdown-menu]': 'isBs4',
1239
- '[style.height]': `isBs4 && needScrollbar ? guiHeight: 'auto'`,
1234
+ class: 'dropdown open bottom dropdown-menu',
1235
+ '[style.height]': `needScrollbar ? guiHeight: 'auto'`,
1240
1236
  '[style.visibility]': `'inherit'`,
1241
1237
  '[class.dropup]': 'dropup',
1242
1238
  style: 'position: absolute;display: block;',
1243
- '[attr.role]': `isBs4 ? 'listbox' : null `
1244
- }, animations: [typeaheadAnimation], template: "<!-- inject options list template -->\n<ng-template [ngTemplateOutlet]=\"optionsListTemplate || (isBs4 ? bs4Template : bs3Template)\"\n [ngTemplateOutletContext]=\"{\n matches: matches,\n itemTemplate: itemTemplate || bsItemTemplate,\n query: query,\n $implicit: typeaheadTemplateMethods\n }\">\n</ng-template>\n\n<!-- default options item template -->\n<ng-template #bsItemTemplate let-match=\"match\" let-query=\"query\">\n <span [innerHtml]=\"highlight(match, query)\"></span>\n</ng-template>\n\n<!-- Bootstrap 3 options list template -->\n<ng-template #bs3Template>\n <ul class=\"dropdown-menu\"\n #ulElement\n role=\"listbox\"\n [style.overflow-y]=\"needScrollbar ? 'scroll': 'auto'\"\n [style.height]=\"needScrollbar ? guiHeight: 'auto'\">\n <ng-template ngFor let-match let-i=\"index\" [ngForOf]=\"matches\">\n <li #liElements *ngIf=\"match.isHeader()\" class=\"dropdown-header\">{{ match }}</li>\n <li #liElements\n *ngIf=\"!match.isHeader()\"\n [id]=\"popupId + '-' + i\"\n role=\"option\"\n [@typeaheadAnimation]=\"animationState\"\n [class.active]=\"isActive(match)\"\n (mouseenter)=\"selectActive(match)\">\n\n <a href=\"#\" (click)=\"selectMatch(match, $event)\" tabindex=\"-1\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate || bsItemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-template>\n </a>\n </li>\n </ng-template>\n </ul>\n</ng-template>\n\n<!-- Bootstrap 4 options list template -->\n<ng-template #bs4Template>\n <ng-template ngFor let-match let-i=\"index\" [ngForOf]=\"matches\">\n <h6 *ngIf=\"match.isHeader()\" class=\"dropdown-header\">{{ match }}</h6>\n <ng-template [ngIf]=\"!match.isHeader()\">\n <button #liElements\n [id]=\"popupId + '-' + i\"\n role=\"option\"\n [@typeaheadAnimation]=\"animationState\"\n class=\"dropdown-item\"\n (click)=\"selectMatch(match, $event)\"\n (mouseenter)=\"selectActive(match)\"\n [class.active]=\"isActive(match)\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate || bsItemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-template>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n", styles: [":host.dropdown{z-index:1000}:host.dropdown-menu,.dropdown-menu{overflow-y:auto;height:100px}\n"] }]
1239
+ '[attr.role]': `'listbox'`
1240
+ }, animations: [typeaheadAnimation], template: "<!-- inject options list template -->\n<ng-template [ngTemplateOutlet]=\"optionsListTemplate || bs4Template\"\n [ngTemplateOutletContext]=\"{\n matches: matches,\n itemTemplate: itemTemplate || bsItemTemplate,\n query: query,\n $implicit: typeaheadTemplateMethods\n }\">\n</ng-template>\n\n<!-- default options item template -->\n<ng-template #bsItemTemplate let-match=\"match\" let-query=\"query\">\n <span [innerHtml]=\"highlight(match, query)\"></span>\n</ng-template>\n\n<!-- Bootstrap 4 options list template -->\n<ng-template #bs4Template>\n <ng-template ngFor let-match let-i=\"index\" [ngForOf]=\"matches\">\n <h6 *ngIf=\"match.isHeader()\" class=\"dropdown-header\">{{ match }}</h6>\n <ng-template [ngIf]=\"!match.isHeader()\">\n <button #liElements\n [id]=\"popupId + '-' + i\"\n role=\"option\"\n [@typeaheadAnimation]=\"animationState\"\n class=\"dropdown-item\"\n (click)=\"selectMatch(match, $event)\"\n (mouseenter)=\"selectActive(match)\"\n [class.active]=\"isActive(match)\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate || bsItemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-template>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n", styles: [":host.dropdown{z-index:1000}:host.dropdown-menu,.dropdown-menu{overflow-y:auto;height:100px}\n"] }]
1245
1241
  }], ctorParameters: function () { return [{ type: i1.PositioningService }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { activeChangeEvent: [{
1246
1242
  type: Output,
1247
1243
  args: ['activeChange']