@seniorsistemas/angular-components 17.16.1 → 17.16.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/seniorsistemas-angular-components.umd.js +22 -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/locale/services/numeric.service.js +4 -1
- 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/locale/services/numeric.service.js +4 -1
- 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 +24 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +22 -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) {
|
|
@@ -6055,6 +6070,8 @@
|
|
|
6055
6070
|
return CurrencyService;
|
|
6056
6071
|
}());
|
|
6057
6072
|
|
|
6073
|
+
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
6074
|
+
|
|
6058
6075
|
var NumericService = /** @class */ (function () {
|
|
6059
6076
|
function NumericService(localeService, currencyService) {
|
|
6060
6077
|
this.localeService = localeService;
|
|
@@ -6075,6 +6092,8 @@
|
|
|
6075
6092
|
*/
|
|
6076
6093
|
NumericService.prototype.instant = function (value, options) {
|
|
6077
6094
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
6095
|
+
if (isNullOrUndefined(value))
|
|
6096
|
+
return null;
|
|
6078
6097
|
options = __assign(__assign({}, options), { locale: (_c = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : (_b = this.localeService.getLocaleOptions()) === null || _b === void 0 ? void 0 : _b.locale) !== null && _c !== void 0 ? _c : "pt-BR", numberFormatOptions: __assign(__assign({}, options === null || options === void 0 ? void 0 : options.numberFormatOptions), { currency: ((_d = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _d === void 0 ? void 0 : _d.style) === "currency" ? ((_f = (_e = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _e === void 0 ? void 0 : _e.currency) !== null && _f !== void 0 ? _f : "BRL") : undefined, currencyDisplay: ((_g = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _g === void 0 ? void 0 : _g.style) === "currency"
|
|
6079
6098
|
? ((_j = (_h = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _h === void 0 ? void 0 : _h.currencyDisplay) !== null && _j !== void 0 ? _j : "narrowSymbol")
|
|
6080
6099
|
: undefined, minimumFractionDigits: (_l = (_k = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _k === void 0 ? void 0 : _k.minimumFractionDigits) !== null && _l !== void 0 ? _l : this.getCurrencyMinimumFractionDigits((_m = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _m === void 0 ? void 0 : _m.currency) }) });
|
|
@@ -9837,8 +9856,10 @@
|
|
|
9837
9856
|
return column.prefix ? column.prefix : this.hostProjectConfigs.domain + "." + this.hostProjectConfigs.service + ".";
|
|
9838
9857
|
};
|
|
9839
9858
|
TableColumnsComponent.prototype.isAttributeValueInvalid = function (attributeValue) {
|
|
9859
|
+
var _a;
|
|
9840
9860
|
return (attributeValue === null ||
|
|
9841
9861
|
attributeValue === undefined ||
|
|
9862
|
+
(((_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
9863
|
(this.isArray(attributeValue) && !attributeValue.length) ||
|
|
9843
9864
|
(typeof attributeValue === "string" && attributeValue.trim() === ""));
|
|
9844
9865
|
};
|
|
@@ -21124,6 +21145,7 @@
|
|
|
21124
21145
|
exports.convertToMomentDateFormat = convertToMomentDateFormat;
|
|
21125
21146
|
exports.countries = countries;
|
|
21126
21147
|
exports.fallback = fallback;
|
|
21148
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
21127
21149
|
exports.parseItensPickList = parseItensPickList;
|
|
21128
21150
|
exports.ɵ0 = ɵ0$3;
|
|
21129
21151
|
exports.ɵ1 = ɵ1$2;
|