@mediusinc/mng-commons 0.14.2 → 0.15.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 (41) 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/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +14 -13
  4. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -4
  5. package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +15 -44
  6. package/esm2020/lib/descriptors/action-button.descriptor.mjs +60 -0
  7. package/esm2020/lib/descriptors/action.descriptor.mjs +27 -22
  8. package/esm2020/lib/descriptors/column.descriptor.mjs +1 -1
  9. package/esm2020/lib/descriptors/index.mjs +2 -2
  10. package/esm2020/lib/descriptors/types/action.type.mjs +1 -28
  11. package/esm2020/lib/mng-commons.module.mjs +4 -11
  12. package/esm2020/lib/services/action-executor.service.mjs +23 -20
  13. package/esm2020/lib/styles/button-style.builder.mjs +30 -28
  14. package/esm2020/lib/styles/models/index.mjs +3 -0
  15. package/esm2020/lib/styles/models/style-level.enum.mjs +12 -0
  16. package/esm2020/lib/styles/models/style-size.enum.mjs +9 -0
  17. package/esm2020/lib/styles/styles.util.mjs +9 -8
  18. package/esm2020/public-api.mjs +2 -2
  19. package/fesm2015/mediusinc-mng-commons.mjs +199 -327
  20. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  21. package/fesm2020/mediusinc-mng-commons.mjs +195 -321
  22. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  23. package/lib/descriptors/action/action-confirmation.descriptor.d.ts +7 -19
  24. package/lib/descriptors/action-button.descriptor.d.ts +22 -0
  25. package/lib/descriptors/action.descriptor.d.ts +12 -10
  26. package/lib/descriptors/index.d.ts +1 -1
  27. package/lib/descriptors/types/action.type.d.ts +0 -24
  28. package/lib/mng-commons.module.d.ts +41 -42
  29. package/lib/styles/button-style.builder.d.ts +8 -8
  30. package/lib/styles/models/index.d.ts +2 -0
  31. package/lib/styles/models/style-level.enum.d.ts +10 -0
  32. package/lib/styles/models/style-size.enum.d.ts +7 -0
  33. package/package.json +1 -1
  34. package/public-api.d.ts +1 -1
  35. package/version-info.json +5 -5
  36. package/esm2020/lib/components/button/button.component.mjs +0 -46
  37. package/esm2020/lib/components/button/index.mjs +0 -2
  38. package/esm2020/lib/descriptors/button.descriptor.mjs +0 -111
  39. package/lib/components/button/button.component.d.ts +0 -16
  40. package/lib/components/button/index.d.ts +0 -1
  41. package/lib/descriptors/button.descriptor.d.ts +0 -40
@@ -1,40 +0,0 @@
1
- import { ButtonStyleBuilder } from '../styles';
2
- export declare class ButtonDescriptor {
3
- private _label?;
4
- private _disabled;
5
- private _icon?;
6
- private _iconPosition;
7
- private _styleClass;
8
- private _onClick?;
9
- private _onFocus?;
10
- private _onBlur?;
11
- private _loading;
12
- private _loadingIcon;
13
- private _badge?;
14
- private _tooltip?;
15
- withLabel(label?: string | null): this;
16
- withDisabled(disabled?: boolean): this;
17
- withIcon(icon: string | null): this;
18
- withIconPosition(iconPosition: 'left' | 'right'): this;
19
- withStyleClass(style: ButtonStyleBuilder): this;
20
- withOnClick(onClick: (event: Event) => unknown): this;
21
- withOnFocus(onFocus: (event: Event) => unknown): this;
22
- withOnBlur(onBlur: (event: Event) => unknown): this;
23
- withLoading(loading?: boolean): this;
24
- withLoadingIcon(loadingIcon: string): this;
25
- withBadge(badge: string): this;
26
- withTooltip(tooltip: string): this;
27
- get label(): string | null | undefined;
28
- get disabled(): boolean;
29
- get icon(): string | null | undefined;
30
- get iconPosition(): "left" | "right";
31
- get styleClass(): ButtonStyleBuilder;
32
- get onClick(): ((event: Event) => unknown) | undefined;
33
- get onFocus(): ((event: Event) => unknown) | undefined;
34
- get onBlur(): ((event: Event) => unknown) | undefined;
35
- get loading(): boolean;
36
- get loadingIcon(): string;
37
- get badge(): string | undefined;
38
- get tooltip(): string | undefined;
39
- copy(): ButtonDescriptor;
40
- }