@mediusinc/mng-commons 7.0.0-rc.0 → 7.0.0-rc.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/core/index.d.ts +31 -11
- package/fesm2022/mediusinc-mng-commons-core.mjs +109 -77
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +36 -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 +475 -35
- 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 +0 -2
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs +30 -0
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.mjs +2700 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.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 +47 -6
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +189 -161
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/filter/index.d.ts +29 -3
- package/form/index.d.ts +143 -14
- package/i18n/en.json +17 -3
- package/i18n/sl.json +17 -3
- package/package.json +24 -24
- package/table/api/index.d.ts +4 -4
- package/table/index.d.ts +248 -145
- package/tableview/api/index.d.ts +18 -5
- package/tableview/index.d.ts +31 -34
- package/version-info.json +6 -6
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs.map +0 -1
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs +0 -2142
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs.map +0 -1
package/core/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ActivatedRoute, Params, ActivatedRouteSnapshot, RouterStateSnapshot, Qu
|
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Type, InjectionToken, Injector, ComponentRef, TemplateRef, ErrorHandler, WritableSignal, Signal, PipeTransform, EffectRef, Provider, EnvironmentProviders } from '@angular/core';
|
|
6
|
+
import { Type, InjectionToken, Injector, ComponentRef, TemplateRef, InputSignal, ErrorHandler, WritableSignal, Signal, PipeTransform, EffectRef, Provider, EnvironmentProviders } from '@angular/core';
|
|
7
7
|
import { ToastMessageOptions, FilterMetadata, MessageService, MenuItem } from 'primeng/api';
|
|
8
8
|
import { TableLazyLoadEvent } from 'primeng/table';
|
|
9
9
|
import { HttpErrorResponse, HttpClient, HttpBackend } from '@angular/common/http';
|
|
@@ -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[];
|
|
@@ -260,7 +261,7 @@ declare function copyDataListParams<Sorts = string, Filters extends keyof any =
|
|
|
260
261
|
*/
|
|
261
262
|
declare function dataListParamsFilterValueToUrlString(value: unknown, allowNull?: boolean): string;
|
|
262
263
|
|
|
263
|
-
interface
|
|
264
|
+
interface FilterState extends Omit<FilterMetadata, 'matchMode'> {
|
|
264
265
|
/**
|
|
265
266
|
* The value used for display.
|
|
266
267
|
*/
|
|
@@ -277,6 +278,10 @@ interface CommonsFilterMetadata 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>;
|
|
@@ -406,11 +411,11 @@ declare class RerenderDirective {
|
|
|
406
411
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RerenderDirective, "[mngRerender]", never, { "mngRerender": { "alias": "mngRerender"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
407
412
|
}
|
|
408
413
|
|
|
409
|
-
declare class TemplateDirective {
|
|
414
|
+
declare abstract class TemplateDirective<NameType = string, Context = any> {
|
|
410
415
|
readonly template: TemplateRef<any>;
|
|
411
|
-
readonly name:
|
|
412
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
|
|
413
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective,
|
|
416
|
+
abstract readonly name: InputSignal<NameType>;
|
|
417
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective<any, any>, never>;
|
|
418
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
414
419
|
}
|
|
415
420
|
|
|
416
421
|
interface EnumValue {
|
|
@@ -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;
|
|
@@ -935,7 +953,7 @@ declare function escapeHtmlAny(value?: any): any;
|
|
|
935
953
|
*/
|
|
936
954
|
declare function stringify(value: any): string;
|
|
937
955
|
|
|
938
|
-
declare function findTemplateByName(templates: TemplateDirective[], name:
|
|
956
|
+
declare function findTemplateByName<NameType = string>(templates: TemplateDirective<NameType>[], name: NameType): TemplateRef<any> | null;
|
|
939
957
|
|
|
940
958
|
declare function getI18nAsync(translate: TranslateService, params?: any, ...keys: Array<string>): Observable<string | null>;
|
|
941
959
|
declare function getI18n(translate: TranslateService, params?: any, ...keys: Array<string>): string | null;
|
|
@@ -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,
|
|
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,29 +901,25 @@ 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
|
-
this.name = input.required(...(ngDevMode ? [{ debugName: "name", alias: 'mngTemplate' }] : [{ alias: 'mngTemplate' }]));
|
|
907
917
|
}
|
|
908
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
909
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
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 }); }
|
|
910
920
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
912
|
-
type: Directive
|
|
913
|
-
args: [{
|
|
914
|
-
selector: '[mngTemplate]'
|
|
915
|
-
}]
|
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TemplateDirective, decorators: [{
|
|
922
|
+
type: Directive
|
|
916
923
|
}] });
|
|
917
924
|
|
|
918
925
|
/**
|
|
@@ -1634,14 +1641,17 @@ class CommonsErrorHandler {
|
|
|
1634
1641
|
}
|
|
1635
1642
|
}
|
|
1636
1643
|
|
|
1637
|
-
function boolean$Attribute(value) {
|
|
1638
|
-
return isObservable(value) ? value : of(booleanAttribute(value));
|
|
1639
|
-
}
|
|
1640
1644
|
function booleanOrUndefinedAttribute(value) {
|
|
1641
1645
|
return typeof value === 'boolean' ? value : value == null ? undefined : value !== 'false';
|
|
1642
1646
|
}
|
|
1643
|
-
|
|
1644
|
-
|
|
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';
|
|
1645
1655
|
}
|
|
1646
1656
|
const toObservable = (value) => {
|
|
1647
1657
|
return isObservable(value) ? value : of(value);
|
|
@@ -1686,6 +1696,30 @@ const valueToDefined = (value) => {
|
|
|
1686
1696
|
}
|
|
1687
1697
|
};
|
|
1688
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
|
+
|
|
1689
1723
|
/**
|
|
1690
1724
|
* Displays a toast notification message with a specified severity level and optional customization. Presets the life of message and requires message.
|
|
1691
1725
|
*
|
|
@@ -1953,10 +1987,10 @@ class BooleanPipe {
|
|
|
1953
1987
|
return value;
|
|
1954
1988
|
}
|
|
1955
1989
|
}
|
|
1956
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1957
|
-
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" }); }
|
|
1958
1992
|
}
|
|
1959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: BooleanPipe, decorators: [{
|
|
1960
1994
|
type: Pipe,
|
|
1961
1995
|
args: [{
|
|
1962
1996
|
name: 'mngBoolean',
|
|
@@ -1973,10 +2007,10 @@ class ClassMapPipe {
|
|
|
1973
2007
|
return className ?? '';
|
|
1974
2008
|
}
|
|
1975
2009
|
}
|
|
1976
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1977
|
-
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" }); }
|
|
1978
2012
|
}
|
|
1979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ClassMapPipe, decorators: [{
|
|
1980
2014
|
type: Pipe,
|
|
1981
2015
|
args: [{
|
|
1982
2016
|
name: 'mngClassMap',
|
|
@@ -2066,10 +2100,10 @@ class EnumPipe {
|
|
|
2066
2100
|
}
|
|
2067
2101
|
return i18nPath ? `${i18nPath}.${enumValue}` : enumValue;
|
|
2068
2102
|
}
|
|
2069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2070
|
-
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" }); }
|
|
2071
2105
|
}
|
|
2072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumPipe, decorators: [{
|
|
2073
2107
|
type: Pipe,
|
|
2074
2108
|
args: [{
|
|
2075
2109
|
name: 'mngEnum',
|
|
@@ -2087,10 +2121,10 @@ class JsonPathPipe {
|
|
|
2087
2121
|
transform(value, path = '') {
|
|
2088
2122
|
return getObjectPropertyByPath(value, path);
|
|
2089
2123
|
}
|
|
2090
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2091
|
-
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" }); }
|
|
2092
2126
|
}
|
|
2093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: JsonPathPipe, decorators: [{
|
|
2094
2128
|
type: Pipe,
|
|
2095
2129
|
args: [{
|
|
2096
2130
|
name: 'mngJsonPath',
|
|
@@ -2116,10 +2150,10 @@ class EnumeratePipe {
|
|
|
2116
2150
|
})
|
|
2117
2151
|
.join(valueSeparator);
|
|
2118
2152
|
}
|
|
2119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2120
|
-
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" }); }
|
|
2121
2155
|
}
|
|
2122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumeratePipe, decorators: [{
|
|
2123
2157
|
type: Pipe,
|
|
2124
2158
|
args: [{
|
|
2125
2159
|
name: 'mngEnumerate',
|
|
@@ -2160,10 +2194,10 @@ class EnumerateAsyncPipe {
|
|
|
2160
2194
|
}))));
|
|
2161
2195
|
}), map(i => i.join(valueSeparator)));
|
|
2162
2196
|
}
|
|
2163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2164
|
-
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" }); }
|
|
2165
2199
|
}
|
|
2166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: EnumerateAsyncPipe, decorators: [{
|
|
2167
2201
|
type: Pipe,
|
|
2168
2202
|
args: [{
|
|
2169
2203
|
name: 'mngEnumerateAsync',
|
|
@@ -2178,10 +2212,10 @@ class GetterPipe {
|
|
|
2178
2212
|
}
|
|
2179
2213
|
return value;
|
|
2180
2214
|
}
|
|
2181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2182
|
-
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" }); }
|
|
2183
2217
|
}
|
|
2184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: GetterPipe, decorators: [{
|
|
2185
2219
|
type: Pipe,
|
|
2186
2220
|
args: [{
|
|
2187
2221
|
name: 'mngGetter',
|
|
@@ -2193,10 +2227,10 @@ class I18nPropertyPipe {
|
|
|
2193
2227
|
transform(property, model) {
|
|
2194
2228
|
return getI18nTypePropertyKey(model.i18nBaseKey, property);
|
|
2195
2229
|
}
|
|
2196
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2197
|
-
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" }); }
|
|
2198
2232
|
}
|
|
2199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: I18nPropertyPipe, decorators: [{
|
|
2200
2234
|
type: Pipe,
|
|
2201
2235
|
args: [{
|
|
2202
2236
|
name: 'mngI18nProperty',
|
|
@@ -2280,10 +2314,10 @@ class ParametrizePipe {
|
|
|
2280
2314
|
return value ?? subs;
|
|
2281
2315
|
});
|
|
2282
2316
|
}
|
|
2283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2284
|
-
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" }); }
|
|
2285
2319
|
}
|
|
2286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ParametrizePipe, decorators: [{
|
|
2287
2321
|
type: Pipe,
|
|
2288
2322
|
args: [{
|
|
2289
2323
|
name: 'mngParametrize',
|
|
@@ -2301,10 +2335,10 @@ class TemplatePipe {
|
|
|
2301
2335
|
}
|
|
2302
2336
|
return value;
|
|
2303
2337
|
}
|
|
2304
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2305
|
-
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" }); }
|
|
2306
2340
|
}
|
|
2307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: TemplatePipe, decorators: [{
|
|
2308
2342
|
type: Pipe,
|
|
2309
2343
|
args: [{
|
|
2310
2344
|
name: 'template',
|
|
@@ -2508,8 +2542,6 @@ class CommonsService {
|
|
|
2508
2542
|
this._appDataLocale = signal(this.initAppDataLocale(), ...(ngDevMode ? [{ debugName: "_appDataLocale" }] : []));
|
|
2509
2543
|
this.appDataLocale = computed(() => this._appDataLocale(), ...(ngDevMode ? [{ debugName: "appDataLocale" }] : []));
|
|
2510
2544
|
this.appVersion = signal(this.moduleConfig?.app?.version, ...(ngDevMode ? [{ debugName: "appVersion" }] : []));
|
|
2511
|
-
// ripple
|
|
2512
|
-
this.primengConfig.ripple.set(true);
|
|
2513
2545
|
effectWithDeps([this.appLocales, this.appDataLocales], ([appLocales, appDataLocales]) => {
|
|
2514
2546
|
if (appLocales) {
|
|
2515
2547
|
this.setAppLocale(this.initAppLocale());
|
|
@@ -2736,10 +2768,10 @@ class CommonsService {
|
|
|
2736
2768
|
titlePieces.push(this.translate.instant('app.name'));
|
|
2737
2769
|
return titlePieces.join(' - ');
|
|
2738
2770
|
}
|
|
2739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2740
|
-
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 }); }
|
|
2741
2773
|
}
|
|
2742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsService, decorators: [{
|
|
2743
2775
|
type: Injectable
|
|
2744
2776
|
}], ctorParameters: () => [] });
|
|
2745
2777
|
|
|
@@ -2933,10 +2965,10 @@ class PermissionService {
|
|
|
2933
2965
|
}
|
|
2934
2966
|
return serviceInstance.isActionVisible(actionCtx, route, state);
|
|
2935
2967
|
}
|
|
2936
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2937
|
-
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 }); }
|
|
2938
2970
|
}
|
|
2939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PermissionService, decorators: [{
|
|
2940
2972
|
type: Injectable
|
|
2941
2973
|
}] });
|
|
2942
2974
|
|
|
@@ -3812,10 +3844,10 @@ class CommonsRouterService {
|
|
|
3812
3844
|
getModulePathFromRouterLink(path) {
|
|
3813
3845
|
return ('/' + (Array.isArray(path) ? path.join('/') : path)).replace(/\/\//g, '/');
|
|
3814
3846
|
}
|
|
3815
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3816
|
-
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 }); }
|
|
3817
3849
|
}
|
|
3818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsRouterService, decorators: [{
|
|
3819
3851
|
type: Injectable
|
|
3820
3852
|
}], ctorParameters: () => [] });
|
|
3821
3853
|
|
|
@@ -3911,10 +3943,10 @@ class CommonsInitService {
|
|
|
3911
3943
|
return throwError$1(() => err);
|
|
3912
3944
|
}));
|
|
3913
3945
|
}
|
|
3914
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3915
|
-
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 }); }
|
|
3916
3948
|
}
|
|
3917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsInitService, decorators: [{
|
|
3918
3950
|
type: Injectable
|
|
3919
3951
|
}] });
|
|
3920
3952
|
|
|
@@ -3939,10 +3971,10 @@ class CommonsStorageService {
|
|
|
3939
3971
|
removeItem(type, key) {
|
|
3940
3972
|
this.localStorage.removeItem(this.buildLocalStorageKey(type, key));
|
|
3941
3973
|
}
|
|
3942
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3943
|
-
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 }); }
|
|
3944
3976
|
}
|
|
3945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: CommonsStorageService, decorators: [{
|
|
3946
3978
|
type: Injectable
|
|
3947
3979
|
}] });
|
|
3948
3980
|
|
|
@@ -4044,5 +4076,5 @@ function provideCommons(config, ...features) {
|
|
|
4044
4076
|
* Generated bundle index. Do not edit.
|
|
4045
4077
|
*/
|
|
4046
4078
|
|
|
4047
|
-
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 };
|
|
4048
4080
|
//# sourceMappingURL=mediusinc-mng-commons-core.mjs.map
|