@lucca-front/ng 22.0.3 → 22.0.4
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/lucca-front-ng-core-select-api.mjs +33 -3
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-legal-units.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +9 -3
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +1 -3
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +14 -12
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +4 -4
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +5 -1
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-picker.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +8 -4
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +1 -1
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +10 -7
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/package.json +4 -4
- package/types/lucca-front-ng-core-select-api.d.ts +19 -1
- package/types/lucca-front-ng-core-select.d.ts +12 -0
- package/types/lucca-front-ng-option.d.ts +8 -8
- package/types/lucca-front-ng-picker.d.ts +2 -2
- package/types/lucca-front-ng-select.d.ts +6 -6
- package/types/lucca-front-ng-simple-select.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, ElementRef, forwardRef, ViewChild, Input, Output, ChangeDetectionStrategy, Component, NgModule, InjectionToken, input, ViewContainerRef, ContentChild, Directive, viewChild, HostBinding, inject, DestroyRef, Injector, afterNextRender, TemplateRef, ContentChildren, Inject } from '@angular/core';
|
|
3
|
-
import { intlInputOptions, syncInputSignal, ALuOnScrollBottomSubscriber, ALuOnOpenSubscriber, ALuOnCloseSubscriber } from '@lucca-front/ng/core';
|
|
3
|
+
import { intlInputOptions, syncInputSignal, ALuOnScrollBottomSubscriber, ALuOnOpenSubscriber, isNil, ALuOnCloseSubscriber } from '@lucca-front/ng/core';
|
|
4
4
|
import { ALuInputDisplayer } from '@lucca-front/ng/input';
|
|
5
5
|
import { LuTooltipTriggerDirective } from '@lucca-front/ng/tooltip';
|
|
6
6
|
import * as i1$1 from '@angular/cdk/a11y';
|
|
@@ -1451,6 +1451,10 @@ class ALuOptionPickerComponent extends ALuOptionPicker {
|
|
|
1451
1451
|
const options = this._options;
|
|
1452
1452
|
// remove `is-selected` class from all other options
|
|
1453
1453
|
options.forEach((option) => (option.selected = false));
|
|
1454
|
+
if (isNil(this._value)) {
|
|
1455
|
+
// nothing is selected anymore, and the comparer only accepts actual values
|
|
1456
|
+
return;
|
|
1457
|
+
}
|
|
1454
1458
|
// add `is-selected` to all selected indexes
|
|
1455
1459
|
const selectedIndexes = [];
|
|
1456
1460
|
if (!this.multiple) {
|