@mediusinc/mng-commons 0.11.1 → 0.12.2

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 (121) hide show
  1. package/esm2020/lib/components/action/action.component.mjs +20 -19
  2. package/esm2020/lib/components/action/editor/action-editor.component.mjs +9 -9
  3. package/esm2020/lib/components/action/route/action-route.component.mjs +3 -3
  4. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +11 -7
  5. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +11 -8
  6. package/esm2020/lib/components/form/editor/form-editor.component.mjs +7 -7
  7. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +6 -6
  8. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +6 -6
  9. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -5
  10. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +12 -12
  11. package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +3 -3
  12. package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +12 -12
  13. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +7 -7
  14. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +13 -13
  15. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +6 -6
  16. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +5 -5
  17. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +5 -5
  18. package/esm2020/lib/components/layout/breadcrumb.component.mjs +3 -3
  19. package/esm2020/lib/components/layout/footer.component.mjs +3 -3
  20. package/esm2020/lib/components/layout/main-layout.component.mjs +3 -3
  21. package/esm2020/lib/components/layout/menu-item.component.mjs +4 -4
  22. package/esm2020/lib/components/layout/menu.component.mjs +7 -7
  23. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +3 -3
  24. package/esm2020/lib/components/layout/topbar.component.mjs +7 -7
  25. package/esm2020/lib/components/layout/version.component.mjs +4 -4
  26. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +3 -3
  27. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +3 -3
  28. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +9 -9
  29. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +8 -8
  30. package/esm2020/lib/components/tableview/table/table.component.mjs +14 -14
  31. package/esm2020/lib/components/tableview/tableview.component.mjs +9 -9
  32. package/esm2020/lib/descriptors/action.descriptor.mjs +50 -22
  33. package/esm2020/lib/directives/component.directive.mjs +3 -3
  34. package/esm2020/lib/directives/template.directive.mjs +3 -3
  35. package/esm2020/lib/mng-commons.module.mjs +15 -17
  36. package/esm2020/lib/pipes/boolean.pipe.mjs +3 -3
  37. package/esm2020/lib/pipes/enum.pipe.mjs +3 -3
  38. package/esm2020/lib/pipes/i18n-property.pipe.mjs +3 -3
  39. package/esm2020/lib/pipes/json-path.pipe.mjs +3 -3
  40. package/esm2020/lib/pipes/link-formatter.pipe.mjs +3 -3
  41. package/esm2020/lib/router/route-builder.mjs +2 -2
  42. package/esm2020/lib/security/authorization.guard.mjs +3 -3
  43. package/esm2020/lib/security/authorization.service.mjs +3 -3
  44. package/esm2020/lib/services/action-executor.service.mjs +8 -6
  45. package/esm2020/lib/services/commons.service.mjs +3 -3
  46. package/esm2020/lib/services/configuration.service.mjs +11 -2
  47. package/esm2020/lib/services/internal/commons-init.service.mjs +5 -5
  48. package/esm2020/lib/services/navigation.service.mjs +3 -3
  49. package/esm2020/lib/services/version.service.mjs +3 -3
  50. package/esm2020/lib/services/view-container.component.service.mjs +3 -3
  51. package/esm2020/lib/styles/button-style.builder.mjs +112 -0
  52. package/esm2020/lib/styles/index.mjs +3 -0
  53. package/esm2020/lib/styles/styles.util.mjs +41 -0
  54. package/esm2020/lib/utils/index.mjs +2 -1
  55. package/esm2020/lib/utils/string.util.mjs +24 -0
  56. package/esm2020/public-api.mjs +3 -1
  57. package/fesm2015/mediusinc-mng-commons.mjs +513 -333
  58. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  59. package/fesm2020/mediusinc-mng-commons.mjs +511 -331
  60. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  61. package/{mediusinc-mng-commons.d.ts → index.d.ts} +0 -0
  62. package/lib/components/action/action.component.d.ts +3 -10
  63. package/lib/components/action/editor/action-editor.component.d.ts +1 -1
  64. package/lib/components/action/route/action-route.component.d.ts +1 -1
  65. package/lib/components/form/autocomplete/autocomplete.component.d.ts +1 -1
  66. package/lib/components/form/dropdown/dropdown.component.d.ts +1 -1
  67. package/lib/components/form/editor/form-editor.component.d.ts +2 -2
  68. package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +1 -1
  69. package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +1 -1
  70. package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +1 -1
  71. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +1 -1
  72. package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts +1 -1
  73. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +1 -1
  74. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +1 -1
  75. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +1 -1
  76. package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +1 -1
  77. package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +1 -1
  78. package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +1 -1
  79. package/lib/components/layout/breadcrumb.component.d.ts +1 -1
  80. package/lib/components/layout/footer.component.d.ts +1 -1
  81. package/lib/components/layout/main-layout.component.d.ts +1 -1
  82. package/lib/components/layout/menu-item.component.d.ts +1 -1
  83. package/lib/components/layout/menu.component.d.ts +1 -1
  84. package/lib/components/layout/topbar.component.d.ts +1 -1
  85. package/lib/components/layout/version.component.d.ts +1 -1
  86. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -1
  87. package/lib/components/tableview/route/tableview-route.component.d.ts +1 -1
  88. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +1 -1
  89. package/lib/components/tableview/table/column-value/column-value.component.d.ts +1 -1
  90. package/lib/components/tableview/table/table.component.d.ts +1 -1
  91. package/lib/components/tableview/tableview.component.d.ts +1 -1
  92. package/lib/descriptors/action.descriptor.d.ts +31 -6
  93. package/lib/descriptors/field.descriptor.d.ts +1 -1
  94. package/lib/directives/component.directive.d.ts +1 -1
  95. package/lib/directives/template.directive.d.ts +1 -1
  96. package/lib/pipes/boolean.pipe.d.ts +1 -1
  97. package/lib/pipes/enum.pipe.d.ts +1 -1
  98. package/lib/pipes/i18n-property.pipe.d.ts +1 -1
  99. package/lib/pipes/json-path.pipe.d.ts +1 -1
  100. package/lib/pipes/link-formatter.pipe.d.ts +1 -1
  101. package/lib/services/configuration.service.d.ts +10 -1
  102. package/lib/styles/button-style.builder.d.ts +26 -0
  103. package/lib/styles/index.d.ts +2 -0
  104. package/lib/{utils → styles}/styles.util.d.ts +0 -0
  105. package/lib/utils/index.d.ts +1 -0
  106. package/lib/utils/string.util.d.ts +4 -0
  107. package/package.json +9 -9
  108. package/public-api.d.ts +1 -0
  109. package/scss/common/theme/designer/components/button/_speeddial.scss +6 -4
  110. package/scss/common/theme/designer/components/input/_autocomplete.scss +5 -3
  111. package/scss/common/theme/designer/components/input/_chips.scss +5 -3
  112. package/scss/common/theme/designer/components/input/_inputswitch.scss +3 -1
  113. package/scss/common/theme/designer/components/input/_multiselect.scss +4 -2
  114. package/scss/common/theme/designer/components/input/_slider.scss +6 -4
  115. package/scss/common/theme/designer/components/input/_treeselect.scss +4 -2
  116. package/scss/common/theme/designer/components/menu/_steps.scss +3 -1
  117. package/scss/common/theme/designer/components/misc/_chip.scss +4 -2
  118. package/scss/common/theme/designer/components/misc/_tag.scss +3 -1
  119. package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +4 -2
  120. package/version-info.json +5 -5
  121. package/esm2020/lib/utils/styles.util.mjs +0 -41
File without changes
@@ -6,7 +6,6 @@ import { Observable } from 'rxjs';
6
6
  import { MediusQueryParam } from '../../api/models';
7
7
  import { IDataProvider } from '../../data-providers';
8
8
  import { ActionDescriptor, ActionLinkDescriptor } from '../../descriptors';
9
- import { ActionLevelEnum } from '../../descriptors/types';
10
9
  import { IViewContainer } from '../../models';
11
10
  import { MngAuthorizationService } from '../../security';
12
11
  import { MngActionExecutorService, MngViewContainerComponentService } from '../../services';
@@ -20,15 +19,8 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
20
19
  private actionExecutor;
21
20
  private confirmationService;
22
21
  private viewContainerService;
23
- readonly levelDefault = ActionLevelEnum.Default;
24
- readonly levelPrimary = ActionLevelEnum.Primary;
25
- readonly levelSecondary = ActionLevelEnum.Secondary;
26
- readonly levelInfo = ActionLevelEnum.Info;
27
- readonly levelHelp = ActionLevelEnum.Help;
28
- readonly levelSuccess = ActionLevelEnum.Success;
29
- readonly levelWarning = ActionLevelEnum.Warning;
30
- readonly levelDanger = ActionLevelEnum.Danger;
31
22
  hostClass: string;
23
+ isHostHidden: boolean;
32
24
  action: ActionDescriptor<T>;
33
25
  item?: T;
34
26
  itemId?: IdType;
@@ -62,6 +54,7 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
62
54
  hasNoTitle: boolean;
63
55
  private subscriptions;
64
56
  private routePermissions?;
57
+ buttonClass: string;
65
58
  constructor(route: ActivatedRoute, translate: TranslateService, authorization: MngAuthorizationService, actionExecutor: MngActionExecutorService, confirmationService: ConfirmationService, viewContainerService: MngViewContainerComponentService<T, S> | null);
66
59
  ngOnInit(): void;
67
60
  ngOnChanges(changes: SimpleChanges): void;
@@ -71,5 +64,5 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
71
64
  getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
72
65
  private processSubscriptions;
73
66
  static ɵfac: i0.ɵɵFactoryDeclaration<MngActionComponent<any, any>, [null, null, null, null, null, { optional: true; }]>;
74
- static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": "action"; "item": "item"; "itemId": "itemId"; "actionData": "actionData"; "queryParam": "queryParam"; "dataProvider": "dataProvider"; "inputDisabled": "disabled"; "inputLoading": "loading"; "viewContainerInit": "viewContainer"; }, { "finishEventEmitter": "finish"; }, never, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": "action"; "item": "item"; "itemId": "itemId"; "actionData": "actionData"; "queryParam": "queryParam"; "dataProvider": "dataProvider"; "inputDisabled": "disabled"; "inputLoading": "loading"; "viewContainerInit": "viewContainer"; }, { "finishEventEmitter": "finish"; }, never, never, false>;
75
68
  }
@@ -60,5 +60,5 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnDestroy
60
60
  private setTitle;
61
61
  private deactivateAction;
62
62
  static ɵfac: i0.ɵɵFactoryDeclaration<MngActionEditorComponent<any, any>, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
63
- static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": "action"; "itemId": "itemId"; "item": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; "viewContainerInit": "viewContainer"; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": "action"; "itemId": "itemId"; "item": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; "viewContainerInit": "viewContainer"; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never, false>;
64
64
  }
@@ -27,5 +27,5 @@ export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy,
27
27
  private untriggerAction;
28
28
  private findActiveAction;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<MngActionRouteComponent<any, any>, [null, null, null, null, null, { optional: true; }]>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<MngActionRouteComponent<any, any>, "mng-action-route", never, {}, {}, never, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngActionRouteComponent<any, any>, "mng-action-route", never, {}, {}, never, never, false>;
31
31
  }
@@ -52,5 +52,5 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
52
52
  private i18nPopulateItems;
53
53
  private setSuggestionsFromItems;
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, [null, null, { optional: true; }]>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "inlineSearch": "inlineSearch"; "openOnFocus": "openOnFocus"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "inlineSearch": "inlineSearch"; "openOnFocus": "openOnFocus"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, false>;
56
56
  }
@@ -46,5 +46,5 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
46
46
  onPanelHide(event: any): void;
47
47
  private propagateValueChange;
48
48
  static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, [null, null, { optional: true; }]>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsDisabledProperty": "itemsDisabledProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "selectFirstItem": "selectFirstItem"; "className": "className"; "dropdownClassName": "dropdownClassName"; "changeValueOnBlur": "changeValueOnBlur"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsDisabledProperty": "itemsDisabledProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "selectFirstItem": "selectFirstItem"; "className": "className"; "dropdownClassName": "dropdownClassName"; "changeValueOnBlur": "changeValueOnBlur"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, false>;
50
50
  }
@@ -32,7 +32,7 @@ export declare class MngFormEditorComponent<T> implements OnInit, OnDestroy {
32
32
  submit(): void;
33
33
  onSubmit(event: Event): void;
34
34
  getFormValue(): T;
35
- getFormField(key: string): AbstractControl | null;
35
+ getFormField(key: string): AbstractControl<any, any> | null;
36
36
  setFormFieldValue(key: string, value: any): void;
37
37
  patchFormFieldValue(key: string, value: any): void;
38
38
  resetFormFieldValue(key: string, value?: any): void;
@@ -41,5 +41,5 @@ export declare class MngFormEditorComponent<T> implements OnInit, OnDestroy {
41
41
  private resetFormModel;
42
42
  private updateFormState;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, false>;
45
45
  }
@@ -11,5 +11,5 @@ export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType im
11
11
  ngAfterViewInit(): void;
12
12
  ngOnDestroy(): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldAutocompleteComponent<any>, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never, false>;
15
15
  }
@@ -10,5 +10,5 @@ export declare class MngFormlyFieldDropdownComponent<T> extends FieldType implem
10
10
  ngOnInit(): void;
11
11
  ngOnDestroy(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldDropdownComponent<any>, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never, false>;
14
14
  }
@@ -9,5 +9,5 @@ export declare class MngFormlyFieldFieldsetComponent extends FieldType implement
9
9
  descriptor?: FieldGroupDescriptor<any>;
10
10
  ngOnInit(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldFieldsetComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldFieldsetComponent, "mng-formly-field-fieldset", never, {}, {}, never, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldFieldsetComponent, "mng-formly-field-fieldset", never, {}, {}, never, never, false>;
13
13
  }
@@ -19,5 +19,5 @@ export declare class MngFormlyFieldInputComponent extends FieldType implements O
19
19
  onFileClear(event: Event): void;
20
20
  private updateFileFormControl;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldInputComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent, "mng-formly-field-input", never, {}, {}, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent, "mng-formly-field-input", never, {}, {}, never, never, false>;
23
23
  }
@@ -6,5 +6,5 @@ export declare class MngFormlyFieldLabelComponent extends FieldType implements O
6
6
  private descriptor;
7
7
  ngOnInit(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldLabelComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldLabelComponent, "mng-formly-field-label", never, {}, {}, never, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldLabelComponent, "mng-formly-field-label", never, {}, {}, never, never, false>;
10
10
  }
@@ -41,5 +41,5 @@ export declare class MngFormlyFieldLookupDialogComponent<T, ET> extends FieldTyp
41
41
  addItem(): void;
42
42
  private setFieldLabelValue;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldLookupDialogComponent<any, any>, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldLookupDialogComponent<any, any>, "mng-formly-field-lookup-dialog", never, {}, {}, never, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldLookupDialogComponent<any, any>, "mng-formly-field-lookup-dialog", never, {}, {}, never, never, false>;
45
45
  }
@@ -19,5 +19,5 @@ export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends Field
19
19
  ngAfterViewInit(): void;
20
20
  ngOnDestroy(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never, false>;
23
23
  }
@@ -34,5 +34,5 @@ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extend
34
34
  addItems(): void;
35
35
  removeItem(item: any): void;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, "mng-formly-table-multiselect-add-field", never, {}, {}, never, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, "mng-formly-table-multiselect-add-field", never, {}, {}, never, never, false>;
38
38
  }
@@ -2,5 +2,5 @@ import { FieldType } from '@ngx-formly/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MngFormlyFieldTabsComponent extends FieldType {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTabsComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTabsComponent, "mng-formly-field-tabs", never, {}, {}, never, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTabsComponent, "mng-formly-field-tabs", never, {}, {}, never, never, false>;
6
6
  }
@@ -2,5 +2,5 @@ import { FieldWrapper } from '@ngx-formly/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MngFormlyFieldWrapperComponent extends FieldWrapper {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldWrapperComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldWrapperComponent, "mng-formly-field-wrapper", never, {}, {}, never, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldWrapperComponent, "mng-formly-field-wrapper", never, {}, {}, never, never, false>;
6
6
  }
@@ -2,5 +2,5 @@ import { FieldWrapper } from '@ngx-formly/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MngFormlyTableWrapperComponent extends FieldWrapper {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyTableWrapperComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyTableWrapperComponent, "mng-formly-table-wrapper", never, {}, {}, never, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyTableWrapperComponent, "mng-formly-table-wrapper", never, {}, {}, never, never, false>;
6
6
  }
@@ -4,5 +4,5 @@ export declare class MngBreadcrumbComponent {
4
4
  mngCommons: MngCommonsService;
5
5
  constructor(mngCommons: MngCommonsService);
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<MngBreadcrumbComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<MngBreadcrumbComponent, "mng-breadcrumb", never, {}, {}, never, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngBreadcrumbComponent, "mng-breadcrumb", never, {}, {}, never, never, false>;
8
8
  }
@@ -5,5 +5,5 @@ export declare class MngFooterComponent {
5
5
  currentYear: number;
6
6
  constructor(mngCommons: MngCommonsService);
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFooterComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<MngFooterComponent, "mng-footer", never, {}, {}, never, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngFooterComponent, "mng-footer", never, {}, {}, never, never, false>;
9
9
  }
@@ -16,5 +16,5 @@ export declare class MngMainLayoutComponent implements OnInit {
16
16
  ngOnInit(): void;
17
17
  onWindowResize(event: UIEvent): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<MngMainLayoutComponent, "mng-main-layout", never, {}, {}, never, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngMainLayoutComponent, "mng-main-layout", never, {}, {}, never, never, false>;
20
20
  }
@@ -40,5 +40,5 @@ export declare class MngMenuItemComponent implements OnInit, OnDestroy {
40
40
  ngOnDestroy(): void;
41
41
  private checkIfMenuItemIsAllowedFromGuard;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuItemComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, {}, never, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuItemComponent, "[mng-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, {}, never, never, false>;
44
44
  }
@@ -6,5 +6,5 @@ export declare class MngMenuComponent {
6
6
  mainLayoutService: MngMainLayoutComponentService;
7
7
  constructor(mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuComponent, "mng-menu", never, {}, {}, never, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuComponent, "mng-menu", never, {}, {}, never, never, false>;
10
10
  }
@@ -20,5 +20,5 @@ export declare class MngTopbarComponent implements OnInit {
20
20
  switchLanguage(language: string): void;
21
21
  logout(user: IUser, event: Event): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTopbarComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<MngTopbarComponent, "mng-topbar", never, {}, {}, never, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTopbarComponent, "mng-topbar", never, {}, {}, never, never, false>;
24
24
  }
@@ -15,5 +15,5 @@ export declare class MngVersionComponent implements OnInit {
15
15
  constructor(versionService: MngVersionService, jsonPathPipe: JsonPathPipe);
16
16
  ngOnInit(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<MngVersionComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<MngVersionComponent, "mng-version", never, { "initVersion": "version"; }, {}, never, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngVersionComponent, "mng-version", never, { "initVersion": "version"; }, {}, never, never, false>;
19
19
  }
@@ -16,5 +16,5 @@ export declare abstract class AMngTableviewRouteComponent<T, S> implements OnIni
16
16
  protected createActionDescriptorForDelete(descriptor?: ModelDescriptor<T>): ActionDeleteDescriptor<T>;
17
17
  protected createActionDescriptorForExport(descriptor?: ModelDescriptor<T>): ActionDescriptor<T>;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AMngTableviewRouteComponent<any, any>, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<AMngTableviewRouteComponent<any, any>, never, never, {}, {}, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AMngTableviewRouteComponent<any, any>, never, never, {}, {}, never, never, false>;
20
20
  }
@@ -19,5 +19,5 @@ export declare class MngTableviewRouteComponent<T, S> extends AMngTableviewRoute
19
19
  protected createActionDescriptors(): Array<ActionDescriptor<T>>;
20
20
  reloadTable(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewRouteComponent<any, any>, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewRouteComponent<any, any>, "mng-tableview-route", never, { "descriptorInit": "descriptor"; "dataProviderInit": "dataProvider"; "actionsInit": "actions"; }, {}, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewRouteComponent<any, any>, "mng-tableview-route", never, { "descriptorInit": "descriptor"; "dataProviderInit": "dataProvider"; "actionsInit": "actions"; }, {}, never, never, false>;
23
23
  }
@@ -28,5 +28,5 @@ export declare class MngTableColumnFilterComponent<T> implements OnInit {
28
28
  dropdownFilter(value: any, filterCallback: Function): void;
29
29
  toLookupFilterValue(value?: any): any;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": "descriptor"; "display": "display"; }, {}, never, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": "descriptor"; "display": "display"; }, {}, never, never, false>;
32
32
  }
@@ -25,5 +25,5 @@ export declare class MngTableColumnValueComponent<T, TT> implements OnInit {
25
25
  ngOnInit(): void;
26
26
  copyToClipboard(event: Event): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnValueComponent<any, any>, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnValueComponent<any, any>, "mng-table-column-value", never, { "descriptor": "descriptor"; "item": "item"; }, {}, never, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnValueComponent<any, any>, "mng-table-column-value", never, { "descriptor": "descriptor"; "item": "item"; }, {}, never, never, false>;
29
29
  }
@@ -104,5 +104,5 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
104
104
  private createSortMeta;
105
105
  private initializeDataLoadingTriggers;
106
106
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, null, { optional: true; }]>;
107
- static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "actions": "actions"; "isColumnClickable": "isColumnClickable"; "viewContainerInit": "viewContainer"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; "columnActionMinWidth": "columnActionMinWidth"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "actions": "actions"; "isColumnClickable": "isColumnClickable"; "viewContainerInit": "viewContainer"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; "columnActionMinWidth": "columnActionMinWidth"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never, false>;
108
108
  }
@@ -37,5 +37,5 @@ export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, I
37
37
  reloadTable(): void;
38
38
  onTableLoad(event: MngTableLoadEvent): void;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, never, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, never, never, false>;
41
41
  }
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
5
5
  import { ActionContext, ActionContextValidation } from '../components/action/models';
6
6
  import { IDataProvider, IEditorDataProvider } from '../data-providers';
7
7
  import { APermissions } from '../security/model';
8
+ import { ButtonStyleBuilder } from '../styles';
8
9
  import { ClassType, IdType } from '../types';
9
10
  import { EditorDescriptor, ModelDescriptor } from './';
10
11
  import { ActionActivationTriggerEnum, ActionEditorDialogSizeEnum, ActionEditorSubmitTypeEnum, ActionLevelEnum, ActionPositionEnum, ActionSizeEnum, ActionTypeEnum } from './types';
@@ -24,11 +25,7 @@ export declare class ActionDescriptor<T> {
24
25
  protected _title?: string | null;
25
26
  protected _icon?: string | null;
26
27
  protected _tooltip?: string | null;
27
- protected _className: string;
28
- protected _size: ActionSizeEnum;
29
- protected _isStyleText: boolean;
30
- protected _isStyleOutlined: boolean;
31
- protected _isStyleRaised: boolean;
28
+ protected _buttonStyle: ButtonStyleBuilder;
32
29
  protected _dataProvider?: IDataProvider<T, any>;
33
30
  protected _runFunction?: (ctx: ActionContext<T, any>) => Observable<T | undefined | null>;
34
31
  protected _isVisibleFunction?: (ctx: ActionContextValidation<T, any>) => Observable<boolean>;
@@ -70,14 +67,42 @@ export declare class ActionDescriptor<T> {
70
67
  get isEnabledFunction(): ((ctx: ActionContextValidation<T, any>) => Observable<boolean>) | undefined;
71
68
  get actionName(): string;
72
69
  get actionNameLong(): string;
73
- get className(): string;
70
+ get buttonStyle(): ButtonStyleBuilder;
71
+ /**
72
+ * @deprecated use _buttonStyle instead
73
+ */
74
+ get className(): string | undefined;
75
+ /**
76
+ * @deprecated use _buttonStyle instead
77
+ */
74
78
  get isStyleText(): boolean;
79
+ /**
80
+ * @deprecated use _buttonStyle instead
81
+ */
75
82
  get isStyleOutlined(): boolean;
83
+ /**
84
+ * @deprecated use _buttonStyle instead
85
+ */
76
86
  get isStyleRaised(): boolean;
87
+ /**
88
+ * @deprecated use _buttonStyle instead
89
+ */
77
90
  get size(): ActionSizeEnum;
91
+ /**
92
+ * @deprecated use _buttonStyle instead
93
+ */
78
94
  get isSizeExtraSmall(): boolean;
95
+ /**
96
+ * @deprecated use _buttonStyle instead
97
+ */
79
98
  get isSizeSmall(): boolean;
99
+ /**
100
+ * @deprecated use _buttonStyle instead
101
+ */
80
102
  get isSizeLarge(): boolean;
103
+ /**
104
+ * @deprecated use _buttonStyle instead
105
+ */
81
106
  get isSizeExtraLarge(): boolean;
82
107
  get hasRunConfirmation(): boolean;
83
108
  get runConfirmationIcon(): string | undefined;
@@ -141,7 +141,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
141
141
  get fileMultiple(): boolean;
142
142
  get fileMaxFileSize(): number;
143
143
  get fileAccept(): string | undefined;
144
- get fileOnSelectHandler(): ((file: File[] | null, control: AbstractControl) => void) | undefined;
144
+ get fileOnSelectHandler(): ((file: File[] | null, control: AbstractControl<any, any>) => void) | undefined;
145
145
  get customComponentName(): string | undefined;
146
146
  get locale(): string | undefined;
147
147
  get currency(): string | undefined;
@@ -12,5 +12,5 @@ export declare class MngComponentDirective<C> implements OnInit {
12
12
  ngOnInit(): void;
13
13
  private isCmpInstanceOfColumnValue;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; "inputs": "inputs"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; "inputs": "inputs"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never, never, false>;
16
16
  }
@@ -9,5 +9,5 @@ export declare class MngTemplateDirective {
9
9
  getType(): string;
10
10
  getViewContainerRef(): ViewContainerRef;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MngTemplateDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<MngTemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngTemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never, never, false>;
13
13
  }
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class MngBooleanPipe implements PipeTransform {
4
4
  transform(value: any, yes?: string, no?: string, icon?: boolean): any;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MngBooleanPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean">;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean", false>;
7
7
  }
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  export declare class MngEnumPipe implements PipeTransform {
5
5
  transform(value: unknown, enumObj: EnumType | undefined, i18nPath?: string | null, nameAsValue?: boolean): any;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<MngEnumPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumPipe, "enum">;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumPipe, "enum", false>;
8
8
  }
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
4
4
  export declare class MngI18nPropertyPipe implements PipeTransform {
5
5
  transform(property: string, model: ModelDescriptor<any>): any;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<MngI18nPropertyPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<MngI18nPropertyPipe, "i18nProperty">;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngI18nPropertyPipe, "i18nProperty", false>;
8
8
  }
@@ -9,5 +9,5 @@ import * as i0 from "@angular/core";
9
9
  export declare class JsonPathPipe implements PipeTransform {
10
10
  transform(value: any, path?: string): any;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<JsonPathPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<JsonPathPipe, "jsonPath">;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<JsonPathPipe, "jsonPath", false>;
13
13
  }
@@ -7,5 +7,5 @@ export declare class MngLinkFormatterPipe implements PipeTransform {
7
7
  private parseUrl;
8
8
  transform(value: string | string[], itemId?: IdType, item?: any, model?: ModelDescriptor<any> | null, actionData?: ActionData): any;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<MngLinkFormatterPipe, never>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<MngLinkFormatterPipe, "linkFormatter">;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngLinkFormatterPipe, "linkFormatter", false>;
11
11
  }
@@ -19,7 +19,16 @@ export declare class MngConfigurationService {
19
19
  * @param url Url to JSON file.
20
20
  */
21
21
  addJsonSource(url?: string, load?: boolean): Observable<boolean>;
22
- loadJsonSources(): Observable<boolean>;
22
+ /**
23
+ * returns true if there is no jsonSources
24
+ */
25
+ private skipJsonConfigsLoading;
26
+ /**
27
+ * loads json sources or skips them returning true in both cases
28
+ * used for `skipJsonSourceInit` configuration parameter
29
+ */
30
+ loadJsonConfigurations: () => Observable<boolean>;
31
+ private loadJsonSources;
23
32
  /**
24
33
  * Get configuration.
25
34
  */
@@ -0,0 +1,26 @@
1
+ import { ActionLevelEnum, ActionSizeEnum } from '../descriptors/types';
2
+ export declare class ButtonStyleBuilder {
3
+ private _size;
4
+ private _actionLevel;
5
+ private _textButton;
6
+ private _outlineButton;
7
+ private _raisedButton;
8
+ private _customClass?;
9
+ constructor(level: ActionLevelEnum, customClass?: string);
10
+ getButtonClass(hasNoTitle?: boolean): string;
11
+ create(actionLevel?: ActionLevelEnum, size?: ActionSizeEnum, textButton?: boolean, outlineButton?: boolean, raisedButton?: boolean, customClass?: string): ButtonStyleBuilder;
12
+ withActionLevel(actionLevel: ActionLevelEnum): ButtonStyleBuilder;
13
+ withSize(size: ActionSizeEnum): ButtonStyleBuilder;
14
+ withTextButton(withText?: boolean): ButtonStyleBuilder;
15
+ withOutlineButton(withOutline?: boolean): ButtonStyleBuilder;
16
+ withRaisedButton(withRaised?: boolean): ButtonStyleBuilder;
17
+ withCustomClass(customClass: string): ButtonStyleBuilder;
18
+ private convertActionLevelToStyleClass;
19
+ private convertSizeToStyleClass;
20
+ get actionLevel(): ActionLevelEnum;
21
+ get size(): ActionSizeEnum;
22
+ get textButton(): boolean;
23
+ get outlineButton(): boolean;
24
+ get raisedButton(): boolean;
25
+ get customClass(): string | undefined;
26
+ }
@@ -0,0 +1,2 @@
1
+ export * from './styles.util';
2
+ export * from './button-style.builder';
File without changes
@@ -4,4 +4,5 @@ export * from './enum.util';
4
4
  export * from './i18n.util';
5
5
  export * from './model.util';
6
6
  export * from './notification.util';
7
+ export * from './string.util';
7
8
  export * from './type.util';
@@ -0,0 +1,4 @@
1
+ export declare class StringUtil {
2
+ static escapeHtml(value: string): any;
3
+ static escapeHtmlAny(value?: any): any;
4
+ }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.11.1",
3
+ "version": "0.12.2",
4
4
  "peerDependencies": {
5
- "@angular/common": "^13.2.0",
6
- "@angular/core": "^13.2.0",
7
- "@angular/forms": "^13.2.0",
8
- "@angular/router": "^13.2.0",
5
+ "@angular/common": "~14.1.0",
6
+ "@angular/core": "~14.1.0",
7
+ "@angular/forms": "~14.1.0",
8
+ "@angular/router": "~14.1.0",
9
9
  "@ngx-formly/core": "6.0.0-rc.2",
10
- "@ngx-translate/core": "^14.0.0",
11
- "primeng": "^13.0.0"
10
+ "@ngx-translate/core": "~14.0.0",
11
+ "primeng": "~14.0.0"
12
12
  },
13
13
  "dependencies": {
14
14
  "file-saver": "^2.0.5",
@@ -20,13 +20,13 @@
20
20
  "esm2020": "esm2020/mediusinc-mng-commons.mjs",
21
21
  "fesm2020": "fesm2020/mediusinc-mng-commons.mjs",
22
22
  "fesm2015": "fesm2015/mediusinc-mng-commons.mjs",
23
- "typings": "mediusinc-mng-commons.d.ts",
23
+ "typings": "index.d.ts",
24
24
  "exports": {
25
25
  "./package.json": {
26
26
  "default": "./package.json"
27
27
  },
28
28
  ".": {
29
- "types": "./mediusinc-mng-commons.d.ts",
29
+ "types": "./index.d.ts",
30
30
  "esm2020": "./esm2020/mediusinc-mng-commons.mjs",
31
31
  "es2020": "./fesm2020/mediusinc-mng-commons.mjs",
32
32
  "es2015": "./fesm2015/mediusinc-mng-commons.mjs",
package/public-api.d.ts CHANGED
@@ -30,3 +30,4 @@ export * from './lib/router/models';
30
30
  export * from './lib/security';
31
31
  export * from './lib/security/model';
32
32
  export * from './lib/types';
33
+ export * from './lib/styles';
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  .p-speeddial-button {
2
4
  &.p-button.p-button-icon-only {
3
5
  width: $speedDialButtonWidth;
@@ -23,7 +25,7 @@
23
25
 
24
26
  .p-speeddial-direction-up {
25
27
  .p-speeddial-item {
26
- margin: $inlineSpacing/2 0;
28
+ margin: math.div($inlineSpacing, 2) 0;
27
29
 
28
30
  &:first-child {
29
31
  margin-bottom: $inlineSpacing;
@@ -33,7 +35,7 @@
33
35
 
34
36
  .p-speeddial-direction-down {
35
37
  .p-speeddial-item {
36
- margin: $inlineSpacing/2 0;
38
+ margin: math.div($inlineSpacing, 2) 0;
37
39
 
38
40
  &:first-child {
39
41
  margin-top: $inlineSpacing;
@@ -43,7 +45,7 @@
43
45
 
44
46
  .p-speeddial-direction-left {
45
47
  .p-speeddial-item {
46
- margin: 0 $inlineSpacing/2;
48
+ margin: 0 math.div($inlineSpacing, 2);
47
49
 
48
50
  &:first-child {
49
51
  margin-right: $inlineSpacing;
@@ -53,7 +55,7 @@
53
55
 
54
56
  .p-speeddial-direction-right {
55
57
  .p-speeddial-item {
56
- margin: 0 $inlineSpacing/2;
58
+ margin: 0 math.div($inlineSpacing, 2);
57
59
 
58
60
  &:first-child {
59
61
  margin-left: $inlineSpacing;