@messaia/cdk 17.1.5 → 18.0.0-rc02

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 (242) hide show
  1. package/esm2022/lib/base/base.module.mjs +8 -8
  2. package/esm2022/lib/base/components/base.component.mjs +4 -4
  3. package/esm2022/lib/base/components/dynamic-table-config-dialog.comnponent.mjs +3 -3
  4. package/esm2022/lib/base/components/generic-form-base.component.mjs +4 -4
  5. package/esm2022/lib/base/components/generic-form.component.mjs +3 -3
  6. package/esm2022/lib/base/components/generic-list.component.mjs +4 -4
  7. package/esm2022/lib/base/components/generic-reactive-form.component.mjs +4 -4
  8. package/esm2022/lib/base/constants/common.mjs +2 -2
  9. package/esm2022/lib/base/helpers/auth-helper.mjs +1 -1
  10. package/esm2022/lib/base/interceptors/base.interceptor.mjs +4 -4
  11. package/esm2022/lib/base/interceptors/caching-interceptor.mjs +4 -4
  12. package/esm2022/lib/base/interceptors/loading.interceptor.mjs +4 -4
  13. package/esm2022/lib/base/services/file.service.mjs +3 -3
  14. package/esm2022/lib/base/services/loading-screen.service.mjs +3 -3
  15. package/esm2022/lib/base/services/print.service.mjs +3 -3
  16. package/esm2022/lib/chips/chips.module.mjs +4 -4
  17. package/esm2022/lib/chips/components/chips.component.mjs +4 -4
  18. package/esm2022/lib/chips/directives/autocomplete-option.directive.mjs +3 -3
  19. package/esm2022/lib/chips/directives/chip.directive.mjs +3 -3
  20. package/esm2022/lib/common/behaviors/control-value-accesor.mixin.mjs +1 -1
  21. package/esm2022/lib/common/behaviors/disabled.mixin.mjs +1 -1
  22. package/esm2022/lib/common/common.module.mjs +4 -4
  23. package/esm2022/lib/common/directives/delayed-hover.directive.mjs +4 -4
  24. package/esm2022/lib/common/directives/disable-control.directive.mjs +4 -4
  25. package/esm2022/lib/common/functions/utils.mjs +4 -4
  26. package/esm2022/lib/common/helpers/app-storage.mjs +4 -4
  27. package/esm2022/lib/common/helpers/dynamic-builder.mjs +4 -4
  28. package/esm2022/lib/common/helpers/dynamic-component-compiler.mjs +3 -3
  29. package/esm2022/lib/common/models/app-setting.mjs +3 -3
  30. package/esm2022/lib/common/pipes/data-source.pipe.mjs +3 -3
  31. package/esm2022/lib/common/pipes/enum.pipe.mjs +3 -3
  32. package/esm2022/lib/common/pipes/file-size.pipe.mjs +4 -4
  33. package/esm2022/lib/common/pipes/filter.pipe.mjs +4 -4
  34. package/esm2022/lib/common/pipes/first-letter.mjs +3 -3
  35. package/esm2022/lib/common/pipes/form-array.pipe.mjs +3 -3
  36. package/esm2022/lib/common/pipes/form-control.pipe.mjs +3 -3
  37. package/esm2022/lib/common/pipes/form-group.pipe.mjs +3 -3
  38. package/esm2022/lib/common/pipes/func.pipe.mjs +3 -3
  39. package/esm2022/lib/common/pipes/join.pipe.mjs +4 -4
  40. package/esm2022/lib/common/pipes/keys.mjs +4 -4
  41. package/esm2022/lib/common/pipes/month-name.pipe.mjs +3 -3
  42. package/esm2022/lib/common/pipes/nested-property.mjs +3 -3
  43. package/esm2022/lib/common/pipes/only-number.mjs +4 -4
  44. package/esm2022/lib/common/pipes/order.pipe.mjs +4 -4
  45. package/esm2022/lib/common/pipes/placeholder.pipe.mjs +4 -4
  46. package/esm2022/lib/common/pipes/property-join.pipe.mjs +4 -4
  47. package/esm2022/lib/common/pipes/safe-html.pipe.mjs +3 -3
  48. package/esm2022/lib/common/pipes/split.pipe.mjs +3 -3
  49. package/esm2022/lib/common/pipes/time.pipe.mjs +4 -4
  50. package/esm2022/lib/common/pipes/titlecase.pipe.mjs +3 -3
  51. package/esm2022/lib/common/pipes/truncate.pipe.mjs +3 -3
  52. package/esm2022/lib/common/pipes/values.mjs +3 -3
  53. package/esm2022/lib/common/services/base.service.mjs +3 -3
  54. package/esm2022/lib/common/services/enum.service.mjs +4 -4
  55. package/esm2022/lib/common/services/event-queue.service.mjs +3 -3
  56. package/esm2022/lib/dialogs/alert-dialog/alert-dialog.component.mjs +3 -3
  57. package/esm2022/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +3 -3
  58. package/esm2022/lib/dialogs/dialog.component.mjs +13 -13
  59. package/esm2022/lib/dialogs/dialogs.module.mjs +4 -4
  60. package/esm2022/lib/dialogs/prompt-dialog/prompt-dialog.component.mjs +3 -3
  61. package/esm2022/lib/dialogs/services/dialog.service.mjs +4 -4
  62. package/esm2022/lib/file/file-input.component.mjs +4 -4
  63. package/esm2022/lib/file/file.module.mjs +4 -4
  64. package/esm2022/lib/form-validators/algorithm/luhn-algorithm.mjs +1 -1
  65. package/esm2022/lib/form-validators/core/default-container.mjs +10 -10
  66. package/esm2022/lib/form-validators/directives/base-directive.mjs +4 -4
  67. package/esm2022/lib/form-validators/directives/control-host.directive.mjs +4 -4
  68. package/esm2022/lib/form-validators/directives/html-control-template.directive.mjs +3 -3
  69. package/esm2022/lib/form-validators/directives/rx-form.directive.mjs +4 -4
  70. package/esm2022/lib/form-validators/directives/template-validations/async-validation.directive.mjs +3 -3
  71. package/esm2022/lib/form-validators/directives/template-validations/base-validator.directive.mjs +4 -4
  72. package/esm2022/lib/form-validators/directives/template-validations/control-expression-process.mjs +4 -4
  73. package/esm2022/lib/form-validators/directives/template-validations/file-control.directive.mjs +4 -4
  74. package/esm2022/lib/form-validators/directives/template-validations/image-file-control.directive.mjs +4 -4
  75. package/esm2022/lib/form-validators/directives/template-validations/rxformcontrol.directive.mjs +4 -4
  76. package/esm2022/lib/form-validators/domain/disable-provider.mjs +1 -1
  77. package/esm2022/lib/form-validators/domain/element-processor/decimal.provider.mjs +4 -4
  78. package/esm2022/lib/form-validators/domain/element-processor/mask.provider.mjs +1 -1
  79. package/esm2022/lib/form-validators/domain/form-data.mjs +1 -1
  80. package/esm2022/lib/form-validators/models/form-builder-configuration.mjs +1 -1
  81. package/esm2022/lib/form-validators/reactive-form-validators/allOf.validator.mjs +1 -1
  82. package/esm2022/lib/form-validators/reactive-form-validators/and.validator.mjs +1 -1
  83. package/esm2022/lib/form-validators/reactive-form-validators/async/base.async.validator.mjs +1 -1
  84. package/esm2022/lib/form-validators/reactive-form-validators/choice.validator.mjs +1 -1
  85. package/esm2022/lib/form-validators/reactive-form-validators/compare.validator.mjs +1 -1
  86. package/esm2022/lib/form-validators/reactive-form-validators/compose.validator.mjs +1 -1
  87. package/esm2022/lib/form-validators/reactive-form-validators/conditional-change.validator.mjs +1 -1
  88. package/esm2022/lib/form-validators/reactive-form-validators/contains.validator.mjs +1 -1
  89. package/esm2022/lib/form-validators/reactive-form-validators/credit-card.validator.mjs +1 -1
  90. package/esm2022/lib/form-validators/reactive-form-validators/cusip.validator.mjs +1 -1
  91. package/esm2022/lib/form-validators/reactive-form-validators/custom.validator.mjs +1 -1
  92. package/esm2022/lib/form-validators/reactive-form-validators/different.validator.mjs +1 -1
  93. package/esm2022/lib/form-validators/reactive-form-validators/endsWith.validator.mjs +1 -1
  94. package/esm2022/lib/form-validators/reactive-form-validators/even.validator.mjs +1 -1
  95. package/esm2022/lib/form-validators/reactive-form-validators/extension.validator.mjs +1 -1
  96. package/esm2022/lib/form-validators/reactive-form-validators/factor.validator.mjs +1 -1
  97. package/esm2022/lib/form-validators/reactive-form-validators/file.validator.mjs +1 -1
  98. package/esm2022/lib/form-validators/reactive-form-validators/fileSize.validator.mjs +1 -1
  99. package/esm2022/lib/form-validators/reactive-form-validators/grid.validator.mjs +1 -1
  100. package/esm2022/lib/form-validators/reactive-form-validators/iban.validator.mjs +1 -1
  101. package/esm2022/lib/form-validators/reactive-form-validators/image.validator.mjs +1 -1
  102. package/esm2022/lib/form-validators/reactive-form-validators/ip.validator.mjs +1 -1
  103. package/esm2022/lib/form-validators/reactive-form-validators/json.validator.mjs +1 -1
  104. package/esm2022/lib/form-validators/reactive-form-validators/latLong.validator.mjs +1 -1
  105. package/esm2022/lib/form-validators/reactive-form-validators/leapYear.validator.mjs +1 -1
  106. package/esm2022/lib/form-validators/reactive-form-validators/lowercase.validator.mjs +1 -1
  107. package/esm2022/lib/form-validators/reactive-form-validators/mask.validator.mjs +1 -1
  108. package/esm2022/lib/form-validators/reactive-form-validators/maxLength.validator.mjs +1 -1
  109. package/esm2022/lib/form-validators/reactive-form-validators/maxNumber.validator.mjs +1 -1
  110. package/esm2022/lib/form-validators/reactive-form-validators/minLength.validator.mjs +1 -1
  111. package/esm2022/lib/form-validators/reactive-form-validators/minNumber.validator.mjs +1 -1
  112. package/esm2022/lib/form-validators/reactive-form-validators/noneOf.validator.mjs +1 -1
  113. package/esm2022/lib/form-validators/reactive-form-validators/not.validator.mjs +1 -1
  114. package/esm2022/lib/form-validators/reactive-form-validators/notEmpty.validator.mjs +1 -1
  115. package/esm2022/lib/form-validators/reactive-form-validators/numeric.validator.mjs +1 -1
  116. package/esm2022/lib/form-validators/reactive-form-validators/odd.validator.mjs +1 -1
  117. package/esm2022/lib/form-validators/reactive-form-validators/oneOf.validator.mjs +1 -1
  118. package/esm2022/lib/form-validators/reactive-form-validators/or.validator.mjs +1 -1
  119. package/esm2022/lib/form-validators/reactive-form-validators/password.validator.mjs +1 -1
  120. package/esm2022/lib/form-validators/reactive-form-validators/pattern.validator.mjs +1 -1
  121. package/esm2022/lib/form-validators/reactive-form-validators/port.validator.mjs +1 -1
  122. package/esm2022/lib/form-validators/reactive-form-validators/primeNumber.validator.mjs +1 -1
  123. package/esm2022/lib/form-validators/reactive-form-validators/range.validator.mjs +1 -1
  124. package/esm2022/lib/form-validators/reactive-form-validators/required.validator.mjs +1 -1
  125. package/esm2022/lib/form-validators/reactive-form-validators/requiredTrue.validator.mjs +1 -1
  126. package/esm2022/lib/form-validators/reactive-form-validators/rule.validator.mjs +1 -1
  127. package/esm2022/lib/form-validators/reactive-form-validators/startsWith.validator.mjs +1 -1
  128. package/esm2022/lib/form-validators/reactive-form-validators/time.validator.mjs +1 -1
  129. package/esm2022/lib/form-validators/reactive-form-validators/unique.validator.mjs +1 -1
  130. package/esm2022/lib/form-validators/reactive-form-validators/uppercase.validator.mjs +1 -1
  131. package/esm2022/lib/form-validators/reactive-form-validators/url.validator.mjs +1 -1
  132. package/esm2022/lib/form-validators/services/base-form-builder.mjs +1 -1
  133. package/esm2022/lib/form-validators/services/entity.service.mjs +1 -1
  134. package/esm2022/lib/form-validators/services/form-control.mjs +1 -1
  135. package/esm2022/lib/form-validators/services/reactive-form.module.mjs +8 -8
  136. package/esm2022/lib/form-validators/services/rx-form-array.mjs +1 -1
  137. package/esm2022/lib/form-validators/services/rx-form-builder.mjs +4 -4
  138. package/esm2022/lib/form-validators/services/rx-form-group.mjs +1 -1
  139. package/esm2022/lib/form-validators/services/typed-form-builder.mjs +3 -3
  140. package/esm2022/lib/form-validators/util/app-util.mjs +1 -1
  141. package/esm2022/lib/form-validators/util/check-length.mjs +1 -1
  142. package/esm2022/lib/form-validators/util/config-provider.mjs +1 -1
  143. package/esm2022/lib/form-validators/util/date-checker.function.mjs +1 -1
  144. package/esm2022/lib/form-validators/util/date-provider.mjs +1 -1
  145. package/esm2022/lib/form-validators/util/form-provider.mjs +1 -1
  146. package/esm2022/lib/form-validators/util/instance-provider.function.mjs +1 -1
  147. package/esm2022/lib/form-validators/util/ip-checker.mjs +1 -1
  148. package/esm2022/lib/form-validators/util/linq.mjs +1 -1
  149. package/esm2022/lib/form-validators/util/object-maker.mjs +1 -1
  150. package/esm2022/lib/form-validators/util/reactive-form-config.mjs +1 -1
  151. package/esm2022/lib/form-validators/util/regex-validator.mjs +1 -1
  152. package/esm2022/lib/form-validators/util/relational-checker.function.mjs +1 -1
  153. package/esm2022/lib/form-validators/util/reset-form.mjs +1 -1
  154. package/esm2022/lib/form-validators/util/sanitizers.mjs +1 -1
  155. package/esm2022/lib/form-validators/util/time-checker.function.mjs +1 -1
  156. package/esm2022/lib/form-validators/util/validator-value-checker.mjs +1 -1
  157. package/esm2022/lib/form-validators/validators-extension/base-validator.function.mjs +1 -1
  158. package/esm2022/lib/form-validators/validators-function/alpha-validation.function.mjs +1 -1
  159. package/esm2022/lib/form-validators/validators-function/regex-validation.function.mjs +1 -1
  160. package/esm2022/lib/forms/components/datepicker/datepicker-header.component.mjs +3 -3
  161. package/esm2022/lib/forms/components/generic-form/generic-form.component.mjs +16 -16
  162. package/esm2022/lib/forms/directives/mat-form-field-editor.directive.mjs +4 -4
  163. package/esm2022/lib/forms/directives/mat-form-field-readonly.directive.mjs +4 -4
  164. package/esm2022/lib/forms/directives/nested-property-ng-model.directive.mjs +4 -4
  165. package/esm2022/lib/forms/directives/vd-generic-form-custom-field.directive.mjs +3 -3
  166. package/esm2022/lib/forms/forms.module.mjs +4 -4
  167. package/esm2022/lib/forms/functions/decorators.mjs +1 -1
  168. package/esm2022/lib/forms/functions/functions.mjs +1 -1
  169. package/esm2022/lib/forms/helpers/abstract-mat-form-field.mjs +4 -4
  170. package/esm2022/lib/forms/helpers/abstract-select-form-field.component.mjs +4 -4
  171. package/esm2022/lib/forms/helpers/value-accessor-base.mjs +3 -3
  172. package/esm2022/lib/forms/pipes/group-filter.pipe.mjs +4 -4
  173. package/esm2022/lib/forms/validators/empty-string-reset.directive.mjs +4 -4
  174. package/esm2022/lib/forms/validators/equal-validator.directive.mjs +4 -4
  175. package/esm2022/lib/forms/validators/native-element-injector.directive.mjs +4 -4
  176. package/esm2022/lib/forms/validators/unique-validator-directive.mjs +4 -4
  177. package/esm2022/lib/http/http.module.mjs +7 -11
  178. package/esm2022/lib/http/services/generic.service.mjs +1 -1
  179. package/esm2022/lib/layout/dynamic-menu/dynamic-menu.component.mjs +3 -3
  180. package/esm2022/lib/layout/layout-card-over/layout-card-over.component.mjs +3 -3
  181. package/esm2022/lib/layout/layout-compact/layout-compact.component.mjs +4 -4
  182. package/esm2022/lib/layout/layout-footer/layout-footer.component.mjs +4 -4
  183. package/esm2022/lib/layout/layout-manage-list/layout-manage-list.component.mjs +4 -4
  184. package/esm2022/lib/layout/layout-manage-list/layout-manage-list.directives.mjs +9 -9
  185. package/esm2022/lib/layout/layout-nav/layout-nav.component.mjs +5 -5
  186. package/esm2022/lib/layout/layout-nav-list/layout-nav-list.component.mjs +4 -4
  187. package/esm2022/lib/layout/layout-nav-list/layout-nav-list.directives.mjs +9 -9
  188. package/esm2022/lib/layout/layout-toggle.class.mjs +4 -4
  189. package/esm2022/lib/layout/layout.component.mjs +4 -4
  190. package/esm2022/lib/layout/layout.directives.mjs +9 -9
  191. package/esm2022/lib/layout/layout.module.mjs +4 -4
  192. package/esm2022/lib/layout/list-toolbar/list-toolbar.component.mjs +3 -3
  193. package/esm2022/lib/layout/navigation-drawer/navigation-drawer.component.mjs +10 -10
  194. package/esm2022/lib/list/components/list.component.mjs +3 -3
  195. package/esm2022/lib/list/directives/vd-list-option.directive.mjs +3 -3
  196. package/esm2022/lib/list/list.module.mjs +4 -4
  197. package/esm2022/lib/media/directives/media-toggle.directive.mjs +4 -4
  198. package/esm2022/lib/media/media.module.mjs +4 -4
  199. package/esm2022/lib/media/services/media.service.mjs +4 -4
  200. package/esm2022/lib/menu/components/menu.component.mjs +4 -4
  201. package/esm2022/lib/menu/menu.module.mjs +4 -4
  202. package/esm2022/lib/menu/resolvers/menu-form-includes.resolve.mjs +4 -4
  203. package/esm2022/lib/menu/resolvers/menu-item-form-includes.resolve.mjs +4 -4
  204. package/esm2022/lib/menu/resolvers/menu-list-projection.resolve.mjs +4 -4
  205. package/esm2022/lib/menu/resolvers/menu-settings.resolve.mjs +3 -3
  206. package/esm2022/lib/menu/services/menu-items.service.mjs +3 -3
  207. package/esm2022/lib/menu/services/menu.resolve.mjs +7 -7
  208. package/esm2022/lib/menu/services/menu.service.mjs +3 -3
  209. package/esm2022/lib/search/search.module.mjs +4 -4
  210. package/esm2022/lib/select/components/select.component.mjs +4 -4
  211. package/esm2022/lib/select/directives/vd-select-option.directive.mjs +3 -3
  212. package/esm2022/lib/select/directives/vd-select-trigger.directive.mjs +3 -3
  213. package/esm2022/lib/select/select.module.mjs +4 -4
  214. package/esm2022/lib/table/components/dynamic-table/dynamic-table.component.mjs +4 -4
  215. package/esm2022/lib/table/components/filter-clear.component.mjs +4 -4
  216. package/esm2022/lib/table/components/filter-date.component.mjs +4 -4
  217. package/esm2022/lib/table/components/filter-input.component.mjs +4 -4
  218. package/esm2022/lib/table/components/filter-select.component.mjs +7 -7
  219. package/esm2022/lib/table/directives/data-source-filter.directive.mjs +4 -4
  220. package/esm2022/lib/table/directives/vd-table-field.directive.mjs +3 -3
  221. package/esm2022/lib/table/functions/decorators.mjs +1 -1
  222. package/esm2022/lib/table/functions/functions.mjs +1 -1
  223. package/esm2022/lib/table/paginator-intl.mjs +4 -4
  224. package/esm2022/lib/table/table.data-source.mjs +1 -1
  225. package/esm2022/lib/table/table.module.mjs +4 -4
  226. package/esm2022/lib/table/table.static-data-source.mjs +1 -1
  227. package/fesm2022/messaia-cdk.mjs +486 -490
  228. package/fesm2022/messaia-cdk.mjs.map +1 -1
  229. package/lib/common/styles/_theme-functions.scss +0 -23
  230. package/lib/common/styles/colors/_colors-dark.scss +1350 -345
  231. package/lib/common/styles/colors/_colors-light.scss +3157 -829
  232. package/lib/common/styles/core/_button.scss +35 -29
  233. package/lib/common/styles/{_common-theme.scss → m2/_common-theme.scss} +6 -6
  234. package/lib/common/styles/m2/_theme-functions.scss +21 -0
  235. package/lib/common/styles/m3/_common-theme.scss +47 -0
  236. package/lib/common/styles/m3/_theme-functions.scss +21 -0
  237. package/lib/common/styles/platform.scss +1 -1
  238. package/lib/common/theming/_all-theme.scss +1 -1
  239. package/lib/common/theming/_m2-all-theme.scss +27 -0
  240. package/lib/http/http.module.d.ts +1 -2
  241. package/lib/layout/{_layout-theme.scss → _m2-layout-theme.scss} +11 -10
  242. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- // @use "sass:math";
2
1
  @import '../theme-functions';
3
2
  @import '../rtl';
4
3
 
@@ -23,37 +22,44 @@ $mat-icon-button-width: rem(4.000) !default;
23
22
  $mat-icon-button-margin: rem(0.600) !default;
24
23
  $mat-icon-border-radius: $mat-fab-border-radius;
25
24
 
25
+ @function rem($multiplier) {
26
+ $font-size: 10px;
27
+ @return $multiplier * $font-size;
28
+ }
29
+
26
30
  /** Mixin to create distinct classes for fab positions, e.g. ".mat-fab-position-bottom-right". */
27
31
  @mixin mat-fab-position($spot, $top: auto, $right: auto, $bottom: auto, $left: auto) {
28
- [mat-fab].mat-mdc-fab-position-#{$spot},
29
- .mat-fab.mat-fab-position-#{$spot},
30
- [mat-fab].mat-fab-#{$spot},
31
- .mat-fab.mat-fab-#{$spot} {
32
- top: $top;
33
- @include rtl(right, $right,$left);
34
- @include rtl(left, $left,$right);
35
- bottom: $bottom;
36
- position: absolute;
37
- &.fixed {
38
- position: fixed;
39
- }
40
- }
32
+
33
+ [mat-fab].mat-mdc-fab-position-#{$spot},
34
+ .mat-fab.mat-fab-position-#{$spot},
35
+ [mat-fab].mat-fab-#{$spot},
36
+ .mat-fab.mat-fab-#{$spot} {
37
+ top: $top;
38
+ @include rtl(right, $right, $left);
39
+ @include rtl(left, $left, $right);
40
+ bottom: $bottom;
41
+ position: absolute;
42
+
43
+ &.fixed {
44
+ position: fixed;
45
+ }
46
+ }
41
47
  }
42
48
 
43
49
  @mixin vd-button-utilities() {
44
- $mat-fab-pos-offset: math.div(($mat-fab-size - $mat-fab-padding), 2);
45
- @include mat-fab-position(bottom-right, auto, $mat-fab-pos-offset, $mat-fab-pos-offset, auto);
46
- @include mat-fab-position(bottom-left, auto, auto, $mat-fab-pos-offset, $mat-fab-pos-offset);
47
- @include mat-fab-position(top-right, $mat-fab-pos-offset, $mat-fab-pos-offset, auto, auto);
48
- @include mat-fab-position(top-left, $mat-fab-pos-offset, auto, auto, $mat-fab-pos-offset);
49
-
50
- button {
51
- &[mat-icon-button] {
52
- &.mat-icon-button-mini {
53
- height: 24px;
54
- line-height: 24px;
55
- width: 24px;
56
- }
57
- }
58
- }
50
+ $mat-fab-pos-offset: math.div(($mat-fab-size - $mat-fab-padding), 2);
51
+ @include mat-fab-position(bottom-right, auto, $mat-fab-pos-offset, $mat-fab-pos-offset, auto);
52
+ @include mat-fab-position(bottom-left, auto, auto, $mat-fab-pos-offset, $mat-fab-pos-offset);
53
+ @include mat-fab-position(top-right, $mat-fab-pos-offset, $mat-fab-pos-offset, auto, auto);
54
+ @include mat-fab-position(top-left, $mat-fab-pos-offset, auto, auto, $mat-fab-pos-offset);
55
+
56
+ button {
57
+ &[mat-icon-button] {
58
+ &.mat-icon-button-mini {
59
+ height: 24px;
60
+ line-height: 24px;
61
+ width: 24px;
62
+ }
63
+ }
64
+ }
59
65
  }
@@ -1,5 +1,5 @@
1
1
  // @use '~@angular/material' as mat;
2
- @import 'theme-functions';
2
+ @import '../theme-functions';
3
3
 
4
4
  @mixin vd-common-theme($theme) {
5
5
  $warn: map-get($theme, warn);
@@ -10,17 +10,17 @@
10
10
  .mdc-list-item,
11
11
  .mat-list-item-content {
12
12
  mat-icon {
13
- color: mat.get-color-from-palette($foreground, icon);
13
+ color: mat.m2-get-color-from-palette($foreground, icon);
14
14
 
15
15
  &[matListAvatar] {
16
- background-color: mat.get-color-from-palette($background, hover);
16
+ background-color: mat.m2-get-color-from-palette($background, hover);
17
17
  }
18
18
  }
19
19
  }
20
20
 
21
21
  .mat-list-text {
22
22
  p {
23
- color: mat.get-color-from-palette($foreground, disabled);
23
+ color: mat.m2-get-color-from-palette($foreground, disabled);
24
24
  }
25
25
  }
26
26
 
@@ -28,7 +28,7 @@
28
28
  opacity: if($is-dark, 0.8, 1);
29
29
 
30
30
  .mat-mdc-list-item-icon {
31
- color: mat.get-color-from-palette($foreground, icon);
31
+ color: mat.m2-get-color-from-palette($foreground, icon);
32
32
  }
33
33
 
34
34
  .mdc-list-item__content {
@@ -41,7 +41,7 @@
41
41
 
42
42
  .mat-autocomplete-panel {
43
43
  .mat-mdc-paginator {
44
- background-color: mat.get-color-from-palette($background, app-bar);
44
+ background-color: mat.m2-get-color-from-palette($background, app-bar);
45
45
  }
46
46
  }
47
47
  }
@@ -0,0 +1,21 @@
1
+ // Gets a color from a theme palette (the output of mat-palette).
2
+ // The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
3
+ // hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
4
+ //
5
+ // @param $color-map The theme palette (output of mat-palette).
6
+ // @param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
7
+ // be treated as opacity.
8
+ // @param $opacity The alpha channel value for the color.
9
+ @function mat-color($palette, $hue: default, $opacity: null) {
10
+
11
+ // If hueKey is a number between zero and one, then it actually contains an
12
+ // opacity value, so recall this function with the default hue and that given opacity.
13
+ @if type-of($hue)==number and $hue >=0 and $hue <=1 {
14
+ @return mat.m2-get-color-from-palette($palette, default, $hue);
15
+ }
16
+
17
+ $color: map-get($palette, $hue);
18
+ $opacity: if($opacity ==null, opacity($color), $opacity);
19
+
20
+ @return rgba($color, $opacity);
21
+ }
@@ -0,0 +1,47 @@
1
+ // @use '~@angular/material' as mat;
2
+ @import '../theme-functions';
3
+
4
+ @mixin vd-common-theme($theme) {
5
+ $warn: map-get($theme, warn);
6
+ $foreground: map-get($theme, foreground);
7
+ $background: map-get($theme, background);
8
+ $is-dark: map.get($theme, is-dark);
9
+
10
+ .mdc-list-item,
11
+ .mat-list-item-content {
12
+ mat-icon {
13
+ // color: mat.get-color-from-palette($foreground, icon);
14
+
15
+ &[matListAvatar] {
16
+ // background-color: mat.m2-get-color-from-palette($background, hover);
17
+ }
18
+ }
19
+ }
20
+
21
+ .mat-list-text {
22
+ p {
23
+ // color: mat.m2-get-color-from-palette($foreground, disabled);
24
+ }
25
+ }
26
+
27
+ .mdc-list-item {
28
+ opacity: if($is-dark, 0.8, 1);
29
+
30
+ .mat-mdc-list-item-icon {
31
+ // color: mat.m2-get-color-from-palette($foreground, icon);
32
+ }
33
+
34
+ .mdc-list-item__content {
35
+ .mdc-list-item__primary-text {
36
+ display: flex;
37
+ align-items: center;
38
+ }
39
+ }
40
+ }
41
+
42
+ .mat-autocomplete-panel {
43
+ .mat-mdc-paginator {
44
+ // background-color: mat.m2-get-color-from-palette($background, app-bar);
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,21 @@
1
+ // Gets a color from a theme palette (the output of mat-palette).
2
+ // The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
3
+ // hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
4
+ //
5
+ // @param $color-map The theme palette (output of mat-palette).
6
+ // @param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
7
+ // be treated as opacity.
8
+ // @param $opacity The alpha channel value for the color.
9
+ @function mat-color($palette, $hue: default, $opacity: null) {
10
+
11
+ // If hueKey is a number between zero and one, then it actually contains an
12
+ // opacity value, so recall this function with the default hue and that given opacity.
13
+ @if type-of($hue)==number and $hue >=0 and $hue <=1 {
14
+ @return mat.m2-get-color-from-palette($palette, default, $hue);
15
+ }
16
+
17
+ $color: map-get($palette, $hue);
18
+ $opacity: if($opacity ==null, opacity($color), $opacity);
19
+
20
+ @return rgba($color, $opacity);
21
+ }
@@ -8,4 +8,4 @@
8
8
  @include vd-utilities();
9
9
  @include vd-layout();
10
10
  @include vd-typography();
11
- @include vd-colors();
11
+ // @include vd-colors();
@@ -5,7 +5,7 @@
5
5
  @use 'sass:color';
6
6
  @use 'sass:map';
7
7
 
8
- @import '../styles/common-theme';
8
+ @import '../styles/m3/common-theme';
9
9
  @import '../../layout/layout-theme';
10
10
  @import '../styles/styles';
11
11
  @import '../typography/all-typography';
@@ -0,0 +1,27 @@
1
+ @use '@angular/material' as mat;
2
+ @use '@material/theme/theme-color' as mdc-theme-color;
3
+ @use '@material/theme/color-palette' as mdc-color-palette;
4
+ @use "sass:math";
5
+ @use 'sass:color';
6
+ @use 'sass:map';
7
+
8
+ @import '../styles/m2/common-theme';
9
+ @import '../../layout/m2-layout-theme';
10
+ @import '../styles/styles';
11
+ @import '../typography/all-typography';
12
+
13
+ /* Overrides the background colors */
14
+ @function vd-custom-background($theme, $config) {
15
+ $palette-color : map.get($theme, color);
16
+ $background: map.get($palette-color, background);
17
+ $background: map.merge($background, $config);
18
+ $palette-color: map.merge($palette-color, (background: $background));
19
+ @return map.merge($theme, (color: $palette-color));
20
+ }
21
+
22
+ /* Creates a theme */
23
+ @mixin vd-theme($theme, $config: null) {
24
+ @include vd-typography($config);
25
+ @include vd-common-theme($theme);
26
+ @include vd-layout-theme($theme);
27
+ }
@@ -1,8 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common/http";
3
2
  export { GenericService } from './services/generic.service';
4
3
  export declare class VdHttpModule {
5
4
  static ɵfac: i0.ɵɵFactoryDeclaration<VdHttpModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<VdHttpModule, never, [typeof i1.HttpClientModule], never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VdHttpModule, never, never, never>;
7
6
  static ɵinj: i0.ɵɵInjectorDeclaration<VdHttpModule>;
8
7
  }
@@ -1,6 +1,7 @@
1
1
  //@use '~@angular/material' as mat;
2
2
  @import '../common/styles/elevation';
3
3
  @import '../common/styles/theme-functions';
4
+ @import '../common/styles/m2/theme-functions';
4
5
  @import '../common/styles/typography-functions';
5
6
 
6
7
  @mixin vd-layout-typography($config) {
@@ -45,13 +46,13 @@
45
46
  $foreground: map-get($theme, foreground);
46
47
  $is-dark: map.get($theme, is-dark);
47
48
 
48
- $background-color: mat.get-color-from-palette($background, app-bar);
49
+ $background-color: mat.m2-get-color-from-palette($background, app-bar);
49
50
 
50
51
  $primary-color: mat-color($primary);
51
52
  $accent-color: mat-color($accent);
52
53
 
53
54
  .mat-drawer-container {
54
- background-color: mat.get-color-from-palette($background, if($is-dark, app-bar, status-bar)) !important;
55
+ background-color: mat.m2-get-color-from-palette($background, if($is-dark, app-bar, status-bar)) !important;
55
56
  }
56
57
 
57
58
  [mat-icon-button].vd-layout-menu-button {
@@ -104,34 +105,34 @@
104
105
  }
105
106
 
106
107
  .vd-layout-footer {
107
- background: mat.get-color-from-palette($background, app-bar);
108
- color: mat.get-color-from-palette($foreground, text);
108
+ background: mat.m2-get-color-from-palette($background, app-bar);
109
+ color: mat.m2-get-color-from-palette($foreground, text);
109
110
  @include mat.elevation(2);
110
111
 
111
112
  &.mat-primary {
112
- background: mat.get-color-from-palette($primary);
113
+ background: mat.m2-get-color-from-palette($primary);
113
114
 
114
115
  &,
115
116
  mat-icon {
116
- color: mat.get-color-from-palette($primary, default-contrast);
117
+ color: mat.m2-get-color-from-palette($primary, default-contrast);
117
118
  }
118
119
  }
119
120
 
120
121
  &.mat-accent {
121
- background: mat.get-color-from-palette($accent);
122
+ background: mat.m2-get-color-from-palette($accent);
122
123
 
123
124
  &,
124
125
  mat-icon {
125
- color: mat.get-color-from-palette($accent, default-contrast);
126
+ color: mat.m2-get-color-from-palette($accent, default-contrast);
126
127
  }
127
128
  }
128
129
 
129
130
  &.mat-warn {
130
- background: mat.get-color-from-palette($warn);
131
+ background: mat.m2-get-color-from-palette($warn);
131
132
 
132
133
  &,
133
134
  mat-icon {
134
- color: mat.get-color-from-palette($warn, default-contrast);
135
+ color: mat.m2-get-color-from-palette($warn, default-contrast);
135
136
  }
136
137
  }
137
138
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@messaia/cdk",
3
- "version": "17.1.5",
3
+ "version": "18.0.0-rc02",
4
4
  "peerDependencies": {
5
- "@angular/common": "^17.3.5",
6
- "@angular/core": "^17.3.5"
5
+ "@angular/common": "^18.0.6",
6
+ "@angular/core": "^18.0.6"
7
7
  },
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org"