@seniorsistemas/angular-components 17.16.1 → 17.16.2
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/seniorsistemas-angular-components.umd.js +20 -0
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/tiered-menu/utils.d.ts +2 -0
- package/components/utils/index.d.ts +1 -0
- package/components/utils/utils.d.ts +1 -0
- package/esm2015/components/table/table-column/table-columns.component.js +6 -3
- package/esm2015/components/tiered-menu/components/tiered-menu/tiered-menu.component.js +7 -1
- package/esm2015/components/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.js +5 -2
- package/esm2015/components/tiered-menu/tiered-menu.directive.js +3 -1
- package/esm2015/components/tiered-menu/utils.js +7 -0
- package/esm2015/components/utils/index.js +2 -1
- package/esm2015/components/utils/utils.js +2 -0
- package/esm5/components/table/table-column/table-columns.component.js +4 -1
- package/esm5/components/tiered-menu/components/tiered-menu/tiered-menu.component.js +7 -1
- package/esm5/components/tiered-menu/components/tiered-menu-nested/tiered-menu-nested.component.js +5 -2
- package/esm5/components/tiered-menu/tiered-menu.directive.js +3 -1
- package/esm5/components/tiered-menu/utils.js +7 -0
- package/esm5/components/utils/index.js +2 -1
- package/esm5/components/utils/utils.js +2 -0
- package/fesm2015/seniorsistemas-angular-components.js +22 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +20 -1
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1800,6 +1800,13 @@
|
|
|
1800
1800
|
return TieredMenuService;
|
|
1801
1801
|
}());
|
|
1802
1802
|
|
|
1803
|
+
var enableScroll = function () {
|
|
1804
|
+
document.body.style.overflow = "auto";
|
|
1805
|
+
};
|
|
1806
|
+
var disabledScroll = function () {
|
|
1807
|
+
document.body.style.overflow = "hidden";
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1803
1810
|
var TieredMenuNestedComponent = /** @class */ (function () {
|
|
1804
1811
|
function TieredMenuNestedComponent(tieredMenuService, _tieredMenuEventService) {
|
|
1805
1812
|
this.tieredMenuService = tieredMenuService;
|
|
@@ -1846,10 +1853,12 @@
|
|
|
1846
1853
|
TieredMenuNestedComponent.prototype.ngOnInit = function () {
|
|
1847
1854
|
this.tieredMenuService.currentItems = this.items;
|
|
1848
1855
|
this._subscribeEvents();
|
|
1856
|
+
disabledScroll();
|
|
1849
1857
|
};
|
|
1850
1858
|
TieredMenuNestedComponent.prototype.ngOnDestroy = function () {
|
|
1851
1859
|
this._unsubscribe$.next();
|
|
1852
1860
|
this._unsubscribe$.complete();
|
|
1861
|
+
enableScroll();
|
|
1853
1862
|
};
|
|
1854
1863
|
TieredMenuNestedComponent.prototype._incrementCurItem = function () {
|
|
1855
1864
|
if (!this.tieredMenuService.currentItem) {
|
|
@@ -2037,6 +2046,7 @@
|
|
|
2037
2046
|
TieredMenuComponent.prototype.ngOnInit = function () {
|
|
2038
2047
|
this.tieredMenuService.currentItems = this.items;
|
|
2039
2048
|
this._subscribeEvents();
|
|
2049
|
+
disabledScroll();
|
|
2040
2050
|
};
|
|
2041
2051
|
TieredMenuComponent.prototype.ngOnDestroy = function () {
|
|
2042
2052
|
this._unsubscribe$.next();
|
|
@@ -2170,6 +2180,7 @@
|
|
|
2170
2180
|
_this.tieredMenuService.currentItem = null;
|
|
2171
2181
|
_this.tieredMenuService.currentItems = _this.tieredMenuService.items;
|
|
2172
2182
|
_this.tieredMenuService.markAllItemsAsClosed(_this.tieredMenuService.items);
|
|
2183
|
+
enableScroll();
|
|
2173
2184
|
});
|
|
2174
2185
|
// Open item menu event.
|
|
2175
2186
|
this._tieredMenuEventService.openItemMenuEvent.pipe(operators.takeUntil(this._unsubscribe$)).subscribe(function (item) {
|
|
@@ -2208,6 +2219,9 @@
|
|
|
2208
2219
|
if (item.parent) {
|
|
2209
2220
|
item.parent.isOpen = false;
|
|
2210
2221
|
}
|
|
2222
|
+
else {
|
|
2223
|
+
enableScroll();
|
|
2224
|
+
}
|
|
2211
2225
|
_this.tieredMenuService.currentItems = ((_b = (_a = item === null || item === void 0 ? void 0 : item.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.submenu) || _this.tieredMenuService.items;
|
|
2212
2226
|
_this.tieredMenuService.currentItem = item.parent;
|
|
2213
2227
|
_this.destroyRequest.emit(false);
|
|
@@ -2420,6 +2434,7 @@
|
|
|
2420
2434
|
this._tieredMenuEventService.closeAllMenusEvent.pipe(operators.takeUntil(this._unsubscribe$)).subscribe(function () {
|
|
2421
2435
|
_this._tieredMenuService.items = _this._tieredMenuService.markAllItemsAsClosed(_this._tieredMenuService.items);
|
|
2422
2436
|
_this._destroy();
|
|
2437
|
+
enableScroll();
|
|
2423
2438
|
});
|
|
2424
2439
|
};
|
|
2425
2440
|
TieredMenuDirective.prototype._compareItems = function (item1, item2) {
|
|
@@ -8001,6 +8016,8 @@
|
|
|
8001
8016
|
.replace(/\byy\b/, "YYYY"); // year (four digits)
|
|
8002
8017
|
};
|
|
8003
8018
|
|
|
8019
|
+
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
8020
|
+
|
|
8004
8021
|
|
|
8005
8022
|
(function (ValidateErrors) {
|
|
8006
8023
|
ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
|
|
@@ -9837,8 +9854,10 @@
|
|
|
9837
9854
|
return column.prefix ? column.prefix : this.hostProjectConfigs.domain + "." + this.hostProjectConfigs.service + ".";
|
|
9838
9855
|
};
|
|
9839
9856
|
TableColumnsComponent.prototype.isAttributeValueInvalid = function (attributeValue) {
|
|
9857
|
+
var _a;
|
|
9840
9858
|
return (attributeValue === null ||
|
|
9841
9859
|
attributeValue === undefined ||
|
|
9860
|
+
(((_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions) && isNullOrUndefined(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value)) ||
|
|
9842
9861
|
(this.isArray(attributeValue) && !attributeValue.length) ||
|
|
9843
9862
|
(typeof attributeValue === "string" && attributeValue.trim() === ""));
|
|
9844
9863
|
};
|
|
@@ -21124,6 +21143,7 @@
|
|
|
21124
21143
|
exports.convertToMomentDateFormat = convertToMomentDateFormat;
|
|
21125
21144
|
exports.countries = countries;
|
|
21126
21145
|
exports.fallback = fallback;
|
|
21146
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
21127
21147
|
exports.parseItensPickList = parseItensPickList;
|
|
21128
21148
|
exports.ɵ0 = ɵ0$3;
|
|
21129
21149
|
exports.ɵ1 = ɵ1$2;
|