@alauda/ui 6.2.1-beta.4 → 6.2.1-beta.8
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 +17 -6
- 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 -1
- package/esm2015/alauda-ui.ngsummary.json +1 -1
- package/esm2015/button/button.component.js +3 -2
- package/esm2015/input/input.component.js +5 -4
- package/esm2015/paginator/paginator.component.js +1 -1
- package/esm2015/paginator/paginator.component.scss.ngstyle.js +1 -1
- package/esm2015/public-api.ngsummary.json +1 -1
- package/esm2015/radio/base-radio.js +2 -2
- 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 +17 -7
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +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.
|
|
@@ -1504,7 +1513,7 @@
|
|
|
1504
1513
|
}
|
|
1505
1514
|
Object.defineProperty(ButtonComponent.prototype, "testId", {
|
|
1506
1515
|
get: function () {
|
|
1507
|
-
return this.el.nativeElement.textContent;
|
|
1516
|
+
return ('AUI-BUTTON/' + simplifyStringToTestId(this.el.nativeElement.textContent));
|
|
1508
1517
|
},
|
|
1509
1518
|
enumerable: false,
|
|
1510
1519
|
configurable: true
|
|
@@ -3588,7 +3597,7 @@
|
|
|
3588
3597
|
});
|
|
3589
3598
|
Object.defineProperty(BaseRadio.prototype, "_testId", {
|
|
3590
3599
|
get: function () {
|
|
3591
|
-
return 'RADIO/' + this.value;
|
|
3600
|
+
return 'AUI-RADIO/' + this.value;
|
|
3592
3601
|
},
|
|
3593
3602
|
enumerable: false,
|
|
3594
3603
|
configurable: true
|
|
@@ -4000,9 +4009,10 @@
|
|
|
4000
4009
|
}
|
|
4001
4010
|
Object.defineProperty(InputComponent.prototype, "testId", {
|
|
4002
4011
|
get: function () {
|
|
4003
|
-
return (
|
|
4004
|
-
this.elementRef.nativeElement.getAttribute('
|
|
4005
|
-
|
|
4012
|
+
return ('AUI-INPUT/' +
|
|
4013
|
+
(this.elementRef.nativeElement.getAttribute('formcontrolname') ||
|
|
4014
|
+
this.elementRef.nativeElement.getAttribute('name') ||
|
|
4015
|
+
''));
|
|
4006
4016
|
},
|
|
4007
4017
|
enumerable: false,
|
|
4008
4018
|
configurable: true
|
|
@@ -6721,7 +6731,7 @@
|
|
|
6721
6731
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6722
6732
|
encapsulation: i0.ViewEncapsulation.None,
|
|
6723
6733
|
preserveWhitespaces: false,
|
|
6724
|
-
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
|
|
6734
|
+
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)}"]
|
|
6725
6735
|
},] }
|
|
6726
6736
|
];
|
|
6727
6737
|
PaginatorComponent.ctorParameters = function () { return [
|
|
@@ -12778,6 +12788,7 @@
|
|
|
12778
12788
|
exports.observeMutationOn = observeMutationOn;
|
|
12779
12789
|
exports.observeResizeOn = observeResizeOn;
|
|
12780
12790
|
exports.scrollIntoView = scrollIntoView;
|
|
12791
|
+
exports.simplifyStringToTestId = simplifyStringToTestId;
|
|
12781
12792
|
exports.sleep = sleep;
|
|
12782
12793
|
exports.watchContentExist = watchContentExist;
|
|
12783
12794
|
exports.zh = zh;
|