@open-rlb/ng-bootstrap 3.3.34 → 3.3.36

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-rlb/ng-bootstrap",
3
- "version": "3.3.34",
3
+ "version": "3.3.36",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=21.0.0 <22.0.0",
6
6
  "@angular/common": ">=21.0.0 <22.0.0",
@@ -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 tag/chip input for picking several values from a fixed list. A dropdown offers the
130
- still-available options; picking one appends a removable pill. Backed by a `rlb-select`
131
- internally; the chosen values are stored as a `string[]`.
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, FormControl, FormGroup, NgForm, FormBuilder } from '@angular/forms';
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,18 +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 selectKey: _angular_core.WritableSignal<number>;
945
+ readonly open: _angular_core.WritableSignal<boolean>;
944
946
  readonly chips: _angular_core.Signal<string[]>;
947
+ readonly visibleChips: _angular_core.Signal<string[]>;
948
+ readonly overflowCount: _angular_core.Signal<number>;
945
949
  readonly isDisabled: _angular_core.Signal<boolean>;
946
- readonly addControl: FormControl<string | null>;
947
- constructor();
948
- add(lang: string): void;
949
- remove(lang: string): void;
950
- setDisabledState(isDisabled: boolean): void;
950
+ toggle(): void;
951
+ close(): void;
952
+ toggleOption(lang: string): void;
951
953
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<LanguageChipsComponent, never>;
952
- 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>;
953
955
  }
954
956
 
955
957
  declare class OptionComponent {