@mediusinc/mng-commons 0.12.5 → 0.14.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 (86) hide show
  1. package/esm2020/lib/api/utils/medius-rest.util.mjs +8 -3
  2. package/esm2020/lib/components/action/action.component.mjs +22 -9
  3. package/esm2020/lib/components/action/editor/action-editor.component.mjs +6 -6
  4. package/esm2020/lib/components/action/models/action-execution.model.mjs +6 -1
  5. package/esm2020/lib/components/action/models/index.mjs +2 -1
  6. package/esm2020/lib/components/action/models/tableview-action-default-categories.model.mjs +11 -0
  7. package/esm2020/lib/components/button/button.component.mjs +46 -0
  8. package/esm2020/lib/components/button/index.mjs +2 -0
  9. package/esm2020/lib/components/form/editor/form-editor.component.mjs +3 -2
  10. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +11 -14
  11. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +41 -18
  12. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +5 -13
  13. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +5 -2
  14. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +5 -3
  15. package/esm2020/lib/components/tableview/table/table.component.mjs +48 -20
  16. package/esm2020/lib/components/tableview/tableview.component.mjs +9 -3
  17. package/esm2020/lib/data-providers/table.data-provider.mjs +9 -2
  18. package/esm2020/lib/data-providers/tableview.data-provider.mjs +30 -2
  19. package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +106 -0
  20. package/esm2020/lib/descriptors/action.descriptor.mjs +63 -154
  21. package/esm2020/lib/descriptors/button.descriptor.mjs +111 -0
  22. package/esm2020/lib/descriptors/column.descriptor.mjs +120 -27
  23. package/esm2020/lib/descriptors/editor.descriptor.mjs +109 -7
  24. package/esm2020/lib/descriptors/field.descriptor.mjs +38 -4
  25. package/esm2020/lib/descriptors/filter.descriptor.mjs +13 -6
  26. package/esm2020/lib/descriptors/index.mjs +3 -1
  27. package/esm2020/lib/descriptors/table.descriptor.mjs +282 -16
  28. package/esm2020/lib/descriptors/tableview.descriptor.mjs +175 -3
  29. package/esm2020/lib/descriptors/types/table.type.mjs +10 -1
  30. package/esm2020/lib/mng-commons.module.mjs +24 -5
  31. package/esm2020/lib/models/index.mjs +2 -1
  32. package/esm2020/lib/models/tableview-attr.model.mjs +2 -0
  33. package/esm2020/lib/pipes/class-map.pipe.mjs +22 -0
  34. package/esm2020/lib/pipes/getter.pipe.mjs +20 -0
  35. package/esm2020/lib/pipes/index.mjs +4 -1
  36. package/esm2020/lib/pipes/template.pipe.mjs +24 -0
  37. package/esm2020/lib/router/models/router.model.mjs +1 -1
  38. package/esm2020/lib/router/tableview-route-builder.mjs +41 -17
  39. package/esm2020/lib/services/action-executor.service.mjs +30 -19
  40. package/esm2020/lib/styles/button-style.builder.mjs +59 -8
  41. package/esm2020/lib/styles/styles.util.mjs +2 -2
  42. package/esm2020/lib/utils/tableview.util.mjs +144 -0
  43. package/esm2020/public-api.mjs +2 -1
  44. package/fesm2015/mediusinc-mng-commons.mjs +1610 -345
  45. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  46. package/fesm2020/mediusinc-mng-commons.mjs +1590 -335
  47. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  48. package/lib/api/utils/medius-rest.util.d.ts +1 -0
  49. package/lib/components/action/action.component.d.ts +2 -1
  50. package/lib/components/action/models/action-execution.model.d.ts +2 -0
  51. package/lib/components/action/models/index.d.ts +1 -0
  52. package/lib/components/action/models/tableview-action-default-categories.model.d.ts +10 -0
  53. package/lib/components/button/button.component.d.ts +16 -0
  54. package/lib/components/button/index.d.ts +1 -0
  55. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +10 -4
  56. package/lib/components/tableview/route/tableview-route.component.d.ts +0 -5
  57. package/lib/components/tableview/table/table.component.d.ts +4 -2
  58. package/lib/components/tableview/tableview.component.d.ts +3 -0
  59. package/lib/data-providers/table.data-provider.d.ts +6 -1
  60. package/lib/data-providers/tableview.data-provider.d.ts +16 -2
  61. package/lib/descriptors/action/action-confirmation.descriptor.d.ts +48 -0
  62. package/lib/descriptors/action.descriptor.d.ts +30 -83
  63. package/lib/descriptors/button.descriptor.d.ts +40 -0
  64. package/lib/descriptors/column.descriptor.d.ts +45 -5
  65. package/lib/descriptors/editor.descriptor.d.ts +69 -11
  66. package/lib/descriptors/field.descriptor.d.ts +16 -11
  67. package/lib/descriptors/filter.descriptor.d.ts +7 -6
  68. package/lib/descriptors/index.d.ts +2 -0
  69. package/lib/descriptors/table.descriptor.d.ts +124 -8
  70. package/lib/descriptors/tableview.descriptor.d.ts +81 -7
  71. package/lib/descriptors/types/table.type.d.ts +8 -0
  72. package/lib/mng-commons.module.d.ts +74 -70
  73. package/lib/models/index.d.ts +1 -0
  74. package/lib/models/tableview-attr.model.d.ts +9 -0
  75. package/lib/pipes/class-map.pipe.d.ts +7 -0
  76. package/lib/pipes/getter.pipe.d.ts +7 -0
  77. package/lib/pipes/index.d.ts +3 -0
  78. package/lib/pipes/template.pipe.d.ts +10 -0
  79. package/lib/router/models/router.model.d.ts +6 -0
  80. package/lib/router/tableview-route-builder.d.ts +3 -0
  81. package/lib/styles/button-style.builder.d.ts +43 -2
  82. package/lib/utils/tableview.util.d.ts +39 -0
  83. package/package.json +2 -2
  84. package/public-api.d.ts +1 -0
  85. package/scss/mng-overrides/_theme_tableview.scss +17 -0
  86. package/version-info.json +5 -5
@@ -9,79 +9,83 @@ import * as i4 from "./pipes/enum.pipe";
9
9
  import * as i5 from "./pipes/boolean.pipe";
10
10
  import * as i6 from "./pipes/i18n-property.pipe";
11
11
  import * as i7 from "./pipes/parametrize.pipe";
12
- import * as i8 from "./components/layout/breadcrumb.component";
13
- import * as i9 from "./components/layout/footer.component";
14
- import * as i10 from "./components/layout/main-layout.component";
15
- import * as i11 from "./components/layout/menu.component";
16
- import * as i12 from "./components/layout/menu-item.component";
17
- import * as i13 from "./components/layout/topbar.component";
18
- import * as i14 from "./components/layout/version.component";
19
- import * as i15 from "./components/form/autocomplete/autocomplete.component";
20
- import * as i16 from "./components/form/dropdown/dropdown.component";
21
- import * as i17 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
22
- import * as i18 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
23
- import * as i19 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
24
- import * as i20 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
25
- import * as i21 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
26
- import * as i22 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
27
- import * as i23 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
28
- import * as i24 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
29
- import * as i25 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
30
- import * as i26 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
31
- import * as i27 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
32
- import * as i28 from "./components/tableview/table/table.component";
33
- import * as i29 from "./components/tableview/tableview.component";
34
- import * as i30 from "./components/tableview/table/column-value/column-value.component";
35
- import * as i31 from "./components/tableview/table/column-filter/column-filter.component";
36
- import * as i32 from "./components/tableview/route/tableview-route.component";
37
- import * as i33 from "./components/form/editor/form-editor.component";
38
- import * as i34 from "./components/action/action.component";
39
- import * as i35 from "./components/action/editor/action-editor.component";
40
- import * as i36 from "./components/action/route/action-route.component";
41
- import * as i37 from "@angular/common";
42
- import * as i38 from "@angular/router";
43
- import * as i39 from "@angular/common/http";
44
- import * as i40 from "@angular/forms";
45
- import * as i41 from "@ngx-translate/core";
46
- import * as i42 from "@ngx-formly/core";
47
- import * as i43 from "primeng/autocomplete";
48
- import * as i44 from "primeng/breadcrumb";
49
- import * as i45 from "primeng/button";
50
- import * as i46 from "primeng/calendar";
51
- import * as i47 from "primeng/card";
52
- import * as i48 from "primeng/checkbox";
53
- import * as i49 from "primeng/chip";
54
- import * as i50 from "primeng/confirmdialog";
55
- import * as i51 from "primeng/confirmpopup";
56
- import * as i52 from "primeng/dialog";
57
- import * as i53 from "primeng/dynamicdialog";
58
- import * as i54 from "primeng/dropdown";
59
- import * as i55 from "primeng/fileupload";
60
- import * as i56 from "primeng/inputnumber";
61
- import * as i57 from "primeng/inputmask";
62
- import * as i58 from "primeng/inputswitch";
63
- import * as i59 from "primeng/inputtext";
64
- import * as i60 from "primeng/inputtextarea";
65
- import * as i61 from "primeng/paginator";
66
- import * as i62 from "primeng/radiobutton";
67
- import * as i63 from "primeng/ripple";
68
- import * as i64 from "primeng/selectbutton";
69
- import * as i65 from "primeng/table";
70
- import * as i66 from "primeng/tag";
71
- import * as i67 from "primeng/toast";
72
- import * as i68 from "primeng/togglebutton";
73
- import * as i69 from "primeng/toolbar";
74
- import * as i70 from "primeng/tooltip";
75
- import * as i71 from "primeng/messages";
76
- import * as i72 from "primeng/progressspinner";
77
- import * as i73 from "primeng/tabview";
78
- import * as i74 from "primeng/fieldset";
79
- import * as i75 from "primeng/multiselect";
80
- import * as i76 from "primeng/skeleton";
12
+ import * as i8 from "./pipes/getter.pipe";
13
+ import * as i9 from "./pipes/template.pipe";
14
+ import * as i10 from "./pipes/class-map.pipe";
15
+ import * as i11 from "./components/layout/breadcrumb.component";
16
+ import * as i12 from "./components/layout/footer.component";
17
+ import * as i13 from "./components/layout/main-layout.component";
18
+ import * as i14 from "./components/layout/menu.component";
19
+ import * as i15 from "./components/layout/menu-item.component";
20
+ import * as i16 from "./components/layout/topbar.component";
21
+ import * as i17 from "./components/layout/version.component";
22
+ import * as i18 from "./components/form/autocomplete/autocomplete.component";
23
+ import * as i19 from "./components/form/dropdown/dropdown.component";
24
+ import * as i20 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
25
+ import * as i21 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
26
+ import * as i22 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
27
+ import * as i23 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
28
+ import * as i24 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
29
+ import * as i25 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
30
+ import * as i26 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
31
+ import * as i27 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
32
+ import * as i28 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
33
+ import * as i29 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
34
+ import * as i30 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
35
+ import * as i31 from "./components/tableview/table/table.component";
36
+ import * as i32 from "./components/tableview/tableview.component";
37
+ import * as i33 from "./components/tableview/table/column-value/column-value.component";
38
+ import * as i34 from "./components/tableview/table/column-filter/column-filter.component";
39
+ import * as i35 from "./components/tableview/route/tableview-route.component";
40
+ import * as i36 from "./components/form/editor/form-editor.component";
41
+ import * as i37 from "./components/action/action.component";
42
+ import * as i38 from "./components/action/editor/action-editor.component";
43
+ import * as i39 from "./components/action/route/action-route.component";
44
+ import * as i40 from "./components/button/button.component";
45
+ import * as i41 from "@angular/common";
46
+ import * as i42 from "@angular/router";
47
+ import * as i43 from "@angular/common/http";
48
+ import * as i44 from "@angular/forms";
49
+ import * as i45 from "@ngx-translate/core";
50
+ import * as i46 from "@ngx-formly/core";
51
+ import * as i47 from "primeng/autocomplete";
52
+ import * as i48 from "primeng/breadcrumb";
53
+ import * as i49 from "primeng/button";
54
+ import * as i50 from "primeng/calendar";
55
+ import * as i51 from "primeng/card";
56
+ import * as i52 from "primeng/checkbox";
57
+ import * as i53 from "primeng/chip";
58
+ import * as i54 from "primeng/confirmdialog";
59
+ import * as i55 from "primeng/confirmpopup";
60
+ import * as i56 from "primeng/dialog";
61
+ import * as i57 from "primeng/dynamicdialog";
62
+ import * as i58 from "primeng/dropdown";
63
+ import * as i59 from "primeng/fileupload";
64
+ import * as i60 from "primeng/inputnumber";
65
+ import * as i61 from "primeng/inputmask";
66
+ import * as i62 from "primeng/inputswitch";
67
+ import * as i63 from "primeng/inputtext";
68
+ import * as i64 from "primeng/inputtextarea";
69
+ import * as i65 from "primeng/paginator";
70
+ import * as i66 from "primeng/radiobutton";
71
+ import * as i67 from "primeng/ripple";
72
+ import * as i68 from "primeng/selectbutton";
73
+ import * as i69 from "primeng/table";
74
+ import * as i70 from "primeng/tag";
75
+ import * as i71 from "primeng/toast";
76
+ import * as i72 from "primeng/togglebutton";
77
+ import * as i73 from "primeng/toolbar";
78
+ import * as i74 from "primeng/tooltip";
79
+ import * as i75 from "primeng/messages";
80
+ import * as i76 from "primeng/progressspinner";
81
+ import * as i77 from "primeng/tabview";
82
+ import * as i78 from "primeng/fieldset";
83
+ import * as i79 from "primeng/multiselect";
84
+ import * as i80 from "primeng/skeleton";
81
85
  export declare const primeNgModules: (typeof InputTextModule)[];
82
86
  export declare class MngCommonsModule {
83
87
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
84
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
85
- 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.MngParametrizePipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngVersionComponent, typeof i15.MngAutocompleteComponent, typeof i16.MngDropdownComponent, typeof i17.MngFormlyFieldWrapperComponent, typeof i18.MngFormlyTableWrapperComponent, typeof i19.MngFormlyFieldInputComponent, typeof i20.MngFormlyFieldLabelComponent, typeof i21.MngFormlyFieldDropdownComponent, typeof i22.MngFormlyFieldAutocompleteComponent, typeof i23.MngFormlyFieldLookupDialogComponent, typeof i24.MngFormlyFieldTableDialogMultiselectComponent, typeof i25.MngFormlyFieldTableDialogFormComponent, typeof i26.MngFormlyFieldTabsComponent, typeof i27.MngFormlyFieldFieldsetComponent, typeof i28.MngTableComponent, typeof i29.MngTableviewComponent, typeof i30.MngTableColumnValueComponent, typeof i31.MngTableColumnFilterComponent, typeof i32.MngTableviewRouteComponent, typeof i33.MngFormEditorComponent, typeof i34.MngActionComponent, typeof i35.MngActionEditorComponent, typeof i36.MngActionRouteComponent], [typeof i37.CommonModule, typeof i38.RouterModule, typeof i39.HttpClientModule, typeof i40.ReactiveFormsModule, typeof i41.TranslateModule, typeof i42.FormlyModule, typeof i43.AutoCompleteModule, typeof i44.BreadcrumbModule, typeof i45.ButtonModule, typeof i46.CalendarModule, typeof i47.CardModule, typeof i48.CheckboxModule, typeof i49.ChipModule, typeof i50.ConfirmDialogModule, typeof i51.ConfirmPopupModule, typeof i52.DialogModule, typeof i53.DynamicDialogModule, typeof i54.DropdownModule, typeof i55.FileUploadModule, typeof i56.InputNumberModule, typeof i57.InputMaskModule, typeof i58.InputSwitchModule, typeof i59.InputTextModule, typeof i60.InputTextareaModule, typeof i61.PaginatorModule, typeof i62.RadioButtonModule, typeof i63.RippleModule, typeof i64.SelectButtonModule, typeof i65.TableModule, typeof i66.TagModule, typeof i67.ToastModule, typeof i68.ToggleButtonModule, typeof i69.ToolbarModule, typeof i70.TooltipModule, typeof i71.MessagesModule, typeof i72.ProgressSpinnerModule, typeof i73.TabViewModule, typeof i74.FieldsetModule, typeof i75.MultiSelectModule, typeof i76.SkeletonModule], [typeof i43.AutoCompleteModule, typeof i44.BreadcrumbModule, typeof i45.ButtonModule, typeof i46.CalendarModule, typeof i47.CardModule, typeof i48.CheckboxModule, typeof i49.ChipModule, typeof i50.ConfirmDialogModule, typeof i51.ConfirmPopupModule, typeof i52.DialogModule, typeof i53.DynamicDialogModule, typeof i54.DropdownModule, typeof i55.FileUploadModule, typeof i56.InputNumberModule, typeof i57.InputMaskModule, typeof i58.InputSwitchModule, typeof i59.InputTextModule, typeof i60.InputTextareaModule, typeof i61.PaginatorModule, typeof i62.RadioButtonModule, typeof i63.RippleModule, typeof i64.SelectButtonModule, typeof i65.TableModule, typeof i66.TagModule, typeof i67.ToastModule, typeof i68.ToggleButtonModule, typeof i69.ToolbarModule, typeof i70.TooltipModule, typeof i71.MessagesModule, typeof i72.ProgressSpinnerModule, typeof i73.TabViewModule, typeof i74.FieldsetModule, typeof i75.MultiSelectModule, typeof i76.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngVersionComponent, typeof i15.MngAutocompleteComponent, typeof i16.MngDropdownComponent, typeof i17.MngFormlyFieldWrapperComponent, typeof i18.MngFormlyTableWrapperComponent, typeof i19.MngFormlyFieldInputComponent, typeof i20.MngFormlyFieldLabelComponent, typeof i21.MngFormlyFieldDropdownComponent, typeof i22.MngFormlyFieldAutocompleteComponent, typeof i23.MngFormlyFieldLookupDialogComponent, typeof i24.MngFormlyFieldTableDialogMultiselectComponent, typeof i25.MngFormlyFieldTableDialogFormComponent, typeof i26.MngFormlyFieldTabsComponent, typeof i27.MngFormlyFieldFieldsetComponent, typeof i28.MngTableComponent, typeof i29.MngTableviewComponent, typeof i30.MngTableColumnValueComponent, typeof i31.MngTableColumnFilterComponent, typeof i32.MngTableviewRouteComponent, typeof i33.MngFormEditorComponent, typeof i34.MngActionComponent, typeof i35.MngActionEditorComponent, typeof i36.MngActionRouteComponent]>;
89
+ 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.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngFormlyFieldWrapperComponent, typeof i21.MngFormlyTableWrapperComponent, typeof i22.MngFormlyFieldInputComponent, typeof i23.MngFormlyFieldLabelComponent, typeof i24.MngFormlyFieldDropdownComponent, typeof i25.MngFormlyFieldAutocompleteComponent, typeof i26.MngFormlyFieldLookupDialogComponent, typeof i27.MngFormlyFieldTableDialogMultiselectComponent, typeof i28.MngFormlyFieldTableDialogFormComponent, typeof i29.MngFormlyFieldTabsComponent, typeof i30.MngFormlyFieldFieldsetComponent, typeof i31.MngTableComponent, typeof i32.MngTableviewComponent, typeof i33.MngTableColumnValueComponent, typeof i34.MngTableColumnFilterComponent, typeof i35.MngTableviewRouteComponent, typeof i36.MngFormEditorComponent, typeof i37.MngActionComponent, typeof i38.MngActionEditorComponent, typeof i39.MngActionRouteComponent, typeof i40.MngButtonComponent], [typeof i41.CommonModule, typeof i42.RouterModule, typeof i43.HttpClientModule, typeof i44.ReactiveFormsModule, typeof i45.TranslateModule, typeof i46.FormlyModule, typeof i47.AutoCompleteModule, typeof i48.BreadcrumbModule, typeof i49.ButtonModule, typeof i50.CalendarModule, typeof i51.CardModule, typeof i52.CheckboxModule, typeof i53.ChipModule, typeof i54.ConfirmDialogModule, typeof i55.ConfirmPopupModule, typeof i56.DialogModule, typeof i57.DynamicDialogModule, typeof i58.DropdownModule, typeof i59.FileUploadModule, typeof i60.InputNumberModule, typeof i61.InputMaskModule, typeof i62.InputSwitchModule, typeof i63.InputTextModule, typeof i64.InputTextareaModule, typeof i65.PaginatorModule, typeof i66.RadioButtonModule, typeof i67.RippleModule, typeof i68.SelectButtonModule, typeof i69.TableModule, typeof i70.TagModule, typeof i71.ToastModule, typeof i72.ToggleButtonModule, typeof i73.ToolbarModule, typeof i74.TooltipModule, typeof i75.MessagesModule, typeof i76.ProgressSpinnerModule, typeof i77.TabViewModule, typeof i78.FieldsetModule, typeof i79.MultiSelectModule, typeof i80.SkeletonModule], [typeof i47.AutoCompleteModule, typeof i48.BreadcrumbModule, typeof i49.ButtonModule, typeof i50.CalendarModule, typeof i51.CardModule, typeof i52.CheckboxModule, typeof i53.ChipModule, typeof i54.ConfirmDialogModule, typeof i55.ConfirmPopupModule, typeof i56.DialogModule, typeof i57.DynamicDialogModule, typeof i58.DropdownModule, typeof i59.FileUploadModule, typeof i60.InputNumberModule, typeof i61.InputMaskModule, typeof i62.InputSwitchModule, typeof i63.InputTextModule, typeof i64.InputTextareaModule, typeof i65.PaginatorModule, typeof i66.RadioButtonModule, typeof i67.RippleModule, typeof i68.SelectButtonModule, typeof i69.TableModule, typeof i70.TagModule, typeof i71.ToastModule, typeof i72.ToggleButtonModule, typeof i73.ToolbarModule, typeof i74.TooltipModule, typeof i75.MessagesModule, typeof i76.ProgressSpinnerModule, typeof i77.TabViewModule, typeof i78.FieldsetModule, typeof i79.MultiSelectModule, typeof i80.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngFormlyFieldWrapperComponent, typeof i21.MngFormlyTableWrapperComponent, typeof i22.MngFormlyFieldInputComponent, typeof i23.MngFormlyFieldLabelComponent, typeof i24.MngFormlyFieldDropdownComponent, typeof i25.MngFormlyFieldAutocompleteComponent, typeof i26.MngFormlyFieldLookupDialogComponent, typeof i27.MngFormlyFieldTableDialogMultiselectComponent, typeof i28.MngFormlyFieldTableDialogFormComponent, typeof i29.MngFormlyFieldTabsComponent, typeof i30.MngFormlyFieldFieldsetComponent, typeof i31.MngTableComponent, typeof i32.MngTableviewComponent, typeof i33.MngTableColumnValueComponent, typeof i34.MngTableColumnFilterComponent, typeof i35.MngTableviewRouteComponent, typeof i36.MngFormEditorComponent, typeof i37.MngActionComponent, typeof i38.MngActionEditorComponent, typeof i39.MngActionRouteComponent, typeof i40.MngButtonComponent]>;
86
90
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
87
91
  }
@@ -6,3 +6,4 @@ export * from './user.model';
6
6
  export * from './version.model';
7
7
  export * from './view-container.model';
8
8
  export * from './formly-field.model';
9
+ export * from './tableview-attr.model';
@@ -0,0 +1,9 @@
1
+ import { AttributeDef } from '../api/models';
2
+ import { ColumnTypeEnum, FieldInputTypeEnum } from '../descriptors/types';
3
+ import { ClassType, EnumType } from '../types';
4
+ export interface TableviewAttributeDef extends AttributeDef {
5
+ columnType: ColumnTypeEnum;
6
+ fieldType?: FieldInputTypeEnum;
7
+ enumType?: EnumType;
8
+ classType?: ClassType<any>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngClassMapPipe<T> implements PipeTransform {
4
+ transform(value?: string, classNameMapFn?: (className?: string, i?: T) => string, i?: T): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngClassMapPipe<any>, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngClassMapPipe<any>, "mngClassMapPipe", false>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class MngGetterPipe implements PipeTransform {
4
+ transform(value: unknown, getterFunction?: (item: any) => any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngGetterPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngGetterPipe, "getter", false>;
7
+ }
@@ -3,3 +3,6 @@ export * from './enum.pipe';
3
3
  export * from './i18n-property.pipe';
4
4
  export * from './json-path.pipe';
5
5
  export * from './parametrize.pipe';
6
+ export * from './getter.pipe';
7
+ export * from './template.pipe';
8
+ export * from './class-map.pipe';
@@ -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
+ }
@@ -19,6 +19,12 @@ export interface MngRouterData extends Data {
19
19
  tableviewPermissions?: {
20
20
  [key: string]: APermissions;
21
21
  };
22
+ tableviewActions?: {
23
+ hasAdd?: boolean;
24
+ hasEdit?: boolean;
25
+ hasDetails?: boolean;
26
+ hasDelete?: boolean;
27
+ };
22
28
  topbarComponent?: Type<any>;
23
29
  breadcrumbComponent?: Type<any>;
24
30
  menuComponent?: Type<any>;
@@ -17,13 +17,16 @@ export declare class TableviewRouteBuilder<C extends AMngTableviewRouteComponent
17
17
  private editPath;
18
18
  private hasAdd;
19
19
  private addPath;
20
+ private hasDelete;
20
21
  private permissions?;
21
22
  private constructor();
22
23
  static fromComponent<C extends AMngTableviewRouteComponent<any, any>>(path: string, component: Type<C>): TableviewRouteBuilder<C>;
23
24
  static from(path: string, descriptor: TableviewDescriptor<any>, dataProvider: ITableviewDataProvider<any, any>, actions: Array<ActionDescriptor<any>>): TableviewRouteBuilder<never>;
25
+ withReadOnly(permissions?: APermissions): this;
24
26
  withDetails(hasDetails?: boolean, permissions?: APermissions, path?: string): this;
25
27
  withAdd(hasAdd?: boolean, permissions?: APermissions, path?: string): this;
26
28
  withEdit(hasEdit?: boolean, permissions?: APermissions, path?: string): this;
29
+ withDelete(hasDelete?: boolean, permissions?: APermissions): this;
27
30
  withPermissions(read?: APermissions, add?: APermissions, edit?: APermissions, delet?: APermissions, details?: APermissions): this;
28
31
  withPermissionsOther(key: string, permissions: APermissions): this;
29
32
  withPermissionsObject(permissions: {
@@ -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
+ }
@@ -0,0 +1,39 @@
1
+ import { AttributeDef } from '../api/models';
2
+ import { ColumnDescriptor } from '../descriptors';
3
+ import { ColumnTypeEnum, FieldInputTypeEnum } from '../descriptors/types';
4
+ import { TableviewAttributeDef } from '../models/tableview-attr.model';
5
+ import { ClassType } from '../types';
6
+ export declare class TableviewUtil {
7
+ private static _dateRegex;
8
+ /**
9
+ * returns attributes from class type and extends to typed def with column and field enum type
10
+ * @param modelType class type
11
+ */
12
+ static getAttributeDefMap<T>(modelType: ClassType<T>): TableviewAttributeDef[];
13
+ /**
14
+ * expands AttributeDef to TableviewAttributeDef with defined input and column enum type
15
+ * @param attributes open api specification model
16
+ */
17
+ static expandAttributeDefWithTableviewTypes(attributes?: Array<AttributeDef> | null): TableviewAttributeDef[];
18
+ /**
19
+ * converts column to number or date on value based
20
+ * @param column column to be transformed
21
+ * @param value value to check if applicable
22
+ */
23
+ static stringColumnConverter(column: ColumnDescriptor<any, any>, value: any): ColumnDescriptor<any, any>;
24
+ /**
25
+ * converts string type to column type enum, default is string
26
+ * @param property
27
+ */
28
+ static toColumnType(property: string): ColumnTypeEnum;
29
+ /**
30
+ * converts string type to type enum, default is text
31
+ * @param property
32
+ */
33
+ static toFieldInputType(property: string): FieldInputTypeEnum;
34
+ /**
35
+ * convert column type to equivalent field input type
36
+ * @param type column type
37
+ */
38
+ static toFieldInputTypeFromColumnType(type: ColumnTypeEnum): FieldInputTypeEnum;
39
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.12.5",
3
+ "version": "0.14.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';
@@ -45,3 +45,20 @@
45
45
  cursor: pointer;
46
46
  }
47
47
  }
48
+
49
+ .mng-table-header {
50
+ & > th {
51
+ &:not(:first-child):not(:last-child) {
52
+ border-radius: 0 !important;
53
+ }
54
+
55
+ &:first-child {
56
+ border-top-right-radius: 0 !important;
57
+ border-bottom-right-radius: 0 !important;
58
+ }
59
+
60
+ &:last-child {
61
+ border-radius: 0 8px 8px 0 !important;
62
+ }
63
+ }
64
+ }
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.14.0",
4
+ "tag": "v0.14.0",
5
5
  "distance": 0,
6
- "hash": "e6cbdaa3",
6
+ "hash": "83dd723b",
7
7
  "dirty": false,
8
- "semver": "0.12.5",
9
- "raw": "v0.12.5-e6cbdaa3"
8
+ "semver": "0.14.0",
9
+ "raw": "v0.14.0-83dd723b"
10
10
  }