@mintplayer/ng-bootstrap 21.0.0 → 21.1.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 (155) hide show
  1. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +33 -46
  2. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  3. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +12 -30
  4. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  5. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +6 -18
  6. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  7. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +31 -65
  8. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +200 -132
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  11. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +5 -7
  12. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  13. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +14 -17
  14. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  15. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +231 -347
  16. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  17. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +43 -39
  18. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +7 -35
  20. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  21. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +1 -0
  22. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  25. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +46 -86
  26. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  27. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +7 -7
  28. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
  29. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +7 -6
  30. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  31. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +32 -74
  32. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  33. package/fesm2022/mintplayer-ng-bootstrap-let.mjs +6 -7
  34. package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +18 -18
  36. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +20 -22
  38. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs +16 -10
  40. package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs.map +1 -1
  41. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +8 -28
  42. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  43. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +204 -265
  44. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  45. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +8 -21
  46. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -1
  47. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +43 -38
  48. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +6 -6
  50. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +1 -1
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +59 -120
  52. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  53. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +11 -25
  54. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  55. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +8 -28
  56. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  57. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +67 -103
  58. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  59. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +34 -63
  60. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +6 -6
  62. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  63. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +19 -47
  64. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +35 -41
  66. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  67. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +205 -779
  68. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  69. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +34 -39
  70. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  71. package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +74 -100
  72. package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +1 -1
  73. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +37 -79
  74. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  75. package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +78 -45
  76. package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +1 -1
  77. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +16 -26
  78. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  79. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +14 -40
  80. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  81. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +8 -32
  82. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +70 -76
  84. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  85. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +11 -11
  86. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  87. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +53 -99
  88. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  89. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +7 -38
  90. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  91. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +23 -49
  92. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  93. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +33 -38
  94. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +45 -98
  96. package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +1 -1
  97. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +12 -24
  98. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  99. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +21 -43
  100. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  101. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +6 -6
  102. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +1 -1
  103. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +29 -49
  104. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  105. package/package.json +5 -5
  106. package/types/mintplayer-ng-bootstrap-accordion.d.ts +11 -15
  107. package/types/mintplayer-ng-bootstrap-alert.d.ts +4 -9
  108. package/types/mintplayer-ng-bootstrap-badge.d.ts +5 -9
  109. package/types/mintplayer-ng-bootstrap-calendar.d.ts +14 -22
  110. package/types/mintplayer-ng-bootstrap-carousel.d.ts +41 -35
  111. package/types/mintplayer-ng-bootstrap-close.d.ts +1 -2
  112. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +4 -5
  113. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +70 -97
  114. package/types/mintplayer-ng-bootstrap-datatable.d.ts +11 -11
  115. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +6 -13
  116. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +14 -20
  117. package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +1 -3
  118. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +1 -1
  119. package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -26
  120. package/types/mintplayer-ng-bootstrap-let.d.ts +0 -2
  121. package/types/mintplayer-ng-bootstrap-markdown.d.ts +1 -5
  122. package/types/mintplayer-ng-bootstrap-modal.d.ts +3 -6
  123. package/types/mintplayer-ng-bootstrap-multiselect.d.ts +6 -6
  124. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +5 -11
  125. package/types/mintplayer-ng-bootstrap-navbar.d.ts +74 -80
  126. package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +2 -4
  127. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +12 -14
  128. package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +1 -2
  129. package/types/mintplayer-ng-bootstrap-pagination.d.ts +17 -31
  130. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +3 -8
  131. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +5 -11
  132. package/types/mintplayer-ng-bootstrap-popover.d.ts +15 -23
  133. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +19 -22
  134. package/types/mintplayer-ng-bootstrap-range.d.ts +1 -2
  135. package/types/mintplayer-ng-bootstrap-rating.d.ts +8 -14
  136. package/types/mintplayer-ng-bootstrap-resizable.d.ts +7 -11
  137. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +132 -220
  138. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +14 -15
  139. package/types/mintplayer-ng-bootstrap-searchbox.d.ts +20 -27
  140. package/types/mintplayer-ng-bootstrap-select.d.ts +13 -23
  141. package/types/mintplayer-ng-bootstrap-select2.d.ts +16 -14
  142. package/types/mintplayer-ng-bootstrap-shell.d.ts +6 -12
  143. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +7 -12
  144. package/types/mintplayer-ng-bootstrap-spinner.d.ts +8 -16
  145. package/types/mintplayer-ng-bootstrap-splitter.d.ts +21 -27
  146. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +3 -3
  147. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +29 -37
  148. package/types/mintplayer-ng-bootstrap-table.d.ts +6 -13
  149. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +7 -14
  150. package/types/mintplayer-ng-bootstrap-toast.d.ts +5 -10
  151. package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +22 -36
  152. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +4 -7
  153. package/types/mintplayer-ng-bootstrap-treeview.d.ts +10 -15
  154. package/types/mintplayer-ng-bootstrap-trust-html.d.ts +0 -2
  155. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +14 -17
@@ -1,6 +1,5 @@
1
- import { AsyncPipe } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { EventEmitter, Input, Output, ViewChild, Component } from '@angular/core';
2
+ import { signal, input, computed, model, output, effect, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
4
3
  import * as i1 from '@angular/forms';
5
4
  import { FormsModule } from '@angular/forms';
6
5
  import * as i3 from '@mintplayer/ng-bootstrap/dropdown';
@@ -13,78 +12,59 @@ import * as i4 from '@mintplayer/ng-bootstrap/has-overlay';
13
12
  import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
14
13
  import * as i6 from '@mintplayer/ng-bootstrap/progress-bar';
15
14
  import { BsProgressBarModule } from '@mintplayer/ng-bootstrap/progress-bar';
16
- import { BehaviorSubject, map } from 'rxjs';
17
15
 
18
16
  class BsTypeaheadComponent {
19
17
  constructor() {
20
- this.isOpen = false;
21
- this.suggestions$ = new BehaviorSubject([]);
22
- this.isLoading$ = new BehaviorSubject(false);
23
- this.searchterm = '';
24
- this.isLoadingText = 'Loading...';
25
- this.noSuggestionsText = 'No suggestions found';
26
- this.provideSuggestions = new EventEmitter();
27
- this.suggestionSelected = new EventEmitter();
28
- this.searchtermChange = new EventEmitter();
29
- this.submitted = new EventEmitter();
30
- this.showNoSuggestions$ = this.suggestions$
31
- .pipe(map(suggestions => suggestions.length === 0));
18
+ this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
19
+ this.suggestions = input([], ...(ngDevMode ? [{ debugName: "suggestions" }] : []));
20
+ this.isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
21
+ this.showNoSuggestions = computed(() => this.suggestions().length === 0, ...(ngDevMode ? [{ debugName: "showNoSuggestions" }] : []));
22
+ this.searchterm = model('', ...(ngDevMode ? [{ debugName: "searchterm" }] : []));
23
+ this.isLoadingText = input('Loading...', ...(ngDevMode ? [{ debugName: "isLoadingText" }] : []));
24
+ this.noSuggestionsText = input('No suggestions found', ...(ngDevMode ? [{ debugName: "noSuggestionsText" }] : []));
25
+ this.provideSuggestions = output();
26
+ this.suggestionSelected = output();
27
+ this.submitted = output();
28
+ effect(() => {
29
+ const suggestions = this.suggestions();
30
+ if (suggestions) {
31
+ this.isLoading.set(false);
32
+ }
33
+ });
32
34
  }
33
35
  onProvideSuggestions(value) {
34
- this.searchtermChange.emit(value);
36
+ this.searchterm.set(value);
35
37
  if (value === '') {
36
- this.isOpen = false;
37
- this.suggestions$.next([]);
38
+ this.isOpen.set(false);
38
39
  }
39
40
  else {
40
- this.isLoading$.next(true);
41
- this.isOpen = true;
41
+ this.isLoading.set(true);
42
+ this.isOpen.set(true);
42
43
  this.provideSuggestions.emit(value);
43
44
  }
44
45
  }
45
- set suggestions(value) {
46
- this.isLoading$.next(false);
47
- this.suggestions$.next(value);
48
- }
49
46
  suggestionClicked(suggestion) {
50
- this.searchterm = suggestion.text;
51
- this.searchtermChange.emit(this.searchterm);
52
- this.isOpen = false;
47
+ this.searchterm.set(suggestion.text);
48
+ this.isOpen.set(false);
53
49
  this.suggestionSelected.emit(suggestion);
54
50
  }
55
51
  onSubmit() {
56
- this.isOpen = false;
57
- this.submitted.emit(this.searchterm);
52
+ this.isOpen.set(false);
53
+ this.submitted.emit(this.searchterm());
58
54
  }
59
55
  focus() {
60
56
  this.textbox.nativeElement.focus();
61
57
  }
62
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsTypeaheadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsTypeaheadComponent, isStandalone: true, selector: "bs-typeahead", inputs: { searchterm: "searchterm", isLoadingText: "isLoadingText", noSuggestionsText: "noSuggestionsText", suggestions: "suggestions" }, outputs: { provideSuggestions: "provideSuggestions", suggestionSelected: "suggestionSelected", searchtermChange: "searchtermChange", submitted: "submitted" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }], ngImport: i0, template: "<!-- <bs-dropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\"></bs-dropdown> -->\n<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\" #textbox [(ngModel)]=\"searchterm\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isLoading$ | async) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText }}\n </bs-dropdown-item>\n }\n @if ((isLoading$ | async) === false) {\n @if (showNoSuggestions$ | async) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText }}\n </bs-dropdown-item>\n }\n @for (suggestion of (suggestions$ | async); track suggestion) {\n <bs-dropdown-item (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BsFormModule }, { kind: "component", type: i2.BsFormComponent, selector: "bs-form", inputs: ["action", "method"], outputs: ["submitted"] }, { kind: "directive", type: i2.BsFormControlDirective, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)" }, { kind: "ngmodule", type: BsDropdownModule }, { kind: "directive", type: i3.BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "sameDropdownWidth", "isOpen"], outputs: ["isOpenChange"] }, { kind: "directive", type: i3.BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { kind: "component", type: i4.BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "ngmodule", type: BsDropdownMenuModule }, { kind: "component", type: i5.BsDropdownMenuComponent, selector: "bs-dropdown-menu", inputs: ["maxHeight"] }, { kind: "component", type: i5.BsDropdownItemComponent, selector: "bs-dropdown-item", inputs: ["isSelected", "disabled"] }, { kind: "ngmodule", type: BsProgressBarModule }, { kind: "component", type: i6.BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate"] }, { kind: "pipe", type: AsyncPipe, name: "async" }] }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsTypeaheadComponent, isStandalone: true, selector: "bs-typeahead", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, searchterm: { classPropertyName: "searchterm", publicName: "searchterm", isSignal: true, isRequired: false, transformFunction: null }, isLoadingText: { classPropertyName: "isLoadingText", publicName: "isLoadingText", isSignal: true, isRequired: false, transformFunction: null }, noSuggestionsText: { classPropertyName: "noSuggestionsText", publicName: "noSuggestionsText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { searchterm: "searchtermChange", provideSuggestions: "provideSuggestions", suggestionSelected: "suggestionSelected", submitted: "submitted" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\" #textbox [ngModel]=\"searchterm()\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText() }}\n </bs-dropdown-item>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </bs-dropdown-item>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: BsFormModule }, { kind: "component", type: i2.BsFormComponent, selector: "bs-form", inputs: ["action", "method"], outputs: ["submitted"] }, { kind: "directive", type: i2.BsFormControlDirective, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)" }, { kind: "ngmodule", type: BsDropdownModule }, { kind: "directive", type: i3.BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "sameDropdownWidth", "isOpen"], outputs: ["isOpenChange"] }, { kind: "directive", type: i3.BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { kind: "component", type: i4.BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "ngmodule", type: BsDropdownMenuModule }, { kind: "component", type: i5.BsDropdownMenuComponent, selector: "bs-dropdown-menu", inputs: ["maxHeight"] }, { kind: "component", type: i5.BsDropdownItemComponent, selector: "bs-dropdown-item", inputs: ["isSelected", "disabled"] }, { kind: "ngmodule", type: BsProgressBarModule }, { kind: "component", type: i6.BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
60
  }
65
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsTypeaheadComponent, decorators: [{
66
62
  type: Component,
67
- args: [{ selector: 'bs-typeahead', standalone: true, imports: [AsyncPipe, FormsModule, BsFormModule, BsDropdownModule, BsDropdownMenuModule, BsProgressBarModule, BsHasOverlayComponent], template: "<!-- <bs-dropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\"></bs-dropdown> -->\n<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\" #textbox [(ngModel)]=\"searchterm\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isLoading$ | async) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText }}\n </bs-dropdown-item>\n }\n @if ((isLoading$ | async) === false) {\n @if (showNoSuggestions$ | async) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText }}\n </bs-dropdown-item>\n }\n @for (suggestion of (suggestions$ | async); track suggestion) {\n <bs-dropdown-item (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"] }]
68
- }], ctorParameters: () => [], propDecorators: { textbox: [{
63
+ args: [{ selector: 'bs-typeahead', standalone: true, imports: [FormsModule, BsFormModule, BsDropdownModule, BsDropdownMenuModule, BsProgressBarModule, BsHasOverlayComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\" #textbox [ngModel]=\"searchterm()\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText() }}\n </bs-dropdown-item>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </bs-dropdown-item>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"] }]
64
+ }], ctorParameters: () => [], propDecorators: { suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], textbox: [{
69
65
  type: ViewChild,
70
66
  args: ['textbox']
71
- }], searchterm: [{
72
- type: Input
73
- }], isLoadingText: [{
74
- type: Input
75
- }], noSuggestionsText: [{
76
- type: Input
77
- }], provideSuggestions: [{
78
- type: Output
79
- }], suggestionSelected: [{
80
- type: Output
81
- }], searchtermChange: [{
82
- type: Output
83
- }], submitted: [{
84
- type: Output
85
- }], suggestions: [{
86
- type: Input
87
- }] } });
67
+ }], searchterm: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchterm", required: false }] }, { type: i0.Output, args: ["searchtermChange"] }], isLoadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoadingText", required: false }] }], noSuggestionsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noSuggestionsText", required: false }] }], provideSuggestions: [{ type: i0.Output, args: ["provideSuggestions"] }], suggestionSelected: [{ type: i0.Output, args: ["suggestionSelected"] }], submitted: [{ type: i0.Output, args: ["submitted"] }] } });
88
68
 
89
69
  /**
90
70
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-typeahead.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.html","../../../../libs/mintplayer-ng-bootstrap/typeahead/mintplayer-ng-bootstrap-typeahead.ts"],"sourcesContent":["import { AsyncPipe } from '@angular/common';\nimport { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { BsDropdownModule } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownMenuModule } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsFormModule } from '@mintplayer/ng-bootstrap/form';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsProgressBarModule } from '@mintplayer/ng-bootstrap/progress-bar';\nimport { BehaviorSubject, map, Observable } from 'rxjs';\n\n@Component({\n selector: 'bs-typeahead',\n templateUrl: './typeahead.component.html',\n styleUrls: ['./typeahead.component.scss'],\n standalone: true,\n imports: [AsyncPipe, FormsModule, BsFormModule, BsDropdownModule, BsDropdownMenuModule, BsProgressBarModule, BsHasOverlayComponent]\n})\nexport class BsTypeaheadComponent {\n\n isOpen = false;\n \n suggestions$ = new BehaviorSubject<any[]>([]);\n isLoading$ = new BehaviorSubject<boolean>(false);\n showNoSuggestions$: Observable<boolean>;\n \n @ViewChild('textbox') textbox!: ElementRef<HTMLInputElement>;\n @Input() searchterm = '';\n @Input() public isLoadingText = 'Loading...';\n @Input() public noSuggestionsText = 'No suggestions found';\n @Output() public provideSuggestions = new EventEmitter<string>();\n @Output() suggestionSelected = new EventEmitter<any>();\n @Output() searchtermChange = new EventEmitter<string>();\n @Output() submitted = new EventEmitter<string>();\n \n constructor() {\n this.showNoSuggestions$ = this.suggestions$\n .pipe(map(suggestions => suggestions.length === 0));\n }\n\n onProvideSuggestions(value: string) {\n this.searchtermChange.emit(value);\n if (value === '') {\n this.isOpen = false;\n this.suggestions$.next([]);\n } else {\n this.isLoading$.next(true);\n this.isOpen = true;\n this.provideSuggestions.emit(value);\n }\n }\n\n @Input() public set suggestions(value: any[]) {\n this.isLoading$.next(false);\n this.suggestions$.next(value);\n }\n suggestionClicked(suggestion: any) {\n this.searchterm = suggestion.text;\n this.searchtermChange.emit(this.searchterm);\n\n this.isOpen = false;\n this.suggestionSelected.emit(suggestion);\n }\n\n onSubmit() {\n this.isOpen = false;\n this.submitted.emit(this.searchterm);\n }\n\n public focus() {\n this.textbox.nativeElement.focus();\n }\n\n}\n","<!-- <bs-dropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\"></bs-dropdown> -->\n<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\" #textbox [(ngModel)]=\"searchterm\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isLoading$ | async) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText }}\n </bs-dropdown-item>\n }\n @if ((isLoading$ | async) === false) {\n @if (showNoSuggestions$ | async) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText }}\n </bs-dropdown-item>\n }\n @for (suggestion of (suggestions$ | async); track suggestion) {\n <bs-dropdown-item (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAiBa,oBAAoB,CAAA;AAiB/B,IAAA,WAAA,GAAA;QAfA,IAAA,CAAA,MAAM,GAAG,KAAK;AAEd,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,eAAe,CAAQ,EAAE,CAAC;AAC7C,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;QAIvC,IAAA,CAAA,UAAU,GAAG,EAAE;QACR,IAAA,CAAA,aAAa,GAAG,YAAY;QAC5B,IAAA,CAAA,iBAAiB,GAAG,sBAAsB;AACzC,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,YAAY,EAAU;AACtD,QAAA,IAAA,CAAA,kBAAkB,GAAG,IAAI,YAAY,EAAO;AAC5C,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,YAAY,EAAU;AAC7C,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAU;AAG9C,QAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;AAC5B,aAAA,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IACvD;AAEA,IAAA,oBAAoB,CAAC,KAAa,EAAA;AAChC,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;AACjC,QAAA,IAAI,KAAK,KAAK,EAAE,EAAE;AAChB,YAAA,IAAI,CAAC,MAAM,GAAG,KAAK;AACnB,YAAA,IAAI,CAAC,YAAY,CAAC,IAAI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QAAA,EAAA,yxCAAA,EAAA,MAAA,EAAA,CAAA,kDAAA,CAAA,EAAA;;sBAUlI,SAAS;uBAAC,SAAS;;sBACnB;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAmBA;;;AEnDH;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-typeahead.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.html","../../../../libs/mintplayer-ng-bootstrap/typeahead/mintplayer-ng-bootstrap-typeahead.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, input, model, output, signal, ViewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { BsDropdownModule } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownMenuModule } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsFormModule } from '@mintplayer/ng-bootstrap/form';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsProgressBarModule } from '@mintplayer/ng-bootstrap/progress-bar';\n\n@Component({\n selector: 'bs-typeahead',\n templateUrl: './typeahead.component.html',\n styleUrls: ['./typeahead.component.scss'],\n standalone: true,\n imports: [FormsModule, BsFormModule, BsDropdownModule, BsDropdownMenuModule, BsProgressBarModule, BsHasOverlayComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTypeaheadComponent {\n\n isOpen = signal(false);\n\n suggestions = input<any[]>([]);\n isLoading = signal<boolean>(false);\n showNoSuggestions = computed(() => this.suggestions().length === 0);\n\n @ViewChild('textbox') textbox!: ElementRef<HTMLInputElement>;\n searchterm = model('');\n isLoadingText = input('Loading...');\n noSuggestionsText = input('No suggestions found');\n provideSuggestions = output<string>();\n suggestionSelected = output<any>();\n submitted = output<string>();\n\n constructor() {\n effect(() => {\n const suggestions = this.suggestions();\n if (suggestions) {\n this.isLoading.set(false);\n }\n });\n }\n\n onProvideSuggestions(value: string) {\n this.searchterm.set(value);\n if (value === '') {\n this.isOpen.set(false);\n } else {\n this.isLoading.set(true);\n this.isOpen.set(true);\n this.provideSuggestions.emit(value);\n }\n }\n\n suggestionClicked(suggestion: any) {\n this.searchterm.set(suggestion.text);\n this.isOpen.set(false);\n this.suggestionSelected.emit(suggestion);\n }\n\n onSubmit() {\n this.isOpen.set(false);\n this.submitted.emit(this.searchterm());\n }\n\n public focus() {\n this.textbox.nativeElement.focus();\n }\n}\n","<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\" #textbox [ngModel]=\"searchterm()\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText() }}\n </bs-dropdown-item>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </bs-dropdown-item>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAgBa,oBAAoB,CAAA;AAgB/B,IAAA,WAAA,GAAA;AAdA,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,KAAK,kDAAC;AAEtB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAQ,EAAE,uDAAC;AAC9B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAU,KAAK,qDAAC;A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AAA,CAAA,kDAAA,CAAA,EAAA;;sBAU9C,SAAS;uBAAC,SAAS;;;AExBtB;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-bootstrap",
3
3
  "private": false,
4
- "version": "21.0.0",
4
+ "version": "21.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MintPlayer/mintplayer-ng-bootstrap",
@@ -360,11 +360,11 @@
360
360
  "bootstrap": "^5.3.0",
361
361
  "bootstrap-icons": "^1.7.2",
362
362
  "ngx-highlightjs": "^10.0.0",
363
- "@mintplayer/ng-click-outside": "^21.0.0",
364
- "@mintplayer/ng-animations": "^21.0.0",
363
+ "@mintplayer/ng-click-outside": "^21.1.0",
364
+ "@mintplayer/ng-animations": "^21.1.0",
365
365
  "@mintplayer/pagination": "^2.2.0",
366
- "@mintplayer/ng-focus-on-load": "^21.0.0",
367
- "@mintplayer/ng-swiper": "^21.0.0",
366
+ "@mintplayer/ng-focus-on-load": "^21.1.0",
367
+ "@mintplayer/ng-swiper": "^21.1.0",
368
368
  "@mintplayer/parentify": "^1.1.0"
369
369
  },
370
370
  "dependencies": {
@@ -1,41 +1,37 @@
1
1
  import * as i0 from '@angular/core';
2
- import { QueryList, EventEmitter } from '@angular/core';
3
- import { BehaviorSubject, Observable } from 'rxjs';
2
+ import { QueryList } from '@angular/core';
4
3
  import * as i4 from '@angular/common';
5
4
  import * as i5 from '@mintplayer/ng-bootstrap/no-noscript';
6
5
 
7
6
  declare class BsAccordionTabComponent {
8
7
  accordion: BsAccordionComponent;
9
- accordionTabId$: BehaviorSubject<number>;
10
- accordionTabName$: Observable<string>;
8
+ accordionTabId: i0.WritableSignal<number>;
9
+ accordionTabName: i0.Signal<string>;
11
10
  childAccordions: QueryList<BsAccordionComponent>;
12
- constructor(accordion: BsAccordionComponent);
11
+ constructor();
13
12
  accordionItemClass: boolean;
14
13
  dBlock: boolean;
15
14
  noBorder: boolean;
16
- isActiveChange: EventEmitter<boolean>;
17
- private _isActive;
18
- get isActive(): boolean;
19
- set isActive(value: boolean);
15
+ isActive: i0.ModelSignal<boolean>;
16
+ setActive(value: boolean): void;
20
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BsAccordionTabComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": { "alias": "isActive"; "required": false; }; }, { "isActiveChange": "isActiveChange"; }, ["childAccordions"], ["bs-accordion-tab-header", "*"], false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; }, { "isActive": "isActiveChange"; }, ["childAccordions"], ["bs-accordion-tab-header", "*"], false, never>;
22
19
  }
23
20
 
24
21
  declare class BsAccordionComponent {
25
22
  constructor();
26
23
  tabPages: QueryList<BsAccordionTabComponent>;
27
24
  disableAnimations: boolean;
28
- highlightActiveTab: boolean;
29
- accordionId$: BehaviorSubject<number>;
30
- accordionName$: Observable<string>;
25
+ highlightActiveTab: i0.InputSignal<boolean>;
26
+ accordionId: i0.WritableSignal<number>;
27
+ accordionName: i0.Signal<string>;
31
28
  accordionTabCounter: number;
32
29
  static accordionCounter: number;
33
30
  static ɵfac: i0.ɵɵFactoryDeclaration<BsAccordionComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, { "highlightActiveTab": { "alias": "highlightActiveTab"; "required": false; }; }, {}, ["tabPages"], ["*"], false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, { "highlightActiveTab": { "alias": "highlightActiveTab"; "required": false; "isSignal": true; }; }, {}, ["tabPages"], ["*"], false, never>;
35
32
  }
36
33
 
37
34
  declare class BsAccordionTabHeaderComponent {
38
- constructor(accordionTab: BsAccordionTabComponent);
39
35
  accordionTab: BsAccordionTabComponent;
40
36
  headerClicked(event: MouseEvent): void;
41
37
  static ɵfac: i0.ɵɵFactoryDeclaration<BsAccordionTabHeaderComponent, never>;
@@ -1,23 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
3
2
  import { Color } from '@mintplayer/ng-bootstrap';
4
3
 
5
4
  declare class BsAlertComponent {
6
- type: Color;
5
+ type: i0.InputSignal<Color>;
7
6
  colors: typeof Color;
8
- private _isVisible;
9
- get isVisible(): boolean;
10
- set isVisible(value: boolean);
11
- isVisibleChange: EventEmitter<boolean>;
12
- afterOpenedOrClosed: EventEmitter<any>;
7
+ isVisible: i0.ModelSignal<boolean>;
8
+ afterOpenedOrClosed: i0.OutputEmitterRef<boolean>;
13
9
  onAfterOpenedOrClosed(isVisible: boolean): void;
14
10
  static ɵfac: i0.ɵɵFactoryDeclaration<BsAlertComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<BsAlertComponent, "bs-alert", never, { "type": { "alias": "type"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, { "isVisibleChange": "isVisibleChange"; "afterOpenedOrClosed": "afterOpenedOrClosed"; }, never, ["*"], false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsAlertComponent, "bs-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isVisible": { "alias": "isVisible"; "required": false; "isSignal": true; }; }, { "isVisible": "isVisibleChange"; "afterOpenedOrClosed": "afterOpenedOrClosed"; }, never, ["*"], false, never>;
16
12
  }
17
13
 
18
14
  declare class BsAlertCloseComponent {
19
15
  private alert;
20
- constructor(alert: BsAlertComponent);
21
16
  closeAlert(): boolean;
22
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BsAlertCloseComponent, never>;
23
18
  static ɵcmp: i0.ɵɵComponentDeclaration<BsAlertCloseComponent, "bs-alert-close", never, {}, {}, never, never, false, never>;
@@ -1,16 +1,12 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
1
+ import * as _angular_core from '@angular/core';
2
2
  import { Color } from '@mintplayer/ng-bootstrap';
3
- import * as i0 from '@angular/core';
4
3
 
5
4
  declare class BsBadgeComponent {
6
- constructor();
7
5
  colors: typeof Color;
8
- type$: BehaviorSubject<Color>;
9
- get type(): Color;
10
- set type(value: Color);
11
- colorClass$: Observable<string>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<BsBadgeComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<BsBadgeComponent, "bs-badge", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
6
+ type: _angular_core.InputSignal<Color>;
7
+ colorClass: _angular_core.Signal<string>;
8
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsBadgeComponent, never>;
9
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsBadgeComponent, "bs-badge", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
14
10
  }
15
11
 
16
12
  export { BsBadgeComponent };
@@ -1,33 +1,25 @@
1
- import * as i0 from '@angular/core';
2
- import { DestroyRef, EventEmitter } from '@angular/core';
3
- import { Observable, BehaviorSubject } from 'rxjs';
4
- import { BsCalendarMonthService, Week, WeekDay, DateDayOfMonth } from '@mintplayer/ng-bootstrap/calendar-month';
5
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
1
+ import * as _mintplayer_ng_bootstrap_calendar_month from '@mintplayer/ng-bootstrap/calendar-month';
2
+ import { WeekDay, DateDayOfMonth } from '@mintplayer/ng-bootstrap/calendar-month';
3
+ import * as _angular_core from '@angular/core';
4
+ import { SafeHtml } from '@angular/platform-browser';
6
5
 
7
6
  declare class BsCalendarComponent {
8
7
  private sanitizer;
9
8
  private calendarMonthService;
10
- private destroy;
11
- constructor(sanitizer: DomSanitizer, calendarMonthService: BsCalendarMonthService, destroy: DestroyRef);
12
- chevronLeft?: SafeHtml;
13
- chevronRight?: SafeHtml;
14
- weeks$: Observable<Week[]>;
15
- shownDays$: Observable<WeekDay[]>;
16
- currentMonth$: BehaviorSubject<Date>;
17
- currentMonthChange: EventEmitter<Date>;
18
- get currentMonth(): Date;
19
- set currentMonth(value: Date);
20
- selectedDate$: BehaviorSubject<Date>;
21
- selectedDateChange: EventEmitter<Date>;
22
- get selectedDate(): Date;
23
- set selectedDate(value: Date);
24
- disableDateFn?: (date: Date) => boolean;
9
+ constructor();
10
+ chevronLeft: _angular_core.WritableSignal<SafeHtml | undefined>;
11
+ chevronRight: _angular_core.WritableSignal<SafeHtml | undefined>;
12
+ currentMonth: _angular_core.ModelSignal<Date>;
13
+ selectedDate: _angular_core.ModelSignal<Date>;
14
+ disableDateFn: _angular_core.InputSignal<((date: Date) => boolean) | undefined>;
15
+ weeks: _angular_core.Signal<_mintplayer_ng_bootstrap_calendar_month.Week[]>;
16
+ shownDays: _angular_core.Signal<WeekDay[]>;
25
17
  previousMonth(): boolean;
26
18
  nextMonth(): boolean;
27
19
  isSameDate(date1: Date | null, date2: Date | null): boolean;
28
20
  goto(day: DateDayOfMonth | null): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<BsCalendarComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<BsCalendarComponent, "bs-calendar", never, { "currentMonth": { "alias": "currentMonth"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "disableDateFn": { "alias": "disableDateFn"; "required": false; }; }, { "currentMonthChange": "currentMonthChange"; "selectedDateChange": "selectedDateChange"; }, never, never, true, never>;
21
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCalendarComponent, never>;
22
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCalendarComponent, "bs-calendar", never, { "currentMonth": { "alias": "currentMonth"; "required": false; "isSignal": true; }; "selectedDate": { "alias": "selectedDate"; "required": false; "isSignal": true; }; "disableDateFn": { "alias": "disableDateFn"; "required": false; "isSignal": true; }; }, { "currentMonth": "currentMonthChange"; "selectedDate": "selectedDateChange"; }, never, never, true, never>;
31
23
  }
32
24
 
33
25
  export { BsCalendarComponent };
@@ -1,67 +1,73 @@
1
- import * as i0 from '@angular/core';
2
- import { TemplateRef, ElementRef, AfterViewInit, OnDestroy, ChangeDetectorRef, QueryList } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef, AfterViewInit, OnDestroy, QueryList, ElementRef } from '@angular/core';
3
3
  import { Color } from '@mintplayer/ng-bootstrap';
4
- import * as i5 from '@mintplayer/ng-swiper/swiper';
5
4
  import { BsSwipeContainerDirective } from '@mintplayer/ng-swiper/swiper';
6
- import { BehaviorSubject, Observable } from 'rxjs';
7
- import * as i4 from '@angular/common';
8
- import * as i6 from '@mintplayer/ng-bootstrap/no-noscript';
9
5
 
10
6
  declare class BsCarouselImageDirective {
11
7
  private templateRef;
8
+ private carousel;
12
9
  private element;
13
10
  itemTemplate: TemplateRef<any>;
14
- constructor(templateRef: TemplateRef<any>, carousel: BsCarouselComponent, element: ElementRef<HTMLElement>);
15
11
  id: number;
16
12
  isFirst: boolean;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<BsCarouselImageDirective, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<BsCarouselImageDirective, "*[bsCarouselImage]", never, {}, {}, never, never, false, never>;
13
+ constructor();
14
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselImageDirective, never>;
15
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselImageDirective, "*[bsCarouselImage]", never, {}, {}, never, never, true, never>;
19
16
  }
20
17
 
21
18
  declare class BsCarouselComponent implements AfterViewInit, OnDestroy {
22
- private cdRef;
23
- constructor(platformId: any, cdRef: ChangeDetectorRef);
19
+ private platformId;
20
+ private destroyRef;
24
21
  colors: typeof Color;
25
22
  isServerSide: boolean;
26
- currentImageIndex: number;
27
- images$: BehaviorSubject<QueryList<BsCarouselImageDirective> | null>;
28
- imageCount$: Observable<number>;
29
- firstImageTemplate$: Observable<TemplateRef<any> | null>;
30
- lastImageTemplate$: Observable<TemplateRef<any> | null>;
23
+ currentImageIndex: _angular_core.WritableSignal<number>;
24
+ images: _angular_core.WritableSignal<QueryList<BsCarouselImageDirective> | null>;
31
25
  resizeObserver?: ResizeObserver;
32
- indicators: boolean;
33
- keyboardEvents: boolean;
34
- private _orientation;
35
- set orientation(value: 'horizontal' | 'vertical');
36
- get orientation(): "horizontal" | "vertical";
26
+ private intervalId?;
27
+ indicators: _angular_core.InputSignal<boolean>;
28
+ keyboardEvents: _angular_core.InputSignal<boolean>;
29
+ orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
30
+ animation: _angular_core.InputSignal<"fade" | "slide" | "none">;
31
+ interval: _angular_core.InputSignal<number | null>;
32
+ wrap: _angular_core.InputSignal<boolean>;
33
+ slideChange: _angular_core.OutputEmitterRef<number>;
34
+ animationStart: _angular_core.OutputEmitterRef<void>;
35
+ animationEnd: _angular_core.OutputEmitterRef<void>;
36
+ imageCount: _angular_core.Signal<number>;
37
+ firstImageTemplate: _angular_core.Signal<TemplateRef<any> | null>;
38
+ lastImageTemplate: _angular_core.Signal<TemplateRef<any> | null>;
37
39
  innerElement: ElementRef<HTMLDivElement>;
38
40
  swipeContainer: BsSwipeContainerDirective;
39
- set images(value: QueryList<BsCarouselImageDirective>);
41
+ set imagesQuery(value: QueryList<BsCarouselImageDirective>);
40
42
  animationsDisabled: boolean;
41
- private _animation;
42
- set animation(value: 'fade' | 'slide');
43
- get animation(): "fade" | "slide";
44
43
  onKeyPress(event: Event): void;
45
- previousImage(): void;
46
- nextImage(): void;
44
+ constructor();
45
+ private clearAutoAdvance;
46
+ previous(): void;
47
+ next(): void;
48
+ goto(index: number): void;
47
49
  imageCounter: number;
48
50
  ngAfterViewInit(): void;
49
51
  ngOnDestroy(): void;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<BsCarouselComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "indicators": { "alias": "indicators"; "required": false; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; }, {}, ["images"], never, false, never>;
52
+ onContainerAnimationStart(): void;
53
+ onContainerAnimationEnd(): void;
54
+ onImageIndexChange(index: number): void;
55
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselComponent, never>;
56
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "indicators": { "alias": "indicators"; "required": false; "isSignal": true; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, { "slideChange": "slideChange"; "animationStart": "animationStart"; "animationEnd": "animationEnd"; }, ["imagesQuery"], never, true, never>;
52
57
  }
53
58
 
54
59
  declare class BsCarouselImgDirective {
55
- constructor(image: BsCarouselImageDirective);
60
+ private image;
56
61
  fetchPriority: 'high' | 'low' | 'auto';
57
- static ɵfac: i0.ɵɵFactoryDeclaration<BsCarouselImgDirective, never>;
58
- static ɵdir: i0.ɵɵDirectiveDeclaration<BsCarouselImgDirective, "img", never, {}, {}, never, never, false, never>;
62
+ constructor();
63
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselImgDirective, never>;
64
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselImgDirective, "img", never, {}, {}, never, never, true, never>;
59
65
  }
60
66
 
61
67
  declare class BsCarouselModule {
62
- static ɵfac: i0.ɵɵFactoryDeclaration<BsCarouselModule, never>;
63
- static ɵmod: i0.ɵɵNgModuleDeclaration<BsCarouselModule, [typeof BsCarouselComponent, typeof BsCarouselImageDirective, typeof BsCarouselImgDirective], [typeof i4.AsyncPipe, typeof i4.NgTemplateOutlet, typeof i5.BsSwiperModule, typeof i6.BsNoNoscriptDirective], [typeof BsCarouselComponent, typeof BsCarouselImageDirective, typeof BsCarouselImgDirective]>;
64
- static ɵinj: i0.ɵɵInjectorDeclaration<BsCarouselModule>;
68
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselModule, never>;
69
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<BsCarouselModule, never, [typeof BsCarouselComponent, typeof BsCarouselImageDirective, typeof BsCarouselImgDirective], [typeof BsCarouselComponent, typeof BsCarouselImageDirective, typeof BsCarouselImgDirective]>;
70
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<BsCarouselModule>;
65
71
  }
66
72
 
67
73
  export { BsCarouselComponent, BsCarouselImageDirective, BsCarouselImgDirective, BsCarouselModule };
@@ -1,8 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
3
2
 
4
3
  declare class BsCloseComponent {
5
- click: EventEmitter<any>;
4
+ click: i0.OutputEmitterRef<void>;
6
5
  onClose(ev: MouseEvent): void;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<BsCloseComponent, never>;
8
7
  static ɵcmp: i0.ɵɵComponentDeclaration<BsCloseComponent, "bs-close", never, {}, { "click": "click"; }, never, never, true, never>;
@@ -1,16 +1,15 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { TemplateRef, EventEmitter } from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
3
  import { HighlightResult } from 'highlight.js';
4
- import { BehaviorSubject } from 'rxjs';
5
4
 
6
5
  declare class BsCodeSnippetComponent {
7
6
  constructor();
8
- offcanvasVisible: boolean;
7
+ offcanvasVisible: _angular_core.WritableSignal<boolean>;
9
8
  codeToCopy: _angular_core.InputSignal<string>;
10
9
  language: _angular_core.InputSignal<string>;
11
10
  copiedTemplate: TemplateRef<any>;
12
- detectedLanguage: EventEmitter<string>;
13
- language$: BehaviorSubject<string>;
11
+ detectedLanguage: _angular_core.OutputEmitterRef<string>;
12
+ detectedLanguageValue: _angular_core.WritableSignal<string>;
14
13
  copiedHtml(): void;
15
14
  onHighlighted(result: HighlightResult | null): void;
16
15
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCodeSnippetComponent, never>;