@alauda/ui 6.2.1-beta.5 → 6.2.1-beta.9
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 +91 -21
- 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/button/button.component.d.ts +1 -0
- package/checkbox/checkbox.component.d.ts +1 -1
- package/dropdown/dropdown.directive.d.ts +1 -0
- package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +2 -2
- package/esm2015/alauda-ui.ngsummary.json +1 -1
- 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.js +7 -2
- package/esm2015/button/button.component.ngfactory.js +3 -3
- package/esm2015/button/button.component.ngsummary.json +1 -1
- 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 +6 -6
- package/esm2015/date-picker/calendar/date-picker-panel/component.ngsummary.json +1 -1
- package/esm2015/date-picker/calendar/footer/component.ngfactory.js +5 -5
- package/esm2015/date-picker/calendar/header/component.ngfactory.js +9 -9
- package/esm2015/date-picker/calendar/panel/picker-panel.ngfactory.js +3 -3
- 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 +5 -5
- package/esm2015/dialog/dialog-content/dialog-header.component.ngfactory.js +2 -2
- package/esm2015/dialog/dialog.component.js +2 -2
- package/esm2015/dialog/dialog.component.ngfactory.js +2 -2
- package/esm2015/drawer/component/drawer.component.ngfactory.js +2 -2
- package/esm2015/dropdown/dropdown-button/dropdown-button.component.js +2 -2
- package/esm2015/dropdown/dropdown-button/dropdown-button.component.ngfactory.js +3 -3
- package/esm2015/dropdown/dropdown.directive.js +8 -2
- package/esm2015/dropdown/dropdown.directive.ngsummary.json +1 -1
- 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 +9 -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 +6 -6
- 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.js +1 -1
- package/esm2015/paginator/paginator.component.ngfactory.js +18 -18
- package/esm2015/paginator/paginator.component.scss.ngstyle.js +1 -1
- package/esm2015/public-api.ngsummary.json +1 -1
- 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 +5 -5
- 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/esm2015/utils/fn.js +10 -1
- package/esm2015/utils/fn.ngsummary.json +1 -1
- package/esm2015/utils/index.ngsummary.json +1 -1
- package/fesm2015/alauda-ui.js +68 -23
- 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/utils/fn.d.ts +1 -0
package/bundles/alauda-ui.umd.js
CHANGED
|
@@ -106,6 +106,15 @@
|
|
|
106
106
|
var last = function (values) { return values === null || values === void 0 ? void 0 : values[values.length - 1]; };
|
|
107
107
|
var isTemplateRef = function (label) { return label instanceof i0.TemplateRef; };
|
|
108
108
|
var handlePixel = function (value) { return Number.isNaN(+value) ? value : value + 'px'; };
|
|
109
|
+
var simplifyStringToTestId = function (input) {
|
|
110
|
+
if (!input)
|
|
111
|
+
return '';
|
|
112
|
+
return input
|
|
113
|
+
.replaceAll('\r', '')
|
|
114
|
+
.replaceAll('\n', '')
|
|
115
|
+
.replaceAll('\\s', '')
|
|
116
|
+
.replaceAll(' ', '');
|
|
117
|
+
};
|
|
109
118
|
|
|
110
119
|
/*! *****************************************************************************
|
|
111
120
|
Copyright (c) Microsoft Corporation.
|
|
@@ -697,7 +706,7 @@
|
|
|
697
706
|
{ type: IconRegisterService }
|
|
698
707
|
]; };
|
|
699
708
|
IconComponent.propDecorators = {
|
|
700
|
-
icon: [{ type: i0.Input }],
|
|
709
|
+
icon: [{ type: i0.HostBinding, args: ['attr.data-test',] }, { type: i0.Input }],
|
|
701
710
|
light: [{ type: i0.Input }],
|
|
702
711
|
dark: [{ type: i0.Input }],
|
|
703
712
|
link: [{ type: i0.Input }],
|
|
@@ -1502,6 +1511,13 @@
|
|
|
1502
1511
|
this.renderer.addClass(this.el.nativeElement, prefix + this.size);
|
|
1503
1512
|
this.focusMonitor.monitor(this.el.nativeElement, false);
|
|
1504
1513
|
}
|
|
1514
|
+
Object.defineProperty(ButtonComponent.prototype, "testId", {
|
|
1515
|
+
get: function () {
|
|
1516
|
+
return ('AUI-BUTTON/' + simplifyStringToTestId(this.el.nativeElement.textContent));
|
|
1517
|
+
},
|
|
1518
|
+
enumerable: false,
|
|
1519
|
+
configurable: true
|
|
1520
|
+
});
|
|
1505
1521
|
Object.defineProperty(ButtonComponent.prototype, "type", {
|
|
1506
1522
|
get: function () {
|
|
1507
1523
|
return this._type;
|
|
@@ -1622,6 +1638,7 @@
|
|
|
1622
1638
|
{ type: a11y.FocusMonitor }
|
|
1623
1639
|
]; };
|
|
1624
1640
|
ButtonComponent.propDecorators = {
|
|
1641
|
+
testId: [{ type: i0.HostBinding, args: ['attr.data-test',] }],
|
|
1625
1642
|
type: [{ type: i0.Input, args: ['aui-button',] }],
|
|
1626
1643
|
size: [{ type: i0.Input }],
|
|
1627
1644
|
plain: [{ type: i0.Input }],
|
|
@@ -2773,7 +2790,7 @@
|
|
|
2773
2790
|
DialogComponent.decorators = [
|
|
2774
2791
|
{ type: i0.Component, args: [{
|
|
2775
2792
|
selector: 'aui-dialog',
|
|
2776
|
-
template: "<div [ngClass]=\"rootClass\" [ngStyle]=\"customStyle\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n",
|
|
2793
|
+
template: "<div [ngClass]=\"rootClass\" [ngStyle]=\"customStyle\" data-test=\"AUI-DIALOG\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n",
|
|
2777
2794
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2778
2795
|
// tslint:disable-next-line:validate-decorators
|
|
2779
2796
|
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
@@ -3354,9 +3371,10 @@
|
|
|
3354
3371
|
*/
|
|
3355
3372
|
// tslint:disable-next-line:directive-class-suffix
|
|
3356
3373
|
var CommonFormControl = /** @class */ (function () {
|
|
3357
|
-
function CommonFormControl(cdr) {
|
|
3374
|
+
function CommonFormControl(cdr, elementRef) {
|
|
3358
3375
|
var _this = this;
|
|
3359
3376
|
this.cdr = cdr;
|
|
3377
|
+
this.elementRef = elementRef;
|
|
3360
3378
|
this.valueChange = new i0.EventEmitter();
|
|
3361
3379
|
this.value$$ = new rxjs.ReplaySubject(1);
|
|
3362
3380
|
this._disabled = false;
|
|
@@ -3375,6 +3393,15 @@
|
|
|
3375
3393
|
enumerable: false,
|
|
3376
3394
|
configurable: true
|
|
3377
3395
|
});
|
|
3396
|
+
Object.defineProperty(CommonFormControl.prototype, "testId", {
|
|
3397
|
+
get: function () {
|
|
3398
|
+
return ('AUI-FORM-CONTROL/' +
|
|
3399
|
+
(this.elementRef.nativeElement.getAttribute('formControlName') ||
|
|
3400
|
+
this.elementRef.nativeElement.getAttribute('name')));
|
|
3401
|
+
},
|
|
3402
|
+
enumerable: false,
|
|
3403
|
+
configurable: true
|
|
3404
|
+
});
|
|
3378
3405
|
Object.defineProperty(CommonFormControl.prototype, "readonly", {
|
|
3379
3406
|
get: function () {
|
|
3380
3407
|
return this.disabled;
|
|
@@ -3434,10 +3461,12 @@
|
|
|
3434
3461
|
{ type: i0.Directive }
|
|
3435
3462
|
];
|
|
3436
3463
|
CommonFormControl.ctorParameters = function () { return [
|
|
3437
|
-
{ type: i0.ChangeDetectorRef }
|
|
3464
|
+
{ type: i0.ChangeDetectorRef },
|
|
3465
|
+
{ type: i0.ElementRef }
|
|
3438
3466
|
]; };
|
|
3439
3467
|
CommonFormControl.propDecorators = {
|
|
3440
3468
|
disabled: [{ type: i0.Input }],
|
|
3469
|
+
testId: [{ type: i0.HostBinding, args: ['attr.data-test',] }],
|
|
3441
3470
|
readonly: [{ type: i0.Input }],
|
|
3442
3471
|
propValue: [{ type: i0.Input, args: ['value',] }],
|
|
3443
3472
|
valueChange: [{ type: i0.Output }]
|
|
@@ -3566,6 +3595,13 @@
|
|
|
3566
3595
|
enumerable: false,
|
|
3567
3596
|
configurable: true
|
|
3568
3597
|
});
|
|
3598
|
+
Object.defineProperty(BaseRadio.prototype, "_testId", {
|
|
3599
|
+
get: function () {
|
|
3600
|
+
return 'AUI-RADIO/' + this.value;
|
|
3601
|
+
},
|
|
3602
|
+
enumerable: false,
|
|
3603
|
+
configurable: true
|
|
3604
|
+
});
|
|
3569
3605
|
BaseRadio.prototype.ngOnInit = function () {
|
|
3570
3606
|
var _this = this;
|
|
3571
3607
|
this.radioGroup.name$.pipe(operators.takeUntil(this.destroy$$)).subscribe(function (name) {
|
|
@@ -3611,6 +3647,7 @@
|
|
|
3611
3647
|
BaseRadio.propDecorators = {
|
|
3612
3648
|
disabled: [{ type: i0.Input }],
|
|
3613
3649
|
value: [{ type: i0.Input }],
|
|
3650
|
+
_testId: [{ type: i0.HostBinding, args: ['attr.data-test',] }],
|
|
3614
3651
|
elRef: [{ type: i0.ViewChild, args: ['elRef', { static: true },] }]
|
|
3615
3652
|
};
|
|
3616
3653
|
|
|
@@ -3834,8 +3871,8 @@
|
|
|
3834
3871
|
var uniqueId$2 = 0;
|
|
3835
3872
|
var CheckboxComponent = /** @class */ (function (_super) {
|
|
3836
3873
|
__extends(CheckboxComponent, _super);
|
|
3837
|
-
function CheckboxComponent(cdr, checkboxGroup, focusMonitor) {
|
|
3838
|
-
var _this = _super.call(this, cdr) || this;
|
|
3874
|
+
function CheckboxComponent(cdr, checkboxGroup, focusMonitor, elementRef) {
|
|
3875
|
+
var _this = _super.call(this, cdr, elementRef) || this;
|
|
3839
3876
|
_this.focusMonitor = focusMonitor;
|
|
3840
3877
|
_this.id = "aui-checkbox-" + uniqueId$2++;
|
|
3841
3878
|
_this.name = '';
|
|
@@ -3931,12 +3968,13 @@
|
|
|
3931
3968
|
CheckboxComponent.ctorParameters = function () { return [
|
|
3932
3969
|
{ type: i0.ChangeDetectorRef },
|
|
3933
3970
|
{ type: CheckboxGroupComponent, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i0.forwardRef(function () { return CheckboxGroupComponent; }),] }] },
|
|
3934
|
-
{ type: a11y.FocusMonitor }
|
|
3971
|
+
{ type: a11y.FocusMonitor },
|
|
3972
|
+
{ type: i0.ElementRef }
|
|
3935
3973
|
]; };
|
|
3936
3974
|
CheckboxComponent.propDecorators = {
|
|
3937
3975
|
name: [{ type: i0.Input }],
|
|
3938
3976
|
type: [{ type: i0.Input }],
|
|
3939
|
-
label: [{ type: i0.Input }],
|
|
3977
|
+
label: [{ type: i0.HostBinding, args: ['attr.data-test',] }, { type: i0.Input }],
|
|
3940
3978
|
indeterminate: [{ type: i0.Input }],
|
|
3941
3979
|
elRef: [{ type: i0.ViewChild, args: ['elRef', { static: true },] }]
|
|
3942
3980
|
};
|
|
@@ -3969,6 +4007,16 @@
|
|
|
3969
4007
|
this.renderer.addClass(this.elementRef.nativeElement, 'aui-input');
|
|
3970
4008
|
this.renderer.addClass(this.elementRef.nativeElement, 'aui-input--' + this.size);
|
|
3971
4009
|
}
|
|
4010
|
+
Object.defineProperty(InputComponent.prototype, "testId", {
|
|
4011
|
+
get: function () {
|
|
4012
|
+
return ('AUI-INPUT/' +
|
|
4013
|
+
(this.elementRef.nativeElement.getAttribute('formcontrolname') ||
|
|
4014
|
+
this.elementRef.nativeElement.getAttribute('name') ||
|
|
4015
|
+
''));
|
|
4016
|
+
},
|
|
4017
|
+
enumerable: false,
|
|
4018
|
+
configurable: true
|
|
4019
|
+
});
|
|
3972
4020
|
Object.defineProperty(InputComponent.prototype, "size", {
|
|
3973
4021
|
get: function () {
|
|
3974
4022
|
return this._size;
|
|
@@ -4024,6 +4072,7 @@
|
|
|
4024
4072
|
{ type: i0.Renderer2 }
|
|
4025
4073
|
]; };
|
|
4026
4074
|
InputComponent.propDecorators = {
|
|
4075
|
+
testId: [{ type: i0.HostBinding, args: ['attr.data-test',] }],
|
|
4027
4076
|
size: [{ type: i0.Input }],
|
|
4028
4077
|
disabled: [{ type: i0.Input }]
|
|
4029
4078
|
};
|
|
@@ -4226,8 +4275,8 @@
|
|
|
4226
4275
|
var INPUT_ERROR_KEY = 'input_data_error';
|
|
4227
4276
|
var TagsInputComponent = /** @class */ (function (_super) {
|
|
4228
4277
|
__extends(TagsInputComponent, _super);
|
|
4229
|
-
function TagsInputComponent(cdr, fb, renderer, injector) {
|
|
4230
|
-
var _this = _super.call(this, cdr) || this;
|
|
4278
|
+
function TagsInputComponent(cdr, fb, renderer, injector, elementRef) {
|
|
4279
|
+
var _this = _super.call(this, cdr, elementRef) || this;
|
|
4231
4280
|
_this.fb = fb;
|
|
4232
4281
|
_this.renderer = renderer;
|
|
4233
4282
|
_this.injector = injector;
|
|
@@ -4486,7 +4535,8 @@
|
|
|
4486
4535
|
{ type: i0.ChangeDetectorRef },
|
|
4487
4536
|
{ type: forms.FormBuilder },
|
|
4488
4537
|
{ type: i0.Renderer2 },
|
|
4489
|
-
{ type: i0.Injector }
|
|
4538
|
+
{ type: i0.Injector },
|
|
4539
|
+
{ type: i0.ElementRef }
|
|
4490
4540
|
]; };
|
|
4491
4541
|
TagsInputComponent.propDecorators = {
|
|
4492
4542
|
placeholder: [{ type: i0.Input }],
|
|
@@ -5066,6 +5116,14 @@
|
|
|
5066
5116
|
_this.trigger = exports.TooltipTrigger.Click;
|
|
5067
5117
|
return _this;
|
|
5068
5118
|
}
|
|
5119
|
+
Object.defineProperty(DropdownDirective.prototype, "testId", {
|
|
5120
|
+
get: function () {
|
|
5121
|
+
return ('AUI-DROPDOWN/' +
|
|
5122
|
+
simplifyStringToTestId(this.elRef.nativeElement.textContent));
|
|
5123
|
+
},
|
|
5124
|
+
enumerable: false,
|
|
5125
|
+
configurable: true
|
|
5126
|
+
});
|
|
5069
5127
|
Object.defineProperty(DropdownDirective.prototype, "menu", {
|
|
5070
5128
|
get: function () {
|
|
5071
5129
|
return this._menu;
|
|
@@ -5123,6 +5181,7 @@
|
|
|
5123
5181
|
{ type: i0.NgZone }
|
|
5124
5182
|
]; };
|
|
5125
5183
|
DropdownDirective.propDecorators = {
|
|
5184
|
+
testId: [{ type: i0.HostBinding, args: ['attr.data-test',] }],
|
|
5126
5185
|
menu: [{ type: i0.Input, args: ['auiDropdown',] }],
|
|
5127
5186
|
lazyContentContext: [{ type: i0.Input, args: ['auiDropdownContext',] }],
|
|
5128
5187
|
hideOnClick: [{ type: i0.Input, args: ['auiDropdownHideOnClick',] }],
|
|
@@ -5299,7 +5358,7 @@
|
|
|
5299
5358
|
DropdownButtonComponent.decorators = [
|
|
5300
5359
|
{ type: i0.Component, args: [{
|
|
5301
5360
|
selector: 'aui-dropdown-button',
|
|
5302
|
-
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",
|
|
5361
|
+
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",
|
|
5303
5362
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5304
5363
|
encapsulation: i0.ViewEncapsulation.None,
|
|
5305
5364
|
preserveWhitespaces: false,
|
|
@@ -5505,6 +5564,13 @@
|
|
|
5505
5564
|
enumerable: false,
|
|
5506
5565
|
configurable: true
|
|
5507
5566
|
});
|
|
5567
|
+
Object.defineProperty(OptionComponent.prototype, "testId", {
|
|
5568
|
+
get: function () {
|
|
5569
|
+
return 'AUI-OPTION/' + (this.label || this.value);
|
|
5570
|
+
},
|
|
5571
|
+
enumerable: false,
|
|
5572
|
+
configurable: true
|
|
5573
|
+
});
|
|
5508
5574
|
Object.defineProperty(OptionComponent.prototype, "labelContext", {
|
|
5509
5575
|
get: function () {
|
|
5510
5576
|
return this._labelContext;
|
|
@@ -5572,6 +5638,7 @@
|
|
|
5572
5638
|
]; };
|
|
5573
5639
|
OptionComponent.propDecorators = {
|
|
5574
5640
|
label: [{ type: i0.Input }],
|
|
5641
|
+
testId: [{ type: i0.HostBinding, args: ['attr.data-test',] }],
|
|
5575
5642
|
labelContext: [{ type: i0.Input }],
|
|
5576
5643
|
value: [{ type: i0.Input }],
|
|
5577
5644
|
disabled: [{ type: i0.Input }],
|
|
@@ -5935,8 +6002,8 @@
|
|
|
5935
6002
|
|
|
5936
6003
|
var MultiSelectComponent = /** @class */ (function (_super) {
|
|
5937
6004
|
__extends(MultiSelectComponent, _super);
|
|
5938
|
-
function MultiSelectComponent(cdr, renderer) {
|
|
5939
|
-
var _this = _super.call(this, cdr) || this;
|
|
6005
|
+
function MultiSelectComponent(cdr, renderer, elementRef) {
|
|
6006
|
+
var _this = _super.call(this, cdr, elementRef) || this;
|
|
5940
6007
|
_this.renderer = renderer;
|
|
5941
6008
|
_this.bem = buildBem('aui-multi-select');
|
|
5942
6009
|
_this.bemSelectAll = buildBem('aui-option');
|
|
@@ -6233,7 +6300,7 @@
|
|
|
6233
6300
|
MultiSelectComponent.decorators = [
|
|
6234
6301
|
{ type: i0.Component, args: [{
|
|
6235
6302
|
selector: 'aui-multi-select',
|
|
6236
|
-
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
|
|
6303
|
+
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",
|
|
6237
6304
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6238
6305
|
encapsulation: i0.ViewEncapsulation.None,
|
|
6239
6306
|
preserveWhitespaces: false,
|
|
@@ -6253,7 +6320,8 @@
|
|
|
6253
6320
|
];
|
|
6254
6321
|
MultiSelectComponent.ctorParameters = function () { return [
|
|
6255
6322
|
{ type: i0.ChangeDetectorRef },
|
|
6256
|
-
{ type: i0.Renderer2 }
|
|
6323
|
+
{ type: i0.Renderer2 },
|
|
6324
|
+
{ type: i0.ElementRef }
|
|
6257
6325
|
]; };
|
|
6258
6326
|
MultiSelectComponent.propDecorators = {
|
|
6259
6327
|
tagClassFn: [{ type: i0.Input }],
|
|
@@ -6390,7 +6458,7 @@
|
|
|
6390
6458
|
SelectComponent.decorators = [
|
|
6391
6459
|
{ type: i0.Component, args: [{
|
|
6392
6460
|
selector: 'aui-select',
|
|
6393
|
-
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",
|
|
6461
|
+
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",
|
|
6394
6462
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6395
6463
|
encapsulation: i0.ViewEncapsulation.None,
|
|
6396
6464
|
preserveWhitespaces: false,
|
|
@@ -6672,7 +6740,7 @@
|
|
|
6672
6740
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6673
6741
|
encapsulation: i0.ViewEncapsulation.None,
|
|
6674
6742
|
preserveWhitespaces: false,
|
|
6675
|
-
styles: [".aui-paginator{display:inline-flex;align-items:center;color:rgb(var(--aui-color-n-1))}.aui-paginator .aui-button{width:var(--aui-line-height-xl);height:var(--aui-line-height-xl);border:unset}.aui-paginator .aui-button
|
|
6743
|
+
styles: [".aui-paginator{display:inline-flex;align-items:center;color:rgb(var(--aui-color-n-1))}.aui-paginator .aui-button{width:var(--aui-line-height-xl);height:var(--aui-line-height-xl);border:unset}.aui-paginator .aui-button--default{background-color:transparent}.aui-paginator .aui-button .aui-button__content{padding:unset}.aui-paginator__fast-navigator[hidden]{display:none}.aui-paginator__fast-navigator .aui-icon{margin:0}.aui-paginator__fast-navigator:hover aui-icon:first-child,.aui-paginator__fast-navigator aui-icon:last-child{display:none}.aui-paginator__fast-navigator:hover aui-icon:last-child{display:inline}.aui-paginator__sizes{display:inline-flex;align-items:center}.aui-paginator__sizes .aui-select{width:80px;margin-right:var(--aui-spacing-s)}.aui-paginator__jumper .aui-input{width:80px}.aui-paginator__jumper span+input{margin-left:var(--aui-spacing-m)}.aui-paginator__jumper input+span{margin-left:var(--aui-spacing-s)}.aui-paginator__total{font-size:var(--aui-font-size-m)}.aui-paginator__navigator.aui-button{background-color:rgb(var(--aui-color-n-8))}.aui-paginator__navigator.aui-button aui-icon{font-size:var(--aui-font-size-l)}.aui-paginator__navigator.aui-button:hover{background-color:rgb(var(--aui-color-p-6))}.aui-paginator__pager{border:1px solid rgb(var(--aui-color-n-7));padding:3px;border-radius:var(--aui-border-radius-m);background-color:rgb(var(--aui-color-main-bg))}.aui-paginator__layout{display:inline-block}.aui-paginator__layout+.aui-paginator__layout{margin-left:var(--aui-spacing-l)}"]
|
|
6676
6744
|
},] }
|
|
6677
6745
|
];
|
|
6678
6746
|
PaginatorComponent.ctorParameters = function () { return [
|
|
@@ -10844,8 +10912,8 @@
|
|
|
10844
10912
|
var bem$3 = buildBem('aui-time-picker-panel');
|
|
10845
10913
|
var TimePickerPanelComponent = /** @class */ (function (_super) {
|
|
10846
10914
|
__extends(TimePickerPanelComponent, _super);
|
|
10847
|
-
function TimePickerPanelComponent(cdr) {
|
|
10848
|
-
var _this = _super.call(this, cdr) || this;
|
|
10915
|
+
function TimePickerPanelComponent(cdr, elementRef) {
|
|
10916
|
+
var _this = _super.call(this, cdr, elementRef) || this;
|
|
10849
10917
|
_this.cdr = cdr;
|
|
10850
10918
|
_this.hourStep = 1;
|
|
10851
10919
|
_this.minuteStep = 1;
|
|
@@ -11041,7 +11109,8 @@
|
|
|
11041
11109
|
},] }
|
|
11042
11110
|
];
|
|
11043
11111
|
TimePickerPanelComponent.ctorParameters = function () { return [
|
|
11044
|
-
{ type: i0.ChangeDetectorRef }
|
|
11112
|
+
{ type: i0.ChangeDetectorRef },
|
|
11113
|
+
{ type: i0.ElementRef }
|
|
11045
11114
|
]; };
|
|
11046
11115
|
TimePickerPanelComponent.propDecorators = {
|
|
11047
11116
|
format: [{ type: i0.Input }],
|
|
@@ -12728,6 +12797,7 @@
|
|
|
12728
12797
|
exports.observeMutationOn = observeMutationOn;
|
|
12729
12798
|
exports.observeResizeOn = observeResizeOn;
|
|
12730
12799
|
exports.scrollIntoView = scrollIntoView;
|
|
12800
|
+
exports.simplifyStringToTestId = simplifyStringToTestId;
|
|
12731
12801
|
exports.sleep = sleep;
|
|
12732
12802
|
exports.watchContentExist = watchContentExist;
|
|
12733
12803
|
exports.zh = zh;
|