@open-rlb/ng-bootstrap 3.3.33 → 3.3.35
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/package.json
CHANGED
|
@@ -126,9 +126,11 @@ All inputs bind via `formControlName` or `[(ngModel)]`.
|
|
|
126
126
|
|
|
127
127
|
## rlb-language-chips — Multi-select Chips
|
|
128
128
|
|
|
129
|
-
A
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
A compact multi-select for picking several values from a fixed list. Selected values are
|
|
130
|
+
rendered as chips **inside** the control and collapse to `(+N others)` once more than
|
|
131
|
+
`maxVisible` are chosen, so the selection never spills onto multiple lines. Clicking the
|
|
132
|
+
control opens a dropdown that lists every option with a checkbox to toggle it on/off. The
|
|
133
|
+
chosen values are stored as a `string[]`.
|
|
132
134
|
|
|
133
135
|
```html
|
|
134
136
|
<!-- Default options: EN, IT, DE, FR, ES, PT -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy, AfterViewInit, ElementRef, OnInit, TemplateRef, ViewContainerRef, Renderer2, AfterContentInit, AfterContentChecked, OutputEmitterRef, Signal, ModelSignal, ChangeDetectorRef, DestroyRef, InputSignal, Type, ComponentRef, EmbeddedViewRef, EventEmitter, PipeTransform, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
|
-
import { ControlValueAccessor, NgControl, ValidatorFn, ValidationErrors,
|
|
4
|
+
import { ControlValueAccessor, NgControl, ValidatorFn, ValidationErrors, FormGroup, NgForm, FormBuilder } from '@angular/forms';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { Carousel, Collapse, Offcanvas } from 'bootstrap';
|
|
@@ -938,19 +938,20 @@ declare class InputGroupComponent {
|
|
|
938
938
|
declare class LanguageChipsComponent extends AbstractComponent<string[]> {
|
|
939
939
|
readonly options: _angular_core.InputSignal<string[]>;
|
|
940
940
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
941
|
+
/** How many chips to render inline before collapsing the rest into "(+N others)". */
|
|
942
|
+
readonly maxVisible: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
941
943
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
942
944
|
userDefinedId: _angular_core.InputSignal<string>;
|
|
943
|
-
readonly
|
|
945
|
+
readonly open: _angular_core.WritableSignal<boolean>;
|
|
944
946
|
readonly chips: _angular_core.Signal<string[]>;
|
|
945
|
-
readonly
|
|
947
|
+
readonly visibleChips: _angular_core.Signal<string[]>;
|
|
948
|
+
readonly overflowCount: _angular_core.Signal<number>;
|
|
946
949
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
remove(lang: string): void;
|
|
951
|
-
setDisabledState(isDisabled: boolean): void;
|
|
950
|
+
toggle(): void;
|
|
951
|
+
close(): void;
|
|
952
|
+
toggleOption(lang: string): void;
|
|
952
953
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LanguageChipsComponent, never>;
|
|
953
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageChipsComponent, "rlb-language-chips", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "userDefinedId": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
954
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageChipsComponent, "rlb-language-chips", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "maxVisible": { "alias": "maxVisible"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "userDefinedId": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
954
955
|
}
|
|
955
956
|
|
|
956
957
|
declare class OptionComponent {
|