@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.
- package/esm2022/alert/lib/alert.component.mjs +10 -14
- package/esm2022/avatar/lib/avatar.component.mjs +2 -2
- package/esm2022/calendar/lib/calendar.component.mjs +3 -3
- package/esm2022/common/lib/components/selection-base.component.class.mjs +2 -1
- package/esm2022/common/lib/components/value-component.class.mjs +5 -4
- package/esm2022/menu/lib/context-menu.component.mjs +2 -2
- package/esm2022/menu/lib/menu.component.mjs +2 -2
- package/esm2022/rate-picker/lib/rate-picker.component.mjs +2 -2
- package/esm2022/search-box/lib/search-box.component.mjs +3 -3
- package/esm2022/select-box/lib/select-box.component.mjs +2 -2
- package/esm2022/selection-list/lib/selection-list.component.mjs +39 -91
- package/esm2022/time-line/lib/time-line-item.component.mjs +3 -3
- package/esm2022/time-line/lib/time-line.component.mjs +18 -4
- package/esm2022/uploader/lib/uploader-zone.directive.mjs +2 -2
- package/fesm2022/acorex-components-action-sheet.mjs +1 -1
- package/fesm2022/acorex-components-alert.mjs +10 -14
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +1 -1
- package/fesm2022/acorex-components-avatar.mjs +3 -3
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +1 -1
- package/fesm2022/acorex-components-button-group.mjs +1 -1
- package/fesm2022/acorex-components-button.mjs +1 -1
- package/fesm2022/acorex-components-calendar.mjs +3 -3
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +1 -1
- package/fesm2022/acorex-components-chips.mjs +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +1 -1
- package/fesm2022/acorex-components-collapse.mjs +1 -1
- package/fesm2022/acorex-components-color-box.mjs +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +1 -1
- package/fesm2022/acorex-components-comment.mjs +1 -1
- package/fesm2022/acorex-components-common.mjs +6 -4
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +1 -1
- package/fesm2022/acorex-components-data-table.mjs +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +1 -1
- package/fesm2022/acorex-components-decorators.mjs +1 -1
- package/fesm2022/acorex-components-dialog.mjs +1 -1
- package/fesm2022/acorex-components-drawer.mjs +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +1 -1
- package/fesm2022/acorex-components-form.mjs +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +1 -1
- package/fesm2022/acorex-components-image.mjs +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +1 -1
- package/fesm2022/acorex-components-label.mjs +1 -1
- package/fesm2022/acorex-components-list.mjs +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +1 -1
- package/fesm2022/acorex-components-loading.mjs +1 -1
- package/fesm2022/acorex-components-map.mjs +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +1 -1
- package/fesm2022/acorex-components-menu.mjs +5 -5
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-nav.mjs +1 -1
- package/fesm2022/acorex-components-navbar.mjs +1 -1
- package/fesm2022/acorex-components-notification.mjs +1 -1
- package/fesm2022/acorex-components-number-box.mjs +1 -1
- package/fesm2022/acorex-components-otp.mjs +1 -1
- package/fesm2022/acorex-components-page.mjs +1 -1
- package/fesm2022/acorex-components-paint.mjs +1 -1
- package/fesm2022/acorex-components-password-box.mjs +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +1 -1
- package/fesm2022/acorex-components-picker.mjs +1 -1
- package/fesm2022/acorex-components-popover.mjs +1 -1
- package/fesm2022/acorex-components-popup.mjs +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +1 -1
- package/fesm2022/acorex-components-qrcode.mjs +1 -1
- package/fesm2022/acorex-components-radio.mjs +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +2 -2
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +1 -1
- package/fesm2022/acorex-components-search-box.mjs +3 -3
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -2
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +39 -91
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +1 -1
- package/fesm2022/acorex-components-slider.mjs +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +1 -1
- package/fesm2022/acorex-components-switch.mjs +1 -1
- package/fesm2022/acorex-components-tabs.mjs +1 -1
- package/fesm2022/acorex-components-tag.mjs +1 -1
- package/fesm2022/acorex-components-text-area.mjs +1 -1
- package/fesm2022/acorex-components-text-box.mjs +1 -1
- package/fesm2022/acorex-components-time-line.mjs +19 -5
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +1 -1
- package/fesm2022/acorex-components-uploader.mjs +2 -2
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +1 -1
- package/package.json +1 -1
- package/selection-list/lib/selection-list.component.d.ts +9 -37
- 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,
|
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,
|
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,
|
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 {
|
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,
|
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
|
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 }); }
|