@igo2/common 17.0.0-next.4 → 17.0.0-next.6

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 (224) hide show
  1. package/esm2022/lib/action/action.module.mjs +1 -1
  2. package/esm2022/lib/action/actionbar/actionbar-item.component.mjs +10 -24
  3. package/esm2022/lib/action/actionbar/actionbar.component.mjs +5 -5
  4. package/esm2022/lib/action/actionbar/actionbar.module.mjs +1 -1
  5. package/esm2022/lib/action/index.mjs +1 -1
  6. package/esm2022/lib/action/shared/action.enums.mjs +1 -1
  7. package/esm2022/lib/action/shared/action.interfaces.mjs +1 -1
  8. package/esm2022/lib/action/shared/index.mjs +1 -1
  9. package/esm2022/lib/action/shared/store.mjs +1 -1
  10. package/esm2022/lib/backdrop/backdrop.component.mjs +3 -3
  11. package/esm2022/lib/backdrop/backdrop.module.mjs +1 -1
  12. package/esm2022/lib/backdrop/index.mjs +1 -1
  13. package/esm2022/lib/badge-icon/badge-icon.directive.mjs +14 -17
  14. package/esm2022/lib/badge-icon/badge-icon.module.mjs +1 -1
  15. package/esm2022/lib/badge-icon/index.mjs +1 -1
  16. package/esm2022/lib/clickout/clickout.directive.mjs +1 -1
  17. package/esm2022/lib/clickout/clickout.module.mjs +1 -1
  18. package/esm2022/lib/clickout/index.mjs +1 -1
  19. package/esm2022/lib/clone/clone.module.mjs +1 -1
  20. package/esm2022/lib/clone/clone.pipe.mjs +1 -1
  21. package/esm2022/lib/clone/index.mjs +1 -1
  22. package/esm2022/lib/collapsible/collapse.directive.mjs +1 -1
  23. package/esm2022/lib/collapsible/collapsible.component.mjs +3 -3
  24. package/esm2022/lib/collapsible/collapsible.module.mjs +1 -1
  25. package/esm2022/lib/collapsible/index.mjs +1 -1
  26. package/esm2022/lib/color-picker-form-field/color-picker-form-field.component.mjs +3 -3
  27. package/esm2022/lib/color-picker-form-field/color-picker-form-field.module.mjs +1 -1
  28. package/esm2022/lib/color-picker-form-field/index.mjs +1 -1
  29. package/esm2022/lib/confirm-dialog/confirm-dialog.component.mjs +3 -3
  30. package/esm2022/lib/confirm-dialog/confirm-dialog.interface.mjs +1 -1
  31. package/esm2022/lib/confirm-dialog/confirm-dialog.module.mjs +1 -1
  32. package/esm2022/lib/confirm-dialog/confirm-dialog.service.mjs +1 -1
  33. package/esm2022/lib/confirm-dialog/index.mjs +1 -1
  34. package/esm2022/lib/context-menu/context-menu.directive.mjs +1 -1
  35. package/esm2022/lib/context-menu/context-menu.module.mjs +1 -1
  36. package/esm2022/lib/context-menu/index.mjs +1 -1
  37. package/esm2022/lib/context-menu/long-press.directive.mjs +1 -1
  38. package/esm2022/lib/custom-html/custom-html.component.mjs +3 -3
  39. package/esm2022/lib/custom-html/custom-html.module.mjs +1 -1
  40. package/esm2022/lib/custom-html/custom-html.pipe.mjs +1 -1
  41. package/esm2022/lib/custom-html/index.mjs +1 -1
  42. package/esm2022/lib/dom/dom.interfaces.mjs +1 -1
  43. package/esm2022/lib/dom/dom.module.mjs +1 -1
  44. package/esm2022/lib/dom/dom.service.mjs +1 -1
  45. package/esm2022/lib/dom/index.mjs +1 -1
  46. package/esm2022/lib/drag-drop/drag-drop.directive.mjs +1 -1
  47. package/esm2022/lib/drag-drop/drag-drop.module.mjs +1 -1
  48. package/esm2022/lib/drag-drop/index.mjs +1 -1
  49. package/esm2022/lib/dynamic-component/dynamic-component.module.mjs +1 -1
  50. package/esm2022/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +3 -3
  51. package/esm2022/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +1 -1
  52. package/esm2022/lib/dynamic-component/index.mjs +1 -1
  53. package/esm2022/lib/dynamic-component/shared/dynamic-component.interfaces.mjs +1 -1
  54. package/esm2022/lib/dynamic-component/shared/dynamic-component.mjs +1 -1
  55. package/esm2022/lib/dynamic-component/shared/dynamic-component.service.mjs +1 -1
  56. package/esm2022/lib/dynamic-component/shared/index.mjs +1 -1
  57. package/esm2022/lib/entity/entity-selector/entity-selector.component.mjs +3 -3
  58. package/esm2022/lib/entity/entity-selector/entity-selector.module.mjs +1 -1
  59. package/esm2022/lib/entity/entity-table/entity-table-row.directive.mjs +1 -1
  60. package/esm2022/lib/entity/entity-table/entity-table.component.mjs +3 -3
  61. package/esm2022/lib/entity/entity-table/entity-table.module.mjs +1 -1
  62. package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +3 -3
  63. package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.interface.mjs +1 -1
  64. package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +1 -1
  65. package/esm2022/lib/entity/entity-table-paginator/index.mjs +1 -1
  66. package/esm2022/lib/entity/entity.module.mjs +1 -1
  67. package/esm2022/lib/entity/index.mjs +1 -1
  68. package/esm2022/lib/entity/shared/entity.enums.mjs +1 -1
  69. package/esm2022/lib/entity/shared/entity.interfaces.mjs +1 -1
  70. package/esm2022/lib/entity/shared/entity.utils.mjs +1 -1
  71. package/esm2022/lib/entity/shared/index.mjs +1 -1
  72. package/esm2022/lib/entity/shared/state.mjs +1 -1
  73. package/esm2022/lib/entity/shared/store.mjs +1 -1
  74. package/esm2022/lib/entity/shared/strategies/filter-custom-function.mjs +1 -1
  75. package/esm2022/lib/entity/shared/strategies/filter-selection.mjs +1 -1
  76. package/esm2022/lib/entity/shared/strategies/index.mjs +1 -1
  77. package/esm2022/lib/entity/shared/strategies/strategy.mjs +1 -1
  78. package/esm2022/lib/entity/shared/transaction.mjs +1 -1
  79. package/esm2022/lib/entity/shared/view.mjs +1 -1
  80. package/esm2022/lib/entity/shared/watcher.mjs +1 -1
  81. package/esm2022/lib/environment/environment.interface.mjs +1 -1
  82. package/esm2022/lib/environment/index.mjs +1 -1
  83. package/esm2022/lib/flexible/flexible.component.mjs +3 -3
  84. package/esm2022/lib/flexible/flexible.module.mjs +1 -1
  85. package/esm2022/lib/flexible/flexible.type.mjs +1 -1
  86. package/esm2022/lib/flexible/index.mjs +1 -1
  87. package/esm2022/lib/form/form/form.component.mjs +3 -3
  88. package/esm2022/lib/form/form/form.module.mjs +1 -1
  89. package/esm2022/lib/form/form-field/form-field-select.component.mjs +3 -3
  90. package/esm2022/lib/form/form-field/form-field-text.component.mjs +3 -3
  91. package/esm2022/lib/form/form-field/form-field-textarea.component.mjs +3 -3
  92. package/esm2022/lib/form/form-field/form-field.component.mjs +3 -3
  93. package/esm2022/lib/form/form-field/form-field.module.mjs +1 -1
  94. package/esm2022/lib/form/form-field/index.mjs +1 -1
  95. package/esm2022/lib/form/form-group/form-group.component.mjs +3 -3
  96. package/esm2022/lib/form/form-group/form-group.module.mjs +1 -1
  97. package/esm2022/lib/form/form.module.mjs +1 -1
  98. package/esm2022/lib/form/index.mjs +1 -1
  99. package/esm2022/lib/form/shared/form-field-component.mjs +1 -1
  100. package/esm2022/lib/form/shared/form-field.service.mjs +1 -1
  101. package/esm2022/lib/form/shared/form.interfaces.mjs +1 -1
  102. package/esm2022/lib/form/shared/form.service.mjs +1 -1
  103. package/esm2022/lib/form/shared/form.utils.mjs +1 -1
  104. package/esm2022/lib/form/shared/index.mjs +1 -1
  105. package/esm2022/lib/form-dialog/form-dialog.component.mjs +3 -3
  106. package/esm2022/lib/form-dialog/form-dialog.interface.mjs +1 -1
  107. package/esm2022/lib/form-dialog/form-dialog.module.mjs +1 -1
  108. package/esm2022/lib/form-dialog/form-dialog.service.mjs +1 -1
  109. package/esm2022/lib/form-dialog/index.mjs +1 -1
  110. package/esm2022/lib/home-button/home-button.component.mjs +3 -3
  111. package/esm2022/lib/home-button/home-button.module.mjs +1 -1
  112. package/esm2022/lib/home-button/index.mjs +1 -1
  113. package/esm2022/lib/icons/icon/icon.component.mjs +40 -0
  114. package/esm2022/lib/icons/icon.provider.mjs +14 -0
  115. package/esm2022/lib/icons/index.mjs +4 -0
  116. package/esm2022/lib/icons/shared/icon.interface.mjs +2 -0
  117. package/esm2022/lib/icons/shared/icons.mjs +34 -0
  118. package/esm2022/lib/icons/shared/index.mjs +3 -0
  119. package/esm2022/lib/image/image-error.directive.mjs +1 -1
  120. package/esm2022/lib/image/image.module.mjs +1 -1
  121. package/esm2022/lib/image/index.mjs +1 -1
  122. package/esm2022/lib/image/secure-image.pipe.mjs +1 -1
  123. package/esm2022/lib/interactive-tour/index.mjs +1 -1
  124. package/esm2022/lib/interactive-tour/interactive-tour.component.mjs +3 -3
  125. package/esm2022/lib/interactive-tour/interactive-tour.interface.mjs +1 -1
  126. package/esm2022/lib/interactive-tour/interactive-tour.loader.mjs +1 -1
  127. package/esm2022/lib/interactive-tour/interactive-tour.module.mjs +1 -1
  128. package/esm2022/lib/interactive-tour/interactive-tour.service.mjs +1 -1
  129. package/esm2022/lib/json-dialog/index.mjs +1 -1
  130. package/esm2022/lib/json-dialog/json-dialog.component.mjs +3 -3
  131. package/esm2022/lib/json-dialog/json-dialog.module.mjs +1 -1
  132. package/esm2022/lib/json-dialog/json-dialog.service.mjs +1 -1
  133. package/esm2022/lib/keyvalue/index.mjs +1 -1
  134. package/esm2022/lib/keyvalue/keyvalue.module.mjs +1 -1
  135. package/esm2022/lib/keyvalue/keyvalue.pipe.mjs +1 -1
  136. package/esm2022/lib/list/index.mjs +1 -1
  137. package/esm2022/lib/list/list-item.directive.mjs +1 -1
  138. package/esm2022/lib/list/list.component.mjs +3 -3
  139. package/esm2022/lib/list/list.module.mjs +1 -1
  140. package/esm2022/lib/panel/index.mjs +1 -1
  141. package/esm2022/lib/panel/panel.component.mjs +3 -3
  142. package/esm2022/lib/panel/panel.module.mjs +1 -1
  143. package/esm2022/lib/select-value-dialog/index.mjs +1 -1
  144. package/esm2022/lib/select-value-dialog/select-value-check-radio-dialog.component.mjs +3 -3
  145. package/esm2022/lib/select-value-dialog/select-value-dialog.enums.mjs +1 -1
  146. package/esm2022/lib/select-value-dialog/select-value-dialog.interface.mjs +1 -1
  147. package/esm2022/lib/select-value-dialog/select-value-dialog.module.mjs +1 -1
  148. package/esm2022/lib/select-value-dialog/select-value-dialog.service.mjs +1 -1
  149. package/esm2022/lib/sidenav/index.mjs +1 -1
  150. package/esm2022/lib/sidenav/sidenav-shim.directive.mjs +1 -1
  151. package/esm2022/lib/sidenav/sidenav.module.mjs +1 -1
  152. package/esm2022/lib/spinner/index.mjs +1 -1
  153. package/esm2022/lib/spinner/spinner-activity.directive.mjs +1 -1
  154. package/esm2022/lib/spinner/spinner.component.mjs +3 -3
  155. package/esm2022/lib/spinner/spinner.module.mjs +1 -1
  156. package/esm2022/lib/stop-propagation/index.mjs +1 -1
  157. package/esm2022/lib/stop-propagation/stop-drop-propagation.directive.mjs +1 -1
  158. package/esm2022/lib/stop-propagation/stop-propagation.directive.mjs +1 -1
  159. package/esm2022/lib/stop-propagation/stop-propagation.module.mjs +1 -1
  160. package/esm2022/lib/table/index.mjs +1 -1
  161. package/esm2022/lib/table/table-action-color.enum.mjs +1 -1
  162. package/esm2022/lib/table/table-database.mjs +1 -1
  163. package/esm2022/lib/table/table-datasource.mjs +1 -1
  164. package/esm2022/lib/table/table-model.interface.mjs +1 -1
  165. package/esm2022/lib/table/table.component.mjs +3 -3
  166. package/esm2022/lib/table/table.module.mjs +1 -1
  167. package/esm2022/lib/tool/index.mjs +1 -1
  168. package/esm2022/lib/tool/shared/index.mjs +1 -1
  169. package/esm2022/lib/tool/shared/tool-component.mjs +1 -1
  170. package/esm2022/lib/tool/shared/tool.interface.mjs +1 -1
  171. package/esm2022/lib/tool/shared/tool.service.mjs +1 -1
  172. package/esm2022/lib/tool/shared/toolbox.enums.mjs +1 -1
  173. package/esm2022/lib/tool/tool.module.mjs +1 -1
  174. package/esm2022/lib/tool/toolbox/toolbox.animation.mjs +1 -1
  175. package/esm2022/lib/tool/toolbox/toolbox.component.mjs +3 -4
  176. package/esm2022/lib/tool/toolbox/toolbox.module.mjs +1 -1
  177. package/esm2022/lib/widget/index.mjs +1 -1
  178. package/esm2022/lib/widget/shared/index.mjs +1 -1
  179. package/esm2022/lib/widget/shared/widget.interfaces.mjs +1 -1
  180. package/esm2022/lib/widget/shared/widget.mjs +1 -1
  181. package/esm2022/lib/widget/shared/widget.service.mjs +1 -1
  182. package/esm2022/lib/widget/widget-outlet/widget-outlet.component.mjs +3 -3
  183. package/esm2022/lib/widget/widget-outlet/widget-outlet.module.mjs +1 -1
  184. package/esm2022/lib/widget/widget.module.mjs +1 -1
  185. package/esm2022/lib/workspace/index.mjs +1 -1
  186. package/esm2022/lib/workspace/shared/index.mjs +1 -1
  187. package/esm2022/lib/workspace/shared/store.mjs +1 -1
  188. package/esm2022/lib/workspace/shared/workspace.interfaces.mjs +1 -1
  189. package/esm2022/lib/workspace/shared/workspace.mjs +1 -1
  190. package/esm2022/lib/workspace/workspace-selector/workspace-selector.component.mjs +3 -3
  191. package/esm2022/lib/workspace/workspace-selector/workspace-selector.module.mjs +1 -1
  192. package/esm2022/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +3 -3
  193. package/esm2022/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +1 -1
  194. package/esm2022/lib/workspace/workspace.module.mjs +1 -1
  195. package/esm2022/public_api.mjs +2 -1
  196. package/fesm2022/igo2-common.mjs +193 -130
  197. package/fesm2022/igo2-common.mjs.map +1 -1
  198. package/lib/action/actionbar/actionbar-item.component.d.ts +2 -5
  199. package/lib/action/shared/action.interfaces.d.ts +2 -1
  200. package/lib/badge-icon/badge-icon.directive.d.ts +3 -5
  201. package/lib/entity/shared/transaction.d.ts +1 -2
  202. package/lib/icons/icon/icon.component.d.ts +16 -0
  203. package/lib/icons/icon.provider.d.ts +4 -0
  204. package/lib/icons/index.d.ts +3 -0
  205. package/lib/icons/shared/icon.interface.d.ts +4 -0
  206. package/lib/icons/shared/icons.d.ts +21 -0
  207. package/lib/icons/shared/index.d.ts +2 -0
  208. package/lib/tool/shared/tool.interface.d.ts +2 -2
  209. package/package.json +3 -3
  210. package/public_api.d.ts +1 -0
  211. package/src/common-theme.scss +19 -19
  212. package/src/lib/action/action.theming.scss +5 -5
  213. package/src/lib/action/actionbar/actionbar-item.theming.scss +32 -32
  214. package/src/lib/action/actionbar/actionbar.theming.scss +22 -22
  215. package/src/lib/collapsible/collapsible.theming.scss +22 -22
  216. package/src/lib/entity/entity-selector/entity-selector.theming.scss +21 -21
  217. package/src/lib/entity/entity-table/entity-table.theming.scss +37 -37
  218. package/src/lib/entity/entity.theming.scss +7 -7
  219. package/src/lib/home-button/home-button.theming.scss +18 -18
  220. package/src/lib/interactive-tour/interactive-tour.theming.scss +32 -32
  221. package/src/lib/list/list.theming.scss +58 -58
  222. package/src/lib/panel/panel.theming.scss +30 -30
  223. package/src/lib/tool/tool.theming.scss +5 -5
  224. package/src/lib/tool/toolbox/toolbox.theming.scss +105 -105
@@ -1,58 +1,58 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin igo-list-theming($theme) {
5
- $primary: map.get($theme, primary);
6
- $accent: map.get($theme, accent);
7
- @include density($theme);
8
-
9
- igo-list {
10
- [igolistitem] {
11
- &[color='primary'] {
12
- &.igo-list-item-selected > mat-list-item {
13
- background-color: mat.get-color-from-palette($primary);
14
- color: mat.get-color-from-palette($primary, default-contrast);
15
- }
16
- &:not(.igo-list-item-disabled):hover > mat-list-item,
17
- &.igo-list-item-focused > mat-list-item {
18
- background-color: mat.get-color-from-palette($primary, lighter);
19
- color: mat.get-color-from-palette($primary, default-contrast);
20
- }
21
- }
22
-
23
- &[color='accent'] {
24
- &.igo-list-item-selected > mat-list-item {
25
- background-color: mat.get-color-from-palette($accent);
26
- color: mat.get-color-from-palette($accent, default-contrast);
27
- }
28
-
29
- &:not(.igo-list-item-disabled):hover > mat-list-item,
30
- &.igo-list-item-focused > mat-list-item {
31
- background-color: mat.get-color-from-palette($accent, lighter);
32
- color: mat.get-color-from-palette($accent, default-contrast);
33
- }
34
- }
35
-
36
- &.igo-list-item-disabled > mat-list-item {
37
- color: rgba(0, 0, 0, 0.38);
38
- }
39
- }
40
- }
41
- }
42
-
43
- @mixin density($theme) {
44
- $density: mat.get-density-config($theme);
45
-
46
- $theme: map.merge(
47
- $theme,
48
- (
49
- density: $density
50
- )
51
- );
52
-
53
- igo-list {
54
- @include mat.icon-density($theme);
55
- @include mat.icon-button-density($theme);
56
- @include mat.list-density($theme);
57
- }
58
- }
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
4
+ @mixin igo-list-theming($theme) {
5
+ $primary: map.get($theme, primary);
6
+ $accent: map.get($theme, accent);
7
+ @include density($theme);
8
+
9
+ igo-list {
10
+ [igolistitem] {
11
+ &[color='primary'] {
12
+ &.igo-list-item-selected > mat-list-item {
13
+ background-color: mat.get-color-from-palette($primary);
14
+ color: mat.get-color-from-palette($primary, default-contrast);
15
+ }
16
+ &:not(.igo-list-item-disabled):hover > mat-list-item,
17
+ &.igo-list-item-focused > mat-list-item {
18
+ background-color: mat.get-color-from-palette($primary, lighter);
19
+ color: mat.get-color-from-palette($primary, default-contrast);
20
+ }
21
+ }
22
+
23
+ &[color='accent'] {
24
+ &.igo-list-item-selected > mat-list-item {
25
+ background-color: mat.get-color-from-palette($accent);
26
+ color: mat.get-color-from-palette($accent, default-contrast);
27
+ }
28
+
29
+ &:not(.igo-list-item-disabled):hover > mat-list-item,
30
+ &.igo-list-item-focused > mat-list-item {
31
+ background-color: mat.get-color-from-palette($accent, lighter);
32
+ color: mat.get-color-from-palette($accent, default-contrast);
33
+ }
34
+ }
35
+
36
+ &.igo-list-item-disabled > mat-list-item {
37
+ color: rgba(0, 0, 0, 0.38);
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+ @mixin density($theme) {
44
+ $density: mat.get-density-config($theme);
45
+
46
+ $theme: map.merge(
47
+ $theme,
48
+ (
49
+ density: $density
50
+ )
51
+ );
52
+
53
+ igo-list {
54
+ @include mat.icon-density($theme);
55
+ @include mat.icon-button-density($theme);
56
+ @include mat.list-density($theme);
57
+ }
58
+ }
@@ -1,30 +1,30 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- @include color($theme);
6
- @include density($theme);
7
- }
8
-
9
- @mixin color($theme) {
10
- $primary: map.get($theme, primary);
11
-
12
- igo-panel > .igo-panel-header {
13
- background-color: mat.get-color-from-palette($primary);
14
- color: mat.get-color-from-palette($primary, default-contrast);
15
- }
16
- }
17
-
18
- @mixin density($theme) {
19
- $density: mat.get-density-config($theme);
20
- $theme: map.merge(
21
- $theme,
22
- (
23
- density: $density - 2
24
- )
25
- );
26
-
27
- igo-panel {
28
- @include mat.icon-button-density($theme);
29
- }
30
- }
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
4
+ @mixin theme($theme) {
5
+ @include color($theme);
6
+ @include density($theme);
7
+ }
8
+
9
+ @mixin color($theme) {
10
+ $primary: map.get($theme, primary);
11
+
12
+ igo-panel > .igo-panel-header {
13
+ background-color: mat.get-color-from-palette($primary);
14
+ color: mat.get-color-from-palette($primary, default-contrast);
15
+ }
16
+ }
17
+
18
+ @mixin density($theme) {
19
+ $density: mat.get-density-config($theme);
20
+ $theme: map.merge(
21
+ $theme,
22
+ (
23
+ density: $density - 2
24
+ )
25
+ );
26
+
27
+ igo-panel {
28
+ @include mat.icon-button-density($theme);
29
+ }
30
+ }
@@ -1,5 +1,5 @@
1
- @use './toolbox/toolbox.theming.scss' as toolbox-theme;
2
-
3
- @mixin igo-tool-theming($theme) {
4
- @include toolbox-theme.igo-toolbox-theming($theme);
5
- }
1
+ @use './toolbox/toolbox.theming.scss' as toolbox-theme;
2
+
3
+ @mixin igo-tool-theming($theme) {
4
+ @include toolbox-theme.igo-toolbox-theming($theme);
5
+ }
@@ -1,105 +1,105 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin igo-toolbox-theming($theme) {
5
- @include color($theme);
6
- @include density($theme);
7
- }
8
-
9
- @mixin color($theme) {
10
- $primary: map.get($theme, primary);
11
- $accent: map.get($theme, accent);
12
- $foreground: map.get($theme, foreground);
13
- $darker-contrast: mat.get-color-from-palette($primary, darker-contrast);
14
- $lighter-contrast: mat.get-color-from-palette($primary, lighter-contrast);
15
-
16
- igo-toolbox {
17
- &.color-primary > igo-actionbar:not(.with-title) {
18
- box-shadow: unset;
19
- background-color: mat.get-color-from-palette($primary);
20
- #lowChevron,
21
- #topChevron {
22
- background-color: mat.get-color-from-palette($primary);
23
- color: white;
24
- }
25
- }
26
-
27
- &.color-grey > igo-actionbar:not(.with-title) {
28
- box-shadow: unset;
29
- background-color: #737475;
30
- #lowChevron,
31
- #topChevron {
32
- background-color: #737475;
33
- color: white;
34
- }
35
- }
36
-
37
- &.color-primary,
38
- &.color-grey {
39
- & > igo-actionbar:not(.with-title) mat-list.mat-mdc-list-base {
40
- .mat-mdc-list-item.mdc-list-item--with-leading-avatar {
41
- color: white;
42
- &:hover {
43
- color: black;
44
- }
45
-
46
- &.tool-activated,
47
- &.children-tool-activated {
48
- background-color: white;
49
- color: black;
50
- }
51
- }
52
- }
53
- }
54
-
55
- > igo-actionbar {
56
- &:not(.with-title) {
57
- > mat-list {
58
- & > #lowChevron,
59
- & > #topChevron {
60
- &:hover {
61
- background-color: mat.get-color-from-palette($accent, lighter);
62
- color: black;
63
- }
64
- }
65
-
66
- mat-list-item {
67
- color: $lighter-contrast;
68
- }
69
- }
70
- }
71
-
72
- mat-list.mat-mdc-list-base igo-actionbar-item mat-list-item {
73
- &:hover {
74
- background-color: mat.get-color-from-palette($accent, lighter);
75
- }
76
-
77
- &.tool-activated,
78
- &.children-tool-activated {
79
- color: $lighter-contrast;
80
- background-color: $darker-contrast;
81
-
82
- button {
83
- cursor: default;
84
- }
85
- }
86
- }
87
- }
88
- }
89
- }
90
-
91
- @mixin density($theme) {
92
- $density: mat.get-density-config($theme);
93
- $theme: map.merge(
94
- $theme,
95
- (
96
- density: $density - 2
97
- )
98
- );
99
-
100
- igo-toolbox {
101
- igo-actionbar-item {
102
- @include mat.list-density($theme);
103
- }
104
- }
105
- }
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
4
+ @mixin igo-toolbox-theming($theme) {
5
+ @include color($theme);
6
+ @include density($theme);
7
+ }
8
+
9
+ @mixin color($theme) {
10
+ $primary: map.get($theme, primary);
11
+ $accent: map.get($theme, accent);
12
+ $foreground: map.get($theme, foreground);
13
+ $darker-contrast: mat.get-color-from-palette($primary, darker-contrast);
14
+ $lighter-contrast: mat.get-color-from-palette($primary, lighter-contrast);
15
+
16
+ igo-toolbox {
17
+ &.color-primary > igo-actionbar:not(.with-title) {
18
+ box-shadow: unset;
19
+ background-color: mat.get-color-from-palette($primary);
20
+ #lowChevron,
21
+ #topChevron {
22
+ background-color: mat.get-color-from-palette($primary);
23
+ color: white;
24
+ }
25
+ }
26
+
27
+ &.color-grey > igo-actionbar:not(.with-title) {
28
+ box-shadow: unset;
29
+ background-color: #737475;
30
+ #lowChevron,
31
+ #topChevron {
32
+ background-color: #737475;
33
+ color: white;
34
+ }
35
+ }
36
+
37
+ &.color-primary,
38
+ &.color-grey {
39
+ & > igo-actionbar:not(.with-title) mat-list.mat-mdc-list-base {
40
+ .mat-mdc-list-item.mdc-list-item--with-leading-avatar {
41
+ color: white;
42
+ &:hover {
43
+ color: black;
44
+ }
45
+
46
+ &.tool-activated,
47
+ &.children-tool-activated {
48
+ background-color: white;
49
+ color: black;
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ > igo-actionbar {
56
+ &:not(.with-title) {
57
+ > mat-list {
58
+ & > #lowChevron,
59
+ & > #topChevron {
60
+ &:hover {
61
+ background-color: mat.get-color-from-palette($accent, lighter);
62
+ color: black;
63
+ }
64
+ }
65
+
66
+ mat-list-item {
67
+ color: $lighter-contrast;
68
+ }
69
+ }
70
+ }
71
+
72
+ mat-list.mat-mdc-list-base igo-actionbar-item mat-list-item {
73
+ &:hover {
74
+ background-color: mat.get-color-from-palette($accent, lighter);
75
+ }
76
+
77
+ &.tool-activated,
78
+ &.children-tool-activated {
79
+ color: $lighter-contrast;
80
+ background-color: $darker-contrast;
81
+
82
+ button {
83
+ cursor: default;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ @mixin density($theme) {
92
+ $density: mat.get-density-config($theme);
93
+ $theme: map.merge(
94
+ $theme,
95
+ (
96
+ density: $density - 2
97
+ )
98
+ );
99
+
100
+ igo-toolbox {
101
+ igo-actionbar-item {
102
+ @include mat.list-density($theme);
103
+ }
104
+ }
105
+ }