@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.
Files changed (32) hide show
  1. package/fesm2022/lucca-front-ng-core-select-api.mjs +33 -3
  2. package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
  3. package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
  4. package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
  5. package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
  6. package/fesm2022/lucca-front-ng-core-select-legal-units.mjs.map +1 -1
  7. package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -1
  8. package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
  9. package/fesm2022/lucca-front-ng-core-select.mjs +9 -3
  10. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  11. package/fesm2022/lucca-front-ng-date.mjs +1 -3
  12. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  13. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +14 -12
  14. package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
  15. package/fesm2022/lucca-front-ng-multi-select.mjs +4 -4
  16. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  17. package/fesm2022/lucca-front-ng-option.mjs +5 -1
  18. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  19. package/fesm2022/lucca-front-ng-picker.mjs.map +1 -1
  20. package/fesm2022/lucca-front-ng-scroll-box.mjs +8 -4
  21. package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
  22. package/fesm2022/lucca-front-ng-select.mjs +1 -1
  23. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  24. package/fesm2022/lucca-front-ng-simple-select.mjs +10 -7
  25. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  26. package/package.json +4 -4
  27. package/types/lucca-front-ng-core-select-api.d.ts +19 -1
  28. package/types/lucca-front-ng-core-select.d.ts +12 -0
  29. package/types/lucca-front-ng-option.d.ts +8 -8
  30. package/types/lucca-front-ng-picker.d.ts +2 -2
  31. package/types/lucca-front-ng-select.d.ts +6 -6
  32. 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) {