cmat 0.0.86 → 0.0.88

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 (228) hide show
  1. package/fesm2022/cmat-components-adapter.mjs +9 -9
  2. package/fesm2022/cmat-components-adapter.mjs.map +1 -1
  3. package/fesm2022/cmat-components-breadcrumb.mjs +98 -80
  4. package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
  5. package/fesm2022/cmat-components-card.mjs +26 -34
  6. package/fesm2022/cmat-components-card.mjs.map +1 -1
  7. package/fesm2022/cmat-components-carousel.mjs +467 -556
  8. package/fesm2022/cmat-components-carousel.mjs.map +1 -1
  9. package/fesm2022/cmat-components-cascade.mjs +270 -259
  10. package/fesm2022/cmat-components-cascade.mjs.map +1 -1
  11. package/fesm2022/cmat-components-chip-input.mjs +200 -116
  12. package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
  13. package/fesm2022/cmat-components-code-editor.mjs +85 -38
  14. package/fesm2022/cmat-components-code-editor.mjs.map +1 -1
  15. package/fesm2022/cmat-components-color-picker.mjs +841 -0
  16. package/fesm2022/cmat-components-color-picker.mjs.map +1 -0
  17. package/fesm2022/cmat-components-custom-formly.mjs +1395 -838
  18. package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
  19. package/fesm2022/cmat-components-data-picker.mjs +996 -0
  20. package/fesm2022/cmat-components-data-picker.mjs.map +1 -0
  21. package/fesm2022/cmat-components-date-range.mjs +310 -264
  22. package/fesm2022/cmat-components-date-range.mjs.map +1 -1
  23. package/fesm2022/cmat-components-date-time-display.mjs +16 -20
  24. package/fesm2022/cmat-components-date-time-display.mjs.map +1 -1
  25. package/fesm2022/cmat-components-drawer.mjs +120 -137
  26. package/fesm2022/cmat-components-drawer.mjs.map +1 -1
  27. package/fesm2022/cmat-components-empty-state.mjs +17 -24
  28. package/fesm2022/cmat-components-empty-state.mjs.map +1 -1
  29. package/fesm2022/cmat-components-file-preview.mjs +18 -24
  30. package/fesm2022/cmat-components-file-preview.mjs.map +1 -1
  31. package/fesm2022/cmat-components-filter-toolbar.mjs +30 -39
  32. package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
  33. package/fesm2022/cmat-components-form-actions.mjs +12 -12
  34. package/fesm2022/cmat-components-form-actions.mjs.map +1 -1
  35. package/fesm2022/cmat-components-fullscreen.mjs +10 -10
  36. package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
  37. package/fesm2022/cmat-components-highlight.mjs +48 -41
  38. package/fesm2022/cmat-components-highlight.mjs.map +1 -1
  39. package/fesm2022/cmat-components-image-viewer.mjs +104 -107
  40. package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
  41. package/fesm2022/cmat-components-inline-loading.mjs +12 -15
  42. package/fesm2022/cmat-components-inline-loading.mjs.map +1 -1
  43. package/fesm2022/cmat-components-json-editor.mjs +118 -75
  44. package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
  45. package/fesm2022/cmat-components-knob-input.mjs +196 -178
  46. package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
  47. package/fesm2022/cmat-components-masonry.mjs +26 -41
  48. package/fesm2022/cmat-components-masonry.mjs.map +1 -1
  49. package/fesm2022/cmat-components-material-color-picker.mjs +81 -80
  50. package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
  51. package/fesm2022/cmat-components-material-datetimepicker.mjs +1212 -1287
  52. package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
  53. package/fesm2022/cmat-components-navigation.mjs +467 -450
  54. package/fesm2022/cmat-components-navigation.mjs.map +1 -1
  55. package/fesm2022/cmat-components-opt-input.mjs +143 -132
  56. package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
  57. package/fesm2022/cmat-components-org-chart.mjs +68 -83
  58. package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
  59. package/fesm2022/cmat-components-page-header.mjs +18 -24
  60. package/fesm2022/cmat-components-page-header.mjs.map +1 -1
  61. package/fesm2022/cmat-components-pagination.mjs +220 -136
  62. package/fesm2022/cmat-components-pagination.mjs.map +1 -1
  63. package/fesm2022/cmat-components-password-strength.mjs +262 -215
  64. package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
  65. package/fesm2022/cmat-components-popover.mjs +227 -195
  66. package/fesm2022/cmat-components-popover.mjs.map +1 -1
  67. package/fesm2022/cmat-components-progress-bar.mjs +15 -34
  68. package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
  69. package/fesm2022/cmat-components-qrcode.mjs +95 -88
  70. package/fesm2022/cmat-components-qrcode.mjs.map +1 -1
  71. package/fesm2022/cmat-components-rating.mjs +70 -67
  72. package/fesm2022/cmat-components-rating.mjs.map +1 -1
  73. package/fesm2022/cmat-components-rich-text-editor.mjs +23 -26
  74. package/fesm2022/cmat-components-rich-text-editor.mjs.map +1 -1
  75. package/fesm2022/cmat-components-select-search.mjs +190 -159
  76. package/fesm2022/cmat-components-select-search.mjs.map +1 -1
  77. package/fesm2022/cmat-components-select-table.mjs +276 -213
  78. package/fesm2022/cmat-components-select-table.mjs.map +1 -1
  79. package/fesm2022/cmat-components-select-tree.mjs +178 -128
  80. package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
  81. package/fesm2022/cmat-components-skeleton.mjs +44 -28
  82. package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
  83. package/fesm2022/cmat-components-speed-dial.mjs +107 -163
  84. package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
  85. package/fesm2022/cmat-components-status-tag.mjs +29 -36
  86. package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
  87. package/fesm2022/cmat-components-table-toolbar.mjs +14 -18
  88. package/fesm2022/cmat-components-table-toolbar.mjs.map +1 -1
  89. package/fesm2022/cmat-components-timeline.mjs +111 -118
  90. package/fesm2022/cmat-components-timeline.mjs.map +1 -1
  91. package/fesm2022/cmat-components-toast.mjs +65 -66
  92. package/fesm2022/cmat-components-toast.mjs.map +1 -1
  93. package/fesm2022/cmat-components-transfer-picker.mjs +130 -160
  94. package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
  95. package/fesm2022/cmat-components-treetable.mjs +32 -39
  96. package/fesm2022/cmat-components-treetable.mjs.map +1 -1
  97. package/fesm2022/cmat-components-upload.mjs +186 -176
  98. package/fesm2022/cmat-components-upload.mjs.map +1 -1
  99. package/fesm2022/cmat-directives-animate-on-scroll.mjs +25 -28
  100. package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
  101. package/fesm2022/cmat-directives-arrow-cursor.mjs +85 -92
  102. package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
  103. package/fesm2022/cmat-directives-autofocus.mjs +3 -3
  104. package/fesm2022/cmat-directives-autofocus.mjs.map +1 -1
  105. package/fesm2022/cmat-directives-data-exporter.mjs +49 -50
  106. package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
  107. package/fesm2022/cmat-directives-debounce.mjs +16 -19
  108. package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
  109. package/fesm2022/cmat-directives-digit-only.mjs +60 -69
  110. package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
  111. package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
  112. package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
  113. package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +31 -30
  114. package/fesm2022/cmat-directives-seamless-auto-scroll.mjs.map +1 -1
  115. package/fesm2022/cmat-lib-mock-api.mjs +6 -6
  116. package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
  117. package/fesm2022/cmat-pipes-bytes.mjs +3 -3
  118. package/fesm2022/cmat-pipes-bytes.mjs.map +1 -1
  119. package/fesm2022/cmat-pipes-date-format.mjs +3 -3
  120. package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
  121. package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
  122. package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
  123. package/fesm2022/cmat-pipes-group-by.mjs +3 -3
  124. package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
  125. package/fesm2022/cmat-pipes-keys.mjs +3 -3
  126. package/fesm2022/cmat-pipes-keys.mjs.map +1 -1
  127. package/fesm2022/cmat-pipes-secure.mjs +7 -13
  128. package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
  129. package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
  130. package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -1
  131. package/fesm2022/cmat-services-alert.mjs +26 -27
  132. package/fesm2022/cmat-services-alert.mjs.map +1 -1
  133. package/fesm2022/cmat-services-config.mjs +14 -23
  134. package/fesm2022/cmat-services-config.mjs.map +1 -1
  135. package/fesm2022/cmat-services-confirmation.mjs +8 -8
  136. package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
  137. package/fesm2022/cmat-services-data.mjs +6 -10
  138. package/fesm2022/cmat-services-data.mjs.map +1 -1
  139. package/fesm2022/cmat-services-export-as.mjs +3 -3
  140. package/fesm2022/cmat-services-export-as.mjs.map +1 -1
  141. package/fesm2022/cmat-services-loading.mjs +30 -47
  142. package/fesm2022/cmat-services-loading.mjs.map +1 -1
  143. package/fesm2022/cmat-services-local-storage.mjs +3 -3
  144. package/fesm2022/cmat-services-local-storage.mjs.map +1 -1
  145. package/fesm2022/cmat-services-media-watcher.mjs +43 -34
  146. package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
  147. package/fesm2022/cmat-services-platform.mjs +3 -3
  148. package/fesm2022/cmat-services-platform.mjs.map +1 -1
  149. package/fesm2022/cmat-services-splash-screen.mjs +3 -3
  150. package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
  151. package/fesm2022/cmat-services-title.mjs +3 -3
  152. package/fesm2022/cmat-services-title.mjs.map +1 -1
  153. package/fesm2022/cmat-services-translation.mjs +11 -11
  154. package/fesm2022/cmat-services-translation.mjs.map +1 -1
  155. package/fesm2022/cmat-services-utils.mjs +4 -4
  156. package/fesm2022/cmat-services-utils.mjs.map +1 -1
  157. package/fesm2022/cmat.mjs +9229 -7508
  158. package/fesm2022/cmat.mjs.map +1 -1
  159. package/icons/material-icons/heroicons-outline.svg +3 -0
  160. package/icons/material-icons/heroicons-solid.svg +3 -0
  161. package/package.json +10 -1
  162. package/styles/components/bundle.scss +21 -0
  163. package/styles/overrides/angular-material.scss +22 -1
  164. package/tailwind/plugins/theming.js +183 -183
  165. package/types/cmat-components-breadcrumb.d.ts +40 -37
  166. package/types/cmat-components-card.d.ts +11 -13
  167. package/types/cmat-components-carousel.d.ts +87 -113
  168. package/types/cmat-components-cascade.d.ts +84 -65
  169. package/types/cmat-components-chip-input.d.ts +29 -24
  170. package/types/cmat-components-code-editor.d.ts +28 -12
  171. package/types/cmat-components-color-picker.d.ts +236 -0
  172. package/types/cmat-components-custom-formly.d.ts +316 -184
  173. package/types/cmat-components-data-picker.d.ts +372 -0
  174. package/types/cmat-components-date-range.d.ts +31 -36
  175. package/types/cmat-components-date-time-display.d.ts +8 -8
  176. package/types/cmat-components-drawer.d.ts +30 -32
  177. package/types/cmat-components-empty-state.d.ts +9 -10
  178. package/types/cmat-components-file-preview.d.ts +9 -9
  179. package/types/cmat-components-filter-toolbar.d.ts +15 -15
  180. package/types/cmat-components-form-actions.d.ts +5 -5
  181. package/types/cmat-components-fullscreen.d.ts +5 -5
  182. package/types/cmat-components-highlight.d.ts +13 -14
  183. package/types/cmat-components-image-viewer.d.ts +29 -33
  184. package/types/cmat-components-inline-loading.d.ts +6 -6
  185. package/types/cmat-components-json-editor.d.ts +15 -17
  186. package/types/cmat-components-knob-input.d.ts +58 -55
  187. package/types/cmat-components-masonry.d.ts +9 -12
  188. package/types/cmat-components-material-color-picker.d.ts +16 -21
  189. package/types/cmat-components-material-datetimepicker.d.ts +174 -216
  190. package/types/cmat-components-navigation.d.ts +34 -39
  191. package/types/cmat-components-opt-input.d.ts +35 -33
  192. package/types/cmat-components-org-chart.d.ts +8 -9
  193. package/types/cmat-components-page-header.d.ts +9 -9
  194. package/types/cmat-components-pagination.d.ts +36 -40
  195. package/types/cmat-components-password-strength.d.ts +58 -64
  196. package/types/cmat-components-popover.d.ts +22 -32
  197. package/types/cmat-components-progress-bar.d.ts +7 -10
  198. package/types/cmat-components-qrcode.d.ts +22 -22
  199. package/types/cmat-components-rating.d.ts +17 -19
  200. package/types/cmat-components-rich-text-editor.d.ts +11 -12
  201. package/types/cmat-components-select-search.d.ts +48 -36
  202. package/types/cmat-components-select-table.d.ts +38 -34
  203. package/types/cmat-components-select-tree.d.ts +17 -15
  204. package/types/cmat-components-skeleton.d.ts +27 -10
  205. package/types/cmat-components-speed-dial.d.ts +24 -33
  206. package/types/cmat-components-status-tag.d.ts +19 -9
  207. package/types/cmat-components-table-toolbar.d.ts +7 -7
  208. package/types/cmat-components-timeline.d.ts +33 -34
  209. package/types/cmat-components-toast.d.ts +26 -30
  210. package/types/cmat-components-transfer-picker.d.ts +51 -56
  211. package/types/cmat-components-treetable.d.ts +12 -13
  212. package/types/cmat-components-upload.d.ts +33 -38
  213. package/types/cmat-components-x6-angular-shape.d.ts +1 -1
  214. package/types/cmat-directives-animate-on-scroll.d.ts +7 -7
  215. package/types/cmat-directives-arrow-cursor.d.ts +18 -20
  216. package/types/cmat-directives-data-exporter.d.ts +10 -10
  217. package/types/cmat-directives-debounce.d.ts +5 -5
  218. package/types/cmat-directives-digit-only.d.ts +13 -13
  219. package/types/cmat-directives-seamless-auto-scroll.d.ts +7 -7
  220. package/types/cmat-pipes-secure.d.ts +1 -3
  221. package/types/cmat-services-alert.d.ts +11 -12
  222. package/types/cmat-services-config.d.ts +2 -7
  223. package/types/cmat-services-confirmation.d.ts +2 -2
  224. package/types/cmat-services-data.d.ts +0 -1
  225. package/types/cmat-services-loading.d.ts +14 -22
  226. package/types/cmat-services-media-watcher.d.ts +5 -5
  227. package/types/cmat-services-translation.d.ts +4 -5
  228. package/types/cmat.d.ts +2167 -1746
@@ -1,6 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, inject, Renderer2, DestroyRef, ContentChildren, ChangeDetectionStrategy, ViewEncapsulation, Component, EventEmitter, ElementRef, DOCUMENT, HostListener, Input, HostBinding, ContentChild, Output } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
2
+ import { signal, contentChildren, inject, Renderer2, effect, untracked, ChangeDetectionStrategy, ViewEncapsulation, Component, output, input, computed, contentChild, ElementRef, DOCUMENT, DestroyRef, HostListener } from '@angular/core';
4
3
  import { MatMiniFabButton } from '@angular/material/button';
5
4
  import { fromEvent, forkJoin } from 'rxjs';
6
5
  import { take } from 'rxjs/operators';
@@ -11,26 +10,26 @@ function getHostElement(button) {
11
10
  }
12
11
  class CmatSpeedDialActionsComponent {
13
12
  constructor() {
14
- this.miniFabVisible = signal(false, ...(ngDevMode ? [{ debugName: "miniFabVisible" }] : /* istanbul ignore next */ []));
13
+ this.miniFabVisible = signal(false, /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "miniFabVisible" }] : /* istanbul ignore next */ []));
15
+ this._buttons = contentChildren(MatMiniFabButton, /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "_buttons" }] : /* istanbul ignore next */ []));
15
17
  this._renderer = inject(Renderer2);
16
- this._destroyRef = inject(DestroyRef);
17
18
  this._parent = inject(CmatSpeedDialComponent);
18
19
  this._showMiniFabAnimation = null;
19
20
  this._hideMiniFab = null;
20
21
  this._hideTimeoutId = null;
21
- }
22
- ngAfterContentInit() {
23
- this._buttons.changes
24
- .pipe(takeUntilDestroyed(this._destroyRef))
25
- .subscribe(() => {
26
- this._initButtonStates();
27
- this._parent.setActionsVisibility();
22
+ effect(() => {
23
+ const buttons = this._buttons();
24
+ untracked(() => {
25
+ if (buttons.length > 0) {
26
+ this._initButtonStates();
27
+ }
28
+ });
28
29
  });
29
- this._initButtonStates();
30
30
  }
31
- ngOnDestroy() {
32
- this._resetAnimationState();
33
- this._clearHideTimeout();
31
+ ngAfterContentInit() {
32
+ this._parent.setActionsVisibility();
34
33
  }
35
34
  show() {
36
35
  this._resetAnimationState();
@@ -38,10 +37,11 @@ class CmatSpeedDialActionsComponent {
38
37
  this.miniFabVisible.set(true);
39
38
  this._showMiniFabAnimation = window.setTimeout(() => {
40
39
  this._showMiniFabAnimation = null;
41
- this._buttons.forEach((button, i) => {
40
+ const buttons = this._buttons();
41
+ buttons.forEach((button, i) => {
42
42
  let transitionDelay = 0;
43
43
  let transform;
44
- if (this._parent.animationMode === 'scale') {
44
+ if (this._parent.animationMode() === 'scale') {
45
45
  transitionDelay = 3 + 65 * i;
46
46
  transform = 'scale(1)';
47
47
  }
@@ -58,15 +58,16 @@ class CmatSpeedDialActionsComponent {
58
58
  hide() {
59
59
  this._resetAnimationState();
60
60
  this._clearHideTimeout();
61
- if (this._buttons.length === 0) {
61
+ const buttons = this._buttons();
62
+ if (buttons.length === 0) {
62
63
  this.miniFabVisible.set(false);
63
64
  return;
64
65
  }
65
- const obs = this._buttons.map((button, i) => {
66
+ const obs = buttons.map((button, i) => {
66
67
  let opacity = '1';
67
68
  let transitionDelay = 0;
68
69
  let transform;
69
- if (this._parent.animationMode === 'scale') {
70
+ if (this._parent.animationMode() === 'scale') {
70
71
  transitionDelay = 3 - 65 * i;
71
72
  transform = 'scale(0)';
72
73
  opacity = '0';
@@ -94,7 +95,8 @@ class CmatSpeedDialActionsComponent {
94
95
  }, 500);
95
96
  }
96
97
  _initButtonStates() {
97
- this._buttons.forEach((button, i) => {
98
+ const buttons = this._buttons();
99
+ buttons.forEach((button, i) => {
98
100
  this._renderer.addClass(getHostElement(button), 'cmat-action-item');
99
101
  this._changeElementStyle(getHostElement(button), 'z-index', '' + (Z_INDEX_ITEM - i).toString());
100
102
  });
@@ -116,7 +118,7 @@ class CmatSpeedDialActionsComponent {
116
118
  }
117
119
  }
118
120
  _getTranslateFunction(value) {
119
- const dir = this._parent.direction;
121
+ const dir = this._parent.direction();
120
122
  const translateFn = dir === 'up' || dir === 'down' ? 'translateY' : 'translateX';
121
123
  const sign = dir === 'down' || dir === 'right' ? '-' : '';
122
124
  return translateFn + '(' + sign + value + ')';
@@ -124,138 +126,97 @@ class CmatSpeedDialActionsComponent {
124
126
  _changeElementStyle(elem, style, value) {
125
127
  this._renderer.setStyle(elem, style, value);
126
128
  }
127
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CmatSpeedDialActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
128
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: CmatSpeedDialActionsComponent, isStandalone: true, selector: "cmat-speed-dial-actions", queries: [{ propertyName: "_buttons", predicate: MatMiniFabButton }], ngImport: i0, template: `@if (miniFabVisible()) {
129
- <ng-content select="[matMiniFab]" />
129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: CmatSpeedDialActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
130
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.2", type: CmatSpeedDialActionsComponent, isStandalone: true, selector: "cmat-speed-dial-actions", queries: [{ propertyName: "_buttons", predicate: MatMiniFabButton, isSignal: true }], ngImport: i0, template: `@if (miniFabVisible()) {
131
+ <ng-content select="[matFab], [matButton], [matIconButton], [matMiniFab]" />
130
132
  }`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
131
133
  }
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CmatSpeedDialActionsComponent, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: CmatSpeedDialActionsComponent, decorators: [{
133
135
  type: Component,
134
136
  args: [{
135
137
  selector: 'cmat-speed-dial-actions',
136
138
  template: `@if (miniFabVisible()) {
137
- <ng-content select="[matMiniFab]" />
139
+ <ng-content select="[matFab], [matButton], [matIconButton], [matMiniFab]" />
138
140
  }`,
139
141
  encapsulation: ViewEncapsulation.None,
140
142
  changeDetection: ChangeDetectionStrategy.OnPush
141
143
  }]
142
- }], propDecorators: { _buttons: [{
143
- type: ContentChildren,
144
- args: [MatMiniFabButton]
145
- }] } });
144
+ }], ctorParameters: () => [], propDecorators: { _buttons: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MatMiniFabButton), { isSignal: true }] }] } });
146
145
  class CmatSpeedDialComponent {
147
146
  constructor() {
148
- this.openChange = new EventEmitter();
147
+ this.openChange = output();
148
+ this.fixed = input(false, /* @ts-ignore */
149
+ ...(ngDevMode ? [{ debugName: "fixed" }] : /* istanbul ignore next */ []));
150
+ this.direction = input('up', /* @ts-ignore */
151
+ ...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
152
+ this.animationMode = input('fling', /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "animationMode" }] : /* istanbul ignore next */ []));
154
+ this.open = input(false, /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
156
+ this.dialOpened = computed(() => this._open(), /* @ts-ignore */
157
+ ...(ngDevMode ? [{ debugName: "dialOpened" }] : /* istanbul ignore next */ []));
158
+ this._childActions = contentChild.required(CmatSpeedDialActionsComponent);
149
159
  this._elementRef = inject(ElementRef);
150
160
  this._renderer = inject(Renderer2);
151
161
  this._document = inject(DOCUMENT);
162
+ this._destroyRef = inject(DestroyRef);
152
163
  this._isInitialized = false;
153
- this._direction = 'up';
154
- this._open = false;
155
- this._animationMode = 'fling';
156
- this._fixed = false;
157
164
  this._documentClickUnlistener = null;
158
165
  this._openChangeTimeoutId = null;
159
- this._dialOpened = signal(false, ...(ngDevMode ? [{ debugName: "_dialOpened" }] : /* istanbul ignore next */ []));
160
- }
161
- get fixed() {
162
- return this._fixed;
163
- }
164
- set fixed(fixed) {
165
- this._fixed = fixed;
166
- this._processOutsideClickState();
167
- }
168
- // eslint-disable-next-line @typescript-eslint/member-ordering
169
- get dialOpened() {
170
- return this._dialOpened();
171
- }
172
- // eslint-disable-next-line @typescript-eslint/member-ordering
173
- get open() {
174
- return this._open;
175
- }
176
- set open(open) {
177
- const previousOpen = this._open;
178
- this._open = open;
179
- this._dialOpened.set(this._open);
180
- if (previousOpen !== this._open) {
166
+ this._open = signal(false, /* @ts-ignore */
167
+ ...(ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []));
168
+ // Sync external open input to internal state
169
+ effect(() => {
170
+ const externalOpen = this.open();
171
+ setTimeout(() => {
172
+ // Use untracked to read current internal state without creating dependency
173
+ const currentInternalOpen = untracked(() => this._open());
174
+ // Only sync if values differ (external change detected)
175
+ if (currentInternalOpen !== externalOpen) {
176
+ this._open.set(externalOpen);
177
+ if (this._isInitialized) {
178
+ untracked(() => this.setActionsVisibility());
179
+ }
180
+ }
181
+ }, 200);
182
+ });
183
+ // Register cleanup logic previously in ngOnDestroy
184
+ this._destroyRef.onDestroy(() => {
185
+ this._unsetDocumentClickListener();
181
186
  if (this._openChangeTimeoutId !== null) {
182
187
  clearTimeout(this._openChangeTimeoutId);
183
- }
184
- this._openChangeTimeoutId = window.setTimeout(() => {
185
188
  this._openChangeTimeoutId = null;
186
- this.openChange.emit(this._open);
187
- });
188
- if (this._isInitialized) {
189
- this.setActionsVisibility();
190
- }
191
- }
192
- }
193
- // eslint-disable-next-line @typescript-eslint/member-ordering
194
- get direction() {
195
- return this._direction;
196
- }
197
- set direction(direction) {
198
- const previousDirection = this._direction;
199
- this._direction = direction;
200
- if (previousDirection !== this.direction) {
201
- this._setElementClass(previousDirection, false);
202
- this._setElementClass(this.direction, true);
203
- if (this._isInitialized) {
204
- this.setActionsVisibility();
205
- }
206
- }
207
- }
208
- // eslint-disable-next-line @typescript-eslint/member-ordering
209
- get animationMode() {
210
- return this._animationMode;
211
- }
212
- set animationMode(animationMode) {
213
- const previousAnimationMode = this._animationMode;
214
- this._animationMode = animationMode;
215
- if (previousAnimationMode !== this._animationMode) {
216
- this._setElementClass(previousAnimationMode, false);
217
- this._setElementClass(this.animationMode, true);
218
- if (this._isInitialized) {
219
- window.setTimeout(() => {
220
- this.open = false;
221
- });
222
189
  }
223
- }
190
+ });
224
191
  }
225
192
  ngAfterContentInit() {
226
193
  this._isInitialized = true;
227
- this.setActionsVisibility();
228
- this._setElementClass(this.direction, true);
229
- this._setElementClass(this.animationMode, true);
230
- }
231
- ngOnDestroy() {
232
- this._unsetDocumentClickListener();
233
- if (this._openChangeTimeoutId !== null) {
234
- clearTimeout(this._openChangeTimeoutId);
235
- this._openChangeTimeoutId = null;
236
- }
194
+ this._setElementClass(this.direction(), true);
195
+ this._setElementClass(this.animationMode(), true);
237
196
  }
238
197
  toggle() {
239
- this.open = !this.open;
240
- }
241
- // eslint-disable-next-line @typescript-eslint/member-ordering
242
- onClick() {
243
- if (!this.fixed && this.open) {
244
- this.open = false;
245
- }
198
+ this._open.update(v => !v);
199
+ this.setActionsVisibility();
200
+ this.emitOpenChange();
246
201
  }
247
202
  setActionsVisibility() {
248
- if (!this._childActions) {
249
- return;
250
- }
251
- if (this.open) {
252
- this._childActions.show();
203
+ if (this._open()) {
204
+ this._childActions().show();
253
205
  }
254
206
  else {
255
- this._childActions.hide();
207
+ this._childActions().hide();
256
208
  }
257
209
  this._processOutsideClickState();
258
210
  }
211
+ emitOpenChange() {
212
+ if (this._openChangeTimeoutId !== null) {
213
+ clearTimeout(this._openChangeTimeoutId);
214
+ }
215
+ this._openChangeTimeoutId = window.setTimeout(() => {
216
+ this._openChangeTimeoutId = null;
217
+ this.openChange.emit(this._open());
218
+ });
219
+ }
259
220
  _setElementClass(elemClass, isAdd) {
260
221
  const finalClass = `dial-${elemClass}`;
261
222
  if (isAdd) {
@@ -266,7 +227,7 @@ class CmatSpeedDialComponent {
266
227
  }
267
228
  }
268
229
  _processOutsideClickState() {
269
- if (!this.fixed && this.open) {
230
+ if (!this.fixed() && this._open()) {
270
231
  this._setDocumentClickListener();
271
232
  }
272
233
  else {
@@ -275,7 +236,9 @@ class CmatSpeedDialComponent {
275
236
  }
276
237
  _setDocumentClickListener() {
277
238
  this._documentClickUnlistener ??= this._renderer.listen(this._document, 'click', () => {
278
- this.open = false;
239
+ this._open.set(false);
240
+ this.setActionsVisibility();
241
+ this.emitOpenChange();
279
242
  });
280
243
  }
281
244
  _unsetDocumentClickListener() {
@@ -284,73 +247,54 @@ class CmatSpeedDialComponent {
284
247
  this._documentClickUnlistener = null;
285
248
  }
286
249
  }
287
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CmatSpeedDialComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
288
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CmatSpeedDialComponent, isStandalone: true, selector: "cmat-speed-dial", inputs: { fixed: "fixed", open: "open", direction: "direction", animationMode: "animationMode" }, outputs: { openChange: "openChange" }, host: { listeners: { "click": "onClick()" }, properties: { "class.dial-opened": "this.dialOpened" } }, queries: [{ propertyName: "_childActions", first: true, predicate: CmatSpeedDialActionsComponent, descendants: true }], ngImport: i0, template: `
250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: CmatSpeedDialComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
251
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.2", type: CmatSpeedDialComponent, isStandalone: true, selector: "cmat-speed-dial", inputs: { fixed: { classPropertyName: "fixed", publicName: "fixed", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, animationMode: { classPropertyName: "animationMode", publicName: "animationMode", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openChange: "openChange" }, host: { properties: { "class.dial-opened": "dialOpened()" } }, queries: [{ propertyName: "_childActions", first: true, predicate: CmatSpeedDialActionsComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
289
252
  <div class="cmat-speed-dial-container">
290
253
  <ng-content select="cmat-speed-dial-trigger" />
291
254
  <ng-content select="cmat-speed-dial-actions" />
292
255
  </div>
293
- `, isInline: true, styles: ["cmat-speed-dial{display:inline-block}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transform:rotate(360deg);transform:rotate(360deg)}cmat-speed-dial .cmat-speed-dial-container{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;z-index:20}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger{pointer-events:auto;z-index:24}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180,cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transition:all .6s cubic-bezier(.4,0,.2,1);transition:all .6s cubic-bezier(.4,0,.2,1)}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-actions{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;height:0;width:0}cmat-speed-dial.dial-fling .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{display:block;opacity:1;-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2)}cmat-speed-dial.dial-scale .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2);-webkit-transition-duration:.14286s;transition-duration:.14286s}cmat-speed-dial.dial-down cmat-speed-dial-actions{bottom:2px;left:7px}cmat-speed-dial.dial-down .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-top:10px}cmat-speed-dial.dial-up cmat-speed-dial-actions{top:2px;left:7px}cmat-speed-dial.dial-up .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-bottom:10px}cmat-speed-dial.dial-left cmat-speed-dial-actions{top:7px;left:2px}cmat-speed-dial.dial-left .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-right:10px}cmat-speed-dial.dial-right cmat-speed-dial-actions{top:7px;right:2px}cmat-speed-dial.dial-right .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-left:10px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
256
+ `, isInline: true, styles: ["cmat-speed-dial{display:inline-block}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transform:rotate(360deg);transform:rotate(360deg)}cmat-speed-dial .cmat-speed-dial-container{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;z-index:20}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger{pointer-events:auto;z-index:24}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180,cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transition:all .6s cubic-bezier(.4,0,.2,1);transition:all .6s cubic-bezier(.4,0,.2,1)}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-actions{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;height:0;width:0}cmat-speed-dial.dial-fling .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{display:block;opacity:1;-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2)}cmat-speed-dial.dial-scale .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2);-webkit-transition-duration:.14286s;transition-duration:.14286s}cmat-speed-dial.dial-down cmat-speed-dial-actions{bottom:2px;left:0}cmat-speed-dial.dial-down .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-top:10px}cmat-speed-dial.dial-up cmat-speed-dial-actions{top:2px;left:0}cmat-speed-dial.dial-up .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-bottom:10px}cmat-speed-dial.dial-left cmat-speed-dial-actions{top:0;left:2px}cmat-speed-dial.dial-left .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-right:10px}cmat-speed-dial.dial-right cmat-speed-dial-actions{top:0;right:2px}cmat-speed-dial.dial-right .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-left:10px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
294
257
  }
295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CmatSpeedDialComponent, decorators: [{
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: CmatSpeedDialComponent, decorators: [{
296
259
  type: Component,
297
260
  args: [{ selector: 'cmat-speed-dial', template: `
298
261
  <div class="cmat-speed-dial-container">
299
262
  <ng-content select="cmat-speed-dial-trigger" />
300
263
  <ng-content select="cmat-speed-dial-actions" />
301
264
  </div>
302
- `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["cmat-speed-dial{display:inline-block}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transform:rotate(360deg);transform:rotate(360deg)}cmat-speed-dial .cmat-speed-dial-container{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;z-index:20}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger{pointer-events:auto;z-index:24}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180,cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transition:all .6s cubic-bezier(.4,0,.2,1);transition:all .6s cubic-bezier(.4,0,.2,1)}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-actions{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;height:0;width:0}cmat-speed-dial.dial-fling .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{display:block;opacity:1;-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2)}cmat-speed-dial.dial-scale .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2);-webkit-transition-duration:.14286s;transition-duration:.14286s}cmat-speed-dial.dial-down cmat-speed-dial-actions{bottom:2px;left:7px}cmat-speed-dial.dial-down .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-top:10px}cmat-speed-dial.dial-up cmat-speed-dial-actions{top:2px;left:7px}cmat-speed-dial.dial-up .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-bottom:10px}cmat-speed-dial.dial-left cmat-speed-dial-actions{top:7px;left:2px}cmat-speed-dial.dial-left .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-right:10px}cmat-speed-dial.dial-right cmat-speed-dial-actions{top:7px;right:2px}cmat-speed-dial.dial-right .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-left:10px}\n"] }]
303
- }], propDecorators: { openChange: [{
304
- type: Output
305
- }], _childActions: [{
306
- type: ContentChild,
307
- args: [CmatSpeedDialActionsComponent]
308
- }], fixed: [{
309
- type: Input
310
- }], dialOpened: [{
311
- type: HostBinding,
312
- args: ['class.dial-opened']
313
- }], open: [{
314
- type: Input
315
- }], direction: [{
316
- type: Input
317
- }], animationMode: [{
318
- type: Input
319
- }], onClick: [{
320
- type: HostListener,
321
- args: ['click']
322
- }] } });
265
+ `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
266
+ // eslint-disable-next-line @typescript-eslint/naming-convention
267
+ '[class.dial-opened]': 'dialOpened()',
268
+ }, styles: ["cmat-speed-dial{display:inline-block}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}cmat-speed-dial.dial-opened .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transform:rotate(360deg);transform:rotate(360deg)}cmat-speed-dial .cmat-speed-dial-container{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;z-index:20}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger{pointer-events:auto;z-index:24}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin180,cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-trigger.dial-spin .spin360{-webkit-transition:all .6s cubic-bezier(.4,0,.2,1);transition:all .6s cubic-bezier(.4,0,.2,1)}cmat-speed-dial .cmat-speed-dial-container cmat-speed-dial-actions{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;height:0;width:0}cmat-speed-dial.dial-fling .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{display:block;opacity:1;-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2)}cmat-speed-dial.dial-scale .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .3s cubic-bezier(.55,0,.55,.2);transition:all .3s cubic-bezier(.55,0,.55,.2);-webkit-transition-duration:.14286s;transition-duration:.14286s}cmat-speed-dial.dial-down cmat-speed-dial-actions{bottom:2px;left:0}cmat-speed-dial.dial-down .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-down .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-top:10px}cmat-speed-dial.dial-up cmat-speed-dial-actions{top:2px;left:0}cmat-speed-dial.dial-up .cmat-speed-dial-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-up .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-bottom:10px}cmat-speed-dial.dial-left cmat-speed-dial-actions{top:0;left:2px}cmat-speed-dial.dial-left .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-left .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-right:10px}cmat-speed-dial.dial-right cmat-speed-dial-actions{top:0;right:2px}cmat-speed-dial.dial-right .cmat-speed-dial-container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-trigger{-webkit-box-ordinal-group:2;-webkit-order:1;order:1}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-ordinal-group:3;-webkit-order:2;order:2}cmat-speed-dial.dial-right .cmat-speed-dial-container cmat-speed-dial-actions .cmat-action-item{margin-left:10px}\n"] }]
269
+ }], ctorParameters: () => [], propDecorators: { openChange: [{ type: i0.Output, args: ["openChange"] }], fixed: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixed", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], animationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationMode", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], _childActions: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CmatSpeedDialActionsComponent), { isSignal: true }] }] } });
323
270
  class CmatSpeedDialTriggerComponent {
324
271
  constructor() {
325
- this.spin = false;
272
+ this.spin = input(false, /* @ts-ignore */
273
+ ...(ngDevMode ? [{ debugName: "spin" }] : /* istanbul ignore next */ []));
326
274
  this._parent = inject(CmatSpeedDialComponent);
327
275
  }
328
- get sp() {
329
- return this.spin;
330
- }
331
276
  onClick(event) {
332
- if (!this._parent.fixed) {
277
+ if (!this._parent.fixed()) {
333
278
  this._parent.toggle();
334
279
  event.stopPropagation();
335
280
  }
336
281
  }
337
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CmatSpeedDialTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
338
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: CmatSpeedDialTriggerComponent, isStandalone: true, selector: "cmat-speed-dial-trigger", inputs: { spin: "spin" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.dial-spin": "this.sp" } }, ngImport: i0, template: ' <ng-content select="[matFab]" />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
282
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: CmatSpeedDialTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
283
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: CmatSpeedDialTriggerComponent, isStandalone: true, selector: "cmat-speed-dial-trigger", inputs: { spin: { classPropertyName: "spin", publicName: "spin", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.dial-spin": "spin()" } }, ngImport: i0, template: ' <ng-content select="[matFab], [matButton], [matIconButton], [matMiniFab]" />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
339
284
  }
340
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: CmatSpeedDialTriggerComponent, decorators: [{
285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: CmatSpeedDialTriggerComponent, decorators: [{
341
286
  type: Component,
342
287
  args: [{
343
288
  selector: 'cmat-speed-dial-trigger',
344
- template: ' <ng-content select="[matFab]" />',
289
+ template: ' <ng-content select="[matFab], [matButton], [matIconButton], [matMiniFab]" />',
345
290
  encapsulation: ViewEncapsulation.None,
346
- changeDetection: ChangeDetectionStrategy.OnPush
291
+ changeDetection: ChangeDetectionStrategy.OnPush,
292
+ host: {
293
+ // eslint-disable-next-line @typescript-eslint/naming-convention
294
+ '[class.dial-spin]': 'spin()',
295
+ }
347
296
  }]
348
- }], propDecorators: { spin: [{
349
- type: Input
350
- }], sp: [{
351
- type: HostBinding,
352
- args: ['class.dial-spin']
353
- }], onClick: [{
297
+ }], propDecorators: { spin: [{ type: i0.Input, args: [{ isSignal: true, alias: "spin", required: false }] }], onClick: [{
354
298
  type: HostListener,
355
299
  args: ['click', ['$event']]
356
300
  }] } });
@@ -1 +1 @@
1
- {"version":3,"file":"cmat-components-speed-dial.mjs","sources":["../../../projects/cmat/components/speed-dial/speed-dial.component.ts","../../../projects/cmat/components/speed-dial/cmat-components-speed-dial.ts"],"sourcesContent":["import {\r\n AfterContentInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n ContentChild,\r\n ContentChildren,\r\n DestroyRef,\r\n ElementRef,\r\n EventEmitter,\r\n HostBinding,\r\n HostListener,\r\n inject,\r\n Input,\r\n OnDestroy,\r\n Output,\r\n QueryList,\r\n Renderer2,\r\n ViewEncapsulation,\r\n DOCUMENT,\r\n signal,\r\n} from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { MatMiniFabButton } from '@angular/material/button';\r\nimport { forkJoin, fromEvent, Subscription } from 'rxjs';\r\nimport { take } from 'rxjs/operators';\r\n\r\nconst Z_INDEX_ITEM = 23;\r\n\r\nexport type Direction = 'up' | 'down' | 'left' | 'right';\r\nexport type AnimationMode = 'fling' | 'scale';\r\n\r\nfunction getHostElement(button: MatMiniFabButton): HTMLElement {\r\n return button._elementRef.nativeElement;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-speed-dial-actions',\r\n template: `@if (miniFabVisible()) {\r\n <ng-content select=\"[matMiniFab]\" />\r\n }`,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CmatSpeedDialActionsComponent implements AfterContentInit, OnDestroy {\r\n @ContentChildren(MatMiniFabButton) private _buttons!: QueryList<MatMiniFabButton>;\r\n public readonly miniFabVisible = signal(false);\r\n\r\n private readonly _renderer = inject(Renderer2);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n private readonly _parent = inject(CmatSpeedDialComponent);\r\n private _showMiniFabAnimation: number | null = null;\r\n private _hideMiniFab: Subscription | null = null;\r\n private _hideTimeoutId: number | null = null;\r\n\r\n ngAfterContentInit(): void {\r\n this._buttons.changes\r\n .pipe(takeUntilDestroyed(this._destroyRef))\r\n .subscribe(() => {\r\n this._initButtonStates();\r\n this._parent.setActionsVisibility();\r\n });\r\n\r\n this._initButtonStates();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._resetAnimationState();\r\n this._clearHideTimeout();\r\n }\r\n\r\n public show(): void {\r\n this._resetAnimationState();\r\n this._clearHideTimeout();\r\n this.miniFabVisible.set(true);\r\n\r\n this._showMiniFabAnimation = window.setTimeout(() => {\r\n this._showMiniFabAnimation = null;\r\n this._buttons.forEach((button, i) => {\r\n let transitionDelay = 0;\r\n let transform;\r\n if (this._parent.animationMode === 'scale') {\r\n transitionDelay = 3 + 65 * i;\r\n transform = 'scale(1)';\r\n } else {\r\n transform = this._getTranslateFunction('0');\r\n }\r\n\r\n const hostElement = getHostElement(button);\r\n this._changeElementStyle(hostElement, 'transition-delay', transitionDelay.toString() + 'ms');\r\n this._changeElementStyle(hostElement, 'opacity', '1');\r\n this._changeElementStyle(hostElement, 'transform', transform);\r\n });\r\n }, 50);\r\n }\r\n\r\n public hide(): void {\r\n this._resetAnimationState();\r\n this._clearHideTimeout();\r\n\r\n if (this._buttons.length === 0) {\r\n this.miniFabVisible.set(false);\r\n return;\r\n }\r\n\r\n const obs = this._buttons.map((button, i) => {\r\n let opacity = '1';\r\n let transitionDelay = 0;\r\n let transform;\r\n\r\n if (this._parent.animationMode === 'scale') {\r\n transitionDelay = 3 - 65 * i;\r\n transform = 'scale(0)';\r\n opacity = '0';\r\n } else {\r\n transform = this._getTranslateFunction((55 * (i + 1) - i * 5).toString() + 'px');\r\n }\r\n\r\n const hostElement = getHostElement(button);\r\n\r\n this._changeElementStyle(hostElement, 'transition-delay', transitionDelay.toString() + 'ms');\r\n this._changeElementStyle(hostElement, 'opacity', opacity);\r\n this._changeElementStyle(hostElement, 'transform', transform);\r\n\r\n return fromEvent(hostElement, 'transitionend').pipe(take(1));\r\n });\r\n this._hideMiniFab = forkJoin(obs).subscribe(() => {\r\n this._clearHideTimeout();\r\n this.miniFabVisible.set(false);\r\n });\r\n\r\n this._hideTimeoutId = window.setTimeout(() => {\r\n this._hideTimeoutId = null;\r\n if (this._hideMiniFab) {\r\n this._hideMiniFab.unsubscribe();\r\n this._hideMiniFab = null;\r\n }\r\n this.miniFabVisible.set(false);\r\n }, 500);\r\n }\r\n\r\n private _initButtonStates(): void {\r\n this._buttons.forEach((button, i) => {\r\n this._renderer.addClass(getHostElement(button), 'cmat-action-item');\r\n this._changeElementStyle(getHostElement(button), 'z-index', '' + (Z_INDEX_ITEM - i).toString());\r\n });\r\n }\r\n\r\n private _resetAnimationState(): void {\r\n if (this._showMiniFabAnimation !== null) {\r\n clearTimeout(this._showMiniFabAnimation);\r\n this._showMiniFabAnimation = null;\r\n }\r\n if (this._hideMiniFab) {\r\n this._hideMiniFab.unsubscribe();\r\n this._hideMiniFab = null;\r\n }\r\n }\r\n\r\n private _clearHideTimeout(): void {\r\n if (this._hideTimeoutId !== null) {\r\n clearTimeout(this._hideTimeoutId);\r\n this._hideTimeoutId = null;\r\n }\r\n }\r\n\r\n private _getTranslateFunction(value: string): string {\r\n const dir = this._parent.direction;\r\n const translateFn = dir === 'up' || dir === 'down' ? 'translateY' : 'translateX';\r\n const sign = dir === 'down' || dir === 'right' ? '-' : '';\r\n\r\n return translateFn + '(' + sign + value + ')';\r\n }\r\n\r\n private _changeElementStyle(elem: HTMLElement, style: string, value: string): void {\r\n this._renderer.setStyle(elem, style, value);\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-speed-dial',\r\n template: `\r\n <div class=\"cmat-speed-dial-container\">\r\n <ng-content select=\"cmat-speed-dial-trigger\" />\r\n <ng-content select=\"cmat-speed-dial-actions\" />\r\n </div>\r\n `,\r\n styleUrl: './speed-dial.component.scss',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CmatSpeedDialComponent implements OnDestroy, AfterContentInit {\r\n @Output() public readonly openChange = new EventEmitter<boolean>();\r\n @ContentChild(CmatSpeedDialActionsComponent) private _childActions!: CmatSpeedDialActionsComponent;\r\n\r\n private readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\r\n private readonly _renderer = inject(Renderer2);\r\n private readonly _document = inject(DOCUMENT);\r\n\r\n private _isInitialized = false;\r\n private _direction: Direction = 'up';\r\n private _open = false;\r\n private _animationMode: AnimationMode = 'fling';\r\n private _fixed = false;\r\n private _documentClickUnlistener: VoidFunction | null = null;\r\n private _openChangeTimeoutId: number | null = null;\r\n private _dialOpened = signal(false);\r\n\r\n @Input()\r\n public get fixed(): boolean {\r\n return this._fixed;\r\n }\r\n\r\n public set fixed(fixed: boolean) {\r\n this._fixed = fixed;\r\n this._processOutsideClickState();\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n @HostBinding('class.dial-opened')\r\n public get dialOpened(): boolean {\r\n return this._dialOpened();\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n @Input()\r\n public get open(): boolean {\r\n return this._open;\r\n }\r\n\r\n public set open(open: boolean) {\r\n const previousOpen = this._open;\r\n this._open = open;\r\n this._dialOpened.set(this._open);\r\n\r\n if (previousOpen !== this._open) {\r\n if (this._openChangeTimeoutId !== null) {\r\n clearTimeout(this._openChangeTimeoutId);\r\n }\r\n\r\n this._openChangeTimeoutId = window.setTimeout(() => {\r\n this._openChangeTimeoutId = null;\r\n this.openChange.emit(this._open);\r\n });\r\n if (this._isInitialized) {\r\n this.setActionsVisibility();\r\n }\r\n }\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n @Input()\r\n public get direction(): Direction {\r\n return this._direction;\r\n }\r\n\r\n public set direction(direction: Direction) {\r\n const previousDirection = this._direction;\r\n this._direction = direction;\r\n if (previousDirection !== this.direction) {\r\n this._setElementClass(previousDirection, false);\r\n this._setElementClass(this.direction, true);\r\n\r\n if (this._isInitialized) {\r\n this.setActionsVisibility();\r\n }\r\n }\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n @Input()\r\n public get animationMode(): AnimationMode {\r\n return this._animationMode;\r\n }\r\n\r\n public set animationMode(animationMode: AnimationMode) {\r\n const previousAnimationMode = this._animationMode;\r\n this._animationMode = animationMode;\r\n if (previousAnimationMode !== this._animationMode) {\r\n this._setElementClass(previousAnimationMode, false);\r\n this._setElementClass(this.animationMode, true);\r\n\r\n if (this._isInitialized) {\r\n window.setTimeout(() => {\r\n this.open = false;\r\n });\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n ngAfterContentInit(): void {\r\n this._isInitialized = true;\r\n this.setActionsVisibility();\r\n this._setElementClass(this.direction, true);\r\n this._setElementClass(this.animationMode, true);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsetDocumentClickListener();\r\n if (this._openChangeTimeoutId !== null) {\r\n clearTimeout(this._openChangeTimeoutId);\r\n this._openChangeTimeoutId = null;\r\n }\r\n }\r\n\r\n public toggle(): void {\r\n this.open = !this.open;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n @HostListener('click')\r\n public onClick(): void {\r\n if (!this.fixed && this.open) {\r\n this.open = false;\r\n }\r\n }\r\n\r\n public setActionsVisibility(): void {\r\n if (!this._childActions) {\r\n return;\r\n }\r\n if (this.open) {\r\n this._childActions.show();\r\n } else {\r\n this._childActions.hide();\r\n }\r\n this._processOutsideClickState();\r\n }\r\n\r\n private _setElementClass(elemClass: string, isAdd: boolean): void {\r\n const finalClass = `dial-${elemClass}`;\r\n if (isAdd) {\r\n this._renderer.addClass(this._elementRef.nativeElement, finalClass);\r\n } else {\r\n this._renderer.removeClass(this._elementRef.nativeElement, finalClass);\r\n }\r\n }\r\n\r\n private _processOutsideClickState(): void {\r\n if (!this.fixed && this.open) {\r\n this._setDocumentClickListener();\r\n } else {\r\n this._unsetDocumentClickListener();\r\n }\r\n }\r\n\r\n private _setDocumentClickListener(): void {\r\n this._documentClickUnlistener ??= this._renderer.listen(this._document, 'click', () => {\r\n this.open = false;\r\n });\r\n }\r\n\r\n private _unsetDocumentClickListener(): void {\r\n if (this._documentClickUnlistener) {\r\n this._documentClickUnlistener();\r\n this._documentClickUnlistener = null;\r\n }\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-speed-dial-trigger',\r\n template: ' <ng-content select=\"[matFab]\" />',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CmatSpeedDialTriggerComponent {\r\n @Input() public spin = false;\r\n private readonly _parent = inject(CmatSpeedDialComponent);\r\n\r\n @HostBinding('class.dial-spin')\r\n public get sp(): boolean {\r\n return this.spin;\r\n }\r\n\r\n @HostListener('click', ['$event'])\r\n public onClick(event: Event): void {\r\n if (!this._parent.fixed) {\r\n this._parent.togg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AA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAIpC,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,QAAQ,EAAE,mCAAmC;oBAC7C,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC;AAC5C,iBAAA;;sBAEI;;sBAGA,WAAW;uBAAC,iBAAiB;;sBAK7B,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;;;ACzXrC;;AAEG;;;;"}
1
+ {"version":3,"file":"cmat-components-speed-dial.mjs","sources":["../../../projects/cmat/components/speed-dial/speed-dial.component.ts","../../../projects/cmat/components/speed-dial/cmat-components-speed-dial.ts"],"sourcesContent":["import {\r\n AfterContentInit,\r\n ChangeDetectionStrategy,\r\n Component,\r\n contentChildren,\r\n DestroyRef,\r\n ElementRef,\r\n HostListener,\r\n inject,\r\n input,\r\n output,\r\n Renderer2,\r\n ViewEncapsulation,\r\n DOCUMENT,\r\n computed,\r\n effect,\r\n signal,\r\n untracked,\r\n contentChild,\r\n} from '@angular/core';\r\nimport { MatMiniFabButton } from '@angular/material/button';\r\nimport { forkJoin, fromEvent, Subscription } from 'rxjs';\r\nimport { take } from 'rxjs/operators';\r\n\r\nconst Z_INDEX_ITEM = 23;\r\n\r\nexport type Direction = 'up' | 'down' | 'left' | 'right';\r\nexport type AnimationMode = 'fling' | 'scale';\r\n\r\nfunction getHostElement(button: MatMiniFabButton): HTMLElement {\r\n return button._elementRef.nativeElement;\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-speed-dial-actions',\r\n template: `@if (miniFabVisible()) {\r\n <ng-content select=\"[matFab], [matButton], [matIconButton], [matMiniFab]\" />\r\n }`,\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class CmatSpeedDialActionsComponent implements AfterContentInit {\r\n public readonly miniFabVisible = signal(false);\r\n\r\n private readonly _buttons = contentChildren(MatMiniFabButton);\r\n\r\n private readonly _renderer = inject(Renderer2);\r\n\r\n private readonly _parent = inject(CmatSpeedDialComponent);\r\n\r\n private _showMiniFabAnimation: number | null = null;\r\n private _hideMiniFab: Subscription | null = null;\r\n private _hideTimeoutId: number | null = null;\r\n\r\n constructor() {\r\n effect(() => {\r\n const buttons = this._buttons();\r\n\r\n untracked(() => {\r\n if (buttons.length > 0) {\r\n this._initButtonStates();\r\n }\r\n });\r\n });\r\n }\r\n ngAfterContentInit(): void {\r\n this._parent.setActionsVisibility();\r\n }\r\n\r\n public show(): void {\r\n this._resetAnimationState();\r\n this._clearHideTimeout();\r\n this.miniFabVisible.set(true);\r\n\r\n this._showMiniFabAnimation = window.setTimeout(() => {\r\n this._showMiniFabAnimation = null;\r\n const buttons = this._buttons();\r\n buttons.forEach((button, i) => {\r\n let transitionDelay = 0;\r\n let transform;\r\n if (this._parent.animationMode() === 'scale') {\r\n transitionDelay = 3 + 65 * i;\r\n transform = 'scale(1)';\r\n } else {\r\n transform = this._getTranslateFunction('0');\r\n }\r\n\r\n const hostElement = getHostElement(button);\r\n this._changeElementStyle(hostElement, 'transition-delay', transitionDelay.toString() + 'ms');\r\n this._changeElementStyle(hostElement, 'opacity', '1');\r\n this._changeElementStyle(hostElement, 'transform', transform);\r\n });\r\n }, 50);\r\n }\r\n\r\n public hide(): void {\r\n this._resetAnimationState();\r\n this._clearHideTimeout();\r\n\r\n const buttons = this._buttons();\r\n if (buttons.length === 0) {\r\n this.miniFabVisible.set(false);\r\n return;\r\n }\r\n\r\n const obs = buttons.map((button, i) => {\r\n let opacity = '1';\r\n let transitionDelay = 0;\r\n let transform;\r\n\r\n if (this._parent.animationMode() === 'scale') {\r\n transitionDelay = 3 - 65 * i;\r\n transform = 'scale(0)';\r\n opacity = '0';\r\n } else {\r\n transform = this._getTranslateFunction((55 * (i + 1) - i * 5).toString() + 'px');\r\n }\r\n\r\n const hostElement = getHostElement(button);\r\n\r\n this._changeElementStyle(hostElement, 'transition-delay', transitionDelay.toString() + 'ms');\r\n this._changeElementStyle(hostElement, 'opacity', opacity);\r\n this._changeElementStyle(hostElement, 'transform', transform);\r\n\r\n return fromEvent(hostElement, 'transitionend').pipe(take(1));\r\n });\r\n this._hideMiniFab = forkJoin(obs).subscribe(() => {\r\n this._clearHideTimeout();\r\n this.miniFabVisible.set(false);\r\n });\r\n\r\n this._hideTimeoutId = window.setTimeout(() => {\r\n this._hideTimeoutId = null;\r\n if (this._hideMiniFab) {\r\n this._hideMiniFab.unsubscribe();\r\n this._hideMiniFab = null;\r\n }\r\n this.miniFabVisible.set(false);\r\n }, 500);\r\n }\r\n\r\n private _initButtonStates(): void {\r\n const buttons = this._buttons();\r\n buttons.forEach((button, i) => {\r\n this._renderer.addClass(getHostElement(button), 'cmat-action-item');\r\n this._changeElementStyle(getHostElement(button), 'z-index', '' + (Z_INDEX_ITEM - i).toString());\r\n });\r\n }\r\n\r\n private _resetAnimationState(): void {\r\n if (this._showMiniFabAnimation !== null) {\r\n clearTimeout(this._showMiniFabAnimation);\r\n this._showMiniFabAnimation = null;\r\n }\r\n if (this._hideMiniFab) {\r\n this._hideMiniFab.unsubscribe();\r\n this._hideMiniFab = null;\r\n }\r\n }\r\n\r\n private _clearHideTimeout(): void {\r\n if (this._hideTimeoutId !== null) {\r\n clearTimeout(this._hideTimeoutId);\r\n this._hideTimeoutId = null;\r\n }\r\n }\r\n\r\n private _getTranslateFunction(value: string): string {\r\n const dir = this._parent.direction();\r\n const translateFn = dir === 'up' || dir === 'down' ? 'translateY' : 'translateX';\r\n const sign = dir === 'down' || dir === 'right' ? '-' : '';\r\n\r\n return translateFn + '(' + sign + value + ')';\r\n }\r\n\r\n private _changeElementStyle(elem: HTMLElement, style: string, value: string): void {\r\n this._renderer.setStyle(elem, style, value);\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-speed-dial',\r\n template: `\r\n <div class=\"cmat-speed-dial-container\">\r\n <ng-content select=\"cmat-speed-dial-trigger\" />\r\n <ng-content select=\"cmat-speed-dial-actions\" />\r\n </div>\r\n `,\r\n styleUrl: './speed-dial.component.scss',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n '[class.dial-opened]': 'dialOpened()',\r\n }\r\n})\r\nexport class CmatSpeedDialComponent implements AfterContentInit {\r\n public readonly openChange = output<boolean>();\r\n\r\n readonly fixed = input<boolean>(false);\r\n readonly direction = input<Direction>('up');\r\n readonly animationMode = input<AnimationMode>('fling');\r\n readonly open = input<boolean>(false);\r\n\r\n readonly dialOpened = computed(() => this._open());\r\n\r\n private _childActions = contentChild.required(CmatSpeedDialActionsComponent);\r\n\r\n private readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\r\n private readonly _renderer = inject(Renderer2);\r\n private readonly _document = inject(DOCUMENT);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n private _isInitialized = false;\r\n private _documentClickUnlistener: VoidFunction | null = null;\r\n private _openChangeTimeoutId: number | null = null;\r\n private readonly _open = signal(false);\r\n\r\n constructor() {\r\n // Sync external open input to internal state\r\n effect(() => {\r\n const externalOpen = this.open();\r\n setTimeout(() => {\r\n // Use untracked to read current internal state without creating dependency\r\n const currentInternalOpen = untracked(() => this._open());\r\n // Only sync if values differ (external change detected)\r\n if (currentInternalOpen !== externalOpen) {\r\n this._open.set(externalOpen);\r\n\r\n if (this._isInitialized) {\r\n untracked(() => this.setActionsVisibility());\r\n }\r\n }\r\n }, 200);\r\n });\r\n\r\n // Register cleanup logic previously in ngOnDestroy\r\n this._destroyRef.onDestroy(() => {\r\n this._unsetDocumentClickListener();\r\n if (this._openChangeTimeoutId !== null) {\r\n clearTimeout(this._openChangeTimeoutId);\r\n this._openChangeTimeoutId = null;\r\n }\r\n });\r\n }\r\n\r\n ngAfterContentInit(): void {\r\n this._isInitialized = true;\r\n this._setElementClass(this.direction(), true);\r\n this._setElementClass(this.animationMode(), true);\r\n }\r\n\r\n public toggle(): void {\r\n this._open.update(v => !v);\r\n this.setActionsVisibility();\r\n this.emitOpenChange();\r\n }\r\n\r\n public setActionsVisibility(): void {\r\n if (this._open()) {\r\n this._childActions().show();\r\n } else {\r\n this._childActions().hide();\r\n }\r\n this._processOutsideClickState();\r\n }\r\n\r\n private emitOpenChange(): void {\r\n if (this._openChangeTimeoutId !== null) {\r\n clearTimeout(this._openChangeTimeoutId);\r\n }\r\n this._openChangeTimeoutId = window.setTimeout(() => {\r\n this._openChangeTimeoutId = null;\r\n this.openChange.emit(this._open());\r\n });\r\n }\r\n\r\n private _setElementClass(elemClass: string, isAdd: boolean): void {\r\n const finalClass = `dial-${elemClass}`;\r\n if (isAdd) {\r\n this._renderer.addClass(this._elementRef.nativeElement, finalClass);\r\n } else {\r\n this._renderer.removeClass(this._elementRef.nativeElement, finalClass);\r\n }\r\n }\r\n\r\n private _processOutsideClickState(): void {\r\n if (!this.fixed() && this._open()) {\r\n this._setDocumentClickListener();\r\n } else {\r\n this._unsetDocumentClickListener();\r\n }\r\n }\r\n\r\n private _setDocumentClickListener(): void {\r\n this._documentClickUnlistener ??= this._renderer.listen(this._document, 'click', () => {\r\n this._open.set(false);\r\n this.setActionsVisibility();\r\n this.emitOpenChange();\r\n });\r\n }\r\n\r\n private _unsetDocumentClickListener(): void {\r\n if (this._documentClickUnlistener) {\r\n this._documentClickUnlistener();\r\n this._documentClickUnlistener = null;\r\n }\r\n }\r\n}\r\n\r\n@Component({\r\n selector: 'cmat-speed-dial-trigger',\r\n template: ' <ng-content select=\"[matFab], [matButton], [matIconButton], [matMiniFab]\" />',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n '[class.dial-spin]': 'spin()',\r\n }\r\n})\r\nexport class CmatSpeedDialTriggerComponent {\r\n readonly spin = input<boolean>(false);\r\n private readonly _parent = inject(CmatSpeedDialComponent);\r\n\r\n @HostListener('click', ['$event'])\r\n public onClick(event: Event): void {\r\n if (!this._parent.fixed()) {\r\n this._parent.toggle();\r\n event.stopPropagation();\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAwBA,MAAM,YAAY,GAAG,EAAE;AAKvB,SAAS,cAAc,CAAC,MAAwB,EAAA;AAC5C,IAAA,OAAO,MAAM,CAAC,WAAW,CAAC,aAAa;AAC3C;MAUa,6BAA6B,CAAA;AAatC,IAAA,WAAA,GAAA;QAZgB,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,KAAK;2FAAC;QAE7B,IAAA,CAAA,QAAQ,GAAG,eAAe,CAAC,gBAAgB;qFAAC;AAE5C,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAE7B,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAEjD,IAAA,CAAA,qBAAqB,GAAkB,IAAI;QAC3C,IAAA,CAAA,YAAY,GAAwB,IAAI;QACxC,IAAA,CAAA,cAAc,GAAkB,IAAI;QAGxC,MAAM,CAAC,MAAK;AACR,YAAA,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE;YAE/B,SAAS,CAAC,MAAK;AACX,gBAAA,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;oBACpB,IAAI,CAAC,iBAAiB,EAAE;gBAC5B;AACJ,YAAA,CAAC,CAAC;AACN,QAAA,CAAC,CAAC;IACN;IACA,kBAAkB,GAAA;AACd,QAAA,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE;IACvC;IAEO,IAAI,GAAA;QACP,IAAI,CAAC,oBAAoB,E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