@porscheinformatik/material-addons 0.0.34 → 0.0.99

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 (227) hide show
  1. package/README.md +29 -29
  2. package/esm2022/lib/button/button.mjs +7 -0
  3. package/esm2022/lib/button/button.module.mjs +26 -0
  4. package/esm2022/lib/button/danger-button/danger-button.component.mjs +28 -0
  5. package/esm2022/lib/button/flat-button/link-button.component.mjs +28 -0
  6. package/esm2022/lib/button/icon-button/icon-button.component.mjs +28 -0
  7. package/esm2022/lib/button/mad-basic-button.mjs +39 -0
  8. package/esm2022/lib/button/outline-button/outline-button.component.mjs +28 -0
  9. package/esm2022/lib/button/primary-button/primary-button.component.mjs +28 -0
  10. package/esm2022/lib/card/card.component.mjs +129 -0
  11. package/esm2022/lib/card/card.mjs +2 -0
  12. package/esm2022/lib/card/card.module.mjs +23 -0
  13. package/esm2022/lib/content-panel/content-header/content-header.component.mjs +11 -0
  14. package/esm2022/lib/content-panel/content-panel-container/content-panel-container.component.mjs +11 -0
  15. package/esm2022/lib/content-panel/content-panel-container-content/content-panel-container-content.component.mjs +11 -0
  16. package/esm2022/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.mjs +11 -0
  17. package/esm2022/lib/content-panel/content-panel.module.mjs +42 -0
  18. package/esm2022/lib/content-panel/main-container/main-container.component.mjs +11 -0
  19. package/esm2022/lib/data-table/data-table-action-type.mjs +6 -0
  20. package/esm2022/lib/data-table/data-table-action.mjs +2 -0
  21. package/esm2022/lib/data-table/data-table-column-definition.mjs +2 -0
  22. package/esm2022/lib/data-table/data-table-column.mjs +2 -0
  23. package/esm2022/lib/data-table/data-table-columns-modal/data-table-columns-modal.component.mjs +103 -0
  24. package/esm2022/lib/data-table/data-table-row.mjs +2 -0
  25. package/esm2022/lib/data-table/data-table.component.mjs +529 -0
  26. package/esm2022/lib/data-table/data-table.mjs +3 -0
  27. package/esm2022/lib/data-table/data-table.module.mjs +81 -0
  28. package/esm2022/lib/file-upload/drag-and-drop-directive.directive.mjs +61 -0
  29. package/esm2022/lib/file-upload/file-upload.component.mjs +78 -0
  30. package/esm2022/lib/flowbar/flowbar.component.mjs +190 -0
  31. package/esm2022/lib/flowbar/flowbar.module.mjs +19 -0
  32. package/esm2022/lib/material-action-button/material-action-button.component.mjs +34 -0
  33. package/esm2022/lib/material-action-button/material-action-button.module.mjs +22 -0
  34. package/esm2022/lib/material-addons.module.mjs +45 -0
  35. package/esm2022/lib/numeric-field/number-format.service.mjs +139 -0
  36. package/esm2022/lib/numeric-field/numeric-field.directive.mjs +295 -0
  37. package/esm2022/lib/numeric-field/numeric-field.mjs +2 -0
  38. package/esm2022/lib/numeric-field/numeric-field.module.mjs +24 -0
  39. package/esm2022/lib/quick-list/base-quick-list.component.mjs +124 -0
  40. package/esm2022/lib/quick-list/quick-list-compact/quick-list-compact.component.mjs +22 -0
  41. package/esm2022/lib/quick-list/quick-list.component.mjs +23 -0
  42. package/esm2022/lib/quick-list/quick-list.mjs +6 -0
  43. package/esm2022/lib/quick-list/quick-list.module.mjs +46 -0
  44. package/esm2022/lib/quick-list/reactive-form-quick-list/reactive-form-quick-list.component.mjs +22 -0
  45. package/esm2022/lib/quick-list/reactive-form-quick-list-compact/reactive-form-quick-list-compact.component.mjs +22 -0
  46. package/esm2022/lib/readonly/readonly-form-field/readonly-form-field.component.mjs +181 -0
  47. package/esm2022/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.mjs +206 -0
  48. package/esm2022/lib/readonly/readonly-form-field.module.mjs +25 -0
  49. package/esm2022/lib/stepper/mad-stepper-animation.mjs +13 -0
  50. package/esm2022/lib/stepper/step-header/step-header.component.mjs +77 -0
  51. package/esm2022/lib/stepper/stepper.component.mjs +159 -0
  52. package/esm2022/lib/stepper/stepper.module.mjs +23 -0
  53. package/esm2022/lib/table/column-header.mjs +2 -0
  54. package/esm2022/lib/table/table-action.mjs +2 -0
  55. package/esm2022/lib/table/table.component.mjs +130 -0
  56. package/esm2022/lib/table/table.mjs +2 -0
  57. package/esm2022/lib/table/table.module.mjs +56 -0
  58. package/esm2022/lib/throttle-click/throttle-click.directive.mjs +38 -0
  59. package/esm2022/lib/throttle-click/throttle-click.module.mjs +18 -0
  60. package/esm2022/lib/toolbar/toolbar-action.interface.mjs +2 -0
  61. package/esm2022/lib/toolbar/toolbar.component.mjs +78 -0
  62. package/esm2022/lib/toolbar/toolbar.module.mjs +56 -0
  63. package/esm2022/lib/toolbar/toolbar.service.mjs +124 -0
  64. package/esm2022/porscheinformatik-material-addons.mjs +5 -0
  65. package/esm2022/public_api.mjs +42 -0
  66. package/fesm2022/porscheinformatik-material-addons.mjs +3229 -0
  67. package/fesm2022/porscheinformatik-material-addons.mjs.map +1 -0
  68. package/index.d.ts +6 -0
  69. package/lib/button/button.d.ts +7 -0
  70. package/lib/button/button.d.ts.map +1 -0
  71. package/lib/button/button.module.d.ts +17 -0
  72. package/lib/button/button.module.d.ts.map +1 -0
  73. package/lib/button/danger-button/danger-button.component.d.ts +13 -0
  74. package/lib/button/danger-button/danger-button.component.d.ts.map +1 -0
  75. package/lib/button/flat-button/link-button.component.d.ts +13 -0
  76. package/lib/button/flat-button/link-button.component.d.ts.map +1 -0
  77. package/lib/button/icon-button/icon-button.component.d.ts +13 -0
  78. package/lib/button/icon-button/icon-button.component.d.ts.map +1 -0
  79. package/lib/button/mad-basic-button.d.ts +14 -0
  80. package/lib/button/mad-basic-button.d.ts.map +1 -0
  81. package/lib/button/outline-button/outline-button.component.d.ts +13 -0
  82. package/lib/button/outline-button/outline-button.component.d.ts.map +1 -0
  83. package/lib/button/primary-button/primary-button.component.d.ts +13 -0
  84. package/lib/button/primary-button/primary-button.component.d.ts.map +1 -0
  85. package/lib/card/card.component.d.ts +28 -0
  86. package/lib/card/card.component.d.ts.map +1 -0
  87. package/lib/card/card.d.ts +2 -0
  88. package/lib/card/card.d.ts.map +1 -0
  89. package/lib/card/card.module.d.ts +14 -0
  90. package/lib/card/card.module.d.ts.map +1 -0
  91. package/lib/content-panel/content-header/content-header.component.d.ts +6 -0
  92. package/lib/content-panel/content-header/content-header.component.d.ts.map +1 -0
  93. package/lib/content-panel/content-panel-container/content-panel-container.component.d.ts +6 -0
  94. package/lib/content-panel/content-panel-container/content-panel-container.component.d.ts.map +1 -0
  95. package/lib/content-panel/content-panel-container-content/content-panel-container-content.component.d.ts +6 -0
  96. package/lib/content-panel/content-panel-container-content/content-panel-container-content.component.d.ts.map +1 -0
  97. package/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.d.ts +6 -0
  98. package/lib/content-panel/content-panel-container-footer/content-panel-container-footer.component.d.ts.map +1 -0
  99. package/lib/content-panel/content-panel.module.d.ts +13 -0
  100. package/lib/content-panel/content-panel.module.d.ts.map +1 -0
  101. package/lib/content-panel/main-container/main-container.component.d.ts +6 -0
  102. package/lib/content-panel/main-container/main-container.component.d.ts.map +1 -0
  103. package/lib/data-table/data-table-action-type.d.ts +6 -0
  104. package/lib/data-table/data-table-action-type.d.ts.map +1 -0
  105. package/lib/data-table/data-table-action.d.ts +8 -0
  106. package/lib/data-table/data-table-action.d.ts.map +1 -0
  107. package/lib/data-table/data-table-column-definition.d.ts +28 -0
  108. package/lib/data-table/data-table-column-definition.d.ts.map +1 -0
  109. package/lib/data-table/data-table-column.d.ts +11 -0
  110. package/lib/data-table/data-table-column.d.ts.map +1 -0
  111. package/lib/data-table/data-table-columns-modal/data-table-columns-modal.component.d.ts +27 -0
  112. package/lib/data-table/data-table-columns-modal/data-table-columns-modal.component.d.ts.map +1 -0
  113. package/lib/data-table/data-table-row.d.ts +7 -0
  114. package/lib/data-table/data-table-row.d.ts.map +1 -0
  115. package/lib/data-table/data-table.component.d.ts +123 -0
  116. package/lib/data-table/data-table.component.d.ts.map +1 -0
  117. package/lib/data-table/data-table.d.ts +6 -0
  118. package/lib/data-table/data-table.d.ts.map +1 -0
  119. package/lib/data-table/data-table.module.d.ts +25 -0
  120. package/lib/data-table/data-table.module.d.ts.map +1 -0
  121. package/lib/file-upload/drag-and-drop-directive.directive.d.ts +13 -0
  122. package/lib/file-upload/drag-and-drop-directive.directive.d.ts.map +1 -0
  123. package/lib/file-upload/file-upload.component.d.ts +22 -0
  124. package/lib/file-upload/file-upload.component.d.ts.map +1 -0
  125. package/lib/flowbar/flowbar.component.d.ts +47 -0
  126. package/lib/flowbar/flowbar.component.d.ts.map +1 -0
  127. package/lib/flowbar/flowbar.module.d.ts +10 -0
  128. package/lib/flowbar/flowbar.module.d.ts.map +1 -0
  129. package/lib/material-action-button/material-action-button.component.d.ts +12 -8
  130. package/lib/material-action-button/material-action-button.component.d.ts.map +1 -0
  131. package/lib/material-action-button/material-action-button.module.d.ts +13 -2
  132. package/lib/material-action-button/material-action-button.module.d.ts.map +1 -0
  133. package/lib/material-addons.module.d.ts +15 -2
  134. package/lib/material-addons.module.d.ts.map +1 -0
  135. package/lib/numeric-field/number-format.service.d.ts +31 -0
  136. package/lib/numeric-field/number-format.service.d.ts.map +1 -0
  137. package/lib/numeric-field/numeric-field.d.ts +2 -0
  138. package/lib/numeric-field/numeric-field.d.ts.map +1 -0
  139. package/lib/numeric-field/numeric-field.directive.d.ts +45 -0
  140. package/lib/numeric-field/numeric-field.directive.d.ts.map +1 -0
  141. package/lib/numeric-field/numeric-field.module.d.ts +10 -0
  142. package/lib/numeric-field/numeric-field.module.d.ts.map +1 -0
  143. package/lib/quick-list/base-quick-list.component.d.ts +41 -0
  144. package/lib/quick-list/base-quick-list.component.d.ts.map +1 -0
  145. package/lib/quick-list/quick-list-compact/quick-list-compact.component.d.ts +12 -0
  146. package/lib/quick-list/quick-list-compact/quick-list-compact.component.d.ts.map +1 -0
  147. package/lib/quick-list/quick-list.component.d.ts +12 -0
  148. package/lib/quick-list/quick-list.component.d.ts.map +1 -0
  149. package/lib/quick-list/quick-list.d.ts +6 -0
  150. package/lib/quick-list/quick-list.d.ts.map +1 -0
  151. package/lib/quick-list/quick-list.module.d.ts +17 -0
  152. package/lib/quick-list/quick-list.module.d.ts.map +1 -0
  153. package/lib/quick-list/reactive-form-quick-list/reactive-form-quick-list.component.d.ts +12 -0
  154. package/lib/quick-list/reactive-form-quick-list/reactive-form-quick-list.component.d.ts.map +1 -0
  155. package/lib/quick-list/reactive-form-quick-list-compact/reactive-form-quick-list-compact.component.d.ts +12 -0
  156. package/lib/quick-list/reactive-form-quick-list-compact/reactive-form-quick-list-compact.component.d.ts.map +1 -0
  157. package/lib/readonly/readonly-form-field/readonly-form-field.component.d.ts +56 -14
  158. package/lib/readonly/readonly-form-field/readonly-form-field.component.d.ts.map +1 -0
  159. package/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.d.ts +89 -31
  160. package/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.d.ts.map +1 -0
  161. package/lib/readonly/readonly-form-field.module.d.ts +16 -2
  162. package/lib/readonly/readonly-form-field.module.d.ts.map +1 -0
  163. package/lib/stepper/mad-stepper-animation.d.ts +8 -0
  164. package/lib/stepper/mad-stepper-animation.d.ts.map +1 -0
  165. package/lib/stepper/step-header/step-header.component.d.ts +27 -0
  166. package/lib/stepper/step-header/step-header.component.d.ts.map +1 -0
  167. package/lib/stepper/stepper.component.d.ts +53 -0
  168. package/lib/stepper/stepper.component.d.ts.map +1 -0
  169. package/lib/stepper/stepper.module.d.ts +14 -0
  170. package/lib/stepper/stepper.module.d.ts.map +1 -0
  171. package/lib/table/column-header.d.ts +8 -0
  172. package/lib/table/column-header.d.ts.map +1 -0
  173. package/lib/table/table-action.d.ts +6 -0
  174. package/lib/table/table-action.d.ts.map +1 -0
  175. package/lib/table/table.component.d.ts +43 -0
  176. package/lib/table/table.component.d.ts.map +1 -0
  177. package/lib/table/table.d.ts +4 -0
  178. package/lib/table/table.d.ts.map +1 -0
  179. package/lib/table/table.module.d.ts +18 -0
  180. package/lib/table/table.module.d.ts.map +1 -0
  181. package/lib/throttle-click/throttle-click.directive.d.ts +14 -0
  182. package/lib/throttle-click/throttle-click.directive.d.ts.map +1 -0
  183. package/lib/throttle-click/throttle-click.module.d.ts +9 -0
  184. package/lib/throttle-click/throttle-click.module.d.ts.map +1 -0
  185. package/lib/toolbar/toolbar-action.interface.d.ts +28 -18
  186. package/lib/toolbar/toolbar-action.interface.d.ts.map +1 -0
  187. package/lib/toolbar/toolbar.component.d.ts +28 -19
  188. package/lib/toolbar/toolbar.component.d.ts.map +1 -0
  189. package/lib/toolbar/toolbar.module.d.ts +18 -2
  190. package/lib/toolbar/toolbar.module.d.ts.map +1 -0
  191. package/lib/toolbar/toolbar.service.d.ts +44 -33
  192. package/lib/toolbar/toolbar.service.d.ts.map +1 -0
  193. package/package.json +29 -24
  194. package/porscheinformatik-material-addons.d.ts.map +1 -0
  195. package/public_api.d.ts +39 -0
  196. package/public_api.d.ts.map +1 -0
  197. package/themes/common/styles.scss +359 -303
  198. package/themes/pbv.scss +64 -56
  199. package/themes/poa.scss +64 -40
  200. package/bundles/porscheinformatik-material-addons.umd.js +0 -755
  201. package/esm2015/lib/material-action-button/material-action-button.component.js +0 -43
  202. package/esm2015/lib/material-action-button/material-action-button.module.js +0 -19
  203. package/esm2015/lib/material-addons.module.js +0 -16
  204. package/esm2015/lib/readonly/readonly-form-field/readonly-form-field.component.js +0 -61
  205. package/esm2015/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.js +0 -124
  206. package/esm2015/lib/readonly/readonly-form-field.module.js +0 -20
  207. package/esm2015/lib/toolbar/toolbar-action.interface.js +0 -47
  208. package/esm2015/lib/toolbar/toolbar.component.js +0 -112
  209. package/esm2015/lib/toolbar/toolbar.module.js +0 -29
  210. package/esm2015/lib/toolbar/toolbar.service.js +0 -197
  211. package/esm2015/porscheinformatik-material-addons.js +0 -9
  212. package/esm2015/public-api.js +0 -18
  213. package/esm5/lib/material-action-button/material-action-button.component.js +0 -45
  214. package/esm5/lib/material-action-button/material-action-button.module.js +0 -23
  215. package/esm5/lib/material-addons.module.js +0 -20
  216. package/esm5/lib/readonly/readonly-form-field/readonly-form-field.component.js +0 -67
  217. package/esm5/lib/readonly/readonly-form-field-wrapper/readonly-form-field-wrapper.component.js +0 -145
  218. package/esm5/lib/readonly/readonly-form-field.module.js +0 -24
  219. package/esm5/lib/toolbar/toolbar-action.interface.js +0 -47
  220. package/esm5/lib/toolbar/toolbar.component.js +0 -131
  221. package/esm5/lib/toolbar/toolbar.module.js +0 -33
  222. package/esm5/lib/toolbar/toolbar.service.js +0 -245
  223. package/esm5/porscheinformatik-material-addons.js +0 -9
  224. package/esm5/public-api.js +0 -18
  225. package/porscheinformatik-material-addons.d.ts +0 -4
  226. package/porscheinformatik-material-addons.metadata.json +0 -1
  227. package/public-api.d.ts +0 -10
@@ -1,303 +1,359 @@
1
- @import '~@angular/material/theming';
2
-
3
- @include mat-core();
4
-
5
- $contrast: (
6
- 50: $dark-primary-text,
7
- 100: $dark-primary-text,
8
- 200: $dark-primary-text,
9
- 300: $dark-primary-text,
10
- 400: $dark-primary-text,
11
- 500: $light-primary-text,
12
- 600: $light-primary-text,
13
- 700: $light-primary-text,
14
- 800: $light-primary-text,
15
- 900: $light-primary-text,
16
- A100: $dark-primary-text,
17
- A200: $dark-primary-text,
18
- A400: $dark-primary-text,
19
- A700: $dark-primary-text,
20
- );
21
-
22
- @function get-main-color($color-scheme) {
23
- @return map-get($color-scheme, 500);
24
- }
25
-
26
- @function get-selection-background($color-scheme) {
27
- @return map-get($color-scheme, 50);
28
- }
29
-
30
- @function get-table-hover-color($color) {
31
- @return rgba($color, 0.08);
32
- }
33
-
34
- @function get-background-color($color-scheme) {
35
- @return map-get($color-scheme, background-color);
36
- }
37
-
38
- @mixin build-custom-theme($primary-palette, $warn-palette: mat-palette($mat-red), $theme-name: 'undefined') {
39
- $material-addons-colors-primary: mat-palette($primary-palette);
40
- $material-addons-colors-warn: $warn-palette;
41
- $material-addons-theme: mat-light-theme($material-addons-colors-primary, $material-addons-colors-primary, $material-addons-colors-warn);
42
-
43
- $hover-color: mat-palette($primary-palette, 50);
44
-
45
- @include angular-material-theme($material-addons-theme);
46
-
47
- @if variable-exists(table-hover-color) {
48
- .clickable-table-row:hover,
49
- .mat-row-link:hover {
50
- background-color: $table-hover-color;
51
- }
52
- } @else {
53
- @warn 'variable $table-hover-color in theme #{$theme-name} is not defined';
54
- }
55
-
56
- @if variable_exists(warn-color) {
57
- .mat-form-field-required-marker {
58
- color: $warn-color;
59
- }
60
-
61
- .mat-chip.mat-standard-chip.mat-warn {
62
- color: $warn-color;
63
- border: 1px solid $warn-color;
64
- }
65
- } @else {
66
- @warn 'variable $warn-color in theme #{$theme-name} is not defined';
67
- }
68
-
69
- @if variable_exists(main-primary) {
70
- .mat-chip-selected {
71
- border: 1px solid $main-primary !important;
72
- color: $main-primary !important;
73
- }
74
- } @else {
75
- @warn 'variable $main-primary in theme #{$theme-name} is not defined';
76
- }
77
-
78
- .mat-chip-selected {
79
- background-color: white !important;
80
- }
81
- }
82
-
83
- body {
84
- margin: 0;
85
- font-family: Roboto, 'Helvetica Neue', sans-serif;
86
- }
87
-
88
- a {
89
- color: inherit;
90
- text-decoration: inherit;
91
- }
92
-
93
- .spacer {
94
- flex: 1 1 auto;
95
- }
96
-
97
- table {
98
- width: 100%;
99
- }
100
-
101
- .mat-input-element:disabled {
102
- cursor: auto;
103
- color: black;
104
- }
105
-
106
- .mat-select-disabled .mat-select-value {
107
- color: black;
108
- }
109
-
110
- .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow {
111
- color: white;
112
- }
113
-
114
- .mat-checkbox-disabled .mat-checkbox-label {
115
- color: black;
116
- }
117
-
118
- .clickable-table-row:hover,
119
- .mat-row-link:hover {
120
- cursor: pointer;
121
- }
122
-
123
- .button-panel {
124
- display: flex;
125
- flex-direction: row;
126
- padding-top: 16px;
127
- padding-bottom: 8px;
128
- padding-right: 16px;
129
- }
130
-
131
- .button-panel button {
132
- margin-right: 8px;
133
- }
134
-
135
- .simple-edit-section {
136
- display: flex;
137
- flex-direction: column;
138
- }
139
-
140
- .simple-edit-section > * {
141
- width: 100%;
142
- max-width: 640px;
143
- }
144
-
145
- .tiny-table-section {
146
- display: flex;
147
- flex-direction: column;
148
- }
149
-
150
- .table-condensed > .mat-row {
151
- min-height: 36px;
152
- }
153
-
154
- .small-input {
155
- max-width: 90px !important;
156
- }
157
-
158
- .tiny-input {
159
- max-width: 60px !important;
160
- }
161
-
162
- .main-content {
163
- padding: 73px 16px 16px;
164
- }
165
-
166
- .mat-tab-header {
167
- margin: -16px -16px 16px;
168
- }
169
-
170
- .mat-row {
171
- position: relative;
172
- }
173
-
174
- .mat-row-link {
175
- position: absolute;
176
- width: 100%;
177
- height: 100%;
178
- left: 0;
179
- top: 0;
180
- }
181
-
182
- .mat-button,
183
- .mat-flat-button,
184
- .mat-raised-button,
185
- .mat-stroked-button,
186
- .mat-icon-button {
187
- text-transform: uppercase;
188
- }
189
-
190
- .toolbar-title {
191
- text-overflow: ellipsis;
192
- white-space: nowrap;
193
- overflow: hidden;
194
- }
195
-
196
- .mat-select-disabled {
197
- color: rgba(0, 0, 0, 0.38);
198
- }
199
-
200
- .sticky-paginator {
201
- background-color: white;
202
- position: fixed;
203
- padding-right: 16px;
204
- bottom: 0;
205
- right: 0;
206
- left: 0;
207
- z-index: 5;
208
- text-align: right;
209
- }
210
-
211
- .with-sticky-paginator {
212
- padding-bottom: 64px;
213
- }
214
-
215
- .criteria-panel {
216
- display: flex;
217
- flex-direction: row;
218
- flex-wrap: wrap;
219
- justify-content: flex-start;
220
- }
221
-
222
- .criteria-panel > * {
223
- padding-right: 16px;
224
- }
225
-
226
- .mat-chip.mat-standard-chip {
227
- background-color: white;
228
- color: rgba(0, 0, 0, 0.87);
229
- border: 1px solid rgba(0, 0, 0, 0.4);
230
- }
231
-
232
- .mat-chip.mat-standard-chip.mat-warn {
233
- background-color: white;
234
- }
235
-
236
- .mat-tab-group {
237
- max-width: 100%;
238
- }
239
-
240
- .large-icon {
241
- font-size: xx-large;
242
- }
243
-
244
- .transparent .mat-dialog-container {
245
- box-shadow: none;
246
- background: rgba(0, 0, 0, 0);
247
- }
248
-
249
- .fixedtabs {
250
- .mat-tab-header {
251
- z-index: 10;
252
- width: 100vw;
253
- position: fixed;
254
- background-color: white;
255
- }
256
- }
257
-
258
- .mat-dialog-actions {
259
- justify-content: flex-end;
260
- }
261
-
262
- @mixin ellipsis-text-overflow {
263
- text-overflow: ellipsis;
264
- overflow: hidden;
265
- white-space: nowrap;
266
- }
267
-
268
- .ellipsis-text-overflow {
269
- @include ellipsis-text-overflow;
270
- }
271
- @media print {
272
- .no-print, .no-print * {
273
- display: none !important;
274
- width: 0 !important;
275
- height: 0 !important;
276
- }
277
-
278
- mat-paginator {
279
- display: none !important;
280
- height: 0 !important;
281
- }
282
-
283
- mat-sidenav-content {
284
- margin: 0 !important;
285
- }
286
-
287
- .mat-raised-button, .mat-stroked-button, .button-panel {
288
- display: none !important;
289
- }
290
-
291
- .criteria-panel {
292
- display: none !important;
293
- height: 0 !important;
294
- }
295
-
296
- async-autocomplete mat-icon {
297
- display: none !important;
298
- }
299
-
300
- .mat-tab-label:not(.mat-tab-label-active) {
301
- display: none !important;
302
- }
303
- }
1
+ @use '@angular/material' as mat;
2
+
3
+ @include mat.all-component-typographies();
4
+ @include mat.all-component-densities(-2);
5
+ @include mat.core();
6
+
7
+ //TODO Contrasts should be part of the themes!
8
+ $contrast: (
9
+ 50: rgba(black, 0.87),
10
+ 100: rgba(black, 0.87),
11
+ 200: rgba(black, 0.87),
12
+ 300: rgba(black, 0.87),
13
+ 400: rgba(black, 0.87),
14
+ 500: white,
15
+ 600: white,
16
+ 700: white,
17
+ 800: white,
18
+ 900: white,
19
+ A100: rgba(black, 0.87),
20
+ A200: rgba(black, 0.87),
21
+ A400: rgba(black, 0.87),
22
+ A700: rgba(black, 0.87),
23
+ );
24
+
25
+ @function get-main-color($color-scheme) {
26
+ @return map-get($color-scheme, 500);
27
+ }
28
+
29
+ @function get-selection-background($color-scheme) {
30
+ @return map-get($color-scheme, 50);
31
+ }
32
+
33
+ @function get-table-hover-color($color) {
34
+ @return rgba($color, 0.08);
35
+ }
36
+
37
+ @function get-background-color($color-scheme) {
38
+ @return map-get($color-scheme, background-color);
39
+ }
40
+
41
+ @mixin build-custom-theme($primary-palette, $warn-palette: mat.$red-palette, $theme-name: 'undefined') {
42
+ $material-addons-colors-primary: mat.define-palette($primary-palette);
43
+ $material-addons-colors-warn: mat.define-palette($warn-palette);
44
+ //$material-addons-theme: mat.define-light-theme($material-addons-colors-primary, $material-addons-colors-primary, $material-addons-colors-warn);
45
+
46
+ $material-addons-theme: mat.define-light-theme(
47
+ (
48
+ color: (
49
+ primary: $material-addons-colors-primary,
50
+ accent: $material-addons-colors-primary,
51
+ warn: $material-addons-colors-warn,
52
+ ),
53
+ )
54
+ );
55
+
56
+ $hover-color: mat.define-palette($primary-palette, 50);
57
+
58
+ @include mat.all-component-themes($material-addons-theme);
59
+ //setting the density for the components
60
+ //@include mat.form-field-density(-5);
61
+
62
+ @if variable-exists(table-hover-color) {
63
+ .clickable-table-row:hover,
64
+ .mat-row-link:hover {
65
+ background-color: $table-hover-color;
66
+ }
67
+ } @else {
68
+ @warn 'variable $table-hover-color in theme #{$theme-name} is not defined';
69
+ }
70
+
71
+ @if variable_exists(warn-color) {
72
+ .mat-mdc-form-field-required-marker {
73
+ color: $warn-color;
74
+ }
75
+ } @else {
76
+ @warn 'variable $warn-color in theme #{$theme-name} is not defined';
77
+ }
78
+
79
+ @if variable_exists(main-primary) {
80
+ .mat-mdc-outlined-button {
81
+ border-color: $main-primary !important;
82
+ }
83
+ .selected-drag-list {
84
+ border-color: $main-primary !important;
85
+ }
86
+ .active-column-definition {
87
+ color: $main-primary !important;
88
+ }
89
+ } @else {
90
+ @warn 'variable $main-primary in theme #{$theme-name} is not defined';
91
+ }
92
+ }
93
+
94
+ body {
95
+ margin: 0;
96
+ font-family: Roboto, 'Helvetica Neue', sans-serif;
97
+ }
98
+
99
+ a {
100
+ color: inherit;
101
+ text-decoration: inherit;
102
+ }
103
+
104
+ .spacer {
105
+ flex: 1 1 auto;
106
+ }
107
+
108
+ table {
109
+ width: 100%;
110
+ }
111
+
112
+ .mat-mdc-input-element:disabled {
113
+ cursor: auto;
114
+ color: black;
115
+ }
116
+
117
+ .mat-mdc-select-disabled .mat-select-value {
118
+ color: black;
119
+ }
120
+
121
+ .mat-mdc-form-field .mat-mdc-select.mat-select-disabled .mat-select-arrow {
122
+ color: white;
123
+ }
124
+
125
+ .mat-mdc-checkbox-disabled .mat-checkbox-label {
126
+ color: black;
127
+ }
128
+
129
+ .clickable-table-row:hover,
130
+ .mat-row-link:hover {
131
+ cursor: pointer;
132
+ }
133
+
134
+ .button-panel {
135
+ padding-top: 16px;
136
+ padding-bottom: 8px;
137
+ padding-right: 16px;
138
+ }
139
+
140
+ mad-primary-button {
141
+ margin-right: 8px;
142
+ }
143
+
144
+ mad-outline-button {
145
+ margin-right: 8px;
146
+ }
147
+
148
+ mad-link-button {
149
+ margin-right: 8px;
150
+ }
151
+
152
+ mad-danger-button {
153
+ margin-right: 8px;
154
+ }
155
+
156
+ .simple-edit-section {
157
+ display: flex;
158
+ flex-direction: column;
159
+ }
160
+
161
+ .simple-edit-section > * {
162
+ width: 100%;
163
+ max-width: 640px;
164
+ }
165
+
166
+ .tiny-table-section {
167
+ display: flex;
168
+ flex-direction: column;
169
+ }
170
+
171
+ .table-condensed > .mat-mdc-row {
172
+ min-height: 36px;
173
+ }
174
+
175
+ .small-input {
176
+ max-width: 90px !important;
177
+ }
178
+
179
+ .tiny-input {
180
+ max-width: 60px !important;
181
+ }
182
+
183
+ .main-content {
184
+ padding: 73px 16px 16px;
185
+ }
186
+
187
+ .mat-mdc-tab-header {
188
+ margin: -16px -16px 16px;
189
+ }
190
+
191
+ .mat-mdc-row {
192
+ position: relative;
193
+ }
194
+
195
+ .mat-row-link {
196
+ position: absolute;
197
+ width: 100%;
198
+ height: 100%;
199
+ left: 0;
200
+ top: 0;
201
+ }
202
+
203
+ .mat-mdc-button,
204
+ .mat-mdc-unelevated-button,
205
+ .mat-mdc-raised-button,
206
+ .mat-mdc-outlined-button,
207
+ .mat-mdc-icon-button {
208
+ text-transform: uppercase;
209
+ }
210
+
211
+ .toolbar-title {
212
+ text-overflow: ellipsis;
213
+ white-space: nowrap;
214
+ overflow: hidden;
215
+ }
216
+
217
+ .mat-mdc-select-disabled {
218
+ color: rgba(0, 0, 0, 0.38);
219
+ }
220
+
221
+ .sticky-paginator {
222
+ background-color: white;
223
+ position: fixed;
224
+ padding-right: 16px;
225
+ bottom: 0;
226
+ right: 0;
227
+ left: 0;
228
+ z-index: 5;
229
+ text-align: right;
230
+ }
231
+
232
+ .with-sticky-paginator {
233
+ padding-bottom: 64px;
234
+ }
235
+
236
+ .criteria-panel {
237
+ display: flex;
238
+ flex-direction: row;
239
+ flex-wrap: wrap;
240
+ justify-content: flex-start;
241
+ }
242
+
243
+ .criteria-panel > * {
244
+ padding-right: 16px;
245
+ }
246
+
247
+ .mat-mdc-tab-group {
248
+ max-width: 100%;
249
+ }
250
+
251
+ .large-icon {
252
+ font-size: xx-large;
253
+ }
254
+
255
+ .transparent .mat-mdc-dialog-container {
256
+ box-shadow: none;
257
+ background: rgba(0, 0, 0, 0);
258
+ }
259
+
260
+ /*
261
+ * This class can be used to fix mat-tabs at the top of a page
262
+ */
263
+ .fixedtabs > .mat-mdc-tab-header {
264
+ z-index: 10;
265
+ width: 100vw;
266
+ position: fixed;
267
+ background-color: white;
268
+ }
269
+
270
+ .mat-mdc-dialog-actions {
271
+ justify-content: flex-end;
272
+ }
273
+
274
+ .mat-md-card-header-text {
275
+ margin: 0 !important;
276
+ }
277
+
278
+ @mixin ellipsis-text-overflow {
279
+ text-overflow: ellipsis;
280
+ overflow: hidden;
281
+ white-space: nowrap;
282
+ }
283
+
284
+ .ellipsis-text-overflow {
285
+ @include ellipsis-text-overflow;
286
+ }
287
+
288
+ @media print {
289
+ .no-print,
290
+ .no-print * {
291
+ display: none !important;
292
+ width: 0 !important;
293
+ height: 0 !important;
294
+ }
295
+ mat-paginator {
296
+ display: none !important;
297
+ height: 0 !important;
298
+ }
299
+
300
+ mat-sidenav-content {
301
+ margin: 0 !important;
302
+ }
303
+
304
+ .mat-mdc-raised-button,
305
+ .mat-mdc-outlined-button,
306
+ .button-panel {
307
+ display: none !important;
308
+ }
309
+
310
+ mad-primary-button,
311
+ mad-outline-button,
312
+ mad-danger-button,
313
+ mad-link-button,
314
+ mad-icon-button {
315
+ display: none !important;
316
+ }
317
+
318
+ .criteria-panel {
319
+ display: none !important;
320
+ height: 0 !important;
321
+ }
322
+
323
+ async-autocomplete mat-icon {
324
+ display: none !important;
325
+ }
326
+ .mat-mdc-tab-label:not(.mat-tab-label-active) {
327
+ display: none !important;
328
+ }
329
+ }
330
+
331
+ .mad-read-only {
332
+ mat-label {
333
+ color: black;
334
+ }
335
+ .content {
336
+ color: black !important;
337
+ }
338
+ .mdc-notched-outline__leading,
339
+ .mdc-notched-outline__notch,
340
+ .mdc-notched-outline__trailing {
341
+ border: none !important;
342
+ }
343
+ }
344
+
345
+ // needed for the padding fix when subscriptSizing: 'dynamic'
346
+ mat-form-field .mat-mdc-form-field {
347
+ &-subscript-wrapper {
348
+ margin-bottom: 1.25em;
349
+ }
350
+ }
351
+
352
+ // the label of the outline input is set into the padding of the form-field-component
353
+ .mat-form-field-appearance-outline {
354
+ margin-top: 8px;
355
+ }
356
+
357
+ .pointer {
358
+ cursor: pointer;
359
+ }