@mozaic-ds/angular 0.31.0-rc.5 → 0.31.0-rc.6
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/adeo/components/dropdown/dropdown.component.d.ts +2 -1
- package/adeo/fesm2022/mozaic-ds-angular.mjs +3 -1
- package/adeo/fesm2022/mozaic-ds-angular.mjs.map +1 -1
- package/bricoman/components/dropdown/dropdown.component.d.ts +2 -1
- package/bricoman/fesm2022/mozaic-ds-angular.mjs +3 -1
- package/bricoman/fesm2022/mozaic-ds-angular.mjs.map +1 -1
- package/components/dropdown/dropdown.component.d.ts +2 -1
- package/fesm2022/mozaic-ds-angular.mjs +3 -1
- package/fesm2022/mozaic-ds-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
-
import { ListboxItem } from '../listbox/model/listbox-item';
|
|
3
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
3
|
import { ButtonSizes } from '../button/button';
|
|
5
4
|
import { IconSize } from '../icon/icon-size';
|
|
5
|
+
import { ListboxItem } from '../listbox/model/listbox-item';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DropdownComponent implements ControlValueAccessor, OnChanges {
|
|
8
8
|
listboxItems: ListboxItem[];
|
|
@@ -26,6 +26,7 @@ export declare class DropdownComponent implements ControlValueAccessor, OnChange
|
|
|
26
26
|
selectedItems: ListboxItem[] | ListboxItem | undefined;
|
|
27
27
|
initialListboxItems: ListboxItem[];
|
|
28
28
|
iconSize: typeof IconSize;
|
|
29
|
+
private readonly cdr;
|
|
29
30
|
constructor();
|
|
30
31
|
onChange: any;
|
|
31
32
|
onTouch: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i1 from '@angular/common';
|
|
2
2
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, ChangeDetectionStrategy, Input, NgModule, ViewEncapsulation, Injectable, Host, HostBinding, EventEmitter, Output, Inject, ElementRef, ViewChild, InjectionToken, ViewContainerRef, HostListener, forwardRef, Optional, ContentChildren, TemplateRef, ContentChild, Directive, createComponent, Injector } from '@angular/core';
|
|
4
|
+
import { Component, ChangeDetectionStrategy, Input, NgModule, ViewEncapsulation, Injectable, Host, HostBinding, EventEmitter, Output, Inject, ElementRef, ViewChild, InjectionToken, ViewContainerRef, HostListener, forwardRef, Optional, ContentChildren, TemplateRef, ContentChild, Directive, inject, ChangeDetectorRef, createComponent, Injector } from '@angular/core';
|
|
5
5
|
import * as i2$1 from '@angular/forms';
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, NgControl, FormControlName, FormGroupDirective } from '@angular/forms';
|
|
7
7
|
import { of, tap, catchError, throwError, finalize, shareReplay, first, Subject, BehaviorSubject, takeUntil, fromEvent, map, debounceTime, startWith, pairwise, timer, filter, switchMap, merge, combineLatest, delay as delay$1 } from 'rxjs';
|
|
@@ -3112,6 +3112,7 @@ class DropdownComponent {
|
|
|
3112
3112
|
this.isOpen = new EventEmitter();
|
|
3113
3113
|
this.initialListboxItems = [];
|
|
3114
3114
|
this.iconSize = IconSize;
|
|
3115
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
3115
3116
|
this.onChange = () => { };
|
|
3116
3117
|
this.onTouch = () => { };
|
|
3117
3118
|
}
|
|
@@ -3122,6 +3123,7 @@ class DropdownComponent {
|
|
|
3122
3123
|
this.selectedItems = value;
|
|
3123
3124
|
this.onChange(value);
|
|
3124
3125
|
this.onTouch();
|
|
3126
|
+
this.cdr.detectChanges();
|
|
3125
3127
|
}
|
|
3126
3128
|
registerOnChange(fn) {
|
|
3127
3129
|
this.onChange = fn;
|