@mediusinc/mng-commons 0.4.6 → 0.5.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/api.abstract.service.mjs +15 -4
- package/esm2020/lib/api/services/crud-api.abstract.service.mjs +3 -3
- package/esm2020/lib/components/action/action.component.mjs +52 -8
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +25 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +12 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +17 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +8 -4
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/index.mjs +2 -1
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +3 -3
- package/esm2020/lib/config/formly.config.mjs +7 -2
- package/esm2020/lib/descriptors/action.descriptor.mjs +34 -6
- package/esm2020/lib/descriptors/field.descriptor.mjs +48 -10
- package/esm2020/lib/descriptors/table.descriptor.mjs +3 -13
- package/esm2020/lib/mng-commons.module.mjs +5 -2
- package/esm2020/lib/pipes/enum.pipe.mjs +2 -2
- package/esm2020/lib/services/action-executor.service.mjs +28 -5
- package/esm2020/lib/utils/editor-formly.util.mjs +5 -5
- package/fesm2015/mediusinc-mng-commons.mjs +278 -60
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +270 -59
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/services/api.abstract.service.d.ts +1 -1
- package/lib/api/services/crud-api.abstract.service.d.ts +8 -8
- package/lib/components/action/action.component.d.ts +13 -2
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +4 -2
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +7 -1
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -2
- package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts +6 -0
- package/lib/components/form/formly/fields/index.d.ts +1 -0
- package/lib/descriptors/action.descriptor.d.ts +28 -3
- package/lib/descriptors/field.descriptor.d.ts +26 -12
- package/lib/descriptors/table.descriptor.d.ts +0 -1
- package/lib/mng-commons.module.d.ts +58 -57
- package/lib/pipes/enum.pipe.d.ts +2 -1
- package/package.json +1 -1
- package/scss/mng-overrides/_layout_dialog.scss +44 -14
- package/scss/mng-overrides/_theme_dialog.scss +2 -3
|
@@ -7,7 +7,7 @@ export declare abstract class AMngBaseApiService {
|
|
|
7
7
|
protected readonly objectSerializer: ObjectSerializer;
|
|
8
8
|
protected constructor(http: HttpClient);
|
|
9
9
|
protected abstract getBasePath(): string;
|
|
10
|
-
protected abstract getServiceBasePath(): string;
|
|
10
|
+
protected abstract getServiceBasePath(): string | null;
|
|
11
11
|
protected getUrl(...pathSegments: Array<string>): string;
|
|
12
12
|
protected serializeQueryParam(queryParam: MediusQueryParam, type?: string): any;
|
|
13
13
|
protected deserializeQueryResult<QR>(item: any, qrType: ClassType<QR>): QR;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { ClassType } from '../../types';
|
|
3
|
+
import { ClassType, IdType } from '../../types';
|
|
4
4
|
import { MediusQueryResult } from '../models';
|
|
5
5
|
import { AMngGetAllApiService } from './get-all-api.abstract.service';
|
|
6
6
|
export declare abstract class AMngCrudApiService<T, QRT extends MediusQueryResult<any>> extends AMngGetAllApiService<T, QRT> {
|
|
7
7
|
protected constructor(type: ClassType<T>, queryResultType: ClassType<QRT>, http: HttpClient);
|
|
8
8
|
createPost(item: T, params?: HttpParams): Observable<T>;
|
|
9
|
-
getByIdGet(id:
|
|
10
|
-
updatePut(id:
|
|
11
|
-
removeDelete(id:
|
|
12
|
-
protected getCreatePostPath(): string;
|
|
13
|
-
protected getUpdatePutPath(id:
|
|
14
|
-
protected getGetByIdGetPath(id:
|
|
15
|
-
protected getRemoveDeletePath(id:
|
|
9
|
+
getByIdGet(id: IdType, params?: HttpParams): Observable<T>;
|
|
10
|
+
updatePut(id: IdType, item: T, params?: HttpParams): Observable<T>;
|
|
11
|
+
removeDelete(id: IdType, item?: T, params?: HttpParams): Observable<any>;
|
|
12
|
+
protected getCreatePostPath(item: T): string;
|
|
13
|
+
protected getUpdatePutPath(id: IdType, item: T): string;
|
|
14
|
+
protected getGetByIdGetPath(id: IdType): string;
|
|
15
|
+
protected getRemoveDeletePath(id: IdType, item?: T): string;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { ConfirmationService } from 'primeng/api';
|
|
@@ -10,7 +10,7 @@ import { MngActionExecutorService, MngViewContainerComponentService } from '../.
|
|
|
10
10
|
import { IdType } from '../../types';
|
|
11
11
|
import { ActionData, ActionTriggerResult, IActionConfirmationService } from './models';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MngActionComponent<T, S> implements OnInit, IActionConfirmationService {
|
|
13
|
+
export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDestroy, IActionConfirmationService {
|
|
14
14
|
private route;
|
|
15
15
|
private translate;
|
|
16
16
|
private actionExecutor;
|
|
@@ -37,18 +37,29 @@ export declare class MngActionComponent<T, S> implements OnInit, IActionConfirma
|
|
|
37
37
|
private loadingSubject;
|
|
38
38
|
$loading: Observable<boolean>;
|
|
39
39
|
cmpId: string;
|
|
40
|
+
private isVisibleSubject;
|
|
41
|
+
private isVisibleSubscription?;
|
|
40
42
|
$isVisible: Observable<boolean>;
|
|
43
|
+
private isEnabledSubject;
|
|
44
|
+
private isEnabledSubscription?;
|
|
41
45
|
$isEnabled: Observable<boolean>;
|
|
46
|
+
private labelSubject;
|
|
47
|
+
private labelSubscription?;
|
|
42
48
|
$label: Observable<string | null>;
|
|
49
|
+
private tooltipSubject;
|
|
50
|
+
private tooltipSubscription?;
|
|
43
51
|
$tooltip: Observable<string | null>;
|
|
44
52
|
private viewContainer?;
|
|
45
53
|
actionLink?: ActionLinkDescriptor<T>;
|
|
46
54
|
hasNoTitle: boolean;
|
|
47
55
|
constructor(route: ActivatedRoute, translate: TranslateService, actionExecutor: MngActionExecutorService, confirmationService: ConfirmationService, viewContainerService: MngViewContainerComponentService<T, S> | null);
|
|
48
56
|
ngOnInit(): void;
|
|
57
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
49
59
|
triggerAction(event: Event): void;
|
|
50
60
|
getConfirmationService(): ConfirmationService;
|
|
51
61
|
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
62
|
+
private processSubscriptions;
|
|
52
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionComponent<any, any>, [null, null, null, null, { optional: true; }]>;
|
|
53
64
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": "action"; "item": "item"; "itemId": "itemId"; "actionData": "actionData"; "dataProvider": "dataProvider"; "inputDisabled": "disabled"; "inputLoading": "loading"; "viewContainerInit": "viewContainer"; }, { "triggerEventEmitter": "trigger"; }, never, never>;
|
|
54
65
|
}
|
package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FieldType } from '@ngx-formly/core';
|
|
4
4
|
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MngFormlyFieldDropdownComponent<T> extends FieldType implements OnInit {
|
|
6
|
+
export declare class MngFormlyFieldDropdownComponent<T> extends FieldType implements OnInit, OnDestroy {
|
|
7
7
|
dFormControl: FormControl;
|
|
8
8
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
9
|
+
private subscriptions;
|
|
9
10
|
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldDropdownComponent<any>, never>;
|
|
11
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never>;
|
|
12
14
|
}
|
package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { FieldGroupDescriptor } from '../../../../../descriptors';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MngFormlyFieldFieldsetComponent extends FieldType {
|
|
5
|
+
export declare class MngFormlyFieldFieldsetComponent extends FieldType implements OnInit {
|
|
6
|
+
readonly typeFieldset = FieldGroupDescriptor.TypeEnum.Fieldset;
|
|
7
|
+
readonly typeLogical = FieldGroupDescriptor.TypeEnum.Logical;
|
|
8
|
+
descriptor?: FieldGroupDescriptor<any>;
|
|
9
|
+
ngOnInit(): void;
|
|
4
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldFieldsetComponent, never>;
|
|
5
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldFieldsetComponent, "mng-formly-field-fieldset", never, {}, {}, never, never>;
|
|
6
12
|
}
|
package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FieldType } from '@ngx-formly/core';
|
|
4
4
|
import { FieldInputDescriptor } from '../../../../../descriptors';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MngFormlyFieldInputComponent extends FieldType implements OnInit {
|
|
6
|
+
export declare class MngFormlyFieldInputComponent extends FieldType implements OnInit, OnDestroy {
|
|
7
7
|
iFormControl: FormControl;
|
|
8
8
|
descriptor: FieldInputDescriptor<any>;
|
|
9
|
+
private subscriptions;
|
|
9
10
|
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldInputComponent, never>;
|
|
11
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent, "mng-formly-field-input", never, {}, {}, never, never>;
|
|
12
14
|
}
|
package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MngFormlyFieldLabelComponent {
|
|
3
|
+
className: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldLabelComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldLabelComponent, "mng-formly-field-label", never, {}, {}, never, never>;
|
|
6
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './formly-field-autocomplete/formly-field-autocomplete.component';
|
|
2
2
|
export * from './formly-field-input/formly-field-input.component';
|
|
3
|
+
export * from './formly-field-label/formly-field-label.component';
|
|
3
4
|
export * from './formly-field-dropdown/formly-field-dropdown.component';
|
|
4
5
|
export * from './formly-field-lookup-dialog/formly-field-lookup-dialog.component';
|
|
5
6
|
export * from './formly-field-table-dialog-form/formly-field-table-dialog-form.component';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Params, QueryParamsHandling } from '@angular/router';
|
|
3
|
+
import { Confirmation } from 'primeng/api';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { ActionExecContext } from '../components/action/models';
|
|
5
6
|
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
@@ -35,6 +36,7 @@ export declare class ActionDescriptor<T> {
|
|
|
35
36
|
private _runConfirmationMessage?;
|
|
36
37
|
private _runConfirmationAcceptTitle?;
|
|
37
38
|
private _runConfirmationRejectTitle?;
|
|
39
|
+
private _runConfirmationConfigMapFn?;
|
|
38
40
|
protected _hasRunNotificationSuccess: boolean;
|
|
39
41
|
private _runNotificationSuccessTitle?;
|
|
40
42
|
private _runNotificationSuccessMessage?;
|
|
@@ -75,6 +77,7 @@ export declare class ActionDescriptor<T> {
|
|
|
75
77
|
get runConfirmationMessage(): string | undefined;
|
|
76
78
|
get runConfirmationAcceptTitle(): string | undefined;
|
|
77
79
|
get runConfirmationRejectTitle(): string | undefined;
|
|
80
|
+
get runConfirmationConfigMapFn(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>, confirmConfig: Confirmation) => Confirmation) | undefined;
|
|
78
81
|
get hasRunNotificationSuccess(): boolean;
|
|
79
82
|
get runNotificationSuccessTitle(): string | undefined;
|
|
80
83
|
get runNotificationSuccessMessage(): string | undefined;
|
|
@@ -103,7 +106,17 @@ export declare class ActionDescriptor<T> {
|
|
|
103
106
|
withSize(size?: ActionDescriptor.SizeEnum): this;
|
|
104
107
|
withStyle(styleText?: boolean, styleOutlined?: boolean, styleRaised?: boolean): this;
|
|
105
108
|
withPosition(position: ActionPositionEnum): this;
|
|
106
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Add a confirmation dialogue to the action
|
|
111
|
+
* @param icon the icon to display on the confirmation dialogue
|
|
112
|
+
* @param title the title of the confirmation dialogue
|
|
113
|
+
* @param message the message on the confirmation dialogue
|
|
114
|
+
* @param acceptTitle the title of the accepting button
|
|
115
|
+
* @param rejectTitle the title of the rejecting button
|
|
116
|
+
* @param runConfirmationConfigMapFn function used to generate the confirmation dialogue. **WARNING** changing the *accept* and *reject* methods of the *confirmConfig* parameter
|
|
117
|
+
* may lead to unexpected behaviour
|
|
118
|
+
*/
|
|
119
|
+
withRunConfirmation(icon?: string, title?: string, message?: string, acceptTitle?: string, rejectTitle?: string, runConfirmationConfigMapFn?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>, confirmConfig: Confirmation) => Confirmation): this;
|
|
107
120
|
withRunNotificationSuccess(title?: string, message?: string, hasNotification?: boolean): void;
|
|
108
121
|
withRunNotificationError(title?: string, message?: string, hasNotification?: boolean): void;
|
|
109
122
|
}
|
|
@@ -126,7 +139,8 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
126
139
|
protected _hasFetchNotificationSuccess: boolean;
|
|
127
140
|
protected _fetchNotificationSuccessTitle?: string;
|
|
128
141
|
protected _fetchNotificationSuccessMessage?: string;
|
|
129
|
-
protected
|
|
142
|
+
protected _dialogSize: ActionEditorDescriptor.DialogSizeEnum;
|
|
143
|
+
protected _dialogClassName?: string;
|
|
130
144
|
protected _dataProvider?: IEditorDataProvider<T, any>;
|
|
131
145
|
protected _fetchFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
132
146
|
protected _submitFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
@@ -134,7 +148,8 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
134
148
|
constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
135
149
|
get editorTitle(): string | null | undefined;
|
|
136
150
|
get editorDescriptor(): EditorDescriptor<T>;
|
|
137
|
-
get
|
|
151
|
+
get dialogSize(): ActionEditorDescriptor.DialogSizeEnum;
|
|
152
|
+
get dialogClassName(): string | undefined;
|
|
138
153
|
get hasFetchNotificationSuccess(): boolean;
|
|
139
154
|
get fetchNotificationSuccessTitle(): string | undefined;
|
|
140
155
|
get fetchNotificationSuccessMessage(): string | undefined;
|
|
@@ -147,6 +162,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
147
162
|
withEditorTitle(title: string | null): this;
|
|
148
163
|
withDataProvider(dataProvider: IEditorDataProvider<T, any>): this;
|
|
149
164
|
withServiceType<S>(serviceType: Type<S>): this;
|
|
165
|
+
withDialogSize(size?: ActionEditorDescriptor.DialogSizeEnum): this;
|
|
150
166
|
withDialogClassName(className: string): this;
|
|
151
167
|
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
152
168
|
withFetchFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
@@ -156,6 +172,15 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
156
172
|
withEditorActions(actions: ActionDescriptor<T>[]): this;
|
|
157
173
|
withEditorComponent(editorComponent: Type<any>): this;
|
|
158
174
|
}
|
|
175
|
+
export declare namespace ActionEditorDescriptor {
|
|
176
|
+
enum DialogSizeEnum {
|
|
177
|
+
ExtraSmall = 0,
|
|
178
|
+
Small = 1,
|
|
179
|
+
Normal = 2,
|
|
180
|
+
Large = 3,
|
|
181
|
+
ExtraLarge = 4
|
|
182
|
+
}
|
|
183
|
+
}
|
|
159
184
|
export declare class ActionEditorSubmitDescriptor<T> extends ActionDescriptor<T> {
|
|
160
185
|
private readonly _editorAction;
|
|
161
186
|
private readonly _submitType;
|
|
@@ -20,7 +20,7 @@ export declare abstract class AGenericFieldDescriptor<ET> {
|
|
|
20
20
|
export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescriptor<ET> {
|
|
21
21
|
protected readonly _property: string;
|
|
22
22
|
protected _group?: AFieldGroupDescriptor<ET>;
|
|
23
|
-
protected _label?: string;
|
|
23
|
+
protected _label?: string | null;
|
|
24
24
|
protected _placeholder?: string;
|
|
25
25
|
protected _helpText?: string;
|
|
26
26
|
protected _required: boolean;
|
|
@@ -33,6 +33,7 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
33
33
|
protected _disabledExpression?: string | ((model: any, formState?: any, field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
34
34
|
protected _hiddenExpression?: string | ((model: any, formState?: any, field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
35
35
|
protected _className: string;
|
|
36
|
+
protected _fieldClassName?: string;
|
|
36
37
|
protected _labelClassName: string;
|
|
37
38
|
protected _inputClassName: string;
|
|
38
39
|
protected _size: FieldDescriptor.SizeEnum;
|
|
@@ -40,7 +41,7 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
40
41
|
protected constructor(editor: EditorDescriptor<ET>, property: string);
|
|
41
42
|
get property(): string;
|
|
42
43
|
get group(): AFieldGroupDescriptor<ET> | undefined;
|
|
43
|
-
get label(): string | undefined;
|
|
44
|
+
get label(): string | null | undefined;
|
|
44
45
|
get placeholder(): string | undefined;
|
|
45
46
|
get helpText(): string | undefined;
|
|
46
47
|
get required(): boolean;
|
|
@@ -53,13 +54,14 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
53
54
|
get disabledExpression(): string | Observable<boolean> | ((model: any, formState?: any, field?: FormlyFieldConfig | undefined) => boolean) | undefined;
|
|
54
55
|
get hiddenExpression(): string | Observable<boolean> | ((model: any, formState?: any, field?: FormlyFieldConfig | undefined) => boolean) | undefined;
|
|
55
56
|
get className(): string;
|
|
57
|
+
get fieldClassName(): string | undefined;
|
|
56
58
|
get labelClassName(): string;
|
|
57
59
|
get inputClassName(): string;
|
|
58
60
|
get size(): FieldDescriptor.SizeEnum;
|
|
59
61
|
get isSizeSmall(): boolean;
|
|
60
62
|
get isSizeLarge(): boolean;
|
|
61
63
|
abstract copy(): AFieldDescriptor<T, ET>;
|
|
62
|
-
withLabel(label: string): this;
|
|
64
|
+
withLabel(label: string | null): this;
|
|
63
65
|
withPlaceholder(placeholder: string): this;
|
|
64
66
|
withHelpText(helpText: string): this;
|
|
65
67
|
withRequired(required?: boolean, requiredExpression?: string | ((model: any, formState?: any, field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
|
|
@@ -69,7 +71,7 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
69
71
|
withGetter(getter: (item: ET) => T): this;
|
|
70
72
|
withSetter(setter: (item: ET, value: T) => void): this;
|
|
71
73
|
withValidator(name: string, expression: (control: AbstractControl) => boolean, message?: (err: any, field: FormlyFieldConfig) => string): this;
|
|
72
|
-
withClassName(className: string, labelClassName?: string, inputClassName?: string): this;
|
|
74
|
+
withClassName(className: string, labelClassName?: string, inputClassName?: string, fieldClassName?: string): this;
|
|
73
75
|
withSize(size?: FieldDescriptor.SizeEnum): this;
|
|
74
76
|
nextEvent(type: MngFormFieldEventTypeEnum, cmpType: Type<any>, cmpInstance: any, data?: MngFormFieldEventData<T, ET>): void;
|
|
75
77
|
get events$(): Observable<MngFormFieldEvent<T, ET>>;
|
|
@@ -123,6 +125,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
123
125
|
get slotChar(): string | undefined;
|
|
124
126
|
get customComponentName(): string | undefined;
|
|
125
127
|
asHidden(): this;
|
|
128
|
+
asLabel(): this;
|
|
126
129
|
asText(minLength?: number, maxLength?: number, pattern?: string | RegExp, isEmail?: boolean): this;
|
|
127
130
|
asTextarea(rows?: number, minLength?: number, maxLength?: number, pattern?: string | RegExp): this;
|
|
128
131
|
asNumber(step?: number, min?: number, max?: number, minFractionDigits?: number, maxFractionDigits?: number, numberUseGrouping?: boolean): this;
|
|
@@ -137,14 +140,15 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
137
140
|
export declare namespace FieldInputDescriptor {
|
|
138
141
|
enum TypeEnum {
|
|
139
142
|
Hidden = 0,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
Label = 1,
|
|
144
|
+
Text = 2,
|
|
145
|
+
Textarea = 3,
|
|
146
|
+
Number = 4,
|
|
147
|
+
Switch = 5,
|
|
148
|
+
Radio = 6,
|
|
149
|
+
Datepicker = 7,
|
|
150
|
+
Mask = 8,
|
|
151
|
+
Custom = 9
|
|
148
152
|
}
|
|
149
153
|
}
|
|
150
154
|
export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET> implements ILookupDescriptor<T> {
|
|
@@ -200,6 +204,7 @@ export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor
|
|
|
200
204
|
constructor(editor: EditorDescriptor<ET>, property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
|
|
201
205
|
get enumType(): EnumType;
|
|
202
206
|
withDisabledOptions(...disabledOptions: Array<EnumConstantType>): this;
|
|
207
|
+
withDefaultValueEnum(defaultValue: EnumConstantType): this;
|
|
203
208
|
asAutocomplete(openOnFocus?: boolean): this;
|
|
204
209
|
copy(): FieldLookupEnumDescriptor<ET>;
|
|
205
210
|
}
|
|
@@ -293,9 +298,18 @@ export declare class FieldTabGroupDescriptor<ET> extends AFieldGroupDescriptor<E
|
|
|
293
298
|
copy(): FieldTabGroupDescriptor<ET>;
|
|
294
299
|
}
|
|
295
300
|
export declare class FieldGroupDescriptor<ET> extends AFieldGroupDescriptor<ET> {
|
|
301
|
+
private _type;
|
|
296
302
|
constructor(editor: EditorDescriptor<ET>, name: string);
|
|
303
|
+
get type(): FieldGroupDescriptor.TypeEnum;
|
|
297
304
|
get fields(): Array<AFieldDescriptor<any, ET>>;
|
|
298
305
|
groupName(): string;
|
|
299
306
|
addField(field: AFieldDescriptor<any, ET>): this;
|
|
307
|
+
asLogical(): this;
|
|
300
308
|
copy(): FieldGroupDescriptor<ET>;
|
|
301
309
|
}
|
|
310
|
+
export declare namespace FieldGroupDescriptor {
|
|
311
|
+
enum TypeEnum {
|
|
312
|
+
Fieldset = 0,
|
|
313
|
+
Logical = 1
|
|
314
|
+
}
|
|
315
|
+
}
|
|
@@ -45,7 +45,6 @@ export declare class TableDescriptor<T> {
|
|
|
45
45
|
withRowHeight(rowHeight: number): TableDescriptor<T>;
|
|
46
46
|
withTableFullHeightOffset(tableFullHeightOffset: number): TableDescriptor<T>;
|
|
47
47
|
copy(): TableDescriptor<T>;
|
|
48
|
-
private setDataKeyFromColumn;
|
|
49
48
|
}
|
|
50
49
|
export declare namespace TableDescriptor {
|
|
51
50
|
enum PaginationModeEnum {
|
|
@@ -20,66 +20,67 @@ import * as i15 from "./components/form/dropdown/dropdown.component";
|
|
|
20
20
|
import * as i16 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
|
|
21
21
|
import * as i17 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
|
|
22
22
|
import * as i18 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
|
|
23
|
-
import * as i19 from "./components/form/formly/fields/formly-field-
|
|
24
|
-
import * as i20 from "./components/form/formly/fields/formly-field-
|
|
25
|
-
import * as i21 from "./components/form/formly/fields/formly-field-
|
|
26
|
-
import * as i22 from "./components/form/formly/fields/formly-field-
|
|
27
|
-
import * as i23 from "./components/form/formly/fields/formly-field-table-dialog-
|
|
28
|
-
import * as i24 from "./components/form/formly/fields/formly-field-
|
|
29
|
-
import * as i25 from "./components/form/formly/fields/formly-field-
|
|
30
|
-
import * as i26 from "./components/
|
|
31
|
-
import * as i27 from "./components/tableview/
|
|
32
|
-
import * as i28 from "./components/tableview/
|
|
33
|
-
import * as i29 from "./components/tableview/table/column-
|
|
34
|
-
import * as i30 from "./components/tableview/
|
|
35
|
-
import * as i31 from "./components/
|
|
36
|
-
import * as i32 from "./components/
|
|
37
|
-
import * as i33 from "./components/action/
|
|
38
|
-
import * as i34 from "./components/action/
|
|
39
|
-
import * as i35 from "
|
|
40
|
-
import * as i36 from "@angular/
|
|
41
|
-
import * as i37 from "@angular/
|
|
42
|
-
import * as i38 from "@angular/
|
|
43
|
-
import * as i39 from "@
|
|
44
|
-
import * as i40 from "@ngx-
|
|
45
|
-
import * as i41 from "
|
|
46
|
-
import * as i42 from "primeng/
|
|
47
|
-
import * as i43 from "primeng/
|
|
48
|
-
import * as i44 from "primeng/
|
|
49
|
-
import * as i45 from "primeng/
|
|
50
|
-
import * as i46 from "primeng/
|
|
51
|
-
import * as i47 from "primeng/
|
|
52
|
-
import * as i48 from "primeng/
|
|
53
|
-
import * as i49 from "primeng/
|
|
54
|
-
import * as i50 from "primeng/
|
|
55
|
-
import * as i51 from "primeng/
|
|
56
|
-
import * as i52 from "primeng/
|
|
57
|
-
import * as i53 from "primeng/
|
|
58
|
-
import * as i54 from "primeng/
|
|
59
|
-
import * as i55 from "primeng/
|
|
60
|
-
import * as i56 from "primeng/
|
|
61
|
-
import * as i57 from "primeng/
|
|
62
|
-
import * as i58 from "primeng/
|
|
63
|
-
import * as i59 from "primeng/
|
|
64
|
-
import * as i60 from "primeng/
|
|
65
|
-
import * as i61 from "primeng/
|
|
66
|
-
import * as i62 from "primeng/
|
|
67
|
-
import * as i63 from "primeng/
|
|
68
|
-
import * as i64 from "primeng/
|
|
69
|
-
import * as i65 from "primeng/
|
|
70
|
-
import * as i66 from "primeng/
|
|
71
|
-
import * as i67 from "primeng/
|
|
72
|
-
import * as i68 from "primeng/
|
|
73
|
-
import * as i69 from "primeng/
|
|
74
|
-
import * as i70 from "primeng/
|
|
75
|
-
import * as i71 from "primeng/
|
|
76
|
-
import * as i72 from "primeng/
|
|
77
|
-
import * as i73 from "primeng/
|
|
78
|
-
import * as i74 from "primeng/
|
|
23
|
+
import * as i19 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
|
|
24
|
+
import * as i20 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
|
|
25
|
+
import * as i21 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
|
|
26
|
+
import * as i22 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
|
|
27
|
+
import * as i23 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
|
|
28
|
+
import * as i24 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
|
|
29
|
+
import * as i25 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
30
|
+
import * as i26 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
31
|
+
import * as i27 from "./components/tableview/table/table.component";
|
|
32
|
+
import * as i28 from "./components/tableview/tableview.component";
|
|
33
|
+
import * as i29 from "./components/tableview/table/column-value/column-value.component";
|
|
34
|
+
import * as i30 from "./components/tableview/table/column-filter/column-filter.component";
|
|
35
|
+
import * as i31 from "./components/tableview/route/tableview-route.component";
|
|
36
|
+
import * as i32 from "./components/form/editor/form-editor.component";
|
|
37
|
+
import * as i33 from "./components/action/action.component";
|
|
38
|
+
import * as i34 from "./components/action/editor/action-editor.component";
|
|
39
|
+
import * as i35 from "./components/action/route/action-route.component";
|
|
40
|
+
import * as i36 from "@angular/common";
|
|
41
|
+
import * as i37 from "@angular/router";
|
|
42
|
+
import * as i38 from "@angular/common/http";
|
|
43
|
+
import * as i39 from "@angular/forms";
|
|
44
|
+
import * as i40 from "@ngx-translate/core";
|
|
45
|
+
import * as i41 from "@ngx-formly/core";
|
|
46
|
+
import * as i42 from "primeng/autocomplete";
|
|
47
|
+
import * as i43 from "primeng/breadcrumb";
|
|
48
|
+
import * as i44 from "primeng/button";
|
|
49
|
+
import * as i45 from "primeng/calendar";
|
|
50
|
+
import * as i46 from "primeng/card";
|
|
51
|
+
import * as i47 from "primeng/checkbox";
|
|
52
|
+
import * as i48 from "primeng/chip";
|
|
53
|
+
import * as i49 from "primeng/confirmdialog";
|
|
54
|
+
import * as i50 from "primeng/confirmpopup";
|
|
55
|
+
import * as i51 from "primeng/dialog";
|
|
56
|
+
import * as i52 from "primeng/dynamicdialog";
|
|
57
|
+
import * as i53 from "primeng/dropdown";
|
|
58
|
+
import * as i54 from "primeng/fileupload";
|
|
59
|
+
import * as i55 from "primeng/inputnumber";
|
|
60
|
+
import * as i56 from "primeng/inputmask";
|
|
61
|
+
import * as i57 from "primeng/inputswitch";
|
|
62
|
+
import * as i58 from "primeng/inputtext";
|
|
63
|
+
import * as i59 from "primeng/inputtextarea";
|
|
64
|
+
import * as i60 from "primeng/paginator";
|
|
65
|
+
import * as i61 from "primeng/radiobutton";
|
|
66
|
+
import * as i62 from "primeng/ripple";
|
|
67
|
+
import * as i63 from "primeng/selectbutton";
|
|
68
|
+
import * as i64 from "primeng/table";
|
|
69
|
+
import * as i65 from "primeng/tag";
|
|
70
|
+
import * as i66 from "primeng/toast";
|
|
71
|
+
import * as i67 from "primeng/togglebutton";
|
|
72
|
+
import * as i68 from "primeng/toolbar";
|
|
73
|
+
import * as i69 from "primeng/tooltip";
|
|
74
|
+
import * as i70 from "primeng/messages";
|
|
75
|
+
import * as i71 from "primeng/progressspinner";
|
|
76
|
+
import * as i72 from "primeng/tabview";
|
|
77
|
+
import * as i73 from "primeng/fieldset";
|
|
78
|
+
import * as i74 from "primeng/multiselect";
|
|
79
|
+
import * as i75 from "primeng/skeleton";
|
|
79
80
|
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
80
81
|
export declare class MngCommonsModule {
|
|
81
82
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
82
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
83
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngLinkFormatterPipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngAutocompleteComponent, typeof i15.MngDropdownComponent, typeof i16.MngFormlyFieldWrapperComponent, typeof i17.MngFormlyTableWrapperComponent, typeof i18.MngFormlyFieldInputComponent, typeof i19.
|
|
84
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngLinkFormatterPipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngAutocompleteComponent, typeof i15.MngDropdownComponent, typeof i16.MngFormlyFieldWrapperComponent, typeof i17.MngFormlyTableWrapperComponent, typeof i18.MngFormlyFieldInputComponent, typeof i19.MngFormlyFieldLabelComponent, typeof i20.MngFormlyFieldDropdownComponent, typeof i21.MngFormlyFieldAutocompleteComponent, typeof i22.MngFormlyFieldLookupDialogComponent, typeof i23.MngFormlyFieldTableDialogMultiselectComponent, typeof i24.MngFormlyFieldTableDialogFormComponent, typeof i25.MngFormlyFieldTabsComponent, typeof i26.MngFormlyFieldFieldsetComponent, typeof i27.MngTableComponent, typeof i28.MngTableviewComponent, typeof i29.MngTableColumnValueComponent, typeof i30.MngTableColumnFilterComponent, typeof i31.MngTableviewRouteComponent, typeof i32.MngFormEditorComponent, typeof i33.MngActionComponent, typeof i34.MngActionEditorComponent, typeof i35.MngActionRouteComponent], [typeof i36.CommonModule, typeof i37.RouterModule, typeof i38.HttpClientModule, typeof i39.ReactiveFormsModule, typeof i40.TranslateModule, typeof i41.FormlyModule, typeof i42.AutoCompleteModule, typeof i43.BreadcrumbModule, typeof i44.ButtonModule, typeof i45.CalendarModule, typeof i46.CardModule, typeof i47.CheckboxModule, typeof i48.ChipModule, typeof i49.ConfirmDialogModule, typeof i50.ConfirmPopupModule, typeof i51.DialogModule, typeof i52.DynamicDialogModule, typeof i53.DropdownModule, typeof i54.FileUploadModule, typeof i55.InputNumberModule, typeof i56.InputMaskModule, typeof i57.InputSwitchModule, typeof i58.InputTextModule, typeof i59.InputTextareaModule, typeof i60.PaginatorModule, typeof i61.RadioButtonModule, typeof i62.RippleModule, typeof i63.SelectButtonModule, typeof i64.TableModule, typeof i65.TagModule, typeof i66.ToastModule, typeof i67.ToggleButtonModule, typeof i68.ToolbarModule, typeof i69.TooltipModule, typeof i70.MessagesModule, typeof i71.ProgressSpinnerModule, typeof i72.TabViewModule, typeof i73.FieldsetModule, typeof i74.MultiSelectModule, typeof i75.SkeletonModule], [typeof i42.AutoCompleteModule, typeof i43.BreadcrumbModule, typeof i44.ButtonModule, typeof i45.CalendarModule, typeof i46.CardModule, typeof i47.CheckboxModule, typeof i48.ChipModule, typeof i49.ConfirmDialogModule, typeof i50.ConfirmPopupModule, typeof i51.DialogModule, typeof i52.DynamicDialogModule, typeof i53.DropdownModule, typeof i54.FileUploadModule, typeof i55.InputNumberModule, typeof i56.InputMaskModule, typeof i57.InputSwitchModule, typeof i58.InputTextModule, typeof i59.InputTextareaModule, typeof i60.PaginatorModule, typeof i61.RadioButtonModule, typeof i62.RippleModule, typeof i63.SelectButtonModule, typeof i64.TableModule, typeof i65.TagModule, typeof i66.ToastModule, typeof i67.ToggleButtonModule, typeof i68.ToolbarModule, typeof i69.TooltipModule, typeof i70.MessagesModule, typeof i71.ProgressSpinnerModule, typeof i72.TabViewModule, typeof i73.FieldsetModule, typeof i74.MultiSelectModule, typeof i75.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngLinkFormatterPipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngAutocompleteComponent, typeof i15.MngDropdownComponent, typeof i16.MngFormlyFieldWrapperComponent, typeof i17.MngFormlyTableWrapperComponent, typeof i18.MngFormlyFieldInputComponent, typeof i19.MngFormlyFieldLabelComponent, typeof i20.MngFormlyFieldDropdownComponent, typeof i21.MngFormlyFieldAutocompleteComponent, typeof i22.MngFormlyFieldLookupDialogComponent, typeof i23.MngFormlyFieldTableDialogMultiselectComponent, typeof i24.MngFormlyFieldTableDialogFormComponent, typeof i25.MngFormlyFieldTabsComponent, typeof i26.MngFormlyFieldFieldsetComponent, typeof i27.MngTableComponent, typeof i28.MngTableviewComponent, typeof i29.MngTableColumnValueComponent, typeof i30.MngTableColumnFilterComponent, typeof i31.MngTableviewRouteComponent, typeof i32.MngFormEditorComponent, typeof i33.MngActionComponent, typeof i34.MngActionEditorComponent, typeof i35.MngActionRouteComponent]>;
|
|
84
85
|
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
85
86
|
}
|
package/lib/pipes/enum.pipe.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { EnumType } from '../types';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class MngEnumPipe implements PipeTransform {
|
|
4
|
-
transform(value:
|
|
5
|
+
transform(value: unknown, enumObj: EnumType | undefined, i18nPath?: string | null, nameAsValue?: boolean): any;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngEnumPipe, never>;
|
|
6
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumPipe, "enum">;
|
|
7
8
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@import 'mixins';
|
|
2
2
|
|
|
3
3
|
.p-dialog {
|
|
4
|
-
&.mng-
|
|
5
|
-
|
|
6
|
-
height: 90%;
|
|
4
|
+
&.mng-action-editor-dialog {
|
|
5
|
+
height: 90vh;
|
|
7
6
|
width: 60vw;
|
|
8
7
|
|
|
9
8
|
@include mediaMaxLg() {
|
|
@@ -11,25 +10,56 @@
|
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
@include mediaMaxMd() {
|
|
14
|
-
width:
|
|
13
|
+
width: 90vw;
|
|
15
14
|
}
|
|
16
|
-
}
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
&.mng-action-editor-dialog-xl {
|
|
17
|
+
height: 100vh;
|
|
18
|
+
width: 100vw;
|
|
19
|
+
}
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
&.mng-action-editor-dialog-lg {
|
|
22
|
+
height: 95vh;
|
|
23
|
+
width: 80vw;
|
|
24
|
+
|
|
25
|
+
@include mediaMaxLg() {
|
|
26
|
+
width: 85vw;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include mediaMaxMd() {
|
|
30
|
+
width: 90vw;
|
|
31
|
+
}
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
width:
|
|
34
|
+
&.mng-action-editor-dialog-sm {
|
|
35
|
+
width: 50vw;
|
|
36
|
+
height: initial;
|
|
37
|
+
|
|
38
|
+
@include mediaMaxLg() {
|
|
39
|
+
width: 70vw;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include mediaMaxMd() {
|
|
43
|
+
width: 80vw;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.mng-action-editor-dialog-xs {
|
|
48
|
+
width: 40vw;
|
|
49
|
+
|
|
50
|
+
@include mediaMaxLg() {
|
|
51
|
+
width: 60vw;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include mediaMaxMd() {
|
|
55
|
+
width: 70vw;
|
|
56
|
+
}
|
|
29
57
|
}
|
|
30
58
|
}
|
|
31
59
|
|
|
32
|
-
&.
|
|
60
|
+
&.mng-formly-field-table-form-dialog,
|
|
61
|
+
&.mng-formly-field-table-multiselect-dialog,
|
|
62
|
+
&.mng-formly-field-lookup-dialog &.p-confirm-dialog {
|
|
33
63
|
width: 450px;
|
|
34
64
|
|
|
35
65
|
@include mediaMaxXs() {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.p-dialog {
|
|
2
|
-
&.mng-
|
|
3
|
-
&.mng-
|
|
4
|
-
&.mng-formly-field-table-form-dialog {
|
|
2
|
+
&.mng-action-editor-dialog,
|
|
3
|
+
&.mng-field-dialog {
|
|
5
4
|
.p-dialog-content {
|
|
6
5
|
border-bottom-left-radius: $dialogBorderRadius;
|
|
7
6
|
border-bottom-right-radius: $dialogBorderRadius;
|