@mediusinc/mng-commons 6.0.0 → 6.1.0-rc.1
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/action/action-parameters.model.d.ts +27 -0
- package/core/pipes/parametrize.pipe.d.ts +5 -1
- package/fesm2022/mediusinc-mng-commons-core.mjs +74 -68
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +19 -19
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +8 -2
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs +30 -0
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-a8KG1NIX.mjs.map → mediusinc-mng-commons-table-column-toggle.component-CCyGSxaD.mjs.map} +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-C2vrMoNL.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs} +59 -44
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-8TdW6NCC.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +5 -4
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +192 -161
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/package.json +2 -2
- package/table/api/descriptors/column.descriptor.d.ts +7 -1
- package/table/components/column-value/column-value.component.d.ts +5 -0
- package/table/components/table/table.component.d.ts +1 -1
- package/table/services/table-data.service.d.ts +1 -0
- package/tableview/action/components/action/action.component.d.ts +1 -1
- package/tableview/action/components/editor/action-editor.component.d.ts +2 -2
- package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +3 -2
- package/tableview/action/helpers/action-execution.d.ts +1 -1
- package/tableview/action/helpers/inject.d.ts +39 -0
- package/tableview/action/helpers/styles.d.ts +1 -1
- package/tableview/action/models/execution/action-instance.model.d.ts +1 -1
- package/tableview/action/services/view-container.service.d.ts +1 -1
- package/tableview/api/action/descriptors/action-editor-descriptor.factory.d.ts +1 -1
- package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +14 -14
- package/tableview/api/action/descriptors/action.descriptor.d.ts +6 -6
- package/tableview/api/action/descriptors/editor-action-descriptor.factory.d.ts +1 -1
- package/tableview/api/action/descriptors/editor-action-editor-descriptor.factory.d.ts +1 -1
- package/tableview/api/action/descriptors/table-action-editor-descriptor.factory.d.ts +4 -4
- package/tableview/api/action/models/action-component.model.d.ts +1 -1
- package/tableview/api/action/models/action-confirmation.model.d.ts +2 -2
- package/tableview/api/action/models/action-descriptor.types.d.ts +2 -1
- package/tableview/api/action/models/execution/action-context.model.d.ts +2 -1
- package/tableview/api/action/models/execution/view-container.model.d.ts +1 -1
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +2 -2
- package/tableview/api/editor/models/form-editor.interface.d.ts +4 -4
- package/tableview/editor/components/editor/form-editor.component.d.ts +2 -1
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +2 -2
- package/tableview/index.d.ts +1 -0
- package/tableview/tableview/components/tableview/tableview.component.d.ts +5 -3
- package/version-info.json +5 -5
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-a8KG1NIX.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-C2vrMoNL.mjs.map +0 -1
|
@@ -3,15 +3,42 @@ import { DataListParams } from '../data-list/data-list.model';
|
|
|
3
3
|
import { IdType } from '../helpers/type-helpers';
|
|
4
4
|
import { ActionData } from './action-data.model';
|
|
5
5
|
export interface ActionParameters<Item, TableItem = Item, FormItem = Item, SubmitResultItem = Item> {
|
|
6
|
+
/**
|
|
7
|
+
* Identificator of an item.
|
|
8
|
+
*/
|
|
6
9
|
itemId?: IdType;
|
|
10
|
+
/**
|
|
11
|
+
* Item value.
|
|
12
|
+
*/
|
|
7
13
|
item?: Item;
|
|
14
|
+
/**
|
|
15
|
+
* Additional action data.
|
|
16
|
+
*/
|
|
8
17
|
actionData?: ActionData;
|
|
18
|
+
/**
|
|
19
|
+
* Data list params when action is activated from table.
|
|
20
|
+
*/
|
|
9
21
|
dataListParams?: DataListParams<any, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Represents the component where which activates the action.
|
|
24
|
+
*/
|
|
10
25
|
sourceComponent?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Represents the component where the action is hosted or placed (activation button).
|
|
28
|
+
*/
|
|
11
29
|
hostComponent?: unknown;
|
|
12
30
|
route?: ActivatedRoute;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Selected items should accessed using `getActionParentTable`.
|
|
33
|
+
*/
|
|
13
34
|
selectedItems?: TableItem[];
|
|
14
35
|
locale?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Used on fetch fn to provide the form item of previous submit.
|
|
38
|
+
*/
|
|
15
39
|
formItem?: FormItem | null;
|
|
40
|
+
/**
|
|
41
|
+
* Used on fetch fn to provide the result of previous submit (return of submit fn).
|
|
42
|
+
*/
|
|
16
43
|
submitResult?: SubmitResultItem | null;
|
|
17
44
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { IdType } from '../helpers/type-helpers';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
type TransformOptsType = {
|
|
5
|
+
encodeParams?: boolean;
|
|
6
|
+
};
|
|
4
7
|
export declare class ParametrizePipe implements PipeTransform {
|
|
5
8
|
private jsonPath;
|
|
6
|
-
transform(value: unknown, itemId?: IdType, item?: any, data?: Record<string, any
|
|
9
|
+
transform(value: unknown, itemId?: IdType, item?: any, data?: Record<string, any>, opts?: TransformOptsType): any;
|
|
7
10
|
private transformString;
|
|
8
11
|
private parametrizeStringAsRouterLink;
|
|
9
12
|
private parametrizeString;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParametrizePipe, never>;
|
|
11
14
|
static ɵpipe: i0.ɵɵPipeDeclaration<ParametrizePipe, "mngParametrize", true>;
|
|
12
15
|
}
|
|
16
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { computed, signal,
|
|
2
|
+
import { computed, signal, ChangeDetectionStrategy, Component, effect, untracked, inject, Injector, ElementRef, ApplicationRef, ViewContainerRef, input, booleanAttribute, output, EnvironmentInjector, createComponent, Directive, TemplateRef, numberAttribute, 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';
|
|
6
6
|
import { Toast } from 'primeng/toast';
|
|
7
7
|
import { HttpErrorResponse, HttpClient, HttpBackend } from '@angular/common/http';
|
|
8
8
|
import { DatePipe } from '@angular/common';
|
|
9
|
-
import {
|
|
9
|
+
import { of, isObservable, mergeMap, combineLatest, Observable, tap, ReplaySubject, Subject, take, throwError as throwError$1 } from 'rxjs';
|
|
10
10
|
import { map, filter, first, catchError } from 'rxjs/operators';
|
|
11
11
|
import 'reflect-metadata';
|
|
12
12
|
import { takeUntilDestroyed, toObservable as toObservable$1 } from '@angular/core/rxjs-interop';
|
|
@@ -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: "19.
|
|
51
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: NotificationWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", 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", "visible", "position", "draggable"], outputs: ["onHide"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "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", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", 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
|
}] });
|
|
@@ -870,10 +870,10 @@ class ComponentDirective {
|
|
|
870
870
|
}
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
874
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.
|
|
873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: ComponentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
874
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.10", 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
875
|
}
|
|
876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: ComponentDirective, decorators: [{
|
|
877
877
|
type: Directive,
|
|
878
878
|
args: [{
|
|
879
879
|
selector: '[mngComponent]'
|
|
@@ -890,10 +890,10 @@ class RerenderDirective {
|
|
|
890
890
|
this.viewContainerRef.createEmbeddedView(this.templateRef);
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
894
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.
|
|
893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: RerenderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
894
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.10", type: RerenderDirective, isStandalone: true, selector: "[mngRerender]", inputs: { mngRerender: { classPropertyName: "mngRerender", publicName: "mngRerender", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
895
895
|
}
|
|
896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: RerenderDirective, decorators: [{
|
|
897
897
|
type: Directive,
|
|
898
898
|
args: [{
|
|
899
899
|
selector: '[mngRerender]'
|
|
@@ -905,10 +905,10 @@ class TemplateDirective {
|
|
|
905
905
|
this.template = inject((TemplateRef));
|
|
906
906
|
this.name = input.required({ alias: 'mngTemplate' });
|
|
907
907
|
}
|
|
908
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
909
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.
|
|
908
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: TemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
909
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.10", type: TemplateDirective, isStandalone: true, selector: "[mngTemplate]", inputs: { name: { classPropertyName: "name", publicName: "mngTemplate", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
910
910
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: TemplateDirective, decorators: [{
|
|
912
912
|
type: Directive,
|
|
913
913
|
args: [{
|
|
914
914
|
selector: '[mngTemplate]'
|
|
@@ -1938,10 +1938,10 @@ class BooleanPipe {
|
|
|
1938
1938
|
return value;
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
1942
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
1941
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BooleanPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1942
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: BooleanPipe, isStandalone: true, name: "mngBoolean" }); }
|
|
1943
1943
|
}
|
|
1944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
1944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: BooleanPipe, decorators: [{
|
|
1945
1945
|
type: Pipe,
|
|
1946
1946
|
args: [{
|
|
1947
1947
|
name: 'mngBoolean',
|
|
@@ -1958,10 +1958,10 @@ class ClassMapPipe {
|
|
|
1958
1958
|
return className ?? '';
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
1962
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
1961
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: ClassMapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1962
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: ClassMapPipe, isStandalone: true, name: "mngClassMap" }); }
|
|
1963
1963
|
}
|
|
1964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
1964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: ClassMapPipe, decorators: [{
|
|
1965
1965
|
type: Pipe,
|
|
1966
1966
|
args: [{
|
|
1967
1967
|
name: 'mngClassMap',
|
|
@@ -2051,10 +2051,10 @@ class EnumPipe {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
return i18nPath ? `${i18nPath}.${enumValue}` : enumValue;
|
|
2053
2053
|
}
|
|
2054
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2055
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2054
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2055
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: EnumPipe, isStandalone: true, name: "mngEnum" }); }
|
|
2056
2056
|
}
|
|
2057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EnumPipe, decorators: [{
|
|
2058
2058
|
type: Pipe,
|
|
2059
2059
|
args: [{
|
|
2060
2060
|
name: 'mngEnum',
|
|
@@ -2072,10 +2072,10 @@ class JsonPathPipe {
|
|
|
2072
2072
|
transform(value, path = '') {
|
|
2073
2073
|
return getObjectPropertyByPath(value, path);
|
|
2074
2074
|
}
|
|
2075
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2076
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2075
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: JsonPathPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2076
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: JsonPathPipe, isStandalone: true, name: "mngJsonPath" }); }
|
|
2077
2077
|
}
|
|
2078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: JsonPathPipe, decorators: [{
|
|
2079
2079
|
type: Pipe,
|
|
2080
2080
|
args: [{
|
|
2081
2081
|
name: 'mngJsonPath',
|
|
@@ -2101,10 +2101,10 @@ class EnumeratePipe {
|
|
|
2101
2101
|
})
|
|
2102
2102
|
.join(valueSeparator);
|
|
2103
2103
|
}
|
|
2104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2105
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EnumeratePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2105
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: EnumeratePipe, isStandalone: true, name: "mngEnumerate" }); }
|
|
2106
2106
|
}
|
|
2107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EnumeratePipe, decorators: [{
|
|
2108
2108
|
type: Pipe,
|
|
2109
2109
|
args: [{
|
|
2110
2110
|
name: 'mngEnumerate',
|
|
@@ -2145,10 +2145,10 @@ class EnumerateAsyncPipe {
|
|
|
2145
2145
|
}))));
|
|
2146
2146
|
}), map(i => i.join(valueSeparator)));
|
|
2147
2147
|
}
|
|
2148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2149
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EnumerateAsyncPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2149
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: EnumerateAsyncPipe, isStandalone: true, name: "mngEnumerateAsync" }); }
|
|
2150
2150
|
}
|
|
2151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: EnumerateAsyncPipe, decorators: [{
|
|
2152
2152
|
type: Pipe,
|
|
2153
2153
|
args: [{
|
|
2154
2154
|
name: 'mngEnumerateAsync',
|
|
@@ -2163,10 +2163,10 @@ class GetterPipe {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
return value;
|
|
2165
2165
|
}
|
|
2166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2167
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: GetterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2167
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: GetterPipe, isStandalone: true, name: "mngGetter" }); }
|
|
2168
2168
|
}
|
|
2169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: GetterPipe, decorators: [{
|
|
2170
2170
|
type: Pipe,
|
|
2171
2171
|
args: [{
|
|
2172
2172
|
name: 'mngGetter',
|
|
@@ -2178,10 +2178,10 @@ class I18nPropertyPipe {
|
|
|
2178
2178
|
transform(property, model) {
|
|
2179
2179
|
return getI18nTypePropertyKey(model.i18nBaseKey, property);
|
|
2180
2180
|
}
|
|
2181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2182
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: I18nPropertyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2182
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: I18nPropertyPipe, isStandalone: true, name: "mngI18nProperty" }); }
|
|
2183
2183
|
}
|
|
2184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: I18nPropertyPipe, decorators: [{
|
|
2185
2185
|
type: Pipe,
|
|
2186
2186
|
args: [{
|
|
2187
2187
|
name: 'mngI18nProperty',
|
|
@@ -2193,7 +2193,7 @@ class ParametrizePipe {
|
|
|
2193
2193
|
constructor() {
|
|
2194
2194
|
this.jsonPath = new JsonPathPipe();
|
|
2195
2195
|
}
|
|
2196
|
-
transform(value, itemId, item, data) {
|
|
2196
|
+
transform(value, itemId, item, data, opts) {
|
|
2197
2197
|
let params = {};
|
|
2198
2198
|
if (data) {
|
|
2199
2199
|
params = {
|
|
@@ -2214,10 +2214,10 @@ class ParametrizePipe {
|
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
2216
|
if (typeof value === 'string') {
|
|
2217
|
-
return this.transformString(value, params);
|
|
2217
|
+
return this.transformString(value, params, opts);
|
|
2218
2218
|
}
|
|
2219
2219
|
else if (Array.isArray(value) && value.length > 0 && typeof value[0] === 'string') {
|
|
2220
|
-
return value.map((s) => this.transformString(s, params));
|
|
2220
|
+
return value.map((s) => this.transformString(s, params, opts));
|
|
2221
2221
|
}
|
|
2222
2222
|
else if (typeof value === 'object') {
|
|
2223
2223
|
// process only first level citizens
|
|
@@ -2225,7 +2225,7 @@ class ParametrizePipe {
|
|
|
2225
2225
|
for (const key in obj) {
|
|
2226
2226
|
const objProp = obj[key];
|
|
2227
2227
|
if (typeof objProp === 'string') {
|
|
2228
|
-
obj[key] = this.transformString(objProp, params);
|
|
2228
|
+
obj[key] = this.transformString(objProp, params, opts);
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
return obj;
|
|
@@ -2234,7 +2234,7 @@ class ParametrizePipe {
|
|
|
2234
2234
|
return value;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
transformString(s, params) {
|
|
2237
|
+
transformString(s, params, opts) {
|
|
2238
2238
|
if ((s.indexOf('/') >= 0 && s.indexOf(':') >= 0 && !s.startsWith('http://') && !s.startsWith('https://')) || s.startsWith(':')) {
|
|
2239
2239
|
// this is router link
|
|
2240
2240
|
return s
|
|
@@ -2244,25 +2244,31 @@ class ParametrizePipe {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
else {
|
|
2246
2246
|
// parametrize normally
|
|
2247
|
-
return this.parametrizeString(s, params);
|
|
2247
|
+
return this.parametrizeString(s, params, opts);
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
2250
|
parametrizeStringAsRouterLink(s, params) {
|
|
2251
2251
|
if (s.startsWith(':')) {
|
|
2252
2252
|
const itemProperty = s.substring(1);
|
|
2253
|
-
return this.jsonPath.transform(params, itemProperty) ?? '';
|
|
2253
|
+
return encodeURIComponent(this.jsonPath.transform(params, itemProperty) ?? '');
|
|
2254
2254
|
}
|
|
2255
2255
|
else {
|
|
2256
2256
|
return s;
|
|
2257
2257
|
}
|
|
2258
2258
|
}
|
|
2259
|
-
parametrizeString(s, params) {
|
|
2260
|
-
return s.replace(/{{\s?([^{}\s]*)\s?}}/g, (subs, key) =>
|
|
2259
|
+
parametrizeString(s, params, opts) {
|
|
2260
|
+
return s.replace(/{{\s?([^{}\s]*)\s?}}/g, (subs, key) => {
|
|
2261
|
+
let value = this.jsonPath.transform(params, key);
|
|
2262
|
+
if (value != null && opts?.encodeParams) {
|
|
2263
|
+
value = encodeURIComponent(value);
|
|
2264
|
+
}
|
|
2265
|
+
return value ?? subs;
|
|
2266
|
+
});
|
|
2261
2267
|
}
|
|
2262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2263
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2268
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: ParametrizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2269
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: ParametrizePipe, isStandalone: true, name: "mngParametrize" }); }
|
|
2264
2270
|
}
|
|
2265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: ParametrizePipe, decorators: [{
|
|
2266
2272
|
type: Pipe,
|
|
2267
2273
|
args: [{
|
|
2268
2274
|
name: 'mngParametrize',
|
|
@@ -2280,10 +2286,10 @@ class TemplatePipe {
|
|
|
2280
2286
|
}
|
|
2281
2287
|
return value;
|
|
2282
2288
|
}
|
|
2283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2284
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.
|
|
2289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: TemplatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2290
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: TemplatePipe, isStandalone: true, name: "template" }); }
|
|
2285
2291
|
}
|
|
2286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: TemplatePipe, decorators: [{
|
|
2287
2293
|
type: Pipe,
|
|
2288
2294
|
args: [{
|
|
2289
2295
|
name: 'template',
|
|
@@ -2713,10 +2719,10 @@ class CommonsService {
|
|
|
2713
2719
|
titlePieces.push(this.translate.instant('app.name'));
|
|
2714
2720
|
return titlePieces.join(' - ');
|
|
2715
2721
|
}
|
|
2716
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2717
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
2722
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2723
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsService }); }
|
|
2718
2724
|
}
|
|
2719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsService, decorators: [{
|
|
2720
2726
|
type: Injectable
|
|
2721
2727
|
}], ctorParameters: () => [] });
|
|
2722
2728
|
|
|
@@ -2910,10 +2916,10 @@ class PermissionService {
|
|
|
2910
2916
|
}
|
|
2911
2917
|
return serviceInstance.isActionVisible(actionCtx, route, state);
|
|
2912
2918
|
}
|
|
2913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
2914
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
2919
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: PermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2920
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: PermissionService }); }
|
|
2915
2921
|
}
|
|
2916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: PermissionService, decorators: [{
|
|
2917
2923
|
type: Injectable
|
|
2918
2924
|
}] });
|
|
2919
2925
|
|
|
@@ -3789,10 +3795,10 @@ class CommonsRouterService {
|
|
|
3789
3795
|
getModulePathFromRouterLink(path) {
|
|
3790
3796
|
return ('/' + (Array.isArray(path) ? path.join('/') : path)).replace(/\/\//g, '/');
|
|
3791
3797
|
}
|
|
3792
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3793
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
3798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsRouterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3799
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsRouterService }); }
|
|
3794
3800
|
}
|
|
3795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsRouterService, decorators: [{
|
|
3796
3802
|
type: Injectable
|
|
3797
3803
|
}], ctorParameters: () => [] });
|
|
3798
3804
|
|
|
@@ -3888,10 +3894,10 @@ class CommonsInitService {
|
|
|
3888
3894
|
return throwError$1(() => err);
|
|
3889
3895
|
}));
|
|
3890
3896
|
}
|
|
3891
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3892
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
3897
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3898
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsInitService }); }
|
|
3893
3899
|
}
|
|
3894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsInitService, decorators: [{
|
|
3895
3901
|
type: Injectable
|
|
3896
3902
|
}] });
|
|
3897
3903
|
|
|
@@ -3916,10 +3922,10 @@ class CommonsStorageService {
|
|
|
3916
3922
|
removeItem(type, key) {
|
|
3917
3923
|
this.localStorage.removeItem(this.buildLocalStorageKey(type, key));
|
|
3918
3924
|
}
|
|
3919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
3920
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
3925
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3926
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsStorageService }); }
|
|
3921
3927
|
}
|
|
3922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: CommonsStorageService, decorators: [{
|
|
3923
3929
|
type: Injectable
|
|
3924
3930
|
}] });
|
|
3925
3931
|
|