@mediusinc/mng-commons 0.5.0 → 0.7.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 (92) hide show
  1. package/assets/i18n/en.json +2 -2
  2. package/assets/i18n/sl.json +2 -2
  3. package/esm2020/lib/api/models/builders/query-param.builder.mjs +7 -1
  4. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +2 -2
  5. package/esm2020/lib/components/action/action.component.mjs +3 -3
  6. package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
  7. package/esm2020/lib/components/action/models/action-execution.model.mjs +3 -2
  8. package/esm2020/lib/components/action/route/action-route.component.mjs +3 -3
  9. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +3 -3
  10. package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +3 -3
  11. package/esm2020/lib/components/form/editor/form-editor.component.mjs +3 -3
  12. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +3 -3
  13. package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +3 -3
  14. package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -5
  15. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +3 -3
  16. package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +3 -3
  17. package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +3 -3
  18. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +27 -36
  19. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +3 -3
  20. package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +3 -3
  21. package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +3 -3
  22. package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +3 -3
  23. package/esm2020/lib/components/layout/breadcrumb.component.mjs +3 -3
  24. package/esm2020/lib/components/layout/footer.component.mjs +3 -3
  25. package/esm2020/lib/components/layout/main-layout.component.mjs +3 -3
  26. package/esm2020/lib/components/layout/menu-item.component.mjs +3 -3
  27. package/esm2020/lib/components/layout/menu.component.mjs +3 -3
  28. package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +3 -3
  29. package/esm2020/lib/components/layout/topbar.component.mjs +3 -3
  30. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +3 -3
  31. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +3 -3
  32. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +3 -3
  33. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +3 -3
  34. package/esm2020/lib/components/tableview/table/table.component.mjs +94 -26
  35. package/esm2020/lib/components/tableview/tableview.component.mjs +5 -13
  36. package/esm2020/lib/config/formly.config.mjs +5 -5
  37. package/esm2020/lib/data-providers/editor.data-provider.mjs +1 -1
  38. package/esm2020/lib/descriptors/action.descriptor.mjs +6 -15
  39. package/esm2020/lib/descriptors/column.descriptor.mjs +32 -1
  40. package/esm2020/lib/descriptors/editor.descriptor.mjs +3 -3
  41. package/esm2020/lib/descriptors/field-validation.descriptor.mjs +21 -0
  42. package/esm2020/lib/descriptors/field.descriptor.mjs +14 -14
  43. package/esm2020/lib/descriptors/index.mjs +2 -2
  44. package/esm2020/lib/descriptors/table.descriptor.mjs +72 -9
  45. package/esm2020/lib/descriptors/tableview.descriptor.mjs +4 -4
  46. package/esm2020/lib/directives/component.directive.mjs +3 -3
  47. package/esm2020/lib/directives/template.directive.mjs +3 -3
  48. package/esm2020/lib/mng-commons.module.mjs +4 -4
  49. package/esm2020/lib/pipes/boolean.pipe.mjs +3 -3
  50. package/esm2020/lib/pipes/enum.pipe.mjs +3 -3
  51. package/esm2020/lib/pipes/i18n-property.pipe.mjs +3 -3
  52. package/esm2020/lib/pipes/json-path.pipe.mjs +3 -3
  53. package/esm2020/lib/pipes/link-formatter.pipe.mjs +3 -3
  54. package/esm2020/lib/services/action-executor.service.mjs +6 -6
  55. package/esm2020/lib/services/commons.service.mjs +3 -3
  56. package/esm2020/lib/services/internal/commons-init.service.mjs +3 -3
  57. package/esm2020/lib/services/navigation.service.mjs +3 -3
  58. package/esm2020/lib/services/view-container.component.service.mjs +3 -3
  59. package/esm2020/lib/types/type.model.mjs +1 -1
  60. package/esm2020/lib/utils/action-data-provider.util.mjs +116 -0
  61. package/esm2020/lib/utils/editor-formly.util.mjs +31 -11
  62. package/esm2020/lib/utils/index.mjs +2 -1
  63. package/esm2020/lib/utils/styles.util.mjs +41 -0
  64. package/fesm2015/mediusinc-mng-commons.mjs +579 -260
  65. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  66. package/fesm2020/mediusinc-mng-commons.mjs +567 -251
  67. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  68. package/lib/api/models/builders/query-param.builder.d.ts +1 -0
  69. package/lib/api/services/crud-api.abstract.service.d.ts +8 -2
  70. package/lib/components/action/models/action-execution.model.d.ts +5 -3
  71. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +1 -4
  72. package/lib/components/tableview/table/table.component.d.ts +21 -11
  73. package/lib/components/tableview/tableview.component.d.ts +1 -3
  74. package/lib/data-providers/editor.data-provider.d.ts +4 -4
  75. package/lib/descriptors/action.descriptor.d.ts +3 -3
  76. package/lib/descriptors/column.descriptor.d.ts +10 -0
  77. package/lib/descriptors/editor.descriptor.d.ts +2 -3
  78. package/lib/descriptors/field-validation.descriptor.d.ts +18 -0
  79. package/lib/descriptors/field.descriptor.d.ts +8 -9
  80. package/lib/descriptors/index.d.ts +1 -1
  81. package/lib/descriptors/table.descriptor.d.ts +27 -5
  82. package/lib/descriptors/tableview.descriptor.d.ts +2 -2
  83. package/lib/types/type.model.d.ts +7 -0
  84. package/lib/utils/action-data-provider.util.d.ts +17 -0
  85. package/lib/utils/editor-formly.util.d.ts +2 -1
  86. package/lib/utils/index.d.ts +1 -0
  87. package/lib/utils/styles.util.d.ts +14 -0
  88. package/package.json +6 -6
  89. package/scss/mng-overrides/_theme_datatable.scss +21 -0
  90. package/scss/mng-overrides/_theme_tableview.scss +0 -43
  91. package/esm2020/lib/descriptors/field.validator.mjs +0 -21
  92. package/lib/descriptors/field.validator.d.ts +0 -18
@@ -38,49 +38,6 @@
38
38
  .p-datatable-tbody > tr > td .p-column-title {
39
39
  display: none;
40
40
  }
41
-
42
- @media screen and (max-width: 960px) {
43
- .p-datatable {
44
- .p-datatable-thead > tr > th,
45
- .p-datatable-tfoot > tr > td {
46
- display: none !important;
47
- }
48
-
49
- .p-datatable-tbody > tr {
50
- border-bottom: 1px solid var(--surface-d);
51
-
52
- > td {
53
- text-align: left;
54
- display: block;
55
- border: 0 none !important;
56
- width: 100% !important;
57
- float: left;
58
- clear: left;
59
- border: 0 none;
60
-
61
- .p-column-title {
62
- padding: 0.4rem;
63
- min-width: 30%;
64
- display: inline-block;
65
- margin: -0.4rem 1rem -0.4rem -0.4rem;
66
- font-weight: bold;
67
- }
68
-
69
- .p-progressbar {
70
- margin-top: 0.5rem;
71
- }
72
-
73
- &:last-child {
74
- text-align: center;
75
- }
76
-
77
- &:nth-child(6) {
78
- display: flex;
79
- }
80
- }
81
- }
82
- }
83
- }
84
41
  }
85
42
 
86
43
  .p-datatable:not(.p-datatable-gridlines) {
@@ -1,21 +0,0 @@
1
- export class FieldValidator {
2
- constructor(name, expression, message, options) {
3
- this._name = name;
4
- this._expression = expression;
5
- this._message = message;
6
- this._options = options;
7
- }
8
- get name() {
9
- return this._name;
10
- }
11
- get expression() {
12
- return this._expression;
13
- }
14
- get message() {
15
- return this._message;
16
- }
17
- get options() {
18
- return this._options;
19
- }
20
- }
21
- //# sourceMappingURL=data:application/json;base64,eyJ2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GUgcmVhZG9ubHkgX25hbWU6IHN0cmluZztcbiAgICBwcml2YXRlIHJlYWRvbmx5IF9leHByZXNzaW9uPzogKGNvbnRyb2w6IEFic3RyYWN0Q29udHJvbCkgPT4gYm9vbGVhbjtcbiAgICBwcml2YXRlIHJlYWRvbmx5IF9tZXNzYWdlPzogKGVycjogYW55LCBmaWVsZDogRm9ybWx5RmllbGRDb25maWcpID0+IHN0cmluZyB8IE9ic2VydmFibGU8c3RyaW5nPjtcbiAgICBwcml2YXRlIHJlYWRvbmx5IF9vcHRpb25zPzoge2Vycm9yUGF0aDogc3RyaW5nfTtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBuYW1lOiBzdHJpbmcsXG4gICAgICAgIGV4cHJlc3Npb24/OiAoY29udHJvbDogQWJzdHJhY3RDb250cm9sKSA9PiBib29sZWFuLFxuICAgICAgICBtZXNzYWdlPzogKGVycjogYW55LCBmaWVsZDogRm9ybWx5RmllbGRDb25maWcpID0+IHN0cmluZyB8IE9ic2VydmFibGU8c3RyaW5nPixcbiAgICAgICAgb3B0aW9ucz86IHtlcnJvclBhdGg6IHN0cmluZ31cbiAgICApIHtcbiAgICAgICAgdGhpcy5fbmFtZSA9IG5hbWU7XG4gICAgICAgIHRoaXMuX2V4cHJlc3Npb24gPSBleHByZXNzaW9uO1xuICAgICAgICB0aGlzLl9tZXNzYWdlID0gbWVzc2FnZTtcbiAgICAgICAgdGhpcy5fb3B0aW9ucyA9IG9wdGlvbnM7XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBuYW1lKCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiB0aGlzLl9uYW1lO1xuICAgIH1cblxuICAgIHB1YmxpYyBnZXQgZXhwcmVzc2lvbigpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2V4cHJlc3Npb247XG4gICAgfVxuXG4gICAgcHVibGljIGdldCBtZXNzYWdlKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fbWVzc2FnZTtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0IG9wdGlvbnMoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9vcHRpb25zO1xuICAgIH1cbn1cbiJdfQ==
@@ -1,18 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { FormlyFieldConfig } from '@ngx-formly/core';
3
- import { Observable } from 'rxjs';
4
- export declare class FieldValidator {
5
- private readonly _name;
6
- private readonly _expression?;
7
- private readonly _message?;
8
- private readonly _options?;
9
- constructor(name: string, expression?: (control: AbstractControl) => boolean, message?: (err: any, field: FormlyFieldConfig) => string | Observable<string>, options?: {
10
- errorPath: string;
11
- });
12
- get name(): string;
13
- get expression(): ((control: AbstractControl) => boolean) | undefined;
14
- get message(): ((err: any, field: FormlyFieldConfig) => string | Observable<string>) | undefined;
15
- get options(): {
16
- errorPath: string;
17
- } | undefined;
18
- }