@mintplayer/ng-bootstrap 21.0.0 → 21.1.1
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/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +33 -46
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +12 -30
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +6 -18
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +31 -65
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +200 -132
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +14 -17
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +231 -347
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +43 -39
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +7 -35
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +46 -86
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +7 -6
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +32 -74
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs +6 -7
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +18 -18
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +20 -22
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs +16 -10
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +8 -28
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +208 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +8 -21
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +43 -38
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +59 -120
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +11 -25
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +8 -28
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +67 -103
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +34 -63
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +19 -47
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +35 -41
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +205 -779
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +34 -39
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +74 -100
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +37 -79
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +78 -45
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +16 -26
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +14 -40
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +8 -32
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +70 -76
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +11 -11
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +53 -99
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +7 -38
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +23 -49
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +33 -38
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +45 -98
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +12 -24
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +21 -43
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +29 -49
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +5 -5
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +11 -15
- package/types/mintplayer-ng-bootstrap-alert.d.ts +4 -9
- package/types/mintplayer-ng-bootstrap-badge.d.ts +5 -9
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +14 -22
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +41 -35
- package/types/mintplayer-ng-bootstrap-close.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +4 -5
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +70 -97
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +11 -11
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +6 -13
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +14 -20
- package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +1 -3
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -26
- package/types/mintplayer-ng-bootstrap-let.d.ts +0 -2
- package/types/mintplayer-ng-bootstrap-markdown.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +3 -6
- package/types/mintplayer-ng-bootstrap-multiselect.d.ts +6 -6
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +5 -11
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +75 -80
- package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +2 -4
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +12 -14
- package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +17 -31
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +3 -8
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +5 -11
- package/types/mintplayer-ng-bootstrap-popover.d.ts +15 -23
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +19 -22
- package/types/mintplayer-ng-bootstrap-range.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-rating.d.ts +8 -14
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +7 -11
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +132 -220
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +14 -15
- package/types/mintplayer-ng-bootstrap-searchbox.d.ts +20 -27
- package/types/mintplayer-ng-bootstrap-select.d.ts +13 -23
- package/types/mintplayer-ng-bootstrap-select2.d.ts +16 -14
- package/types/mintplayer-ng-bootstrap-shell.d.ts +6 -12
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +7 -12
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +8 -16
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +21 -27
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +29 -37
- package/types/mintplayer-ng-bootstrap-table.d.ts +6 -13
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +7 -14
- package/types/mintplayer-ng-bootstrap-toast.d.ts +5 -10
- package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +22 -36
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +4 -7
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +10 -15
- package/types/mintplayer-ng-bootstrap-trust-html.d.ts +0 -2
- 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 {
|
|
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
|
|
22
|
-
this.isLoading
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.submitted =
|
|
30
|
-
|
|
31
|
-
|
|
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.
|
|
36
|
+
this.searchterm.set(value);
|
|
35
37
|
if (value === '') {
|
|
36
|
-
this.isOpen
|
|
37
|
-
this.suggestions$.next([]);
|
|
38
|
+
this.isOpen.set(false);
|
|
38
39
|
}
|
|
39
40
|
else {
|
|
40
|
-
this.isLoading
|
|
41
|
-
this.isOpen
|
|
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
|
|
51
|
-
this.
|
|
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
|
|
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",
|
|
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: [
|
|
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 {
|
|
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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,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGrF,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cAGZ,IAAI,EAAA,OAAA,EACP,CAAC,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,EAAA,eAAA,EACvG,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kqCAAA,EAAA,MAAA,EAAA,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.
|
|
4
|
+
"version": "21.1.1",
|
|
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.
|
|
364
|
-
"@mintplayer/ng-animations": "^21.
|
|
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.
|
|
367
|
-
"@mintplayer/ng-swiper": "^21.
|
|
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
|
|
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
|
|
10
|
-
accordionTabName
|
|
8
|
+
accordionTabId: i0.WritableSignal<number>;
|
|
9
|
+
accordionTabName: i0.Signal<string>;
|
|
11
10
|
childAccordions: QueryList<BsAccordionComponent>;
|
|
12
|
-
constructor(
|
|
11
|
+
constructor();
|
|
13
12
|
accordionItemClass: boolean;
|
|
14
13
|
dBlock: boolean;
|
|
15
14
|
noBorder: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
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; }; }, { "
|
|
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
|
|
30
|
-
accordionName
|
|
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
|
-
|
|
9
|
-
|
|
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; }; }, { "
|
|
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
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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:
|
|
30
|
-
static ɵcmp:
|
|
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
|
|
2
|
-
import { TemplateRef,
|
|
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
|
-
|
|
18
|
-
static
|
|
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
|
|
23
|
-
|
|
19
|
+
private platformId;
|
|
20
|
+
private destroyRef;
|
|
24
21
|
colors: typeof Color;
|
|
25
22
|
isServerSide: boolean;
|
|
26
|
-
currentImageIndex: number
|
|
27
|
-
images
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
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
|
-
|
|
46
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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
|
-
|
|
60
|
+
private image;
|
|
56
61
|
fetchPriority: 'high' | 'low' | 'auto';
|
|
57
|
-
|
|
58
|
-
static
|
|
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:
|
|
63
|
-
static ɵmod:
|
|
64
|
-
static ɵinj:
|
|
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:
|
|
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
|
|
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:
|
|
13
|
-
|
|
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>;
|