@alauda/ui 6.2.1-beta.0 → 6.2.1-beta.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 (100) hide show
  1. package/alauda-ui.metadata.json +1 -1
  2. package/bundles/alauda-ui.umd.js +70 -20
  3. package/bundles/alauda-ui.umd.js.map +1 -1
  4. package/bundles/alauda-ui.umd.min.js +1 -1
  5. package/bundles/alauda-ui.umd.min.js.map +1 -1
  6. package/button/button.component.d.ts +1 -0
  7. package/checkbox/checkbox.component.d.ts +1 -1
  8. package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +2 -2
  9. package/esm2015/back-top/back-top.component.ngfactory.js +2 -2
  10. package/esm2015/breadcrumb/breadcrumb-item.component.ngfactory.js +2 -2
  11. package/esm2015/button/button.component.js +6 -2
  12. package/esm2015/button/button.component.ngfactory.js +3 -3
  13. package/esm2015/button/button.component.ngsummary.json +1 -1
  14. package/esm2015/checkbox/checkbox-group/checkbox-group.component.ngfactory.js +1 -1
  15. package/esm2015/checkbox/checkbox-group/checkbox-group.component.ngsummary.json +1 -1
  16. package/esm2015/checkbox/checkbox.component.js +7 -6
  17. package/esm2015/checkbox/checkbox.component.ngfactory.js +3 -3
  18. package/esm2015/checkbox/checkbox.component.ngsummary.json +1 -1
  19. package/esm2015/color-picker/color-picker.component.ngfactory.js +1 -1
  20. package/esm2015/color-picker/color-picker.component.ngsummary.json +1 -1
  21. package/esm2015/date-picker/calendar/date-picker-panel/component.ngfactory.js +6 -6
  22. package/esm2015/date-picker/calendar/date-picker-panel/component.ngsummary.json +1 -1
  23. package/esm2015/date-picker/calendar/footer/component.ngfactory.js +5 -5
  24. package/esm2015/date-picker/calendar/header/component.ngfactory.js +9 -9
  25. package/esm2015/date-picker/calendar/panel/picker-panel.ngfactory.js +3 -3
  26. package/esm2015/date-picker/calendar/range-picker-panel/component.ngfactory.js +5 -5
  27. package/esm2015/date-picker/calendar/range-picker-panel/component.ngsummary.json +1 -1
  28. package/esm2015/date-picker/date-picker/date-picker.component.ngfactory.js +4 -4
  29. package/esm2015/date-picker/date-picker/date-picker.component.ngsummary.json +1 -1
  30. package/esm2015/date-picker/range-picker/range-picker.component.ngfactory.js +4 -4
  31. package/esm2015/date-picker/range-picker/range-picker.component.ngsummary.json +1 -1
  32. package/esm2015/date-picker/trigger/trigger.component.ngfactory.js +9 -9
  33. package/esm2015/dialog/confirm-dialog/confirm-dialog.component.ngfactory.js +5 -5
  34. package/esm2015/dialog/dialog-content/dialog-header.component.ngfactory.js +2 -2
  35. package/esm2015/dialog/dialog.component.js +2 -2
  36. package/esm2015/dialog/dialog.component.ngfactory.js +2 -2
  37. package/esm2015/drawer/component/drawer.component.ngfactory.js +2 -2
  38. package/esm2015/dropdown/dropdown-button/dropdown-button.component.js +2 -2
  39. package/esm2015/dropdown/dropdown-button/dropdown-button.component.ngfactory.js +3 -3
  40. package/esm2015/dropdown/submenu/submenu.component.ngfactory.js +2 -2
  41. package/esm2015/form/common-form.js +12 -4
  42. package/esm2015/form/common-form.ngsummary.json +1 -1
  43. package/esm2015/icon/icon.component.js +3 -3
  44. package/esm2015/icon/icon.component.ngfactory.js +1 -1
  45. package/esm2015/icon/icon.component.ngsummary.json +1 -1
  46. package/esm2015/inline-alert/inline-alert.component.ngfactory.js +4 -4
  47. package/esm2015/input/input.component.js +8 -2
  48. package/esm2015/input/input.component.ngfactory.js +1 -1
  49. package/esm2015/input/input.component.ngsummary.json +1 -1
  50. package/esm2015/input/number-input/number-input.component.ngfactory.js +6 -6
  51. package/esm2015/input/number-input/number-input.component.ngsummary.json +1 -1
  52. package/esm2015/input/search/search.component.ngfactory.js +6 -6
  53. package/esm2015/input/tags-input/tags-input.component.js +5 -4
  54. package/esm2015/input/tags-input/tags-input.component.ngfactory.js +1 -1
  55. package/esm2015/input/tags-input/tags-input.component.ngsummary.json +1 -1
  56. package/esm2015/message/message.component.ngfactory.js +2 -2
  57. package/esm2015/notification/notification.component.ngfactory.js +3 -3
  58. package/esm2015/paginator/paginator.component.ngfactory.js +18 -18
  59. package/esm2015/radio/base-radio.js +6 -2
  60. package/esm2015/radio/base-radio.ngsummary.json +1 -1
  61. package/esm2015/radio/radio-button/radio-button.component.ngfactory.js +3 -3
  62. package/esm2015/radio/radio-button/radio-button.component.ngsummary.json +1 -1
  63. package/esm2015/radio/radio-group/radio-group.component.ngfactory.js +1 -1
  64. package/esm2015/radio/radio-group/radio-group.component.ngsummary.json +1 -1
  65. package/esm2015/radio/radio.component.ngfactory.js +1 -1
  66. package/esm2015/radio/radio.component.ngsummary.json +1 -1
  67. package/esm2015/select/multi-select/multi-select.component.js +6 -5
  68. package/esm2015/select/multi-select/multi-select.component.ngfactory.js +7 -7
  69. package/esm2015/select/multi-select/multi-select.component.ngsummary.json +1 -1
  70. package/esm2015/select/option/option.component.js +6 -2
  71. package/esm2015/select/option/option.component.ngfactory.js +3 -3
  72. package/esm2015/select/option/option.component.ngsummary.json +1 -1
  73. package/esm2015/select/select.component.js +2 -2
  74. package/esm2015/select/select.component.ngfactory.js +7 -7
  75. package/esm2015/select/select.component.ngsummary.json +1 -1
  76. package/esm2015/steps/steps.component.ngfactory.js +3 -3
  77. package/esm2015/switch/switch.component.ngfactory.js +1 -1
  78. package/esm2015/switch/switch.component.ngsummary.json +1 -1
  79. package/esm2015/table/table-cell.component.ngfactory.js +2 -2
  80. package/esm2015/tabs/tab-group.component.ngfactory.js +3 -3
  81. package/esm2015/tabs/tab-header.component.ngfactory.js +3 -3
  82. package/esm2015/tag/tag.component.ngfactory.js +3 -3
  83. package/esm2015/time-picker/component.ngfactory.js +8 -8
  84. package/esm2015/time-picker/component.ngsummary.json +1 -1
  85. package/esm2015/time-picker/panel/panel.component.js +5 -4
  86. package/esm2015/time-picker/panel/panel.component.ngfactory.js +5 -5
  87. package/esm2015/time-picker/panel/panel.component.ngsummary.json +1 -1
  88. package/esm2015/tree-select/tree-node/tree-node.component.ngfactory.js +4 -4
  89. package/esm2015/tree-select/tree-select.component.ngfactory.js +5 -5
  90. package/esm2015/tree-select/tree-select.component.ngsummary.json +1 -1
  91. package/fesm2015/alauda-ui.js +51 -21
  92. package/fesm2015/alauda-ui.js.map +1 -1
  93. package/form/common-form.d.ts +4 -2
  94. package/input/input.component.d.ts +1 -0
  95. package/input/tags-input/tags-input.component.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/radio/base-radio.d.ts +1 -0
  98. package/select/multi-select/multi-select.component.d.ts +1 -1
  99. package/select/option/option.component.d.ts +1 -0
  100. package/time-picker/panel/panel.component.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { TemplateRef, ɵɵdefineInjectable, Injectable, Pipe, ChangeDetectorRef, NgModule, Optional, Inject, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive, EventEmitter, Output, ElementRef, ViewContainerRef, HostBinding, ViewChild, ContentChild, Host, isDevMode, Renderer2, NgZone, HostListener, InjectionToken, Injector, ContentChildren, forwardRef, ɵɵinject, ApplicationRef, ComponentFactoryResolver, ViewChildren, Type } from '@angular/core';
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 }],
@@ -1086,6 +1086,9 @@ class ButtonComponent {
1086
1086
  this.renderer.addClass(this.el.nativeElement, prefix + this.size);
1087
1087
  this.focusMonitor.monitor(this.el.nativeElement, false);
1088
1088
  }
1089
+ get testId() {
1090
+ return this.el.nativeElement.textContent;
1091
+ }
1089
1092
  get type() {
1090
1093
  return this._type;
1091
1094
  }
@@ -1181,6 +1184,7 @@ ButtonComponent.ctorParameters = () => [
1181
1184
  { type: FocusMonitor }
1182
1185
  ];
1183
1186
  ButtonComponent.propDecorators = {
1187
+ testId: [{ type: HostBinding, args: ['attr.data-test',] }],
1184
1188
  type: [{ type: Input, args: ['aui-button',] }],
1185
1189
  size: [{ type: Input }],
1186
1190
  plain: [{ type: Input }],
@@ -2157,7 +2161,7 @@ class DialogComponent {
2157
2161
  DialogComponent.decorators = [
2158
2162
  { type: Component, args: [{
2159
2163
  selector: 'aui-dialog',
2160
- template: "<div [ngClass]=\"rootClass\" [ngStyle]=\"customStyle\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n",
2164
+ template: "<div [ngClass]=\"rootClass\" [ngStyle]=\"customStyle\" data-test=\"AUI-DIALOG\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n",
2161
2165
  encapsulation: ViewEncapsulation.None,
2162
2166
  // tslint:disable-next-line:validate-decorators
2163
2167
  changeDetection: ChangeDetectionStrategy.Default,
@@ -2677,8 +2681,9 @@ FormModule.decorators = [
2677
2681
  */
2678
2682
  // tslint:disable-next-line:directive-class-suffix
2679
2683
  class CommonFormControl {
2680
- constructor(cdr) {
2684
+ constructor(cdr, elementRef) {
2681
2685
  this.cdr = cdr;
2686
+ this.elementRef = elementRef;
2682
2687
  this.valueChange = new EventEmitter();
2683
2688
  this.value$$ = new ReplaySubject(1);
2684
2689
  this._disabled = false;
@@ -2693,6 +2698,11 @@ class CommonFormControl {
2693
2698
  set disabled(val) {
2694
2699
  this._disabled = coerceAttrBoolean(val);
2695
2700
  }
2701
+ get testId() {
2702
+ return ('AUI-FORM-CONTROL/' +
2703
+ (this.elementRef.nativeElement.getAttribute('formControlName') ||
2704
+ this.elementRef.nativeElement.getAttribute('name')));
2705
+ }
2696
2706
  get readonly() {
2697
2707
  return this.disabled;
2698
2708
  }
@@ -2743,10 +2753,12 @@ CommonFormControl.decorators = [
2743
2753
  { type: Directive }
2744
2754
  ];
2745
2755
  CommonFormControl.ctorParameters = () => [
2746
- { type: ChangeDetectorRef }
2756
+ { type: ChangeDetectorRef },
2757
+ { type: ElementRef }
2747
2758
  ];
2748
2759
  CommonFormControl.propDecorators = {
2749
2760
  disabled: [{ type: Input }],
2761
+ testId: [{ type: HostBinding, args: ['attr.data-test',] }],
2750
2762
  readonly: [{ type: Input }],
2751
2763
  propValue: [{ type: Input, args: ['value',] }],
2752
2764
  valueChange: [{ type: Output }]
@@ -2852,6 +2864,9 @@ class BaseRadio {
2852
2864
  this._value = val;
2853
2865
  this.value$$.next(val);
2854
2866
  }
2867
+ get _testId() {
2868
+ return 'RADIO/' + this.value;
2869
+ }
2855
2870
  ngOnInit() {
2856
2871
  this.radioGroup.name$.pipe(takeUntil(this.destroy$$)).subscribe(name => {
2857
2872
  this.name = name;
@@ -2892,6 +2907,7 @@ BaseRadio.ctorParameters = () => [
2892
2907
  BaseRadio.propDecorators = {
2893
2908
  disabled: [{ type: Input }],
2894
2909
  value: [{ type: Input }],
2910
+ _testId: [{ type: HostBinding, args: ['attr.data-test',] }],
2895
2911
  elRef: [{ type: ViewChild, args: ['elRef', { static: true },] }]
2896
2912
  };
2897
2913
 
@@ -3083,8 +3099,8 @@ CheckboxGroupComponent.propDecorators = {
3083
3099
 
3084
3100
  let uniqueId$2 = 0;
3085
3101
  class CheckboxComponent extends CommonFormControl {
3086
- constructor(cdr, checkboxGroup, focusMonitor) {
3087
- super(cdr);
3102
+ constructor(cdr, checkboxGroup, focusMonitor, elementRef) {
3103
+ super(cdr, elementRef);
3088
3104
  this.focusMonitor = focusMonitor;
3089
3105
  this.id = `aui-checkbox-${uniqueId$2++}`;
3090
3106
  this.name = '';
@@ -3169,12 +3185,13 @@ CheckboxComponent.decorators = [
3169
3185
  CheckboxComponent.ctorParameters = () => [
3170
3186
  { type: ChangeDetectorRef },
3171
3187
  { type: CheckboxGroupComponent, decorators: [{ type: Optional }, { type: Inject, args: [forwardRef(() => CheckboxGroupComponent),] }] },
3172
- { type: FocusMonitor }
3188
+ { type: FocusMonitor },
3189
+ { type: ElementRef }
3173
3190
  ];
3174
3191
  CheckboxComponent.propDecorators = {
3175
3192
  name: [{ type: Input }],
3176
3193
  type: [{ type: Input }],
3177
- label: [{ type: Input }],
3194
+ label: [{ type: HostBinding, args: ['attr.data-test',] }, { type: Input }],
3178
3195
  indeterminate: [{ type: Input }],
3179
3196
  elRef: [{ type: ViewChild, args: ['elRef', { static: true },] }]
3180
3197
  };
@@ -3204,6 +3221,11 @@ class InputComponent {
3204
3221
  this.renderer.addClass(this.elementRef.nativeElement, 'aui-input');
3205
3222
  this.renderer.addClass(this.elementRef.nativeElement, 'aui-input--' + this.size);
3206
3223
  }
3224
+ get testId() {
3225
+ return (this.elementRef.nativeElement.getAttribute('formcontrolname') ||
3226
+ this.elementRef.nativeElement.getAttribute('name') ||
3227
+ 'aui-input');
3228
+ }
3207
3229
  get size() {
3208
3230
  return this._size;
3209
3231
  }
@@ -3250,6 +3272,7 @@ InputComponent.ctorParameters = () => [
3250
3272
  { type: Renderer2 }
3251
3273
  ];
3252
3274
  InputComponent.propDecorators = {
3275
+ testId: [{ type: HostBinding, args: ['attr.data-test',] }],
3253
3276
  size: [{ type: Input }],
3254
3277
  disabled: [{ type: Input }]
3255
3278
  };
@@ -3425,8 +3448,8 @@ function createWithMaxRowCount(component) {
3425
3448
 
3426
3449
  const INPUT_ERROR_KEY = 'input_data_error';
3427
3450
  class TagsInputComponent extends CommonFormControl {
3428
- constructor(cdr, fb, renderer, injector) {
3429
- super(cdr);
3451
+ constructor(cdr, fb, renderer, injector, elementRef) {
3452
+ super(cdr, elementRef);
3430
3453
  this.fb = fb;
3431
3454
  this.renderer = renderer;
3432
3455
  this.injector = injector;
@@ -3649,7 +3672,8 @@ TagsInputComponent.ctorParameters = () => [
3649
3672
  { type: ChangeDetectorRef },
3650
3673
  { type: FormBuilder },
3651
3674
  { type: Renderer2 },
3652
- { type: Injector }
3675
+ { type: Injector },
3676
+ { type: ElementRef }
3653
3677
  ];
3654
3678
  TagsInputComponent.propDecorators = {
3655
3679
  placeholder: [{ type: Input }],
@@ -4385,7 +4409,7 @@ class DropdownButtonComponent {
4385
4409
  DropdownButtonComponent.decorators = [
4386
4410
  { type: Component, args: [{
4387
4411
  selector: 'aui-dropdown-button',
4388
- template: "<div [class]=\"bem.block(size)\">\n <button\n type=\"button\"\n class=\"aui-dropdown-button__content\"\n [aui-button]=\"type\"\n [plain]=\"plain\"\n [size]=\"size\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick.emit($event)\"\n >\n <ng-content></ng-content>\n </button>\n <button\n type=\"button\"\n class=\"aui-dropdown-button__trigger\"\n [aui-button]=\"type\"\n [plain]=\"plain\"\n [size]=\"size\"\n [auiDropdown]=\"menu\"\n [disabled]=\"disableTrigger\"\n >\n <aui-icon icon=\"angle_down\"></aui-icon>\n </button>\n</div>\n",
4412
+ template: "<div [class]=\"bem.block(size)\">\n <button\n type=\"button\"\n class=\"aui-dropdown-button__content\"\n [aui-button]=\"type\"\n [plain]=\"plain\"\n [size]=\"size\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick.emit($event)\"\n data-test=\"DROPDOWN-BUTTON/\"\n >\n <ng-content></ng-content>\n </button>\n <button\n type=\"button\"\n class=\"aui-dropdown-button__trigger\"\n [aui-button]=\"type\"\n [plain]=\"plain\"\n [size]=\"size\"\n [auiDropdown]=\"menu\"\n [disabled]=\"disableTrigger\"\n >\n <aui-icon icon=\"angle_down\"></aui-icon>\n </button>\n</div>\n",
4389
4413
  changeDetection: ChangeDetectionStrategy.OnPush,
4390
4414
  encapsulation: ViewEncapsulation.None,
4391
4415
  preserveWhitespaces: false,
@@ -4549,6 +4573,9 @@ class OptionComponent {
4549
4573
  this._label = val;
4550
4574
  this.label$$.next(val);
4551
4575
  }
4576
+ get testId() {
4577
+ return 'AUI-OPTION/' + (this.label || this.value);
4578
+ }
4552
4579
  get labelContext() {
4553
4580
  return this._labelContext;
4554
4581
  }
@@ -4603,6 +4630,7 @@ OptionComponent.ctorParameters = () => [
4603
4630
  ];
4604
4631
  OptionComponent.propDecorators = {
4605
4632
  label: [{ type: Input }],
4633
+ testId: [{ type: HostBinding, args: ['attr.data-test',] }],
4606
4634
  labelContext: [{ type: Input }],
4607
4635
  value: [{ type: Input }],
4608
4636
  disabled: [{ type: Input }],
@@ -4919,8 +4947,8 @@ var SelectAllStatus;
4919
4947
  })(SelectAllStatus || (SelectAllStatus = {}));
4920
4948
 
4921
4949
  class MultiSelectComponent extends BaseSelect {
4922
- constructor(cdr, renderer) {
4923
- super(cdr);
4950
+ constructor(cdr, renderer, elementRef) {
4951
+ super(cdr, elementRef);
4924
4952
  this.renderer = renderer;
4925
4953
  this.bem = buildBem('aui-multi-select');
4926
4954
  this.bemSelectAll = buildBem('aui-option');
@@ -5152,7 +5180,7 @@ class MultiSelectComponent extends BaseSelect {
5152
5180
  MultiSelectComponent.decorators = [
5153
5181
  { type: Component, args: [{
5154
5182
  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 >\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",
5183
+ 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
5184
  changeDetection: ChangeDetectionStrategy.OnPush,
5157
5185
  encapsulation: ViewEncapsulation.None,
5158
5186
  preserveWhitespaces: false,
@@ -5172,7 +5200,8 @@ MultiSelectComponent.decorators = [
5172
5200
  ];
5173
5201
  MultiSelectComponent.ctorParameters = () => [
5174
5202
  { type: ChangeDetectorRef },
5175
- { type: Renderer2 }
5203
+ { type: Renderer2 },
5204
+ { type: ElementRef }
5176
5205
  ];
5177
5206
  MultiSelectComponent.propDecorators = {
5178
5207
  tagClassFn: [{ type: Input }],
@@ -5284,7 +5313,7 @@ class SelectComponent extends BaseSelect {
5284
5313
  SelectComponent.decorators = [
5285
5314
  { type: Component, args: [{
5286
5315
  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",
5316
+ 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
5317
  changeDetection: ChangeDetectionStrategy.OnPush,
5289
5318
  encapsulation: ViewEncapsulation.None,
5290
5319
  preserveWhitespaces: false,
@@ -9251,8 +9280,8 @@ const CONTROL_ITEM_HEIGHT = 28;
9251
9280
  const TIME_PICKER_COLUMN_WIDTH = 80;
9252
9281
  const bem$3 = buildBem('aui-time-picker-panel');
9253
9282
  class TimePickerPanelComponent extends CommonFormControl {
9254
- constructor(cdr) {
9255
- super(cdr);
9283
+ constructor(cdr, elementRef) {
9284
+ super(cdr, elementRef);
9256
9285
  this.cdr = cdr;
9257
9286
  this.hourStep = 1;
9258
9287
  this.minuteStep = 1;
@@ -9434,7 +9463,8 @@ TimePickerPanelComponent.decorators = [
9434
9463
  },] }
9435
9464
  ];
9436
9465
  TimePickerPanelComponent.ctorParameters = () => [
9437
- { type: ChangeDetectorRef }
9466
+ { type: ChangeDetectorRef },
9467
+ { type: ElementRef }
9438
9468
  ];
9439
9469
  TimePickerPanelComponent.propDecorators = {
9440
9470
  format: [{ type: Input }],