@acorex/components 18.12.44 → 18.14.1-next.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/esm2022/alert/lib/alert.component.mjs +10 -14
  2. package/esm2022/avatar/lib/avatar.component.mjs +2 -2
  3. package/esm2022/calendar/lib/calendar.component.mjs +3 -3
  4. package/esm2022/common/lib/components/selection-base.component.class.mjs +2 -1
  5. package/esm2022/common/lib/components/value-component.class.mjs +5 -4
  6. package/esm2022/menu/lib/context-menu.component.mjs +2 -2
  7. package/esm2022/menu/lib/menu.component.mjs +2 -2
  8. package/esm2022/rate-picker/lib/rate-picker.component.mjs +2 -2
  9. package/esm2022/search-box/lib/search-box.component.mjs +3 -3
  10. package/esm2022/select-box/lib/select-box.component.mjs +2 -2
  11. package/esm2022/selection-list/lib/selection-list.component.mjs +39 -91
  12. package/esm2022/time-line/lib/time-line-item.component.mjs +3 -3
  13. package/esm2022/time-line/lib/time-line.component.mjs +18 -4
  14. package/esm2022/uploader/lib/uploader-zone.directive.mjs +2 -2
  15. package/fesm2022/acorex-components-action-sheet.mjs +1 -1
  16. package/fesm2022/acorex-components-alert.mjs +10 -14
  17. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  18. package/fesm2022/acorex-components-audio-wave.mjs +1 -1
  19. package/fesm2022/acorex-components-avatar.mjs +3 -3
  20. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  21. package/fesm2022/acorex-components-badge.mjs +1 -1
  22. package/fesm2022/acorex-components-bottom-navigation.mjs +1 -1
  23. package/fesm2022/acorex-components-breadcrumbs.mjs +1 -1
  24. package/fesm2022/acorex-components-button-group.mjs +1 -1
  25. package/fesm2022/acorex-components-button.mjs +1 -1
  26. package/fesm2022/acorex-components-calendar.mjs +3 -3
  27. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  28. package/fesm2022/acorex-components-check-box.mjs +1 -1
  29. package/fesm2022/acorex-components-chips.mjs +1 -1
  30. package/fesm2022/acorex-components-circular-progress.mjs +1 -1
  31. package/fesm2022/acorex-components-collapse.mjs +1 -1
  32. package/fesm2022/acorex-components-color-box.mjs +1 -1
  33. package/fesm2022/acorex-components-color-palette.mjs +1 -1
  34. package/fesm2022/acorex-components-comment.mjs +1 -1
  35. package/fesm2022/acorex-components-common.mjs +6 -4
  36. package/fesm2022/acorex-components-common.mjs.map +1 -1
  37. package/fesm2022/acorex-components-conversation.mjs +1 -1
  38. package/fesm2022/acorex-components-data-pager.mjs +1 -1
  39. package/fesm2022/acorex-components-data-table.mjs +1 -1
  40. package/fesm2022/acorex-components-datetime-box.mjs +1 -1
  41. package/fesm2022/acorex-components-datetime-input.mjs +1 -1
  42. package/fesm2022/acorex-components-datetime-picker.mjs +1 -1
  43. package/fesm2022/acorex-components-decorators.mjs +1 -1
  44. package/fesm2022/acorex-components-dialog.mjs +1 -1
  45. package/fesm2022/acorex-components-drawer.mjs +1 -1
  46. package/fesm2022/acorex-components-dropdown-button.mjs +1 -1
  47. package/fesm2022/acorex-components-dropdown.mjs +1 -1
  48. package/fesm2022/acorex-components-form.mjs +1 -1
  49. package/fesm2022/acorex-components-image-editor.mjs +1 -1
  50. package/fesm2022/acorex-components-image.mjs +1 -1
  51. package/fesm2022/acorex-components-json-viewer.mjs +1 -1
  52. package/fesm2022/acorex-components-label.mjs +1 -1
  53. package/fesm2022/acorex-components-list.mjs +1 -1
  54. package/fesm2022/acorex-components-loading-dialog.mjs +1 -1
  55. package/fesm2022/acorex-components-loading.mjs +1 -1
  56. package/fesm2022/acorex-components-map.mjs +1 -1
  57. package/fesm2022/acorex-components-media-viewer.mjs +1 -1
  58. package/fesm2022/acorex-components-menu.mjs +5 -5
  59. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  60. package/fesm2022/acorex-components-nav.mjs +1 -1
  61. package/fesm2022/acorex-components-navbar.mjs +1 -1
  62. package/fesm2022/acorex-components-notification.mjs +1 -1
  63. package/fesm2022/acorex-components-number-box.mjs +1 -1
  64. package/fesm2022/acorex-components-otp.mjs +1 -1
  65. package/fesm2022/acorex-components-page.mjs +1 -1
  66. package/fesm2022/acorex-components-paint.mjs +1 -1
  67. package/fesm2022/acorex-components-password-box.mjs +1 -1
  68. package/fesm2022/acorex-components-phone-box.mjs +1 -1
  69. package/fesm2022/acorex-components-picker.mjs +1 -1
  70. package/fesm2022/acorex-components-popover.mjs +1 -1
  71. package/fesm2022/acorex-components-popup.mjs +1 -1
  72. package/fesm2022/acorex-components-progress-bar.mjs +1 -1
  73. package/fesm2022/acorex-components-qrcode.mjs +1 -1
  74. package/fesm2022/acorex-components-radio.mjs +1 -1
  75. package/fesm2022/acorex-components-range-slider.mjs +1 -1
  76. package/fesm2022/acorex-components-rate-picker.mjs +2 -2
  77. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  78. package/fesm2022/acorex-components-result.mjs +1 -1
  79. package/fesm2022/acorex-components-routing-progress.mjs +1 -1
  80. package/fesm2022/acorex-components-scheduler.mjs +1 -1
  81. package/fesm2022/acorex-components-search-box.mjs +3 -3
  82. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  83. package/fesm2022/acorex-components-select-box.mjs +2 -2
  84. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  85. package/fesm2022/acorex-components-selection-list.mjs +39 -91
  86. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  87. package/fesm2022/acorex-components-side-menu.mjs +1 -1
  88. package/fesm2022/acorex-components-skeleton.mjs +1 -1
  89. package/fesm2022/acorex-components-slider.mjs +1 -1
  90. package/fesm2022/acorex-components-step-wizard.mjs +1 -1
  91. package/fesm2022/acorex-components-switch.mjs +1 -1
  92. package/fesm2022/acorex-components-tabs.mjs +1 -1
  93. package/fesm2022/acorex-components-tag.mjs +1 -1
  94. package/fesm2022/acorex-components-text-area.mjs +1 -1
  95. package/fesm2022/acorex-components-text-box.mjs +1 -1
  96. package/fesm2022/acorex-components-time-line.mjs +19 -5
  97. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  98. package/fesm2022/acorex-components-toast.mjs +1 -1
  99. package/fesm2022/acorex-components-tooltip.mjs +1 -1
  100. package/fesm2022/acorex-components-uploader.mjs +2 -2
  101. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  102. package/fesm2022/acorex-components-wysiwyg.mjs +1 -1
  103. package/package.json +1 -1
  104. package/selection-list/lib/selection-list.component.d.ts +9 -37
  105. package/time-line/lib/time-line.component.d.ts +2 -0
@@ -1,7 +1,7 @@
1
1
  import * as i1 from '@acorex/components/common';
2
2
  import { AXClickEvent, MXInteractiveComponent, MXLookComponent, MXBaseComponent, MXLookableComponent } from '@acorex/components/common';
3
3
  import * as i0 from '@angular/core';
4
- import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Host, Output, Input, HostBinding, ContentChildren, NgModule } from '@angular/core';
4
+ import { EventEmitter, HostBinding, Input, Output, Optional, Host, ViewEncapsulation, ChangeDetectionStrategy, Component, ContentChildren, NgModule } from '@angular/core';
5
5
  import { classes } from 'polytype';
6
6
  import { trigger, state, style, AUTO_STYLE, transition, animate } from '@angular/animations';
7
7
  import * as i2 from '@angular/common';
@@ -4,7 +4,7 @@ import { MXInputBaseValueComponent, MXColorLookComponent, AXComponent, AXFocusab
4
4
  import * as i4 from '@acorex/components/dropdown';
5
5
  import { MXDropdownBoxBaseComponent, AXDropdownBoxComponent, AXDropdownModule } from '@acorex/components/dropdown';
6
6
  import * as i0 from '@angular/core';
7
- import { forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
7
+ import { forwardRef, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
8
8
  import * as i2 from '@angular/forms';
9
9
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
10
10
  import { classes } from 'polytype';
@@ -2,7 +2,7 @@ import { MXBaseComponent, MXValueComponent, AXValuableComponent } from '@acorex/
2
2
  import * as i1 from '@acorex/core/utils';
3
3
  import { AXColorUtil, AXUnsubscriber } from '@acorex/core/utils';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, HostBinding, Input, forwardRef, ContentChildren, NgModule } from '@angular/core';
5
+ import { Injectable, HostBinding, Inject, ChangeDetectionStrategy, ViewEncapsulation, Component, Input, forwardRef, ContentChildren, NgModule } from '@angular/core';
6
6
  import * as i2 from '@angular/forms';
7
7
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
8
8
  import * as i3 from '@acorex/components/text-box';
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, contentChild, viewChild, input, afterNextRender, NgModule } from '@angular/core';
2
+ import { ViewEncapsulation, Component, contentChild, viewChild, input, afterNextRender, NgModule } from '@angular/core';
3
3
  import { AXAvatarComponent } from '@acorex/components/avatar';
4
4
  import * as i1 from '@acorex/components/collapse';
5
5
  import { AXCollapseModule } from '@acorex/components/collapse';
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { model, output, Component, inject, ElementRef, signal, afterNextRender, Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, ChangeDetectorRef, ViewContainerRef, EventEmitter, InjectionToken, Output, input, effect } from '@angular/core';
2
+ import { model, output, Component, inject, ElementRef, signal, afterNextRender, Injectable, Input, Host, Self, Optional, Directive, Inject, NgModule, ChangeDetectorRef, ViewContainerRef, EventEmitter, InjectionToken, Output, input, effect } from '@angular/core';
3
3
  import { AXHtmlUtil } from '@acorex/core/utils';
4
4
  import { flatten, clone, filter, isEqual } from 'lodash-es';
5
5
  import { DataSource } from '@angular/cdk/collections';
@@ -1350,11 +1350,12 @@ class MXValueComponent extends MXInteractiveComponent {
1350
1350
  set value(v) {
1351
1351
  v = this.internalSetValue(v);
1352
1352
  const old = clone(this.value);
1353
- if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
1353
+ if (v === null || v === undefined || v === '' || (Array.isArray(v) && v.length === 0)) {
1354
1354
  this.setState('clear');
1355
+ if (old === null || old === undefined || old === '' || (Array.isArray(old) && old.length === 0)) {
1356
+ return;
1357
+ }
1355
1358
  }
1356
- if (!old && !v)
1357
- return;
1358
1359
  if (!isEqual(old, v)) {
1359
1360
  this._value = v;
1360
1361
  this.emitOnValueChangedEvent(old, this.value);
@@ -1776,6 +1777,7 @@ class MXSelectionValueComponent extends MXValueComponent {
1776
1777
  clearSelectionCache() {
1777
1778
  this.dataService.cacheList = {};
1778
1779
  this.dataService.selectedItems = [];
1780
+ this.cdr.markForCheck();
1779
1781
  }
1780
1782
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: MXSelectionValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1781
1783
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: MXSelectionValueComponent }); }