@hestia-earth/ui-components 0.3.7 → 0.4.0
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/hestia-earth-ui-components.umd.js +11 -7
- package/bundles/hestia-earth-ui-components.umd.js.map +1 -1
- package/esm2015/common/data-table/data-table.component.js +10 -6
- package/esm2015/node/node-logs-models/node-logs-models.model.js +3 -3
- package/fesm2015/hestia-earth-ui-components.js +11 -7
- package/fesm2015/hestia-earth-ui-components.js.map +1 -1
- package/package.json +2 -2
|
@@ -1848,14 +1848,15 @@
|
|
|
1848
1848
|
}] } });
|
|
1849
1849
|
|
|
1850
1850
|
var scrollbarHeight = 20; // account for scrollbar on non-touch devices
|
|
1851
|
+
var defaultSize = '100%';
|
|
1851
1852
|
var DataTableComponent = /** @class */ (function () {
|
|
1852
1853
|
function DataTableComponent(el) {
|
|
1853
1854
|
this.el = el;
|
|
1854
1855
|
this.minHeight = 100;
|
|
1855
1856
|
this.nbRows = 20;
|
|
1856
1857
|
this.small = false;
|
|
1857
|
-
this.height =
|
|
1858
|
-
this.width =
|
|
1858
|
+
this.height = defaultSize;
|
|
1859
|
+
this.width = defaultSize;
|
|
1859
1860
|
}
|
|
1860
1861
|
Object.defineProperty(DataTableComponent.prototype, "isSmall", {
|
|
1861
1862
|
get: function () {
|
|
@@ -1877,7 +1878,8 @@
|
|
|
1877
1878
|
};
|
|
1878
1879
|
Object.defineProperty(DataTableComponent.prototype, "nbHeaders", {
|
|
1879
1880
|
get: function () {
|
|
1880
|
-
|
|
1881
|
+
var _a, _b, _c;
|
|
1882
|
+
return ((_c = (_b = (_a = this.el) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.table thead tr')) === null || _c === void 0 ? void 0 : _c.length) || 1;
|
|
1881
1883
|
},
|
|
1882
1884
|
enumerable: false,
|
|
1883
1885
|
configurable: true
|
|
@@ -1890,13 +1892,15 @@
|
|
|
1890
1892
|
configurable: true
|
|
1891
1893
|
});
|
|
1892
1894
|
DataTableComponent.prototype.updateTableSize = function () {
|
|
1895
|
+
var _a, _b, _c, _d;
|
|
1893
1896
|
var height = this.nbRows
|
|
1894
1897
|
? this.rowHeight * (this.nbHeaders + this.nbRows) + scrollbarHeight
|
|
1895
|
-
: this.el.nativeElement.offsetHeight;
|
|
1898
|
+
: (_b = (_a = this.el) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.offsetHeight;
|
|
1896
1899
|
height = this.maxHeight ? Math.min(height, this.maxHeight) : height;
|
|
1897
1900
|
height = this.minHeight ? Math.max(height, this.minHeight) : height;
|
|
1898
1901
|
this.height = height + "px";
|
|
1899
|
-
|
|
1902
|
+
var width = (_d = (_c = this.el) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.offsetWidth;
|
|
1903
|
+
this.width = width ? width + "px" : defaultSize;
|
|
1900
1904
|
};
|
|
1901
1905
|
return DataTableComponent;
|
|
1902
1906
|
}());
|
|
@@ -5845,9 +5849,9 @@
|
|
|
5845
5849
|
(termType && findMatchingModel(models, modelKeyParams(node, termType))) ||
|
|
5846
5850
|
findMatchingModel(models, modelKeyParams(node, (subValue === null || subValue === void 0 ? void 0 : subValue.key) + "." + methodId)) ||
|
|
5847
5851
|
// handle "input.price"
|
|
5848
|
-
findMatchingModel(models, modelKeyParams(node, type.toLowerCase() + "." + (subValue === null || subValue === void 0 ? void 0 : subValue.key))) ||
|
|
5852
|
+
findMatchingModel(models, modelKeyParams(node, (type === null || type === void 0 ? void 0 : type.toLowerCase()) + "." + (subValue === null || subValue === void 0 ? void 0 : subValue.key))) ||
|
|
5849
5853
|
// handle "input.hestiaAggregatedData"
|
|
5850
|
-
findMatchingModel(models, modelKeyParams(node, type.toLowerCase() + "." + methodId))
|
|
5854
|
+
findMatchingModel(models, modelKeyParams(node, (type === null || type === void 0 ? void 0 : type.toLowerCase()) + "." + methodId))
|
|
5851
5855
|
};
|
|
5852
5856
|
};
|
|
5853
5857
|
};
|