@alauda/ui 6.1.5-beta.2 → 6.1.5-beta.3
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/bundles/alauda-ui.umd.js +17 -7
- 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/esm2015/date-picker/calendar/panel/picker-panel.js +4 -4
- package/esm2015/table/table.component.js +8 -4
- package/fesm2015/alauda-ui.js +10 -6
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table.component.d.ts +2 -1
package/bundles/alauda-ui.umd.js
CHANGED
|
@@ -1071,10 +1071,20 @@
|
|
|
1071
1071
|
var TableComponent = /** @class */ (function (_super) {
|
|
1072
1072
|
__extends(TableComponent, _super);
|
|
1073
1073
|
function TableComponent() {
|
|
1074
|
-
|
|
1075
|
-
_this.stickyCssClass = 'aui-table-sticky';
|
|
1076
|
-
return _this;
|
|
1074
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1077
1075
|
}
|
|
1076
|
+
Object.defineProperty(TableComponent.prototype, "stickyCssClass", {
|
|
1077
|
+
// FIXME: workaround to override because it will break constructor if it is field, but why MatTable works?
|
|
1078
|
+
// @ts-ignore
|
|
1079
|
+
get: function () {
|
|
1080
|
+
return 'aui-table-sticky';
|
|
1081
|
+
},
|
|
1082
|
+
set: function (_) {
|
|
1083
|
+
// nothing
|
|
1084
|
+
},
|
|
1085
|
+
enumerable: false,
|
|
1086
|
+
configurable: true
|
|
1087
|
+
});
|
|
1078
1088
|
TableComponent.prototype.ngAfterContentInit = function () {
|
|
1079
1089
|
this._createPlaceholder();
|
|
1080
1090
|
};
|
|
@@ -11369,7 +11379,7 @@
|
|
|
11369
11379
|
if (!this.panelData) {
|
|
11370
11380
|
this.panelData = [[]];
|
|
11371
11381
|
}
|
|
11372
|
-
var
|
|
11382
|
+
var _d = __read(getDatePanelIterable(date, navRange, this.weekStartDay)), values = _d.slice(0);
|
|
11373
11383
|
if (navRange === exports.DateNavRange.Month) {
|
|
11374
11384
|
colCounts = DAY_PANEL_COLUMN_COUNT;
|
|
11375
11385
|
rowCounts = DAY_PANEL_ROW_COUNT;
|
|
@@ -11411,12 +11421,12 @@
|
|
|
11411
11421
|
};
|
|
11412
11422
|
PickerPanelComponent.prototype.match = function (value) {
|
|
11413
11423
|
var _this = this;
|
|
11414
|
-
var _a, _b;
|
|
11415
|
-
if (!((_a = this.matchDates) === null || _a === void 0 ? void 0 : _a.length) ||
|
|
11424
|
+
var _a, _b, _c;
|
|
11425
|
+
if (!((_b = (_a = this.matchDates) === null || _a === void 0 ? void 0 : _a.filter(function (v) { return !!v; })) === null || _b === void 0 ? void 0 : _b.length) ||
|
|
11416
11426
|
getNavRangeByType(this.type) !== this.navRange) {
|
|
11417
11427
|
return false;
|
|
11418
11428
|
}
|
|
11419
|
-
return (
|
|
11429
|
+
return (_c = this.matchDates) === null || _c === void 0 ? void 0 : _c.some(function (dateValue) { return _this.navRange === exports.DateNavRange.Decade
|
|
11420
11430
|
? value.isSame(dateValue, YEAR)
|
|
11421
11431
|
: _this.navRange === exports.DateNavRange.Year
|
|
11422
11432
|
? value.isSame(dateValue, MONTH)
|