@seniorsistemas/platform-components 5.3.3 → 5.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/seniorsistemas-platform-components.umd.js +15 -1
- package/bundles/seniorsistemas-platform-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-platform-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-platform-components.umd.min.js.map +1 -1
- package/esm2015/modules/advanced-filter/components/form-filter/form-filter.component.js +4 -1
- package/esm2015/modules/permissions/permissions.config.js +1 -1
- package/esm2015/modules/permissions/permissions.service.js +12 -2
- package/esm5/modules/advanced-filter/components/form-filter/form-filter.component.js +4 -1
- package/esm5/modules/permissions/permissions.config.js +1 -1
- package/esm5/modules/permissions/permissions.service.js +12 -2
- package/fesm2015/seniorsistemas-platform-components.js +15 -2
- package/fesm2015/seniorsistemas-platform-components.js.map +1 -1
- package/fesm5/seniorsistemas-platform-components.js +15 -2
- package/fesm5/seniorsistemas-platform-components.js.map +1 -1
- package/modules/permissions/permissions.config.d.ts +9 -0
- package/modules/permissions/permissions.service.d.ts +5 -0
- package/package.json +1 -1
- package/seniorsistemas-platform-components.metadata.json +1 -1
|
@@ -1206,6 +1206,7 @@
|
|
|
1206
1206
|
var _this = this;
|
|
1207
1207
|
if (forceSave === void 0) { forceSave = false; }
|
|
1208
1208
|
var filters = this.parseToUserFilters(this.formFilters);
|
|
1209
|
+
console.log(filters);
|
|
1209
1210
|
var savedFilterSuccess = function () {
|
|
1210
1211
|
if (!forceSave) {
|
|
1211
1212
|
var message = {
|
|
@@ -1259,7 +1260,9 @@
|
|
|
1259
1260
|
return totalFiltersActive;
|
|
1260
1261
|
};
|
|
1261
1262
|
FormFilterComponent.prototype.parseToUserFilters = function (filters) {
|
|
1263
|
+
console.log(filters);
|
|
1262
1264
|
var ids = Object.keys(filters);
|
|
1265
|
+
console.log(ids.toString());
|
|
1263
1266
|
return ids.reduce(function (all, filterId) {
|
|
1264
1267
|
var _a = filters[filterId], type = _a.type, services = _a.services, name = _a.name, value = _a.value, domain = _a.domain, contexts = _a.contexts;
|
|
1265
1268
|
var filterValue = toUserFormat(value, type);
|
|
@@ -1983,6 +1986,13 @@
|
|
|
1983
1986
|
}());
|
|
1984
1987
|
|
|
1985
1988
|
|
|
1989
|
+
/**
|
|
1990
|
+
* Zera o cache de módulo de permissões (`promise`). Usado principalmente em testes para
|
|
1991
|
+
* isolar casos, já que `promise` é um estado compartilhado por todo o processo.
|
|
1992
|
+
*/
|
|
1993
|
+
function resetPermissionsCache() {
|
|
1994
|
+
exports.promise = undefined;
|
|
1995
|
+
}
|
|
1986
1996
|
var PermissionsService = /** @class */ (function () {
|
|
1987
1997
|
function PermissionsService(resources, environment, http, router, messageService, translate) {
|
|
1988
1998
|
this.resources = resources;
|
|
@@ -2047,8 +2057,11 @@
|
|
|
2047
2057
|
return permissions[resourceKey];
|
|
2048
2058
|
}
|
|
2049
2059
|
return permissions;
|
|
2050
|
-
}), operators.catchError(function (
|
|
2060
|
+
}), operators.catchError(function (error) {
|
|
2051
2061
|
exports.promise = undefined;
|
|
2062
|
+
if (_this.environment.propagatePermissionErrors) {
|
|
2063
|
+
return rxjs.throwError(error);
|
|
2064
|
+
}
|
|
2052
2065
|
_this.messageService.add({
|
|
2053
2066
|
severity: 'error',
|
|
2054
2067
|
summary: _this.translate.instant('permission_error_summary'),
|
|
@@ -2725,6 +2738,7 @@
|
|
|
2725
2738
|
exports.USER_INFO = USER_INFO;
|
|
2726
2739
|
exports.XServicesUrl = XServicesUrl;
|
|
2727
2740
|
exports.factory = factory;
|
|
2741
|
+
exports.resetPermissionsCache = resetPermissionsCache;
|
|
2728
2742
|
exports.ɵa = fallback;
|
|
2729
2743
|
exports.ɵb = CalendarOptionsService;
|
|
2730
2744
|
exports.ɵc = FormFilterComponent;
|