@mediusinc/mng-commons 0.12.2 → 0.13.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/components/action/action.component.mjs +8 -8
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
- package/esm2020/lib/components/button/button.component.mjs +46 -0
- package/esm2020/lib/components/button/index.mjs +2 -0
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +8 -3
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +3 -2
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +10 -13
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +27 -11
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +5 -3
- package/esm2020/lib/data-providers/index.mjs +2 -1
- package/esm2020/lib/data-providers/tableview-crud.data-provider.mjs +24 -0
- package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +106 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +53 -154
- package/esm2020/lib/descriptors/button.descriptor.mjs +111 -0
- package/esm2020/lib/descriptors/column.descriptor.mjs +17 -1
- package/esm2020/lib/descriptors/field.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/index.mjs +3 -1
- package/esm2020/lib/mng-commons.module.mjs +24 -9
- package/esm2020/lib/pipes/getter.pipe.mjs +20 -0
- package/esm2020/lib/pipes/index.mjs +4 -2
- package/esm2020/lib/pipes/json-path.pipe.mjs +1 -2
- package/esm2020/lib/pipes/parametrize.pipe.mjs +85 -0
- package/esm2020/lib/pipes/template.pipe.mjs +24 -0
- package/esm2020/lib/services/action-executor.service.mjs +34 -23
- package/esm2020/lib/styles/button-style.builder.mjs +59 -8
- package/esm2020/lib/styles/styles.util.mjs +2 -2
- package/esm2020/lib/utils/string.util.mjs +4 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/mediusinc-mng-commons.mjs +627 -266
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +628 -262
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +16 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/form/dropdown/dropdown.component.d.ts +2 -0
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -0
- package/lib/data-providers/index.d.ts +1 -0
- package/lib/data-providers/tableview-crud.data-provider.d.ts +8 -0
- package/lib/descriptors/action/action-confirmation.descriptor.d.ts +48 -0
- package/lib/descriptors/action.descriptor.d.ts +26 -83
- package/lib/descriptors/button.descriptor.d.ts +40 -0
- package/lib/descriptors/column.descriptor.d.ts +6 -0
- package/lib/descriptors/field.descriptor.d.ts +9 -9
- package/lib/descriptors/index.d.ts +2 -0
- package/lib/mng-commons.module.d.ts +74 -71
- package/lib/pipes/getter.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +3 -1
- package/lib/pipes/parametrize.pipe.d.ts +13 -0
- package/lib/pipes/template.pipe.d.ts +10 -0
- package/lib/services/action-executor.service.d.ts +3 -3
- package/lib/styles/button-style.builder.d.ts +43 -2
- package/package.json +3 -3
- package/public-api.d.ts +1 -0
- package/version-info.json +5 -5
- package/esm2020/lib/pipes/link-formatter.pipe.mjs +0 -39
- package/lib/pipes/link-formatter.pipe.d.ts +0 -11
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { MngParametrizePipe } from './parametrize.pipe';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngTemplatePipe implements PipeTransform {
|
|
5
|
+
private parametrizePipe;
|
|
6
|
+
constructor(parametrizePipe: MngParametrizePipe);
|
|
7
|
+
transform(value: unknown, template?: string): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngTemplatePipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngTemplatePipe, "template", false>;
|
|
10
|
+
}
|
|
@@ -9,7 +9,7 @@ import { MngTableCellClickEvent } from '../components/tableview/models';
|
|
|
9
9
|
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
10
10
|
import { ActionDescriptor, ActionEditorDescriptor, TableDescriptor } from '../descriptors';
|
|
11
11
|
import { MngError } from '../models';
|
|
12
|
-
import {
|
|
12
|
+
import { MngParametrizePipe } from '../pipes';
|
|
13
13
|
import { MngConfigurationService } from './configuration.service';
|
|
14
14
|
import { MngErrorMapperService } from './error-mapper.service';
|
|
15
15
|
import { MngNavigationService } from './navigation.service';
|
|
@@ -23,10 +23,10 @@ export declare class MngActionExecutorService {
|
|
|
23
23
|
private configurationService;
|
|
24
24
|
private navigationService;
|
|
25
25
|
private errorMapper;
|
|
26
|
-
private
|
|
26
|
+
private parametrize;
|
|
27
27
|
private defaultEditorDialogComponent;
|
|
28
28
|
private debug;
|
|
29
|
-
constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService, configurationService: MngConfigurationService, navigationService: MngNavigationService, errorMapper: MngErrorMapperService,
|
|
29
|
+
constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService, configurationService: MngConfigurationService, navigationService: MngNavigationService, errorMapper: MngErrorMapperService, parametrize: MngParametrizePipe, defaultEditorDialogComponent: Type<any>);
|
|
30
30
|
prepareActionContextValidation<T, S>(action: ActionDescriptor<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>): ActionContextValidation<T, S>;
|
|
31
31
|
prepareActionContext<T, S>(instance: ActionInstance<T, S>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<T, S>;
|
|
32
32
|
/**
|
|
@@ -5,15 +5,50 @@ export declare class ButtonStyleBuilder {
|
|
|
5
5
|
private _textButton;
|
|
6
6
|
private _outlineButton;
|
|
7
7
|
private _raisedButton;
|
|
8
|
+
private _roundedStyle;
|
|
8
9
|
private _customClass?;
|
|
9
|
-
constructor(level
|
|
10
|
+
constructor(level?: ActionLevelEnum, customClass?: string);
|
|
10
11
|
getButtonClass(hasNoTitle?: boolean): string;
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* creates instance of style builder with custom properties
|
|
14
|
+
* @param actionLevel ActionLevelEnum
|
|
15
|
+
* @param size ActionSizeEnum
|
|
16
|
+
* @param textButton if true, text button will be applied
|
|
17
|
+
* @param outlineButton if true, outlined button will be applied
|
|
18
|
+
* @param raisedButton if true, raised button will be applied
|
|
19
|
+
* @param customClass additional custom classes (will be added at generating)
|
|
20
|
+
*/
|
|
21
|
+
create(actionLevel?: ActionLevelEnum, size?: ActionSizeEnum, textButton?: boolean, outlineButton?: boolean, raisedButton?: boolean, roundedButton?: ButtonStyleRoundedEnum, customClass?: string): ButtonStyleBuilder;
|
|
22
|
+
/**
|
|
23
|
+
* sets custom action level and returns this object
|
|
24
|
+
* @param actionLevel
|
|
25
|
+
*/
|
|
12
26
|
withActionLevel(actionLevel: ActionLevelEnum): ButtonStyleBuilder;
|
|
27
|
+
/**
|
|
28
|
+
* sets custom size and return this object
|
|
29
|
+
* @param size
|
|
30
|
+
*/
|
|
13
31
|
withSize(size: ActionSizeEnum): ButtonStyleBuilder;
|
|
32
|
+
/**
|
|
33
|
+
* sets text button property
|
|
34
|
+
* @param withText default true
|
|
35
|
+
*/
|
|
14
36
|
withTextButton(withText?: boolean): ButtonStyleBuilder;
|
|
37
|
+
/**
|
|
38
|
+
* sets outline button property
|
|
39
|
+
* @param withOutline default true
|
|
40
|
+
*/
|
|
15
41
|
withOutlineButton(withOutline?: boolean): ButtonStyleBuilder;
|
|
42
|
+
/**
|
|
43
|
+
* sets raised button property
|
|
44
|
+
* @param withRaised default true
|
|
45
|
+
*/
|
|
16
46
|
withRaisedButton(withRaised?: boolean): ButtonStyleBuilder;
|
|
47
|
+
withRoundedButton(roundedStyle?: ButtonStyleRoundedEnum): ButtonStyleBuilder;
|
|
48
|
+
/**
|
|
49
|
+
* sets custom style class
|
|
50
|
+
* @param customClass
|
|
51
|
+
*/
|
|
17
52
|
withCustomClass(customClass: string): ButtonStyleBuilder;
|
|
18
53
|
private convertActionLevelToStyleClass;
|
|
19
54
|
private convertSizeToStyleClass;
|
|
@@ -22,5 +57,11 @@ export declare class ButtonStyleBuilder {
|
|
|
22
57
|
get textButton(): boolean;
|
|
23
58
|
get outlineButton(): boolean;
|
|
24
59
|
get raisedButton(): boolean;
|
|
60
|
+
get roundedStyle(): ButtonStyleRoundedEnum;
|
|
25
61
|
get customClass(): string | undefined;
|
|
26
62
|
}
|
|
63
|
+
export declare enum ButtonStyleRoundedEnum {
|
|
64
|
+
DEFAULT = 0,
|
|
65
|
+
ROUNDED = 1,
|
|
66
|
+
SQUARE = 2
|
|
67
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~14.1.0",
|
|
6
6
|
"@angular/core": "~14.1.0",
|
|
7
7
|
"@angular/forms": "~14.1.0",
|
|
8
8
|
"@angular/router": "~14.1.0",
|
|
9
|
-
"@ngx-formly/core": "6.0.0
|
|
9
|
+
"@ngx-formly/core": "~6.0.0",
|
|
10
10
|
"@ngx-translate/core": "~14.0.0",
|
|
11
11
|
"primeng": "~14.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"file-saver": "^2.0.5",
|
|
15
15
|
"reflect-metadata": "^0.1.13",
|
|
16
|
-
"tslib": "^2.
|
|
16
|
+
"tslib": "^2.4.0"
|
|
17
17
|
},
|
|
18
18
|
"module": "fesm2015/mediusinc-mng-commons.mjs",
|
|
19
19
|
"es2020": "fesm2020/mediusinc-mng-commons.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './lib/components/form/formly/fields';
|
|
|
12
12
|
export * from './lib/components/form/formly/wrappers';
|
|
13
13
|
export * from './lib/components/layout';
|
|
14
14
|
export * from './lib/components/tableview';
|
|
15
|
+
export * from './lib/components/button';
|
|
15
16
|
export * from './lib/directives';
|
|
16
17
|
export * from './lib/pipes';
|
|
17
18
|
export * from './lib/api/models';
|
package/version-info.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"tag": "v0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
|
+
"tag": "v0.13.0",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "204d307b",
|
|
7
7
|
"dirty": false,
|
|
8
|
-
"semver": "0.
|
|
9
|
-
"raw": "v0.
|
|
8
|
+
"semver": "0.13.0",
|
|
9
|
+
"raw": "v0.13.0-204d307b"
|
|
10
10
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class MngLinkFormatterPipe {
|
|
4
|
-
parseUrl(s, itemId, itemAny, model, actionData) {
|
|
5
|
-
if (s === ':itemId') {
|
|
6
|
-
return itemId;
|
|
7
|
-
}
|
|
8
|
-
else if (model && s.startsWith(`:${model.typeName}.`)) {
|
|
9
|
-
return itemAny[s.substring(model.typeName.length + 2)] ?? '';
|
|
10
|
-
}
|
|
11
|
-
else if (s.startsWith(':')) {
|
|
12
|
-
return actionData?.[s.substring(1)] ?? '';
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return s;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
transform(value, itemId, item, model, actionData) {
|
|
19
|
-
const itemAny = (item ?? {});
|
|
20
|
-
if (typeof value === 'string') {
|
|
21
|
-
return value.split('/').map(s => this.parseUrl(s, itemId, itemAny, model, actionData));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
const transformedItems = [];
|
|
25
|
-
value.forEach(val => transformedItems.push(...val.split('/').map(s => this.parseUrl(s, itemId, itemAny, model, actionData))));
|
|
26
|
-
return transformedItems;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
MngLinkFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngLinkFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
31
|
-
MngLinkFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: MngLinkFormatterPipe, name: "linkFormatter" });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngLinkFormatterPipe, decorators: [{
|
|
33
|
-
type: Pipe,
|
|
34
|
-
args: [{
|
|
35
|
-
name: 'linkFormatter',
|
|
36
|
-
pure: true
|
|
37
|
-
}]
|
|
38
|
-
}] });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay1mb3JtYXR0ZXIucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvcGlwZXMvbGluay1mb3JtYXR0ZXIucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsSUFBSSxFQUFnQixNQUFNLGVBQWUsQ0FBQzs7QUFVbEQsTUFBTSxPQUFPLG9CQUFvQjtJQUNyQixRQUFRLENBQUMsQ0FBUyxFQUFFLE1BQWUsRUFBRSxPQUFhLEVBQUUsS0FBbUMsRUFBRSxVQUF1QjtRQUNwSCxJQUFJLENBQUMsS0FBSyxTQUFTLEVBQUU7WUFDakIsT0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ID0+IHRoaXMucGFyc2VVcmwocywgaXRlbUlkLCBpdGVtQW55LCBtb2RlbCwgYWN0aW9uRGF0YSkpKSk7XG4gICAgICAgICAgICByZXR1cm4gdHJhbnNmb3JtZWRJdGVtcztcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { ActionData } from '../components/action/models';
|
|
3
|
-
import { ModelDescriptor } from '../descriptors';
|
|
4
|
-
import { IdType } from '../types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MngLinkFormatterPipe implements PipeTransform {
|
|
7
|
-
private parseUrl;
|
|
8
|
-
transform(value: string | string[], itemId?: IdType, item?: any, model?: ModelDescriptor<any> | null, actionData?: ActionData): any;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngLinkFormatterPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngLinkFormatterPipe, "linkFormatter", false>;
|
|
11
|
-
}
|