@valtimo/shared 13.47.1 → 13.49.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/assets/core/en.json +557 -79
- package/assets/core/nl.json +523 -71
- package/fesm2022/valtimo-shared.mjs +29 -2
- package/fesm2022/valtimo-shared.mjs.map +1 -1
- package/lib/utils/http-error.utils.d.ts +3 -0
- package/lib/utils/http-error.utils.d.ts.map +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -104,6 +104,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
104
104
|
args: ['track']
|
|
105
105
|
}] } });
|
|
106
106
|
|
|
107
|
+
/*
|
|
108
|
+
* Copyright 2015-2026 Ritense BV, the Netherlands.
|
|
109
|
+
*
|
|
110
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
111
|
+
* you may not use this file except in compliance with the License.
|
|
112
|
+
* You may obtain a copy of the License at
|
|
113
|
+
*
|
|
114
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
115
|
+
*
|
|
116
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
117
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
118
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
|
+
* See the License for the specific language governing permissions and
|
|
120
|
+
* limitations under the License.
|
|
121
|
+
*/
|
|
122
|
+
/** `400 BAD_REQUEST "the message"` — what Spring puts in `detail` for a `ResponseStatusException`. */
|
|
123
|
+
const RESPONSE_STATUS_WRAPPER = /^\d{3}\s+[A-Z_]+\s+"([\s\S]*)"$/;
|
|
124
|
+
/** The server's own sentence, or null when it sent none. Spring wraps a `ResponseStatusException` as `400 BAD_REQUEST "…"`, so the wrapper is unpeeled. */
|
|
125
|
+
const getServerErrorMessage = (error) => {
|
|
126
|
+
const body = error?.error;
|
|
127
|
+
const raw = body?.detail ?? body?.message ?? (typeof body === 'string' ? body : null);
|
|
128
|
+
if (typeof raw !== 'string' || !raw.trim())
|
|
129
|
+
return null;
|
|
130
|
+
const trimmed = raw.trim();
|
|
131
|
+
return (RESPONSE_STATUS_WRAPPER.exec(trimmed)?.[1] ?? trimmed).trim() || null;
|
|
132
|
+
};
|
|
133
|
+
|
|
107
134
|
/*
|
|
108
135
|
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
109
136
|
*
|
|
@@ -1311,7 +1338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
1311
1338
|
* limitations under the License.
|
|
1312
1339
|
*/
|
|
1313
1340
|
const VERSIONS = {
|
|
1314
|
-
frontendLibraries: '13.
|
|
1341
|
+
frontendLibraries: '13.49.0',
|
|
1315
1342
|
};
|
|
1316
1343
|
|
|
1317
1344
|
/*
|
|
@@ -2133,5 +2160,5 @@ const zgwFeaturesGuard = () => {
|
|
|
2133
2160
|
* Generated bundle index. Do not edit.
|
|
2134
2161
|
*/
|
|
2135
2162
|
|
|
2136
|
-
export { BUILDING_BLOCK_MANAGEMENT_TAB_TOKEN, BaseApiService, BasicExtensionPoint, CASE_CONFIGURATION_EXTENSIONS_TOKEN, CASE_MANAGEMENT_TAB_TOKEN, CarouselComponent, CaseListTab, ConfigModule, ConfigService, ConfigurationIssueService, CustomMultiTranslateHttpLoader, CustomMultiTranslateHttpLoaderFactory, DEFAULT_NOTIFICATION_PARAMS, DraftVersionService, EditPermissionsService, EnvironmentService, Extension, ExtensionComponent, ExtensionLoader, FORM_VIEW_MODEL_TOKEN, GlobalNotificationComponent, GlobalNotificationService, HttpLoaderFactory, IKO_TOKEN, INITIALIZERS, IncludeFunction, InterceptorSkip, InterceptorSkipHeader, Language, LocalizationService, MenuIncludeService, MockIconService, MockKeycloakService, MockTranslateService, MultiTranslateHttpLoaderFactory, ROLE_ADMIN, ROLE_DEVELOPER, ROLE_USER, RouterUtils, TagColor, TaskListTab, UploadProvider, UrlUtils, UserSettingsService, VALTIMO_CONFIG, VERSIONS, ValtimoUserIdentity, ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN, ZGW_OBJECT_TYPE_COMPONENT_TOKEN, getBuildingBlockManagementRouteParams, getCaseManagementRouteParams, getCaseManagementRouteParamsAndContext, getContextObservable, getDisplayTypeParametersView, getNotificationObject, sanitizeKey, toKebabCase, validateBsn, zgwFeaturesGuard };
|
|
2163
|
+
export { BUILDING_BLOCK_MANAGEMENT_TAB_TOKEN, BaseApiService, BasicExtensionPoint, CASE_CONFIGURATION_EXTENSIONS_TOKEN, CASE_MANAGEMENT_TAB_TOKEN, CarouselComponent, CaseListTab, ConfigModule, ConfigService, ConfigurationIssueService, CustomMultiTranslateHttpLoader, CustomMultiTranslateHttpLoaderFactory, DEFAULT_NOTIFICATION_PARAMS, DraftVersionService, EditPermissionsService, EnvironmentService, Extension, ExtensionComponent, ExtensionLoader, FORM_VIEW_MODEL_TOKEN, GlobalNotificationComponent, GlobalNotificationService, HttpLoaderFactory, IKO_TOKEN, INITIALIZERS, IncludeFunction, InterceptorSkip, InterceptorSkipHeader, Language, LocalizationService, MenuIncludeService, MockIconService, MockKeycloakService, MockTranslateService, MultiTranslateHttpLoaderFactory, ROLE_ADMIN, ROLE_DEVELOPER, ROLE_USER, RouterUtils, TagColor, TaskListTab, UploadProvider, UrlUtils, UserSettingsService, VALTIMO_CONFIG, VERSIONS, ValtimoUserIdentity, ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN, ZGW_OBJECT_TYPE_COMPONENT_TOKEN, getBuildingBlockManagementRouteParams, getCaseManagementRouteParams, getCaseManagementRouteParamsAndContext, getContextObservable, getDisplayTypeParametersView, getNotificationObject, getServerErrorMessage, sanitizeKey, toKebabCase, validateBsn, zgwFeaturesGuard };
|
|
2137
2164
|
//# sourceMappingURL=valtimo-shared.mjs.map
|