@mediusinc/mng-commons 0.12.5 → 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.
Files changed (43) hide show
  1. package/esm2020/lib/components/action/action.component.mjs +7 -7
  2. package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
  3. package/esm2020/lib/components/button/button.component.mjs +46 -0
  4. package/esm2020/lib/components/button/index.mjs +2 -0
  5. package/esm2020/lib/components/form/editor/form-editor.component.mjs +3 -2
  6. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +10 -13
  7. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +27 -11
  8. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +5 -3
  9. package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +106 -0
  10. package/esm2020/lib/descriptors/action.descriptor.mjs +53 -154
  11. package/esm2020/lib/descriptors/button.descriptor.mjs +111 -0
  12. package/esm2020/lib/descriptors/column.descriptor.mjs +17 -1
  13. package/esm2020/lib/descriptors/field.descriptor.mjs +1 -1
  14. package/esm2020/lib/descriptors/index.mjs +3 -1
  15. package/esm2020/lib/mng-commons.module.mjs +20 -5
  16. package/esm2020/lib/pipes/getter.pipe.mjs +20 -0
  17. package/esm2020/lib/pipes/index.mjs +3 -1
  18. package/esm2020/lib/pipes/template.pipe.mjs +24 -0
  19. package/esm2020/lib/services/action-executor.service.mjs +30 -19
  20. package/esm2020/lib/styles/button-style.builder.mjs +59 -8
  21. package/esm2020/lib/styles/styles.util.mjs +2 -2
  22. package/esm2020/public-api.mjs +2 -1
  23. package/fesm2015/mediusinc-mng-commons.mjs +515 -217
  24. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  25. package/fesm2020/mediusinc-mng-commons.mjs +509 -214
  26. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  27. package/lib/components/button/button.component.d.ts +16 -0
  28. package/lib/components/button/index.d.ts +1 -0
  29. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -0
  30. package/lib/descriptors/action/action-confirmation.descriptor.d.ts +48 -0
  31. package/lib/descriptors/action.descriptor.d.ts +26 -83
  32. package/lib/descriptors/button.descriptor.d.ts +40 -0
  33. package/lib/descriptors/column.descriptor.d.ts +6 -0
  34. package/lib/descriptors/field.descriptor.d.ts +9 -9
  35. package/lib/descriptors/index.d.ts +2 -0
  36. package/lib/mng-commons.module.d.ts +73 -70
  37. package/lib/pipes/getter.pipe.d.ts +7 -0
  38. package/lib/pipes/index.d.ts +2 -0
  39. package/lib/pipes/template.pipe.d.ts +10 -0
  40. package/lib/styles/button-style.builder.d.ts +43 -2
  41. package/package.json +2 -2
  42. package/public-api.d.ts +1 -0
  43. package/version-info.json +5 -5
@@ -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: ActionLevelEnum, customClass?: string);
10
+ constructor(level?: ActionLevelEnum, customClass?: string);
10
11
  getButtonClass(hasNoTitle?: boolean): string;
11
- create(actionLevel?: ActionLevelEnum, size?: ActionSizeEnum, textButton?: boolean, outlineButton?: boolean, raisedButton?: boolean, customClass?: string): ButtonStyleBuilder;
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,12 +1,12 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.12.5",
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-rc.2",
9
+ "@ngx-formly/core": "~6.0.0",
10
10
  "@ngx-translate/core": "~14.0.0",
11
11
  "primeng": "~14.0.0"
12
12
  },
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.12.5",
4
- "tag": "v0.12.5",
3
+ "version": "0.13.0",
4
+ "tag": "v0.13.0",
5
5
  "distance": 0,
6
- "hash": "e6cbdaa3",
6
+ "hash": "204d307b",
7
7
  "dirty": false,
8
- "semver": "0.12.5",
9
- "raw": "v0.12.5-e6cbdaa3"
8
+ "semver": "0.13.0",
9
+ "raw": "v0.13.0-204d307b"
10
10
  }