@mediusinc/mng-commons 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/api/services/{abstract-crud-api.service.mjs → crud-api.abstract.service.mjs} +2 -2
- package/esm2020/lib/api/services/index.mjs +2 -2
- package/esm2020/lib/api/utils/medius-rest.util.mjs +1 -1
- package/esm2020/lib/api/utils/object-serializer.util.mjs +1 -1
- package/esm2020/lib/components/action/action.component.mjs +9 -7
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +15 -26
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
- package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
- package/esm2020/lib/components/action/models/index.mjs +3 -0
- package/esm2020/lib/components/action/route/action-route.component.mjs +8 -8
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +11 -12
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +5 -5
- package/esm2020/lib/components/form/index.mjs +3 -3
- package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
- package/esm2020/lib/components/form/models/index.mjs +2 -0
- package/esm2020/lib/components/layout/main-layout.component.mjs +36 -15
- package/esm2020/lib/components/layout/menu-item.component.mjs +4 -4
- package/esm2020/lib/components/layout/menu.component.mjs +6 -6
- package/esm2020/lib/components/layout/services/index.mjs +2 -0
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +5 -5
- package/esm2020/lib/components/layout/topbar.component.mjs +35 -16
- package/esm2020/lib/components/tableview/models/index.mjs +2 -0
- package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +2 -2
- package/esm2020/lib/components/tableview/services/index.mjs +2 -0
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +4 -4
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +3 -3
- package/esm2020/lib/components/tableview/table/table.component.mjs +11 -11
- package/esm2020/lib/components/tableview/tableview.component.mjs +11 -12
- package/esm2020/lib/config/formly.config.mjs +13 -13
- package/esm2020/lib/{models/config → config/models}/index.mjs +1 -1
- package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
- package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
- package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
- package/esm2020/lib/data-providers/index.mjs +6 -0
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
- package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
- package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
- package/esm2020/lib/descriptors/field.validator.mjs +21 -0
- package/esm2020/lib/descriptors/index.mjs +8 -0
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
- package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
- package/esm2020/lib/descriptors/table.descriptor.mjs +401 -0
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
- package/esm2020/lib/directives/component.directive.mjs +23 -0
- package/esm2020/lib/directives/index.mjs +2 -1
- package/esm2020/lib/directives/template.directive.mjs +11 -7
- package/esm2020/lib/mng-commons.module.mjs +137 -70
- package/esm2020/lib/models/index.mjs +3 -0
- package/esm2020/lib/models/router.model.mjs +2 -0
- package/esm2020/lib/models/user.model.mjs +2 -0
- package/esm2020/lib/pipes/boolean.pipe.mjs +5 -5
- package/esm2020/lib/pipes/property-path.pipe.mjs +5 -5
- package/esm2020/lib/services/action.service.mjs +6 -7
- package/esm2020/lib/services/commons.service.mjs +5 -9
- package/esm2020/lib/services/configuration.service.mjs +2 -1
- package/esm2020/lib/services/providers/config-service.provider.mjs +10 -2
- package/esm2020/lib/services/providers/formly-config.provider.mjs +1 -1
- package/esm2020/lib/services/providers/index.mjs +2 -1
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
- package/esm2020/lib/services/tokens/index.mjs +3 -0
- package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
- package/esm2020/lib/types/index.mjs +3 -0
- package/esm2020/lib/types/type.decorator.mjs +7 -0
- package/esm2020/lib/types/type.model.mjs +2 -0
- package/esm2020/lib/utils/editor-formly.util.mjs +2 -2
- package/esm2020/lib/utils/i18n.util.mjs +1 -1
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/model.util.mjs +1 -1
- package/esm2020/lib/utils/toast.util.mjs +2 -2
- package/esm2020/lib/utils/type.util.mjs +2 -2
- package/esm2020/public-api.mjs +12 -11
- package/fesm2015/mediusinc-mng-commons.mjs +509 -377
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +502 -371
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/services/{abstract-crud-api.service.d.ts → crud-api.abstract.service.d.ts} +2 -2
- package/lib/api/services/index.d.ts +1 -1
- package/lib/api/utils/medius-rest.util.d.ts +1 -1
- package/lib/api/utils/object-serializer.util.d.ts +1 -1
- package/lib/components/action/action.component.d.ts +8 -8
- package/lib/components/action/dialog/action-dialog.component.d.ts +13 -16
- package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +2 -2
- package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +3 -3
- package/lib/components/action/models/index.d.ts +2 -0
- package/lib/components/action/route/action-route.component.d.ts +6 -6
- package/lib/components/form/autocomplete/{mng-autocomplete.component.d.ts → autocomplete.component.d.ts} +1 -1
- package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts} +1 -1
- package/lib/components/form/editor/form-editor.component.d.ts +6 -6
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +3 -3
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +3 -3
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +3 -3
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +3 -3
- package/lib/components/form/index.d.ts +2 -2
- package/lib/components/form/models/form-editor.event.d.ts +5 -0
- package/lib/components/form/models/index.d.ts +1 -0
- package/lib/components/layout/main-layout.component.d.ts +12 -4
- package/lib/components/layout/menu-item.component.d.ts +3 -3
- package/lib/components/layout/menu.component.d.ts +3 -3
- package/lib/components/layout/services/index.d.ts +1 -0
- package/lib/components/layout/services/main-layout.component.service.d.ts +3 -3
- package/lib/components/layout/topbar.component.d.ts +13 -6
- package/lib/components/tableview/models/index.d.ts +1 -0
- package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +2 -2
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -2
- package/lib/components/tableview/services/index.d.ts +1 -0
- package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +2 -2
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +1 -1
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +1 -1
- package/lib/components/tableview/table/table.component.d.ts +8 -8
- package/lib/components/tableview/tableview.component.d.ts +9 -10
- package/lib/config/formly.config.d.ts +3 -3
- package/lib/{models/config → config/models}/index.d.ts +0 -0
- package/lib/{models/config → config/models}/mng-config.model.d.ts +0 -3
- package/lib/data-providers/base.data-provider.d.ts +17 -0
- package/lib/data-providers/editor.data-provider.d.ts +25 -0
- package/lib/data-providers/index.d.ts +5 -0
- package/lib/data-providers/lookup.data-provider.d.ts +14 -0
- package/lib/data-providers/table.data-provider.d.ts +6 -0
- package/lib/data-providers/tableview.data-provider.d.ts +15 -0
- package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +6 -3
- package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +5 -7
- package/lib/{models/validators → descriptors}/field.validator.d.ts +0 -0
- package/lib/descriptors/index.d.ts +7 -0
- package/lib/{models/interfaces/lookup.model.d.ts → descriptors/lookup.descriptor.d.ts} +3 -3
- package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +0 -0
- package/lib/{models/descriptors/table-descriptor.model.d.ts → descriptors/table.descriptor.d.ts} +5 -5
- package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +1 -3
- package/lib/directives/component.directive.d.ts +11 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/template.directive.d.ts +7 -5
- package/lib/mng-commons.module.d.ts +70 -69
- package/lib/models/{router/index.d.ts → index.d.ts} +1 -0
- package/lib/models/router.model.d.ts +14 -0
- package/lib/models/{user/user.model.d.ts → user.model.d.ts} +0 -0
- package/lib/pipes/boolean.pipe.d.ts +3 -3
- package/lib/pipes/property-path.pipe.d.ts +3 -3
- package/lib/services/action.service.d.ts +6 -6
- package/lib/services/commons.service.d.ts +2 -4
- package/lib/services/providers/config-service.provider.d.ts +1 -1
- package/lib/services/providers/formly-config.provider.d.ts +1 -1
- package/lib/services/providers/index.d.ts +1 -0
- package/lib/services/tokens/browser-storage.token.d.ts +2 -0
- package/lib/services/tokens/index.d.ts +2 -0
- package/lib/services/tokens/module-config.token.d.ts +3 -0
- package/lib/{models/types → types}/index.d.ts +0 -0
- package/lib/{models/types → types}/type.decorator.d.ts +0 -0
- package/lib/{models/types → types}/type.model.d.ts +0 -0
- package/lib/utils/editor-formly.util.d.ts +1 -1
- package/lib/utils/i18n.util.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/model.util.d.ts +3 -3
- package/lib/utils/toast.util.d.ts +3 -3
- package/lib/utils/type.util.d.ts +1 -1
- package/{mediusinc-mng-commons-0.1.0.tgz → mediusinc-mng-commons-0.2.0.tgz} +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +10 -9
- package/scss/common/layout/_help.scss +3 -3
- package/scss/common/layout/_landing.scss +1 -1
- package/scss/common/variables/layout/_common.scss +2 -0
- package/scss/common/variables/layout/_layout_dark.scss +4 -3
- package/scss/common/variables/layout/_layout_light.scss +4 -3
- package/scss/layout/default/_mng-variables-layout-light.scss +2 -2
- package/scss/mng-commons-dark.scss +0 -5
- package/scss/mng-commons-light.scss +0 -8
- package/scss/theme/default/_mng-variables-theme-light.scss +4 -4
- package/.pnpm-debug.log +0 -15
- package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +0 -114
- package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +0 -113
- package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
- package/esm2020/lib/models/action/action.model.mjs +0 -58
- package/esm2020/lib/models/action/index.mjs +0 -2
- package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -325
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -671
- package/esm2020/lib/models/descriptors/index.mjs +0 -6
- package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -401
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -133
- package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
- package/esm2020/lib/models/events/index.mjs +0 -3
- package/esm2020/lib/models/events/table-event.model.mjs +0 -16
- package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
- package/esm2020/lib/models/interfaces/index.mjs +0 -3
- package/esm2020/lib/models/interfaces/lookup.model.mjs +0 -2
- package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
- package/esm2020/lib/models/providers/index.mjs +0 -2
- package/esm2020/lib/models/router/index.mjs +0 -2
- package/esm2020/lib/models/router/router.model.mjs +0 -2
- package/esm2020/lib/models/types/index.mjs +0 -3
- package/esm2020/lib/models/types/type.decorator.mjs +0 -7
- package/esm2020/lib/models/types/type.model.mjs +0 -2
- package/esm2020/lib/models/user/index.mjs +0 -2
- package/esm2020/lib/models/user/user.model.mjs +0 -2
- package/esm2020/lib/models/validators/field.validator.mjs +0 -21
- package/esm2020/lib/models/validators/index.mjs +0 -2
- package/lib/models/action/index.d.ts +0 -1
- package/lib/models/descriptors/index.d.ts +0 -5
- package/lib/models/events/editor-event.model.d.ts +0 -11
- package/lib/models/events/index.d.ts +0 -2
- package/lib/models/interfaces/index.d.ts +0 -2
- package/lib/models/providers/data-provider.model.d.ts +0 -62
- package/lib/models/providers/index.d.ts +0 -1
- package/lib/models/router/router.model.d.ts +0 -9
- package/lib/models/user/index.d.ts +0 -1
- package/lib/models/validators/index.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, Pipe, EventEmitter, Component, ChangeDetectionStrategy, Output, ContentChildren, ViewChild, forwardRef, Injectable, InjectionToken, Inject, HostListener, Optional, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
2
|
+
import { Directive, Input, Pipe, EventEmitter, Component, ChangeDetectionStrategy, Output, ContentChildren, ViewChild, forwardRef, Injectable, InjectionToken, Inject, ViewChildren, HostListener, Optional, APP_INITIALIZER, NgModule } from '@angular/core';
|
|
3
|
+
import * as i4 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i2$1 from '@angular/forms';
|
|
6
6
|
import { FormGroup, NG_VALUE_ACCESSOR, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -22,7 +22,7 @@ import { ButtonModule } from 'primeng/button';
|
|
|
22
22
|
import { CardModule } from 'primeng/card';
|
|
23
23
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
24
24
|
import { ChipModule } from 'primeng/chip';
|
|
25
|
-
import * as i6
|
|
25
|
+
import * as i6 from 'primeng/confirmdialog';
|
|
26
26
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
27
27
|
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
|
28
28
|
import * as i2$7 from 'primeng/dialog';
|
|
@@ -41,12 +41,12 @@ import { InputTextModule } from 'primeng/inputtext';
|
|
|
41
41
|
import * as i8 from 'primeng/inputtextarea';
|
|
42
42
|
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
43
43
|
import { PaginatorModule } from 'primeng/paginator';
|
|
44
|
-
import * as i4$
|
|
44
|
+
import * as i4$3 from 'primeng/radiobutton';
|
|
45
45
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
46
46
|
import * as i9 from 'primeng/ripple';
|
|
47
47
|
import { RippleModule } from 'primeng/ripple';
|
|
48
48
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
49
|
-
import * as i4$
|
|
49
|
+
import * as i4$4 from 'primeng/table';
|
|
50
50
|
import { Table, TableModule } from 'primeng/table';
|
|
51
51
|
import { TagModule } from 'primeng/tag';
|
|
52
52
|
import * as i7$1 from 'primeng/toast';
|
|
@@ -54,10 +54,11 @@ import { ToastModule } from 'primeng/toast';
|
|
|
54
54
|
import { ToggleButtonModule } from 'primeng/togglebutton';
|
|
55
55
|
import * as i8$1 from 'primeng/toolbar';
|
|
56
56
|
import { ToolbarModule } from 'primeng/toolbar';
|
|
57
|
+
import * as i10 from 'primeng/tooltip';
|
|
57
58
|
import { TooltipModule } from 'primeng/tooltip';
|
|
58
59
|
import * as i3$1 from 'primeng/messages';
|
|
59
60
|
import { MessagesModule } from 'primeng/messages';
|
|
60
|
-
import * as i4 from 'primeng/progressspinner';
|
|
61
|
+
import * as i4$1 from 'primeng/progressspinner';
|
|
61
62
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
62
63
|
import * as i1$4 from 'primeng/tabview';
|
|
63
64
|
import { TabViewModule } from 'primeng/tabview';
|
|
@@ -72,33 +73,58 @@ import { SkeletonModule } from 'primeng/skeleton';
|
|
|
72
73
|
import { of, throwError, Observable, Subject, ReplaySubject, from, BehaviorSubject } from 'rxjs';
|
|
73
74
|
import 'reflect-metadata';
|
|
74
75
|
import { mergeMap, map, first, finalize, catchError, filter, startWith } from 'rxjs/operators';
|
|
75
|
-
import * as i4$
|
|
76
|
+
import * as i4$2 from '@angular/platform-browser';
|
|
76
77
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
77
78
|
|
|
78
|
-
class
|
|
79
|
-
constructor(
|
|
79
|
+
class MngComponentDirective {
|
|
80
|
+
constructor(viewContainerRef) {
|
|
81
|
+
this.viewContainerRef = viewContainerRef;
|
|
82
|
+
}
|
|
83
|
+
ngOnInit() {
|
|
84
|
+
this.viewContainerRef.clear();
|
|
85
|
+
this.componentRef = this.viewContainerRef.createComponent(this.component);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
MngComponentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngComponentDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
89
|
+
MngComponentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MngComponentDirective, selector: "[mngComponent]", inputs: { component: ["mngComponent", "component"] }, ngImport: i0 });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngComponentDirective, decorators: [{
|
|
91
|
+
type: Directive,
|
|
92
|
+
args: [{
|
|
93
|
+
selector: '[mngComponent]',
|
|
94
|
+
}]
|
|
95
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { component: [{
|
|
96
|
+
type: Input,
|
|
97
|
+
args: ['mngComponent']
|
|
98
|
+
}] } });
|
|
99
|
+
|
|
100
|
+
class MngTemplateDirective {
|
|
101
|
+
constructor(template, viewContainerRef) {
|
|
80
102
|
this.template = template;
|
|
103
|
+
this.viewContainerRef = viewContainerRef;
|
|
81
104
|
}
|
|
82
105
|
getType() {
|
|
83
106
|
return this.name;
|
|
84
107
|
}
|
|
108
|
+
getViewContainerRef() {
|
|
109
|
+
return this.viewContainerRef;
|
|
110
|
+
}
|
|
85
111
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
112
|
+
MngTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
113
|
+
MngTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MngTemplateDirective, selector: "[mngTemplate]", inputs: { type: "type", name: ["mngTemplate", "name"] }, ngImport: i0 });
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTemplateDirective, decorators: [{
|
|
89
115
|
type: Directive,
|
|
90
116
|
args: [{
|
|
91
117
|
selector: '[mngTemplate]',
|
|
92
118
|
host: {}
|
|
93
119
|
}]
|
|
94
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { type: [{
|
|
120
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { type: [{
|
|
95
121
|
type: Input
|
|
96
122
|
}], name: [{
|
|
97
123
|
type: Input,
|
|
98
124
|
args: ['mngTemplate']
|
|
99
125
|
}] } });
|
|
100
126
|
|
|
101
|
-
class
|
|
127
|
+
class MngBooleanPipe {
|
|
102
128
|
transform(value) {
|
|
103
129
|
if (typeof value === 'boolean') {
|
|
104
130
|
return value ? 'general.yes' : 'general.no';
|
|
@@ -108,9 +134,9 @@ class BooleanPipe {
|
|
|
108
134
|
}
|
|
109
135
|
}
|
|
110
136
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
137
|
+
MngBooleanPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngBooleanPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
138
|
+
MngBooleanPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngBooleanPipe, name: "boolean" });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngBooleanPipe, decorators: [{
|
|
114
140
|
type: Pipe,
|
|
115
141
|
args: [{
|
|
116
142
|
name: 'boolean',
|
|
@@ -118,7 +144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
118
144
|
}]
|
|
119
145
|
}] });
|
|
120
146
|
|
|
121
|
-
class
|
|
147
|
+
class MngPropertyPathPipe {
|
|
122
148
|
transform(value, path = '') {
|
|
123
149
|
if (path.indexOf('.') >= 0) {
|
|
124
150
|
const pathSplit = path.split('.');
|
|
@@ -142,9 +168,9 @@ class PropertyPathPipe {
|
|
|
142
168
|
}
|
|
143
169
|
}
|
|
144
170
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
171
|
+
MngPropertyPathPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngPropertyPathPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
172
|
+
MngPropertyPathPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngPropertyPathPipe, name: "propertyPath" });
|
|
173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngPropertyPathPipe, decorators: [{
|
|
148
174
|
type: Pipe,
|
|
149
175
|
args: [{
|
|
150
176
|
name: 'propertyPath',
|
|
@@ -152,34 +178,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
152
178
|
}]
|
|
153
179
|
}] });
|
|
154
180
|
|
|
155
|
-
class
|
|
181
|
+
class MngFormEditorSubmitEvent {
|
|
156
182
|
constructor(formItem) {
|
|
157
183
|
this.formItem = formItem;
|
|
158
184
|
this.success = true;
|
|
159
185
|
}
|
|
160
|
-
}
|
|
161
|
-
class MngEditorItemEvent {
|
|
162
|
-
constructor(item) {
|
|
163
|
-
this.item = item;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
class MngEditorSubmitTriggerEvent {
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
class MngTableLoadEvent {
|
|
170
|
-
}
|
|
171
|
-
class MngTableCellClickEvent {
|
|
172
|
-
constructor(column, rowItem, rowIndex) {
|
|
173
|
-
this.column = column;
|
|
174
|
-
this.rowItem = rowItem;
|
|
175
|
-
this.rowIndex = rowIndex;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
class MngTableReloadEvent {
|
|
179
|
-
constructor() {
|
|
180
|
-
this.resetParams = false;
|
|
181
|
-
this.emitEvent = false;
|
|
182
|
-
}
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
class ActionDescriptor {
|
|
@@ -238,6 +241,9 @@ class ActionDescriptor {
|
|
|
238
241
|
get icon() {
|
|
239
242
|
return this._icon;
|
|
240
243
|
}
|
|
244
|
+
get tooltip() {
|
|
245
|
+
return this._tooltip;
|
|
246
|
+
}
|
|
241
247
|
get runFunction() {
|
|
242
248
|
if (!this._runFunction) {
|
|
243
249
|
throw new Error('Run function is not defined and cannot be invoked');
|
|
@@ -332,6 +338,10 @@ class ActionDescriptor {
|
|
|
332
338
|
this._icon = icon;
|
|
333
339
|
return this;
|
|
334
340
|
}
|
|
341
|
+
withTooltip(tooltip) {
|
|
342
|
+
this._title = tooltip;
|
|
343
|
+
return this;
|
|
344
|
+
}
|
|
335
345
|
withClassName(className) {
|
|
336
346
|
this._className = className;
|
|
337
347
|
return this;
|
|
@@ -519,6 +529,79 @@ var ActionLevelEnum;
|
|
|
519
529
|
ActionLevelEnum[ActionLevelEnum["Danger"] = 7] = "Danger";
|
|
520
530
|
})(ActionLevelEnum || (ActionLevelEnum = {}));
|
|
521
531
|
|
|
532
|
+
class DataProvider {
|
|
533
|
+
constructor(modelType, serviceType) {
|
|
534
|
+
this._modelType = modelType;
|
|
535
|
+
this._serviceType = serviceType;
|
|
536
|
+
}
|
|
537
|
+
get serviceType() {
|
|
538
|
+
return this._serviceType;
|
|
539
|
+
}
|
|
540
|
+
get modelType() {
|
|
541
|
+
return this._modelType;
|
|
542
|
+
}
|
|
543
|
+
get enumName() {
|
|
544
|
+
return this._enumName;
|
|
545
|
+
}
|
|
546
|
+
withServiceType(type) {
|
|
547
|
+
this._serviceType = type;
|
|
548
|
+
return this;
|
|
549
|
+
}
|
|
550
|
+
withEnumName(enumName) {
|
|
551
|
+
this._enumName = enumName;
|
|
552
|
+
return this;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
class EditorDataProvider extends DataProvider {
|
|
557
|
+
constructor(modelType, serviceType) {
|
|
558
|
+
super(modelType, serviceType);
|
|
559
|
+
this._fetch = (id) => throwError(`No fetch function provided for id ${id}.`);
|
|
560
|
+
}
|
|
561
|
+
get fetch() {
|
|
562
|
+
return this._fetch;
|
|
563
|
+
}
|
|
564
|
+
get create() {
|
|
565
|
+
return this._create;
|
|
566
|
+
}
|
|
567
|
+
get update() {
|
|
568
|
+
return this._update;
|
|
569
|
+
}
|
|
570
|
+
get delete() {
|
|
571
|
+
return this._delete;
|
|
572
|
+
}
|
|
573
|
+
withFetch(fetch) {
|
|
574
|
+
this._fetch = fetch;
|
|
575
|
+
return this;
|
|
576
|
+
}
|
|
577
|
+
withCreate(create) {
|
|
578
|
+
this._create = create;
|
|
579
|
+
return this;
|
|
580
|
+
}
|
|
581
|
+
withUpdate(update) {
|
|
582
|
+
this._update = update;
|
|
583
|
+
return this;
|
|
584
|
+
}
|
|
585
|
+
withDelete(deleteFn) {
|
|
586
|
+
this._delete = deleteFn;
|
|
587
|
+
return this;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
class LookupDataProvider extends DataProvider {
|
|
592
|
+
constructor(modelType, serviceType) {
|
|
593
|
+
super(modelType, serviceType);
|
|
594
|
+
this._lookup = () => of([]);
|
|
595
|
+
}
|
|
596
|
+
get lookup() {
|
|
597
|
+
return this._lookup;
|
|
598
|
+
}
|
|
599
|
+
withLookup(lookup) {
|
|
600
|
+
this._lookup = lookup;
|
|
601
|
+
return this;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
522
605
|
/* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
|
|
523
606
|
/**
|
|
524
607
|
* Generated API
|
|
@@ -783,76 +866,6 @@ const typeMapBase = {
|
|
|
783
866
|
'QueryResultWithObject': MediusQueryResultWithObject
|
|
784
867
|
};
|
|
785
868
|
|
|
786
|
-
class DataProvider {
|
|
787
|
-
constructor(modelType, serviceType) {
|
|
788
|
-
this._modelType = modelType;
|
|
789
|
-
this._serviceType = serviceType;
|
|
790
|
-
}
|
|
791
|
-
get serviceType() {
|
|
792
|
-
return this._serviceType;
|
|
793
|
-
}
|
|
794
|
-
get modelType() {
|
|
795
|
-
return this._modelType;
|
|
796
|
-
}
|
|
797
|
-
get enumName() {
|
|
798
|
-
return this._enumName;
|
|
799
|
-
}
|
|
800
|
-
withServiceType(type) {
|
|
801
|
-
this._serviceType = type;
|
|
802
|
-
return this;
|
|
803
|
-
}
|
|
804
|
-
withEnumName(enumName) {
|
|
805
|
-
this._enumName = enumName;
|
|
806
|
-
return this;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
class LookupDataProvider extends DataProvider {
|
|
810
|
-
constructor(modelType, serviceType) {
|
|
811
|
-
super(modelType, serviceType);
|
|
812
|
-
this._lookup = () => of([]);
|
|
813
|
-
}
|
|
814
|
-
get lookup() {
|
|
815
|
-
return this._lookup;
|
|
816
|
-
}
|
|
817
|
-
withLookup(lookup) {
|
|
818
|
-
this._lookup = lookup;
|
|
819
|
-
return this;
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
class EditorDataProvider extends DataProvider {
|
|
823
|
-
constructor(modelType, serviceType) {
|
|
824
|
-
super(modelType, serviceType);
|
|
825
|
-
this._fetch = (id) => throwError(`No fetch function provided for id ${id}.`);
|
|
826
|
-
}
|
|
827
|
-
get fetch() {
|
|
828
|
-
return this._fetch;
|
|
829
|
-
}
|
|
830
|
-
get create() {
|
|
831
|
-
return this._create;
|
|
832
|
-
}
|
|
833
|
-
get update() {
|
|
834
|
-
return this._update;
|
|
835
|
-
}
|
|
836
|
-
get delete() {
|
|
837
|
-
return this._delete;
|
|
838
|
-
}
|
|
839
|
-
withFetch(fetch) {
|
|
840
|
-
this._fetch = fetch;
|
|
841
|
-
return this;
|
|
842
|
-
}
|
|
843
|
-
withCreate(create) {
|
|
844
|
-
this._create = create;
|
|
845
|
-
return this;
|
|
846
|
-
}
|
|
847
|
-
withUpdate(update) {
|
|
848
|
-
this._update = update;
|
|
849
|
-
return this;
|
|
850
|
-
}
|
|
851
|
-
withDelete(deleteFn) {
|
|
852
|
-
this._delete = deleteFn;
|
|
853
|
-
return this;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
869
|
class TableviewDataProvider extends EditorDataProvider {
|
|
857
870
|
constructor(modelType, serviceType) {
|
|
858
871
|
super(modelType, serviceType);
|
|
@@ -867,27 +880,6 @@ class TableviewDataProvider extends EditorDataProvider {
|
|
|
867
880
|
}
|
|
868
881
|
}
|
|
869
882
|
|
|
870
|
-
class FieldValidator {
|
|
871
|
-
constructor(name, expression, message, options) {
|
|
872
|
-
this._name = name;
|
|
873
|
-
this._expression = expression;
|
|
874
|
-
this._message = message;
|
|
875
|
-
this._options = options;
|
|
876
|
-
}
|
|
877
|
-
get name() {
|
|
878
|
-
return this._name;
|
|
879
|
-
}
|
|
880
|
-
get expression() {
|
|
881
|
-
return this._expression;
|
|
882
|
-
}
|
|
883
|
-
get message() {
|
|
884
|
-
return this._message;
|
|
885
|
-
}
|
|
886
|
-
get options() {
|
|
887
|
-
return this._options;
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
883
|
class ObjectSerializer {
|
|
892
884
|
constructor() {
|
|
893
885
|
this._primitives = [
|
|
@@ -1902,6 +1894,27 @@ class FieldGroupDescriptor extends AFieldGroupDescriptor {
|
|
|
1902
1894
|
}
|
|
1903
1895
|
}
|
|
1904
1896
|
|
|
1897
|
+
class FieldValidator {
|
|
1898
|
+
constructor(name, expression, message, options) {
|
|
1899
|
+
this._name = name;
|
|
1900
|
+
this._expression = expression;
|
|
1901
|
+
this._message = message;
|
|
1902
|
+
this._options = options;
|
|
1903
|
+
}
|
|
1904
|
+
get name() {
|
|
1905
|
+
return this._name;
|
|
1906
|
+
}
|
|
1907
|
+
get expression() {
|
|
1908
|
+
return this._expression;
|
|
1909
|
+
}
|
|
1910
|
+
get message() {
|
|
1911
|
+
return this._message;
|
|
1912
|
+
}
|
|
1913
|
+
get options() {
|
|
1914
|
+
return this._options;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1905
1918
|
class ModelDescriptor {
|
|
1906
1919
|
constructor(modelType, idProperty, titleProperty) {
|
|
1907
1920
|
var _a, _b;
|
|
@@ -2823,6 +2836,48 @@ class ModelUtil {
|
|
|
2823
2836
|
}
|
|
2824
2837
|
}
|
|
2825
2838
|
|
|
2839
|
+
class ToastUtil {
|
|
2840
|
+
static tableNotificationError(translationService, table, error, tableview) {
|
|
2841
|
+
var _a, _b, _c;
|
|
2842
|
+
const params = {};
|
|
2843
|
+
if (error === null || error === void 0 ? void 0 : error.message) {
|
|
2844
|
+
params.errorMessage = `: ${error.message}`;
|
|
2845
|
+
}
|
|
2846
|
+
else {
|
|
2847
|
+
params.errorMessage = '.';
|
|
2848
|
+
}
|
|
2849
|
+
console.log(params);
|
|
2850
|
+
const tableErrorTitle = (_a = I18nUtil.instantModelTranslation(translationService, table.model, 'table.error.title', undefined, undefined, 'general.error', params)) !== null && _a !== void 0 ? _a : undefined;
|
|
2851
|
+
const tableErrorMessage = (_b = I18nUtil.instantModelTranslation(translationService, table.model, 'table.error.message', undefined, undefined, 'general.errorMessage', params)) !== null && _b !== void 0 ? _b : undefined;
|
|
2852
|
+
(_c = tableview === null || tableview === void 0 ? void 0 : tableview.messageService) === null || _c === void 0 ? void 0 : _c.add({ severity: 'error', summary: tableErrorTitle, detail: tableErrorMessage });
|
|
2853
|
+
}
|
|
2854
|
+
static actionNotificationSuccess(translationService, action, functionName, customTitleKey, customMessageKey, tableview, item) {
|
|
2855
|
+
var _a, _b, _c;
|
|
2856
|
+
const actionSuccessTitle = (_a = I18nUtil.instantActionTranslation(translationService, action, 'success.title', customTitleKey, item, 'general.success', functionName)) !== null && _a !== void 0 ? _a : undefined;
|
|
2857
|
+
const actionSuccessMessage = (_b = I18nUtil.instantActionTranslation(translationService, action, 'success.message', customMessageKey, item, 'general.successMessage', functionName)) !== null && _b !== void 0 ? _b : undefined;
|
|
2858
|
+
(_c = tableview === null || tableview === void 0 ? void 0 : tableview.messageService) === null || _c === void 0 ? void 0 : _c.add({ severity: 'success', summary: actionSuccessTitle, detail: actionSuccessMessage });
|
|
2859
|
+
}
|
|
2860
|
+
static actionNotificationError(translationService, action, error, functionName, tableview, item) {
|
|
2861
|
+
var _a, _b, _c;
|
|
2862
|
+
const params = {};
|
|
2863
|
+
if (error === null || error === void 0 ? void 0 : error.message) {
|
|
2864
|
+
params.errorMessage = `: ${error.message}`;
|
|
2865
|
+
}
|
|
2866
|
+
else {
|
|
2867
|
+
params.errorMessage = '.';
|
|
2868
|
+
}
|
|
2869
|
+
const actionErrorTitle = (_a = I18nUtil.instantActionTranslation(translationService, action, 'error.title', action.runNotificationErrorTitle, item, 'general.error', functionName, params)) !== null && _a !== void 0 ? _a : undefined;
|
|
2870
|
+
const actionErrorMessage = (_b = I18nUtil.instantActionTranslation(translationService, action, 'error.message', action.runNotificationErrorMessage, item, 'general.errorMessage', functionName, params)) !== null && _b !== void 0 ? _b : undefined;
|
|
2871
|
+
(_c = tableview === null || tableview === void 0 ? void 0 : tableview.messageService) === null || _c === void 0 ? void 0 : _c.add({ severity: 'error', summary: actionErrorTitle, detail: actionErrorMessage });
|
|
2872
|
+
}
|
|
2873
|
+
static getFormEditorWarningMessage(translationService, title, message) {
|
|
2874
|
+
var _a, _b;
|
|
2875
|
+
const actionErrorTitle = (_a = translationService.instant(title)) !== null && _a !== void 0 ? _a : undefined;
|
|
2876
|
+
const actionErrorMessage = (_b = translationService.instant(message)) !== null && _b !== void 0 ? _b : undefined;
|
|
2877
|
+
return { severity: 'warn', summary: actionErrorTitle, detail: actionErrorMessage };
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2826
2881
|
const typeNameDecoratorPropertyName = 'typeName';
|
|
2827
2882
|
function TypeName(typeName) {
|
|
2828
2883
|
return function (target) {
|
|
@@ -2867,49 +2922,7 @@ class TypeUtil {
|
|
|
2867
2922
|
}
|
|
2868
2923
|
}
|
|
2869
2924
|
|
|
2870
|
-
class
|
|
2871
|
-
static tableNotificationError(translationService, table, error, tableview) {
|
|
2872
|
-
var _a, _b, _c;
|
|
2873
|
-
const params = {};
|
|
2874
|
-
if (error === null || error === void 0 ? void 0 : error.message) {
|
|
2875
|
-
params.errorMessage = `: ${error.message}`;
|
|
2876
|
-
}
|
|
2877
|
-
else {
|
|
2878
|
-
params.errorMessage = '.';
|
|
2879
|
-
}
|
|
2880
|
-
console.log(params);
|
|
2881
|
-
const tableErrorTitle = (_a = I18nUtil.instantModelTranslation(translationService, table.model, 'table.error.title', undefined, undefined, 'general.error', params)) !== null && _a !== void 0 ? _a : undefined;
|
|
2882
|
-
const tableErrorMessage = (_b = I18nUtil.instantModelTranslation(translationService, table.model, 'table.error.message', undefined, undefined, 'general.errorMessage', params)) !== null && _b !== void 0 ? _b : undefined;
|
|
2883
|
-
(_c = tableview === null || tableview === void 0 ? void 0 : tableview.messageService) === null || _c === void 0 ? void 0 : _c.add({ severity: 'error', summary: tableErrorTitle, detail: tableErrorMessage });
|
|
2884
|
-
}
|
|
2885
|
-
static actionNotificationSuccess(translationService, action, functionName, customTitleKey, customMessageKey, tableview, item) {
|
|
2886
|
-
var _a, _b, _c;
|
|
2887
|
-
const actionSuccessTitle = (_a = I18nUtil.instantActionTranslation(translationService, action, 'success.title', customTitleKey, item, 'general.success', functionName)) !== null && _a !== void 0 ? _a : undefined;
|
|
2888
|
-
const actionSuccessMessage = (_b = I18nUtil.instantActionTranslation(translationService, action, 'success.message', customMessageKey, item, 'general.successMessage', functionName)) !== null && _b !== void 0 ? _b : undefined;
|
|
2889
|
-
(_c = tableview === null || tableview === void 0 ? void 0 : tableview.messageService) === null || _c === void 0 ? void 0 : _c.add({ severity: 'success', summary: actionSuccessTitle, detail: actionSuccessMessage });
|
|
2890
|
-
}
|
|
2891
|
-
static actionNotificationError(translationService, action, error, functionName, tableview, item) {
|
|
2892
|
-
var _a, _b, _c;
|
|
2893
|
-
const params = {};
|
|
2894
|
-
if (error === null || error === void 0 ? void 0 : error.message) {
|
|
2895
|
-
params.errorMessage = `: ${error.message}`;
|
|
2896
|
-
}
|
|
2897
|
-
else {
|
|
2898
|
-
params.errorMessage = '.';
|
|
2899
|
-
}
|
|
2900
|
-
const actionErrorTitle = (_a = I18nUtil.instantActionTranslation(translationService, action, 'error.title', action.runNotificationErrorTitle, item, 'general.error', functionName, params)) !== null && _a !== void 0 ? _a : undefined;
|
|
2901
|
-
const actionErrorMessage = (_b = I18nUtil.instantActionTranslation(translationService, action, 'error.message', action.runNotificationErrorMessage, item, 'general.errorMessage', functionName, params)) !== null && _b !== void 0 ? _b : undefined;
|
|
2902
|
-
(_c = tableview === null || tableview === void 0 ? void 0 : tableview.messageService) === null || _c === void 0 ? void 0 : _c.add({ severity: 'error', summary: actionErrorTitle, detail: actionErrorMessage });
|
|
2903
|
-
}
|
|
2904
|
-
static getFormEditorWarningMessage(translationService, title, message) {
|
|
2905
|
-
var _a, _b;
|
|
2906
|
-
const actionErrorTitle = (_a = translationService.instant(title)) !== null && _a !== void 0 ? _a : undefined;
|
|
2907
|
-
const actionErrorMessage = (_b = translationService.instant(message)) !== null && _b !== void 0 ? _b : undefined;
|
|
2908
|
-
return { severity: 'warn', summary: actionErrorTitle, detail: actionErrorMessage };
|
|
2909
|
-
}
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
class FormEditorComponent {
|
|
2925
|
+
class MngFormEditorComponent {
|
|
2913
2926
|
constructor(translateService) {
|
|
2914
2927
|
this.translateService = translateService;
|
|
2915
2928
|
this.submitLoading = false;
|
|
@@ -2964,7 +2977,7 @@ class FormEditorComponent {
|
|
|
2964
2977
|
field.setter(formSubmitItem, this.form.value[field.property]);
|
|
2965
2978
|
}
|
|
2966
2979
|
});
|
|
2967
|
-
this.submitEventEmitter.next(new
|
|
2980
|
+
this.submitEventEmitter.next(new MngFormEditorSubmitEvent(formSubmitItem));
|
|
2968
2981
|
}
|
|
2969
2982
|
else {
|
|
2970
2983
|
// find and mark invalid tabs
|
|
@@ -2974,7 +2987,7 @@ class FormEditorComponent {
|
|
|
2974
2987
|
this.formOptions.formState['tab_' + (tab.id ? tab.id : (_a = tab.templateOptions) === null || _a === void 0 ? void 0 : _a.label) + '_invalid'] = isInvalid;
|
|
2975
2988
|
}
|
|
2976
2989
|
}
|
|
2977
|
-
const event = new
|
|
2990
|
+
const event = new MngFormEditorSubmitEvent(formSubmitItem);
|
|
2978
2991
|
event.success = false;
|
|
2979
2992
|
this.formMessages.push(ToastUtil.getFormEditorWarningMessage(this.translateService, 'mngEditor.invalidFormToastTitle', 'mngEditor.invalidFormToastMessage'));
|
|
2980
2993
|
this.submitEventEmitter.next(event);
|
|
@@ -3014,9 +3027,9 @@ class FormEditorComponent {
|
|
|
3014
3027
|
this.formOptions.formState.disabled = this.isFormDisabled !== null ? this.isFormDisabled === true : this.descriptor.disabled;
|
|
3015
3028
|
}
|
|
3016
3029
|
}
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
3030
|
+
MngFormEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormEditorComponent, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3031
|
+
MngFormEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormEditorComponent, selector: "mng-form-editor", inputs: { descriptor: "descriptor", submitLoading: "submitLoading", item: "item", isSubmitButtonVisible: "isSubmitButtonVisible", isFormDisabled: "isFormDisabled" }, outputs: { submitEventEmitter: "onSubmit" }, queries: [{ propertyName: "templates", predicate: MngTemplateDirective }], viewQueries: [{ propertyName: "submitButtonElementRef", first: true, predicate: ["submitButton"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"onSubmit($event)\">\n <formly-form [form]=\"form\" [fields]=\"formFields\" [options]=\"formOptions\" [model]=\"formModel\"></formly-form>\n <button #submitButton pButton type=\"submit\" [class.hidden]=\"!isSubmitButtonVisible\" [disabled]=\"form.disabled\" [loading]=\"(submitLoading$ | async) ?? false\"></button>\n</form>\n<p-messages [value]=\"formMessages\" [enableService]=\"false\"></p-messages>\n", components: [{ type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { type: i3$1.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange"] }], directives: [{ type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormEditorComponent, decorators: [{
|
|
3020
3033
|
type: Component,
|
|
3021
3034
|
args: [{ selector: 'mng-form-editor', changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"form\" (ngSubmit)=\"onSubmit($event)\">\n <formly-form [form]=\"form\" [fields]=\"formFields\" [options]=\"formOptions\" [model]=\"formModel\"></formly-form>\n <button #submitButton pButton type=\"submit\" [class.hidden]=\"!isSubmitButtonVisible\" [disabled]=\"form.disabled\" [loading]=\"(submitLoading$ | async) ?? false\"></button>\n</form>\n<p-messages [value]=\"formMessages\" [enableService]=\"false\"></p-messages>\n" }]
|
|
3022
3035
|
}], ctorParameters: function () { return [{ type: i2.TranslateService }]; }, propDecorators: { descriptor: [{
|
|
@@ -3034,7 +3047,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3034
3047
|
args: ['onSubmit']
|
|
3035
3048
|
}], templates: [{
|
|
3036
3049
|
type: ContentChildren,
|
|
3037
|
-
args: [
|
|
3050
|
+
args: [MngTemplateDirective]
|
|
3038
3051
|
}], submitButtonElementRef: [{
|
|
3039
3052
|
type: ViewChild,
|
|
3040
3053
|
args: ['submitButton']
|
|
@@ -3118,7 +3131,7 @@ class MngAutocompleteComponent {
|
|
|
3118
3131
|
}
|
|
3119
3132
|
}
|
|
3120
3133
|
MngAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngAutocompleteComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3121
|
-
MngAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsLabelProperty: "itemsLabelProperty", multiselect: "multiselect", placeholder: "placeholder", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { onChange: "onChange" }, providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeAutocomplete", first: true, predicate: AutoComplete, descendants: true }], ngImport: i0, template: "<p-autoComplete [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutcomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n", components: [{ type: i1.AutoComplete, selector: "p-autoComplete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "virtualScroll", "itemSize", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "field", "scrollHeight", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "suggestions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide"] }], directives: [{ type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async":
|
|
3134
|
+
MngAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsLabelProperty: "itemsLabelProperty", multiselect: "multiselect", placeholder: "placeholder", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { onChange: "onChange" }, providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeAutocomplete", first: true, predicate: AutoComplete, descendants: true }], ngImport: i0, template: "<p-autoComplete [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutcomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n", components: [{ type: i1.AutoComplete, selector: "p-autoComplete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "virtualScroll", "itemSize", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "field", "scrollHeight", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "suggestions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide"] }], directives: [{ type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i4.AsyncPipe, "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3122
3135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngAutocompleteComponent, decorators: [{
|
|
3123
3136
|
type: Component,
|
|
3124
3137
|
args: [{ selector: 'mng-autocomplete', providers: [MNG_AUTOCOMPLETE_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-autoComplete [formControl]=\"autocompleteFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dropdown]=\"true\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [field]=\"$any(itemsLabelProperty)\"\n [suggestions]=\"(suggestions$ | async) ?? []\"\n [multiple]=\"multiselect\"\n [showEmptyMessage]=\"true\"\n [emptyMessage]=\"'mngAutcomplete.noMatches' | translate\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n (completeMethod)=\"onSearch($event)\"\n (onSelect)=\"onSelect($event)\"\n appendTo=\"body\"\n dropdownMode=\"current\">\n</p-autoComplete>\n" }]
|
|
@@ -3218,7 +3231,7 @@ class MngDropdownComponent {
|
|
|
3218
3231
|
}
|
|
3219
3232
|
}
|
|
3220
3233
|
MngDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngDropdownComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3221
|
-
MngDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngDropdownComponent, selector: "mng-dropdown", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsLabelProperty: "itemsLabelProperty", itemsValueProperty: "itemsValueProperty", multiselect: "multiselect", placeholder: "placeholder", showClear: "showClear", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { onChange: "onChange" }, providers: [MNG_DROPDOWN_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeDropdown", first: true, predicate: Dropdown, descendants: true }], ngImport: i0, template: "<p-dropdown *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [showClear]=\"showClear\"\n [autoDisplayFirst]=\"false\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n (onChange)=\"onChange.emit($event.value)\"\n appendTo=\"body\">\n</p-dropdown>\n<ng-template #pMultiselect>\n <p-multiSelect display=\"chip\"\n [formControl]=\"dropdownFormControl\"\n [defaultLabel]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [filter]=\"false\"\n (onChange)=\"onChange.emit($event.value)\"\n appendTo=\"body\">\n </p-multiSelect>\n</ng-template>\n", components: [{ type: i1$1.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear"] }, { type: i2$2.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "virtualScroll", "itemSize", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "scrollHeight", "defaultLabel", "placeholder", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onPanelShow", "onPanelHide"] }], directives: [{ type:
|
|
3234
|
+
MngDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngDropdownComponent, selector: "mng-dropdown", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsLabelProperty: "itemsLabelProperty", itemsValueProperty: "itemsValueProperty", multiselect: "multiselect", placeholder: "placeholder", showClear: "showClear", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { onChange: "onChange" }, providers: [MNG_DROPDOWN_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeDropdown", first: true, predicate: Dropdown, descendants: true }], ngImport: i0, template: "<p-dropdown *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [showClear]=\"showClear\"\n [autoDisplayFirst]=\"false\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n (onChange)=\"onChange.emit($event.value)\"\n appendTo=\"body\">\n</p-dropdown>\n<ng-template #pMultiselect>\n <p-multiSelect display=\"chip\"\n [formControl]=\"dropdownFormControl\"\n [defaultLabel]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [filter]=\"false\"\n (onChange)=\"onChange.emit($event.value)\"\n appendTo=\"body\">\n </p-multiSelect>\n</ng-template>\n", components: [{ type: i1$1.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear"] }, { type: i2$2.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "virtualScroll", "itemSize", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "scrollHeight", "defaultLabel", "placeholder", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onPanelShow", "onPanelHide"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3222
3235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngDropdownComponent, decorators: [{
|
|
3223
3236
|
type: Component,
|
|
3224
3237
|
args: [{ selector: 'mng-dropdown', providers: [MNG_DROPDOWN_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-dropdown *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [showClear]=\"showClear\"\n [autoDisplayFirst]=\"false\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n (onChange)=\"onChange.emit($event.value)\"\n appendTo=\"body\">\n</p-dropdown>\n<ng-template #pMultiselect>\n <p-multiSelect display=\"chip\"\n [formControl]=\"dropdownFormControl\"\n [defaultLabel]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [filter]=\"false\"\n (onChange)=\"onChange.emit($event.value)\"\n appendTo=\"body\">\n </p-multiSelect>\n</ng-template>\n" }]
|
|
@@ -3305,7 +3318,6 @@ class ActionTriggerResult {
|
|
|
3305
3318
|
}
|
|
3306
3319
|
}
|
|
3307
3320
|
|
|
3308
|
-
// TODO: check if legit solution
|
|
3309
3321
|
class TableviewComponentService {
|
|
3310
3322
|
constructor() {
|
|
3311
3323
|
this.actions = [];
|
|
@@ -3321,7 +3333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3321
3333
|
type: Injectable
|
|
3322
3334
|
}], ctorParameters: function () { return []; } });
|
|
3323
3335
|
|
|
3324
|
-
class
|
|
3336
|
+
class MngActionComponent {
|
|
3325
3337
|
constructor(route, translate, actionService, confirmationService, tableviewService) {
|
|
3326
3338
|
this.route = route;
|
|
3327
3339
|
this.translate = translate;
|
|
@@ -3334,11 +3346,12 @@ class ActionComponent {
|
|
|
3334
3346
|
this.loadingSubject.next(false);
|
|
3335
3347
|
}
|
|
3336
3348
|
ngOnInit() {
|
|
3337
|
-
var _a, _b, _c, _d;
|
|
3349
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3338
3350
|
const context = this.actionService.getActionExecContext(this.action, this.itemId, this.item, (_b = (_a = this.tableviewService) === null || _a === void 0 ? void 0 : _a.dataProvider) !== null && _b !== void 0 ? _b : undefined, this.tableviewService, this, this.actionData);
|
|
3339
3351
|
this.$isVisible = typeof this.action.isVisibleFunction === 'function' ? this.action.isVisibleFunction(context) : of(true);
|
|
3340
3352
|
this.$isEnabled = typeof this.action.isEnabledFunction === 'function' ? this.action.isEnabledFunction(context) : of(true);
|
|
3341
3353
|
this.$label = I18nUtil.streamActionTranslation(this.translate, this.action, 'title', (_d = (_c = this.action) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : undefined, this.item);
|
|
3354
|
+
this.$tooltip = I18nUtil.streamActionTranslation(this.translate, this.action, 'tooltip', (_f = (_e = this.action) === null || _e === void 0 ? void 0 : _e.tooltip) !== null && _f !== void 0 ? _f : undefined, this.item);
|
|
3342
3355
|
}
|
|
3343
3356
|
triggerAction(event) {
|
|
3344
3357
|
this.loadingSubject.next(true);
|
|
@@ -3355,11 +3368,11 @@ class ActionComponent {
|
|
|
3355
3368
|
return `${action.actionName}_${this.cmpId}`;
|
|
3356
3369
|
}
|
|
3357
3370
|
}
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
3371
|
+
MngActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngActionComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: i2.TranslateService }, { token: MngActionService }, { token: i2$3.ConfirmationService }, { token: TableviewComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3372
|
+
MngActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngActionComponent, selector: "mng-action", inputs: { action: "action", item: "item", itemId: "itemId", actionData: "actionData" }, providers: [MessageService, ConfirmationService], ngImport: i0, template: "<ng-container *ngIf=\"$isVisible | async\">\n <button *ngIf=\"action.icon && action.title === null; else noIcon\" type=\"button\"\n pButton pRipple\n [icon]=\"action.icon\"\n [loading]=\"($loading | async) ?? false\"\n [disabled]=\"!($isEnabled | async)\"\n [pTooltip]=\"$any($tooltip | async)\"\n (click)=\"triggerAction($event)\"\n class=\"mng-action-button mng-action-button-icon p-button-rounded\"\n [class.p-button-primary]=\"action.level === 1\"\n [class.p-button-success]=\"action.level === 5\"\n [class.p-button-danger]=\"action.level === 7\">\n </button>\n <ng-template #noIcon>\n <button type=\"button\"\n pButton pRipple\n [icon]=\"$any(action.icon)\"\n [label]=\"($label | async) ?? ''\"\n [loading]=\"($loading | async) ?? false\"\n [disabled]=\"!($isEnabled | async)\"\n [pTooltip]=\"$any($tooltip | async)\"\n (click)=\"triggerAction($event)\"\n class=\"mng-action-button p-button-text\"\n [class.p-button-primary]=\"action.level === 1\"\n [class.p-button-success]=\"action.level === 5\"\n [class.p-button-danger]=\"action.level === 7\">\n </button>\n </ng-template>\n <p-confirmDialog *ngIf=\"action.hasRunConfirmation\" [key]=\"action.actionName + '_' + cmpId\" [baseZIndex]=\"50\" appendTo=\"body\"></p-confirmDialog>\n</ng-container>\n", components: [{ type: i6.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9.Ripple, selector: "[pRipple]" }, { type: i10.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngActionComponent, decorators: [{
|
|
3361
3374
|
type: Component,
|
|
3362
|
-
args: [{ selector: 'mng-action', changeDetection: ChangeDetectionStrategy.OnPush, providers: [MessageService, ConfirmationService], template: "<ng-container *ngIf=\"$isVisible | async\">\n <button *ngIf=\"action.icon && action.title === null; else noIcon\" type=\"button\"\n pButton pRipple\n [icon]=\"action.icon\"\n [loading]=\"($loading | async) ?? false\"\n [disabled]=\"!($isEnabled | async)\"\n (click)=\"triggerAction($event)\"\n class=\"mng-action-button mng-action-button-icon p-button-rounded\"\n [class.p-button-success]=\"action.level === 5\"\n [class.p-button-danger]=\"action.level === 7\">\n </button>\n <ng-template #noIcon>\n <button type=\"button\"\n pButton pRipple\n [icon]=\"$any(action.icon)\"\n [label]=\"($label | async) ?? ''\"\n [loading]=\"($loading | async) ?? false\"\n [disabled]=\"!($isEnabled | async)\"\n (click)=\"triggerAction($event)\"\n class=\"mng-action-button p-button-text\"\n [class.p-button-success]=\"action.level === 5\"\n [class.p-button-danger]=\"action.level === 7\">\n </button>\n </ng-template>\n <p-confirmDialog *ngIf=\"action.hasRunConfirmation\" [key]=\"action.actionName + '_' + cmpId\" [baseZIndex]=\"50\" appendTo=\"body\"></p-confirmDialog>\n</ng-container>\n" }]
|
|
3375
|
+
args: [{ selector: 'mng-action', changeDetection: ChangeDetectionStrategy.OnPush, providers: [MessageService, ConfirmationService], template: "<ng-container *ngIf=\"$isVisible | async\">\n <button *ngIf=\"action.icon && action.title === null; else noIcon\" type=\"button\"\n pButton pRipple\n [icon]=\"action.icon\"\n [loading]=\"($loading | async) ?? false\"\n [disabled]=\"!($isEnabled | async)\"\n [pTooltip]=\"$any($tooltip | async)\"\n (click)=\"triggerAction($event)\"\n class=\"mng-action-button mng-action-button-icon p-button-rounded\"\n [class.p-button-primary]=\"action.level === 1\"\n [class.p-button-success]=\"action.level === 5\"\n [class.p-button-danger]=\"action.level === 7\">\n </button>\n <ng-template #noIcon>\n <button type=\"button\"\n pButton pRipple\n [icon]=\"$any(action.icon)\"\n [label]=\"($label | async) ?? ''\"\n [loading]=\"($loading | async) ?? false\"\n [disabled]=\"!($isEnabled | async)\"\n [pTooltip]=\"$any($tooltip | async)\"\n (click)=\"triggerAction($event)\"\n class=\"mng-action-button p-button-text\"\n [class.p-button-primary]=\"action.level === 1\"\n [class.p-button-success]=\"action.level === 5\"\n [class.p-button-danger]=\"action.level === 7\">\n </button>\n </ng-template>\n <p-confirmDialog *ngIf=\"action.hasRunConfirmation\" [key]=\"action.actionName + '_' + cmpId\" [baseZIndex]=\"50\" appendTo=\"body\"></p-confirmDialog>\n</ng-container>\n" }]
|
|
3363
3376
|
}], ctorParameters: function () { return [{ type: i1$2.ActivatedRoute }, { type: i2.TranslateService }, { type: MngActionService }, { type: i2$3.ConfirmationService }, { type: TableviewComponentService }]; }, propDecorators: { action: [{
|
|
3364
3377
|
type: Input
|
|
3365
3378
|
}], item: [{
|
|
@@ -3370,7 +3383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3370
3383
|
type: Input
|
|
3371
3384
|
}] } });
|
|
3372
3385
|
|
|
3373
|
-
class
|
|
3386
|
+
class MngActionRouteComponent {
|
|
3374
3387
|
constructor(router, route, confirmationService, navigationService, actionService, tableviewService) {
|
|
3375
3388
|
this.router = router;
|
|
3376
3389
|
this.route = route;
|
|
@@ -3421,9 +3434,10 @@ class ActionRouteComponent {
|
|
|
3421
3434
|
this.actionService.activateAction(action, itemId, undefined, actionData, this.tableviewService, this)
|
|
3422
3435
|
.pipe(first())
|
|
3423
3436
|
.subscribe(res => {
|
|
3437
|
+
var _a;
|
|
3424
3438
|
if (res.dialogRef) {
|
|
3425
3439
|
this.dialogRef = res.dialogRef;
|
|
3426
|
-
this.dialogCloseSubscription = this.dialogRef.onClose.subscribe(e => {
|
|
3440
|
+
this.dialogCloseSubscription = (_a = this.dialogRef) === null || _a === void 0 ? void 0 : _a.onClose.subscribe(e => {
|
|
3427
3441
|
var _a;
|
|
3428
3442
|
const actionEv = e;
|
|
3429
3443
|
if (!(actionEv === null || actionEv === void 0 ? void 0 : actionEv.error) || !((_a = actionEv === null || actionEv === void 0 ? void 0 : actionEv.error) === null || _a === void 0 ? void 0 : _a.dismissed)) {
|
|
@@ -3501,24 +3515,20 @@ class ActionRouteComponent {
|
|
|
3501
3515
|
return null;
|
|
3502
3516
|
}
|
|
3503
3517
|
}
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
3518
|
+
MngActionRouteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngActionRouteComponent, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: i2$3.ConfirmationService }, { token: MngNavigationService }, { token: MngActionService }, { token: TableviewComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3519
|
+
MngActionRouteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngActionRouteComponent, selector: "mng-action-route", providers: [MessageService, ConfirmationService], ngImport: i0, template: "<p-confirmDialog [key]=\"'actionRoute_' + cmpId\" [baseZIndex]=\"50\" appendTo=\"body\"></p-confirmDialog>\n", components: [{ type: i6.ConfirmDialog, selector: "p-confirmDialog", inputs: ["header", "icon", "message", "style", "styleClass", "maskStyleClass", "acceptIcon", "acceptLabel", "acceptAriaLabel", "acceptVisible", "rejectIcon", "rejectLabel", "rejectAriaLabel", "rejectVisible", "acceptButtonStyleClass", "rejectButtonStyleClass", "closeOnEscape", "dismissableMask", "blockScroll", "rtl", "closable", "appendTo", "key", "autoZIndex", "baseZIndex", "transitionOptions", "focusTrap", "defaultFocus", "breakpoints", "visible", "position"], outputs: ["onHide"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngActionRouteComponent, decorators: [{
|
|
3507
3521
|
type: Component,
|
|
3508
3522
|
args: [{ selector: 'mng-action-route', changeDetection: ChangeDetectionStrategy.OnPush, providers: [MessageService, ConfirmationService], template: "<p-confirmDialog [key]=\"'actionRoute_' + cmpId\" [baseZIndex]=\"50\" appendTo=\"body\"></p-confirmDialog>\n" }]
|
|
3509
3523
|
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i2$3.ConfirmationService }, { type: MngNavigationService }, { type: MngActionService }, { type: TableviewComponentService }]; } });
|
|
3510
3524
|
|
|
3511
|
-
class
|
|
3512
|
-
constructor(injector, translate, dialogRef, dialogConfig, actionService
|
|
3525
|
+
class MngActionDialogComponent {
|
|
3526
|
+
constructor(injector, translate, dialogRef, dialogConfig, actionService) {
|
|
3513
3527
|
this.injector = injector;
|
|
3514
3528
|
this.translate = translate;
|
|
3515
3529
|
this.dialogRef = dialogRef;
|
|
3516
3530
|
this.dialogConfig = dialogConfig;
|
|
3517
3531
|
this.actionService = actionService;
|
|
3518
|
-
this.mngCommonsService = mngCommonsService;
|
|
3519
|
-
// event outputs
|
|
3520
|
-
this.createEventEmitter = new EventEmitter();
|
|
3521
|
-
this.visibleChangeEventEmitter = new EventEmitter();
|
|
3522
3532
|
this.cmpId = Math.random().toString(36).substring(2);
|
|
3523
3533
|
this.loadingSubject = new ReplaySubject(1);
|
|
3524
3534
|
this.submitLoadingSubject = new ReplaySubject(1);
|
|
@@ -3613,18 +3623,18 @@ class ActionDialogComponent {
|
|
|
3613
3623
|
.subscribe(t => {
|
|
3614
3624
|
requestAnimationFrame(() => {
|
|
3615
3625
|
this.dialogConfig.header = t !== null && t !== void 0 ? t : undefined;
|
|
3616
|
-
this.mngCommonsService.setPageTitle(t
|
|
3626
|
+
// this.mngCommonsService.setPageTitle(t ?? undefined);
|
|
3617
3627
|
});
|
|
3618
3628
|
});
|
|
3619
3629
|
this.subscriptions.push(subscription);
|
|
3620
3630
|
}
|
|
3621
3631
|
}
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
3632
|
+
MngActionDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngActionDialogComponent, deps: [{ token: i0.Injector }, { token: i2.TranslateService }, { token: i2$4.DynamicDialogRef }, { token: i2$4.DynamicDialogConfig }, { token: MngActionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3633
|
+
MngActionDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngActionDialogComponent, selector: "mng-action-dialog", inputs: { action: "action", itemId: "itemId", item: "item", actionData: "actionData", dataProvider: "dataProvider" }, queries: [{ propertyName: "templates", predicate: MngTemplateDirective }], viewQueries: [{ propertyName: "submitButtonElementRef", first: true, predicate: ["submitButton"], descendants: true }, { propertyName: "editorComponent", first: true, predicate: MngFormEditorComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-full flex flex-column\">\n <div class=\"flex-grow-1\">\n <div class=\"text-center\" *ngIf=\"loading$ | async\">\n <p-progressSpinner [style]=\"{width: '3rem', height: '3rem'}\" strokeWidth=\"3\"></p-progressSpinner>\n </div>\n <mng-form-editor *ngIf=\"action.editorDescriptor && !(loading$ | async)\"\n [descriptor]=\"action.editorDescriptor\"\n [item]=\"item\"\n (onSubmit)=\"onSubmit($event)\">\n </mng-form-editor>\n </div>\n <div class=\"flex flex-row justify-content-between\">\n <div></div>\n <div>\n <button type=\"button\" pButton pRipple [label]=\"'general.close' | translate\" icon=\"pi pi-times\" class=\"p-button-text\" (click)=\"closeDialog()\" [disabled]=\"submitLoading$ | async\"></button>\n <button *ngIf=\"isSaveButton\" #submitButton type=\"button\" pButton pRipple\n [label]=\"'general.save' | translate\"\n icon=\"pi pi-check\"\n class=\"p-button-text\"\n (click)=\"saveItem()\"\n [loading]=\"(submitLoading$ | async) ?? false\"\n [disabled]=\"(submitLoading$ | async) ?? false\">\n </button>\n </div>\n </div>\n</div>\n", components: [{ type: i4$1.ProgressSpinner, selector: "p-progressSpinner", inputs: ["style", "styleClass", "strokeWidth", "fill", "animationDuration"] }, { type: MngFormEditorComponent, selector: "mng-form-editor", inputs: ["descriptor", "submitLoading", "item", "isSubmitButtonVisible", "isFormDisabled"], outputs: ["onSubmit"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9.Ripple, selector: "[pRipple]" }], pipes: { "async": i4.AsyncPipe, "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngActionDialogComponent, decorators: [{
|
|
3625
3635
|
type: Component,
|
|
3626
3636
|
args: [{ selector: 'mng-action-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"h-full flex flex-column\">\n <div class=\"flex-grow-1\">\n <div class=\"text-center\" *ngIf=\"loading$ | async\">\n <p-progressSpinner [style]=\"{width: '3rem', height: '3rem'}\" strokeWidth=\"3\"></p-progressSpinner>\n </div>\n <mng-form-editor *ngIf=\"action.editorDescriptor && !(loading$ | async)\"\n [descriptor]=\"action.editorDescriptor\"\n [item]=\"item\"\n (onSubmit)=\"onSubmit($event)\">\n </mng-form-editor>\n </div>\n <div class=\"flex flex-row justify-content-between\">\n <div></div>\n <div>\n <button type=\"button\" pButton pRipple [label]=\"'general.close' | translate\" icon=\"pi pi-times\" class=\"p-button-text\" (click)=\"closeDialog()\" [disabled]=\"submitLoading$ | async\"></button>\n <button *ngIf=\"isSaveButton\" #submitButton type=\"button\" pButton pRipple\n [label]=\"'general.save' | translate\"\n icon=\"pi pi-check\"\n class=\"p-button-text\"\n (click)=\"saveItem()\"\n [loading]=\"(submitLoading$ | async) ?? false\"\n [disabled]=\"(submitLoading$ | async) ?? false\">\n </button>\n </div>\n </div>\n</div>\n" }]
|
|
3627
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.TranslateService }, { type: i2$4.DynamicDialogRef }, { type: i2$4.DynamicDialogConfig }, { type: MngActionService }
|
|
3637
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.TranslateService }, { type: i2$4.DynamicDialogRef }, { type: i2$4.DynamicDialogConfig }, { type: MngActionService }]; }, propDecorators: { action: [{
|
|
3628
3638
|
type: Input
|
|
3629
3639
|
}], itemId: [{
|
|
3630
3640
|
type: Input
|
|
@@ -3634,21 +3644,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3634
3644
|
type: Input
|
|
3635
3645
|
}], dataProvider: [{
|
|
3636
3646
|
type: Input
|
|
3637
|
-
}], createEventEmitter: [{
|
|
3638
|
-
type: Output,
|
|
3639
|
-
args: ['onFinished']
|
|
3640
|
-
}], visibleChangeEventEmitter: [{
|
|
3641
|
-
type: Output,
|
|
3642
|
-
args: ['onVisibleChange']
|
|
3643
3647
|
}], templates: [{
|
|
3644
3648
|
type: ContentChildren,
|
|
3645
|
-
args: [
|
|
3649
|
+
args: [MngTemplateDirective]
|
|
3646
3650
|
}], submitButtonElementRef: [{
|
|
3647
3651
|
type: ViewChild,
|
|
3648
3652
|
args: ['submitButton']
|
|
3649
3653
|
}], editorComponent: [{
|
|
3650
3654
|
type: ViewChild,
|
|
3651
|
-
args: [
|
|
3655
|
+
args: [MngFormEditorComponent]
|
|
3652
3656
|
}] } });
|
|
3653
3657
|
|
|
3654
3658
|
class MngActionService {
|
|
@@ -3843,7 +3847,7 @@ class MngActionService {
|
|
|
3843
3847
|
if (sourceComponent) {
|
|
3844
3848
|
dialogConfig.data.sourceComponent = sourceComponent;
|
|
3845
3849
|
}
|
|
3846
|
-
const dialogRef = this.dialogService.open(
|
|
3850
|
+
const dialogRef = this.dialogService.open(MngActionDialogComponent, dialogConfig);
|
|
3847
3851
|
return of(new ActionActivationResult(undefined, dialogRef));
|
|
3848
3852
|
}
|
|
3849
3853
|
else {
|
|
@@ -3938,6 +3942,7 @@ class MngConfigurationService {
|
|
|
3938
3942
|
*/
|
|
3939
3943
|
addEnvironmentSource(environment) {
|
|
3940
3944
|
this.projectEnvironment = environment;
|
|
3945
|
+
this.mergeConfigs();
|
|
3941
3946
|
}
|
|
3942
3947
|
/**
|
|
3943
3948
|
* Adds new config source from JSON file.
|
|
@@ -3990,12 +3995,13 @@ class MngConfigurationService {
|
|
|
3990
3995
|
}
|
|
3991
3996
|
MngConfigurationService._instance = null;
|
|
3992
3997
|
|
|
3993
|
-
const
|
|
3994
|
-
|
|
3995
|
-
const BROWSER_STORAGE_IT = new InjectionToken('Browser storage', {
|
|
3998
|
+
const MNG_BROWSER_STORAGE_IT = new InjectionToken('Browser storage', {
|
|
3996
3999
|
providedIn: 'root',
|
|
3997
4000
|
factory: () => localStorage
|
|
3998
|
-
});
|
|
4001
|
+
});
|
|
4002
|
+
|
|
4003
|
+
const MNG_MODULE_CONFIG_IT = new InjectionToken('MngModuleConfig');
|
|
4004
|
+
|
|
3999
4005
|
class MngCommonsService {
|
|
4000
4006
|
constructor(router, primengConfig, translate, titleService, configurationService, moduleConfig, localStorage) {
|
|
4001
4007
|
this.router = router;
|
|
@@ -4333,17 +4339,17 @@ class MngCommonsService {
|
|
|
4333
4339
|
return titlePieces.join(' - ');
|
|
4334
4340
|
}
|
|
4335
4341
|
}
|
|
4336
|
-
MngCommonsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsService, deps: [{ token: i1$2.Router }, { token: i2$3.PrimeNGConfig }, { token: i2.TranslateService }, { token: i4$
|
|
4342
|
+
MngCommonsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsService, deps: [{ token: i1$2.Router }, { token: i2$3.PrimeNGConfig }, { token: i2.TranslateService }, { token: i4$2.Title }, { token: MngConfigurationService }, { token: MNG_MODULE_CONFIG_IT }, { token: MNG_BROWSER_STORAGE_IT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4337
4343
|
MngCommonsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsService });
|
|
4338
4344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsService, decorators: [{
|
|
4339
4345
|
type: Injectable
|
|
4340
4346
|
}], ctorParameters: function () {
|
|
4341
|
-
return [{ type: i1$2.Router }, { type: i2$3.PrimeNGConfig }, { type: i2.TranslateService }, { type: i4$
|
|
4347
|
+
return [{ type: i1$2.Router }, { type: i2$3.PrimeNGConfig }, { type: i2.TranslateService }, { type: i4$2.Title }, { type: MngConfigurationService }, { type: undefined, decorators: [{
|
|
4342
4348
|
type: Inject,
|
|
4343
4349
|
args: [MNG_MODULE_CONFIG_IT]
|
|
4344
4350
|
}] }, { type: Storage, decorators: [{
|
|
4345
4351
|
type: Inject,
|
|
4346
|
-
args: [
|
|
4352
|
+
args: [MNG_BROWSER_STORAGE_IT]
|
|
4347
4353
|
}] }];
|
|
4348
4354
|
} });
|
|
4349
4355
|
|
|
@@ -4384,11 +4390,11 @@ class MngNavigationService {
|
|
|
4384
4390
|
}
|
|
4385
4391
|
}
|
|
4386
4392
|
}
|
|
4387
|
-
MngNavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngNavigationService, deps: [{ token: i1$2.Router }, { token:
|
|
4393
|
+
MngNavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngNavigationService, deps: [{ token: i1$2.Router }, { token: i4.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4388
4394
|
MngNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngNavigationService });
|
|
4389
4395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngNavigationService, decorators: [{
|
|
4390
4396
|
type: Injectable
|
|
4391
|
-
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type:
|
|
4397
|
+
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i4.Location }]; } });
|
|
4392
4398
|
|
|
4393
4399
|
class MngBreadcrumbComponent {
|
|
4394
4400
|
constructor(mngCommons) {
|
|
@@ -4396,7 +4402,7 @@ class MngBreadcrumbComponent {
|
|
|
4396
4402
|
}
|
|
4397
4403
|
}
|
|
4398
4404
|
MngBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngBreadcrumbComponent, deps: [{ token: MngCommonsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4399
|
-
MngBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngBreadcrumbComponent, selector: "mng-breadcrumb", ngImport: i0, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ |async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n", components: [{ type: i2$5.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }], pipes: { "async":
|
|
4405
|
+
MngBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngBreadcrumbComponent, selector: "mng-breadcrumb", ngImport: i0, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ |async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n", components: [{ type: i2$5.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4400
4406
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngBreadcrumbComponent, decorators: [{
|
|
4401
4407
|
type: Component,
|
|
4402
4408
|
args: [{ selector: 'mng-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"$any(mngCommons.breadcrumbHome$ | async)\" [model]=\"$any(mngCommons.breadcrumbs$ |async)\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n" }]
|
|
@@ -4415,7 +4421,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4415
4421
|
args: [{ selector: 'mng-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\"/>\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n" }]
|
|
4416
4422
|
}], ctorParameters: function () { return [{ type: MngCommonsService }]; } });
|
|
4417
4423
|
|
|
4418
|
-
class
|
|
4424
|
+
class MngMainLayoutComponentService {
|
|
4419
4425
|
constructor(mngCommons) {
|
|
4420
4426
|
this.mngCommons = mngCommons;
|
|
4421
4427
|
this._overlayMenuActive = false;
|
|
@@ -4594,9 +4600,9 @@ class MainLayoutComponentService {
|
|
|
4594
4600
|
return width <= 991;
|
|
4595
4601
|
}
|
|
4596
4602
|
}
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
4603
|
+
MngMainLayoutComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMainLayoutComponentService, deps: [{ token: MngCommonsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4604
|
+
MngMainLayoutComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMainLayoutComponentService });
|
|
4605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMainLayoutComponentService, decorators: [{
|
|
4600
4606
|
type: Injectable
|
|
4601
4607
|
}], ctorParameters: function () { return [{ type: MngCommonsService }]; } });
|
|
4602
4608
|
|
|
@@ -4698,8 +4704,8 @@ class MngMenuItemComponent {
|
|
|
4698
4704
|
}
|
|
4699
4705
|
}
|
|
4700
4706
|
}
|
|
4701
|
-
MngMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMenuItemComponent, deps: [{ token: i1$2.Router }, { token: i0.ChangeDetectorRef }, { token: MngCommonsService }, { token:
|
|
4702
|
-
MngMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngMenuItemComponent, selector: "[mng-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "root", "class.active-menuitem": "active" } }, ngImport: i0, template: "<ng-container>\n <div *ngIf=\"root && item.visible !== false\" class=\"layout-menuitem-root-text\">{{ item.label | translate }}</div>\n <a *ngIf=\"(!item.routerLink || item.items) && item.visible !== false\"\n [attr.href]=\"item.url\"\n (click)=\"itemClick($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (keydown.enter)=\"itemClick($event)\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.class\"\n pRipple>\n <i [ngClass]=\"item.icon\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <a *ngIf=\"(item.routerLink && !item.items) && item.visible !== false\"\n (click)=\"itemClick($event)\"\n (mouseenter)=\"hover=true\"\n (mouseleave)=\"hover=false\"\n [routerLink]=\"item.routerLink\"\n routerLinkActive=\"active-menuitem-routerlink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.class\"\n pRipple>\n <i [ngClass]=\"item.icon\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <ul *ngIf=\"((item.items && active) || (item.items && (mngCommons.menuModeIsStatic$ | async) && (root || active))) && item.visible !== false\"\n [@children]=\"((mngCommons.menuModeIsSlim$ | async) && !(mainLayoutService.isMobile$ | async) && root)\n ? (active ? 'visible' : 'hidden')\n : ((mngCommons.menuModeIsStatic$ | async) && root && !(mainLayoutService.isMobile$ | async) ? 'visible' : (active ? 'visibleAnimated' : 'hiddenAnimated'))\">\n <ng-template ngFor let-child let-i=\"index\" [ngForOf]=\"item.items\">\n <li mng-menuitem [item]=\"child\" [index]=\"i\" [parentKey]=\"key\" [class]=\"child.badgeClass\"></li>\n </ng-template>\n </ul>\n</ng-container>\n", components: [{ type: MngMenuItemComponent, selector: "[mng-menuitem]", inputs: ["item", "index", "root", "parentKey"] }], directives: [{ type:
|
|
4707
|
+
MngMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMenuItemComponent, deps: [{ token: i1$2.Router }, { token: i0.ChangeDetectorRef }, { token: MngCommonsService }, { token: MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4708
|
+
MngMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngMenuItemComponent, selector: "[mng-menuitem]", inputs: { item: "item", index: "index", root: "root", parentKey: "parentKey" }, host: { properties: { "class.layout-root-menuitem": "root", "class.active-menuitem": "active" } }, ngImport: i0, template: "<ng-container>\n <div *ngIf=\"root && item.visible !== false\" class=\"layout-menuitem-root-text\">{{ item.label | translate }}</div>\n <a *ngIf=\"(!item.routerLink || item.items) && item.visible !== false\"\n [attr.href]=\"item.url\"\n (click)=\"itemClick($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (keydown.enter)=\"itemClick($event)\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.class\"\n pRipple>\n <i [ngClass]=\"item.icon\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <a *ngIf=\"(item.routerLink && !item.items) && item.visible !== false\"\n (click)=\"itemClick($event)\"\n (mouseenter)=\"hover=true\"\n (mouseleave)=\"hover=false\"\n [routerLink]=\"item.routerLink\"\n routerLinkActive=\"active-menuitem-routerlink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.class\"\n pRipple>\n <i [ngClass]=\"item.icon\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <ul *ngIf=\"((item.items && active) || (item.items && (mngCommons.menuModeIsStatic$ | async) && (root || active))) && item.visible !== false\"\n [@children]=\"((mngCommons.menuModeIsSlim$ | async) && !(mainLayoutService.isMobile$ | async) && root)\n ? (active ? 'visible' : 'hidden')\n : ((mngCommons.menuModeIsStatic$ | async) && root && !(mainLayoutService.isMobile$ | async) ? 'visible' : (active ? 'visibleAnimated' : 'hiddenAnimated'))\">\n <ng-template ngFor let-child let-i=\"index\" [ngForOf]=\"item.items\">\n <li mng-menuitem [item]=\"child\" [index]=\"i\" [parentKey]=\"key\" [class]=\"child.badgeClass\"></li>\n </ng-template>\n </ul>\n</ng-container>\n", components: [{ type: MngMenuItemComponent, selector: "[mng-menuitem]", inputs: ["item", "index", "root", "parentKey"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.Ripple, selector: "[pRipple]" }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i2.TranslatePipe, "async": i4.AsyncPipe }, animations: [
|
|
4703
4709
|
trigger('children', [
|
|
4704
4710
|
state('void', style({
|
|
4705
4711
|
height: '0px'
|
|
@@ -4752,7 +4758,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4752
4758
|
transition('void => visibleAnimated, visibleAnimated => void', animate('400ms cubic-bezier(0.86, 0, 0.07, 1)'))
|
|
4753
4759
|
])
|
|
4754
4760
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container>\n <div *ngIf=\"root && item.visible !== false\" class=\"layout-menuitem-root-text\">{{ item.label | translate }}</div>\n <a *ngIf=\"(!item.routerLink || item.items) && item.visible !== false\"\n [attr.href]=\"item.url\"\n (click)=\"itemClick($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (keydown.enter)=\"itemClick($event)\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.class\"\n pRipple>\n <i [ngClass]=\"item.icon\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <a *ngIf=\"(item.routerLink && !item.items) && item.visible !== false\"\n (click)=\"itemClick($event)\"\n (mouseenter)=\"hover=true\"\n (mouseleave)=\"hover=false\"\n [routerLink]=\"item.routerLink\"\n routerLinkActive=\"active-menuitem-routerlink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.class\"\n pRipple>\n <i [ngClass]=\"item.icon\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <ul *ngIf=\"((item.items && active) || (item.items && (mngCommons.menuModeIsStatic$ | async) && (root || active))) && item.visible !== false\"\n [@children]=\"((mngCommons.menuModeIsSlim$ | async) && !(mainLayoutService.isMobile$ | async) && root)\n ? (active ? 'visible' : 'hidden')\n : ((mngCommons.menuModeIsStatic$ | async) && root && !(mainLayoutService.isMobile$ | async) ? 'visible' : (active ? 'visibleAnimated' : 'hiddenAnimated'))\">\n <ng-template ngFor let-child let-i=\"index\" [ngForOf]=\"item.items\">\n <li mng-menuitem [item]=\"child\" [index]=\"i\" [parentKey]=\"key\" [class]=\"child.badgeClass\"></li>\n </ng-template>\n </ul>\n</ng-container>\n" }]
|
|
4755
|
-
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i0.ChangeDetectorRef }, { type: MngCommonsService }, { type:
|
|
4761
|
+
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i0.ChangeDetectorRef }, { type: MngCommonsService }, { type: MngMainLayoutComponentService }]; }, propDecorators: { item: [{
|
|
4756
4762
|
type: Input
|
|
4757
4763
|
}], index: [{
|
|
4758
4764
|
type: Input
|
|
@@ -4768,47 +4774,79 @@ class MngMenuComponent {
|
|
|
4768
4774
|
this.mainLayoutService = mainLayoutService;
|
|
4769
4775
|
}
|
|
4770
4776
|
}
|
|
4771
|
-
MngMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMenuComponent, deps: [{ token: MngCommonsService }, { token:
|
|
4772
|
-
MngMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngMenuComponent, selector: "mng-menu", ngImport: i0, template: "<div class=\"layout-menu-wrapper\" [ngClass]=\"{ 'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async) }\"\n (click)=\"mainLayoutService.onSidebarClick($event)\" (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\" (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"!(mngCommons.menuModeIsSlim$ | async) || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\"
|
|
4777
|
+
MngMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMenuComponent, deps: [{ token: MngCommonsService }, { token: MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4778
|
+
MngMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngMenuComponent, selector: "mng-menu", ngImport: i0, template: "<div class=\"layout-menu-wrapper\" [ngClass]=\"{ 'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async) }\"\n (click)=\"mainLayoutService.onSidebarClick($event)\" (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\" (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"!(mngCommons.menuModeIsSlim$ | async) || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\" class=\"menu-pin\" (click)=\"mainLayoutService.onToggleMenu($event)\">\n <span *ngIf=\"mngCommons.menuModeIsOverlay$ | async\" class=\"pi pi-times\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && !(mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-unlock\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-lock\"></span>\n </a>\n </div>\n\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of (mngCommons.menuItems); let i = index;\">\n <li mng-menuitem *ngIf=\"!item.separator\" [item]=\"item\" [index]=\"i\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n </ul>\n </div>\n</div>\n", components: [{ type: MngMenuItemComponent, selector: "[mng-menuitem]", inputs: ["item", "index", "root", "parentKey"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4773
4779
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMenuComponent, decorators: [{
|
|
4774
4780
|
type: Component,
|
|
4775
|
-
args: [{ selector: 'mng-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-menu-wrapper\" [ngClass]=\"{ 'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async) }\"\n (click)=\"mainLayoutService.onSidebarClick($event)\" (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\" (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"!(mngCommons.menuModeIsSlim$ | async) || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\"
|
|
4776
|
-
}], ctorParameters: function () { return [{ type: MngCommonsService }, { type:
|
|
4781
|
+
args: [{ selector: 'mng-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-menu-wrapper\" [ngClass]=\"{ 'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async) }\"\n (click)=\"mainLayoutService.onSidebarClick($event)\" (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\" (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"!(mngCommons.menuModeIsSlim$ | async) || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\" class=\"menu-pin\" (click)=\"mainLayoutService.onToggleMenu($event)\">\n <span *ngIf=\"mngCommons.menuModeIsOverlay$ | async\" class=\"pi pi-times\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && !(mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-unlock\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-lock\"></span>\n </a>\n </div>\n\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of (mngCommons.menuItems); let i = index;\">\n <li mng-menuitem *ngIf=\"!item.separator\" [item]=\"item\" [index]=\"i\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n </ul>\n </div>\n</div>\n" }]
|
|
4782
|
+
}], ctorParameters: function () { return [{ type: MngCommonsService }, { type: MngMainLayoutComponentService }]; } });
|
|
4777
4783
|
|
|
4778
4784
|
class MngTopbarComponent {
|
|
4779
|
-
constructor(mngCommons, mainLayoutService) {
|
|
4785
|
+
constructor(route, mngCommons, mainLayoutService) {
|
|
4786
|
+
this.route = route;
|
|
4780
4787
|
this.mngCommons = mngCommons;
|
|
4781
4788
|
this.mainLayoutService = mainLayoutService;
|
|
4789
|
+
this.breadcrumbComponent = MngBreadcrumbComponent;
|
|
4790
|
+
this.menuComponent = MngMenuComponent;
|
|
4782
4791
|
this.languages = ['en'];
|
|
4783
4792
|
this.selectedLanguage = 'en';
|
|
4784
4793
|
}
|
|
4785
|
-
switchLanguage(language) {
|
|
4786
|
-
this.mngCommons.appLanguage = language;
|
|
4787
|
-
}
|
|
4788
4794
|
ngOnInit() {
|
|
4795
|
+
const routeData = this.route.snapshot.data;
|
|
4796
|
+
if (routeData === null || routeData === void 0 ? void 0 : routeData.breadcrumbComponent) {
|
|
4797
|
+
this.breadcrumbComponent = routeData.breadcrumbComponent;
|
|
4798
|
+
}
|
|
4799
|
+
if (routeData === null || routeData === void 0 ? void 0 : routeData.menuComponent) {
|
|
4800
|
+
this.menuComponent = routeData.menuComponent;
|
|
4801
|
+
}
|
|
4789
4802
|
this.languages = this.mngCommons.appLanguages;
|
|
4790
4803
|
this.selectedLanguage = this.mngCommons.appLanguage;
|
|
4791
4804
|
this.mngCommons.user$.subscribe(u => {
|
|
4792
4805
|
this.user = u;
|
|
4793
4806
|
});
|
|
4794
4807
|
}
|
|
4808
|
+
ngAfterViewInit() {
|
|
4809
|
+
this.mainLayoutService.innerWidth = window.innerWidth;
|
|
4810
|
+
}
|
|
4811
|
+
switchLanguage(language) {
|
|
4812
|
+
this.mngCommons.appLanguage = language;
|
|
4813
|
+
}
|
|
4795
4814
|
logout(user, event) {
|
|
4796
4815
|
if (typeof user.logout === 'function') {
|
|
4797
4816
|
user.logout();
|
|
4798
4817
|
}
|
|
4799
4818
|
}
|
|
4800
4819
|
}
|
|
4801
|
-
MngTopbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTopbarComponent, deps: [{ token: MngCommonsService }, { token:
|
|
4802
|
-
MngTopbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTopbarComponent, selector: "mng-topbar", ngImport: i0, template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-left\">\n <a href=\"#\" class=\"topbar-menu-button\" (click)=\"mainLayoutService.onMenuButtonClick($event)\" *ngIf=\"(mngCommons.menuModeIsOverlay$ | async) || (mainLayoutService.isMobile$ | async)\">\n <i class=\"pi pi-bars\"></i>\n </a>\n\n <
|
|
4820
|
+
MngTopbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTopbarComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: MngCommonsService }, { token: MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4821
|
+
MngTopbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTopbarComponent, selector: "mng-topbar", viewQueries: [{ propertyName: "templates", predicate: MngTemplateDirective, descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-left\">\n <a href=\"#\" class=\"topbar-menu-button\" (click)=\"mainLayoutService.onMenuButtonClick($event)\" *ngIf=\"(mngCommons.menuModeIsOverlay$ | async) || (mainLayoutService.isMobile$ | async)\">\n <i class=\"pi pi-bars\"></i>\n </a>\n\n <ng-container [mngComponent]=\"breadcrumbComponent\"></ng-container>\n </div>\n\n <ng-container [mngComponent]=\"menuComponent\"></ng-container>\n\n <div class=\"layout-topbar-right\">\n <ul class=\"layout-topbar-right-items\">\n <li #profile class=\"profile-item\" [ngClass]=\"{ 'active-topmenuitem': (mainLayoutService.activeTopbarItem$ | async) === profile }\">\n <a href=\"#\" (click)=\"mainLayoutService.onTopbarItemClick($event,profile)\">\n <i class=\"pi pi-fw pi-user\"></i>\n </a>\n <ul class=\"fadeInDown\" *ngIf=\"user\">\n <li role=\"menuitem\">\n <a>\n {{ user?.displayName ?? user?.username }}\n </a>\n </li>\n <li role=\"menuitem\" *ngIf=\"user?.logout || user?.logoutUrl\">\n <a [href]=\"user?.logoutUrl\" (click)=\"logout(user, $event)\">\n <i class=\"pi pi-fw pi-sign-out\"></i>\n <span>{{ 'mngTopbar.logout' | translate }}</span>\n </a>\n </li>\n </ul>\n </li>\n <li *ngIf=\"languages.length > 1\" class=\"profile-item\" [ngClass]=\"{ 'active-topmenuitem': (mainLayoutService.activeTopbarItem$ | async) === profile }\">\n <i class=\"pi pi-fw pi-globe\"></i>\n <p-dropdown [ngModel]=\"selectedLanguage\" [options]=\"languages\" (onChange)=\"switchLanguage($event.value)\"></p-dropdown>\n </li>\n </ul>\n </div>\n</div>\n", components: [{ type: i1$1.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i4.AsyncPipe, "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4803
4822
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTopbarComponent, decorators: [{
|
|
4804
4823
|
type: Component,
|
|
4805
|
-
args: [{ selector: 'mng-topbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-left\">\n <a href=\"#\" class=\"topbar-menu-button\" (click)=\"mainLayoutService.onMenuButtonClick($event)\" *ngIf=\"(mngCommons.menuModeIsOverlay$ | async) || (mainLayoutService.isMobile$ | async)\">\n <i class=\"pi pi-bars\"></i>\n </a>\n\n <
|
|
4806
|
-
}], ctorParameters: function () { return [{ type: MngCommonsService }, { type:
|
|
4824
|
+
args: [{ selector: 'mng-topbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-left\">\n <a href=\"#\" class=\"topbar-menu-button\" (click)=\"mainLayoutService.onMenuButtonClick($event)\" *ngIf=\"(mngCommons.menuModeIsOverlay$ | async) || (mainLayoutService.isMobile$ | async)\">\n <i class=\"pi pi-bars\"></i>\n </a>\n\n <ng-container [mngComponent]=\"breadcrumbComponent\"></ng-container>\n </div>\n\n <ng-container [mngComponent]=\"menuComponent\"></ng-container>\n\n <div class=\"layout-topbar-right\">\n <ul class=\"layout-topbar-right-items\">\n <li #profile class=\"profile-item\" [ngClass]=\"{ 'active-topmenuitem': (mainLayoutService.activeTopbarItem$ | async) === profile }\">\n <a href=\"#\" (click)=\"mainLayoutService.onTopbarItemClick($event,profile)\">\n <i class=\"pi pi-fw pi-user\"></i>\n </a>\n <ul class=\"fadeInDown\" *ngIf=\"user\">\n <li role=\"menuitem\">\n <a>\n {{ user?.displayName ?? user?.username }}\n </a>\n </li>\n <li role=\"menuitem\" *ngIf=\"user?.logout || user?.logoutUrl\">\n <a [href]=\"user?.logoutUrl\" (click)=\"logout(user, $event)\">\n <i class=\"pi pi-fw pi-sign-out\"></i>\n <span>{{ 'mngTopbar.logout' | translate }}</span>\n </a>\n </li>\n </ul>\n </li>\n <li *ngIf=\"languages.length > 1\" class=\"profile-item\" [ngClass]=\"{ 'active-topmenuitem': (mainLayoutService.activeTopbarItem$ | async) === profile }\">\n <i class=\"pi pi-fw pi-globe\"></i>\n <p-dropdown [ngModel]=\"selectedLanguage\" [options]=\"languages\" (onChange)=\"switchLanguage($event.value)\"></p-dropdown>\n </li>\n </ul>\n </div>\n</div>\n" }]
|
|
4825
|
+
}], ctorParameters: function () { return [{ type: i1$2.ActivatedRoute }, { type: MngCommonsService }, { type: MngMainLayoutComponentService }]; }, propDecorators: { templates: [{
|
|
4826
|
+
type: ViewChildren,
|
|
4827
|
+
args: [MngTemplateDirective]
|
|
4828
|
+
}] } });
|
|
4807
4829
|
|
|
4808
4830
|
class MngMainLayoutComponent {
|
|
4809
|
-
constructor(mngCommons, mainLayoutService) {
|
|
4831
|
+
constructor(route, mngCommons, mainLayoutService) {
|
|
4832
|
+
this.route = route;
|
|
4810
4833
|
this.mngCommons = mngCommons;
|
|
4811
4834
|
this.mainLayoutService = mainLayoutService;
|
|
4835
|
+
this.topbarComponent = MngTopbarComponent;
|
|
4836
|
+
this.menuComponent = MngMenuComponent;
|
|
4837
|
+
this.footerComponent = MngFooterComponent;
|
|
4838
|
+
}
|
|
4839
|
+
ngOnInit() {
|
|
4840
|
+
const routeData = this.route.snapshot.data;
|
|
4841
|
+
if (routeData === null || routeData === void 0 ? void 0 : routeData.topbarComponent) {
|
|
4842
|
+
this.topbarComponent = routeData.topbarComponent;
|
|
4843
|
+
}
|
|
4844
|
+
if (routeData === null || routeData === void 0 ? void 0 : routeData.menuComponent) {
|
|
4845
|
+
this.menuComponent = routeData.menuComponent;
|
|
4846
|
+
}
|
|
4847
|
+
if (routeData === null || routeData === void 0 ? void 0 : routeData.footerComponent) {
|
|
4848
|
+
this.footerComponent = routeData.footerComponent;
|
|
4849
|
+
}
|
|
4812
4850
|
}
|
|
4813
4851
|
ngAfterViewInit() {
|
|
4814
4852
|
this.mainLayoutService.innerWidth = window.innerWidth;
|
|
@@ -4819,77 +4857,96 @@ class MngMainLayoutComponent {
|
|
|
4819
4857
|
this.mainLayoutService.innerWidth = (_a = target === null || target === void 0 ? void 0 : target.innerWidth) !== null && _a !== void 0 ? _a : window.innerWidth;
|
|
4820
4858
|
}
|
|
4821
4859
|
}
|
|
4822
|
-
MngMainLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMainLayoutComponent, deps: [{ token: MngCommonsService }, { token:
|
|
4823
|
-
MngMainLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngMainLayoutComponent, selector: "mng-main-layout", host: { listeners: { "window:resize": "onWindowResize($event)" } }, providers: [
|
|
4860
|
+
MngMainLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMainLayoutComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: MngCommonsService }, { token: MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4861
|
+
MngMainLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngMainLayoutComponent, selector: "mng-main-layout", host: { listeners: { "window:resize": "onWindowResize($event)" } }, providers: [MngMainLayoutComponentService], viewQueries: [{ propertyName: "templates", predicate: MngTemplateDirective, descendants: true }], ngImport: i0, template: "<div class=\"layout-wrapper\" (click)=\"mainLayoutService.onLayoutClick()\"\n [ngClass]=\"{'layout-static': mngCommons.menuModeIsStatic$ | async,\n 'layout-overlay': mngCommons.menuModeIsOverlay$ | async,\n 'layout-slim': mngCommons.menuModeIsSlim$ | async,\n 'layout-sidebar': mngCommons.menuModeIsSidebar$ | async,\n 'layout-sidebar-static': (mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async),\n 'layout-overlay-active': mainLayoutService.overlayMenuActive$ | async,\n 'layout-mobile-active': mainLayoutService.staticMenuMobileActive$ | async,\n 'layout-static-inactive': (mainLayoutService.staticMenuDesktopInactive$ | async) && (mngCommons.menuModeIsStatic$ | async) }\">\n\n <div class=\"layout-main\">\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n\n <ng-container *ngIf=\"!(mainLayoutService.isMobile$ | async) && ((mngCommons.menuModeIsStatic$ | async) || (mngCommons.menuModeIsSlim$ | async) || (mngCommons.menuModeIsSidebar$ | async))\"\n [mngComponent]=\"menuComponent\">\n </ng-container>\n\n <div class=\"layout-main-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n </div>\n\n</div>\n", directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4824
4862
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngMainLayoutComponent, decorators: [{
|
|
4825
4863
|
type: Component,
|
|
4826
|
-
args: [{ selector: 'mng-main-layout', providers: [
|
|
4827
|
-
}], ctorParameters: function () { return [{ type: MngCommonsService }, { type:
|
|
4864
|
+
args: [{ selector: 'mng-main-layout', providers: [MngMainLayoutComponentService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-wrapper\" (click)=\"mainLayoutService.onLayoutClick()\"\n [ngClass]=\"{'layout-static': mngCommons.menuModeIsStatic$ | async,\n 'layout-overlay': mngCommons.menuModeIsOverlay$ | async,\n 'layout-slim': mngCommons.menuModeIsSlim$ | async,\n 'layout-sidebar': mngCommons.menuModeIsSidebar$ | async,\n 'layout-sidebar-static': (mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async),\n 'layout-overlay-active': mainLayoutService.overlayMenuActive$ | async,\n 'layout-mobile-active': mainLayoutService.staticMenuMobileActive$ | async,\n 'layout-static-inactive': (mainLayoutService.staticMenuDesktopInactive$ | async) && (mngCommons.menuModeIsStatic$ | async) }\">\n\n <div class=\"layout-main\">\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n\n <ng-container *ngIf=\"!(mainLayoutService.isMobile$ | async) && ((mngCommons.menuModeIsStatic$ | async) || (mngCommons.menuModeIsSlim$ | async) || (mngCommons.menuModeIsSidebar$ | async))\"\n [mngComponent]=\"menuComponent\">\n </ng-container>\n\n <div class=\"layout-main-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ng-container [mngComponent]=\"footerComponent\"></ng-container>\n </div>\n\n</div>\n" }]
|
|
4865
|
+
}], ctorParameters: function () { return [{ type: i1$2.ActivatedRoute }, { type: MngCommonsService }, { type: MngMainLayoutComponentService }]; }, propDecorators: { templates: [{
|
|
4866
|
+
type: ViewChildren,
|
|
4867
|
+
args: [MngTemplateDirective]
|
|
4868
|
+
}], onWindowResize: [{
|
|
4828
4869
|
type: HostListener,
|
|
4829
4870
|
args: ['window:resize', ['$event']]
|
|
4830
4871
|
}] } });
|
|
4831
4872
|
|
|
4832
|
-
class
|
|
4873
|
+
class MngFormlyFieldWrapperComponent extends FieldWrapper {
|
|
4833
4874
|
ngOnInit() {
|
|
4834
4875
|
}
|
|
4835
4876
|
}
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
4877
|
+
MngFormlyFieldWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4878
|
+
MngFormlyFieldWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldWrapperComponent, selector: "mng-formly-field-wrapper", usesInheritance: true, ngImport: i0, template: "<div class=\"field\">\n <label [for]=\"key\">{{ $any(to?.label) | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <ng-container #fieldComponent></ng-container>\n <small *ngIf=\"showError\" class=\"p-error\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </small>\n</div>\n", components: [{ type: i3.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldWrapperComponent, decorators: [{
|
|
4839
4880
|
type: Component,
|
|
4840
4881
|
args: [{ selector: 'mng-formly-field-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"field\">\n <label [for]=\"key\">{{ $any(to?.label) | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <ng-container #fieldComponent></ng-container>\n <small *ngIf=\"showError\" class=\"p-error\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </small>\n</div>\n" }]
|
|
4841
4882
|
}] });
|
|
4842
4883
|
|
|
4843
|
-
class
|
|
4884
|
+
class MngFormlyTableWrapperComponent extends FieldWrapper {
|
|
4844
4885
|
ngOnInit() {
|
|
4845
4886
|
}
|
|
4846
4887
|
}
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
4888
|
+
MngFormlyTableWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyTableWrapperComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4889
|
+
MngFormlyTableWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyTableWrapperComponent, selector: "mng-formly-table-wrapper", usesInheritance: true, ngImport: i0, template: "<div class=\"field table\">\n <ng-container #fieldComponent></ng-container>\n <small *ngIf=\"showError\" class=\"p-error\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </small>\n</div>\n", components: [{ type: i3.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyTableWrapperComponent, decorators: [{
|
|
4850
4891
|
type: Component,
|
|
4851
4892
|
args: [{ selector: 'mng-formly-table-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"field table\">\n <ng-container #fieldComponent></ng-container>\n <small *ngIf=\"showError\" class=\"p-error\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </small>\n</div>\n" }]
|
|
4852
4893
|
}] });
|
|
4853
4894
|
|
|
4854
|
-
class
|
|
4895
|
+
class MngFormlyFieldAutocompleteComponent extends FieldType {
|
|
4855
4896
|
ngOnInit() {
|
|
4856
4897
|
this.aFormControl = this.formControl;
|
|
4857
4898
|
this.descriptor = this.to['descriptor'];
|
|
4858
4899
|
}
|
|
4859
4900
|
}
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
4901
|
+
MngFormlyFieldAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldAutocompleteComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4902
|
+
MngFormlyFieldAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldAutocompleteComponent, selector: "mng-formly-field-autocomplete", usesInheritance: true, ngImport: i0, template: "<mng-autocomplete [id]=\"$any(key)\"\n [formControl]=\"aFormControl\"\n [formlyAttributes]=\"field\"\n [dataProvider]=\"$any(descriptor.dataProvider)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\">\n</mng-autocomplete>\n", components: [{ type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "multiselect", "placeholder", "className", "dropdownClassName"], outputs: ["onChange"] }], directives: [{ type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldAutocompleteComponent, decorators: [{
|
|
4863
4904
|
type: Component,
|
|
4864
4905
|
args: [{ selector: 'mng-formly-field-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-autocomplete [id]=\"$any(key)\"\n [formControl]=\"aFormControl\"\n [formlyAttributes]=\"field\"\n [dataProvider]=\"$any(descriptor.dataProvider)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\">\n</mng-autocomplete>\n" }]
|
|
4865
4906
|
}] });
|
|
4866
4907
|
|
|
4867
|
-
class
|
|
4908
|
+
class MngFormlyFieldInputComponent extends FieldType {
|
|
4868
4909
|
ngOnInit() {
|
|
4869
4910
|
this.iFormControl = this.formControl;
|
|
4870
4911
|
this.descriptor = this.to['descriptor'];
|
|
4871
4912
|
}
|
|
4872
4913
|
}
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
4914
|
+
MngFormlyFieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4915
|
+
MngFormlyFieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldInputComponent, selector: "mng-formly-field-input", usesInheritance: true, ngImport: i0, template: "<ng-container [ngSwitch]=\"to.type\">\n <p-inputNumber *ngSwitchCase=\"'number'\"\n [id]=\"$any(key)\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n [min]=\"$any(descriptor.numberMin)\"\n [max]=\"$any(descriptor.numberMax)\"\n [step]=\"$any(descriptor.numberStep)\"\n [minFractionDigits]=\"descriptor.numberMinFractionDigits || 0\"\n [maxFractionDigits]=\"descriptor.numberMaxFractionDigits || 0\">\n </p-inputNumber>\n\n <div *ngSwitchCase=\"'switch'\" class=\"flex flex-column\">\n <label [for]=\"key\">{{ to?.label! | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <p-inputSwitch [id]=\"$any(key)\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\">\n </p-inputSwitch>\n <small *ngIf=\"showError\" class=\"p-error\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </small>\n </div>\n\n <ng-container *ngSwitchCase=\"'radio'\">\n <div *ngFor=\"let category of descriptor.radioOptions\" [id]=\"$any(key)\" class=\"p-field-radiobutton\">\n <p-radioButton [value]=\"category\" [formControl]=\"iFormControl\" [formlyAttributes]=\"field\"></p-radioButton>\n <label [for]=\"category\" class=\"mng-radio-button-label\">{{category}}</label>\n </div>\n </ng-container>\n\n <textarea *ngSwitchCase=\"'textarea'\"\n [id]=\"$any(key)\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n [rows]=\"descriptor.rows ?? 3\"\n pInputTextarea>\n </textarea>\n\n <p-calendar *ngSwitchCase=\"'datepicker'\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n [dateFormat]=\"$any(descriptor.datePickerFormat)\"\n [minDate]=\"$any(descriptor.datePickerMin)\"\n [maxDate]=\"$any(descriptor.datePickerMax)\"\n [showTime]=\"descriptor.datePickerShowTime\"\n [showIcon]=\"true\">\n </p-calendar>\n\n <input *ngSwitchDefault\n pInputText\n [id]=\"$any(key)\"\n [type]=\"to.type || 'text'\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n />\n</ng-container>\n", components: [{ type: i1$3.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "disabled"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown"] }, { type: i2$6.InputSwitch, selector: "p-inputSwitch", inputs: ["style", "styleClass", "tabindex", "inputId", "name", "disabled", "readonly", "trueValue", "falseValue", "ariaLabelledBy"], outputs: ["onChange"] }, { type: i3.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i4$3.RadioButton, selector: "p-radioButton", inputs: ["value", "formControlName", "name", "disabled", "label", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "style", "styleClass", "labelStyleClass"], outputs: ["onClick", "onFocus", "onBlur"] }, { type: i5$1.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }], directives: [{ type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i8.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i9$1.InputText, selector: "[pInputText]" }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldInputComponent, decorators: [{
|
|
4876
4917
|
type: Component,
|
|
4877
4918
|
args: [{ selector: 'mng-formly-field-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"to.type\">\n <p-inputNumber *ngSwitchCase=\"'number'\"\n [id]=\"$any(key)\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n [min]=\"$any(descriptor.numberMin)\"\n [max]=\"$any(descriptor.numberMax)\"\n [step]=\"$any(descriptor.numberStep)\"\n [minFractionDigits]=\"descriptor.numberMinFractionDigits || 0\"\n [maxFractionDigits]=\"descriptor.numberMaxFractionDigits || 0\">\n </p-inputNumber>\n\n <div *ngSwitchCase=\"'switch'\" class=\"flex flex-column\">\n <label [for]=\"key\">{{ to?.label! | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <p-inputSwitch [id]=\"$any(key)\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\">\n </p-inputSwitch>\n <small *ngIf=\"showError\" class=\"p-error\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </small>\n </div>\n\n <ng-container *ngSwitchCase=\"'radio'\">\n <div *ngFor=\"let category of descriptor.radioOptions\" [id]=\"$any(key)\" class=\"p-field-radiobutton\">\n <p-radioButton [value]=\"category\" [formControl]=\"iFormControl\" [formlyAttributes]=\"field\"></p-radioButton>\n <label [for]=\"category\" class=\"mng-radio-button-label\">{{category}}</label>\n </div>\n </ng-container>\n\n <textarea *ngSwitchCase=\"'textarea'\"\n [id]=\"$any(key)\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n [rows]=\"descriptor.rows ?? 3\"\n pInputTextarea>\n </textarea>\n\n <p-calendar *ngSwitchCase=\"'datepicker'\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n [dateFormat]=\"$any(descriptor.datePickerFormat)\"\n [minDate]=\"$any(descriptor.datePickerMin)\"\n [maxDate]=\"$any(descriptor.datePickerMax)\"\n [showTime]=\"descriptor.datePickerShowTime\"\n [showIcon]=\"true\">\n </p-calendar>\n\n <input *ngSwitchDefault\n pInputText\n [id]=\"$any(key)\"\n [type]=\"to.type || 'text'\"\n [formControl]=\"iFormControl\"\n [formlyAttributes]=\"field\"\n />\n</ng-container>\n" }]
|
|
4878
4919
|
}] });
|
|
4879
4920
|
|
|
4880
|
-
class
|
|
4921
|
+
class MngFormlyFieldDropdownComponent extends FieldType {
|
|
4881
4922
|
ngOnInit() {
|
|
4882
4923
|
this.dFormControl = this.formControl;
|
|
4883
4924
|
this.descriptor = this.to['descriptor'];
|
|
4884
4925
|
}
|
|
4885
4926
|
}
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
4927
|
+
MngFormlyFieldDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4928
|
+
MngFormlyFieldDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldDropdownComponent, selector: "mng-formly-field-dropdown", usesInheritance: true, ngImport: i0, template: "<mng-dropdown [id]=\"$any(key)\"\n [formControl]=\"dFormControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"$any(descriptor.placeholder)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [showClear]=\"!this.to.required\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\">\n</mng-dropdown>\n", components: [{ type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsValueProperty", "multiselect", "placeholder", "showClear", "className", "dropdownClassName"], outputs: ["onChange"] }], directives: [{ type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldDropdownComponent, decorators: [{
|
|
4889
4930
|
type: Component,
|
|
4890
4931
|
args: [{ selector: 'mng-formly-field-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-dropdown [id]=\"$any(key)\"\n [formControl]=\"dFormControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"$any(descriptor.placeholder)\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [showClear]=\"!this.to.required\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\">\n</mng-dropdown>\n" }]
|
|
4891
4932
|
}] });
|
|
4892
4933
|
|
|
4934
|
+
class MngTableLoadEvent {
|
|
4935
|
+
}
|
|
4936
|
+
class MngTableCellClickEvent {
|
|
4937
|
+
constructor(column, rowItem, rowIndex) {
|
|
4938
|
+
this.column = column;
|
|
4939
|
+
this.rowItem = rowItem;
|
|
4940
|
+
this.rowIndex = rowIndex;
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
class MngTableReloadEvent {
|
|
4944
|
+
constructor() {
|
|
4945
|
+
this.resetParams = false;
|
|
4946
|
+
this.emitEvent = false;
|
|
4947
|
+
}
|
|
4948
|
+
}
|
|
4949
|
+
|
|
4893
4950
|
/**
|
|
4894
4951
|
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
4895
4952
|
* and these must be propagated through to this component and beyond to primeNG.
|
|
@@ -4943,7 +5000,7 @@ class MngTableColumnFilterComponent {
|
|
|
4943
5000
|
}
|
|
4944
5001
|
}
|
|
4945
5002
|
MngTableColumnFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableColumnFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4946
|
-
MngTableColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: { descriptor: "descriptor", display: "display" }, ngImport: i0, template: "<p-columnFilter class=\"ml-auto\"\n [type]=\"primeType\" matchMode=\"equals\"\n [field]=\"descriptor.property\" [display]=\"primeDisplay\"\n [matchMode]=\"primeDefaultMatchMode\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.typeToFilter') | translate\"\n [showMatchModes]=\"primeType === 'text' || primeType === 'date' || primeType === 'numeric'\"\n [showOperator]=\"false\" [showAddButton]=\"false\" [hideOnClear]=\"true\">\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.searchToFilter') | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (onChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.selectToFilter') | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"true\"\n (onChange)=\"filterCallback($event)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n", components: [{ type: i4$
|
|
5003
|
+
MngTableColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: { descriptor: "descriptor", display: "display" }, ngImport: i0, template: "<p-columnFilter class=\"ml-auto\"\n [type]=\"primeType\" matchMode=\"equals\"\n [field]=\"descriptor.property\" [display]=\"primeDisplay\"\n [matchMode]=\"primeDefaultMatchMode\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.typeToFilter') | translate\"\n [showMatchModes]=\"primeType === 'text' || primeType === 'date' || primeType === 'numeric'\"\n [showOperator]=\"false\" [showAddButton]=\"false\" [hideOnClear]=\"true\">\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.searchToFilter') | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (onChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.selectToFilter') | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"true\"\n (onChange)=\"filterCallback($event)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n", components: [{ type: i4$4.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "multiselect", "placeholder", "className", "dropdownClassName"], outputs: ["onChange"] }, { type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsValueProperty", "multiselect", "placeholder", "showClear", "className", "dropdownClassName"], outputs: ["onChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "translate": i2.TranslatePipe } });
|
|
4947
5004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableColumnFilterComponent, decorators: [{
|
|
4948
5005
|
type: Component,
|
|
4949
5006
|
args: [{ selector: 'mng-table-column-filter', template: "<p-columnFilter class=\"ml-auto\"\n [type]=\"primeType\" matchMode=\"equals\"\n [field]=\"descriptor.property\" [display]=\"primeDisplay\"\n [matchMode]=\"primeDefaultMatchMode\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.typeToFilter') | translate\"\n [showMatchModes]=\"primeType === 'text' || primeType === 'date' || primeType === 'numeric'\"\n [showOperator]=\"false\" [showAddButton]=\"false\" [hideOnClear]=\"true\">\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.searchToFilter') | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (onChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"(descriptor.placeholder ?? 'mngTable.selectToFilter') | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"true\"\n (onChange)=\"filterCallback($event)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n" }]
|
|
@@ -4962,7 +5019,7 @@ class MngTableColumnValueComponent {
|
|
|
4962
5019
|
}
|
|
4963
5020
|
}
|
|
4964
5021
|
MngTableColumnValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableColumnValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4965
|
-
MngTableColumnValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTableColumnValueComponent, selector: "mng-table-column-value", inputs: { descriptor: "descriptor", item: "item" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n</ng-container>\n", directives: [{ type:
|
|
5022
|
+
MngTableColumnValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTableColumnValueComponent, selector: "mng-table-column-value", inputs: { descriptor: "descriptor", item: "item" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n</ng-container>\n", directives: [{ type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "propertyPath": MngPropertyPathPipe, "number": i4.DecimalPipe, "date": i4.DatePipe, "boolean": MngBooleanPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4966
5023
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableColumnValueComponent, decorators: [{
|
|
4967
5024
|
type: Component,
|
|
4968
5025
|
args: [{ selector: 'mng-table-column-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n</ng-container>\n" }]
|
|
@@ -4974,7 +5031,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4974
5031
|
|
|
4975
5032
|
var TypeEnum = FilterDescriptor.TypeEnum;
|
|
4976
5033
|
var PaginationModeEnum = TableDescriptor.PaginationModeEnum;
|
|
4977
|
-
class
|
|
5034
|
+
class MngTableComponent {
|
|
4978
5035
|
constructor(injector, router, activatedRoute, translate, tableviewService) {
|
|
4979
5036
|
this.injector = injector;
|
|
4980
5037
|
this.router = router;
|
|
@@ -5224,9 +5281,9 @@ class TableComponent {
|
|
|
5224
5281
|
}
|
|
5225
5282
|
}
|
|
5226
5283
|
}
|
|
5227
|
-
|
|
5228
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: TableComponent, selector: "mng-table", inputs: { descriptor: "descriptor", items: "items", queryResult: "queryResult", loading: "loading", dataProvider: "dataProvider", useQueryParams: "useQueryParams", selectionEnabled: "selectionEnabled" }, outputs: { loadEventEmitter: "onLoad", cellClickEventEmitter: "onCellClick", selectionChangeEventEmitter: "onSelectionChange" }, queries: [{ propertyName: "templates", predicate: TemplateDirective }], viewQueries: [{ propertyName: "primeTable", first: true, predicate: Table, descendants: true }], ngImport: i0, template: "<div [style.height]=\"scrollHeight === 'flex' ? 'calc(100vh - ' + descriptor.tableFullHeightOffset + 'px)' : null\">\n <!-- MUST NOT use observable for value when using virtual scroll - does not work for some reason -->\n <p-table *ngIf=\"!useQueryParams || useQueryParamsInitialized\"\n [value]=\"infiniteScroll ? dataProviderInfiniteScrollItems : ((queryResult$ | async)?.pageData ?? [])\"\n [dataKey]=\"$any(descriptor.dataKeyProperty)\"\n [lazy]=\"useDataProvider\"\n [loading]=\"(loading$ | async) ?? false\"\n [paginator]=\"useDataProvider && !infiniteScroll\"\n [rows]=\"$any(infiniteScroll ? 20 : rows)\"\n [first]=\"$any(infiniteScroll ? 0 : offset)\"\n [totalRecords]=\"$any(infiniteScroll ? null : (queryResult$ | async)?.allDataCount ?? 0)\"\n [rowsPerPageOptions]=\"$any(infiniteScroll ? null : rowsPerPageOptions)\"\n [showCurrentPageReport]=\"!infiniteScroll\"\n [currentPageReportTemplate]=\"'mngTable.paginationMsg' | translate\"\n [multiSortMeta]=\"$any(multiSortMeta)\"\n [filters]=\"filterMetadata\"\n [(selection)]=\"selection\"\n (selectionChange)=\"onSelectionChange($event)\"\n [scrollable]=\"infiniteScroll\"\n [virtualScroll]=\"infiniteScroll\"\n [virtualRowHeight]=\"$any(rowHeight)\"\n [scrollHeight]=\"$any(scrollHeight)\"\n [rowHover]=\"true\"\n (onLazyLoad)=\"onTableLazyLoad($event)\"\n (onSort)=\"onTableSort($event)\"\n (onFilter)=\"onTableFilter($event)\"\n sortMode=\"multiple\"\n responsiveLayout=\"scroll\">\n\n <ng-template *ngIf=\"captionTemplate || descriptor.title\" pTemplate=\"caption\">\n <ng-container *ngIf=\"captionTemplate; else defaultCaption\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultCaption>\n <h5 class=\"p-m-0\">{{ descriptor.title }}</h5>\n </ng-template>\n </ng-template>\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th *ngIf=\"selectionEnabled\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <ng-container *ngFor=\"let col of descriptor.columns\">\n <th *ngIf=\"col.isSortEnabled\" [pSortableColumn]=\"col.property\">\n <div class=\"flex justify-content-between align-items-center\">\n {{ descriptor.model.typeName + \".properties.\" + col.property | translate }}\n <p-sortIcon [field]=\"col.property\"></p-sortIcon>\n <mng-table-column-filter *ngIf=\"col.filterDescriptor && descriptor.filterDisplay === filterDisplayMenu\"\n class=\"ml-auto\"\n [display]=\"descriptor.filterDisplay\"\n [descriptor]=\"col.filterDescriptor\">\n </mng-table-column-filter>\n </div>\n </th>\n <th *ngIf=\"!col.isSortEnabled\">\n {{ descriptor.model.typeName + \".properties.\" + col.property | translate }}\n <ng-container>\n <mng-table-column-filter *ngIf=\"col.filterDescriptor && descriptor.filterDisplay === filterDisplayMenu\"\n class=\"ml-auto\"\n [display]=\"descriptor.filterDisplay\"\n [descriptor]=\"col.filterDescriptor\">\n </mng-table-column-filter>\n </ng-container>\n </th>\n </ng-container>\n <th *ngIf=\"columnActionTemplate\"></th>\n </tr>\n <tr *ngIf=\"descriptor.filterDisplay === filterDisplayRow\">\n <th *ngFor=\"let col of descriptor.columns\">\n <div class=\"flex\" *ngIf=\"col.filterDescriptor\">\n <mng-table-column-filter [display]=\"descriptor.filterDisplay\" [descriptor]=\"col.filterDescriptor\"></mng-table-column-filter>\n </div>\n </th>\n <th *ngIf=\"columnActionTemplate\"></th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-item let-idx=\"rowIndex\">\n <tr [style.height.px]=\"descriptor.rowHeight\">\n <td *ngIf=\"selectionEnabled\">\n <p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n </td>\n <td *ngFor=\"let col of descriptor.columns\" (click)=\"onCellClick(col, item, idx)\" class=\"clickable\">\n <mng-table-column-value [descriptor]=\"col\" [item]=\"item\"></mng-table-column-value>\n </td>\n <td *ngIf=\"columnActionTemplate\" class=\"text-right\">\n <ng-container *ngTemplateOutlet=\"columnActionTemplate; context: { rowItem: item, rowIndex: idx }\"></ng-container>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"loadingbody\">\n <tr [style.height.px]=\"descriptor.rowHeight\">\n <td [attr.colspan]=\"descriptor.columns.length + (columnActionTemplate ? 1 : 0) + (selectionEnabled ? 1 : 0)\">\n <div class=\"loading-text\"></div>\n <p-skeleton [ngStyle]=\"{'width': '100%'}\"></p-skeleton>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr [style.height.px]=\"rowHeight\">\n <td [attr.colspan]=\"descriptor.columns.length + (columnActionTemplate ? 1 : 0) + (selectionEnabled ? 1 : 0)\">\n {{ 'mngTable.noItems' | translate }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n", components: [{ type: i4$3.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollDelay", "virtualRowHeight", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "minBufferPx", "maxBufferPx", "responsiveLayout", "breakpoint", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { type: i4$3.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i4$3.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: ["descriptor", "display"] }, { type: i4$3.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { type: MngTableColumnValueComponent, selector: "mng-table-column-value", inputs: ["descriptor", "item"] }, { type: i7.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4$3.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "async": i6.AsyncPipe, "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
5284
|
+
MngTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableComponent, deps: [{ token: i0.Injector }, { token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: i2.TranslateService }, { token: TableviewComponentService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5285
|
+
MngTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTableComponent, selector: "mng-table", inputs: { descriptor: "descriptor", items: "items", queryResult: "queryResult", loading: "loading", dataProvider: "dataProvider", useQueryParams: "useQueryParams", selectionEnabled: "selectionEnabled" }, outputs: { loadEventEmitter: "onLoad", cellClickEventEmitter: "onCellClick", selectionChangeEventEmitter: "onSelectionChange" }, queries: [{ propertyName: "templates", predicate: MngTemplateDirective }], viewQueries: [{ propertyName: "primeTable", first: true, predicate: Table, descendants: true }], ngImport: i0, template: "<div [style.height]=\"scrollHeight === 'flex' ? 'calc(100vh - ' + descriptor.tableFullHeightOffset + 'px)' : null\">\n <!-- MUST NOT use observable for value when using virtual scroll - does not work for some reason -->\n <p-table *ngIf=\"!useQueryParams || useQueryParamsInitialized\"\n [value]=\"infiniteScroll ? dataProviderInfiniteScrollItems : ((queryResult$ | async)?.pageData ?? [])\"\n [dataKey]=\"$any(descriptor.dataKeyProperty)\"\n [lazy]=\"useDataProvider\"\n [loading]=\"(loading$ | async) ?? false\"\n [paginator]=\"useDataProvider && !infiniteScroll\"\n [rows]=\"$any(infiniteScroll ? 20 : rows)\"\n [first]=\"$any(infiniteScroll ? 0 : offset)\"\n [totalRecords]=\"$any(infiniteScroll ? null : (queryResult$ | async)?.allDataCount ?? 0)\"\n [rowsPerPageOptions]=\"$any(infiniteScroll ? null : rowsPerPageOptions)\"\n [showCurrentPageReport]=\"!infiniteScroll\"\n [currentPageReportTemplate]=\"'mngTable.paginationMsg' | translate\"\n [multiSortMeta]=\"$any(multiSortMeta)\"\n [filters]=\"filterMetadata\"\n [(selection)]=\"selection\"\n (selectionChange)=\"onSelectionChange($event)\"\n [scrollable]=\"infiniteScroll\"\n [virtualScroll]=\"infiniteScroll\"\n [virtualRowHeight]=\"$any(rowHeight)\"\n [scrollHeight]=\"$any(scrollHeight)\"\n [rowHover]=\"true\"\n (onLazyLoad)=\"onTableLazyLoad($event)\"\n (onSort)=\"onTableSort($event)\"\n (onFilter)=\"onTableFilter($event)\"\n sortMode=\"multiple\"\n responsiveLayout=\"scroll\">\n\n <ng-template *ngIf=\"captionTemplate || descriptor.title\" pTemplate=\"caption\">\n <ng-container *ngIf=\"captionTemplate; else defaultCaption\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultCaption>\n <h5 class=\"p-m-0\">{{ descriptor.title }}</h5>\n </ng-template>\n </ng-template>\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th *ngIf=\"selectionEnabled\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <ng-container *ngFor=\"let col of descriptor.columns\">\n <th *ngIf=\"col.isSortEnabled\" [pSortableColumn]=\"col.property\">\n <div class=\"flex justify-content-between align-items-center\">\n {{ descriptor.model.typeName + \".properties.\" + col.property | translate }}\n <p-sortIcon [field]=\"col.property\"></p-sortIcon>\n <mng-table-column-filter *ngIf=\"col.filterDescriptor && descriptor.filterDisplay === filterDisplayMenu\"\n class=\"ml-auto\"\n [display]=\"descriptor.filterDisplay\"\n [descriptor]=\"col.filterDescriptor\">\n </mng-table-column-filter>\n </div>\n </th>\n <th *ngIf=\"!col.isSortEnabled\">\n {{ descriptor.model.typeName + \".properties.\" + col.property | translate }}\n <ng-container>\n <mng-table-column-filter *ngIf=\"col.filterDescriptor && descriptor.filterDisplay === filterDisplayMenu\"\n class=\"ml-auto\"\n [display]=\"descriptor.filterDisplay\"\n [descriptor]=\"col.filterDescriptor\">\n </mng-table-column-filter>\n </ng-container>\n </th>\n </ng-container>\n <th *ngIf=\"columnActionTemplate\"></th>\n </tr>\n <tr *ngIf=\"descriptor.filterDisplay === filterDisplayRow\">\n <th *ngFor=\"let col of descriptor.columns\">\n <div class=\"flex\" *ngIf=\"col.filterDescriptor\">\n <mng-table-column-filter [display]=\"descriptor.filterDisplay\" [descriptor]=\"col.filterDescriptor\"></mng-table-column-filter>\n </div>\n </th>\n <th *ngIf=\"columnActionTemplate\"></th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-item let-idx=\"rowIndex\">\n <tr [style.height.px]=\"descriptor.rowHeight\">\n <td *ngIf=\"selectionEnabled\">\n <p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n </td>\n <td *ngFor=\"let col of descriptor.columns\" (click)=\"onCellClick(col, item, idx)\" class=\"clickable\">\n <mng-table-column-value [descriptor]=\"col\" [item]=\"item\"></mng-table-column-value>\n </td>\n <td *ngIf=\"columnActionTemplate\" class=\"text-right\">\n <ng-container *ngTemplateOutlet=\"columnActionTemplate; context: { rowItem: item, rowIndex: idx }\"></ng-container>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"loadingbody\">\n <tr [style.height.px]=\"descriptor.rowHeight\">\n <td [attr.colspan]=\"descriptor.columns.length + (columnActionTemplate ? 1 : 0) + (selectionEnabled ? 1 : 0)\">\n <div class=\"loading-text\"></div>\n <p-skeleton [ngStyle]=\"{'width': '100%'}\"></p-skeleton>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr [style.height.px]=\"rowHeight\">\n <td [attr.colspan]=\"descriptor.columns.length + (columnActionTemplate ? 1 : 0) + (selectionEnabled ? 1 : 0)\">\n {{ 'mngTable.noItems' | translate }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n", components: [{ type: i4$4.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollDelay", "virtualRowHeight", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "minBufferPx", "maxBufferPx", "responsiveLayout", "breakpoint", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { type: i4$4.TableHeaderCheckbox, selector: "p-tableHeaderCheckbox", inputs: ["disabled", "inputId", "name", "ariaLabel"] }, { type: i4$4.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: ["descriptor", "display"] }, { type: i4$4.TableCheckbox, selector: "p-tableCheckbox", inputs: ["disabled", "value", "index", "inputId", "name", "required", "ariaLabel"] }, { type: MngTableColumnValueComponent, selector: "mng-table-column-value", inputs: ["descriptor", "item"] }, { type: i7.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4$4.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "async": i4.AsyncPipe, "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableComponent, decorators: [{
|
|
5230
5287
|
type: Component,
|
|
5231
5288
|
args: [{ selector: 'mng-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [style.height]=\"scrollHeight === 'flex' ? 'calc(100vh - ' + descriptor.tableFullHeightOffset + 'px)' : null\">\n <!-- MUST NOT use observable for value when using virtual scroll - does not work for some reason -->\n <p-table *ngIf=\"!useQueryParams || useQueryParamsInitialized\"\n [value]=\"infiniteScroll ? dataProviderInfiniteScrollItems : ((queryResult$ | async)?.pageData ?? [])\"\n [dataKey]=\"$any(descriptor.dataKeyProperty)\"\n [lazy]=\"useDataProvider\"\n [loading]=\"(loading$ | async) ?? false\"\n [paginator]=\"useDataProvider && !infiniteScroll\"\n [rows]=\"$any(infiniteScroll ? 20 : rows)\"\n [first]=\"$any(infiniteScroll ? 0 : offset)\"\n [totalRecords]=\"$any(infiniteScroll ? null : (queryResult$ | async)?.allDataCount ?? 0)\"\n [rowsPerPageOptions]=\"$any(infiniteScroll ? null : rowsPerPageOptions)\"\n [showCurrentPageReport]=\"!infiniteScroll\"\n [currentPageReportTemplate]=\"'mngTable.paginationMsg' | translate\"\n [multiSortMeta]=\"$any(multiSortMeta)\"\n [filters]=\"filterMetadata\"\n [(selection)]=\"selection\"\n (selectionChange)=\"onSelectionChange($event)\"\n [scrollable]=\"infiniteScroll\"\n [virtualScroll]=\"infiniteScroll\"\n [virtualRowHeight]=\"$any(rowHeight)\"\n [scrollHeight]=\"$any(scrollHeight)\"\n [rowHover]=\"true\"\n (onLazyLoad)=\"onTableLazyLoad($event)\"\n (onSort)=\"onTableSort($event)\"\n (onFilter)=\"onTableFilter($event)\"\n sortMode=\"multiple\"\n responsiveLayout=\"scroll\">\n\n <ng-template *ngIf=\"captionTemplate || descriptor.title\" pTemplate=\"caption\">\n <ng-container *ngIf=\"captionTemplate; else defaultCaption\">\n <ng-container *ngTemplateOutlet=\"captionTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultCaption>\n <h5 class=\"p-m-0\">{{ descriptor.title }}</h5>\n </ng-template>\n </ng-template>\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th *ngIf=\"selectionEnabled\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <ng-container *ngFor=\"let col of descriptor.columns\">\n <th *ngIf=\"col.isSortEnabled\" [pSortableColumn]=\"col.property\">\n <div class=\"flex justify-content-between align-items-center\">\n {{ descriptor.model.typeName + \".properties.\" + col.property | translate }}\n <p-sortIcon [field]=\"col.property\"></p-sortIcon>\n <mng-table-column-filter *ngIf=\"col.filterDescriptor && descriptor.filterDisplay === filterDisplayMenu\"\n class=\"ml-auto\"\n [display]=\"descriptor.filterDisplay\"\n [descriptor]=\"col.filterDescriptor\">\n </mng-table-column-filter>\n </div>\n </th>\n <th *ngIf=\"!col.isSortEnabled\">\n {{ descriptor.model.typeName + \".properties.\" + col.property | translate }}\n <ng-container>\n <mng-table-column-filter *ngIf=\"col.filterDescriptor && descriptor.filterDisplay === filterDisplayMenu\"\n class=\"ml-auto\"\n [display]=\"descriptor.filterDisplay\"\n [descriptor]=\"col.filterDescriptor\">\n </mng-table-column-filter>\n </ng-container>\n </th>\n </ng-container>\n <th *ngIf=\"columnActionTemplate\"></th>\n </tr>\n <tr *ngIf=\"descriptor.filterDisplay === filterDisplayRow\">\n <th *ngFor=\"let col of descriptor.columns\">\n <div class=\"flex\" *ngIf=\"col.filterDescriptor\">\n <mng-table-column-filter [display]=\"descriptor.filterDisplay\" [descriptor]=\"col.filterDescriptor\"></mng-table-column-filter>\n </div>\n </th>\n <th *ngIf=\"columnActionTemplate\"></th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-item let-idx=\"rowIndex\">\n <tr [style.height.px]=\"descriptor.rowHeight\">\n <td *ngIf=\"selectionEnabled\">\n <p-tableCheckbox [value]=\"item\"></p-tableCheckbox>\n </td>\n <td *ngFor=\"let col of descriptor.columns\" (click)=\"onCellClick(col, item, idx)\" class=\"clickable\">\n <mng-table-column-value [descriptor]=\"col\" [item]=\"item\"></mng-table-column-value>\n </td>\n <td *ngIf=\"columnActionTemplate\" class=\"text-right\">\n <ng-container *ngTemplateOutlet=\"columnActionTemplate; context: { rowItem: item, rowIndex: idx }\"></ng-container>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"loadingbody\">\n <tr [style.height.px]=\"descriptor.rowHeight\">\n <td [attr.colspan]=\"descriptor.columns.length + (columnActionTemplate ? 1 : 0) + (selectionEnabled ? 1 : 0)\">\n <div class=\"loading-text\"></div>\n <p-skeleton [ngStyle]=\"{'width': '100%'}\"></p-skeleton>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr [style.height.px]=\"rowHeight\">\n <td [attr.colspan]=\"descriptor.columns.length + (columnActionTemplate ? 1 : 0) + (selectionEnabled ? 1 : 0)\">\n {{ 'mngTable.noItems' | translate }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n</div>\n" }]
|
|
5232
5289
|
}], ctorParameters: function () {
|
|
@@ -5258,13 +5315,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5258
5315
|
args: ['onSelectionChange']
|
|
5259
5316
|
}], templates: [{
|
|
5260
5317
|
type: ContentChildren,
|
|
5261
|
-
args: [
|
|
5318
|
+
args: [MngTemplateDirective]
|
|
5262
5319
|
}], primeTable: [{
|
|
5263
5320
|
type: ViewChild,
|
|
5264
5321
|
args: [Table]
|
|
5265
5322
|
}] } });
|
|
5266
5323
|
|
|
5267
|
-
class
|
|
5324
|
+
class MngFormlyFieldTableDialogFormComponent extends FieldType {
|
|
5268
5325
|
constructor() {
|
|
5269
5326
|
super(...arguments);
|
|
5270
5327
|
this.itemsSubject = new ReplaySubject(1);
|
|
@@ -5358,14 +5415,14 @@ class FormlyFieldTableDialogFormComponent extends FieldType {
|
|
|
5358
5415
|
this.subscriptions.forEach(s => s.unsubscribe());
|
|
5359
5416
|
}
|
|
5360
5417
|
}
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
5418
|
+
MngFormlyFieldTableDialogFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldTableDialogFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5419
|
+
MngFormlyFieldTableDialogFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldTableDialogFormComponent, selector: "mng-formly-table-dialog-form-field", usesInheritance: true, ngImport: i0, template: "<mng-table [descriptor]=\"descriptor.tableDescriptor\" [items]=\"items$\">\n <ng-template mngTemplate=\"caption\">\n <div class=\"flex flex-column md:flex-row md:justify-content-end table-header\">\n <label class=\"mng-datatable-form-label p-m-0\" [for]=\"key\">{{ to?.label! | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <mng-action *ngFor=\"let action of toolbarActions\" [action]=\"action\"></mng-action>\n </div>\n </ng-template>\n <ng-template mngTemplate=\"columnAction\" let-item=\"rowItem\" let-idx=\"rowIndex\">\n <mng-action *ngFor=\"let action of rowActions\"\n [action]=\"action\" [item]=\"item\" [itemId]=\"descriptor.tableviewDescriptor.model.idPropertyName ? item[descriptor.tableviewDescriptor.model.idPropertyName] : undefined\" [actionData]=\"{ itemIndex: idx }\">\n </mng-action>\n </ng-template>\n</mng-table>\n", styles: [".submit-button{display:none!important;visibility:hidden}\n"], components: [{ type: MngTableComponent, selector: "mng-table", inputs: ["descriptor", "items", "queryResult", "loading", "dataProvider", "useQueryParams", "selectionEnabled"], outputs: ["onLoad", "onCellClick", "onSelectionChange"] }, { type: MngActionComponent, selector: "mng-action", inputs: ["action", "item", "itemId", "actionData"] }], directives: [{ type: MngTemplateDirective, selector: "[mngTemplate]", inputs: ["type", "mngTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldTableDialogFormComponent, decorators: [{
|
|
5364
5421
|
type: Component,
|
|
5365
5422
|
args: [{ selector: 'mng-formly-table-dialog-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-table [descriptor]=\"descriptor.tableDescriptor\" [items]=\"items$\">\n <ng-template mngTemplate=\"caption\">\n <div class=\"flex flex-column md:flex-row md:justify-content-end table-header\">\n <label class=\"mng-datatable-form-label p-m-0\" [for]=\"key\">{{ to?.label! | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <mng-action *ngFor=\"let action of toolbarActions\" [action]=\"action\"></mng-action>\n </div>\n </ng-template>\n <ng-template mngTemplate=\"columnAction\" let-item=\"rowItem\" let-idx=\"rowIndex\">\n <mng-action *ngFor=\"let action of rowActions\"\n [action]=\"action\" [item]=\"item\" [itemId]=\"descriptor.tableviewDescriptor.model.idPropertyName ? item[descriptor.tableviewDescriptor.model.idPropertyName] : undefined\" [actionData]=\"{ itemIndex: idx }\">\n </mng-action>\n </ng-template>\n</mng-table>\n", styles: [".submit-button{display:none!important;visibility:hidden}\n"] }]
|
|
5366
5423
|
}] });
|
|
5367
5424
|
|
|
5368
|
-
class
|
|
5425
|
+
class MngFormlyFieldTableDialogMultiselectComponent extends FieldType {
|
|
5369
5426
|
constructor(injector) {
|
|
5370
5427
|
super();
|
|
5371
5428
|
this.injector = injector;
|
|
@@ -5464,32 +5521,32 @@ class FormlyFieldTableDialogMultiselectComponent extends FieldType {
|
|
|
5464
5521
|
}
|
|
5465
5522
|
}
|
|
5466
5523
|
}
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
5524
|
+
MngFormlyFieldTableDialogMultiselectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldTableDialogMultiselectComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
5525
|
+
MngFormlyFieldTableDialogMultiselectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldTableDialogMultiselectComponent, selector: "mng-formly-table-multiselect-add-field", usesInheritance: true, ngImport: i0, template: "<mng-table [descriptor]=\"descriptor.mainTableDescriptor\" [items]=\"itemsAsync\">\n <ng-template mngTemplate=\"caption\">\n <div class=\"flex flex-column md:flex-row md:justify-content-end table-header\">\n <label class=\"mng-datatable-form-label p-m-0\" [for]=\"key\">{{ to?.label! | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <button *ngIf=\"hasAddAction && !formControl.disabled\" pButton pRipple type=\"button\" icon=\"pi pi-plus\" class=\"p-button-rounded p-button-success\"\n (click)=\"openAddDialog()\">\n </button>\n </div>\n </ng-template>\n <ng-template mngTemplate=\"columnAction\" let-item=\"rowItem\">\n <button *ngIf=\"hasDeleteAction && !formControl.disabled\" pButton pRipple type=\"button\" icon=\"pi pi-trash\" class=\"p-button-rounded p-button-danger\"\n (click)=\"removeItem(item)\">\n </button>\n </ng-template>\n</mng-table>\n\n<p-dialog *ngIf=\"hasAddAction\" [(visible)]=\"isDialogVisible\"\n [draggable]=\"false\"\n [header]=\"'general.addItem' | translate: {item: to?.label!}\"\n [modal]=\"true\"\n appendTo=\"body\"\n styleClass=\"p-fluid mng-formly-field-table-multiselect-dialog\">\n <ng-template pTemplate=\"content\">\n <mng-table [descriptor]=\"descriptor.mainTableDescriptor\"\n [queryResult]=\"addItemsAsync\"\n [selectionEnabled]=\"true\"\n [loading]=\"dialogIsLoading$\"\n (onSelectionChange)=\"onSelectionChange($event)\">\n </mng-table>\n <p-messages [value]=\"dialogMessages\"></p-messages>\n </ng-template>\n\n <ng-template pTemplate=\"footer\">\n <button pButton pRipple type=\"button\" [label]=\"'general.cancel' | translate\" icon=\"pi pi-times\" class=\"p-button-text\" (click)=\"hideDialog()\"></button>\n <button pButton pRipple type=\"button\" [label]=\"'general.add' | translate\" icon=\"pi pi-check\" class=\"p-button-text\" (click)=\"addItems()\" [loading]=\"(dialogIsLoading$ | async) ?? false\" [disabled]=\"form.disabled\"></button>\n </ng-template>\n</p-dialog>\n", components: [{ type: MngTableComponent, selector: "mng-table", inputs: ["descriptor", "items", "queryResult", "loading", "dataProvider", "useQueryParams", "selectionEnabled"], outputs: ["onLoad", "onCellClick", "onSelectionChange"] }, { type: i2$7.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { type: i3$1.Messages, selector: "p-messages", inputs: ["value", "closable", "style", "styleClass", "enableService", "key", "escape", "severity", "showTransitionOptions", "hideTransitionOptions"], outputs: ["valueChange"] }], directives: [{ type: MngTemplateDirective, selector: "[mngTemplate]", inputs: ["type", "mngTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9.Ripple, selector: "[pRipple]" }, { type: i2$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }], pipes: { "translate": i2.TranslatePipe, "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldTableDialogMultiselectComponent, decorators: [{
|
|
5470
5527
|
type: Component,
|
|
5471
5528
|
args: [{ selector: 'mng-formly-table-multiselect-add-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-table [descriptor]=\"descriptor.mainTableDescriptor\" [items]=\"itemsAsync\">\n <ng-template mngTemplate=\"caption\">\n <div class=\"flex flex-column md:flex-row md:justify-content-end table-header\">\n <label class=\"mng-datatable-form-label p-m-0\" [for]=\"key\">{{ to?.label! | translate }} <span *ngIf=\"to.required && to['hideRequiredMarker'] !== true\">*</span></label>\n <button *ngIf=\"hasAddAction && !formControl.disabled\" pButton pRipple type=\"button\" icon=\"pi pi-plus\" class=\"p-button-rounded p-button-success\"\n (click)=\"openAddDialog()\">\n </button>\n </div>\n </ng-template>\n <ng-template mngTemplate=\"columnAction\" let-item=\"rowItem\">\n <button *ngIf=\"hasDeleteAction && !formControl.disabled\" pButton pRipple type=\"button\" icon=\"pi pi-trash\" class=\"p-button-rounded p-button-danger\"\n (click)=\"removeItem(item)\">\n </button>\n </ng-template>\n</mng-table>\n\n<p-dialog *ngIf=\"hasAddAction\" [(visible)]=\"isDialogVisible\"\n [draggable]=\"false\"\n [header]=\"'general.addItem' | translate: {item: to?.label!}\"\n [modal]=\"true\"\n appendTo=\"body\"\n styleClass=\"p-fluid mng-formly-field-table-multiselect-dialog\">\n <ng-template pTemplate=\"content\">\n <mng-table [descriptor]=\"descriptor.mainTableDescriptor\"\n [queryResult]=\"addItemsAsync\"\n [selectionEnabled]=\"true\"\n [loading]=\"dialogIsLoading$\"\n (onSelectionChange)=\"onSelectionChange($event)\">\n </mng-table>\n <p-messages [value]=\"dialogMessages\"></p-messages>\n </ng-template>\n\n <ng-template pTemplate=\"footer\">\n <button pButton pRipple type=\"button\" [label]=\"'general.cancel' | translate\" icon=\"pi pi-times\" class=\"p-button-text\" (click)=\"hideDialog()\"></button>\n <button pButton pRipple type=\"button\" [label]=\"'general.add' | translate\" icon=\"pi pi-check\" class=\"p-button-text\" (click)=\"addItems()\" [loading]=\"(dialogIsLoading$ | async) ?? false\" [disabled]=\"form.disabled\"></button>\n </ng-template>\n</p-dialog>\n" }]
|
|
5472
5529
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
5473
5530
|
|
|
5474
|
-
class
|
|
5531
|
+
class MngFormlyFieldTabsComponent extends FieldType {
|
|
5475
5532
|
}
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
5533
|
+
MngFormlyFieldTabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldTabsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5534
|
+
MngFormlyFieldTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldTabsComponent, selector: "mng-formly-field-tabs", usesInheritance: true, ngImport: i0, template: "<p-tabView>\n <p-tabPanel *ngFor=\"let tab of field.fieldGroup; let i = index; let last = last;\"\n [header]=\"tab.templateOptions?.label!\"\n [headerStyleClass]=\"formControl.valid ? 'p-tabview-title' : 'bla'\">\n <ng-template pTemplate=\"header\">\n <span class=\"p-tabview-title\" [class.p-tabview-title-error]=\"formState.submittedOn && formState['tab_' + (tab.id ? tab.id : tab.templateOptions?.label!) + '_invalid']\">{{ tab.templateOptions?.label! | translate }}</span>\n </ng-template>\n <formly-field [field]=\"tab\"></formly-field>\n </p-tabPanel>\n</p-tabView>\n", components: [{ type: i1$4.TabView, selector: "p-tabView", inputs: ["orientation", "style", "styleClass", "controlClose", "scrollable", "activeIndex"], outputs: ["onChange", "onClose", "activeIndexChange"] }, { type: i1$4.TabPanel, selector: "p-tabPanel", inputs: ["closable", "headerStyle", "headerStyleClass", "cache", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "selected", "disabled", "header", "leftIcon", "rightIcon"] }, { type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldTabsComponent, decorators: [{
|
|
5479
5536
|
type: Component,
|
|
5480
5537
|
args: [{ selector: 'mng-formly-field-tabs', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-tabView>\n <p-tabPanel *ngFor=\"let tab of field.fieldGroup; let i = index; let last = last;\"\n [header]=\"tab.templateOptions?.label!\"\n [headerStyleClass]=\"formControl.valid ? 'p-tabview-title' : 'bla'\">\n <ng-template pTemplate=\"header\">\n <span class=\"p-tabview-title\" [class.p-tabview-title-error]=\"formState.submittedOn && formState['tab_' + (tab.id ? tab.id : tab.templateOptions?.label!) + '_invalid']\">{{ tab.templateOptions?.label! | translate }}</span>\n </ng-template>\n <formly-field [field]=\"tab\"></formly-field>\n </p-tabPanel>\n</p-tabView>\n" }]
|
|
5481
5538
|
}] });
|
|
5482
5539
|
|
|
5483
|
-
class
|
|
5540
|
+
class MngFormlyFieldFieldsetComponent extends FieldType {
|
|
5484
5541
|
}
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
5542
|
+
MngFormlyFieldFieldsetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldFieldsetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5543
|
+
MngFormlyFieldFieldsetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngFormlyFieldFieldsetComponent, selector: "mng-formly-field-fieldset", usesInheritance: true, ngImport: i0, template: "<ng-container *ngFor=\"let group of field.fieldGroup; let i = index; let last = last;\">\n <p-fieldset *ngIf=\"!group.templateOptions?.['descriptor']?.default; else defaultSet\" [legend]=\"group.templateOptions?.label! | translate\">\n <formly-field [field]=\"group\"></formly-field>\n </p-fieldset>\n <ng-template #defaultSet>\n <formly-field [field]=\"group\"></formly-field>\n </ng-template>\n</ng-container>\n", components: [{ type: i1$5.Fieldset, selector: "p-fieldset", inputs: ["legend", "toggleable", "collapsed", "style", "styleClass", "transitionOptions"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { type: i3.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2.TranslatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngFormlyFieldFieldsetComponent, decorators: [{
|
|
5488
5545
|
type: Component,
|
|
5489
5546
|
args: [{ selector: 'mng-formly-field-fieldset', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngFor=\"let group of field.fieldGroup; let i = index; let last = last;\">\n <p-fieldset *ngIf=\"!group.templateOptions?.['descriptor']?.default; else defaultSet\" [legend]=\"group.templateOptions?.label! | translate\">\n <formly-field [field]=\"group\"></formly-field>\n </p-fieldset>\n <ng-template #defaultSet>\n <formly-field [field]=\"group\"></formly-field>\n </ng-template>\n</ng-container>\n" }]
|
|
5490
5547
|
}] });
|
|
5491
5548
|
|
|
5492
|
-
class
|
|
5549
|
+
class MngTableviewComponent {
|
|
5493
5550
|
constructor(route, messageService, translateService, dialogService, confirmationService, actionService, tableviewService) {
|
|
5494
5551
|
this.route = route;
|
|
5495
5552
|
this.messageService = messageService;
|
|
@@ -5538,11 +5595,11 @@ class TableviewComponent {
|
|
|
5538
5595
|
}
|
|
5539
5596
|
}
|
|
5540
5597
|
}
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type:
|
|
5598
|
+
MngTableviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableviewComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: i2$3.MessageService }, { token: i2.TranslateService }, { token: i2$4.DialogService }, { token: i2$3.ConfirmationService }, { token: MngActionService }, { token: TableviewComponentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5599
|
+
MngTableviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MngTableviewComponent, selector: "mng-tableview", inputs: { descriptor: "descriptor", dataProvider: "dataProvider", actions: "actions" }, providers: [MessageService, ConfirmationService, TableviewComponentService], viewQueries: [{ propertyName: "tableComponent", first: true, predicate: MngTableComponent, descendants: true }], ngImport: i0, template: "<div class=\"mng-tableview\">\n\t<p-toast></p-toast>\n\n\t<div class=\"card\">\n\t\t<p-toolbar styleClass=\"mb-4\" *ngIf=\"toolbarLeftActions.length > 0 || toolbarRightActions.length > 0\">\n\t\t\t<ng-template pTemplate=\"left\">\n\t\t\t\t<mng-action *ngFor=\"let action of toolbarLeftActions\"\n\t\t\t\t\t\t\t[action]=\"action\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\n\t\t\t<ng-template pTemplate=\"right\">\n\t\t\t\t<mng-action *ngFor=\"let action of toolbarRightActions\"\n\t\t\t\t\t\t\t[action]=\"action\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\t\t</p-toolbar>\n\n\t\t<mng-table [descriptor]=\"descriptor.table\"\n\t\t\t\t [dataProvider]=\"dataProvider\"\n\t\t\t\t [useQueryParams]=\"true\"\n\t\t\t\t (onCellClick)=\"onTableCellClick($event)\">\n\t\t\t<ng-template mngTemplate=\"caption\">\n\t\t\t\t<div class=\"flex flex-column md:flex-row md:justify-content-between table-header\">\n\t\t\t\t\t<h5 class=\"p-m-0\">{{ descriptor.tableTitle | translate }}</h5>\n\t\t\t\t</div>\n\t\t\t</ng-template>\n\t\t\t<ng-template mngTemplate=\"columnAction\" let-item=\"rowItem\">\n\t\t\t\t<mng-action *ngFor=\"let action of rowInlineActions\"\n\t\t\t\t\t\t\t[action]=\"action\" [item]=\"item\" [itemId]=\"descriptor.model.idPropertyName ? item[descriptor.model.idPropertyName] : null\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\t\t</mng-table>\n\t</div>\n\n\t<router-outlet></router-outlet>\n</div>\n", components: [{ type: i7$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { type: i8$1.Toolbar, selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: MngActionComponent, selector: "mng-action", inputs: ["action", "item", "itemId", "actionData"] }, { type: MngTableComponent, selector: "mng-table", inputs: ["descriptor", "items", "queryResult", "loading", "dataProvider", "useQueryParams", "selectionEnabled"], outputs: ["onLoad", "onCellClick", "onSelectionChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: MngTemplateDirective, selector: "[mngTemplate]", inputs: ["type", "mngTemplate"] }, { type: i1$2.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], pipes: { "translate": i2.TranslatePipe } });
|
|
5600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngTableviewComponent, decorators: [{
|
|
5544
5601
|
type: Component,
|
|
5545
|
-
args: [{ selector: 'mng-tableview', providers: [MessageService, ConfirmationService, TableviewComponentService], template: "<div class=\"mng-tableview\">\n\t<p-toast></p-toast>\n\n\t<div class=\"card\">\n\t\t<p-toolbar styleClass=\"mb-4\">\n\t\t\t<ng-template pTemplate=\"left\">\n\t\t\t\t<mng-action *ngFor=\"let action of toolbarLeftActions\"\n\t\t\t\t\t\t\t[action]=\"action\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\n\t\t\t<ng-template pTemplate=\"right\">\n\t\t\t\t<mng-action *ngFor=\"let action of toolbarRightActions\"\n\t\t\t\t\t\t\t[action]=\"action\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\t\t</p-toolbar>\n\n\t\t<mng-table [descriptor]=\"descriptor.table\"\n\t\t\t\t [dataProvider]=\"dataProvider\"\n\t\t\t\t [useQueryParams]=\"true\"\n\t\t\t\t (onCellClick)=\"onTableCellClick($event)\">\n\t\t\t<ng-template mngTemplate=\"caption\">\n\t\t\t\t<div class=\"flex flex-column md:flex-row md:justify-content-between table-header\">\n\t\t\t\t\t<h5 class=\"p-m-0\">{{ descriptor.tableTitle | translate }}</h5>\n\t\t\t\t
|
|
5602
|
+
args: [{ selector: 'mng-tableview', providers: [MessageService, ConfirmationService, TableviewComponentService], template: "<div class=\"mng-tableview\">\n\t<p-toast></p-toast>\n\n\t<div class=\"card\">\n\t\t<p-toolbar styleClass=\"mb-4\" *ngIf=\"toolbarLeftActions.length > 0 || toolbarRightActions.length > 0\">\n\t\t\t<ng-template pTemplate=\"left\">\n\t\t\t\t<mng-action *ngFor=\"let action of toolbarLeftActions\"\n\t\t\t\t\t\t\t[action]=\"action\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\n\t\t\t<ng-template pTemplate=\"right\">\n\t\t\t\t<mng-action *ngFor=\"let action of toolbarRightActions\"\n\t\t\t\t\t\t\t[action]=\"action\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\t\t</p-toolbar>\n\n\t\t<mng-table [descriptor]=\"descriptor.table\"\n\t\t\t\t [dataProvider]=\"dataProvider\"\n\t\t\t\t [useQueryParams]=\"true\"\n\t\t\t\t (onCellClick)=\"onTableCellClick($event)\">\n\t\t\t<ng-template mngTemplate=\"caption\">\n\t\t\t\t<div class=\"flex flex-column md:flex-row md:justify-content-between table-header\">\n\t\t\t\t\t<h5 class=\"p-m-0\">{{ descriptor.tableTitle | translate }}</h5>\n\t\t\t\t</div>\n\t\t\t</ng-template>\n\t\t\t<ng-template mngTemplate=\"columnAction\" let-item=\"rowItem\">\n\t\t\t\t<mng-action *ngFor=\"let action of rowInlineActions\"\n\t\t\t\t\t\t\t[action]=\"action\" [item]=\"item\" [itemId]=\"descriptor.model.idPropertyName ? item[descriptor.model.idPropertyName] : null\">\n\t\t\t\t</mng-action>\n\t\t\t</ng-template>\n\t\t</mng-table>\n\t</div>\n\n\t<router-outlet></router-outlet>\n</div>\n" }]
|
|
5546
5603
|
}], ctorParameters: function () { return [{ type: i1$2.ActivatedRoute }, { type: i2$3.MessageService }, { type: i2.TranslateService }, { type: i2$4.DialogService }, { type: i2$3.ConfirmationService }, { type: MngActionService }, { type: TableviewComponentService }]; }, propDecorators: { descriptor: [{
|
|
5547
5604
|
type: Input
|
|
5548
5605
|
}], dataProvider: [{
|
|
@@ -5551,7 +5608,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5551
5608
|
type: Input
|
|
5552
5609
|
}], tableComponent: [{
|
|
5553
5610
|
type: ViewChild,
|
|
5554
|
-
args: [
|
|
5611
|
+
args: [MngTableComponent]
|
|
5555
5612
|
}] } });
|
|
5556
5613
|
|
|
5557
5614
|
class AMngTableviewRouteComponent {
|
|
@@ -5575,6 +5632,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5575
5632
|
type: Directive
|
|
5576
5633
|
}], ctorParameters: function () { return []; } });
|
|
5577
5634
|
|
|
5635
|
+
function mngCommonsInitializerProvider(mngCommons) {
|
|
5636
|
+
return () => mngCommons.initialize();
|
|
5637
|
+
}
|
|
5638
|
+
|
|
5578
5639
|
const mngConfigurationServiceProvider = (httpClient, moduleConfig) => {
|
|
5579
5640
|
var _a;
|
|
5580
5641
|
const service = MngConfigurationService.init(httpClient);
|
|
@@ -5584,17 +5645,25 @@ const mngConfigurationServiceProvider = (httpClient, moduleConfig) => {
|
|
|
5584
5645
|
return service;
|
|
5585
5646
|
};
|
|
5586
5647
|
function mngConfigJsonAppInitializerProvider(configService, moduleConfig) {
|
|
5587
|
-
return () => {
|
|
5648
|
+
return () => {
|
|
5649
|
+
var _a, _b, _c;
|
|
5650
|
+
if ((_a = moduleConfig === null || moduleConfig === void 0 ? void 0 : moduleConfig.configuration) === null || _a === void 0 ? void 0 : _a.skipJsonSourceInit) {
|
|
5651
|
+
return of(false);
|
|
5652
|
+
}
|
|
5653
|
+
else {
|
|
5654
|
+
return configService.addJsonSource((_c = (_b = moduleConfig === null || moduleConfig === void 0 ? void 0 : moduleConfig.configuration) === null || _b === void 0 ? void 0 : _b.jsonSource) !== null && _c !== void 0 ? _c : undefined);
|
|
5655
|
+
}
|
|
5656
|
+
};
|
|
5588
5657
|
}
|
|
5589
5658
|
|
|
5590
5659
|
const formlyWrappersConfig = [
|
|
5591
|
-
{ name: 'field', component:
|
|
5592
|
-
{ name: 'field-table', component:
|
|
5660
|
+
{ name: 'field', component: MngFormlyFieldWrapperComponent },
|
|
5661
|
+
{ name: 'field-table', component: MngFormlyTableWrapperComponent }
|
|
5593
5662
|
];
|
|
5594
5663
|
const formlyTypesConfig = [
|
|
5595
5664
|
{
|
|
5596
5665
|
name: 'input',
|
|
5597
|
-
component:
|
|
5666
|
+
component: MngFormlyFieldInputComponent,
|
|
5598
5667
|
wrappers: ['field'],
|
|
5599
5668
|
},
|
|
5600
5669
|
{ name: 'string', extends: 'input' },
|
|
@@ -5627,7 +5696,7 @@ const formlyTypesConfig = [
|
|
|
5627
5696
|
},
|
|
5628
5697
|
{
|
|
5629
5698
|
name: 'switch',
|
|
5630
|
-
component:
|
|
5699
|
+
component: MngFormlyFieldInputComponent,
|
|
5631
5700
|
defaultOptions: {
|
|
5632
5701
|
templateOptions: {
|
|
5633
5702
|
type: 'switch',
|
|
@@ -5654,33 +5723,33 @@ const formlyTypesConfig = [
|
|
|
5654
5723
|
},
|
|
5655
5724
|
{
|
|
5656
5725
|
name: 'dropdown',
|
|
5657
|
-
component:
|
|
5726
|
+
component: MngFormlyFieldDropdownComponent,
|
|
5658
5727
|
wrappers: ['field'],
|
|
5659
5728
|
},
|
|
5660
5729
|
{ name: 'enum', extends: 'dropdown' },
|
|
5661
5730
|
{
|
|
5662
5731
|
name: 'autocomplete',
|
|
5663
|
-
component:
|
|
5732
|
+
component: MngFormlyFieldAutocompleteComponent,
|
|
5664
5733
|
wrappers: ['field']
|
|
5665
5734
|
},
|
|
5666
5735
|
{
|
|
5667
5736
|
name: 'table-dialog-multiselect',
|
|
5668
|
-
component:
|
|
5737
|
+
component: MngFormlyFieldTableDialogMultiselectComponent,
|
|
5669
5738
|
wrappers: ['field-table']
|
|
5670
5739
|
},
|
|
5671
5740
|
{
|
|
5672
5741
|
name: 'table-dialog-form',
|
|
5673
|
-
component:
|
|
5742
|
+
component: MngFormlyFieldTableDialogFormComponent,
|
|
5674
5743
|
wrappers: ['field-table']
|
|
5675
5744
|
},
|
|
5676
5745
|
{
|
|
5677
5746
|
name: 'tabs',
|
|
5678
|
-
component:
|
|
5747
|
+
component: MngFormlyFieldTabsComponent,
|
|
5679
5748
|
wrappers: []
|
|
5680
5749
|
},
|
|
5681
5750
|
{
|
|
5682
5751
|
name: 'fieldset',
|
|
5683
|
-
component:
|
|
5752
|
+
component: MngFormlyFieldFieldsetComponent,
|
|
5684
5753
|
wrappers: []
|
|
5685
5754
|
}
|
|
5686
5755
|
];
|
|
@@ -5756,10 +5825,6 @@ function mngFormlyConfigProvider(translate, moduleConfig = {}) {
|
|
|
5756
5825
|
};
|
|
5757
5826
|
}
|
|
5758
5827
|
|
|
5759
|
-
function mngCommonsInitializerProvider(mngCommons) {
|
|
5760
|
-
return () => mngCommons.initialize();
|
|
5761
|
-
}
|
|
5762
|
-
|
|
5763
5828
|
// primeng modules
|
|
5764
5829
|
const primeNgModules = [
|
|
5765
5830
|
AutoCompleteModule,
|
|
@@ -5798,10 +5863,11 @@ const primeNgModules = [
|
|
|
5798
5863
|
];
|
|
5799
5864
|
const declarations = [
|
|
5800
5865
|
// directives
|
|
5801
|
-
|
|
5866
|
+
MngComponentDirective,
|
|
5867
|
+
MngTemplateDirective,
|
|
5802
5868
|
// pipes
|
|
5803
|
-
|
|
5804
|
-
|
|
5869
|
+
MngPropertyPathPipe,
|
|
5870
|
+
MngBooleanPipe,
|
|
5805
5871
|
// layout components
|
|
5806
5872
|
MngBreadcrumbComponent,
|
|
5807
5873
|
MngFooterComponent,
|
|
@@ -5813,26 +5879,26 @@ const declarations = [
|
|
|
5813
5879
|
MngAutocompleteComponent,
|
|
5814
5880
|
MngDropdownComponent,
|
|
5815
5881
|
// formly wrappers
|
|
5816
|
-
|
|
5817
|
-
|
|
5882
|
+
MngFormlyFieldWrapperComponent,
|
|
5883
|
+
MngFormlyTableWrapperComponent,
|
|
5818
5884
|
// formly fields
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5885
|
+
MngFormlyFieldInputComponent,
|
|
5886
|
+
MngFormlyFieldDropdownComponent,
|
|
5887
|
+
MngFormlyFieldAutocompleteComponent,
|
|
5888
|
+
MngFormlyFieldTableDialogMultiselectComponent,
|
|
5889
|
+
MngFormlyFieldTableDialogFormComponent,
|
|
5890
|
+
MngFormlyFieldTabsComponent,
|
|
5891
|
+
MngFormlyFieldFieldsetComponent,
|
|
5826
5892
|
// table components
|
|
5827
|
-
|
|
5828
|
-
|
|
5893
|
+
MngTableComponent,
|
|
5894
|
+
MngTableviewComponent,
|
|
5829
5895
|
MngTableColumnValueComponent,
|
|
5830
5896
|
MngTableColumnFilterComponent,
|
|
5831
5897
|
// editor components
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5898
|
+
MngFormEditorComponent,
|
|
5899
|
+
MngActionComponent,
|
|
5900
|
+
MngActionDialogComponent,
|
|
5901
|
+
MngActionRouteComponent
|
|
5836
5902
|
];
|
|
5837
5903
|
class MngCommonsModule {
|
|
5838
5904
|
static forRoot(config) {
|
|
@@ -5847,7 +5913,7 @@ class MngCommonsModule {
|
|
|
5847
5913
|
MngNavigationService,
|
|
5848
5914
|
MngCommonsService,
|
|
5849
5915
|
// component service
|
|
5850
|
-
|
|
5916
|
+
MngMainLayoutComponentService,
|
|
5851
5917
|
TableviewComponentService,
|
|
5852
5918
|
{
|
|
5853
5919
|
provide: MNG_MODULE_CONFIG_IT,
|
|
@@ -5887,10 +5953,11 @@ class MngCommonsModule {
|
|
|
5887
5953
|
MngCommonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5888
5954
|
MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsModule, declarations: [
|
|
5889
5955
|
// directives
|
|
5890
|
-
|
|
5956
|
+
MngComponentDirective,
|
|
5957
|
+
MngTemplateDirective,
|
|
5891
5958
|
// pipes
|
|
5892
|
-
|
|
5893
|
-
|
|
5959
|
+
MngPropertyPathPipe,
|
|
5960
|
+
MngBooleanPipe,
|
|
5894
5961
|
// layout components
|
|
5895
5962
|
MngBreadcrumbComponent,
|
|
5896
5963
|
MngFooterComponent,
|
|
@@ -5902,26 +5969,26 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
5902
5969
|
MngAutocompleteComponent,
|
|
5903
5970
|
MngDropdownComponent,
|
|
5904
5971
|
// formly wrappers
|
|
5905
|
-
|
|
5906
|
-
|
|
5972
|
+
MngFormlyFieldWrapperComponent,
|
|
5973
|
+
MngFormlyTableWrapperComponent,
|
|
5907
5974
|
// formly fields
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5975
|
+
MngFormlyFieldInputComponent,
|
|
5976
|
+
MngFormlyFieldDropdownComponent,
|
|
5977
|
+
MngFormlyFieldAutocompleteComponent,
|
|
5978
|
+
MngFormlyFieldTableDialogMultiselectComponent,
|
|
5979
|
+
MngFormlyFieldTableDialogFormComponent,
|
|
5980
|
+
MngFormlyFieldTabsComponent,
|
|
5981
|
+
MngFormlyFieldFieldsetComponent,
|
|
5915
5982
|
// table components
|
|
5916
|
-
|
|
5917
|
-
|
|
5983
|
+
MngTableComponent,
|
|
5984
|
+
MngTableviewComponent,
|
|
5918
5985
|
MngTableColumnValueComponent,
|
|
5919
5986
|
MngTableColumnFilterComponent,
|
|
5920
5987
|
// editor components
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5988
|
+
MngFormEditorComponent,
|
|
5989
|
+
MngActionComponent,
|
|
5990
|
+
MngActionDialogComponent,
|
|
5991
|
+
MngActionRouteComponent
|
|
5925
5992
|
], imports: [
|
|
5926
5993
|
// angular modules
|
|
5927
5994
|
CommonModule,
|
|
@@ -5960,12 +6027,45 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
5960
6027
|
FieldsetModule,
|
|
5961
6028
|
MultiSelectModule,
|
|
5962
6029
|
SkeletonModule
|
|
5963
|
-
], exports: [
|
|
6030
|
+
], exports: [AutoCompleteModule,
|
|
6031
|
+
BreadcrumbModule,
|
|
6032
|
+
ButtonModule,
|
|
6033
|
+
CalendarModule,
|
|
6034
|
+
CardModule,
|
|
6035
|
+
CheckboxModule,
|
|
6036
|
+
ChipModule,
|
|
6037
|
+
ConfirmDialogModule,
|
|
6038
|
+
ConfirmPopupModule,
|
|
6039
|
+
DialogModule,
|
|
6040
|
+
DynamicDialogModule,
|
|
6041
|
+
DropdownModule,
|
|
6042
|
+
InputNumberModule,
|
|
6043
|
+
InputMaskModule,
|
|
6044
|
+
InputSwitchModule,
|
|
6045
|
+
InputTextModule,
|
|
6046
|
+
InputTextareaModule,
|
|
6047
|
+
PaginatorModule,
|
|
6048
|
+
RadioButtonModule,
|
|
6049
|
+
RippleModule,
|
|
6050
|
+
SelectButtonModule,
|
|
6051
|
+
TableModule,
|
|
6052
|
+
TagModule,
|
|
6053
|
+
ToastModule,
|
|
6054
|
+
ToggleButtonModule,
|
|
6055
|
+
ToolbarModule,
|
|
6056
|
+
TooltipModule,
|
|
6057
|
+
MessagesModule,
|
|
6058
|
+
ProgressSpinnerModule,
|
|
6059
|
+
TabViewModule,
|
|
6060
|
+
FieldsetModule,
|
|
6061
|
+
MultiSelectModule,
|
|
6062
|
+
SkeletonModule,
|
|
5964
6063
|
// directives
|
|
5965
|
-
|
|
6064
|
+
MngComponentDirective,
|
|
6065
|
+
MngTemplateDirective,
|
|
5966
6066
|
// pipes
|
|
5967
|
-
|
|
5968
|
-
|
|
6067
|
+
MngPropertyPathPipe,
|
|
6068
|
+
MngBooleanPipe,
|
|
5969
6069
|
// layout components
|
|
5970
6070
|
MngBreadcrumbComponent,
|
|
5971
6071
|
MngFooterComponent,
|
|
@@ -5977,27 +6077,26 @@ MngCommonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
|
|
|
5977
6077
|
MngAutocompleteComponent,
|
|
5978
6078
|
MngDropdownComponent,
|
|
5979
6079
|
// formly wrappers
|
|
5980
|
-
|
|
5981
|
-
|
|
6080
|
+
MngFormlyFieldWrapperComponent,
|
|
6081
|
+
MngFormlyTableWrapperComponent,
|
|
5982
6082
|
// formly fields
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
6083
|
+
MngFormlyFieldInputComponent,
|
|
6084
|
+
MngFormlyFieldDropdownComponent,
|
|
6085
|
+
MngFormlyFieldAutocompleteComponent,
|
|
6086
|
+
MngFormlyFieldTableDialogMultiselectComponent,
|
|
6087
|
+
MngFormlyFieldTableDialogFormComponent,
|
|
6088
|
+
MngFormlyFieldTabsComponent,
|
|
6089
|
+
MngFormlyFieldFieldsetComponent,
|
|
5990
6090
|
// table components
|
|
5991
|
-
|
|
5992
|
-
|
|
6091
|
+
MngTableComponent,
|
|
6092
|
+
MngTableviewComponent,
|
|
5993
6093
|
MngTableColumnValueComponent,
|
|
5994
6094
|
MngTableColumnFilterComponent,
|
|
5995
6095
|
// editor components
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
] });
|
|
6096
|
+
MngFormEditorComponent,
|
|
6097
|
+
MngActionComponent,
|
|
6098
|
+
MngActionDialogComponent,
|
|
6099
|
+
MngActionRouteComponent] });
|
|
6001
6100
|
MngCommonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsModule, imports: [[
|
|
6002
6101
|
// angular modules
|
|
6003
6102
|
CommonModule,
|
|
@@ -6010,7 +6109,39 @@ MngCommonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versio
|
|
|
6010
6109
|
}),
|
|
6011
6110
|
FormlyModule.forChild(),
|
|
6012
6111
|
...primeNgModules
|
|
6013
|
-
]
|
|
6112
|
+
], AutoCompleteModule,
|
|
6113
|
+
BreadcrumbModule,
|
|
6114
|
+
ButtonModule,
|
|
6115
|
+
CalendarModule,
|
|
6116
|
+
CardModule,
|
|
6117
|
+
CheckboxModule,
|
|
6118
|
+
ChipModule,
|
|
6119
|
+
ConfirmDialogModule,
|
|
6120
|
+
ConfirmPopupModule,
|
|
6121
|
+
DialogModule,
|
|
6122
|
+
DynamicDialogModule,
|
|
6123
|
+
DropdownModule,
|
|
6124
|
+
InputNumberModule,
|
|
6125
|
+
InputMaskModule,
|
|
6126
|
+
InputSwitchModule,
|
|
6127
|
+
InputTextModule,
|
|
6128
|
+
InputTextareaModule,
|
|
6129
|
+
PaginatorModule,
|
|
6130
|
+
RadioButtonModule,
|
|
6131
|
+
RippleModule,
|
|
6132
|
+
SelectButtonModule,
|
|
6133
|
+
TableModule,
|
|
6134
|
+
TagModule,
|
|
6135
|
+
ToastModule,
|
|
6136
|
+
ToggleButtonModule,
|
|
6137
|
+
ToolbarModule,
|
|
6138
|
+
TooltipModule,
|
|
6139
|
+
MessagesModule,
|
|
6140
|
+
ProgressSpinnerModule,
|
|
6141
|
+
TabViewModule,
|
|
6142
|
+
FieldsetModule,
|
|
6143
|
+
MultiSelectModule,
|
|
6144
|
+
SkeletonModule] });
|
|
6014
6145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MngCommonsModule, decorators: [{
|
|
6015
6146
|
type: NgModule,
|
|
6016
6147
|
args: [{
|
|
@@ -6031,12 +6162,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
6031
6162
|
...declarations
|
|
6032
6163
|
],
|
|
6033
6164
|
exports: [
|
|
6165
|
+
...primeNgModules,
|
|
6034
6166
|
...declarations
|
|
6035
6167
|
]
|
|
6036
6168
|
}]
|
|
6037
6169
|
}] });
|
|
6038
6170
|
|
|
6039
|
-
class
|
|
6171
|
+
class AMngCrudApiService {
|
|
6040
6172
|
constructor(type, queryResultType, http) {
|
|
6041
6173
|
this.type = type;
|
|
6042
6174
|
this.queryResultType = queryResultType;
|
|
@@ -6114,5 +6246,5 @@ class AbstractCrudApiService {
|
|
|
6114
6246
|
* Generated bundle index. Do not edit.
|
|
6115
6247
|
*/
|
|
6116
6248
|
|
|
6117
|
-
export { AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngTableviewRouteComponent,
|
|
6249
|
+
export { AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngCrudApiService, AMngTableviewRouteComponent, ActionActivationResult, ActionActivationTriggerEnum, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorEditDescriptor, ActionError, ActionExecContext, ActionLevelEnum, ActionPositionEnum, ActionRunResult, ActionTriggerResult, ActionTypeEnum, ColumnDescriptor, DataProvider, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, FieldGroupDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor, FieldValidator, FilterDescriptor, FilterLookupDescriptor, I18nUtil, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusQueryResultBase, MediusQueryResultWithObject, MediusRestUtil, MngActionComponent, MngActionDialogComponent, MngActionRouteComponent, MngActionService, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent, MngCommonsModule, MngCommonsService, MngComponentDirective, MngConfigurationService, MngDropdownComponent, MngFooterComponent, MngFormEditorComponent, MngFormEditorSubmitEvent, MngFormlyFieldAutocompleteComponent, MngFormlyFieldDropdownComponent, MngFormlyFieldFieldsetComponent, MngFormlyFieldInputComponent, MngFormlyFieldTableDialogFormComponent, MngFormlyFieldTableDialogMultiselectComponent, MngFormlyFieldTabsComponent, MngFormlyFieldWrapperComponent, MngFormlyTableWrapperComponent, MngMainLayoutComponent, MngMainLayoutComponentService, MngMenuComponent, MngMenuItemComponent, MngNavigationService, MngPropertyPathPipe, MngTableColumnFilterComponent, MngTableColumnValueComponent, MngTableComponent, MngTableviewComponent, MngTemplateDirective, MngTopbarComponent, ModelDescriptor, ModelUtil, ObjectSerializer, TableDescriptor, TableviewComponentService, TableviewDataProvider, TableviewDescriptor, ToastUtil, TypeName, TypeUtil, enumsMapBase, formlyTypesConfig, formlyWrappersConfig, getFormlyValidationMessages, getMaxLengthValidationMessage, getMinLengthValidationMessage, getRequiredValidationMessage, getTextPatternValidationMessage, mngCommonsInitializerProvider, mngConfigJsonAppInitializerProvider, mngConfigurationServiceProvider, mngFormlyConfigProvider, primeNgModules, typeMapBase, typeNameDecoratorPropertyName };
|
|
6118
6250
|
//# sourceMappingURL=mediusinc-mng-commons.mjs.map
|