@mediusinc/mng-commons 7.0.0-rc.1 → 7.0.0-rc.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/core/index.d.ts +24 -4
- package/fesm2022/mediusinc-mng-commons-core.mjs +108 -72
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +16 -0
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +406 -49
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-DnEnjeJ9.mjs +30 -0
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-DnEnjeJ9.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BuhoFRkG.mjs +2700 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BuhoFRkG.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +31 -3
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +155 -123
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/filter/index.d.ts +13 -0
- package/form/index.d.ts +109 -22
- package/i18n/en.json +12 -1
- package/i18n/sl.json +12 -1
- package/package.json +24 -24
- package/table/api/index.d.ts +2 -2
- package/table/index.d.ts +97 -29
- package/tableview/api/index.d.ts +17 -2
- package/tableview/index.d.ts +7 -1
- package/version-info.json +6 -6
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-0Dtv48mq.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-0Dtv48mq.mjs.map +0 -1
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BsAwyXiN.mjs +0 -2417
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BsAwyXiN.mjs.map +0 -1
package/core/index.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ interface DataListFilter<Value = DataListFilterValueType> {
|
|
|
73
73
|
value?: Value;
|
|
74
74
|
matchMode?: FilterMatchModeExtendedType;
|
|
75
75
|
caseSensitive?: boolean;
|
|
76
|
+
disabled?: boolean;
|
|
76
77
|
}
|
|
77
78
|
interface DataListResult<Item = any> {
|
|
78
79
|
data: Item[];
|
|
@@ -277,6 +278,10 @@ interface FilterState extends Omit<FilterMetadata, 'matchMode'> {
|
|
|
277
278
|
* Case sensitive filter flag.
|
|
278
279
|
*/
|
|
279
280
|
caseSensitive?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Disabled option.
|
|
283
|
+
*/
|
|
284
|
+
disabled?: boolean;
|
|
280
285
|
}
|
|
281
286
|
|
|
282
287
|
type ServiceClassType<S> = Type<S>;
|
|
@@ -706,9 +711,14 @@ interface ErrorCauseToStringOptionsType {
|
|
|
706
711
|
causeAsJson?: boolean;
|
|
707
712
|
}
|
|
708
713
|
|
|
709
|
-
declare function boolean$Attribute(value: unknown): Observable<boolean>;
|
|
710
714
|
declare function booleanOrUndefinedAttribute(value: unknown): boolean | undefined;
|
|
711
|
-
|
|
715
|
+
/**
|
|
716
|
+
* Transforms a value (typically a string) to a boolean. If not boolea or `true` or `false`, fallback is returned.
|
|
717
|
+
*
|
|
718
|
+
* @param value Value to be transformed.
|
|
719
|
+
* @param fallback Fallback (or default) value.
|
|
720
|
+
*/
|
|
721
|
+
declare function booleanWithDefaultAttribute(value: unknown, fallback?: boolean): boolean;
|
|
712
722
|
declare const toObservable: <T>(value: T | Observable<T>) => Observable<T>;
|
|
713
723
|
declare const itemIdToNumber: (value?: IdType) => number;
|
|
714
724
|
declare const itemIdToString: (value?: IdType) => string;
|
|
@@ -730,6 +740,14 @@ declare function fromAngularDateFormatToPrime(ngDateFormat: string): string;
|
|
|
730
740
|
declare function angularDateFormatHasTime(ngDateFormat: string): boolean;
|
|
731
741
|
declare function angularDateFormatHasSeconds(ngDateFormat: string): boolean;
|
|
732
742
|
|
|
743
|
+
type PrimeMessageSeverityType = 'success' | 'info' | 'warn' | 'error' | 'secondary' | 'contrast';
|
|
744
|
+
declare function narrowPrimeMessageSeverity(s: string | undefined | null): PrimeMessageSeverityType | undefined;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Returns true if the current platform is macOS.
|
|
748
|
+
*/
|
|
749
|
+
declare function isMac(): boolean;
|
|
750
|
+
|
|
733
751
|
type ToastMessageOptsType = {
|
|
734
752
|
messageService?: MessageService;
|
|
735
753
|
title?: string;
|
|
@@ -1241,9 +1259,11 @@ type EffectWithDepsValues<T> = {
|
|
|
1241
1259
|
* @param fn Function where dependencies will no longer be tracked.
|
|
1242
1260
|
* @param opts Additional options:
|
|
1243
1261
|
* - firstOnly Executes effect only once, then destroy it.
|
|
1262
|
+
* - injector Executes effect within provided injection context.
|
|
1244
1263
|
*/
|
|
1245
1264
|
declare function effectWithDeps<Input extends readonly unknown[], Params = Input>(deps: readonly [...EffectWithDepsValues<Input>], fn: (deps: Params) => void, opts?: {
|
|
1246
1265
|
firstOnly?: boolean;
|
|
1266
|
+
injector?: Injector;
|
|
1247
1267
|
}): EffectRef;
|
|
1248
1268
|
|
|
1249
1269
|
declare function TypeName(typeName: string): ClassDecorator;
|
|
@@ -1739,5 +1759,5 @@ interface CommonsFeature {
|
|
|
1739
1759
|
}
|
|
1740
1760
|
declare function provideCommons(config?: CommonsModuleConfig, ...features: CommonsFeature[]): (Provider | EnvironmentProviders)[];
|
|
1741
1761
|
|
|
1742
|
-
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, CommonsStorageService, ComponentDirective, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS, LogLevelEnum, LogPublisherConsoleService, LoggerService, NotificationWrapperComponent, ParametrizePipe, PermissionService, PermissionTypeEnum, Permissions, RerenderDirective, RouteBuilder, RoutesBuilder, StyleLevelEnum, StyleSizeEnum, Styles, TemplateDirective, TemplatePipe, TypeName, TypeRegistry, adjustRouteMenuLazyChildrenRouterLinks, angularDateFormatHasSeconds, angularDateFormatHasTime, appendRoutePathToBasePath,
|
|
1743
|
-
export type { ActionData, ActionErrorContextToStringOptionsType, ActionParameters, ArrayItemType, BreadcrumbMenuItem, BreadcrumbType, ClassAttributeDef, ClassFunctionKeyParam1ObjKeyExtendsOfTargetType, ClassFunctionKeysType, ClassFunctionKeysWithAnyArgsAndReturnType, ClassFunctionKeysWithParamAndReturnType, ClassFunctionKeysWithReturnType, ClassOptType, ClassType, ColorScheme, CommonKeyof3, CommonPropsObjType3, CommonsErrorBaseOptions, CommonsFeature, CommonsMenuItem, CommonsModuleConfig, CommonsRouteData, CommonsSerializationConfig, DataListFilter, DataListFilterBaseValueType, DataListFilterFromUrlValueType, DataListFilterValueType, DataListFiltersType, DataListParams, DataListResult, DataListSort, DeepCopyOptions, EnumConstantType, EnumFromProperty, EnumType, EnumValue, EnumeratePipeI18nInternal, ErrorCauseToStringOptionsType, ErrorToStringOptionsBaseType, ErrorToStringOptionsType, ErrorTypes, FilterMatchModeExtendedType, FilterMatchModeType, FilterState, GetterFn, HttpErrorResponseToStringOptionsType, I18nMissingTranslationStrategy, IActionContextValidation, IActionDescriptor, IColumnDescriptor, ICommonsActionError, ICommonsActionErrorContext, ICommonsError, IDataProvider, IEditorDescriptor, IEnumDescriptor, IFilterDescriptor, ILogPublisher, ILoggerService, ILookupDataProvider, ILookupDataProviderLookup, ILookupDescriptor, IModelDescriptor, IPermissionService, ITableDescriptor, ITableviewDescriptor, IUser, IdType, InternalCommonsMenuItem, ItemOrObservable, KeyOfType, KeyofAndOfType, LocalstorageConfigValueType, LogConfig, LogEntry, LookupDataProviderLookupFnType, Nullable, ObjectOptPropType, PrimitiveType, PropertyType, RegistryEnumMap, RegistryTypeMap, RouteBuilderAdjustFnType, ServiceClassOptType, ServiceClassType, SingleOrArrayType, Undefined, VersionConfig, VersionConfigFromConfiguration, VersionConfigFromHttpResource, VersionConfigFromInfo, VersionConfigType, VersionInfo, toIsoStringDateTimeOptsType, toIsoStringTypeOptType };
|
|
1762
|
+
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, CommonsStorageService, ComponentDirective, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS, LogLevelEnum, LogPublisherConsoleService, LoggerService, NotificationWrapperComponent, ParametrizePipe, PermissionService, PermissionTypeEnum, Permissions, RerenderDirective, RouteBuilder, RoutesBuilder, StyleLevelEnum, StyleSizeEnum, Styles, TemplateDirective, TemplatePipe, TypeName, TypeRegistry, adjustRouteMenuLazyChildrenRouterLinks, angularDateFormatHasSeconds, angularDateFormatHasTime, appendRoutePathToBasePath, booleanOrUndefinedAttribute, booleanWithDefaultAttribute, commonsActionErrorContextToString, commonsErrorToString, commonsInitializerProvider, copyDataListParams, createChildrenLazyRoute, createLazyRoute, createRoute, createRouteRedirect, createRoutes, dataListParamsFilterToUrlQuery, dataListParamsFilterValueToUrlString, dataListParamsFiltersToUrlQuery, dataListParamsSortToUrlQuery, dataListParamsToUrlQuery, dateToIsoString, defineReflectEnumName, defineReflectTypeName, doesUrlMatchRouterLink, effectWithDeps, errorCauseToString, errorToString, escapeHtml, escapeHtmlAny, findReflectEnumName, findReflectTypeName, findTemplateByName, flattenObjectKeys, fromAngularDateFormatToPrime, fromAngularNumberFormatToFractions, fromEnumConstantsAsValueArray, fromEnumValuesAsValueArray, fromSubscribeError, fromTableLoadToDataListParams, fromUrlQueryToDataListParams, getEnumConstantName, getEnumConstantNameFromObject, getEnumConstantNames, getEnumConstantNamesFromObject, getEnumConstantValues, getEnumConstantValuesAsNumber, getEnumConstantValuesAsString, getEnumerationI18nBaseKey, getErrorLogLevel, getErrorName, getHttpErrorResponse, getHttpErrorResponseStatus, getHttpErrorResponseStatusText, getI18n, getI18nAsync, getI18nErrorParams, getI18nForError, getI18nTypeGroupKey, getI18nTypeKeyBasePath, getI18nTypeName, getI18nTypeNameAsync, getI18nTypeParams, getI18nTypeParamsAsync, getI18nTypePropertyKey, getI18nTypeTabKey, getObjectGetters, getObjectProperties, getObjectPropertyByPath, httpErrorResponseToString, isHttpErrorResponse, isMac, isPermitted, isRbacPermitted, itemIdToDefined, itemIdToNumber, itemIdToString, mapToDataList, mergeDataListParamsWithDefaults, narrowI18nToTranslation, narrowPrimeMessageSeverity, objectDeepCopy, objectDeepMerge, permissionGuard, populateI18nParams, populateI18nTypeParams, provideCommons, reflectEnumNameKey, reflectTypeNameExists, reflectTypeNameKey, removeRouteEmptyPathSegments, selectEnumerationI18n, selectI18n, stringify, throwError, toEnumerationI18nEnumerate, toObservable, toastMessage, valueToDefined };
|
|
1763
|
+
export type { ActionData, ActionErrorContextToStringOptionsType, ActionParameters, ArrayItemType, BreadcrumbMenuItem, BreadcrumbType, ClassAttributeDef, ClassFunctionKeyParam1ObjKeyExtendsOfTargetType, ClassFunctionKeysType, ClassFunctionKeysWithAnyArgsAndReturnType, ClassFunctionKeysWithParamAndReturnType, ClassFunctionKeysWithReturnType, ClassOptType, ClassType, ColorScheme, CommonKeyof3, CommonPropsObjType3, CommonsErrorBaseOptions, CommonsFeature, CommonsMenuItem, CommonsModuleConfig, CommonsRouteData, CommonsSerializationConfig, DataListFilter, DataListFilterBaseValueType, DataListFilterFromUrlValueType, DataListFilterValueType, DataListFiltersType, DataListParams, DataListResult, DataListSort, DeepCopyOptions, EnumConstantType, EnumFromProperty, EnumType, EnumValue, EnumeratePipeI18nInternal, ErrorCauseToStringOptionsType, ErrorToStringOptionsBaseType, ErrorToStringOptionsType, ErrorTypes, FilterMatchModeExtendedType, FilterMatchModeType, FilterState, GetterFn, HttpErrorResponseToStringOptionsType, I18nMissingTranslationStrategy, IActionContextValidation, IActionDescriptor, IColumnDescriptor, ICommonsActionError, ICommonsActionErrorContext, ICommonsError, IDataProvider, IEditorDescriptor, IEnumDescriptor, IFilterDescriptor, ILogPublisher, ILoggerService, ILookupDataProvider, ILookupDataProviderLookup, ILookupDescriptor, IModelDescriptor, IPermissionService, ITableDescriptor, ITableviewDescriptor, IUser, IdType, InternalCommonsMenuItem, ItemOrObservable, KeyOfType, KeyofAndOfType, LocalstorageConfigValueType, LogConfig, LogEntry, LookupDataProviderLookupFnType, Nullable, ObjectOptPropType, PrimeMessageSeverityType, PrimitiveType, PropertyType, RegistryEnumMap, RegistryTypeMap, RouteBuilderAdjustFnType, ServiceClassOptType, ServiceClassType, SingleOrArrayType, Undefined, VersionConfig, VersionConfigFromConfiguration, VersionConfigFromHttpResource, VersionConfigFromInfo, VersionConfigType, VersionInfo, toIsoStringDateTimeOptsType, toIsoStringTypeOptType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { computed, signal, ChangeDetectionStrategy, Component, effect, untracked, inject, Injector, ElementRef, ApplicationRef, ViewContainerRef, input, booleanAttribute, output, EnvironmentInjector, createComponent, Directive, TemplateRef,
|
|
2
|
+
import { computed, signal, ChangeDetectionStrategy, Component, effect, untracked, inject, Injector, ElementRef, ApplicationRef, ViewContainerRef, input, booleanAttribute, output, EnvironmentInjector, createComponent, Directive, TemplateRef, Pipe, InjectionToken, DestroyRef, Injectable, provideAppInitializer, ErrorHandler } from '@angular/core';
|
|
3
3
|
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { ConfirmDialog } from 'primeng/confirmdialog';
|
|
5
5
|
import { Dialog } from 'primeng/dialog';
|
|
@@ -47,10 +47,10 @@ class NotificationWrapperComponent {
|
|
|
47
47
|
this.dialogNotification.set(null);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: NotificationWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: NotificationWrapperComponent, isStandalone: true, selector: "mng-notification-wrapper", ngImport: i0, template: "<ng-content></ng-content>\n<p-confirmDialog appendTo=\"body\" [baseZIndex]=\"50\"></p-confirmDialog>\n\n<p-toast [baseZIndex]=\"50\">\n <ng-template #message let-message>\n <span [class]=\"'p-toast-message-icon pi ' + getMessageIcon(message)\"></span>\n <div class=\"p-toast-message-text\">\n <div class=\"p-toast-summary\">{{ message.summary }}</div>\n @if (message.detail) {\n <div class=\"p-toast-detail\">{{ message.detail.slice(0, notificationCutoff) + (message.detail.length > notificationCutoff ? '...' : '') }}</div>\n @if (message.detail.length > notificationCutoff) {\n <div (click)=\"onShowNotificationInDialog(message)\" class=\"font-semibold text-sm mt-2 flex items-center\">\n <i class=\"pi pi-chevron-down mr-1\"></i>{{ 'notification.details' | translate }}\n </div>\n }\n }\n </div>\n </ng-template>\n</p-toast>\n\n<p-dialog\n [visible]=\"isDialogNotificationVisible()\"\n (visibleChange)=\"onDialogNotificationVisibilityChange($event)\"\n [styleClass]=\"'mng-dialog mng-dialog-xs mng-message-detail-dialog mng-message-detail-dialog-' + (dialogNotification()?.severity ?? '')\"\n appendTo=\"body\"\n draggable=\"false\"\n modal=\"true\">\n <ng-template #header>\n <span class=\"p-dialog-title font-bold mng-dialog-success\">\n <span [class]=\"'mr-2 pi ' + dialogNotificationIconClass()\"></span>\n {{ dialogNotification()?.summary ?? '' }}\n </span>\n </ng-template>\n <div class=\"mng-notification-details\">\n {{ dialogNotification()?.detail ?? '' }}\n </div>\n</p-dialog>\n", styles: [".mng-notification-details{white-space:pre-wrap;word-wrap:break-word}\n"], dependencies: [{ kind: "component", type: ConfirmDialog, selector: "p-confirmDialog, p-confirmdialog, p-confirm-dialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "closeAriaLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "modal", "visible", "position", "draggable"], outputs: ["onHide"] }, { kind: "component", type: Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: NotificationWrapperComponent, decorators: [{
|
|
54
54
|
type: Component,
|
|
55
55
|
args: [{ selector: 'mng-notification-wrapper', imports: [ConfirmDialog, TranslatePipe, Dialog, Toast], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<p-confirmDialog appendTo=\"body\" [baseZIndex]=\"50\"></p-confirmDialog>\n\n<p-toast [baseZIndex]=\"50\">\n <ng-template #message let-message>\n <span [class]=\"'p-toast-message-icon pi ' + getMessageIcon(message)\"></span>\n <div class=\"p-toast-message-text\">\n <div class=\"p-toast-summary\">{{ message.summary }}</div>\n @if (message.detail) {\n <div class=\"p-toast-detail\">{{ message.detail.slice(0, notificationCutoff) + (message.detail.length > notificationCutoff ? '...' : '') }}</div>\n @if (message.detail.length > notificationCutoff) {\n <div (click)=\"onShowNotificationInDialog(message)\" class=\"font-semibold text-sm mt-2 flex items-center\">\n <i class=\"pi pi-chevron-down mr-1\"></i>{{ 'notification.details' | translate }}\n </div>\n }\n }\n </div>\n </ng-template>\n</p-toast>\n\n<p-dialog\n [visible]=\"isDialogNotificationVisible()\"\n (visibleChange)=\"onDialogNotificationVisibilityChange($event)\"\n [styleClass]=\"'mng-dialog mng-dialog-xs mng-message-detail-dialog mng-message-detail-dialog-' + (dialogNotification()?.severity ?? '')\"\n appendTo=\"body\"\n draggable=\"false\"\n modal=\"true\">\n <ng-template #header>\n <span class=\"p-dialog-title font-bold mng-dialog-success\">\n <span [class]=\"'mr-2 pi ' + dialogNotificationIconClass()\"></span>\n {{ dialogNotification()?.summary ?? '' }}\n </span>\n </ng-template>\n <div class=\"mng-notification-details\">\n {{ dialogNotification()?.detail ?? '' }}\n </div>\n</p-dialog>\n", styles: [".mng-notification-details{white-space:pre-wrap;word-wrap:break-word}\n"] }]
|
|
56
56
|
}] });
|
|
@@ -343,11 +343,13 @@ function fromTableLoadToDataListParams(event) {
|
|
|
343
343
|
filter.value = eventFilter[0].value;
|
|
344
344
|
filter.matchMode = eventFilter[0].matchMode;
|
|
345
345
|
filter.caseSensitive = eventFilter[0].caseSensitive;
|
|
346
|
+
filter.disabled = eventFilter[0].disabled;
|
|
346
347
|
}
|
|
347
348
|
else if (eventFilter !== undefined) {
|
|
348
349
|
filter.value = eventFilter.value;
|
|
349
350
|
filter.matchMode = eventFilter.matchMode;
|
|
350
351
|
filter.caseSensitive = eventFilter.caseSensitive;
|
|
352
|
+
filter.disabled = eventFilter.disabled;
|
|
351
353
|
}
|
|
352
354
|
// handle search case sensitivity to be also written on searchCaseSensitive
|
|
353
355
|
if (key === 'global' && typeof params.search === 'string' && filter.caseSensitive !== undefined) {
|
|
@@ -417,7 +419,8 @@ function dataListParamsToUrlQuery(params, defaults = {
|
|
|
417
419
|
})) || // handle arrays
|
|
418
420
|
defaultFilter.value === paramFilter.value) &&
|
|
419
421
|
defaultFilter.matchMode === paramFilter.matchMode &&
|
|
420
|
-
(defaultFilter.caseSensitive ?? false) === (paramFilter.caseSensitive ?? false)
|
|
422
|
+
(defaultFilter.caseSensitive ?? false) === (paramFilter.caseSensitive ?? false) &&
|
|
423
|
+
defaultFilter.disabled === paramFilter.disabled) {
|
|
421
424
|
return;
|
|
422
425
|
}
|
|
423
426
|
if (paramFilter.value == null &&
|
|
@@ -532,9 +535,10 @@ function dataListParamsFilterToUrlQuery(paramFilter, allowNull = false) {
|
|
|
532
535
|
if ([FilterMatchMode.In, FilterMatchMode.NotIn, FilterMatchMode.Between].indexOf(matchMode) === -1 && Array.isArray(filterValueAsArray)) {
|
|
533
536
|
throw new CommonsInternalError(`Filter match mode ${matchMode} must not be array: ${paramFilter.value}`);
|
|
534
537
|
}
|
|
538
|
+
const disabledPrefix = paramFilter?.disabled ? 'd:' : '';
|
|
535
539
|
const noVal = paramFilter.matchMode === FilterMatchMode.Exists || paramFilter.matchMode === FilterMatchMode.DoesNotExist;
|
|
536
540
|
const urlValuePart = noVal ? '' : `:${dataListParamsFilterValueToUrlString(filterValueAsArray ?? paramFilter.value, allowNull)}`;
|
|
537
|
-
return `${paramFilter.caseSensitive ? 'cs:' : paramFilter.caseSensitive === false ? 'ci:' : ''}${FilterMatchMode.getAbbreviation(matchMode) ?? matchMode}${urlValuePart}`;
|
|
541
|
+
return `${disabledPrefix}${paramFilter.caseSensitive ? 'cs:' : paramFilter.caseSensitive === false ? 'ci:' : ''}${FilterMatchMode.getAbbreviation(matchMode) ?? matchMode}${urlValuePart}`;
|
|
538
542
|
}
|
|
539
543
|
/**
|
|
540
544
|
* Converts URL query parameters to a DataListParams object.
|
|
@@ -607,6 +611,12 @@ function fromUrlQueryToDataListParams(urlParams, opts) {
|
|
|
607
611
|
params.filters[filterKey] = { value: null };
|
|
608
612
|
return;
|
|
609
613
|
}
|
|
614
|
+
// disabled
|
|
615
|
+
let disabled = false;
|
|
616
|
+
if (filterParts[partIdx] === 'd') {
|
|
617
|
+
disabled = true;
|
|
618
|
+
partIdx++;
|
|
619
|
+
}
|
|
610
620
|
// case sensitive
|
|
611
621
|
let caseSensitive = undefined;
|
|
612
622
|
if (filterParts[partIdx] === 'cs' || filterParts[partIdx] === 'ci') {
|
|
@@ -714,7 +724,7 @@ function fromUrlQueryToDataListParams(urlParams, opts) {
|
|
|
714
724
|
if (!params.filters) {
|
|
715
725
|
params.filters = {};
|
|
716
726
|
}
|
|
717
|
-
params.filters[filterKey] = { value: value, matchMode: matchMode, caseSensitive: caseSensitive };
|
|
727
|
+
params.filters[filterKey] = { value: value, matchMode: matchMode, caseSensitive: caseSensitive, disabled: disabled };
|
|
718
728
|
}
|
|
719
729
|
});
|
|
720
730
|
return params;
|
|
@@ -800,6 +810,7 @@ class DataProviderInst {
|
|
|
800
810
|
* @param fn Function where dependencies will no longer be tracked.
|
|
801
811
|
* @param opts Additional options:
|
|
802
812
|
* - firstOnly Executes effect only once, then destroy it.
|
|
813
|
+
* - injector Executes effect within provided injection context.
|
|
803
814
|
*/
|
|
804
815
|
function effectWithDeps(deps, fn, opts) {
|
|
805
816
|
let execCnt = 0;
|
|
@@ -815,7 +826,7 @@ function effectWithDeps(deps, fn, opts) {
|
|
|
815
826
|
untracked(() => {
|
|
816
827
|
fn(depsValues);
|
|
817
828
|
});
|
|
818
|
-
}, ...(ngDevMode ? [{ debugName: "ref" }] : []));
|
|
829
|
+
}, ...(ngDevMode ? [{ debugName: "ref", injector: opts?.injector }] : [{ injector: opts?.injector }]));
|
|
819
830
|
return ref;
|
|
820
831
|
}
|
|
821
832
|
|
|
@@ -870,15 +881,15 @@ class ComponentDirective {
|
|
|
870
881
|
}
|
|
871
882
|
});
|
|
872
883
|
}
|
|
873
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
874
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ComponentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
885
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: ComponentDirective, isStandalone: true, selector: "[mngComponent]", inputs: { component: { classPropertyName: "component", publicName: "mngComponent", isSignal: true, isRequired: false, transformFunction: null }, componentIt: { classPropertyName: "componentIt", publicName: "injectionToken", isSignal: true, isRequired: false, transformFunction: null }, inputs: { classPropertyName: "inputs", publicName: "inputs", isSignal: true, isRequired: false, transformFunction: null }, attachToHost: { classPropertyName: "attachToHost", publicName: "attachToHost", isSignal: true, isRequired: false, transformFunction: null }, parentInjector: { classPropertyName: "parentInjector", publicName: "parentInjector", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { instanceCreated: "instanceCreated" }, ngImport: i0 }); }
|
|
875
886
|
}
|
|
876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ComponentDirective, decorators: [{
|
|
877
888
|
type: Directive,
|
|
878
889
|
args: [{
|
|
879
890
|
selector: '[mngComponent]'
|
|
880
891
|
}]
|
|
881
|
-
}], ctorParameters: () => [] });
|
|
892
|
+
}], ctorParameters: () => [], propDecorators: { component: [{ type: i0.Input, args: [{ isSignal: true, alias: "mngComponent", required: false }] }], componentIt: [{ type: i0.Input, args: [{ isSignal: true, alias: "injectionToken", required: false }] }], inputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputs", required: false }] }], attachToHost: [{ type: i0.Input, args: [{ isSignal: true, alias: "attachToHost", required: false }] }], parentInjector: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentInjector", required: false }] }], instanceCreated: [{ type: i0.Output, args: ["instanceCreated"] }] } });
|
|
882
893
|
|
|
883
894
|
class RerenderDirective {
|
|
884
895
|
constructor() {
|
|
@@ -890,24 +901,24 @@ class RerenderDirective {
|
|
|
890
901
|
this.viewContainerRef.createEmbeddedView(this.templateRef);
|
|
891
902
|
});
|
|
892
903
|
}
|
|
893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
894
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RerenderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
905
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: RerenderDirective, isStandalone: true, selector: "[mngRerender]", inputs: { mngRerender: { classPropertyName: "mngRerender", publicName: "mngRerender", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
895
906
|
}
|
|
896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: RerenderDirective, decorators: [{
|
|
897
908
|
type: Directive,
|
|
898
909
|
args: [{
|
|
899
910
|
selector: '[mngRerender]'
|
|
900
911
|
}]
|
|
901
|
-
}], ctorParameters: () => [] });
|
|
912
|
+
}], ctorParameters: () => [], propDecorators: { mngRerender: [{ type: i0.Input, args: [{ isSignal: true, alias: "mngRerender", required: true }] }] } });
|
|
902
913
|
|
|
903
914
|
class TemplateDirective {
|
|
904
915
|
constructor() {
|
|
905
916
|
this.template = inject((TemplateRef));
|
|
906
917
|
}
|
|
907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
908
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
918
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
919
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: TemplateDirective, isStandalone: true, ngImport: i0 }); }
|
|
909
920
|
}
|
|
910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TemplateDirective, decorators: [{
|
|
911
922
|
type: Directive
|
|
912
923
|
}] });
|
|
913
924
|
|
|
@@ -1630,14 +1641,17 @@ class CommonsErrorHandler {
|
|
|
1630
1641
|
}
|
|
1631
1642
|
}
|
|
1632
1643
|
|
|
1633
|
-
function boolean$Attribute(value) {
|
|
1634
|
-
return isObservable(value) ? value : of(booleanAttribute(value));
|
|
1635
|
-
}
|
|
1636
1644
|
function booleanOrUndefinedAttribute(value) {
|
|
1637
1645
|
return typeof value === 'boolean' ? value : value == null ? undefined : value !== 'false';
|
|
1638
1646
|
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1647
|
+
/**
|
|
1648
|
+
* Transforms a value (typically a string) to a boolean. If not boolea or `true` or `false`, fallback is returned.
|
|
1649
|
+
*
|
|
1650
|
+
* @param value Value to be transformed.
|
|
1651
|
+
* @param fallback Fallback (or default) value.
|
|
1652
|
+
*/
|
|
1653
|
+
function booleanWithDefaultAttribute(value, fallback = false) {
|
|
1654
|
+
return typeof value === 'boolean' ? value : value !== 'false' && value !== 'true' ? fallback : value !== 'false';
|
|
1641
1655
|
}
|
|
1642
1656
|
const toObservable = (value) => {
|
|
1643
1657
|
return isObservable(value) ? value : of(value);
|
|
@@ -1682,6 +1696,30 @@ const valueToDefined = (value) => {
|
|
|
1682
1696
|
}
|
|
1683
1697
|
};
|
|
1684
1698
|
|
|
1699
|
+
function narrowPrimeMessageSeverity(s) {
|
|
1700
|
+
switch (s) {
|
|
1701
|
+
case 'success':
|
|
1702
|
+
case 'info':
|
|
1703
|
+
case 'warn':
|
|
1704
|
+
case 'error':
|
|
1705
|
+
case 'secondary':
|
|
1706
|
+
case 'contrast':
|
|
1707
|
+
return s;
|
|
1708
|
+
default:
|
|
1709
|
+
return undefined;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Returns true if the current platform is macOS.
|
|
1715
|
+
*/
|
|
1716
|
+
function isMac() {
|
|
1717
|
+
// if not in browser (SSR)
|
|
1718
|
+
if (typeof navigator === 'undefined')
|
|
1719
|
+
return false;
|
|
1720
|
+
return navigator.userAgent.includes('Mac');
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1685
1723
|
/**
|
|
1686
1724
|
* Displays a toast notification message with a specified severity level and optional customization. Presets the life of message and requires message.
|
|
1687
1725
|
*
|
|
@@ -1949,10 +1987,10 @@ class BooleanPipe {
|
|
|
1949
1987
|
return value;
|
|
1950
1988
|
}
|
|
1951
1989
|
}
|
|
1952
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1953
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
1990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BooleanPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1991
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: BooleanPipe, isStandalone: true, name: "mngBoolean" }); }
|
|
1954
1992
|
}
|
|
1955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BooleanPipe, decorators: [{
|
|
1956
1994
|
type: Pipe,
|
|
1957
1995
|
args: [{
|
|
1958
1996
|
name: 'mngBoolean',
|
|
@@ -1969,10 +2007,10 @@ class ClassMapPipe {
|
|
|
1969
2007
|
return className ?? '';
|
|
1970
2008
|
}
|
|
1971
2009
|
}
|
|
1972
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1973
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2010
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ClassMapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2011
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: ClassMapPipe, isStandalone: true, name: "mngClassMap" }); }
|
|
1974
2012
|
}
|
|
1975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ClassMapPipe, decorators: [{
|
|
1976
2014
|
type: Pipe,
|
|
1977
2015
|
args: [{
|
|
1978
2016
|
name: 'mngClassMap',
|
|
@@ -2062,10 +2100,10 @@ class EnumPipe {
|
|
|
2062
2100
|
}
|
|
2063
2101
|
return i18nPath ? `${i18nPath}.${enumValue}` : enumValue;
|
|
2064
2102
|
}
|
|
2065
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2066
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2104
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: EnumPipe, isStandalone: true, name: "mngEnum" }); }
|
|
2067
2105
|
}
|
|
2068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumPipe, decorators: [{
|
|
2069
2107
|
type: Pipe,
|
|
2070
2108
|
args: [{
|
|
2071
2109
|
name: 'mngEnum',
|
|
@@ -2083,10 +2121,10 @@ class JsonPathPipe {
|
|
|
2083
2121
|
transform(value, path = '') {
|
|
2084
2122
|
return getObjectPropertyByPath(value, path);
|
|
2085
2123
|
}
|
|
2086
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2087
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: JsonPathPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2125
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: JsonPathPipe, isStandalone: true, name: "mngJsonPath" }); }
|
|
2088
2126
|
}
|
|
2089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: JsonPathPipe, decorators: [{
|
|
2090
2128
|
type: Pipe,
|
|
2091
2129
|
args: [{
|
|
2092
2130
|
name: 'mngJsonPath',
|
|
@@ -2112,10 +2150,10 @@ class EnumeratePipe {
|
|
|
2112
2150
|
})
|
|
2113
2151
|
.join(valueSeparator);
|
|
2114
2152
|
}
|
|
2115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2116
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumeratePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2154
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: EnumeratePipe, isStandalone: true, name: "mngEnumerate" }); }
|
|
2117
2155
|
}
|
|
2118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumeratePipe, decorators: [{
|
|
2119
2157
|
type: Pipe,
|
|
2120
2158
|
args: [{
|
|
2121
2159
|
name: 'mngEnumerate',
|
|
@@ -2156,10 +2194,10 @@ class EnumerateAsyncPipe {
|
|
|
2156
2194
|
}))));
|
|
2157
2195
|
}), map(i => i.join(valueSeparator)));
|
|
2158
2196
|
}
|
|
2159
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2160
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumerateAsyncPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2198
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: EnumerateAsyncPipe, isStandalone: true, name: "mngEnumerateAsync" }); }
|
|
2161
2199
|
}
|
|
2162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumerateAsyncPipe, decorators: [{
|
|
2163
2201
|
type: Pipe,
|
|
2164
2202
|
args: [{
|
|
2165
2203
|
name: 'mngEnumerateAsync',
|
|
@@ -2174,10 +2212,10 @@ class GetterPipe {
|
|
|
2174
2212
|
}
|
|
2175
2213
|
return value;
|
|
2176
2214
|
}
|
|
2177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2178
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GetterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2216
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: GetterPipe, isStandalone: true, name: "mngGetter" }); }
|
|
2179
2217
|
}
|
|
2180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GetterPipe, decorators: [{
|
|
2181
2219
|
type: Pipe,
|
|
2182
2220
|
args: [{
|
|
2183
2221
|
name: 'mngGetter',
|
|
@@ -2189,10 +2227,10 @@ class I18nPropertyPipe {
|
|
|
2189
2227
|
transform(property, model) {
|
|
2190
2228
|
return getI18nTypePropertyKey(model.i18nBaseKey, property);
|
|
2191
2229
|
}
|
|
2192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2193
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: I18nPropertyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2231
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: I18nPropertyPipe, isStandalone: true, name: "mngI18nProperty" }); }
|
|
2194
2232
|
}
|
|
2195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: I18nPropertyPipe, decorators: [{
|
|
2196
2234
|
type: Pipe,
|
|
2197
2235
|
args: [{
|
|
2198
2236
|
name: 'mngI18nProperty',
|
|
@@ -2276,10 +2314,10 @@ class ParametrizePipe {
|
|
|
2276
2314
|
return value ?? subs;
|
|
2277
2315
|
});
|
|
2278
2316
|
}
|
|
2279
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2280
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2317
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ParametrizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2318
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: ParametrizePipe, isStandalone: true, name: "mngParametrize" }); }
|
|
2281
2319
|
}
|
|
2282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ParametrizePipe, decorators: [{
|
|
2283
2321
|
type: Pipe,
|
|
2284
2322
|
args: [{
|
|
2285
2323
|
name: 'mngParametrize',
|
|
@@ -2297,10 +2335,10 @@ class TemplatePipe {
|
|
|
2297
2335
|
}
|
|
2298
2336
|
return value;
|
|
2299
2337
|
}
|
|
2300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2301
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.
|
|
2338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TemplatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2339
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: TemplatePipe, isStandalone: true, name: "template" }); }
|
|
2302
2340
|
}
|
|
2303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TemplatePipe, decorators: [{
|
|
2304
2342
|
type: Pipe,
|
|
2305
2343
|
args: [{
|
|
2306
2344
|
name: 'template',
|
|
@@ -2504,8 +2542,6 @@ class CommonsService {
|
|
|
2504
2542
|
this._appDataLocale = signal(this.initAppDataLocale(), ...(ngDevMode ? [{ debugName: "_appDataLocale" }] : []));
|
|
2505
2543
|
this.appDataLocale = computed(() => this._appDataLocale(), ...(ngDevMode ? [{ debugName: "appDataLocale" }] : []));
|
|
2506
2544
|
this.appVersion = signal(this.moduleConfig?.app?.version, ...(ngDevMode ? [{ debugName: "appVersion" }] : []));
|
|
2507
|
-
// ripple
|
|
2508
|
-
this.primengConfig.ripple.set(true);
|
|
2509
2545
|
effectWithDeps([this.appLocales, this.appDataLocales], ([appLocales, appDataLocales]) => {
|
|
2510
2546
|
if (appLocales) {
|
|
2511
2547
|
this.setAppLocale(this.initAppLocale());
|
|
@@ -2732,10 +2768,10 @@ class CommonsService {
|
|
|
2732
2768
|
titlePieces.push(this.translate.instant('app.name'));
|
|
2733
2769
|
return titlePieces.join(' - ');
|
|
2734
2770
|
}
|
|
2735
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2736
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2771
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2772
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsService }); }
|
|
2737
2773
|
}
|
|
2738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsService, decorators: [{
|
|
2739
2775
|
type: Injectable
|
|
2740
2776
|
}], ctorParameters: () => [] });
|
|
2741
2777
|
|
|
@@ -2929,10 +2965,10 @@ class PermissionService {
|
|
|
2929
2965
|
}
|
|
2930
2966
|
return serviceInstance.isActionVisible(actionCtx, route, state);
|
|
2931
2967
|
}
|
|
2932
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2933
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2969
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PermissionService }); }
|
|
2934
2970
|
}
|
|
2935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PermissionService, decorators: [{
|
|
2936
2972
|
type: Injectable
|
|
2937
2973
|
}] });
|
|
2938
2974
|
|
|
@@ -3808,10 +3844,10 @@ class CommonsRouterService {
|
|
|
3808
3844
|
getModulePathFromRouterLink(path) {
|
|
3809
3845
|
return ('/' + (Array.isArray(path) ? path.join('/') : path)).replace(/\/\//g, '/');
|
|
3810
3846
|
}
|
|
3811
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3812
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3847
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3848
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsRouterService }); }
|
|
3813
3849
|
}
|
|
3814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsRouterService, decorators: [{
|
|
3815
3851
|
type: Injectable
|
|
3816
3852
|
}], ctorParameters: () => [] });
|
|
3817
3853
|
|
|
@@ -3907,10 +3943,10 @@ class CommonsInitService {
|
|
|
3907
3943
|
return throwError$1(() => err);
|
|
3908
3944
|
}));
|
|
3909
3945
|
}
|
|
3910
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3911
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3947
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsInitService }); }
|
|
3912
3948
|
}
|
|
3913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsInitService, decorators: [{
|
|
3914
3950
|
type: Injectable
|
|
3915
3951
|
}] });
|
|
3916
3952
|
|
|
@@ -3935,10 +3971,10 @@ class CommonsStorageService {
|
|
|
3935
3971
|
removeItem(type, key) {
|
|
3936
3972
|
this.localStorage.removeItem(this.buildLocalStorageKey(type, key));
|
|
3937
3973
|
}
|
|
3938
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3939
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3974
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3975
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsStorageService }); }
|
|
3940
3976
|
}
|
|
3941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsStorageService, decorators: [{
|
|
3942
3978
|
type: Injectable
|
|
3943
3979
|
}] });
|
|
3944
3980
|
|
|
@@ -4040,5 +4076,5 @@ function provideCommons(config, ...features) {
|
|
|
4040
4076
|
* Generated bundle index. Do not edit.
|
|
4041
4077
|
*/
|
|
4042
4078
|
|
|
4043
|
-
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, CommonsStorageService, ComponentDirective, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS, LogLevelEnum, LogPublisherConsoleService, LoggerService, NotificationWrapperComponent, ParametrizePipe, PermissionService, PermissionTypeEnum, Permissions, RerenderDirective, RouteBuilder, RoutesBuilder, StyleLevelEnum, StyleSizeEnum, Styles, TemplateDirective, TemplatePipe, TypeName, TypeRegistry, adjustRouteMenuLazyChildrenRouterLinks, angularDateFormatHasSeconds, angularDateFormatHasTime, appendRoutePathToBasePath,
|
|
4079
|
+
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, CommonsStorageService, ComponentDirective, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS, LogLevelEnum, LogPublisherConsoleService, LoggerService, NotificationWrapperComponent, ParametrizePipe, PermissionService, PermissionTypeEnum, Permissions, RerenderDirective, RouteBuilder, RoutesBuilder, StyleLevelEnum, StyleSizeEnum, Styles, TemplateDirective, TemplatePipe, TypeName, TypeRegistry, adjustRouteMenuLazyChildrenRouterLinks, angularDateFormatHasSeconds, angularDateFormatHasTime, appendRoutePathToBasePath, booleanOrUndefinedAttribute, booleanWithDefaultAttribute, commonsActionErrorContextToString, commonsErrorToString, commonsInitializerProvider, copyDataListParams, createChildrenLazyRoute, createLazyRoute, createRoute, createRouteRedirect, createRoutes, dataListParamsFilterToUrlQuery, dataListParamsFilterValueToUrlString, dataListParamsFiltersToUrlQuery, dataListParamsSortToUrlQuery, dataListParamsToUrlQuery, dateToIsoString, defineReflectEnumName, defineReflectTypeName, doesUrlMatchRouterLink, effectWithDeps, errorCauseToString, errorToString, escapeHtml, escapeHtmlAny, findReflectEnumName, findReflectTypeName, findTemplateByName, flattenObjectKeys, fromAngularDateFormatToPrime, fromAngularNumberFormatToFractions, fromEnumConstantsAsValueArray, fromEnumValuesAsValueArray, fromSubscribeError, fromTableLoadToDataListParams, fromUrlQueryToDataListParams, getEnumConstantName, getEnumConstantNameFromObject, getEnumConstantNames, getEnumConstantNamesFromObject, getEnumConstantValues, getEnumConstantValuesAsNumber, getEnumConstantValuesAsString, getEnumerationI18nBaseKey, getErrorLogLevel, getErrorName, getHttpErrorResponse, getHttpErrorResponseStatus, getHttpErrorResponseStatusText, getI18n, getI18nAsync, getI18nErrorParams, getI18nForError, getI18nTypeGroupKey, getI18nTypeKeyBasePath, getI18nTypeName, getI18nTypeNameAsync, getI18nTypeParams, getI18nTypeParamsAsync, getI18nTypePropertyKey, getI18nTypeTabKey, getObjectGetters, getObjectProperties, getObjectPropertyByPath, httpErrorResponseToString, isHttpErrorResponse, isMac, isPermitted, isRbacPermitted, itemIdToDefined, itemIdToNumber, itemIdToString, mapToDataList, mergeDataListParamsWithDefaults, narrowI18nToTranslation, narrowPrimeMessageSeverity, objectDeepCopy, objectDeepMerge, permissionGuard, populateI18nParams, populateI18nTypeParams, provideCommons, reflectEnumNameKey, reflectTypeNameExists, reflectTypeNameKey, removeRouteEmptyPathSegments, selectEnumerationI18n, selectI18n, stringify, throwError, toEnumerationI18nEnumerate, toObservable, toastMessage, valueToDefined };
|
|
4044
4080
|
//# sourceMappingURL=mediusinc-mng-commons-core.mjs.map
|