@alauda/ui 6.2.1-beta.0 → 6.2.1-beta.1
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/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +58 -18
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +2 -2
- package/esm2015/back-top/back-top.component.ngfactory.js +2 -2
- package/esm2015/breadcrumb/breadcrumb-item.component.ngfactory.js +2 -2
- package/esm2015/button/button.component.ngfactory.js +2 -2
- package/esm2015/checkbox/checkbox-group/checkbox-group.component.ngfactory.js +1 -1
- package/esm2015/checkbox/checkbox-group/checkbox-group.component.ngsummary.json +1 -1
- package/esm2015/checkbox/checkbox.component.js +7 -6
- package/esm2015/checkbox/checkbox.component.ngfactory.js +3 -3
- package/esm2015/checkbox/checkbox.component.ngsummary.json +1 -1
- package/esm2015/color-picker/color-picker.component.ngfactory.js +1 -1
- package/esm2015/color-picker/color-picker.component.ngsummary.json +1 -1
- package/esm2015/date-picker/calendar/date-picker-panel/component.ngfactory.js +4 -4
- package/esm2015/date-picker/calendar/date-picker-panel/component.ngsummary.json +1 -1
- package/esm2015/date-picker/calendar/header/component.ngfactory.js +5 -5
- package/esm2015/date-picker/calendar/range-picker-panel/component.ngfactory.js +5 -5
- package/esm2015/date-picker/calendar/range-picker-panel/component.ngsummary.json +1 -1
- package/esm2015/date-picker/date-picker/date-picker.component.ngfactory.js +4 -4
- package/esm2015/date-picker/date-picker/date-picker.component.ngsummary.json +1 -1
- package/esm2015/date-picker/range-picker/range-picker.component.ngfactory.js +4 -4
- package/esm2015/date-picker/range-picker/range-picker.component.ngsummary.json +1 -1
- package/esm2015/date-picker/trigger/trigger.component.ngfactory.js +9 -9
- package/esm2015/dialog/confirm-dialog/confirm-dialog.component.ngfactory.js +3 -3
- package/esm2015/dialog/dialog-content/dialog-header.component.ngfactory.js +2 -2
- package/esm2015/drawer/component/drawer.component.ngfactory.js +2 -2
- package/esm2015/dropdown/dropdown-button/dropdown-button.component.ngfactory.js +2 -2
- package/esm2015/dropdown/submenu/submenu.component.ngfactory.js +2 -2
- package/esm2015/form/common-form.js +12 -4
- package/esm2015/form/common-form.ngsummary.json +1 -1
- package/esm2015/icon/icon.component.js +3 -3
- package/esm2015/icon/icon.component.ngfactory.js +1 -1
- package/esm2015/icon/icon.component.ngsummary.json +1 -1
- package/esm2015/inline-alert/inline-alert.component.ngfactory.js +4 -4
- package/esm2015/input/input.component.js +6 -2
- package/esm2015/input/input.component.ngfactory.js +1 -1
- package/esm2015/input/input.component.ngsummary.json +1 -1
- package/esm2015/input/number-input/number-input.component.ngfactory.js +4 -4
- package/esm2015/input/number-input/number-input.component.ngsummary.json +1 -1
- package/esm2015/input/search/search.component.ngfactory.js +6 -6
- package/esm2015/input/tags-input/tags-input.component.js +5 -4
- package/esm2015/input/tags-input/tags-input.component.ngfactory.js +1 -1
- package/esm2015/input/tags-input/tags-input.component.ngsummary.json +1 -1
- package/esm2015/message/message.component.ngfactory.js +2 -2
- package/esm2015/notification/notification.component.ngfactory.js +3 -3
- package/esm2015/paginator/paginator.component.ngfactory.js +10 -10
- package/esm2015/radio/base-radio.js +6 -2
- package/esm2015/radio/base-radio.ngsummary.json +1 -1
- package/esm2015/radio/radio-button/radio-button.component.ngfactory.js +3 -3
- package/esm2015/radio/radio-button/radio-button.component.ngsummary.json +1 -1
- package/esm2015/radio/radio-group/radio-group.component.ngfactory.js +1 -1
- package/esm2015/radio/radio-group/radio-group.component.ngsummary.json +1 -1
- package/esm2015/radio/radio.component.ngfactory.js +1 -1
- package/esm2015/radio/radio.component.ngsummary.json +1 -1
- package/esm2015/select/multi-select/multi-select.component.js +6 -5
- package/esm2015/select/multi-select/multi-select.component.ngfactory.js +7 -7
- package/esm2015/select/multi-select/multi-select.component.ngsummary.json +1 -1
- package/esm2015/select/option/option.component.js +6 -2
- package/esm2015/select/option/option.component.ngfactory.js +3 -3
- package/esm2015/select/option/option.component.ngsummary.json +1 -1
- package/esm2015/select/select.component.js +2 -2
- package/esm2015/select/select.component.ngfactory.js +7 -7
- package/esm2015/select/select.component.ngsummary.json +1 -1
- package/esm2015/steps/steps.component.ngfactory.js +3 -3
- package/esm2015/switch/switch.component.ngfactory.js +1 -1
- package/esm2015/switch/switch.component.ngsummary.json +1 -1
- package/esm2015/table/table-cell.component.ngfactory.js +2 -2
- package/esm2015/tabs/tab-group.component.ngfactory.js +3 -3
- package/esm2015/tabs/tab-header.component.ngfactory.js +3 -3
- package/esm2015/tag/tag.component.ngfactory.js +3 -3
- package/esm2015/time-picker/component.ngfactory.js +8 -8
- package/esm2015/time-picker/component.ngsummary.json +1 -1
- package/esm2015/time-picker/panel/panel.component.js +5 -4
- package/esm2015/time-picker/panel/panel.component.ngfactory.js +1 -1
- package/esm2015/time-picker/panel/panel.component.ngsummary.json +1 -1
- package/esm2015/tree-select/tree-node/tree-node.component.ngfactory.js +4 -4
- package/esm2015/tree-select/tree-select.component.ngfactory.js +5 -5
- package/esm2015/tree-select/tree-select.component.ngsummary.json +1 -1
- package/fesm2015/alauda-ui.js +43 -19
- package/fesm2015/alauda-ui.js.map +1 -1
- package/form/common-form.d.ts +4 -2
- package/input/input.component.d.ts +1 -0
- package/input/tags-input/tags-input.component.d.ts +1 -1
- package/package.json +1 -1
- package/radio/base-radio.d.ts +1 -0
- package/select/multi-select/multi-select.component.d.ts +1 -1
- package/select/option/option.component.d.ts +1 -0
- package/time-picker/panel/panel.component.d.ts +1 -1
package/fesm2015/alauda-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateRef, ɵɵdefineInjectable, Injectable, Pipe, ChangeDetectorRef, NgModule, Optional, Inject, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive, EventEmitter, Output, ElementRef, ViewContainerRef,
|
|
1
|
+
import { TemplateRef, ɵɵdefineInjectable, Injectable, Pipe, ChangeDetectorRef, NgModule, Optional, Inject, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, Input, Directive, EventEmitter, Output, ElementRef, ViewContainerRef, ViewChild, ContentChild, Host, isDevMode, Renderer2, NgZone, HostListener, InjectionToken, Injector, ContentChildren, forwardRef, ɵɵinject, ApplicationRef, ComponentFactoryResolver, ViewChildren, Type } from '@angular/core';
|
|
2
2
|
import { Observable, ReplaySubject, Subject, merge, fromEvent, BehaviorSubject, combineLatest, of, Subscription, EMPTY, animationFrameScheduler } from 'rxjs';
|
|
3
3
|
import { startWith, map, publishReplay, refCount, distinctUntilChanged, takeUntil, switchMap, throttleTime, debounceTime, first, tap, take, pluck, observeOn, repeat, takeWhile, endWith, filter } from 'rxjs/operators';
|
|
4
4
|
import { CdkCellDef, CdkCell, CdkColumnDef, CdkHeaderCellDef, CdkHeaderCell, CdkHeaderRowDef, CdkHeaderRow, CDK_ROW_TEMPLATE, CdkRowDef, CdkRow, CdkTable, CDK_TABLE_TEMPLATE, CDK_TABLE, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, CdkTableModule } from '@angular/cdk/table';
|
|
@@ -352,7 +352,7 @@ IconComponent.ctorParameters = () => [
|
|
|
352
352
|
{ type: IconRegisterService }
|
|
353
353
|
];
|
|
354
354
|
IconComponent.propDecorators = {
|
|
355
|
-
icon: [{ type: Input }],
|
|
355
|
+
icon: [{ type: HostBinding, args: ['attr.data-test',] }, { type: Input }],
|
|
356
356
|
light: [{ type: Input }],
|
|
357
357
|
dark: [{ type: Input }],
|
|
358
358
|
link: [{ type: Input }],
|
|
@@ -2677,8 +2677,9 @@ FormModule.decorators = [
|
|
|
2677
2677
|
*/
|
|
2678
2678
|
// tslint:disable-next-line:directive-class-suffix
|
|
2679
2679
|
class CommonFormControl {
|
|
2680
|
-
constructor(cdr) {
|
|
2680
|
+
constructor(cdr, elementRef) {
|
|
2681
2681
|
this.cdr = cdr;
|
|
2682
|
+
this.elementRef = elementRef;
|
|
2682
2683
|
this.valueChange = new EventEmitter();
|
|
2683
2684
|
this.value$$ = new ReplaySubject(1);
|
|
2684
2685
|
this._disabled = false;
|
|
@@ -2693,6 +2694,11 @@ class CommonFormControl {
|
|
|
2693
2694
|
set disabled(val) {
|
|
2694
2695
|
this._disabled = coerceAttrBoolean(val);
|
|
2695
2696
|
}
|
|
2697
|
+
get testId() {
|
|
2698
|
+
return ('AUI-FORM-CONTROL/' +
|
|
2699
|
+
(this.elementRef.nativeElement.getAttribute('formControlName') ||
|
|
2700
|
+
this.elementRef.nativeElement.getAttribute('name')));
|
|
2701
|
+
}
|
|
2696
2702
|
get readonly() {
|
|
2697
2703
|
return this.disabled;
|
|
2698
2704
|
}
|
|
@@ -2743,10 +2749,12 @@ CommonFormControl.decorators = [
|
|
|
2743
2749
|
{ type: Directive }
|
|
2744
2750
|
];
|
|
2745
2751
|
CommonFormControl.ctorParameters = () => [
|
|
2746
|
-
{ type: ChangeDetectorRef }
|
|
2752
|
+
{ type: ChangeDetectorRef },
|
|
2753
|
+
{ type: ElementRef }
|
|
2747
2754
|
];
|
|
2748
2755
|
CommonFormControl.propDecorators = {
|
|
2749
2756
|
disabled: [{ type: Input }],
|
|
2757
|
+
testId: [{ type: HostBinding, args: ['attr.data-test',] }],
|
|
2750
2758
|
readonly: [{ type: Input }],
|
|
2751
2759
|
propValue: [{ type: Input, args: ['value',] }],
|
|
2752
2760
|
valueChange: [{ type: Output }]
|
|
@@ -2852,6 +2860,9 @@ class BaseRadio {
|
|
|
2852
2860
|
this._value = val;
|
|
2853
2861
|
this.value$$.next(val);
|
|
2854
2862
|
}
|
|
2863
|
+
get _testId() {
|
|
2864
|
+
return 'RADIO/' + this.value;
|
|
2865
|
+
}
|
|
2855
2866
|
ngOnInit() {
|
|
2856
2867
|
this.radioGroup.name$.pipe(takeUntil(this.destroy$$)).subscribe(name => {
|
|
2857
2868
|
this.name = name;
|
|
@@ -2892,6 +2903,7 @@ BaseRadio.ctorParameters = () => [
|
|
|
2892
2903
|
BaseRadio.propDecorators = {
|
|
2893
2904
|
disabled: [{ type: Input }],
|
|
2894
2905
|
value: [{ type: Input }],
|
|
2906
|
+
_testId: [{ type: HostBinding, args: ['attr.data-test',] }],
|
|
2895
2907
|
elRef: [{ type: ViewChild, args: ['elRef', { static: true },] }]
|
|
2896
2908
|
};
|
|
2897
2909
|
|
|
@@ -3083,8 +3095,8 @@ CheckboxGroupComponent.propDecorators = {
|
|
|
3083
3095
|
|
|
3084
3096
|
let uniqueId$2 = 0;
|
|
3085
3097
|
class CheckboxComponent extends CommonFormControl {
|
|
3086
|
-
constructor(cdr, checkboxGroup, focusMonitor) {
|
|
3087
|
-
super(cdr);
|
|
3098
|
+
constructor(cdr, checkboxGroup, focusMonitor, elementRef) {
|
|
3099
|
+
super(cdr, elementRef);
|
|
3088
3100
|
this.focusMonitor = focusMonitor;
|
|
3089
3101
|
this.id = `aui-checkbox-${uniqueId$2++}`;
|
|
3090
3102
|
this.name = '';
|
|
@@ -3169,12 +3181,13 @@ CheckboxComponent.decorators = [
|
|
|
3169
3181
|
CheckboxComponent.ctorParameters = () => [
|
|
3170
3182
|
{ type: ChangeDetectorRef },
|
|
3171
3183
|
{ type: CheckboxGroupComponent, decorators: [{ type: Optional }, { type: Inject, args: [forwardRef(() => CheckboxGroupComponent),] }] },
|
|
3172
|
-
{ type: FocusMonitor }
|
|
3184
|
+
{ type: FocusMonitor },
|
|
3185
|
+
{ type: ElementRef }
|
|
3173
3186
|
];
|
|
3174
3187
|
CheckboxComponent.propDecorators = {
|
|
3175
3188
|
name: [{ type: Input }],
|
|
3176
3189
|
type: [{ type: Input }],
|
|
3177
|
-
label: [{ type: Input }],
|
|
3190
|
+
label: [{ type: HostBinding, args: ['attr.data-test',] }, { type: Input }],
|
|
3178
3191
|
indeterminate: [{ type: Input }],
|
|
3179
3192
|
elRef: [{ type: ViewChild, args: ['elRef', { static: true },] }]
|
|
3180
3193
|
};
|
|
@@ -3204,6 +3217,9 @@ class InputComponent {
|
|
|
3204
3217
|
this.renderer.addClass(this.elementRef.nativeElement, 'aui-input');
|
|
3205
3218
|
this.renderer.addClass(this.elementRef.nativeElement, 'aui-input--' + this.size);
|
|
3206
3219
|
}
|
|
3220
|
+
get testId() {
|
|
3221
|
+
return this.elementRef.nativeElement.getAttribute('name') || 'aui-input';
|
|
3222
|
+
}
|
|
3207
3223
|
get size() {
|
|
3208
3224
|
return this._size;
|
|
3209
3225
|
}
|
|
@@ -3250,6 +3266,7 @@ InputComponent.ctorParameters = () => [
|
|
|
3250
3266
|
{ type: Renderer2 }
|
|
3251
3267
|
];
|
|
3252
3268
|
InputComponent.propDecorators = {
|
|
3269
|
+
testId: [{ type: HostBinding, args: ['attr.data-test',] }],
|
|
3253
3270
|
size: [{ type: Input }],
|
|
3254
3271
|
disabled: [{ type: Input }]
|
|
3255
3272
|
};
|
|
@@ -3425,8 +3442,8 @@ function createWithMaxRowCount(component) {
|
|
|
3425
3442
|
|
|
3426
3443
|
const INPUT_ERROR_KEY = 'input_data_error';
|
|
3427
3444
|
class TagsInputComponent extends CommonFormControl {
|
|
3428
|
-
constructor(cdr, fb, renderer, injector) {
|
|
3429
|
-
super(cdr);
|
|
3445
|
+
constructor(cdr, fb, renderer, injector, elementRef) {
|
|
3446
|
+
super(cdr, elementRef);
|
|
3430
3447
|
this.fb = fb;
|
|
3431
3448
|
this.renderer = renderer;
|
|
3432
3449
|
this.injector = injector;
|
|
@@ -3649,7 +3666,8 @@ TagsInputComponent.ctorParameters = () => [
|
|
|
3649
3666
|
{ type: ChangeDetectorRef },
|
|
3650
3667
|
{ type: FormBuilder },
|
|
3651
3668
|
{ type: Renderer2 },
|
|
3652
|
-
{ type: Injector }
|
|
3669
|
+
{ type: Injector },
|
|
3670
|
+
{ type: ElementRef }
|
|
3653
3671
|
];
|
|
3654
3672
|
TagsInputComponent.propDecorators = {
|
|
3655
3673
|
placeholder: [{ type: Input }],
|
|
@@ -4549,6 +4567,9 @@ class OptionComponent {
|
|
|
4549
4567
|
this._label = val;
|
|
4550
4568
|
this.label$$.next(val);
|
|
4551
4569
|
}
|
|
4570
|
+
get testId() {
|
|
4571
|
+
return 'AUI-OPTION/' + (this.label || this.value);
|
|
4572
|
+
}
|
|
4552
4573
|
get labelContext() {
|
|
4553
4574
|
return this._labelContext;
|
|
4554
4575
|
}
|
|
@@ -4603,6 +4624,7 @@ OptionComponent.ctorParameters = () => [
|
|
|
4603
4624
|
];
|
|
4604
4625
|
OptionComponent.propDecorators = {
|
|
4605
4626
|
label: [{ type: Input }],
|
|
4627
|
+
testId: [{ type: HostBinding, args: ['attr.data-test',] }],
|
|
4606
4628
|
labelContext: [{ type: Input }],
|
|
4607
4629
|
value: [{ type: Input }],
|
|
4608
4630
|
disabled: [{ type: Input }],
|
|
@@ -4919,8 +4941,8 @@ var SelectAllStatus;
|
|
|
4919
4941
|
})(SelectAllStatus || (SelectAllStatus = {}));
|
|
4920
4942
|
|
|
4921
4943
|
class MultiSelectComponent extends BaseSelect {
|
|
4922
|
-
constructor(cdr, renderer) {
|
|
4923
|
-
super(cdr);
|
|
4944
|
+
constructor(cdr, renderer, elementRef) {
|
|
4945
|
+
super(cdr, elementRef);
|
|
4924
4946
|
this.renderer = renderer;
|
|
4925
4947
|
this.bem = buildBem('aui-multi-select');
|
|
4926
4948
|
this.bemSelectAll = buildBem('aui-option');
|
|
@@ -5152,7 +5174,7 @@ class MultiSelectComponent extends BaseSelect {
|
|
|
5152
5174
|
MultiSelectComponent.decorators = [
|
|
5153
5175
|
{ type: Component, args: [{
|
|
5154
5176
|
selector: 'aui-multi-select',
|
|
5155
|
-
template: "<div\n [class]=\"rootClass\"\n #selectRef\n #tooltipRef=\"auiTooltip\"\n [auiTooltip]=\"templateRef\"\n [auiTooltipDisabled]=\"disabled\"\n auiTooltipTrigger=\"click\"\n auiTooltipPosition=\"bottom start\"\n auiTooltipType=\"plain\"\n (auiTooltipShow)=\"onShowOptions()\"\n (auiTooltipHide)=\"onHideOptions()\"\n (mousedown)=\"$event.preventDefault()\"\n [style.max-height]=\"maxHeight\"\n>\n <div class=\"aui-multi-select__suffix\">\n <span class=\"aui-multi-select__icon-container\">\n <aui-icon\n class=\"aui-multi-select__indicator\"\n [icon]=\"loading ? 'spinner' : 'caret_down_s'\"\n ></aui-icon>\n <aui-icon\n class=\"aui-multi-select__clear\"\n icon=\"close_small\"\n (click)=\"clearValue($event)\"\n ></aui-icon>\n </span>\n </div>\n <span\n [hidden]=\"selectedValues.length || inputRef.value.length\"\n [class]=\"bem.element('placeholder')\"\n >\n {{ placeholder }}\n </span>\n <aui-tag\n *ngFor=\"let option of selectedOptions$ | async; trackBy: trackByValue\"\n type=\"info\"\n [round]=\"true\"\n [border]=\"true\"\n [size]=\"tagSize\"\n [closeable]=\"!disabled\"\n (close)=\"removeValue(option.value)\"\n [ngClass]=\"tagClassFn && tagClassFn(option.label, option.value)\"\n >\n <ng-container\n *ngIf=\"isTemplateRef(option.label); else label\"\n [ngTemplateOutlet]=\"option.label\"\n [ngTemplateOutletContext]=\"option.labelContext\"\n ></ng-container>\n <ng-template #label>\n {{ option.label }}\n </ng-template>\n </aui-tag>\n <input\n #inputRef\n autocomplete=\"off\"\n [readonly]=\"inputReadonly\"\n [class]=\"inputClass\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n (keydown)=\"onKeyDown($event)\"\n (input)=\"onInput($event)\"\n />\n <span #inputValueMirror [class]=\"bem.element('mirror')\">\n {{ inputValue }}\n </span>\n</div>\n\n<ng-template #templateRef>\n <div\n class=\"aui-option-container\"\n [style.minWidth]=\"containerWidth\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <div #optionListRef class=\"aui-option-container__content\">\n <ng-container\n *ngIf=\"\n allowSelectAll &&\n (hasEnabledOptions$ | async) &&\n ((hasVisibleOption$ | async) ||\n (allowCreate && (customCreatedOptions$ | async).length) ||\n (allowCreate && filterString))\n \"\n >\n <div\n class=\"aui-option\"\n [class]=\"bemSelectAll.block(size$ | async)\"\n [class.isDisabled]=\"disabled\"\n [class.isSelected]=\"!!(selectAllStatus$ | async)\"\n [class.isMulti]=\"true\"\n (click)=\"onSelectAllClick()\"\n >\n <i class=\"aui-option__pointer\">\n <aui-icon\n [icon]=\"\n (selectAllStatus$ | async) === 'checked'\n ? 'check_s'\n : 'square_s'\n \"\n [hidden]=\"!(selectAllStatus$ | async)\"\n ></aui-icon>\n </i>\n {{ 'select_all' | auiI18n }}\n </div>\n <hr class=\"divider\" />\n </ng-container>\n <aui-option\n #inputtingOption\n *ngIf=\"allowCreate && filterString && !(hasMatchedOption$ | async)\"\n [value]=\"filterString\"\n >\n {{ filterString }}\n </aui-option>\n <ng-container *ngIf=\"allowCreate\">\n <aui-option\n *ngFor=\"let option of customCreatedOptions$ | async\"\n [label]=\"option.label\"\n [value]=\"option.value\"\n
|
|
5177
|
+
template: "<div\n [class]=\"rootClass\"\n #selectRef\n #tooltipRef=\"auiTooltip\"\n [auiTooltip]=\"templateRef\"\n [auiTooltipDisabled]=\"disabled\"\n auiTooltipTrigger=\"click\"\n auiTooltipPosition=\"bottom start\"\n auiTooltipType=\"plain\"\n (auiTooltipShow)=\"onShowOptions()\"\n (auiTooltipHide)=\"onHideOptions()\"\n (mousedown)=\"$event.preventDefault()\"\n [style.max-height]=\"maxHeight\"\n>\n <div class=\"aui-multi-select__suffix\">\n <span class=\"aui-multi-select__icon-container\">\n <aui-icon\n class=\"aui-multi-select__indicator\"\n [icon]=\"loading ? 'spinner' : 'caret_down_s'\"\n ></aui-icon>\n <aui-icon\n class=\"aui-multi-select__clear\"\n icon=\"close_small\"\n (click)=\"clearValue($event)\"\n ></aui-icon>\n </span>\n </div>\n <span\n [hidden]=\"selectedValues.length || inputRef.value.length\"\n [class]=\"bem.element('placeholder')\"\n >\n {{ placeholder }}\n </span>\n <aui-tag\n *ngFor=\"let option of selectedOptions$ | async; trackBy: trackByValue\"\n type=\"info\"\n [round]=\"true\"\n [border]=\"true\"\n [size]=\"tagSize\"\n [closeable]=\"!disabled\"\n (close)=\"removeValue(option.value)\"\n [ngClass]=\"tagClassFn && tagClassFn(option.label, option.value)\"\n >\n <ng-container\n *ngIf=\"isTemplateRef(option.label); else label\"\n [ngTemplateOutlet]=\"option.label\"\n [ngTemplateOutletContext]=\"option.labelContext\"\n ></ng-container>\n <ng-template #label>\n {{ option.label }}\n </ng-template>\n </aui-tag>\n <input\n #inputRef\n autocomplete=\"off\"\n [readonly]=\"inputReadonly\"\n [class]=\"inputClass\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n (keydown)=\"onKeyDown($event)\"\n (input)=\"onInput($event)\"\n />\n <span #inputValueMirror [class]=\"bem.element('mirror')\">\n {{ inputValue }}\n </span>\n</div>\n\n<ng-template #templateRef>\n <div\n class=\"aui-option-container\"\n [style.minWidth]=\"containerWidth\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <div #optionListRef class=\"aui-option-container__content\">\n <ng-container\n *ngIf=\"\n allowSelectAll &&\n (hasEnabledOptions$ | async) &&\n ((hasVisibleOption$ | async) ||\n (allowCreate && (customCreatedOptions$ | async).length) ||\n (allowCreate && filterString))\n \"\n >\n <div\n class=\"aui-option\"\n [class]=\"bemSelectAll.block(size$ | async)\"\n [class.isDisabled]=\"disabled\"\n [class.isSelected]=\"!!(selectAllStatus$ | async)\"\n [class.isMulti]=\"true\"\n (click)=\"onSelectAllClick()\"\n >\n <i class=\"aui-option__pointer\">\n <aui-icon\n [icon]=\"\n (selectAllStatus$ | async) === 'checked'\n ? 'check_s'\n : 'square_s'\n \"\n [hidden]=\"!(selectAllStatus$ | async)\"\n ></aui-icon>\n </i>\n {{ 'select_all' | auiI18n }}\n </div>\n <hr class=\"divider\" />\n </ng-container>\n <aui-option\n #inputtingOption\n *ngIf=\"allowCreate && filterString && !(hasMatchedOption$ | async)\"\n [value]=\"filterString\"\n >\n {{ filterString }}\n </aui-option>\n <ng-container *ngIf=\"allowCreate\">\n <aui-option\n *ngFor=\"let option of customCreatedOptions$ | async\"\n [label]=\"option.label\"\n [value]=\"option.value\"\n [attr.data-test]=\"'aui-option/' + option.label\"\n >AUI-FORM-CONTROL/\n {{ option.label }}\n </aui-option>\n </ng-container>\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"\n !(\n (hasVisibleOption$ | async) ||\n (allowCreate && (customCreatedOptions$ | async).length) ||\n (allowCreate && filterString)\n )\n \"\n class=\"aui-option-container__placeholder\"\n >\n <ng-content select=\"aui-option-placeholder\"></ng-content>\n </div>\n </div>\n</ng-template>\n",
|
|
5156
5178
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5157
5179
|
encapsulation: ViewEncapsulation.None,
|
|
5158
5180
|
preserveWhitespaces: false,
|
|
@@ -5172,7 +5194,8 @@ MultiSelectComponent.decorators = [
|
|
|
5172
5194
|
];
|
|
5173
5195
|
MultiSelectComponent.ctorParameters = () => [
|
|
5174
5196
|
{ type: ChangeDetectorRef },
|
|
5175
|
-
{ type: Renderer2 }
|
|
5197
|
+
{ type: Renderer2 },
|
|
5198
|
+
{ type: ElementRef }
|
|
5176
5199
|
];
|
|
5177
5200
|
MultiSelectComponent.propDecorators = {
|
|
5178
5201
|
tagClassFn: [{ type: Input }],
|
|
@@ -5284,7 +5307,7 @@ class SelectComponent extends BaseSelect {
|
|
|
5284
5307
|
SelectComponent.decorators = [
|
|
5285
5308
|
{ type: Component, args: [{
|
|
5286
5309
|
selector: 'aui-select',
|
|
5287
|
-
template: "<div\n [class]=\"rootClass\"\n [class.isDisabled]=\"disabled\"\n [class.isClearable]=\"isClearable(hasSelected$ | async)\"\n [class.isFilterable]=\"filterable\"\n [class.isOpened]=\"opened\"\n #selectRef\n #tooltipRef=\"auiTooltip\"\n [auiTooltip]=\"templateRef\"\n [auiTooltipDisabled]=\"disabled\"\n auiTooltipTrigger=\"click\"\n auiTooltipPosition=\"bottom start\"\n auiTooltipType=\"plain\"\n (auiTooltipShow)=\"onShowOptions()\"\n (auiTooltipHide)=\"onHideOptions()\"\n>\n <aui-input-group>\n <input\n #inputRef\n class=\"aui-select__input\"\n autocomplete=\"off\"\n aui-input\n [disabled]=\"disabled\"\n [size]=\"size\"\n [readonly]=\"inputReadonly\"\n [placeholder]=\"!(hasSelected$ | async) ? placeholder : ''\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"closeOption()\"\n />\n <span auiInputSuffix class=\"aui-select__icon-container\">\n <aui-icon\n class=\"aui-select__indicator\"\n [icon]=\"loading ? 'spinner' : 'caret_down_s'\"\n ></aui-icon>\n <aui-icon\n class=\"aui-select__clear\"\n icon=\"close_small\"\n (click)=\"clearValue($event)\"\n ></aui-icon>\n </span>\n <div\n *ngIf=\"(selectedOption$ | async) && !filterString\"\n class=\"aui-select__label-container aui-input aui-input--{{ size }}\"\n [attr.disabled]=\"disabled ? true : null\"\n >\n <div class=\"aui-select__label\">\n <ng-container *ngIf=\"(selectedOption$ | async).label as optionLabel\">\n <ng-container\n *ngIf=\"isTemplateRef(optionLabel); else label\"\n [ngTemplateOutlet]=\"optionLabel\"\n [ngTemplateOutletContext]=\"(selectedOption$ | async).labelContext\"\n ></ng-container>\n <ng-template #label>{{ optionLabel }}</ng-template>\n </ng-container>\n </div>\n </div>\n </aui-input-group>\n</div>\n\n<ng-template #templateRef>\n <div\n [class]=\"containerClass\"\n [style.minWidth]=\"containerWidth\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <div #optionListRef class=\"aui-option-container__content\">\n <aui-option\n #inputtingOption\n *ngIf=\"allowCreate && filterString && !(hasMatchedOption$ | async)\"\n [value]=\"filterString\"\n >\n {{ filterString }}\n </aui-option>\n <ng-container *ngIf=\"allowCreate\">\n <aui-option\n *ngFor=\"let option of customCreatedOptions$ | async\"\n [label]=\"option.label\"\n [value]=\"option.value\"\n >\n {{ option.label }}\n </aui-option>\n </ng-container>\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"\n !(\n (hasVisibleOption$ | async) ||\n (allowCreate && (customCreatedOptions$ | async).length) ||\n (allowCreate && filterString)\n )\n \"\n class=\"aui-option-container__placeholder\"\n >\n <ng-content select=\"aui-option-placeholder\"></ng-content>\n </div>\n </div>\n</ng-template>\n",
|
|
5310
|
+
template: "<div\n [class]=\"rootClass\"\n [class.isDisabled]=\"disabled\"\n [class.isClearable]=\"isClearable(hasSelected$ | async)\"\n [class.isFilterable]=\"filterable\"\n [class.isOpened]=\"opened\"\n #selectRef\n #tooltipRef=\"auiTooltip\"\n [auiTooltip]=\"templateRef\"\n [auiTooltipDisabled]=\"disabled\"\n auiTooltipTrigger=\"click\"\n auiTooltipPosition=\"bottom start\"\n auiTooltipType=\"plain\"\n (auiTooltipShow)=\"onShowOptions()\"\n (auiTooltipHide)=\"onHideOptions()\"\n>\n <aui-input-group>\n <input\n #inputRef\n class=\"aui-select__input\"\n autocomplete=\"off\"\n aui-input\n [disabled]=\"disabled\"\n [size]=\"size\"\n [readonly]=\"inputReadonly\"\n [placeholder]=\"!(hasSelected$ | async) ? placeholder : ''\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"closeOption()\"\n />\n <span auiInputSuffix class=\"aui-select__icon-container\">\n <aui-icon\n class=\"aui-select__indicator\"\n [icon]=\"loading ? 'spinner' : 'caret_down_s'\"\n ></aui-icon>\n <aui-icon\n class=\"aui-select__clear\"\n icon=\"close_small\"\n (click)=\"clearValue($event)\"\n ></aui-icon>\n </span>\n <div\n *ngIf=\"(selectedOption$ | async) && !filterString\"\n class=\"aui-select__label-container aui-input aui-input--{{ size }}\"\n [attr.disabled]=\"disabled ? true : null\"\n >\n <div class=\"aui-select__label\">\n <ng-container *ngIf=\"(selectedOption$ | async).label as optionLabel\">\n <ng-container\n *ngIf=\"isTemplateRef(optionLabel); else label\"\n [ngTemplateOutlet]=\"optionLabel\"\n [ngTemplateOutletContext]=\"(selectedOption$ | async).labelContext\"\n ></ng-container>\n <ng-template #label>{{ optionLabel }}</ng-template>\n </ng-container>\n </div>\n </div>\n </aui-input-group>\n</div>\n\n<ng-template #templateRef>\n <div\n [class]=\"containerClass\"\n [style.minWidth]=\"containerWidth\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <div #optionListRef class=\"aui-option-container__content\">\n <aui-option\n #inputtingOption\n *ngIf=\"allowCreate && filterString && !(hasMatchedOption$ | async)\"\n [value]=\"filterString\"\n >\n {{ filterString }}\n </aui-option>\n <ng-container *ngIf=\"allowCreate\">\n <aui-option\n *ngFor=\"let option of customCreatedOptions$ | async\"\n [label]=\"option.label\"\n [value]=\"option.value\"\n [attr.data-test]=\"'aui-option/' + option.label\"\n >\n {{ option.label }}\n </aui-option>\n </ng-container>\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"\n !(\n (hasVisibleOption$ | async) ||\n (allowCreate && (customCreatedOptions$ | async).length) ||\n (allowCreate && filterString)\n )\n \"\n class=\"aui-option-container__placeholder\"\n >\n <ng-content select=\"aui-option-placeholder\"></ng-content>\n </div>\n </div>\n</ng-template>\n",
|
|
5288
5311
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5289
5312
|
encapsulation: ViewEncapsulation.None,
|
|
5290
5313
|
preserveWhitespaces: false,
|
|
@@ -9251,8 +9274,8 @@ const CONTROL_ITEM_HEIGHT = 28;
|
|
|
9251
9274
|
const TIME_PICKER_COLUMN_WIDTH = 80;
|
|
9252
9275
|
const bem$3 = buildBem('aui-time-picker-panel');
|
|
9253
9276
|
class TimePickerPanelComponent extends CommonFormControl {
|
|
9254
|
-
constructor(cdr) {
|
|
9255
|
-
super(cdr);
|
|
9277
|
+
constructor(cdr, elementRef) {
|
|
9278
|
+
super(cdr, elementRef);
|
|
9256
9279
|
this.cdr = cdr;
|
|
9257
9280
|
this.hourStep = 1;
|
|
9258
9281
|
this.minuteStep = 1;
|
|
@@ -9434,7 +9457,8 @@ TimePickerPanelComponent.decorators = [
|
|
|
9434
9457
|
},] }
|
|
9435
9458
|
];
|
|
9436
9459
|
TimePickerPanelComponent.ctorParameters = () => [
|
|
9437
|
-
{ type: ChangeDetectorRef }
|
|
9460
|
+
{ type: ChangeDetectorRef },
|
|
9461
|
+
{ type: ElementRef }
|
|
9438
9462
|
];
|
|
9439
9463
|
TimePickerPanelComponent.propDecorators = {
|
|
9440
9464
|
format: [{ type: Input }],
|