@seniorsistemas/angular-components 17.16.0 → 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 +22 -1
- 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/dynamic-form/configurations/fields/select-field.d.ts +2 -0
- 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/dynamic-form/components/fields/select/select-field.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/fields/select-field.js +2 -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/dynamic-form/components/fields/select/select-field.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/fields/select-field.js +2 -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 -4
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +22 -2
- 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) {
|
|
@@ -6696,6 +6711,7 @@
|
|
|
6696
6711
|
_this.onChange = config.onChange;
|
|
6697
6712
|
_this.emptyMessage = config.emptyMessage;
|
|
6698
6713
|
_this.editable = config.editable;
|
|
6714
|
+
_this.filter = config.filter;
|
|
6699
6715
|
return _this;
|
|
6700
6716
|
}
|
|
6701
6717
|
return SelectField;
|
|
@@ -8000,6 +8016,8 @@
|
|
|
8000
8016
|
.replace(/\byy\b/, "YYYY"); // year (four digits)
|
|
8001
8017
|
};
|
|
8002
8018
|
|
|
8019
|
+
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
8020
|
+
|
|
8003
8021
|
|
|
8004
8022
|
(function (ValidateErrors) {
|
|
8005
8023
|
ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
|
|
@@ -9836,8 +9854,10 @@
|
|
|
9836
9854
|
return column.prefix ? column.prefix : this.hostProjectConfigs.domain + "." + this.hostProjectConfigs.service + ".";
|
|
9837
9855
|
};
|
|
9838
9856
|
TableColumnsComponent.prototype.isAttributeValueInvalid = function (attributeValue) {
|
|
9857
|
+
var _a;
|
|
9839
9858
|
return (attributeValue === null ||
|
|
9840
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)) ||
|
|
9841
9861
|
(this.isArray(attributeValue) && !attributeValue.length) ||
|
|
9842
9862
|
(typeof attributeValue === "string" && attributeValue.trim() === ""));
|
|
9843
9863
|
};
|
|
@@ -10763,7 +10783,7 @@
|
|
|
10763
10783
|
], SelectFieldComponent.prototype, "formControl", void 0);
|
|
10764
10784
|
SelectFieldComponent = __decorate([
|
|
10765
10785
|
core.Component({
|
|
10766
|
-
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<p-dropdown\n *ngIf=\"!field.multiple\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [placeholder]=\"field.placeholder || ' '\"\n [formControl]=\"formControl\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n [showClear]=\"field.showClear\"\n dataKey=\"{{field.dataKey}}\"\n optionLabel=\"{{field.optionLabel}}\"\n [autoDisplayFirst]=\"field.autoDisplayFirst\"\n [appendTo]=\"field.appendTo || 'body'\"\n [editable]=\"field.editable\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n</p-dropdown>\n<p-multiSelect\n *ngIf=\"field.multiple\"\n [formControl]=\"formControl\"\n [name]=\"field.name\"\n [inputId]=\"(field.id || field.name)\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [defaultLabel]=\"field.placeholder\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [emptyFilterMessage]=\"field.emptyMessage || 'platform.angular_components.no_records_found' | translate\"\n [showDelay]=\"500\"\n [selectedItemsLabel]=\"field.multipleSelectedLabel || 'platform.angular_components.total_records_selected' | translate\"\n [appendTo]=\"field.appendTo || 'body'\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n</p-multiSelect>\n\n"
|
|
10786
|
+
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<p-dropdown\n *ngIf=\"!field.multiple\"\n [filter]=\"field.filter\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [placeholder]=\"field.placeholder || ' '\"\n [formControl]=\"formControl\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n [showClear]=\"field.showClear\"\n dataKey=\"{{field.dataKey}}\"\n optionLabel=\"{{field.optionLabel}}\"\n [autoDisplayFirst]=\"field.autoDisplayFirst\"\n [appendTo]=\"field.appendTo || 'body'\"\n [editable]=\"field.editable\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n</p-dropdown>\n<p-multiSelect\n *ngIf=\"field.multiple\"\n [formControl]=\"formControl\"\n [name]=\"field.name\"\n [inputId]=\"(field.id || field.name)\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [defaultLabel]=\"field.placeholder\"\n [sTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [emptyFilterMessage]=\"field.emptyMessage || 'platform.angular_components.no_records_found' | translate\"\n [showDelay]=\"500\"\n [selectedItemsLabel]=\"field.multipleSelectedLabel || 'platform.angular_components.total_records_selected' | translate\"\n [appendTo]=\"field.appendTo || 'body'\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n</p-multiSelect>\n\n"
|
|
10767
10787
|
})
|
|
10768
10788
|
], SelectFieldComponent);
|
|
10769
10789
|
return SelectFieldComponent;
|
|
@@ -21123,6 +21143,7 @@
|
|
|
21123
21143
|
exports.convertToMomentDateFormat = convertToMomentDateFormat;
|
|
21124
21144
|
exports.countries = countries;
|
|
21125
21145
|
exports.fallback = fallback;
|
|
21146
|
+
exports.isNullOrUndefined = isNullOrUndefined;
|
|
21126
21147
|
exports.parseItensPickList = parseItensPickList;
|
|
21127
21148
|
exports.ɵ0 = ɵ0$3;
|
|
21128
21149
|
exports.ɵ1 = ɵ1$2;
|