@weeehaoooz/talos-ui 0.1.1 → 0.1.2

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 (190) hide show
  1. package/README.md +2 -0
  2. package/fesm2022/{weeehaoooz-talos-ui-button-button-group.mjs → weeehaoooz-talos-ui-button.mjs} +91 -15
  3. package/fesm2022/weeehaoooz-talos-ui-button.mjs.map +1 -0
  4. package/fesm2022/weeehaoooz-talos-ui-data-display.mjs +3110 -0
  5. package/fesm2022/weeehaoooz-talos-ui-data-display.mjs.map +1 -0
  6. package/fesm2022/weeehaoooz-talos-ui-data-viz.mjs +2414 -0
  7. package/fesm2022/weeehaoooz-talos-ui-data-viz.mjs.map +1 -0
  8. package/fesm2022/weeehaoooz-talos-ui-dropdown.mjs +1039 -0
  9. package/fesm2022/weeehaoooz-talos-ui-dropdown.mjs.map +1 -0
  10. package/fesm2022/weeehaoooz-talos-ui-feedback.mjs +2885 -0
  11. package/fesm2022/weeehaoooz-talos-ui-feedback.mjs.map +1 -0
  12. package/fesm2022/weeehaoooz-talos-ui-form.mjs +10799 -0
  13. package/fesm2022/weeehaoooz-talos-ui-form.mjs.map +1 -0
  14. package/fesm2022/weeehaoooz-talos-ui-layout.mjs +1316 -7
  15. package/fesm2022/weeehaoooz-talos-ui-layout.mjs.map +1 -1
  16. package/fesm2022/weeehaoooz-talos-ui-nav.mjs +3 -3
  17. package/fesm2022/weeehaoooz-talos-ui-nav.mjs.map +1 -1
  18. package/fesm2022/weeehaoooz-talos-ui.mjs +21592 -16293
  19. package/fesm2022/weeehaoooz-talos-ui.mjs.map +1 -1
  20. package/package.json +20 -139
  21. package/styles/_breadcrumb.scss +16 -0
  22. package/styles/_button-group.scss +2 -1
  23. package/styles/_buttons.scss +51 -0
  24. package/styles/_dropdown.scss +438 -0
  25. package/styles/_form-controls.scss +13 -0
  26. package/styles/_progress-bar.scss +43 -0
  27. package/styles/_skeleton.scss +176 -0
  28. package/styles/_spinner.scss +58 -0
  29. package/styles/_variables.scss +33 -0
  30. package/styles/index.scss +6 -1
  31. package/types/weeehaoooz-talos-ui-button.d.ts +92 -0
  32. package/types/weeehaoooz-talos-ui-button.d.ts.map +1 -0
  33. package/types/weeehaoooz-talos-ui-data-display.d.ts +1018 -0
  34. package/types/weeehaoooz-talos-ui-data-display.d.ts.map +1 -0
  35. package/types/weeehaoooz-talos-ui-data-viz.d.ts +839 -0
  36. package/types/weeehaoooz-talos-ui-data-viz.d.ts.map +1 -0
  37. package/types/weeehaoooz-talos-ui-dropdown.d.ts +187 -0
  38. package/types/weeehaoooz-talos-ui-dropdown.d.ts.map +1 -0
  39. package/types/weeehaoooz-talos-ui-feedback.d.ts +1495 -0
  40. package/types/weeehaoooz-talos-ui-feedback.d.ts.map +1 -0
  41. package/types/weeehaoooz-talos-ui-form.d.ts +2639 -0
  42. package/types/weeehaoooz-talos-ui-form.d.ts.map +1 -0
  43. package/types/weeehaoooz-talos-ui-layout.d.ts +851 -3
  44. package/types/weeehaoooz-talos-ui-layout.d.ts.map +1 -1
  45. package/types/weeehaoooz-talos-ui-nav.d.ts +1 -1
  46. package/types/weeehaoooz-talos-ui.d.ts +7148 -4629
  47. package/types/weeehaoooz-talos-ui.d.ts.map +1 -1
  48. package/fesm2022/weeehaoooz-talos-ui-button-button-group.mjs.map +0 -1
  49. package/fesm2022/weeehaoooz-talos-ui-button-button.mjs +0 -94
  50. package/fesm2022/weeehaoooz-talos-ui-button-button.mjs.map +0 -1
  51. package/fesm2022/weeehaoooz-talos-ui-data-display-badge.mjs +0 -233
  52. package/fesm2022/weeehaoooz-talos-ui-data-display-badge.mjs.map +0 -1
  53. package/fesm2022/weeehaoooz-talos-ui-data-display-data-grid.mjs +0 -1627
  54. package/fesm2022/weeehaoooz-talos-ui-data-display-data-grid.mjs.map +0 -1
  55. package/fesm2022/weeehaoooz-talos-ui-data-display-status-tag.mjs +0 -361
  56. package/fesm2022/weeehaoooz-talos-ui-data-display-status-tag.mjs.map +0 -1
  57. package/fesm2022/weeehaoooz-talos-ui-data-display-timeline.mjs +0 -312
  58. package/fesm2022/weeehaoooz-talos-ui-data-display-timeline.mjs.map +0 -1
  59. package/fesm2022/weeehaoooz-talos-ui-data-display-trend-indicator.mjs +0 -235
  60. package/fesm2022/weeehaoooz-talos-ui-data-display-trend-indicator.mjs.map +0 -1
  61. package/fesm2022/weeehaoooz-talos-ui-data-viz-category-bar.mjs +0 -462
  62. package/fesm2022/weeehaoooz-talos-ui-data-viz-category-bar.mjs.map +0 -1
  63. package/fesm2022/weeehaoooz-talos-ui-data-viz-heatmap.mjs +0 -805
  64. package/fesm2022/weeehaoooz-talos-ui-data-viz-heatmap.mjs.map +0 -1
  65. package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-donut.mjs +0 -267
  66. package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-donut.mjs.map +0 -1
  67. package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-gauge.mjs +0 -351
  68. package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-gauge.mjs.map +0 -1
  69. package/fesm2022/weeehaoooz-talos-ui-data-viz-sparkline.mjs +0 -566
  70. package/fesm2022/weeehaoooz-talos-ui-data-viz-sparkline.mjs.map +0 -1
  71. package/fesm2022/weeehaoooz-talos-ui-feedback-alert.mjs +0 -534
  72. package/fesm2022/weeehaoooz-talos-ui-feedback-alert.mjs.map +0 -1
  73. package/fesm2022/weeehaoooz-talos-ui-feedback-dialog.mjs +0 -446
  74. package/fesm2022/weeehaoooz-talos-ui-feedback-dialog.mjs.map +0 -1
  75. package/fesm2022/weeehaoooz-talos-ui-feedback-snackbar.mjs +0 -376
  76. package/fesm2022/weeehaoooz-talos-ui-feedback-snackbar.mjs.map +0 -1
  77. package/fesm2022/weeehaoooz-talos-ui-feedback-tooltip.mjs +0 -147
  78. package/fesm2022/weeehaoooz-talos-ui-feedback-tooltip.mjs.map +0 -1
  79. package/fesm2022/weeehaoooz-talos-ui-form-affix.mjs +0 -242
  80. package/fesm2022/weeehaoooz-talos-ui-form-affix.mjs.map +0 -1
  81. package/fesm2022/weeehaoooz-talos-ui-form-autocomplete.mjs +0 -514
  82. package/fesm2022/weeehaoooz-talos-ui-form-autocomplete.mjs.map +0 -1
  83. package/fesm2022/weeehaoooz-talos-ui-form-checkbox.mjs +0 -548
  84. package/fesm2022/weeehaoooz-talos-ui-form-checkbox.mjs.map +0 -1
  85. package/fesm2022/weeehaoooz-talos-ui-form-chips.mjs +0 -692
  86. package/fesm2022/weeehaoooz-talos-ui-form-chips.mjs.map +0 -1
  87. package/fesm2022/weeehaoooz-talos-ui-form-color-picker.mjs +0 -761
  88. package/fesm2022/weeehaoooz-talos-ui-form-color-picker.mjs.map +0 -1
  89. package/fesm2022/weeehaoooz-talos-ui-form-date-picker.mjs +0 -896
  90. package/fesm2022/weeehaoooz-talos-ui-form-date-picker.mjs.map +0 -1
  91. package/fesm2022/weeehaoooz-talos-ui-form-date-range-picker.mjs +0 -872
  92. package/fesm2022/weeehaoooz-talos-ui-form-date-range-picker.mjs.map +0 -1
  93. package/fesm2022/weeehaoooz-talos-ui-form-date-time-picker.mjs +0 -119
  94. package/fesm2022/weeehaoooz-talos-ui-form-date-time-picker.mjs.map +0 -1
  95. package/fesm2022/weeehaoooz-talos-ui-form-date-time-range-picker.mjs +0 -135
  96. package/fesm2022/weeehaoooz-talos-ui-form-date-time-range-picker.mjs.map +0 -1
  97. package/fesm2022/weeehaoooz-talos-ui-form-drop-zone.mjs +0 -666
  98. package/fesm2022/weeehaoooz-talos-ui-form-drop-zone.mjs.map +0 -1
  99. package/fesm2022/weeehaoooz-talos-ui-form-form-field.mjs +0 -147
  100. package/fesm2022/weeehaoooz-talos-ui-form-form-field.mjs.map +0 -1
  101. package/fesm2022/weeehaoooz-talos-ui-form-input.mjs +0 -33
  102. package/fesm2022/weeehaoooz-talos-ui-form-input.mjs.map +0 -1
  103. package/fesm2022/weeehaoooz-talos-ui-form-otp.mjs +0 -455
  104. package/fesm2022/weeehaoooz-talos-ui-form-otp.mjs.map +0 -1
  105. package/fesm2022/weeehaoooz-talos-ui-form-password-input.mjs +0 -379
  106. package/fesm2022/weeehaoooz-talos-ui-form-password-input.mjs.map +0 -1
  107. package/fesm2022/weeehaoooz-talos-ui-form-radio.mjs +0 -297
  108. package/fesm2022/weeehaoooz-talos-ui-form-radio.mjs.map +0 -1
  109. package/fesm2022/weeehaoooz-talos-ui-form-range-input.mjs +0 -661
  110. package/fesm2022/weeehaoooz-talos-ui-form-range-input.mjs.map +0 -1
  111. package/fesm2022/weeehaoooz-talos-ui-form-rating.mjs +0 -346
  112. package/fesm2022/weeehaoooz-talos-ui-form-rating.mjs.map +0 -1
  113. package/fesm2022/weeehaoooz-talos-ui-form-select-input.mjs +0 -896
  114. package/fesm2022/weeehaoooz-talos-ui-form-select-input.mjs.map +0 -1
  115. package/fesm2022/weeehaoooz-talos-ui-form-slide-toggle.mjs +0 -252
  116. package/fesm2022/weeehaoooz-talos-ui-form-slide-toggle.mjs.map +0 -1
  117. package/fesm2022/weeehaoooz-talos-ui-form-transfer-list.mjs +0 -916
  118. package/fesm2022/weeehaoooz-talos-ui-form-transfer-list.mjs.map +0 -1
  119. package/types/weeehaoooz-talos-ui-button-button-group.d.ts +0 -62
  120. package/types/weeehaoooz-talos-ui-button-button-group.d.ts.map +0 -1
  121. package/types/weeehaoooz-talos-ui-button-button.d.ts +0 -38
  122. package/types/weeehaoooz-talos-ui-button-button.d.ts.map +0 -1
  123. package/types/weeehaoooz-talos-ui-data-display-badge.d.ts +0 -119
  124. package/types/weeehaoooz-talos-ui-data-display-badge.d.ts.map +0 -1
  125. package/types/weeehaoooz-talos-ui-data-display-data-grid.d.ts +0 -272
  126. package/types/weeehaoooz-talos-ui-data-display-data-grid.d.ts.map +0 -1
  127. package/types/weeehaoooz-talos-ui-data-display-status-tag.d.ts +0 -135
  128. package/types/weeehaoooz-talos-ui-data-display-status-tag.d.ts.map +0 -1
  129. package/types/weeehaoooz-talos-ui-data-display-timeline.d.ts +0 -144
  130. package/types/weeehaoooz-talos-ui-data-display-timeline.d.ts.map +0 -1
  131. package/types/weeehaoooz-talos-ui-data-display-trend-indicator.d.ts +0 -83
  132. package/types/weeehaoooz-talos-ui-data-display-trend-indicator.d.ts.map +0 -1
  133. package/types/weeehaoooz-talos-ui-data-viz-category-bar.d.ts +0 -255
  134. package/types/weeehaoooz-talos-ui-data-viz-category-bar.d.ts.map +0 -1
  135. package/types/weeehaoooz-talos-ui-data-viz-heatmap.d.ts +0 -204
  136. package/types/weeehaoooz-talos-ui-data-viz-heatmap.d.ts.map +0 -1
  137. package/types/weeehaoooz-talos-ui-data-viz-mini-donut.d.ts +0 -101
  138. package/types/weeehaoooz-talos-ui-data-viz-mini-donut.d.ts.map +0 -1
  139. package/types/weeehaoooz-talos-ui-data-viz-mini-gauge.d.ts +0 -138
  140. package/types/weeehaoooz-talos-ui-data-viz-mini-gauge.d.ts.map +0 -1
  141. package/types/weeehaoooz-talos-ui-data-viz-sparkline.d.ts +0 -161
  142. package/types/weeehaoooz-talos-ui-data-viz-sparkline.d.ts.map +0 -1
  143. package/types/weeehaoooz-talos-ui-feedback-alert.d.ts +0 -212
  144. package/types/weeehaoooz-talos-ui-feedback-alert.d.ts.map +0 -1
  145. package/types/weeehaoooz-talos-ui-feedback-dialog.d.ts +0 -259
  146. package/types/weeehaoooz-talos-ui-feedback-dialog.d.ts.map +0 -1
  147. package/types/weeehaoooz-talos-ui-feedback-snackbar.d.ts +0 -147
  148. package/types/weeehaoooz-talos-ui-feedback-snackbar.d.ts.map +0 -1
  149. package/types/weeehaoooz-talos-ui-feedback-tooltip.d.ts +0 -32
  150. package/types/weeehaoooz-talos-ui-feedback-tooltip.d.ts.map +0 -1
  151. package/types/weeehaoooz-talos-ui-form-affix.d.ts +0 -88
  152. package/types/weeehaoooz-talos-ui-form-affix.d.ts.map +0 -1
  153. package/types/weeehaoooz-talos-ui-form-autocomplete.d.ts +0 -113
  154. package/types/weeehaoooz-talos-ui-form-autocomplete.d.ts.map +0 -1
  155. package/types/weeehaoooz-talos-ui-form-checkbox.d.ts +0 -165
  156. package/types/weeehaoooz-talos-ui-form-checkbox.d.ts.map +0 -1
  157. package/types/weeehaoooz-talos-ui-form-chips.d.ts +0 -152
  158. package/types/weeehaoooz-talos-ui-form-chips.d.ts.map +0 -1
  159. package/types/weeehaoooz-talos-ui-form-color-picker.d.ts +0 -144
  160. package/types/weeehaoooz-talos-ui-form-color-picker.d.ts.map +0 -1
  161. package/types/weeehaoooz-talos-ui-form-date-picker.d.ts +0 -138
  162. package/types/weeehaoooz-talos-ui-form-date-picker.d.ts.map +0 -1
  163. package/types/weeehaoooz-talos-ui-form-date-range-picker.d.ts +0 -148
  164. package/types/weeehaoooz-talos-ui-form-date-range-picker.d.ts.map +0 -1
  165. package/types/weeehaoooz-talos-ui-form-date-time-picker.d.ts +0 -44
  166. package/types/weeehaoooz-talos-ui-form-date-time-picker.d.ts.map +0 -1
  167. package/types/weeehaoooz-talos-ui-form-date-time-range-picker.d.ts +0 -48
  168. package/types/weeehaoooz-talos-ui-form-date-time-range-picker.d.ts.map +0 -1
  169. package/types/weeehaoooz-talos-ui-form-drop-zone.d.ts +0 -227
  170. package/types/weeehaoooz-talos-ui-form-drop-zone.d.ts.map +0 -1
  171. package/types/weeehaoooz-talos-ui-form-form-field.d.ts +0 -42
  172. package/types/weeehaoooz-talos-ui-form-form-field.d.ts.map +0 -1
  173. package/types/weeehaoooz-talos-ui-form-input.d.ts +0 -15
  174. package/types/weeehaoooz-talos-ui-form-input.d.ts.map +0 -1
  175. package/types/weeehaoooz-talos-ui-form-otp.d.ts +0 -111
  176. package/types/weeehaoooz-talos-ui-form-otp.d.ts.map +0 -1
  177. package/types/weeehaoooz-talos-ui-form-password-input.d.ts +0 -145
  178. package/types/weeehaoooz-talos-ui-form-password-input.d.ts.map +0 -1
  179. package/types/weeehaoooz-talos-ui-form-radio.d.ts +0 -84
  180. package/types/weeehaoooz-talos-ui-form-radio.d.ts.map +0 -1
  181. package/types/weeehaoooz-talos-ui-form-range-input.d.ts +0 -181
  182. package/types/weeehaoooz-talos-ui-form-range-input.d.ts.map +0 -1
  183. package/types/weeehaoooz-talos-ui-form-rating.d.ts +0 -110
  184. package/types/weeehaoooz-talos-ui-form-rating.d.ts.map +0 -1
  185. package/types/weeehaoooz-talos-ui-form-select-input.d.ts +0 -195
  186. package/types/weeehaoooz-talos-ui-form-select-input.d.ts.map +0 -1
  187. package/types/weeehaoooz-talos-ui-form-slide-toggle.d.ts +0 -79
  188. package/types/weeehaoooz-talos-ui-form-slide-toggle.d.ts.map +0 -1
  189. package/types/weeehaoooz-talos-ui-form-transfer-list.d.ts +0 -192
  190. package/types/weeehaoooz-talos-ui-form-transfer-list.d.ts.map +0 -1
@@ -0,0 +1,3110 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, Renderer2, DestroyRef, input, computed, effect, Directive, NgModule, TemplateRef, output, Component, contentChild, signal, Pipe, linkedSignal, ContentChild } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { NgComponentOutlet, NgTemplateOutlet, CommonModule, DatePipe, KeyValuePipe } from '@angular/common';
5
+ import { RouterLink } from '@angular/router';
6
+ import { LucideChevronRight, LucideClock, LucideClockAlert, LucideBan, LucideCircleAlert, LucideCheckCheck, LucideCheckCircle2, LucideFastForward, LucideRotateCcw, LucideCirclePause, LucideLoader2, LucideSparkles, LucideSearch, LucideX, LucideArrowUp, LucideArrowDown, LucideArrowUpDown, LucideChevronLeft, LucideChevronsLeft, LucideChevronsRight, LucideInbox, LucideFilter, LucideInfo, LucideAlertTriangle, LucideAlertCircle, LucideCheck, LucideChevronDown, LucideChevronUp, LucideUser } from '@lucide/angular';
7
+ import { TalosButtonDirective } from '@weeehaoooz/talos-ui/button';
8
+ import { TalosTooltipDirective } from '@weeehaoooz/talos-ui/feedback';
9
+ import * as i1$1 from '@angular/forms';
10
+ import { FormsModule } from '@angular/forms';
11
+ import { DatePickerComponent, TalosCheckboxComponent, SelectInputComponent, OptionComponent, TalosInputDirective } from '@weeehaoooz/talos-ui/form';
12
+ import * as i1$2 from '@angular/cdk/overlay';
13
+ import { OverlayModule, CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
14
+
15
+ /**
16
+ * Formats badge content taking into account max threshold clamping, dot mode, and null values.
17
+ *
18
+ * @param content The raw badge content (number, string, or null/undefined)
19
+ * @param max The maximum numerical threshold before displaying with a '+' post-script (e.g. 99+)
20
+ * @param dot Whether the badge is operating in dot indicator mode
21
+ * @returns The formatted string to be rendered inside the badge
22
+ */
23
+ function formatBadgeContent(content, max, dot = false) {
24
+ if (dot || content === null || content === undefined || content === '') {
25
+ return '';
26
+ }
27
+ if (typeof content === 'number') {
28
+ if (typeof max === 'number' && max >= 0 && content > max) {
29
+ return `${max}+`;
30
+ }
31
+ return content.toString();
32
+ }
33
+ const trimmed = content.toString().trim();
34
+ if (trimmed === '') {
35
+ return '';
36
+ }
37
+ const parsedNumber = Number(trimmed);
38
+ if (!isNaN(parsedNumber) && typeof max === 'number' && max >= 0) {
39
+ if (parsedNumber > max) {
40
+ return `${max}+`;
41
+ }
42
+ }
43
+ return trimmed;
44
+ }
45
+
46
+ class TalosBadgeDirective {
47
+ elementRef = inject(ElementRef);
48
+ renderer = inject(Renderer2);
49
+ destroyRef = inject(DestroyRef);
50
+ /**
51
+ * The content to display inside the badge.
52
+ * Can be a number, string, or null/undefined.
53
+ */
54
+ content = input(null, { ...(ngDevMode ? { debugName: "content" } : /* istanbul ignore next */ {}), alias: 'talosBadge' });
55
+ /**
56
+ * Maximum numeric value to display before appending '+'.
57
+ * For example, max = 99 will display 100 as '99+'.
58
+ */
59
+ max = input(undefined, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), alias: 'talosBadgeMax' });
60
+ /**
61
+ * Size scale of the badge.
62
+ * @default 'md'
63
+ */
64
+ size = input('md', { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), alias: 'talosBadgeSize' });
65
+ /**
66
+ * Anchor position of the badge relative to the host element.
67
+ * @default 'top-right'
68
+ */
69
+ position = input('top-right', { ...(ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {}), alias: 'talosBadgePosition' });
70
+ /**
71
+ * Visual variant/color theme of the badge.
72
+ * @default 'primary'
73
+ */
74
+ variant = input('primary', { ...(ngDevMode ? { debugName: "variant" } : /* istanbul ignore next */ {}), alias: 'talosBadgeVariant' });
75
+ /**
76
+ * Shape style of the badge container.
77
+ * @default 'circle'
78
+ */
79
+ shape = input('circle', { ...(ngDevMode ? { debugName: "shape" } : /* istanbul ignore next */ {}), alias: 'talosBadgeShape' });
80
+ /**
81
+ * Whether to display the badge as a small indicator dot without text content.
82
+ * @default false
83
+ */
84
+ dot = input(false, { ...(ngDevMode ? { debugName: "dot" } : /* istanbul ignore next */ {}), alias: 'talosBadgeDot' });
85
+ /**
86
+ * Whether to enable an animated pulse/ripple effect for notifications.
87
+ * @default false
88
+ */
89
+ pulse = input(false, { ...(ngDevMode ? { debugName: "pulse" } : /* istanbul ignore next */ {}), alias: 'talosBadgePulse' });
90
+ /**
91
+ * Whether the badge is hidden from view.
92
+ * @default false
93
+ */
94
+ hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), alias: 'talosBadgeHidden' });
95
+ /**
96
+ * Whether the badge overlaps the edge of the host component.
97
+ * @default true
98
+ */
99
+ overlap = input(true, { ...(ngDevMode ? { debugName: "overlap" } : /* istanbul ignore next */ {}), alias: 'talosBadgeOverlap' });
100
+ /**
101
+ * Accessible description/label for screen readers.
102
+ */
103
+ ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'talosBadgeAriaLabel' });
104
+ /**
105
+ * Computed formatted text content for the badge.
106
+ */
107
+ formattedContent = computed(() => {
108
+ return formatBadgeContent(this.content(), this.max(), this.dot());
109
+ }, /* @ts-ignore */
110
+ ...(ngDevMode ? [{ debugName: "formattedContent" }] : /* istanbul ignore next */ []));
111
+ /**
112
+ * Whether the badge should actively render in the DOM and be visible.
113
+ */
114
+ shouldRender = computed(() => {
115
+ if (this.hidden()) {
116
+ return false;
117
+ }
118
+ if (this.dot()) {
119
+ return true;
120
+ }
121
+ const c = this.content();
122
+ return c !== null && c !== undefined && c !== '';
123
+ }, /* @ts-ignore */
124
+ ...(ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []));
125
+ /**
126
+ * Computed host aria-label override when provided.
127
+ */
128
+ resolvedHostAriaLabel = computed(() => {
129
+ const custom = this.ariaLabel();
130
+ if (custom !== undefined && custom !== null && custom.trim().length > 0) {
131
+ return custom;
132
+ }
133
+ return null;
134
+ }, /* @ts-ignore */
135
+ ...(ngDevMode ? [{ debugName: "resolvedHostAriaLabel" }] : /* istanbul ignore next */ []));
136
+ badgeElement = null;
137
+ constructor() {
138
+ // Reactive effect to synchronize the badge DOM element whenever signal inputs change
139
+ effect(() => {
140
+ this.updateBadgeDom();
141
+ });
142
+ this.destroyRef.onDestroy(() => {
143
+ this.removeBadgeDom();
144
+ });
145
+ }
146
+ /**
147
+ * Returns the native badge element for inspection or testing.
148
+ */
149
+ get nativeBadgeElement() {
150
+ return this.badgeElement;
151
+ }
152
+ updateBadgeDom() {
153
+ const isVisible = this.shouldRender();
154
+ if (!isVisible) {
155
+ if (this.badgeElement) {
156
+ this.renderer.addClass(this.badgeElement, 'talos-badge--hidden');
157
+ this.renderer.setStyle(this.badgeElement, 'display', 'none');
158
+ }
159
+ return;
160
+ }
161
+ if (!this.badgeElement) {
162
+ this.badgeElement = this.renderer.createElement('span');
163
+ this.renderer.addClass(this.badgeElement, 'talos-badge');
164
+ this.renderer.setAttribute(this.badgeElement, 'aria-hidden', 'true');
165
+ this.renderer.appendChild(this.elementRef.nativeElement, this.badgeElement);
166
+ }
167
+ const badgeEl = this.badgeElement;
168
+ if (!badgeEl) {
169
+ return;
170
+ }
171
+ // Reset visibility styles
172
+ this.renderer.removeClass(badgeEl, 'talos-badge--hidden');
173
+ this.renderer.removeStyle(badgeEl, 'display');
174
+ // Update text content
175
+ const text = this.formattedContent();
176
+ this.renderer.setProperty(badgeEl, 'textContent', text);
177
+ // Apply classes for size, position, variant, shape, etc.
178
+ const size = this.size();
179
+ const pos = this.position();
180
+ const variant = this.variant();
181
+ const shape = this.shape();
182
+ const isDot = this.dot();
183
+ const isPulse = this.pulse();
184
+ const isOverlap = this.overlap();
185
+ const isMultiChar = text.length > 1;
186
+ // Reset base class list and re-apply active classes
187
+ badgeEl.className = 'talos-badge';
188
+ this.renderer.addClass(badgeEl, `talos-badge--${size}`);
189
+ this.renderer.addClass(badgeEl, `talos-badge--${pos}`);
190
+ this.renderer.addClass(badgeEl, `talos-badge--${variant}`);
191
+ this.renderer.addClass(badgeEl, `talos-badge--${shape}`);
192
+ if (isDot) {
193
+ this.renderer.addClass(badgeEl, 'talos-badge--dot');
194
+ }
195
+ if (isPulse) {
196
+ this.renderer.addClass(badgeEl, 'talos-badge--pulse');
197
+ }
198
+ if (isOverlap) {
199
+ this.renderer.addClass(badgeEl, 'talos-badge--overlap');
200
+ }
201
+ if (isMultiChar && !isDot) {
202
+ this.renderer.addClass(badgeEl, 'talos-badge--pill');
203
+ }
204
+ }
205
+ removeBadgeDom() {
206
+ if (this.badgeElement) {
207
+ this.renderer.removeChild(this.elementRef.nativeElement, this.badgeElement);
208
+ this.badgeElement = null;
209
+ }
210
+ }
211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBadgeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
212
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: TalosBadgeDirective, isStandalone: true, selector: "[talosBadge], [talos-badge]", inputs: { content: { classPropertyName: "content", publicName: "talosBadge", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "talosBadgeMax", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "talosBadgeSize", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "talosBadgePosition", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "talosBadgeVariant", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "talosBadgeShape", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "talosBadgeDot", isSignal: true, isRequired: false, transformFunction: null }, pulse: { classPropertyName: "pulse", publicName: "talosBadgePulse", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "talosBadgeHidden", isSignal: true, isRequired: false, transformFunction: null }, overlap: { classPropertyName: "overlap", publicName: "talosBadgeOverlap", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "talosBadgeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.talos-badge-host--has-badge": "shouldRender()", "attr.aria-label": "resolvedHostAriaLabel()" }, classAttribute: "talos-badge-host" }, ngImport: i0 });
213
+ }
214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBadgeDirective, decorators: [{
215
+ type: Directive,
216
+ args: [{
217
+ selector: '[talosBadge], [talos-badge]',
218
+ host: {
219
+ 'class': 'talos-badge-host',
220
+ '[class.talos-badge-host--has-badge]': 'shouldRender()',
221
+ '[attr.aria-label]': 'resolvedHostAriaLabel()'
222
+ }
223
+ }]
224
+ }], ctorParameters: () => [], propDecorators: { content: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadge", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeMax", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeSize", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgePosition", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeVariant", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeShape", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeDot", required: false }] }], pulse: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgePulse", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeHidden", required: false }] }], overlap: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeOverlap", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "talosBadgeAriaLabel", required: false }] }] } });
225
+
226
+ class TalosBadgeModule {
227
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
228
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosBadgeModule, imports: [TalosBadgeDirective], exports: [TalosBadgeDirective] });
229
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBadgeModule });
230
+ }
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBadgeModule, decorators: [{
232
+ type: NgModule,
233
+ args: [{
234
+ imports: [TalosBadgeDirective],
235
+ exports: [TalosBadgeDirective]
236
+ }]
237
+ }] });
238
+
239
+ /**
240
+ * Directive for projecting a custom separator template into `<talos-breadcrumb>`.
241
+ *
242
+ * @example
243
+ * ```html
244
+ * <talos-breadcrumb [items]="crumbs">
245
+ * <ng-template talosBreadcrumbSeparator>
246
+ * <span class="custom-slash">~</span>
247
+ * </ng-template>
248
+ * </talos-breadcrumb>
249
+ * ```
250
+ */
251
+ class TalosBreadcrumbSeparatorDirective {
252
+ templateRef = inject(TemplateRef);
253
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
254
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosBreadcrumbSeparatorDirective, isStandalone: true, selector: "[talosBreadcrumbSeparator]", ngImport: i0 });
255
+ }
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbSeparatorDirective, decorators: [{
257
+ type: Directive,
258
+ args: [{
259
+ selector: '[talosBreadcrumbSeparator]'
260
+ }]
261
+ }] });
262
+ /**
263
+ * Directive for custom rendering of individual breadcrumb items.
264
+ *
265
+ * @example
266
+ * ```html
267
+ * <talos-breadcrumb [items]="crumbs">
268
+ * <ng-template talosBreadcrumbItemDef let-item let-isLast="isLast">
269
+ * <span class="custom-node">{{ item.label }}</span>
270
+ * </ng-template>
271
+ * </talos-breadcrumb>
272
+ * ```
273
+ */
274
+ class TalosBreadcrumbItemDefDirective {
275
+ templateRef = inject(TemplateRef);
276
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbItemDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
277
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosBreadcrumbItemDefDirective, isStandalone: true, selector: "[talosBreadcrumbItemDef]", ngImport: i0 });
278
+ }
279
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbItemDefDirective, decorators: [{
280
+ type: Directive,
281
+ args: [{
282
+ selector: '[talosBreadcrumbItemDef]'
283
+ }]
284
+ }] });
285
+
286
+ class TalosBreadcrumbItemComponent {
287
+ /**
288
+ * Text label for this item. Can be provided via input or ng-content.
289
+ */
290
+ label = input(null, /* @ts-ignore */
291
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
292
+ /**
293
+ * Standard URL hyperlink. When provided and not disabled, renders as an interactive anchor link.
294
+ */
295
+ href = input(null, /* @ts-ignore */
296
+ ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
297
+ /**
298
+ * Angular router link navigation path or command segments.
299
+ */
300
+ routerLink = input(null, /* @ts-ignore */
301
+ ...(ngDevMode ? [{ debugName: "routerLink" }] : /* istanbul ignore next */ []));
302
+ /**
303
+ * Optional icon component to render before the item label.
304
+ */
305
+ icon = input(null, /* @ts-ignore */
306
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
307
+ /**
308
+ * Whether this breadcrumb item is disabled.
309
+ * @default false
310
+ */
311
+ disabled = input(false, /* @ts-ignore */
312
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
313
+ /**
314
+ * Whether this item represents the current active page in the navigation hierarchy.
315
+ * Current items are non-interactive and decorated with aria-current="page".
316
+ * @default false
317
+ */
318
+ current = input(false, /* @ts-ignore */
319
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
320
+ /**
321
+ * Accessible description / aria-label for screen readers.
322
+ */
323
+ ariaLabel = input(null, /* @ts-ignore */
324
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
325
+ /**
326
+ * Size scale inherited from the parent breadcrumb or set directly.
327
+ * @default 'md'
328
+ */
329
+ size = input('md', /* @ts-ignore */
330
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
331
+ /**
332
+ * Target window/tab attribute when href is used (e.g. '_blank').
333
+ */
334
+ target = input(null, /* @ts-ignore */
335
+ ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
336
+ /**
337
+ * Native title attribute for tooltip display.
338
+ */
339
+ title = input(null, /* @ts-ignore */
340
+ ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
341
+ /**
342
+ * Emitted when this breadcrumb item is clicked or activated via keyboard.
343
+ */
344
+ itemClick = output();
345
+ /**
346
+ * Whether this item should render as an interactive link.
347
+ */
348
+ isLink = computed(() => {
349
+ if (this.current() || this.disabled()) {
350
+ return false;
351
+ }
352
+ return Boolean(this.href() || this.routerLink() || this.itemClick);
353
+ }, /* @ts-ignore */
354
+ ...(ngDevMode ? [{ debugName: "isLink" }] : /* istanbul ignore next */ []));
355
+ onLinkClick(event) {
356
+ if (this.disabled() || this.current()) {
357
+ event.preventDefault();
358
+ event.stopPropagation();
359
+ return;
360
+ }
361
+ this.itemClick.emit(event);
362
+ }
363
+ onKeydown(event) {
364
+ if (this.disabled() || this.current()) {
365
+ return;
366
+ }
367
+ if (event.key === 'Enter' || event.key === ' ') {
368
+ if (event.key === ' ') {
369
+ event.preventDefault();
370
+ }
371
+ this.itemClick.emit(event);
372
+ }
373
+ }
374
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
375
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosBreadcrumbItemComponent, isStandalone: true, selector: "talos-breadcrumb-item, [talosBreadcrumbItem]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "class.talos-breadcrumb-item--current": "current()", "class.talos-breadcrumb-item--disabled": "disabled()", "class.talos-breadcrumb-item--link": "isLink()", "class.talos-breadcrumb-item--xs": "size() === \"xs\"", "class.talos-breadcrumb-item--sm": "size() === \"sm\"", "class.talos-breadcrumb-item--md": "size() === \"md\"", "class.talos-breadcrumb-item--lg": "size() === \"lg\"" }, classAttribute: "talos-breadcrumb-item" }, ngImport: i0, template: "<ng-template #contentTpl>\n @if (icon()) {\n <span class=\"talos-breadcrumb-item__icon\" aria-hidden=\"true\">\n <ng-container *ngComponentOutlet=\"icon()!\" />\n </span>\n }\n <span class=\"talos-breadcrumb-item__label\">\n @if (label()) {\n {{ label() }}\n } @else {\n <ng-content />\n }\n </span>\n</ng-template>\n\n@if (isLink()) {\n @if (routerLink()) {\n <a\n [routerLink]=\"routerLink()!\"\n [attr.target]=\"target() || null\"\n [attr.title]=\"title() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n class=\"talos-breadcrumb-item__anchor\"\n (click)=\"onLinkClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </a>\n } @else {\n <a\n [attr.href]=\"href() || 'javascript:void(0)'\"\n [attr.target]=\"target() || null\"\n [attr.title]=\"title() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n class=\"talos-breadcrumb-item__anchor\"\n (click)=\"onLinkClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </a>\n }\n} @else {\n <span\n [attr.title]=\"title() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-current]=\"current() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n class=\"talos-breadcrumb-item__text\"\n >\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </span>\n}\n", styles: [":host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:inherit;line-height:1.5;white-space:nowrap}:host.talos-breadcrumb-item--xs{font-size:.75rem}:host.talos-breadcrumb-item--xs .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--xs .talos-breadcrumb-item__text{gap:.25rem}:host.talos-breadcrumb-item--xs .talos-breadcrumb-item__icon{width:.875rem;height:.875rem}:host.talos-breadcrumb-item--sm{font-size:.8125rem}:host.talos-breadcrumb-item--sm .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--sm .talos-breadcrumb-item__text{gap:.3125rem}:host.talos-breadcrumb-item--sm .talos-breadcrumb-item__icon{width:.9375rem;height:.9375rem}:host.talos-breadcrumb-item--md{font-size:.875rem}:host.talos-breadcrumb-item--md .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--md .talos-breadcrumb-item__text{gap:.375rem}:host.talos-breadcrumb-item--md .talos-breadcrumb-item__icon{width:1rem;height:1rem}:host.talos-breadcrumb-item--lg{font-size:1rem}:host.talos-breadcrumb-item--lg .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--lg .talos-breadcrumb-item__text{gap:.5rem}:host.talos-breadcrumb-item--lg .talos-breadcrumb-item__icon{width:1.125rem;height:1.125rem}:host.talos-breadcrumb-item--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.talos-breadcrumb-item__anchor,.talos-breadcrumb-item__text{display:inline-flex;align-items:center;box-sizing:border-box;padding:.125rem .25rem;border-radius:var(--talos-border-radius-sm, var(--border-radius-sm, .25rem));text-decoration:none;color:var(--talos-text-muted, var(--text-muted, #64748b));transition:color .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1)}.talos-breadcrumb-item__anchor:focus-visible,.talos-breadcrumb-item__text:focus-visible{outline:none;box-shadow:var(--talos-focus-ring, 0 0 0 3px rgba(37, 99, 235, .25));border-color:var(--talos-primary-color, #2563eb);color:var(--talos-primary-color, #2563eb)}.talos-breadcrumb-item__anchor{cursor:pointer}.talos-breadcrumb-item__anchor:hover{color:var(--talos-primary-color, var(--primary-color, #2563eb));background-color:var(--talos-primary-light, rgba(37, 99, 235, .04))}.talos-breadcrumb-item__anchor:active{opacity:.85}.talos-breadcrumb-item__text{cursor:default}:host(.talos-breadcrumb-item--current) .talos-breadcrumb-item__text,:host(.talos-breadcrumb-item--current) .talos-breadcrumb-item__anchor{font-weight:600;color:var(--talos-text-color, var(--text-color, #0f172a));cursor:default;pointer-events:none}.talos-breadcrumb-item__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.talos-breadcrumb-item__icon svg,.talos-breadcrumb-item__icon ::ng-deep svg{width:100%;height:100%;stroke-width:2}.talos-breadcrumb-item__label{display:inline-block;line-height:inherit}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }] });
376
+ }
377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbItemComponent, decorators: [{
378
+ type: Component,
379
+ args: [{ selector: 'talos-breadcrumb-item, [talosBreadcrumbItem]', imports: [NgComponentOutlet, NgTemplateOutlet, RouterLink], host: {
380
+ 'class': 'talos-breadcrumb-item',
381
+ '[class.talos-breadcrumb-item--current]': 'current()',
382
+ '[class.talos-breadcrumb-item--disabled]': 'disabled()',
383
+ '[class.talos-breadcrumb-item--link]': 'isLink()',
384
+ '[class.talos-breadcrumb-item--xs]': 'size() === "xs"',
385
+ '[class.talos-breadcrumb-item--sm]': 'size() === "sm"',
386
+ '[class.talos-breadcrumb-item--md]': 'size() === "md"',
387
+ '[class.talos-breadcrumb-item--lg]': 'size() === "lg"'
388
+ }, template: "<ng-template #contentTpl>\n @if (icon()) {\n <span class=\"talos-breadcrumb-item__icon\" aria-hidden=\"true\">\n <ng-container *ngComponentOutlet=\"icon()!\" />\n </span>\n }\n <span class=\"talos-breadcrumb-item__label\">\n @if (label()) {\n {{ label() }}\n } @else {\n <ng-content />\n }\n </span>\n</ng-template>\n\n@if (isLink()) {\n @if (routerLink()) {\n <a\n [routerLink]=\"routerLink()!\"\n [attr.target]=\"target() || null\"\n [attr.title]=\"title() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n class=\"talos-breadcrumb-item__anchor\"\n (click)=\"onLinkClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </a>\n } @else {\n <a\n [attr.href]=\"href() || 'javascript:void(0)'\"\n [attr.target]=\"target() || null\"\n [attr.title]=\"title() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n class=\"talos-breadcrumb-item__anchor\"\n (click)=\"onLinkClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </a>\n }\n} @else {\n <span\n [attr.title]=\"title() || null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-current]=\"current() ? 'page' : null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n class=\"talos-breadcrumb-item__text\"\n >\n <ng-container *ngTemplateOutlet=\"contentTpl\" />\n </span>\n}\n", styles: [":host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:inherit;line-height:1.5;white-space:nowrap}:host.talos-breadcrumb-item--xs{font-size:.75rem}:host.talos-breadcrumb-item--xs .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--xs .talos-breadcrumb-item__text{gap:.25rem}:host.talos-breadcrumb-item--xs .talos-breadcrumb-item__icon{width:.875rem;height:.875rem}:host.talos-breadcrumb-item--sm{font-size:.8125rem}:host.talos-breadcrumb-item--sm .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--sm .talos-breadcrumb-item__text{gap:.3125rem}:host.talos-breadcrumb-item--sm .talos-breadcrumb-item__icon{width:.9375rem;height:.9375rem}:host.talos-breadcrumb-item--md{font-size:.875rem}:host.talos-breadcrumb-item--md .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--md .talos-breadcrumb-item__text{gap:.375rem}:host.talos-breadcrumb-item--md .talos-breadcrumb-item__icon{width:1rem;height:1rem}:host.talos-breadcrumb-item--lg{font-size:1rem}:host.talos-breadcrumb-item--lg .talos-breadcrumb-item__anchor,:host.talos-breadcrumb-item--lg .talos-breadcrumb-item__text{gap:.5rem}:host.talos-breadcrumb-item--lg .talos-breadcrumb-item__icon{width:1.125rem;height:1.125rem}:host.talos-breadcrumb-item--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.talos-breadcrumb-item__anchor,.talos-breadcrumb-item__text{display:inline-flex;align-items:center;box-sizing:border-box;padding:.125rem .25rem;border-radius:var(--talos-border-radius-sm, var(--border-radius-sm, .25rem));text-decoration:none;color:var(--talos-text-muted, var(--text-muted, #64748b));transition:color .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1)}.talos-breadcrumb-item__anchor:focus-visible,.talos-breadcrumb-item__text:focus-visible{outline:none;box-shadow:var(--talos-focus-ring, 0 0 0 3px rgba(37, 99, 235, .25));border-color:var(--talos-primary-color, #2563eb);color:var(--talos-primary-color, #2563eb)}.talos-breadcrumb-item__anchor{cursor:pointer}.talos-breadcrumb-item__anchor:hover{color:var(--talos-primary-color, var(--primary-color, #2563eb));background-color:var(--talos-primary-light, rgba(37, 99, 235, .04))}.talos-breadcrumb-item__anchor:active{opacity:.85}.talos-breadcrumb-item__text{cursor:default}:host(.talos-breadcrumb-item--current) .talos-breadcrumb-item__text,:host(.talos-breadcrumb-item--current) .talos-breadcrumb-item__anchor{font-weight:600;color:var(--talos-text-color, var(--text-color, #0f172a));cursor:default;pointer-events:none}.talos-breadcrumb-item__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.talos-breadcrumb-item__icon svg,.talos-breadcrumb-item__icon ::ng-deep svg{width:100%;height:100%;stroke-width:2}.talos-breadcrumb-item__label{display:inline-block;line-height:inherit}\n"] }]
389
+ }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
390
+
391
+ class TalosBreadcrumbComponent {
392
+ /**
393
+ * Data-driven list of breadcrumb items to render.
394
+ */
395
+ items = input(null, /* @ts-ignore */
396
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
397
+ /**
398
+ * Separator style between breadcrumb items.
399
+ * Can be 'chevron', 'slash', 'arrow', 'bullet', or a custom string.
400
+ * @default 'chevron'
401
+ */
402
+ separator = input('chevron', /* @ts-ignore */
403
+ ...(ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []));
404
+ /**
405
+ * Size scale of the breadcrumb and its separators.
406
+ * @default 'md'
407
+ */
408
+ size = input('md', /* @ts-ignore */
409
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
410
+ /**
411
+ * Visual variant and background container style.
412
+ * @default 'standard'
413
+ */
414
+ variant = input('standard', /* @ts-ignore */
415
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
416
+ /**
417
+ * Maximum number of items to display before collapsing intermediate nodes into an ellipsis.
418
+ */
419
+ maxItems = input(null, /* @ts-ignore */
420
+ ...(ngDevMode ? [{ debugName: "maxItems" }] : /* istanbul ignore next */ []));
421
+ /**
422
+ * Number of items to display before the collapsed ellipsis.
423
+ * @default 1
424
+ */
425
+ itemsBeforeCollapse = input(1, /* @ts-ignore */
426
+ ...(ngDevMode ? [{ debugName: "itemsBeforeCollapse" }] : /* istanbul ignore next */ []));
427
+ /**
428
+ * Number of items to display after the collapsed ellipsis.
429
+ * @default 1
430
+ */
431
+ itemsAfterCollapse = input(1, /* @ts-ignore */
432
+ ...(ngDevMode ? [{ debugName: "itemsAfterCollapse" }] : /* istanbul ignore next */ []));
433
+ /**
434
+ * Accessible description for the `<nav>` landmark.
435
+ * @default 'Breadcrumb'
436
+ */
437
+ ariaLabel = input('Breadcrumb', /* @ts-ignore */
438
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
439
+ /**
440
+ * Emitted when an individual breadcrumb item is clicked.
441
+ */
442
+ itemClick = output();
443
+ /**
444
+ * Emitted when the user expands collapsed items via the ellipsis button.
445
+ */
446
+ expand = output();
447
+ /**
448
+ * Optional custom separator template projected from parent.
449
+ */
450
+ customSeparator = contentChild(TalosBreadcrumbSeparatorDirective, /* @ts-ignore */
451
+ ...(ngDevMode ? [{ debugName: "customSeparator" }] : /* istanbul ignore next */ []));
452
+ /**
453
+ * Optional custom item template projected from parent.
454
+ */
455
+ customItemDef = contentChild(TalosBreadcrumbItemDefDirective, /* @ts-ignore */
456
+ ...(ngDevMode ? [{ debugName: "customItemDef" }] : /* istanbul ignore next */ []));
457
+ /**
458
+ * Track whether the user has clicked to expand collapsed crumbs.
459
+ */
460
+ expandedByUser = signal(false, /* @ts-ignore */
461
+ ...(ngDevMode ? [{ debugName: "expandedByUser" }] : /* istanbul ignore next */ []));
462
+ /**
463
+ * Built-in Lucide chevron icon component.
464
+ */
465
+ chevronIcon = LucideChevronRight;
466
+ /**
467
+ * Computed list of nodes for template rendering.
468
+ */
469
+ displayNodes = computed(() => {
470
+ const raw = this.items();
471
+ if (!raw || raw.length === 0) {
472
+ return [];
473
+ }
474
+ const total = raw.length;
475
+ const max = this.maxItems();
476
+ const shouldCollapse = !this.expandedByUser() && typeof max === 'number' && max > 0 && total > max;
477
+ if (!shouldCollapse) {
478
+ return raw.map((item, idx) => ({
479
+ type: 'item',
480
+ item,
481
+ index: idx,
482
+ isFirst: idx === 0,
483
+ isLast: idx === total - 1,
484
+ isCurrent: item.current !== undefined ? item.current : idx === total - 1
485
+ }));
486
+ }
487
+ const before = Math.max(1, this.itemsBeforeCollapse());
488
+ const after = Math.max(1, this.itemsAfterCollapse());
489
+ if (before + after >= total) {
490
+ return raw.map((item, idx) => ({
491
+ type: 'item',
492
+ item,
493
+ index: idx,
494
+ isFirst: idx === 0,
495
+ isLast: idx === total - 1,
496
+ isCurrent: item.current !== undefined ? item.current : idx === total - 1
497
+ }));
498
+ }
499
+ const nodes = [];
500
+ // Head nodes
501
+ for (let i = 0; i < before; i++) {
502
+ const item = raw[i];
503
+ nodes.push({
504
+ type: 'item',
505
+ item,
506
+ index: i,
507
+ isFirst: i === 0,
508
+ isLast: false,
509
+ isCurrent: item.current !== undefined ? item.current : false
510
+ });
511
+ }
512
+ // Collapsed Ellipsis
513
+ const omittedCount = total - before - after;
514
+ nodes.push({
515
+ type: 'ellipsis',
516
+ index: before,
517
+ isFirst: false,
518
+ isLast: false,
519
+ isCurrent: false,
520
+ omittedCount
521
+ });
522
+ // Tail nodes
523
+ for (let i = total - after; i < total; i++) {
524
+ const item = raw[i];
525
+ nodes.push({
526
+ type: 'item',
527
+ item,
528
+ index: i,
529
+ isFirst: false,
530
+ isLast: i === total - 1,
531
+ isCurrent: item.current !== undefined ? item.current : i === total - 1
532
+ });
533
+ }
534
+ return nodes;
535
+ }, /* @ts-ignore */
536
+ ...(ngDevMode ? [{ debugName: "displayNodes" }] : /* istanbul ignore next */ []));
537
+ /**
538
+ * Handles click on an item node.
539
+ */
540
+ onItemClick(item, index, originalEvent) {
541
+ this.itemClick.emit({ item, index, originalEvent });
542
+ }
543
+ /**
544
+ * Expands the collapsed crumbs when user clicks the ellipsis button.
545
+ */
546
+ onEllipsisClick(event) {
547
+ event.preventDefault();
548
+ event.stopPropagation();
549
+ this.expandedByUser.set(true);
550
+ this.expand.emit();
551
+ }
552
+ /**
553
+ * Resets the expansion state back to collapsed.
554
+ */
555
+ resetExpansion() {
556
+ this.expandedByUser.set(false);
557
+ }
558
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
559
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosBreadcrumbComponent, isStandalone: true, selector: "talos-breadcrumb, [talosBreadcrumb]", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null }, itemsBeforeCollapse: { classPropertyName: "itemsBeforeCollapse", publicName: "itemsBeforeCollapse", isSignal: true, isRequired: false, transformFunction: null }, itemsAfterCollapse: { classPropertyName: "itemsAfterCollapse", publicName: "itemsAfterCollapse", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", expand: "expand" }, host: { attributes: { "role": "navigation" }, properties: { "attr.aria-label": "ariaLabel()", "class.talos-breadcrumb--xs": "size() === \"xs\"", "class.talos-breadcrumb--sm": "size() === \"sm\"", "class.talos-breadcrumb--md": "size() === \"md\"", "class.talos-breadcrumb--lg": "size() === \"lg\"", "class.talos-breadcrumb--standard": "variant() === \"standard\"", "class.talos-breadcrumb--contained": "variant() === \"contained\"", "class.talos-breadcrumb--subtle": "variant() === \"subtle\"" }, classAttribute: "talos-breadcrumb" }, queries: [{ propertyName: "customSeparator", first: true, predicate: TalosBreadcrumbSeparatorDirective, descendants: true, isSignal: true }, { propertyName: "customItemDef", first: true, predicate: TalosBreadcrumbItemDefDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<ol class=\"talos-breadcrumb__list\">\n @if (items() && items()!.length > 0) {\n @for (node of displayNodes(); track node.type === 'ellipsis' ? ('ellipsis-' + node.index) : (node.item?.id ?? node.index); let isLast = $last) {\n <li class=\"talos-breadcrumb__item-wrapper\">\n @if (node.type === 'ellipsis') {\n <button\n type=\"button\"\n class=\"talos-breadcrumb__ellipsis\"\n [attr.aria-label]=\"'Show ' + (node.omittedCount || 0) + ' more items'\"\n (click)=\"onEllipsisClick($event)\"\n >\n <span class=\"talos-breadcrumb__dot\"></span>\n <span class=\"talos-breadcrumb__dot\"></span>\n <span class=\"talos-breadcrumb__dot\"></span>\n </button>\n } @else if (node.item) {\n @if (customItemDef()) {\n <ng-container\n *ngTemplateOutlet=\"\n customItemDef()!.templateRef;\n context: {\n $implicit: node.item,\n index: node.index,\n isFirst: node.isFirst,\n isLast: node.isLast\n }\n \"\n />\n } @else if (node.item.customTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n node.item.customTemplate;\n context: {\n $implicit: node.item,\n index: node.index,\n isFirst: node.isFirst,\n isLast: node.isLast\n }\n \"\n />\n } @else {\n <talos-breadcrumb-item\n [label]=\"node.item.label\"\n [href]=\"node.item.href || null\"\n [routerLink]=\"node.item.routerLink || null\"\n [icon]=\"node.item.icon || null\"\n [disabled]=\"node.item.disabled || false\"\n [current]=\"node.isCurrent\"\n [ariaLabel]=\"node.item.ariaLabel || null\"\n [target]=\"node.item.target || null\"\n [title]=\"node.item.title || null\"\n [size]=\"size()\"\n (itemClick)=\"onItemClick(node.item, node.index, $event)\"\n >\n {{ node.item.label }}\n </talos-breadcrumb-item>\n }\n }\n\n @if (!isLast) {\n <span class=\"talos-breadcrumb__separator\" aria-hidden=\"true\">\n @if (customSeparator()) {\n <ng-container *ngTemplateOutlet=\"customSeparator()!.templateRef\" />\n } @else if (separator() === 'chevron') {\n <span class=\"talos-breadcrumb__separator-icon\">\n <ng-container *ngComponentOutlet=\"chevronIcon\" />\n </span>\n } @else if (separator() === 'slash') {\n /\n } @else if (separator() === 'arrow') {\n \u2192\n } @else if (separator() === 'bullet') {\n \u2022\n } @else {\n {{ separator() }}\n }\n </span>\n }\n </li>\n }\n } @else {\n <ng-content />\n }\n</ol>\n", styles: [":host{display:block;box-sizing:border-box;font-family:inherit}:host.talos-breadcrumb--xs .talos-breadcrumb__list{gap:.25rem}:host.talos-breadcrumb--xs .talos-breadcrumb__separator{font-size:.75rem;margin:0 .25rem}:host.talos-breadcrumb--xs .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:.75rem;height:.75rem}:host.talos-breadcrumb--xs .talos-breadcrumb__ellipsis{height:1.25rem;padding:0 .25rem}:host.talos-breadcrumb--xs .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:2.5px;height:2.5px}:host.talos-breadcrumb--sm .talos-breadcrumb__list{gap:.3125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__separator{font-size:.8125rem;margin:0 .3125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:.8125rem;height:.8125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__ellipsis{height:1.375rem;padding:0 .3125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:3px;height:3px}:host.talos-breadcrumb--md .talos-breadcrumb__list{gap:.375rem}:host.talos-breadcrumb--md .talos-breadcrumb__separator{font-size:.875rem;margin:0 .375rem}:host.talos-breadcrumb--md .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:.875rem;height:.875rem}:host.talos-breadcrumb--md .talos-breadcrumb__ellipsis{height:1.5rem;padding:0 .375rem}:host.talos-breadcrumb--md .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:3px;height:3px}:host.talos-breadcrumb--lg .talos-breadcrumb__list{gap:.5rem}:host.talos-breadcrumb--lg .talos-breadcrumb__separator{font-size:1rem;margin:0 .5rem}:host.talos-breadcrumb--lg .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:1rem;height:1rem}:host.talos-breadcrumb--lg .talos-breadcrumb__ellipsis{height:1.75rem;padding:0 .5rem}:host.talos-breadcrumb--lg .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:3.5px;height:3.5px}:host.talos-breadcrumb--standard{background-color:transparent}:host.talos-breadcrumb--contained{display:inline-block;background-color:var(--talos-card-bg, var(--card-bg, #ffffff));border:1px solid var(--talos-border-color, var(--border-color, #e2e8f0));border-radius:var(--talos-border-radius-md, var(--border-radius-md, .5rem));box-shadow:var(--talos-card-shadow, 0 1px 3px 0 rgba(0, 0, 0, .05));padding:.5rem .875rem}:host.talos-breadcrumb--subtle{display:inline-block;background-color:var(--talos-bg-subtle, var(--bg-subtle, #f8fafc));border:1px solid var(--talos-border-color, var(--border-color, #e2e8f0));border-radius:9999px;padding:.375rem .875rem}.talos-breadcrumb__list{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;box-sizing:border-box}.talos-breadcrumb__list>talos-breadcrumb-item:not(:last-child):after,.talos-breadcrumb__list>[talosBreadcrumbItem]:not(:last-child):after{content:\"/\";display:inline-block;margin:0 .375rem;color:var(--talos-text-muted, var(--text-muted, #94a3b8));-webkit-user-select:none;user-select:none;pointer-events:none}.talos-breadcrumb__item-wrapper{display:inline-flex;align-items:center;box-sizing:border-box}.talos-breadcrumb__separator{display:inline-flex;align-items:center;justify-content:center;color:var(--talos-text-muted, var(--text-muted, #94a3b8));-webkit-user-select:none;user-select:none;flex-shrink:0}.talos-breadcrumb__separator .talos-breadcrumb__separator-icon{display:inline-flex;align-items:center;justify-content:center}.talos-breadcrumb__separator .talos-breadcrumb__separator-icon svg,.talos-breadcrumb__separator .talos-breadcrumb__separator-icon ::ng-deep svg{width:100%;height:100%;stroke-width:2.2}.talos-breadcrumb__ellipsis{display:inline-flex;align-items:center;justify-content:center;gap:2px;background:var(--talos-bg-subtle, var(--bg-subtle, #f1f5f9));border:1px solid var(--talos-border-color, var(--border-color, #e2e8f0));border-radius:var(--talos-border-radius-sm, var(--border-radius-sm, .25rem));color:var(--talos-text-muted, var(--text-muted, #64748b));cursor:pointer;transition:color .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1)}.talos-breadcrumb__ellipsis:hover{background:var(--talos-primary-light, rgba(37, 99, 235, .08));border-color:var(--talos-primary-color, #2563eb);color:var(--talos-primary-color, #2563eb)}.talos-breadcrumb__ellipsis:focus-visible{outline:none;box-shadow:var(--talos-focus-ring, 0 0 0 3px rgba(37, 99, 235, .25));border-color:var(--talos-primary-color, #2563eb);color:var(--talos-primary-color, #2563eb)}.talos-breadcrumb__ellipsis .talos-breadcrumb__dot{display:inline-block;border-radius:50%;background-color:currentColor}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TalosBreadcrumbItemComponent, selector: "talos-breadcrumb-item, [talosBreadcrumbItem]", inputs: ["label", "href", "routerLink", "icon", "disabled", "current", "ariaLabel", "size", "target", "title"], outputs: ["itemClick"] }] });
560
+ }
561
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbComponent, decorators: [{
562
+ type: Component,
563
+ args: [{ selector: 'talos-breadcrumb, [talosBreadcrumb]', imports: [
564
+ CommonModule,
565
+ NgTemplateOutlet,
566
+ NgComponentOutlet,
567
+ TalosBreadcrumbItemComponent
568
+ ], host: {
569
+ 'class': 'talos-breadcrumb',
570
+ 'role': 'navigation',
571
+ '[attr.aria-label]': 'ariaLabel()',
572
+ '[class.talos-breadcrumb--xs]': 'size() === "xs"',
573
+ '[class.talos-breadcrumb--sm]': 'size() === "sm"',
574
+ '[class.talos-breadcrumb--md]': 'size() === "md"',
575
+ '[class.talos-breadcrumb--lg]': 'size() === "lg"',
576
+ '[class.talos-breadcrumb--standard]': 'variant() === "standard"',
577
+ '[class.talos-breadcrumb--contained]': 'variant() === "contained"',
578
+ '[class.talos-breadcrumb--subtle]': 'variant() === "subtle"'
579
+ }, template: "<ol class=\"talos-breadcrumb__list\">\n @if (items() && items()!.length > 0) {\n @for (node of displayNodes(); track node.type === 'ellipsis' ? ('ellipsis-' + node.index) : (node.item?.id ?? node.index); let isLast = $last) {\n <li class=\"talos-breadcrumb__item-wrapper\">\n @if (node.type === 'ellipsis') {\n <button\n type=\"button\"\n class=\"talos-breadcrumb__ellipsis\"\n [attr.aria-label]=\"'Show ' + (node.omittedCount || 0) + ' more items'\"\n (click)=\"onEllipsisClick($event)\"\n >\n <span class=\"talos-breadcrumb__dot\"></span>\n <span class=\"talos-breadcrumb__dot\"></span>\n <span class=\"talos-breadcrumb__dot\"></span>\n </button>\n } @else if (node.item) {\n @if (customItemDef()) {\n <ng-container\n *ngTemplateOutlet=\"\n customItemDef()!.templateRef;\n context: {\n $implicit: node.item,\n index: node.index,\n isFirst: node.isFirst,\n isLast: node.isLast\n }\n \"\n />\n } @else if (node.item.customTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n node.item.customTemplate;\n context: {\n $implicit: node.item,\n index: node.index,\n isFirst: node.isFirst,\n isLast: node.isLast\n }\n \"\n />\n } @else {\n <talos-breadcrumb-item\n [label]=\"node.item.label\"\n [href]=\"node.item.href || null\"\n [routerLink]=\"node.item.routerLink || null\"\n [icon]=\"node.item.icon || null\"\n [disabled]=\"node.item.disabled || false\"\n [current]=\"node.isCurrent\"\n [ariaLabel]=\"node.item.ariaLabel || null\"\n [target]=\"node.item.target || null\"\n [title]=\"node.item.title || null\"\n [size]=\"size()\"\n (itemClick)=\"onItemClick(node.item, node.index, $event)\"\n >\n {{ node.item.label }}\n </talos-breadcrumb-item>\n }\n }\n\n @if (!isLast) {\n <span class=\"talos-breadcrumb__separator\" aria-hidden=\"true\">\n @if (customSeparator()) {\n <ng-container *ngTemplateOutlet=\"customSeparator()!.templateRef\" />\n } @else if (separator() === 'chevron') {\n <span class=\"talos-breadcrumb__separator-icon\">\n <ng-container *ngComponentOutlet=\"chevronIcon\" />\n </span>\n } @else if (separator() === 'slash') {\n /\n } @else if (separator() === 'arrow') {\n \u2192\n } @else if (separator() === 'bullet') {\n \u2022\n } @else {\n {{ separator() }}\n }\n </span>\n }\n </li>\n }\n } @else {\n <ng-content />\n }\n</ol>\n", styles: [":host{display:block;box-sizing:border-box;font-family:inherit}:host.talos-breadcrumb--xs .talos-breadcrumb__list{gap:.25rem}:host.talos-breadcrumb--xs .talos-breadcrumb__separator{font-size:.75rem;margin:0 .25rem}:host.talos-breadcrumb--xs .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:.75rem;height:.75rem}:host.talos-breadcrumb--xs .talos-breadcrumb__ellipsis{height:1.25rem;padding:0 .25rem}:host.talos-breadcrumb--xs .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:2.5px;height:2.5px}:host.talos-breadcrumb--sm .talos-breadcrumb__list{gap:.3125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__separator{font-size:.8125rem;margin:0 .3125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:.8125rem;height:.8125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__ellipsis{height:1.375rem;padding:0 .3125rem}:host.talos-breadcrumb--sm .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:3px;height:3px}:host.talos-breadcrumb--md .talos-breadcrumb__list{gap:.375rem}:host.talos-breadcrumb--md .talos-breadcrumb__separator{font-size:.875rem;margin:0 .375rem}:host.talos-breadcrumb--md .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:.875rem;height:.875rem}:host.talos-breadcrumb--md .talos-breadcrumb__ellipsis{height:1.5rem;padding:0 .375rem}:host.talos-breadcrumb--md .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:3px;height:3px}:host.talos-breadcrumb--lg .talos-breadcrumb__list{gap:.5rem}:host.talos-breadcrumb--lg .talos-breadcrumb__separator{font-size:1rem;margin:0 .5rem}:host.talos-breadcrumb--lg .talos-breadcrumb__separator .talos-breadcrumb__separator-icon{width:1rem;height:1rem}:host.talos-breadcrumb--lg .talos-breadcrumb__ellipsis{height:1.75rem;padding:0 .5rem}:host.talos-breadcrumb--lg .talos-breadcrumb__ellipsis .talos-breadcrumb__dot{width:3.5px;height:3.5px}:host.talos-breadcrumb--standard{background-color:transparent}:host.talos-breadcrumb--contained{display:inline-block;background-color:var(--talos-card-bg, var(--card-bg, #ffffff));border:1px solid var(--talos-border-color, var(--border-color, #e2e8f0));border-radius:var(--talos-border-radius-md, var(--border-radius-md, .5rem));box-shadow:var(--talos-card-shadow, 0 1px 3px 0 rgba(0, 0, 0, .05));padding:.5rem .875rem}:host.talos-breadcrumb--subtle{display:inline-block;background-color:var(--talos-bg-subtle, var(--bg-subtle, #f8fafc));border:1px solid var(--talos-border-color, var(--border-color, #e2e8f0));border-radius:9999px;padding:.375rem .875rem}.talos-breadcrumb__list{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;box-sizing:border-box}.talos-breadcrumb__list>talos-breadcrumb-item:not(:last-child):after,.talos-breadcrumb__list>[talosBreadcrumbItem]:not(:last-child):after{content:\"/\";display:inline-block;margin:0 .375rem;color:var(--talos-text-muted, var(--text-muted, #94a3b8));-webkit-user-select:none;user-select:none;pointer-events:none}.talos-breadcrumb__item-wrapper{display:inline-flex;align-items:center;box-sizing:border-box}.talos-breadcrumb__separator{display:inline-flex;align-items:center;justify-content:center;color:var(--talos-text-muted, var(--text-muted, #94a3b8));-webkit-user-select:none;user-select:none;flex-shrink:0}.talos-breadcrumb__separator .talos-breadcrumb__separator-icon{display:inline-flex;align-items:center;justify-content:center}.talos-breadcrumb__separator .talos-breadcrumb__separator-icon svg,.talos-breadcrumb__separator .talos-breadcrumb__separator-icon ::ng-deep svg{width:100%;height:100%;stroke-width:2.2}.talos-breadcrumb__ellipsis{display:inline-flex;align-items:center;justify-content:center;gap:2px;background:var(--talos-bg-subtle, var(--bg-subtle, #f1f5f9));border:1px solid var(--talos-border-color, var(--border-color, #e2e8f0));border-radius:var(--talos-border-radius-sm, var(--border-radius-sm, .25rem));color:var(--talos-text-muted, var(--text-muted, #64748b));cursor:pointer;transition:color .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1)}.talos-breadcrumb__ellipsis:hover{background:var(--talos-primary-light, rgba(37, 99, 235, .08));border-color:var(--talos-primary-color, #2563eb);color:var(--talos-primary-color, #2563eb)}.talos-breadcrumb__ellipsis:focus-visible{outline:none;box-shadow:var(--talos-focus-ring, 0 0 0 3px rgba(37, 99, 235, .25));border-color:var(--talos-primary-color, #2563eb);color:var(--talos-primary-color, #2563eb)}.talos-breadcrumb__ellipsis .talos-breadcrumb__dot{display:inline-block;border-radius:50%;background-color:currentColor}\n"] }]
580
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], itemsBeforeCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsBeforeCollapse", required: false }] }], itemsAfterCollapse: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsAfterCollapse", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], expand: [{ type: i0.Output, args: ["expand"] }], customSeparator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TalosBreadcrumbSeparatorDirective), { isSignal: true }] }], customItemDef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TalosBreadcrumbItemDefDirective), { isSignal: true }] }] } });
581
+
582
+ const BREADCRUMB_DECLARATIONS = [
583
+ TalosBreadcrumbComponent,
584
+ TalosBreadcrumbItemComponent,
585
+ TalosBreadcrumbSeparatorDirective,
586
+ TalosBreadcrumbItemDefDirective
587
+ ];
588
+ class TalosBreadcrumbModule {
589
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
590
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbModule, imports: [TalosBreadcrumbComponent,
591
+ TalosBreadcrumbItemComponent,
592
+ TalosBreadcrumbSeparatorDirective,
593
+ TalosBreadcrumbItemDefDirective], exports: [TalosBreadcrumbComponent,
594
+ TalosBreadcrumbItemComponent,
595
+ TalosBreadcrumbSeparatorDirective,
596
+ TalosBreadcrumbItemDefDirective] });
597
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbModule, imports: [TalosBreadcrumbComponent] });
598
+ }
599
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosBreadcrumbModule, decorators: [{
600
+ type: NgModule,
601
+ args: [{
602
+ imports: [...BREADCRUMB_DECLARATIONS],
603
+ exports: [...BREADCRUMB_DECLARATIONS]
604
+ }]
605
+ }] });
606
+
607
+ /**
608
+ * Normalizes any recognized status string or alias into its canonical status.
609
+ */
610
+ function normalizeWorkflowStatus(status) {
611
+ if (!status) {
612
+ return 'PENDING';
613
+ }
614
+ const clean = status.trim().toUpperCase().replace(/[\s_]+/g, '-');
615
+ switch (clean) {
616
+ case 'NEW':
617
+ case 'CREATED':
618
+ case 'DRAFT':
619
+ return 'NEW';
620
+ case 'PENDING':
621
+ case 'QUEUED':
622
+ case 'SCHEDULED':
623
+ case 'WAITING':
624
+ return 'PENDING';
625
+ case 'IN-PROGRESS':
626
+ case 'INPROGRESS':
627
+ case 'RUNNING':
628
+ case 'EXECUTING':
629
+ case 'ACTIVE':
630
+ return 'IN-PROGRESS';
631
+ case 'PAUSED':
632
+ case 'SUSPENDED':
633
+ case 'ON-HOLD':
634
+ case 'ONHOLD':
635
+ case 'WAITING-FOR-APPROVAL':
636
+ case 'BLOCKED':
637
+ return 'PAUSED';
638
+ case 'RETRYING':
639
+ case 'UP-FOR-RETRY':
640
+ case 'RETRY':
641
+ return 'RETRYING';
642
+ case 'SKIPPED':
643
+ case 'BYPASSED':
644
+ case 'IGNORED':
645
+ return 'SKIPPED';
646
+ case 'SUCCESS':
647
+ case 'SUCCEEDED':
648
+ case 'PASSED':
649
+ case 'OK':
650
+ return 'SUCCESS';
651
+ case 'COMPLETED':
652
+ case 'FINISHED':
653
+ case 'DONE':
654
+ return 'COMPLETED';
655
+ case 'ERROR':
656
+ case 'FAILED':
657
+ case 'FAILURE':
658
+ case 'CRASHED':
659
+ return 'ERROR';
660
+ case 'TERMINATED':
661
+ case 'CANCELLED':
662
+ case 'CANCELED':
663
+ case 'ABORTED':
664
+ case 'STOPPED':
665
+ case 'KILLED':
666
+ return 'TERMINATED';
667
+ case 'EXPIRED':
668
+ case 'TIMEOUT':
669
+ case 'TIMED-OUT':
670
+ case 'TIMEDOUT':
671
+ case 'STALE':
672
+ return 'EXPIRED';
673
+ default:
674
+ return 'PENDING';
675
+ }
676
+ }
677
+ /**
678
+ * Status descriptors map with default metadata.
679
+ */
680
+ const TALOS_STATUS_DESCRIPTORS = {
681
+ 'NEW': {
682
+ canonical: 'NEW',
683
+ defaultLabel: 'New',
684
+ defaultAriaLabel: 'Status: New',
685
+ cssModifier: 'new'
686
+ },
687
+ 'PENDING': {
688
+ canonical: 'PENDING',
689
+ defaultLabel: 'Pending',
690
+ defaultAriaLabel: 'Status: Pending',
691
+ cssModifier: 'pending'
692
+ },
693
+ 'IN-PROGRESS': {
694
+ canonical: 'IN-PROGRESS',
695
+ defaultLabel: 'In Progress',
696
+ defaultAriaLabel: 'Status: In Progress',
697
+ cssModifier: 'inprogress',
698
+ shouldAnimateIcon: true
699
+ },
700
+ 'PAUSED': {
701
+ canonical: 'PAUSED',
702
+ defaultLabel: 'Paused',
703
+ defaultAriaLabel: 'Status: Paused',
704
+ cssModifier: 'paused'
705
+ },
706
+ 'RETRYING': {
707
+ canonical: 'RETRYING',
708
+ defaultLabel: 'Retrying',
709
+ defaultAriaLabel: 'Status: Retrying',
710
+ cssModifier: 'retrying',
711
+ shouldAnimateIcon: true
712
+ },
713
+ 'SKIPPED': {
714
+ canonical: 'SKIPPED',
715
+ defaultLabel: 'Skipped',
716
+ defaultAriaLabel: 'Status: Skipped',
717
+ cssModifier: 'skipped'
718
+ },
719
+ 'SUCCESS': {
720
+ canonical: 'SUCCESS',
721
+ defaultLabel: 'Success',
722
+ defaultAriaLabel: 'Status: Success',
723
+ cssModifier: 'success'
724
+ },
725
+ 'COMPLETED': {
726
+ canonical: 'COMPLETED',
727
+ defaultLabel: 'Completed',
728
+ defaultAriaLabel: 'Status: Completed',
729
+ cssModifier: 'completed'
730
+ },
731
+ 'ERROR': {
732
+ canonical: 'ERROR',
733
+ defaultLabel: 'Error',
734
+ defaultAriaLabel: 'Status: Error',
735
+ cssModifier: 'error'
736
+ },
737
+ 'TERMINATED': {
738
+ canonical: 'TERMINATED',
739
+ defaultLabel: 'Terminated',
740
+ defaultAriaLabel: 'Status: Terminated',
741
+ cssModifier: 'terminated'
742
+ },
743
+ 'EXPIRED': {
744
+ canonical: 'EXPIRED',
745
+ defaultLabel: 'Expired',
746
+ defaultAriaLabel: 'Status: Expired',
747
+ cssModifier: 'expired'
748
+ }
749
+ };
750
+
751
+ class TalosStatusTagComponent {
752
+ elementRef = inject(ElementRef);
753
+ /**
754
+ * The workflow status to display. Supports all canonical names, lowercase variants, and common aliases.
755
+ */
756
+ status = input.required(/* @ts-ignore */
757
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
758
+ /**
759
+ * Optional custom label text. If not provided or empty, defaults to standard status label.
760
+ */
761
+ label = input(undefined, /* @ts-ignore */
762
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
763
+ /**
764
+ * Visual presentation style.
765
+ * @default 'subtle'
766
+ */
767
+ variant = input('subtle', /* @ts-ignore */
768
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
769
+ /**
770
+ * Size scale.
771
+ * @default 'md'
772
+ */
773
+ size = input('md', /* @ts-ignore */
774
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
775
+ /**
776
+ * Border radius shape.
777
+ * @default 'rounded'
778
+ */
779
+ shape = input('rounded', /* @ts-ignore */
780
+ ...(ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []));
781
+ /**
782
+ * Whether to render the status icon / indicator symbol.
783
+ * @default true
784
+ */
785
+ showIcon = input(true, /* @ts-ignore */
786
+ ...(ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []));
787
+ /**
788
+ * Optional custom icon component override.
789
+ */
790
+ icon = input(null, /* @ts-ignore */
791
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
792
+ /**
793
+ * Whether to render only the symbol/icon without label text.
794
+ * @default false
795
+ */
796
+ iconOnly = input(false, /* @ts-ignore */
797
+ ...(ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []));
798
+ /**
799
+ * Whether to enable pulsing animation for active/waiting states.
800
+ * @default false
801
+ */
802
+ pulse = input(false, /* @ts-ignore */
803
+ ...(ngDevMode ? [{ debugName: "pulse" }] : /* istanbul ignore next */ []));
804
+ /**
805
+ * Optional accessible ARIA label override.
806
+ */
807
+ ariaLabel = input(undefined, /* @ts-ignore */
808
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
809
+ /**
810
+ * Normalized canonical workflow status.
811
+ */
812
+ canonicalStatus = computed(() => {
813
+ return normalizeWorkflowStatus(this.status());
814
+ }, /* @ts-ignore */
815
+ ...(ngDevMode ? [{ debugName: "canonicalStatus" }] : /* istanbul ignore next */ []));
816
+ /**
817
+ * Descriptor containing default metadata for current canonical status.
818
+ */
819
+ descriptor = computed(() => {
820
+ return TALOS_STATUS_DESCRIPTORS[this.canonicalStatus()];
821
+ }, /* @ts-ignore */
822
+ ...(ngDevMode ? [{ debugName: "descriptor" }] : /* istanbul ignore next */ []));
823
+ /**
824
+ * Resolved label to display when no custom content is projected.
825
+ */
826
+ resolvedLabel = computed(() => {
827
+ const customLabel = this.label();
828
+ if (customLabel !== undefined && customLabel !== null && customLabel.trim().length > 0) {
829
+ return customLabel;
830
+ }
831
+ return this.descriptor().defaultLabel;
832
+ }, /* @ts-ignore */
833
+ ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
834
+ /**
835
+ * Resolved accessibility label for screen readers.
836
+ */
837
+ resolvedAriaLabel = computed(() => {
838
+ const customAria = this.ariaLabel();
839
+ if (customAria !== undefined && customAria !== null && customAria.trim().length > 0) {
840
+ return customAria;
841
+ }
842
+ return `${this.descriptor().defaultAriaLabel}: ${this.resolvedLabel()}`;
843
+ }, /* @ts-ignore */
844
+ ...(ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []));
845
+ /**
846
+ * Pixel size for the Lucide icon based on status tag size.
847
+ */
848
+ iconSize = computed(() => {
849
+ switch (this.size()) {
850
+ case 'xs':
851
+ return 11;
852
+ case 'sm':
853
+ return 13;
854
+ case 'lg':
855
+ return 16;
856
+ case 'md':
857
+ default:
858
+ return 14;
859
+ }
860
+ }, /* @ts-ignore */
861
+ ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
862
+ /**
863
+ * Resolved default Lucide icon component for the current canonical status.
864
+ */
865
+ defaultIconComponent = computed(() => {
866
+ switch (this.canonicalStatus()) {
867
+ case 'NEW':
868
+ return LucideSparkles;
869
+ case 'PENDING':
870
+ return LucideClock;
871
+ case 'IN-PROGRESS':
872
+ return LucideLoader2;
873
+ case 'PAUSED':
874
+ return LucideCirclePause;
875
+ case 'RETRYING':
876
+ return LucideRotateCcw;
877
+ case 'SKIPPED':
878
+ return LucideFastForward;
879
+ case 'SUCCESS':
880
+ return LucideCheckCircle2;
881
+ case 'COMPLETED':
882
+ return LucideCheckCheck;
883
+ case 'ERROR':
884
+ return LucideCircleAlert;
885
+ case 'TERMINATED':
886
+ return LucideBan;
887
+ case 'EXPIRED':
888
+ return LucideClockAlert;
889
+ default:
890
+ return LucideClock;
891
+ }
892
+ }, /* @ts-ignore */
893
+ ...(ngDevMode ? [{ debugName: "defaultIconComponent" }] : /* istanbul ignore next */ []));
894
+ /**
895
+ * Active icon component to render (custom icon if provided, otherwise default semantic icon).
896
+ */
897
+ activeIconComponent = computed(() => {
898
+ return this.icon() ?? this.defaultIconComponent();
899
+ }, /* @ts-ignore */
900
+ ...(ngDevMode ? [{ debugName: "activeIconComponent" }] : /* istanbul ignore next */ []));
901
+ /**
902
+ * Whether the icon should have active spin/rotation animation (e.g. IN-PROGRESS, RETRYING).
903
+ */
904
+ shouldAnimateIcon = computed(() => {
905
+ return !!this.descriptor().shouldAnimateIcon;
906
+ }, /* @ts-ignore */
907
+ ...(ngDevMode ? [{ debugName: "shouldAnimateIcon" }] : /* istanbul ignore next */ []));
908
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosStatusTagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
909
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosStatusTagComponent, isStandalone: true, selector: "talos-status-tag, [talosStatusTag]", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, pulse: { classPropertyName: "pulse", publicName: "pulse", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.talos-status-tag--new": "canonicalStatus() === \"NEW\"", "class.talos-status-tag--pending": "canonicalStatus() === \"PENDING\"", "class.talos-status-tag--inprogress": "canonicalStatus() === \"IN-PROGRESS\"", "class.talos-status-tag--paused": "canonicalStatus() === \"PAUSED\"", "class.talos-status-tag--retrying": "canonicalStatus() === \"RETRYING\"", "class.talos-status-tag--skipped": "canonicalStatus() === \"SKIPPED\"", "class.talos-status-tag--success": "canonicalStatus() === \"SUCCESS\"", "class.talos-status-tag--completed": "canonicalStatus() === \"COMPLETED\"", "class.talos-status-tag--error": "canonicalStatus() === \"ERROR\"", "class.talos-status-tag--terminated": "canonicalStatus() === \"TERMINATED\"", "class.talos-status-tag--expired": "canonicalStatus() === \"EXPIRED\"", "class.talos-status-tag--subtle": "variant() === \"subtle\"", "class.talos-status-tag--solid": "variant() === \"solid\"", "class.talos-status-tag--outline": "variant() === \"outline\"", "class.talos-status-tag--dot": "variant() === \"dot\"", "class.talos-status-tag--xs": "size() === \"xs\"", "class.talos-status-tag--sm": "size() === \"sm\"", "class.talos-status-tag--md": "size() === \"md\"", "class.talos-status-tag--lg": "size() === \"lg\"", "class.talos-status-tag--rounded": "shape() === \"rounded\"", "class.talos-status-tag--pill": "shape() === \"pill\"", "class.talos-status-tag--square": "shape() === \"square\"", "class.talos-status-tag--pulse": "pulse()", "class.talos-status-tag--icon-only": "iconOnly()", "attr.role": "\"status\"", "attr.aria-label": "resolvedAriaLabel()" }, classAttribute: "talos-status-tag" }, ngImport: i0, template: "@if (variant() === 'dot') {\n <span class=\"talos-status-tag__dot\" [class.talos-status-tag__dot--pulse]=\"pulse()\" aria-hidden=\"true\">\n @if (pulse()) {\n <span class=\"talos-status-tag__dot-ping\" aria-hidden=\"true\"></span>\n }\n </span>\n} @else if (showIcon()) {\n <span\n class=\"talos-status-tag__icon\"\n [class.talos-status-tag__icon--spin]=\"shouldAnimateIcon()\"\n [class.talos-status-tag__icon--pulse]=\"pulse()\"\n aria-hidden=\"true\"\n >\n <ng-container *ngComponentOutlet=\"activeIconComponent(); inputs: { size: iconSize() }\" />\n </span>\n}\n\n<span [class.talos-status-tag__label]=\"!iconOnly()\" [class.talos-sr-only]=\"iconOnly()\">\n <ng-content>{{ resolvedLabel() }}</ng-content>\n</span>\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;box-sizing:border-box;font-family:var(--talos-status-font-family, inherit);font-weight:var(--talos-status-font-weight, 600);line-height:1;text-decoration:none;letter-spacing:.015em;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;--_status-color: var(--talos-status-color, var(--talos-status-pending-color, #d97706));--_status-bg: var(--talos-status-bg, var(--talos-status-pending-bg, #fffbeb));--_status-border: var(--talos-status-border, var(--talos-status-pending-border, #fde68a));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-pending-solid-bg, #d97706));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-pending-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--new{--_status-color: var(--talos-status-color, var(--talos-status-new-color, #0284c7));--_status-bg: var(--talos-status-bg, var(--talos-status-new-bg, #f0f9ff));--_status-border: var(--talos-status-border, var(--talos-status-new-border, #bae6fd));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-new-solid-bg, #0284c7));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-new-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--pending{--_status-color: var(--talos-status-color, var(--talos-status-pending-color, #d97706));--_status-bg: var(--talos-status-bg, var(--talos-status-pending-bg, #fffbeb));--_status-border: var(--talos-status-border, var(--talos-status-pending-border, #fde68a));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-pending-solid-bg, #d97706));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-pending-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--inprogress{--_status-color: var(--talos-status-color, var(--talos-status-inprogress-color, #2563eb));--_status-bg: var(--talos-status-bg, var(--talos-status-inprogress-bg, #eff6ff));--_status-border: var(--talos-status-border, var(--talos-status-inprogress-border, #bfdbfe));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-inprogress-solid-bg, #2563eb));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-inprogress-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--paused{--_status-color: var(--talos-status-color, var(--talos-status-paused-color, #b45309));--_status-bg: var(--talos-status-bg, var(--talos-status-paused-bg, #fff7ed));--_status-border: var(--talos-status-border, var(--talos-status-paused-border, #fed7aa));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-paused-solid-bg, #ea580c));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-paused-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--retrying{--_status-color: var(--talos-status-color, var(--talos-status-retrying-color, #c2410c));--_status-bg: var(--talos-status-bg, var(--talos-status-retrying-bg, #fff7ed));--_status-border: var(--talos-status-border, var(--talos-status-retrying-border, #ffedd5));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-retrying-solid-bg, #ea580c));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-retrying-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--skipped{--_status-color: var(--talos-status-color, var(--talos-status-skipped-color, #475569));--_status-bg: var(--talos-status-bg, var(--talos-status-skipped-bg, #f8fafc));--_status-border: var(--talos-status-border, var(--talos-status-skipped-border, #e2e8f0));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-skipped-solid-bg, #64748b));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-skipped-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--success{--_status-color: var(--talos-status-color, var(--talos-status-success-color, #16a34a));--_status-bg: var(--talos-status-bg, var(--talos-status-success-bg, #f0fdf4));--_status-border: var(--talos-status-border, var(--talos-status-success-border, #bbf7d0));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-success-solid-bg, #16a34a));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-success-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--completed{--_status-color: var(--talos-status-color, var(--talos-status-completed-color, #0f766e));--_status-bg: var(--talos-status-bg, var(--talos-status-completed-bg, #f0fdfa));--_status-border: var(--talos-status-border, var(--talos-status-completed-border, #99f6e4));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-completed-solid-bg, #0d9488));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-completed-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--error{--_status-color: var(--talos-status-color, var(--talos-status-error-color, #dc2626));--_status-bg: var(--talos-status-bg, var(--talos-status-error-bg, #fef2f2));--_status-border: var(--talos-status-border, var(--talos-status-error-border, #fecaca));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-error-solid-bg, #dc2626));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-error-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--terminated{--_status-color: var(--talos-status-color, var(--talos-status-terminated-color, #334155));--_status-bg: var(--talos-status-bg, var(--talos-status-terminated-bg, #f1f5f9));--_status-border: var(--talos-status-border, var(--talos-status-terminated-border, #cbd5e1));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-terminated-solid-bg, #334155));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-terminated-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--expired{--_status-color: var(--talos-status-color, var(--talos-status-expired-color, #7e22ce));--_status-bg: var(--talos-status-bg, var(--talos-status-expired-bg, #faf5ff));--_status-border: var(--talos-status-border, var(--talos-status-expired-border, #e9d5ff));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-expired-solid-bg, #7e22ce));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-expired-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--subtle{color:var(--_status-color);background-color:var(--_status-bg);border:1px solid var(--_status-border)}:host.talos-status-tag--solid{color:var(--_status-solid-text);background-color:var(--_status-solid-bg);border:1px solid transparent;box-shadow:0 1px 2px #00000014}:host.talos-status-tag--outline{color:var(--_status-color);background-color:transparent;border:1px solid var(--_status-color)}:host.talos-status-tag--dot{color:var(--talos-text-color, #0f172a);background-color:transparent;border:1px solid transparent;padding-left:0;padding-right:0}:host.talos-status-tag--xs{height:1.25rem;font-size:.6875rem;padding:0 .375rem;gap:.25rem}:host.talos-status-tag--xs.talos-status-tag--icon-only{width:1.25rem;padding:0}:host.talos-status-tag--xs .talos-status-tag__dot{width:6px;height:6px}:host.talos-status-tag--sm{height:1.5rem;font-size:.75rem;padding:0 .5rem;gap:.3125rem}:host.talos-status-tag--sm.talos-status-tag--icon-only{width:1.5rem;padding:0}:host.talos-status-tag--sm .talos-status-tag__dot{width:7px;height:7px}:host.talos-status-tag--md{height:1.75rem;font-size:.8125rem;padding:0 .625rem;gap:.375rem}:host.talos-status-tag--md.talos-status-tag--icon-only{width:1.75rem;padding:0}:host.talos-status-tag--md .talos-status-tag__dot{width:8px;height:8px}:host.talos-status-tag--lg{height:2rem;font-size:.875rem;padding:0 .75rem;gap:.4375rem}:host.talos-status-tag--lg.talos-status-tag--icon-only{width:2rem;padding:0}:host.talos-status-tag--lg .talos-status-tag__dot{width:10px;height:10px}:host.talos-status-tag--rounded{border-radius:var(--talos-status-radius-rounded, .375rem)}:host.talos-status-tag--pill{border-radius:var(--talos-status-radius-pill, 9999px)}:host.talos-status-tag--square{border-radius:var(--talos-status-radius-square, .25rem)}:host.talos-status-tag--pulse:not(.talos-status-tag--dot){animation:talos-status-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite}.talos-status-tag__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}.talos-status-tag__icon--spin{animation:talos-status-spin 1.4s linear infinite}.talos-status-tag__icon--pulse{animation:talos-status-icon-pulse 1.8s ease-in-out infinite}.talos-status-tag__label{display:inline-flex;align-items:center;line-height:1}.talos-status-tag__dot{position:relative;display:inline-block;border-radius:9999px;background-color:var(--_status-dot-color);flex-shrink:0}.talos-status-tag__dot .talos-status-tag__dot-ping{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:9999px;background-color:var(--_status-dot-color);opacity:.75;animation:talos-status-ping 1.5s cubic-bezier(0,0,.2,1) infinite}.talos-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}@keyframes talos-status-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes talos-status-pulse{0%,to{opacity:1}50%{opacity:.65}}@keyframes talos-status-icon-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.15);opacity:.8}}@keyframes talos-status-ping{75%,to{transform:scale(2.2);opacity:0}}:root[data-theme=dark] :host.talos-status-tag--new,:root.dark :host.talos-status-tag--new,[data-theme=dark] :host.talos-status-tag--new,[data-mode=dark] :host.talos-status-tag--new,.dark :host.talos-status-tag--new,.dark-theme :host.talos-status-tag--new{--_status-color: var(--talos-status-new-color, #38bdf8);--_status-bg: var(--talos-status-new-bg, rgba(2, 132, 199, .18));--_status-border: var(--talos-status-new-border, rgba(56, 189, 248, .35));--_status-solid-bg: var(--talos-status-new-solid-bg, #0284c7)}:root[data-theme=dark] :host.talos-status-tag--pending,:root.dark :host.talos-status-tag--pending,[data-theme=dark] :host.talos-status-tag--pending,[data-mode=dark] :host.talos-status-tag--pending,.dark :host.talos-status-tag--pending,.dark-theme :host.talos-status-tag--pending{--_status-color: var(--talos-status-pending-color, #fbbf24);--_status-bg: var(--talos-status-pending-bg, rgba(217, 119, 6, .18));--_status-border: var(--talos-status-pending-border, rgba(251, 191, 36, .35));--_status-solid-bg: var(--talos-status-pending-solid-bg, #d97706)}:root[data-theme=dark] :host.talos-status-tag--inprogress,:root.dark :host.talos-status-tag--inprogress,[data-theme=dark] :host.talos-status-tag--inprogress,[data-mode=dark] :host.talos-status-tag--inprogress,.dark :host.talos-status-tag--inprogress,.dark-theme :host.talos-status-tag--inprogress{--_status-color: var(--talos-status-inprogress-color, #60a5fa);--_status-bg: var(--talos-status-inprogress-bg, rgba(37, 99, 235, .2));--_status-border: var(--talos-status-inprogress-border, rgba(96, 165, 250, .35));--_status-solid-bg: var(--talos-status-inprogress-solid-bg, #2563eb)}:root[data-theme=dark] :host.talos-status-tag--paused,:root[data-theme=dark] :host.talos-status-tag--retrying,:root.dark :host.talos-status-tag--paused,:root.dark :host.talos-status-tag--retrying,[data-theme=dark] :host.talos-status-tag--paused,[data-theme=dark] :host.talos-status-tag--retrying,[data-mode=dark] :host.talos-status-tag--paused,[data-mode=dark] :host.talos-status-tag--retrying,.dark :host.talos-status-tag--paused,.dark :host.talos-status-tag--retrying,.dark-theme :host.talos-status-tag--paused,.dark-theme :host.talos-status-tag--retrying{--_status-color: var(--talos-status-paused-color, #fb923c);--_status-bg: var(--talos-status-paused-bg, rgba(194, 65, 12, .18));--_status-border: var(--talos-status-paused-border, rgba(251, 146, 60, .35));--_status-solid-bg: var(--talos-status-paused-solid-bg, #ea580c)}:root[data-theme=dark] :host.talos-status-tag--skipped,:root.dark :host.talos-status-tag--skipped,[data-theme=dark] :host.talos-status-tag--skipped,[data-mode=dark] :host.talos-status-tag--skipped,.dark :host.talos-status-tag--skipped,.dark-theme :host.talos-status-tag--skipped{--_status-color: var(--talos-status-skipped-color, #94a3b8);--_status-bg: var(--talos-status-skipped-bg, rgba(100, 116, 139, .18));--_status-border: var(--talos-status-skipped-border, rgba(148, 163, 184, .3));--_status-solid-bg: var(--talos-status-skipped-solid-bg, #475569)}:root[data-theme=dark] :host.talos-status-tag--success,:root.dark :host.talos-status-tag--success,[data-theme=dark] :host.talos-status-tag--success,[data-mode=dark] :host.talos-status-tag--success,.dark :host.talos-status-tag--success,.dark-theme :host.talos-status-tag--success{--_status-color: var(--talos-status-success-color, #4ade80);--_status-bg: var(--talos-status-success-bg, rgba(22, 163, 74, .18));--_status-border: var(--talos-status-success-border, rgba(74, 222, 128, .35));--_status-solid-bg: var(--talos-status-success-solid-bg, #16a34a)}:root[data-theme=dark] :host.talos-status-tag--completed,:root.dark :host.talos-status-tag--completed,[data-theme=dark] :host.talos-status-tag--completed,[data-mode=dark] :host.talos-status-tag--completed,.dark :host.talos-status-tag--completed,.dark-theme :host.talos-status-tag--completed{--_status-color: var(--talos-status-completed-color, #2dd4bf);--_status-bg: var(--talos-status-completed-bg, rgba(15, 118, 110, .18));--_status-border: var(--talos-status-completed-border, rgba(45, 212, 191, .35));--_status-solid-bg: var(--talos-status-completed-solid-bg, #0d9488)}:root[data-theme=dark] :host.talos-status-tag--error,:root.dark :host.talos-status-tag--error,[data-theme=dark] :host.talos-status-tag--error,[data-mode=dark] :host.talos-status-tag--error,.dark :host.talos-status-tag--error,.dark-theme :host.talos-status-tag--error{--_status-color: var(--talos-status-error-color, #f87171);--_status-bg: var(--talos-status-error-bg, rgba(220, 38, 38, .18));--_status-border: var(--talos-status-error-border, rgba(248, 113, 113, .35));--_status-solid-bg: var(--talos-status-error-solid-bg, #dc2626)}:root[data-theme=dark] :host.talos-status-tag--terminated,:root.dark :host.talos-status-tag--terminated,[data-theme=dark] :host.talos-status-tag--terminated,[data-mode=dark] :host.talos-status-tag--terminated,.dark :host.talos-status-tag--terminated,.dark-theme :host.talos-status-tag--terminated{--_status-color: var(--talos-status-terminated-color, #cbd5e1);--_status-bg: var(--talos-status-terminated-bg, rgba(51, 65, 85, .3));--_status-border: var(--talos-status-terminated-border, rgba(203, 213, 225, .3));--_status-solid-bg: var(--talos-status-terminated-solid-bg, #334155)}:root[data-theme=dark] :host.talos-status-tag--expired,:root.dark :host.talos-status-tag--expired,[data-theme=dark] :host.talos-status-tag--expired,[data-mode=dark] :host.talos-status-tag--expired,.dark :host.talos-status-tag--expired,.dark-theme :host.talos-status-tag--expired{--_status-color: var(--talos-status-expired-color, #c084fc);--_status-bg: var(--talos-status-expired-bg, rgba(126, 34, 206, .2));--_status-border: var(--talos-status-expired-border, rgba(192, 132, 252, .35));--_status-solid-bg: var(--talos-status-expired-solid-bg, #7e22ce)}:root[data-theme=dark] :host.talos-status-tag--dot,:root.dark :host.talos-status-tag--dot,[data-theme=dark] :host.talos-status-tag--dot,[data-mode=dark] :host.talos-status-tag--dot,.dark :host.talos-status-tag--dot,.dark-theme :host.talos-status-tag--dot{color:var(--talos-text-color, #f9fafb)}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
910
+ }
911
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosStatusTagComponent, decorators: [{
912
+ type: Component,
913
+ args: [{ selector: 'talos-status-tag, [talosStatusTag]', imports: [NgComponentOutlet], host: {
914
+ 'class': 'talos-status-tag',
915
+ '[class.talos-status-tag--new]': 'canonicalStatus() === "NEW"',
916
+ '[class.talos-status-tag--pending]': 'canonicalStatus() === "PENDING"',
917
+ '[class.talos-status-tag--inprogress]': 'canonicalStatus() === "IN-PROGRESS"',
918
+ '[class.talos-status-tag--paused]': 'canonicalStatus() === "PAUSED"',
919
+ '[class.talos-status-tag--retrying]': 'canonicalStatus() === "RETRYING"',
920
+ '[class.talos-status-tag--skipped]': 'canonicalStatus() === "SKIPPED"',
921
+ '[class.talos-status-tag--success]': 'canonicalStatus() === "SUCCESS"',
922
+ '[class.talos-status-tag--completed]': 'canonicalStatus() === "COMPLETED"',
923
+ '[class.talos-status-tag--error]': 'canonicalStatus() === "ERROR"',
924
+ '[class.talos-status-tag--terminated]': 'canonicalStatus() === "TERMINATED"',
925
+ '[class.talos-status-tag--expired]': 'canonicalStatus() === "EXPIRED"',
926
+ '[class.talos-status-tag--subtle]': 'variant() === "subtle"',
927
+ '[class.talos-status-tag--solid]': 'variant() === "solid"',
928
+ '[class.talos-status-tag--outline]': 'variant() === "outline"',
929
+ '[class.talos-status-tag--dot]': 'variant() === "dot"',
930
+ '[class.talos-status-tag--xs]': 'size() === "xs"',
931
+ '[class.talos-status-tag--sm]': 'size() === "sm"',
932
+ '[class.talos-status-tag--md]': 'size() === "md"',
933
+ '[class.talos-status-tag--lg]': 'size() === "lg"',
934
+ '[class.talos-status-tag--rounded]': 'shape() === "rounded"',
935
+ '[class.talos-status-tag--pill]': 'shape() === "pill"',
936
+ '[class.talos-status-tag--square]': 'shape() === "square"',
937
+ '[class.talos-status-tag--pulse]': 'pulse()',
938
+ '[class.talos-status-tag--icon-only]': 'iconOnly()',
939
+ '[attr.role]': '"status"',
940
+ '[attr.aria-label]': 'resolvedAriaLabel()'
941
+ }, template: "@if (variant() === 'dot') {\n <span class=\"talos-status-tag__dot\" [class.talos-status-tag__dot--pulse]=\"pulse()\" aria-hidden=\"true\">\n @if (pulse()) {\n <span class=\"talos-status-tag__dot-ping\" aria-hidden=\"true\"></span>\n }\n </span>\n} @else if (showIcon()) {\n <span\n class=\"talos-status-tag__icon\"\n [class.talos-status-tag__icon--spin]=\"shouldAnimateIcon()\"\n [class.talos-status-tag__icon--pulse]=\"pulse()\"\n aria-hidden=\"true\"\n >\n <ng-container *ngComponentOutlet=\"activeIconComponent(); inputs: { size: iconSize() }\" />\n </span>\n}\n\n<span [class.talos-status-tag__label]=\"!iconOnly()\" [class.talos-sr-only]=\"iconOnly()\">\n <ng-content>{{ resolvedLabel() }}</ng-content>\n</span>\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;box-sizing:border-box;font-family:var(--talos-status-font-family, inherit);font-weight:var(--talos-status-font-weight, 600);line-height:1;text-decoration:none;letter-spacing:.015em;-webkit-user-select:none;user-select:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;--_status-color: var(--talos-status-color, var(--talos-status-pending-color, #d97706));--_status-bg: var(--talos-status-bg, var(--talos-status-pending-bg, #fffbeb));--_status-border: var(--talos-status-border, var(--talos-status-pending-border, #fde68a));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-pending-solid-bg, #d97706));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-pending-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--new{--_status-color: var(--talos-status-color, var(--talos-status-new-color, #0284c7));--_status-bg: var(--talos-status-bg, var(--talos-status-new-bg, #f0f9ff));--_status-border: var(--talos-status-border, var(--talos-status-new-border, #bae6fd));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-new-solid-bg, #0284c7));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-new-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--pending{--_status-color: var(--talos-status-color, var(--talos-status-pending-color, #d97706));--_status-bg: var(--talos-status-bg, var(--talos-status-pending-bg, #fffbeb));--_status-border: var(--talos-status-border, var(--talos-status-pending-border, #fde68a));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-pending-solid-bg, #d97706));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-pending-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--inprogress{--_status-color: var(--talos-status-color, var(--talos-status-inprogress-color, #2563eb));--_status-bg: var(--talos-status-bg, var(--talos-status-inprogress-bg, #eff6ff));--_status-border: var(--talos-status-border, var(--talos-status-inprogress-border, #bfdbfe));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-inprogress-solid-bg, #2563eb));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-inprogress-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--paused{--_status-color: var(--talos-status-color, var(--talos-status-paused-color, #b45309));--_status-bg: var(--talos-status-bg, var(--talos-status-paused-bg, #fff7ed));--_status-border: var(--talos-status-border, var(--talos-status-paused-border, #fed7aa));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-paused-solid-bg, #ea580c));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-paused-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--retrying{--_status-color: var(--talos-status-color, var(--talos-status-retrying-color, #c2410c));--_status-bg: var(--talos-status-bg, var(--talos-status-retrying-bg, #fff7ed));--_status-border: var(--talos-status-border, var(--talos-status-retrying-border, #ffedd5));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-retrying-solid-bg, #ea580c));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-retrying-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--skipped{--_status-color: var(--talos-status-color, var(--talos-status-skipped-color, #475569));--_status-bg: var(--talos-status-bg, var(--talos-status-skipped-bg, #f8fafc));--_status-border: var(--talos-status-border, var(--talos-status-skipped-border, #e2e8f0));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-skipped-solid-bg, #64748b));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-skipped-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--success{--_status-color: var(--talos-status-color, var(--talos-status-success-color, #16a34a));--_status-bg: var(--talos-status-bg, var(--talos-status-success-bg, #f0fdf4));--_status-border: var(--talos-status-border, var(--talos-status-success-border, #bbf7d0));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-success-solid-bg, #16a34a));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-success-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--completed{--_status-color: var(--talos-status-color, var(--talos-status-completed-color, #0f766e));--_status-bg: var(--talos-status-bg, var(--talos-status-completed-bg, #f0fdfa));--_status-border: var(--talos-status-border, var(--talos-status-completed-border, #99f6e4));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-completed-solid-bg, #0d9488));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-completed-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--error{--_status-color: var(--talos-status-color, var(--talos-status-error-color, #dc2626));--_status-bg: var(--talos-status-bg, var(--talos-status-error-bg, #fef2f2));--_status-border: var(--talos-status-border, var(--talos-status-error-border, #fecaca));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-error-solid-bg, #dc2626));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-error-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--terminated{--_status-color: var(--talos-status-color, var(--talos-status-terminated-color, #334155));--_status-bg: var(--talos-status-bg, var(--talos-status-terminated-bg, #f1f5f9));--_status-border: var(--talos-status-border, var(--talos-status-terminated-border, #cbd5e1));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-terminated-solid-bg, #334155));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-terminated-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--expired{--_status-color: var(--talos-status-color, var(--talos-status-expired-color, #7e22ce));--_status-bg: var(--talos-status-bg, var(--talos-status-expired-bg, #faf5ff));--_status-border: var(--talos-status-border, var(--talos-status-expired-border, #e9d5ff));--_status-solid-bg: var(--talos-status-solid-bg, var(--talos-status-expired-solid-bg, #7e22ce));--_status-solid-text: var(--talos-status-solid-text, var(--talos-status-expired-solid-text, #ffffff));--_status-dot-color: var(--talos-status-dot-color, var(--_status-color))}:host.talos-status-tag--subtle{color:var(--_status-color);background-color:var(--_status-bg);border:1px solid var(--_status-border)}:host.talos-status-tag--solid{color:var(--_status-solid-text);background-color:var(--_status-solid-bg);border:1px solid transparent;box-shadow:0 1px 2px #00000014}:host.talos-status-tag--outline{color:var(--_status-color);background-color:transparent;border:1px solid var(--_status-color)}:host.talos-status-tag--dot{color:var(--talos-text-color, #0f172a);background-color:transparent;border:1px solid transparent;padding-left:0;padding-right:0}:host.talos-status-tag--xs{height:1.25rem;font-size:.6875rem;padding:0 .375rem;gap:.25rem}:host.talos-status-tag--xs.talos-status-tag--icon-only{width:1.25rem;padding:0}:host.talos-status-tag--xs .talos-status-tag__dot{width:6px;height:6px}:host.talos-status-tag--sm{height:1.5rem;font-size:.75rem;padding:0 .5rem;gap:.3125rem}:host.talos-status-tag--sm.talos-status-tag--icon-only{width:1.5rem;padding:0}:host.talos-status-tag--sm .talos-status-tag__dot{width:7px;height:7px}:host.talos-status-tag--md{height:1.75rem;font-size:.8125rem;padding:0 .625rem;gap:.375rem}:host.talos-status-tag--md.talos-status-tag--icon-only{width:1.75rem;padding:0}:host.talos-status-tag--md .talos-status-tag__dot{width:8px;height:8px}:host.talos-status-tag--lg{height:2rem;font-size:.875rem;padding:0 .75rem;gap:.4375rem}:host.talos-status-tag--lg.talos-status-tag--icon-only{width:2rem;padding:0}:host.talos-status-tag--lg .talos-status-tag__dot{width:10px;height:10px}:host.talos-status-tag--rounded{border-radius:var(--talos-status-radius-rounded, .375rem)}:host.talos-status-tag--pill{border-radius:var(--talos-status-radius-pill, 9999px)}:host.talos-status-tag--square{border-radius:var(--talos-status-radius-square, .25rem)}:host.talos-status-tag--pulse:not(.talos-status-tag--dot){animation:talos-status-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite}.talos-status-tag__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}.talos-status-tag__icon--spin{animation:talos-status-spin 1.4s linear infinite}.talos-status-tag__icon--pulse{animation:talos-status-icon-pulse 1.8s ease-in-out infinite}.talos-status-tag__label{display:inline-flex;align-items:center;line-height:1}.talos-status-tag__dot{position:relative;display:inline-block;border-radius:9999px;background-color:var(--_status-dot-color);flex-shrink:0}.talos-status-tag__dot .talos-status-tag__dot-ping{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:9999px;background-color:var(--_status-dot-color);opacity:.75;animation:talos-status-ping 1.5s cubic-bezier(0,0,.2,1) infinite}.talos-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}@keyframes talos-status-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes talos-status-pulse{0%,to{opacity:1}50%{opacity:.65}}@keyframes talos-status-icon-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.15);opacity:.8}}@keyframes talos-status-ping{75%,to{transform:scale(2.2);opacity:0}}:root[data-theme=dark] :host.talos-status-tag--new,:root.dark :host.talos-status-tag--new,[data-theme=dark] :host.talos-status-tag--new,[data-mode=dark] :host.talos-status-tag--new,.dark :host.talos-status-tag--new,.dark-theme :host.talos-status-tag--new{--_status-color: var(--talos-status-new-color, #38bdf8);--_status-bg: var(--talos-status-new-bg, rgba(2, 132, 199, .18));--_status-border: var(--talos-status-new-border, rgba(56, 189, 248, .35));--_status-solid-bg: var(--talos-status-new-solid-bg, #0284c7)}:root[data-theme=dark] :host.talos-status-tag--pending,:root.dark :host.talos-status-tag--pending,[data-theme=dark] :host.talos-status-tag--pending,[data-mode=dark] :host.talos-status-tag--pending,.dark :host.talos-status-tag--pending,.dark-theme :host.talos-status-tag--pending{--_status-color: var(--talos-status-pending-color, #fbbf24);--_status-bg: var(--talos-status-pending-bg, rgba(217, 119, 6, .18));--_status-border: var(--talos-status-pending-border, rgba(251, 191, 36, .35));--_status-solid-bg: var(--talos-status-pending-solid-bg, #d97706)}:root[data-theme=dark] :host.talos-status-tag--inprogress,:root.dark :host.talos-status-tag--inprogress,[data-theme=dark] :host.talos-status-tag--inprogress,[data-mode=dark] :host.talos-status-tag--inprogress,.dark :host.talos-status-tag--inprogress,.dark-theme :host.talos-status-tag--inprogress{--_status-color: var(--talos-status-inprogress-color, #60a5fa);--_status-bg: var(--talos-status-inprogress-bg, rgba(37, 99, 235, .2));--_status-border: var(--talos-status-inprogress-border, rgba(96, 165, 250, .35));--_status-solid-bg: var(--talos-status-inprogress-solid-bg, #2563eb)}:root[data-theme=dark] :host.talos-status-tag--paused,:root[data-theme=dark] :host.talos-status-tag--retrying,:root.dark :host.talos-status-tag--paused,:root.dark :host.talos-status-tag--retrying,[data-theme=dark] :host.talos-status-tag--paused,[data-theme=dark] :host.talos-status-tag--retrying,[data-mode=dark] :host.talos-status-tag--paused,[data-mode=dark] :host.talos-status-tag--retrying,.dark :host.talos-status-tag--paused,.dark :host.talos-status-tag--retrying,.dark-theme :host.talos-status-tag--paused,.dark-theme :host.talos-status-tag--retrying{--_status-color: var(--talos-status-paused-color, #fb923c);--_status-bg: var(--talos-status-paused-bg, rgba(194, 65, 12, .18));--_status-border: var(--talos-status-paused-border, rgba(251, 146, 60, .35));--_status-solid-bg: var(--talos-status-paused-solid-bg, #ea580c)}:root[data-theme=dark] :host.talos-status-tag--skipped,:root.dark :host.talos-status-tag--skipped,[data-theme=dark] :host.talos-status-tag--skipped,[data-mode=dark] :host.talos-status-tag--skipped,.dark :host.talos-status-tag--skipped,.dark-theme :host.talos-status-tag--skipped{--_status-color: var(--talos-status-skipped-color, #94a3b8);--_status-bg: var(--talos-status-skipped-bg, rgba(100, 116, 139, .18));--_status-border: var(--talos-status-skipped-border, rgba(148, 163, 184, .3));--_status-solid-bg: var(--talos-status-skipped-solid-bg, #475569)}:root[data-theme=dark] :host.talos-status-tag--success,:root.dark :host.talos-status-tag--success,[data-theme=dark] :host.talos-status-tag--success,[data-mode=dark] :host.talos-status-tag--success,.dark :host.talos-status-tag--success,.dark-theme :host.talos-status-tag--success{--_status-color: var(--talos-status-success-color, #4ade80);--_status-bg: var(--talos-status-success-bg, rgba(22, 163, 74, .18));--_status-border: var(--talos-status-success-border, rgba(74, 222, 128, .35));--_status-solid-bg: var(--talos-status-success-solid-bg, #16a34a)}:root[data-theme=dark] :host.talos-status-tag--completed,:root.dark :host.talos-status-tag--completed,[data-theme=dark] :host.talos-status-tag--completed,[data-mode=dark] :host.talos-status-tag--completed,.dark :host.talos-status-tag--completed,.dark-theme :host.talos-status-tag--completed{--_status-color: var(--talos-status-completed-color, #2dd4bf);--_status-bg: var(--talos-status-completed-bg, rgba(15, 118, 110, .18));--_status-border: var(--talos-status-completed-border, rgba(45, 212, 191, .35));--_status-solid-bg: var(--talos-status-completed-solid-bg, #0d9488)}:root[data-theme=dark] :host.talos-status-tag--error,:root.dark :host.talos-status-tag--error,[data-theme=dark] :host.talos-status-tag--error,[data-mode=dark] :host.talos-status-tag--error,.dark :host.talos-status-tag--error,.dark-theme :host.talos-status-tag--error{--_status-color: var(--talos-status-error-color, #f87171);--_status-bg: var(--talos-status-error-bg, rgba(220, 38, 38, .18));--_status-border: var(--talos-status-error-border, rgba(248, 113, 113, .35));--_status-solid-bg: var(--talos-status-error-solid-bg, #dc2626)}:root[data-theme=dark] :host.talos-status-tag--terminated,:root.dark :host.talos-status-tag--terminated,[data-theme=dark] :host.talos-status-tag--terminated,[data-mode=dark] :host.talos-status-tag--terminated,.dark :host.talos-status-tag--terminated,.dark-theme :host.talos-status-tag--terminated{--_status-color: var(--talos-status-terminated-color, #cbd5e1);--_status-bg: var(--talos-status-terminated-bg, rgba(51, 65, 85, .3));--_status-border: var(--talos-status-terminated-border, rgba(203, 213, 225, .3));--_status-solid-bg: var(--talos-status-terminated-solid-bg, #334155)}:root[data-theme=dark] :host.talos-status-tag--expired,:root.dark :host.talos-status-tag--expired,[data-theme=dark] :host.talos-status-tag--expired,[data-mode=dark] :host.talos-status-tag--expired,.dark :host.talos-status-tag--expired,.dark-theme :host.talos-status-tag--expired{--_status-color: var(--talos-status-expired-color, #c084fc);--_status-bg: var(--talos-status-expired-bg, rgba(126, 34, 206, .2));--_status-border: var(--talos-status-expired-border, rgba(192, 132, 252, .35));--_status-solid-bg: var(--talos-status-expired-solid-bg, #7e22ce)}:root[data-theme=dark] :host.talos-status-tag--dot,:root.dark :host.talos-status-tag--dot,[data-theme=dark] :host.talos-status-tag--dot,[data-mode=dark] :host.talos-status-tag--dot,.dark :host.talos-status-tag--dot,.dark-theme :host.talos-status-tag--dot{color:var(--talos-text-color, #f9fafb)}\n"] }]
942
+ }], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], pulse: [{ type: i0.Input, args: [{ isSignal: true, alias: "pulse", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
943
+
944
+ class TalosStatusTagModule {
945
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosStatusTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
946
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosStatusTagModule, imports: [TalosStatusTagComponent], exports: [TalosStatusTagComponent] });
947
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosStatusTagModule });
948
+ }
949
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosStatusTagModule, decorators: [{
950
+ type: NgModule,
951
+ args: [{
952
+ imports: [TalosStatusTagComponent],
953
+ exports: [TalosStatusTagComponent]
954
+ }]
955
+ }] });
956
+
957
+ class TalosGridStatusCellComponent {
958
+ row = input.required(/* @ts-ignore */
959
+ ...(ngDevMode ? [{ debugName: "row" }] : /* istanbul ignore next */ []));
960
+ column = input.required(/* @ts-ignore */
961
+ ...(ngDevMode ? [{ debugName: "column" }] : /* istanbul ignore next */ []));
962
+ rawValue = input(/* @ts-ignore */
963
+ ...(ngDevMode ? [undefined, { debugName: "rawValue" }] : /* istanbul ignore next */ []));
964
+ value = computed(() => {
965
+ const directVal = this.rawValue();
966
+ if (directVal !== undefined) {
967
+ return directVal;
968
+ }
969
+ const r = this.row();
970
+ const col = this.column();
971
+ if (!r || !col?.field)
972
+ return '';
973
+ return r[col.field];
974
+ }, /* @ts-ignore */
975
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
976
+ status = computed(() => {
977
+ const val = this.value();
978
+ const r = this.row();
979
+ const config = this.column().statusConfig;
980
+ if (config?.statusMap) {
981
+ return config.statusMap(val, r);
982
+ }
983
+ return (val ?? 'PENDING');
984
+ }, /* @ts-ignore */
985
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
986
+ label = computed(() => {
987
+ const val = this.value();
988
+ const r = this.row();
989
+ const col = this.column();
990
+ if (col.formatter) {
991
+ return col.formatter(val, r);
992
+ }
993
+ return String(val ?? '');
994
+ }, /* @ts-ignore */
995
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
996
+ variant = computed(() => {
997
+ return this.column().statusConfig?.variant ?? 'subtle';
998
+ }, /* @ts-ignore */
999
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
1000
+ size = computed(() => {
1001
+ return this.column().statusConfig?.size ?? 'sm';
1002
+ }, /* @ts-ignore */
1003
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
1004
+ shape = computed(() => {
1005
+ return this.column().statusConfig?.shape ?? 'rounded';
1006
+ }, /* @ts-ignore */
1007
+ ...(ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []));
1008
+ showIcon = computed(() => {
1009
+ return this.column().statusConfig?.showIcon ?? true;
1010
+ }, /* @ts-ignore */
1011
+ ...(ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []));
1012
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridStatusCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1013
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.1", type: TalosGridStatusCellComponent, isStandalone: true, selector: "talos-grid-status-cell", inputs: { row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: true, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: true, transformFunction: null }, rawValue: { classPropertyName: "rawValue", publicName: "rawValue", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "talos-grid-status-cell" }, ngImport: i0, template: `
1014
+ <talos-status-tag
1015
+ [status]="status()"
1016
+ [variant]="variant()"
1017
+ [size]="size()"
1018
+ [shape]="shape()"
1019
+ [showIcon]="showIcon()"
1020
+ >
1021
+ {{ label() }}
1022
+ </talos-status-tag>
1023
+ `, isInline: true, dependencies: [{ kind: "component", type: TalosStatusTagComponent, selector: "talos-status-tag, [talosStatusTag]", inputs: ["status", "label", "variant", "size", "shape", "showIcon", "icon", "iconOnly", "pulse", "ariaLabel"] }] });
1024
+ }
1025
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridStatusCellComponent, decorators: [{
1026
+ type: Component,
1027
+ args: [{
1028
+ selector: 'talos-grid-status-cell',
1029
+ imports: [TalosStatusTagComponent],
1030
+ template: `
1031
+ <talos-status-tag
1032
+ [status]="status()"
1033
+ [variant]="variant()"
1034
+ [size]="size()"
1035
+ [shape]="shape()"
1036
+ [showIcon]="showIcon()"
1037
+ >
1038
+ {{ label() }}
1039
+ </talos-status-tag>
1040
+ `,
1041
+ host: {
1042
+ class: 'talos-grid-status-cell',
1043
+ },
1044
+ }]
1045
+ }], propDecorators: { row: [{ type: i0.Input, args: [{ isSignal: true, alias: "row", required: true }] }], column: [{ type: i0.Input, args: [{ isSignal: true, alias: "column", required: true }] }], rawValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "rawValue", required: false }] }] } });
1046
+
1047
+ class TalosGridActionsCellComponent {
1048
+ row = input.required(/* @ts-ignore */
1049
+ ...(ngDevMode ? [{ debugName: "row" }] : /* istanbul ignore next */ []));
1050
+ rowIndex = input.required(/* @ts-ignore */
1051
+ ...(ngDevMode ? [{ debugName: "rowIndex" }] : /* istanbul ignore next */ []));
1052
+ actions = input([], /* @ts-ignore */
1053
+ ...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
1054
+ actionClick = output();
1055
+ visibleActions() {
1056
+ const r = this.row();
1057
+ return (this.actions() || []).filter((a) => {
1058
+ if (typeof a.hidden === 'function') {
1059
+ return !a.hidden(r);
1060
+ }
1061
+ return !a.hidden;
1062
+ });
1063
+ }
1064
+ isActionDisabled(action) {
1065
+ if (typeof action.disabled === 'function') {
1066
+ return action.disabled(this.row());
1067
+ }
1068
+ return !!action.disabled;
1069
+ }
1070
+ getActionTooltip(action) {
1071
+ if (typeof action.tooltip === 'function') {
1072
+ return action.tooltip(this.row());
1073
+ }
1074
+ return action.tooltip || '';
1075
+ }
1076
+ onActionClick(action, event) {
1077
+ event.stopPropagation();
1078
+ if (this.isActionDisabled(action))
1079
+ return;
1080
+ if (action.onClick) {
1081
+ action.onClick(this.row(), this.rowIndex(), event);
1082
+ }
1083
+ this.actionClick.emit({
1084
+ actionId: action.id,
1085
+ row: this.row(),
1086
+ index: this.rowIndex(),
1087
+ });
1088
+ }
1089
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridActionsCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1090
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosGridActionsCellComponent, isStandalone: true, selector: "talos-grid-actions-cell", inputs: { row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: true, transformFunction: null }, rowIndex: { classPropertyName: "rowIndex", publicName: "rowIndex", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, host: { classAttribute: "talos-grid-actions-cell" }, ngImport: i0, template: `
1091
+ <div class="talos-grid-actions-wrapper">
1092
+ @for (action of visibleActions(); track action.id) {
1093
+ <button
1094
+ talosButton
1095
+ type="button"
1096
+ [variant]="action.variant ?? 'ghost'"
1097
+ [size]="action.size ?? 'xs'"
1098
+ [iconOnly]="action.iconOnly ?? !action.label"
1099
+ [disabled]="isActionDisabled(action)"
1100
+ [talosTooltip]="getActionTooltip(action)"
1101
+ [tooltipDisabled]="!getActionTooltip(action)"
1102
+ (click)="onActionClick(action, $event)"
1103
+ >
1104
+ @if (action.icon) {
1105
+ <ng-container *ngComponentOutlet="action.icon" />
1106
+ }
1107
+ @if (action.label && !action.iconOnly) {
1108
+ <span class="action-label">{{ action.label }}</span>
1109
+ }
1110
+ </button>
1111
+ }
1112
+ </div>
1113
+ `, isInline: true, styles: [".talos-grid-actions-wrapper{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap}.action-label{margin-left:2px;font-size:11.5px;font-weight:500}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: TalosButtonDirective, selector: "button[talosButton], a[talosButton], button[talos-btn], a[talos-btn]", inputs: ["variant", "size", "iconOnly", "fullWidth", "pill", "loading", "disabled", "animation", "spinning", "popping", "feedback"] }, { kind: "directive", type: TalosTooltipDirective, selector: "[talosTooltip], [tooltip]", inputs: ["talosTooltip", "tooltip", "tooltipPosition", "tooltipDisabled"] }] });
1114
+ }
1115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridActionsCellComponent, decorators: [{
1116
+ type: Component,
1117
+ args: [{ selector: 'talos-grid-actions-cell', imports: [NgComponentOutlet, TalosButtonDirective, TalosTooltipDirective], template: `
1118
+ <div class="talos-grid-actions-wrapper">
1119
+ @for (action of visibleActions(); track action.id) {
1120
+ <button
1121
+ talosButton
1122
+ type="button"
1123
+ [variant]="action.variant ?? 'ghost'"
1124
+ [size]="action.size ?? 'xs'"
1125
+ [iconOnly]="action.iconOnly ?? !action.label"
1126
+ [disabled]="isActionDisabled(action)"
1127
+ [talosTooltip]="getActionTooltip(action)"
1128
+ [tooltipDisabled]="!getActionTooltip(action)"
1129
+ (click)="onActionClick(action, $event)"
1130
+ >
1131
+ @if (action.icon) {
1132
+ <ng-container *ngComponentOutlet="action.icon" />
1133
+ }
1134
+ @if (action.label && !action.iconOnly) {
1135
+ <span class="action-label">{{ action.label }}</span>
1136
+ }
1137
+ </button>
1138
+ }
1139
+ </div>
1140
+ `, host: {
1141
+ class: 'talos-grid-actions-cell',
1142
+ }, styles: [".talos-grid-actions-wrapper{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap}.action-label{margin-left:2px;font-size:11.5px;font-weight:500}\n"] }]
1143
+ }], propDecorators: { row: [{ type: i0.Input, args: [{ isSignal: true, alias: "row", required: true }] }], rowIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowIndex", required: true }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }] } });
1144
+
1145
+ class TalosGridFilterDialogComponent {
1146
+ column = input.required(/* @ts-ignore */
1147
+ ...(ngDevMode ? [{ debugName: "column" }] : /* istanbul ignore next */ []));
1148
+ distinctValues = input([], /* @ts-ignore */
1149
+ ...(ngDevMode ? [{ debugName: "distinctValues" }] : /* istanbul ignore next */ []));
1150
+ currentFilter = input(undefined, /* @ts-ignore */
1151
+ ...(ngDevMode ? [{ debugName: "currentFilter" }] : /* istanbul ignore next */ []));
1152
+ align = input('left', /* @ts-ignore */
1153
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
1154
+ filterApplied = output();
1155
+ filterCleared = output();
1156
+ closed = output();
1157
+ // Template icons
1158
+ searchIcon = LucideSearch;
1159
+ xIcon = LucideX;
1160
+ // Filter mode derived from column:
1161
+ // Mode A: text, select, status
1162
+ // Mode B: number, date
1163
+ filterMode = computed(() => {
1164
+ const col = this.column();
1165
+ if (col.filterMode)
1166
+ return col.filterMode;
1167
+ if (col.type === 'number' ||
1168
+ col.sortType === 'number' ||
1169
+ col.type === 'date' ||
1170
+ col.sortType === 'date') {
1171
+ return 'condition';
1172
+ }
1173
+ return 'set';
1174
+ }, /* @ts-ignore */
1175
+ ...(ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []));
1176
+ // Mode A local state
1177
+ searchTerm = signal('', /* @ts-ignore */
1178
+ ...(ngDevMode ? [{ debugName: "searchTerm" }] : /* istanbul ignore next */ []));
1179
+ selectedSet = signal(new Set(), /* @ts-ignore */
1180
+ ...(ngDevMode ? [{ debugName: "selectedSet" }] : /* istanbul ignore next */ []));
1181
+ // Mode B local state
1182
+ selectedOperator = signal('eq', /* @ts-ignore */
1183
+ ...(ngDevMode ? [{ debugName: "selectedOperator" }] : /* istanbul ignore next */ []));
1184
+ filterVal = signal('', /* @ts-ignore */
1185
+ ...(ngDevMode ? [{ debugName: "filterVal" }] : /* istanbul ignore next */ []));
1186
+ filterVal2 = signal('', /* @ts-ignore */
1187
+ ...(ngDevMode ? [{ debugName: "filterVal2" }] : /* istanbul ignore next */ []));
1188
+ operatorOptions = computed(() => {
1189
+ if (this.isDateField()) {
1190
+ return [
1191
+ { value: 'eq', label: 'Is on' },
1192
+ { value: 'neq', label: 'Is not on' },
1193
+ { value: 'gt', label: 'After' },
1194
+ { value: 'gte', label: 'On or after' },
1195
+ { value: 'lt', label: 'Before' },
1196
+ { value: 'lte', label: 'On or before' },
1197
+ { value: 'between', label: 'Between' },
1198
+ { value: 'blank', label: 'Blank' },
1199
+ { value: 'notBlank', label: 'Not blank' },
1200
+ ];
1201
+ }
1202
+ if (this.isNumberField()) {
1203
+ return [
1204
+ { value: 'eq', label: 'Equals' },
1205
+ { value: 'neq', label: 'Does not equal' },
1206
+ { value: 'gt', label: 'Greater than' },
1207
+ { value: 'gte', label: 'Greater than or equal to' },
1208
+ { value: 'lt', label: 'Less than' },
1209
+ { value: 'lte', label: 'Less than or equal to' },
1210
+ { value: 'between', label: 'Between' },
1211
+ { value: 'blank', label: 'Blank' },
1212
+ { value: 'notBlank', label: 'Not blank' },
1213
+ ];
1214
+ }
1215
+ return [
1216
+ { value: 'contains', label: 'Contains' },
1217
+ { value: 'eq', label: 'Equals' },
1218
+ { value: 'neq', label: 'Does not equal' },
1219
+ { value: 'startsWith', label: 'Starts with' },
1220
+ { value: 'endsWith', label: 'Ends with' },
1221
+ { value: 'blank', label: 'Blank' },
1222
+ { value: 'notBlank', label: 'Not blank' },
1223
+ ];
1224
+ }, /* @ts-ignore */
1225
+ ...(ngDevMode ? [{ debugName: "operatorOptions" }] : /* istanbul ignore next */ []));
1226
+ ngOnInit() {
1227
+ this.initFromCurrentFilter();
1228
+ }
1229
+ initFromCurrentFilter() {
1230
+ const cf = this.currentFilter();
1231
+ const all = this.distinctValues();
1232
+ if (this.filterMode() === 'set') {
1233
+ if (cf && cf.mode === 'set' && cf.selectedValues) {
1234
+ this.selectedSet.set(new Set(cf.selectedValues));
1235
+ }
1236
+ else {
1237
+ // Default: all selected
1238
+ this.selectedSet.set(new Set(all));
1239
+ }
1240
+ }
1241
+ else {
1242
+ if (cf && cf.mode === 'condition') {
1243
+ this.selectedOperator.set(cf.operator || 'eq');
1244
+ this.filterVal.set(cf.value !== undefined && cf.value !== null ? String(cf.value) : '');
1245
+ this.filterVal2.set(cf.secondValue !== undefined && cf.secondValue !== null ? String(cf.secondValue) : '');
1246
+ }
1247
+ else {
1248
+ const defaultOp = this.isDateField() || this.isNumberField() ? 'eq' : 'contains';
1249
+ this.selectedOperator.set(defaultOp);
1250
+ this.filterVal.set('');
1251
+ this.filterVal2.set('');
1252
+ }
1253
+ }
1254
+ }
1255
+ isDateField() {
1256
+ const col = this.column();
1257
+ return col.type === 'date' || col.sortType === 'date';
1258
+ }
1259
+ isNumberField() {
1260
+ const col = this.column();
1261
+ return col.type === 'number' || col.sortType === 'number';
1262
+ }
1263
+ onDateFilterValChange(val) {
1264
+ if (!val) {
1265
+ this.filterVal.set('');
1266
+ }
1267
+ else if (val instanceof Date) {
1268
+ const y = val.getFullYear();
1269
+ const m = String(val.getMonth() + 1).padStart(2, '0');
1270
+ const d = String(val.getDate()).padStart(2, '0');
1271
+ this.filterVal.set(`${y}-${m}-${d}`);
1272
+ }
1273
+ else {
1274
+ this.filterVal.set(String(val));
1275
+ }
1276
+ }
1277
+ onDateFilterVal2Change(val) {
1278
+ if (!val) {
1279
+ this.filterVal2.set('');
1280
+ }
1281
+ else if (val instanceof Date) {
1282
+ const y = val.getFullYear();
1283
+ const m = String(val.getMonth() + 1).padStart(2, '0');
1284
+ const d = String(val.getDate()).padStart(2, '0');
1285
+ this.filterVal2.set(`${y}-${m}-${d}`);
1286
+ }
1287
+ else {
1288
+ this.filterVal2.set(String(val));
1289
+ }
1290
+ }
1291
+ // Mode A Helpers
1292
+ visibleDistinctValues = computed(() => {
1293
+ const term = this.searchTerm().toLowerCase().trim();
1294
+ const all = this.distinctValues();
1295
+ if (!term)
1296
+ return all;
1297
+ return all.filter((v) => (v || '').toLowerCase().includes(term));
1298
+ }, /* @ts-ignore */
1299
+ ...(ngDevMode ? [{ debugName: "visibleDistinctValues" }] : /* istanbul ignore next */ []));
1300
+ isAllSelected() {
1301
+ const visible = this.visibleDistinctValues();
1302
+ if (visible.length === 0)
1303
+ return false;
1304
+ const sel = this.selectedSet();
1305
+ return visible.every((v) => sel.has(v));
1306
+ }
1307
+ isIndeterminate() {
1308
+ const visible = this.visibleDistinctValues();
1309
+ if (visible.length === 0)
1310
+ return false;
1311
+ const sel = this.selectedSet();
1312
+ const count = visible.filter((v) => sel.has(v)).length;
1313
+ return count > 0 && count < visible.length;
1314
+ }
1315
+ toggleSelectAll(checkedOrEvent) {
1316
+ const checked = typeof checkedOrEvent === 'boolean'
1317
+ ? checkedOrEvent
1318
+ : checkedOrEvent.target.checked;
1319
+ const sel = new Set(this.selectedSet());
1320
+ const visible = this.visibleDistinctValues();
1321
+ if (checked) {
1322
+ visible.forEach((v) => sel.add(v));
1323
+ }
1324
+ else {
1325
+ visible.forEach((v) => sel.delete(v));
1326
+ }
1327
+ this.selectedSet.set(sel);
1328
+ }
1329
+ isValSelected(val) {
1330
+ return this.selectedSet().has(val);
1331
+ }
1332
+ toggleVal(val, checkedOrEvent) {
1333
+ const checked = typeof checkedOrEvent === 'boolean'
1334
+ ? checkedOrEvent
1335
+ : checkedOrEvent.target.checked;
1336
+ const sel = new Set(this.selectedSet());
1337
+ if (checked) {
1338
+ sel.add(val);
1339
+ }
1340
+ else {
1341
+ sel.delete(val);
1342
+ }
1343
+ this.selectedSet.set(sel);
1344
+ }
1345
+ onSearchEnter() {
1346
+ const term = this.searchTerm().trim();
1347
+ if (term) {
1348
+ const visible = this.visibleDistinctValues();
1349
+ this.selectedSet.set(new Set(visible));
1350
+ }
1351
+ this.applySetFilter();
1352
+ }
1353
+ // Apply Actions
1354
+ applyFilter() {
1355
+ if (this.filterMode() === 'set') {
1356
+ this.applySetFilter();
1357
+ }
1358
+ else {
1359
+ this.applyConditionFilter();
1360
+ }
1361
+ }
1362
+ applySetFilter() {
1363
+ const field = this.column().field;
1364
+ const all = this.distinctValues();
1365
+ let sel = Array.from(this.selectedSet());
1366
+ // If search term is present and user hadn't changed individual checkboxes (still all selected),
1367
+ // narrow selection to the visible search matches
1368
+ const term = this.searchTerm().trim();
1369
+ if (term && sel.length === all.length) {
1370
+ sel = this.visibleDistinctValues();
1371
+ this.selectedSet.set(new Set(sel));
1372
+ }
1373
+ // If all distinct values are selected and no search term, it's effectively no filter
1374
+ if (sel.length === all.length && all.every((v) => this.selectedSet().has(v))) {
1375
+ this.clearFilter();
1376
+ return;
1377
+ }
1378
+ this.filterApplied.emit({
1379
+ field,
1380
+ mode: 'set',
1381
+ selectedValues: sel,
1382
+ });
1383
+ this.closed.emit();
1384
+ }
1385
+ applyConditionFilter() {
1386
+ const field = this.column().field;
1387
+ const op = this.selectedOperator();
1388
+ const val = this.filterVal().trim();
1389
+ const val2 = this.filterVal2().trim();
1390
+ if (op !== 'blank' && op !== 'notBlank' && val === '') {
1391
+ this.clearFilter();
1392
+ return;
1393
+ }
1394
+ this.filterApplied.emit({
1395
+ field,
1396
+ mode: 'condition',
1397
+ operator: op,
1398
+ value: val,
1399
+ secondValue: op === 'between' ? val2 : undefined,
1400
+ });
1401
+ this.closed.emit();
1402
+ }
1403
+ clearFilter() {
1404
+ this.filterCleared.emit();
1405
+ this.closed.emit();
1406
+ }
1407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridFilterDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1408
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosGridFilterDialogComponent, isStandalone: true, selector: "talos-grid-filter-dialog", inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: true, transformFunction: null }, distinctValues: { classPropertyName: "distinctValues", publicName: "distinctValues", isSignal: true, isRequired: false, transformFunction: null }, currentFilter: { classPropertyName: "currentFilter", publicName: "currentFilter", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterApplied: "filterApplied", filterCleared: "filterCleared", closed: "closed" }, host: { listeners: { "keydown.escape": "closed.emit()" }, properties: { "class.align-right": "align() === 'right'" } }, ngImport: i0, template: `
1409
+ <div class="filter-dialog-container" (click)="$event.stopPropagation()">
1410
+ @if (filterMode() === 'set') {
1411
+ <!-- MODE A: Searchable Checkbox List (for text / select / status) -->
1412
+ <div class="mode-a-wrapper">
1413
+ <!-- Search input -->
1414
+ <div class="search-input-wrapper">
1415
+ <span class="search-icon">
1416
+ <ng-container *ngComponentOutlet="searchIcon" />
1417
+ </span>
1418
+ <input
1419
+ talosInput
1420
+ size="sm"
1421
+ type="text"
1422
+ class="filter-search-input"
1423
+ placeholder="Search..."
1424
+ [ngModel]="searchTerm()"
1425
+ (ngModelChange)="searchTerm.set($event)"
1426
+ (keydown.enter)="onSearchEnter()"
1427
+ autofocus
1428
+ />
1429
+ @if (searchTerm()) {
1430
+ <button type="button" class="clear-search-btn" (click)="searchTerm.set('')">
1431
+ <ng-container *ngComponentOutlet="xIcon" />
1432
+ </button>
1433
+ }
1434
+ </div>
1435
+
1436
+ <!-- Checkbox List -->
1437
+ <div class="checkbox-list-wrapper">
1438
+ <!-- (Select All) item -->
1439
+ <div class="checkbox-item select-all-item">
1440
+ <talos-checkbox
1441
+ size="sm"
1442
+ [checked]="isAllSelected()"
1443
+ [indeterminate]="isIndeterminate()"
1444
+ (checkedChange)="toggleSelectAll($event)"
1445
+ >
1446
+ {{ searchTerm() ? '(Select All Matches)' : '(Select All)' }}
1447
+ </talos-checkbox>
1448
+ </div>
1449
+
1450
+ <!-- Distinct item checkboxes -->
1451
+ @for (val of visibleDistinctValues(); track val) {
1452
+ <div class="checkbox-item">
1453
+ <talos-checkbox
1454
+ size="sm"
1455
+ [checked]="isValSelected(val)"
1456
+ (checkedChange)="toggleVal(val, $event)"
1457
+ >
1458
+ {{ val || '(Blank)' }}
1459
+ </talos-checkbox>
1460
+ </div>
1461
+ }
1462
+
1463
+ @if (visibleDistinctValues().length === 0) {
1464
+ <div class="no-matches-msg">No matching values</div>
1465
+ }
1466
+ </div>
1467
+ </div>
1468
+ } @else {
1469
+ <!-- MODE B: Operator Dropdown & Filter Input (for numbers / dates) -->
1470
+ <div class="mode-b-wrapper">
1471
+ <!-- Operator Dropdown -->
1472
+ <div class="operator-dropdown-wrapper">
1473
+ <talos-select-input
1474
+ size="sm"
1475
+ [ngModel]="selectedOperator()"
1476
+ (ngModelChange)="selectedOperator.set($event)"
1477
+ >
1478
+ @for (op of operatorOptions(); track op.value) {
1479
+ <talos-option [value]="op.value" [label]="op.label">{{ op.label }}</talos-option>
1480
+ }
1481
+ </talos-select-input>
1482
+ </div>
1483
+
1484
+ <!-- Filter Value Input -->
1485
+ @if (selectedOperator() !== 'blank' && selectedOperator() !== 'notBlank') {
1486
+ @if (isDateField()) {
1487
+ <div class="date-picker-wrapper" (keydown.enter)="applyConditionFilter()">
1488
+ <talos-date-picker
1489
+ [ngModel]="filterVal()"
1490
+ (ngModelChange)="onDateFilterValChange($event)"
1491
+ size="sm"
1492
+ placeholder="Select date"
1493
+ />
1494
+ </div>
1495
+ } @else {
1496
+ <div class="search-input-wrapper">
1497
+ <span class="search-icon">
1498
+ <ng-container *ngComponentOutlet="searchIcon" />
1499
+ </span>
1500
+ <input
1501
+ talosInput
1502
+ size="sm"
1503
+ type="text"
1504
+ class="filter-search-input"
1505
+ placeholder="Filter..."
1506
+ [ngModel]="filterVal()"
1507
+ (ngModelChange)="filterVal.set($event)"
1508
+ (keydown.enter)="applyConditionFilter()"
1509
+ autofocus
1510
+ />
1511
+ </div>
1512
+ }
1513
+
1514
+ <!-- Second input for Between -->
1515
+ @if (selectedOperator() === 'between') {
1516
+ @if (isDateField()) {
1517
+ <div class="date-picker-wrapper" style="margin-top: 6px;" (keydown.enter)="applyConditionFilter()">
1518
+ <talos-date-picker
1519
+ [ngModel]="filterVal2()"
1520
+ (ngModelChange)="onDateFilterVal2Change($event)"
1521
+ size="sm"
1522
+ placeholder="And max date"
1523
+ />
1524
+ </div>
1525
+ } @else {
1526
+ <div class="search-input-wrapper" style="margin-top: 6px;">
1527
+ <span class="search-icon">
1528
+ <ng-container *ngComponentOutlet="searchIcon" />
1529
+ </span>
1530
+ <input
1531
+ talosInput
1532
+ size="sm"
1533
+ type="text"
1534
+ class="filter-search-input"
1535
+ placeholder="And max value..."
1536
+ [ngModel]="filterVal2()"
1537
+ (ngModelChange)="filterVal2.set($event)"
1538
+ (keydown.enter)="applyConditionFilter()"
1539
+ />
1540
+ </div>
1541
+ }
1542
+ }
1543
+ }
1544
+ </div>
1545
+ }
1546
+
1547
+ <!-- Dialog Footer -->
1548
+ <div class="dialog-footer">
1549
+ <button talosButton variant="ghost" size="sm" type="button" (click)="clearFilter()">
1550
+ Clear
1551
+ </button>
1552
+ <button talosButton variant="primary" size="sm" type="button" (click)="applyFilter()">
1553
+ Apply
1554
+ </button>
1555
+ </div>
1556
+ </div>
1557
+ `, isInline: true, styles: [":host{display:block;font-family:var(--talos-font-sans, system-ui, sans-serif);font-size:13px}.filter-dialog-container{background:var(--talos-dropdown-bg, var(--talos-bg-surface, #ffffff));color:var(--talos-text-primary, #0f172a);border:1px solid var(--talos-border-default, #cbd5e1);border-radius:var(--talos-radius-md, 8px);box-shadow:0 12px 28px -4px #00000040,0 4px 10px #0000001a;width:240px;padding:10px;box-sizing:border-box;-webkit-user-select:none;user-select:none}.date-picker-wrapper{width:100%}.date-picker-wrapper talos-date-picker{display:block;width:100%}.search-input-wrapper{position:relative;display:flex;align-items:center;width:100%}.search-icon{position:absolute;left:9px;width:14px;height:14px;opacity:.6;display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--talos-text-muted, #94a3b8)}.search-icon ::ng-deep svg,.search-icon svg{width:13px;height:13px;display:block}.filter-search-input{width:100%;height:32px;padding:0 24px 0 28px;background:var(--talos-bg-subtle, #f8fafc);border:1px solid var(--talos-border-default, #cbd5e1);border-radius:var(--talos-radius-sm, 6px);color:var(--talos-text-primary, #0f172a);font-size:13px;outline:none;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}.filter-search-input::placeholder{color:var(--talos-text-muted, #94a3b8)}.filter-search-input:focus{border-color:var(--talos-primary, #2563eb);box-shadow:0 0 0 2px #2563eb40}.clear-search-btn{position:absolute;right:6px;background:transparent;border:none;color:var(--talos-text-muted, #94a3b8);cursor:pointer;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.clear-search-btn ::ng-deep svg,.clear-search-btn svg{width:12px;height:12px;display:block}.clear-search-btn:hover{color:var(--talos-text-primary, #0f172a)}.checkbox-list-wrapper{margin-top:8px;max-height:175px;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:var(--talos-border-default, #cbd5e1) transparent}.checkbox-list-wrapper::-webkit-scrollbar{width:5px}.checkbox-list-wrapper::-webkit-scrollbar-thumb{background:var(--talos-border-default, #cbd5e1);border-radius:4px}.checkbox-item{display:flex;align-items:center;padding:2px 4px;border-radius:4px;color:var(--talos-text-primary, #0f172a);transition:background-color .12s}.checkbox-item:hover{background:var(--talos-neutral-subtle-bg-hover, rgba(0, 0, 0, .05))}.checkbox-item.select-all-item{font-weight:500;border-bottom:1px solid var(--talos-border-subtle, rgba(0, 0, 0, .08));margin-bottom:3px;padding-bottom:4px}.checkbox-item talos-checkbox{width:100%}.checkbox-item talos-checkbox ::ng-deep .talos-checkbox-wrapper{width:100%}.checkbox-item talos-checkbox ::ng-deep .talos-checkbox-label{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-matches-msg{padding:12px;text-align:center;color:var(--talos-text-muted, #94a3b8);font-size:12px}.operator-dropdown-wrapper{margin-bottom:8px}.operator-dropdown-wrapper talos-select-input{width:100%;display:block}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:10px;padding-top:8px;border-top:1px solid var(--talos-border-subtle, rgba(0, 0, 0, .08))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: TalosButtonDirective, selector: "button[talosButton], a[talosButton], button[talos-btn], a[talos-btn]", inputs: ["variant", "size", "iconOnly", "fullWidth", "pill", "loading", "disabled", "animation", "spinning", "popping", "feedback"] }, { kind: "component", type: DatePickerComponent, selector: "talos-date-picker", inputs: ["placeholder", "label", "floatingLabel", "floating", "required", "disabled", "clearable", "size", "displayFormat", "valueFormat", "showTime", "use24Hour", "showSeconds", "minuteStep", "minDate", "maxDate", "firstDayOfWeek", "filterDate"], outputs: ["dateChange", "opened", "closed"] }, { kind: "component", type: TalosCheckboxComponent, selector: "talos-checkbox", inputs: ["value", "checked", "size", "variant", "disabled", "invalid", "indeterminate"], outputs: ["checkedChange"] }, { kind: "component", type: SelectInputComponent, selector: "talos-select-input", inputs: ["placeholder", "label", "floatingLabel", "floating", "required", "searchable", "searchPlaceholder", "disabled", "clearable", "multiple", "size", "placement"], outputs: ["selectionChange", "opened", "closed", "searchChange"] }, { kind: "component", type: OptionComponent, selector: "talos-option", inputs: ["value", "label", "disabled"], outputs: ["selected"] }, { kind: "directive", type: TalosInputDirective, selector: "input[talosInput], textarea[talosInput], input[talosTextarea], textarea[talosTextarea], input[talos-input], textarea[talos-textarea]", inputs: ["size", "invalid"] }] });
1558
+ }
1559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridFilterDialogComponent, decorators: [{
1560
+ type: Component,
1561
+ args: [{ selector: 'talos-grid-filter-dialog', imports: [
1562
+ FormsModule,
1563
+ NgComponentOutlet,
1564
+ TalosButtonDirective,
1565
+ DatePickerComponent,
1566
+ TalosCheckboxComponent,
1567
+ SelectInputComponent,
1568
+ OptionComponent,
1569
+ TalosInputDirective,
1570
+ ], host: {
1571
+ '[class.align-right]': "align() === 'right'",
1572
+ '(keydown.escape)': 'closed.emit()',
1573
+ }, template: `
1574
+ <div class="filter-dialog-container" (click)="$event.stopPropagation()">
1575
+ @if (filterMode() === 'set') {
1576
+ <!-- MODE A: Searchable Checkbox List (for text / select / status) -->
1577
+ <div class="mode-a-wrapper">
1578
+ <!-- Search input -->
1579
+ <div class="search-input-wrapper">
1580
+ <span class="search-icon">
1581
+ <ng-container *ngComponentOutlet="searchIcon" />
1582
+ </span>
1583
+ <input
1584
+ talosInput
1585
+ size="sm"
1586
+ type="text"
1587
+ class="filter-search-input"
1588
+ placeholder="Search..."
1589
+ [ngModel]="searchTerm()"
1590
+ (ngModelChange)="searchTerm.set($event)"
1591
+ (keydown.enter)="onSearchEnter()"
1592
+ autofocus
1593
+ />
1594
+ @if (searchTerm()) {
1595
+ <button type="button" class="clear-search-btn" (click)="searchTerm.set('')">
1596
+ <ng-container *ngComponentOutlet="xIcon" />
1597
+ </button>
1598
+ }
1599
+ </div>
1600
+
1601
+ <!-- Checkbox List -->
1602
+ <div class="checkbox-list-wrapper">
1603
+ <!-- (Select All) item -->
1604
+ <div class="checkbox-item select-all-item">
1605
+ <talos-checkbox
1606
+ size="sm"
1607
+ [checked]="isAllSelected()"
1608
+ [indeterminate]="isIndeterminate()"
1609
+ (checkedChange)="toggleSelectAll($event)"
1610
+ >
1611
+ {{ searchTerm() ? '(Select All Matches)' : '(Select All)' }}
1612
+ </talos-checkbox>
1613
+ </div>
1614
+
1615
+ <!-- Distinct item checkboxes -->
1616
+ @for (val of visibleDistinctValues(); track val) {
1617
+ <div class="checkbox-item">
1618
+ <talos-checkbox
1619
+ size="sm"
1620
+ [checked]="isValSelected(val)"
1621
+ (checkedChange)="toggleVal(val, $event)"
1622
+ >
1623
+ {{ val || '(Blank)' }}
1624
+ </talos-checkbox>
1625
+ </div>
1626
+ }
1627
+
1628
+ @if (visibleDistinctValues().length === 0) {
1629
+ <div class="no-matches-msg">No matching values</div>
1630
+ }
1631
+ </div>
1632
+ </div>
1633
+ } @else {
1634
+ <!-- MODE B: Operator Dropdown & Filter Input (for numbers / dates) -->
1635
+ <div class="mode-b-wrapper">
1636
+ <!-- Operator Dropdown -->
1637
+ <div class="operator-dropdown-wrapper">
1638
+ <talos-select-input
1639
+ size="sm"
1640
+ [ngModel]="selectedOperator()"
1641
+ (ngModelChange)="selectedOperator.set($event)"
1642
+ >
1643
+ @for (op of operatorOptions(); track op.value) {
1644
+ <talos-option [value]="op.value" [label]="op.label">{{ op.label }}</talos-option>
1645
+ }
1646
+ </talos-select-input>
1647
+ </div>
1648
+
1649
+ <!-- Filter Value Input -->
1650
+ @if (selectedOperator() !== 'blank' && selectedOperator() !== 'notBlank') {
1651
+ @if (isDateField()) {
1652
+ <div class="date-picker-wrapper" (keydown.enter)="applyConditionFilter()">
1653
+ <talos-date-picker
1654
+ [ngModel]="filterVal()"
1655
+ (ngModelChange)="onDateFilterValChange($event)"
1656
+ size="sm"
1657
+ placeholder="Select date"
1658
+ />
1659
+ </div>
1660
+ } @else {
1661
+ <div class="search-input-wrapper">
1662
+ <span class="search-icon">
1663
+ <ng-container *ngComponentOutlet="searchIcon" />
1664
+ </span>
1665
+ <input
1666
+ talosInput
1667
+ size="sm"
1668
+ type="text"
1669
+ class="filter-search-input"
1670
+ placeholder="Filter..."
1671
+ [ngModel]="filterVal()"
1672
+ (ngModelChange)="filterVal.set($event)"
1673
+ (keydown.enter)="applyConditionFilter()"
1674
+ autofocus
1675
+ />
1676
+ </div>
1677
+ }
1678
+
1679
+ <!-- Second input for Between -->
1680
+ @if (selectedOperator() === 'between') {
1681
+ @if (isDateField()) {
1682
+ <div class="date-picker-wrapper" style="margin-top: 6px;" (keydown.enter)="applyConditionFilter()">
1683
+ <talos-date-picker
1684
+ [ngModel]="filterVal2()"
1685
+ (ngModelChange)="onDateFilterVal2Change($event)"
1686
+ size="sm"
1687
+ placeholder="And max date"
1688
+ />
1689
+ </div>
1690
+ } @else {
1691
+ <div class="search-input-wrapper" style="margin-top: 6px;">
1692
+ <span class="search-icon">
1693
+ <ng-container *ngComponentOutlet="searchIcon" />
1694
+ </span>
1695
+ <input
1696
+ talosInput
1697
+ size="sm"
1698
+ type="text"
1699
+ class="filter-search-input"
1700
+ placeholder="And max value..."
1701
+ [ngModel]="filterVal2()"
1702
+ (ngModelChange)="filterVal2.set($event)"
1703
+ (keydown.enter)="applyConditionFilter()"
1704
+ />
1705
+ </div>
1706
+ }
1707
+ }
1708
+ }
1709
+ </div>
1710
+ }
1711
+
1712
+ <!-- Dialog Footer -->
1713
+ <div class="dialog-footer">
1714
+ <button talosButton variant="ghost" size="sm" type="button" (click)="clearFilter()">
1715
+ Clear
1716
+ </button>
1717
+ <button talosButton variant="primary" size="sm" type="button" (click)="applyFilter()">
1718
+ Apply
1719
+ </button>
1720
+ </div>
1721
+ </div>
1722
+ `, styles: [":host{display:block;font-family:var(--talos-font-sans, system-ui, sans-serif);font-size:13px}.filter-dialog-container{background:var(--talos-dropdown-bg, var(--talos-bg-surface, #ffffff));color:var(--talos-text-primary, #0f172a);border:1px solid var(--talos-border-default, #cbd5e1);border-radius:var(--talos-radius-md, 8px);box-shadow:0 12px 28px -4px #00000040,0 4px 10px #0000001a;width:240px;padding:10px;box-sizing:border-box;-webkit-user-select:none;user-select:none}.date-picker-wrapper{width:100%}.date-picker-wrapper talos-date-picker{display:block;width:100%}.search-input-wrapper{position:relative;display:flex;align-items:center;width:100%}.search-icon{position:absolute;left:9px;width:14px;height:14px;opacity:.6;display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--talos-text-muted, #94a3b8)}.search-icon ::ng-deep svg,.search-icon svg{width:13px;height:13px;display:block}.filter-search-input{width:100%;height:32px;padding:0 24px 0 28px;background:var(--talos-bg-subtle, #f8fafc);border:1px solid var(--talos-border-default, #cbd5e1);border-radius:var(--talos-radius-sm, 6px);color:var(--talos-text-primary, #0f172a);font-size:13px;outline:none;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}.filter-search-input::placeholder{color:var(--talos-text-muted, #94a3b8)}.filter-search-input:focus{border-color:var(--talos-primary, #2563eb);box-shadow:0 0 0 2px #2563eb40}.clear-search-btn{position:absolute;right:6px;background:transparent;border:none;color:var(--talos-text-muted, #94a3b8);cursor:pointer;padding:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.clear-search-btn ::ng-deep svg,.clear-search-btn svg{width:12px;height:12px;display:block}.clear-search-btn:hover{color:var(--talos-text-primary, #0f172a)}.checkbox-list-wrapper{margin-top:8px;max-height:175px;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:var(--talos-border-default, #cbd5e1) transparent}.checkbox-list-wrapper::-webkit-scrollbar{width:5px}.checkbox-list-wrapper::-webkit-scrollbar-thumb{background:var(--talos-border-default, #cbd5e1);border-radius:4px}.checkbox-item{display:flex;align-items:center;padding:2px 4px;border-radius:4px;color:var(--talos-text-primary, #0f172a);transition:background-color .12s}.checkbox-item:hover{background:var(--talos-neutral-subtle-bg-hover, rgba(0, 0, 0, .05))}.checkbox-item.select-all-item{font-weight:500;border-bottom:1px solid var(--talos-border-subtle, rgba(0, 0, 0, .08));margin-bottom:3px;padding-bottom:4px}.checkbox-item talos-checkbox{width:100%}.checkbox-item talos-checkbox ::ng-deep .talos-checkbox-wrapper{width:100%}.checkbox-item talos-checkbox ::ng-deep .talos-checkbox-label{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-matches-msg{padding:12px;text-align:center;color:var(--talos-text-muted, #94a3b8);font-size:12px}.operator-dropdown-wrapper{margin-bottom:8px}.operator-dropdown-wrapper talos-select-input{width:100%;display:block}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:10px;padding-top:8px;border-top:1px solid var(--talos-border-subtle, rgba(0, 0, 0, .08))}\n"] }]
1723
+ }], propDecorators: { column: [{ type: i0.Input, args: [{ isSignal: true, alias: "column", required: true }] }], distinctValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "distinctValues", required: false }] }], currentFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentFilter", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], filterApplied: [{ type: i0.Output, args: ["filterApplied"] }], filterCleared: [{ type: i0.Output, args: ["filterCleared"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
1724
+
1725
+ class TalosGridCellFormatPipe {
1726
+ fieldPartsCache = new Map();
1727
+ transform(row, col) {
1728
+ if (!row || !col)
1729
+ return '';
1730
+ const val = this.extractFieldValue(row, col.field);
1731
+ if (col.formatter) {
1732
+ return col.formatter(val, row);
1733
+ }
1734
+ if (val === null || val === undefined) {
1735
+ return '';
1736
+ }
1737
+ if (col.type === 'date' && val instanceof Date) {
1738
+ return val.toLocaleDateString();
1739
+ }
1740
+ return String(val);
1741
+ }
1742
+ extractFieldValue(item, field) {
1743
+ if (!item || !field)
1744
+ return undefined;
1745
+ if (!field.includes('.')) {
1746
+ return item[field];
1747
+ }
1748
+ let parts = this.fieldPartsCache.get(field);
1749
+ if (!parts) {
1750
+ parts = field.split('.');
1751
+ this.fieldPartsCache.set(field, parts);
1752
+ }
1753
+ let cur = item;
1754
+ for (let i = 0; i < parts.length; i++) {
1755
+ if (cur == null)
1756
+ return undefined;
1757
+ cur = cur[parts[i]];
1758
+ }
1759
+ return cur;
1760
+ }
1761
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridCellFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1762
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosGridCellFormatPipe, isStandalone: true, name: "talosGridCellFormat" });
1763
+ }
1764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosGridCellFormatPipe, decorators: [{
1765
+ type: Pipe,
1766
+ args: [{
1767
+ name: 'talosGridCellFormat',
1768
+ pure: true,
1769
+ }]
1770
+ }] });
1771
+
1772
+ class TalosDataGridComponent {
1773
+ // Inputs
1774
+ data = input.required(/* @ts-ignore */
1775
+ ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1776
+ columns = input.required(/* @ts-ignore */
1777
+ ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
1778
+ density = input('comfortable', /* @ts-ignore */
1779
+ ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
1780
+ filterable = input(false, /* @ts-ignore */
1781
+ ...(ngDevMode ? [{ debugName: "filterable" }] : /* istanbul ignore next */ []));
1782
+ pagination = input(false, /* @ts-ignore */
1783
+ ...(ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []));
1784
+ pageSize = input(10, /* @ts-ignore */
1785
+ ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
1786
+ pageSizeOptions = input([5, 10, 20, 50], /* @ts-ignore */
1787
+ ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
1788
+ pageIndex = input(0, /* @ts-ignore */
1789
+ ...(ngDevMode ? [{ debugName: "pageIndex" }] : /* istanbul ignore next */ []));
1790
+ totalItems = input(null, /* @ts-ignore */
1791
+ ...(ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []));
1792
+ trackBy = input(null, /* @ts-ignore */
1793
+ ...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
1794
+ striped = input(false, /* @ts-ignore */
1795
+ ...(ngDevMode ? [{ debugName: "striped" }] : /* istanbul ignore next */ []));
1796
+ bordered = input(true, /* @ts-ignore */
1797
+ ...(ngDevMode ? [{ debugName: "bordered" }] : /* istanbul ignore next */ []));
1798
+ hoverable = input(true, /* @ts-ignore */
1799
+ ...(ngDevMode ? [{ debugName: "hoverable" }] : /* istanbul ignore next */ []));
1800
+ emptyMessage = input('No records to display', /* @ts-ignore */
1801
+ ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
1802
+ loading = input(false, /* @ts-ignore */
1803
+ ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
1804
+ clientSort = input(true, /* @ts-ignore */
1805
+ ...(ngDevMode ? [{ debugName: "clientSort" }] : /* istanbul ignore next */ []));
1806
+ clientPagination = input(true, /* @ts-ignore */
1807
+ ...(ngDevMode ? [{ debugName: "clientPagination" }] : /* istanbul ignore next */ []));
1808
+ clientFilter = input(true, /* @ts-ignore */
1809
+ ...(ngDevMode ? [{ debugName: "clientFilter" }] : /* istanbul ignore next */ []));
1810
+ resizable = input(false, /* @ts-ignore */
1811
+ ...(ngDevMode ? [{ debugName: "resizable" }] : /* istanbul ignore next */ []));
1812
+ rowKey = input(null, /* @ts-ignore */
1813
+ ...(ngDevMode ? [{ debugName: "rowKey" }] : /* istanbul ignore next */ []));
1814
+ minHeight = input(null, /* @ts-ignore */
1815
+ ...(ngDevMode ? [{ debugName: "minHeight" }] : /* istanbul ignore next */ []));
1816
+ height = input(null, /* @ts-ignore */
1817
+ ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
1818
+ normalizedMinHeight = computed(() => {
1819
+ const val = this.minHeight();
1820
+ if (val === null || val === undefined)
1821
+ return null;
1822
+ return typeof val === 'number' ? `${val}px` : val;
1823
+ }, /* @ts-ignore */
1824
+ ...(ngDevMode ? [{ debugName: "normalizedMinHeight" }] : /* istanbul ignore next */ []));
1825
+ normalizedHeight = computed(() => {
1826
+ const val = this.height();
1827
+ if (val === null || val === undefined)
1828
+ return null;
1829
+ return typeof val === 'number' ? `${val}px` : val;
1830
+ }, /* @ts-ignore */
1831
+ ...(ngDevMode ? [{ debugName: "normalizedHeight" }] : /* istanbul ignore next */ []));
1832
+ // Outputs
1833
+ sortChange = output();
1834
+ filterChange = output();
1835
+ pageChange = output();
1836
+ rowClick = output();
1837
+ actionClick = output();
1838
+ columnResize = output();
1839
+ // Icons for template
1840
+ arrowUpIcon = LucideArrowUp;
1841
+ arrowDownIcon = LucideArrowDown;
1842
+ arrowUpDownIcon = LucideArrowUpDown;
1843
+ chevronLeftIcon = LucideChevronLeft;
1844
+ chevronRightIcon = LucideChevronRight;
1845
+ chevronsLeftIcon = LucideChevronsLeft;
1846
+ chevronsRightIcon = LucideChevronsRight;
1847
+ xIcon = LucideX;
1848
+ inboxIcon = LucideInbox;
1849
+ loaderIcon = LucideLoader2;
1850
+ filterIcon = LucideFilter;
1851
+ // Internal reactive states
1852
+ internalSortState = signal({ field: '', direction: null }, /* @ts-ignore */
1853
+ ...(ngDevMode ? [{ debugName: "internalSortState" }] : /* istanbul ignore next */ []));
1854
+ internalFilterStates = signal(new Map(), /* @ts-ignore */
1855
+ ...(ngDevMode ? [{ debugName: "internalFilterStates" }] : /* istanbul ignore next */ []));
1856
+ internalPageIndex = signal(0, /* @ts-ignore */
1857
+ ...(ngDevMode ? [{ debugName: "internalPageIndex" }] : /* istanbul ignore next */ []));
1858
+ internalPageSize = signal(10, /* @ts-ignore */
1859
+ ...(ngDevMode ? [{ debugName: "internalPageSize" }] : /* istanbul ignore next */ []));
1860
+ activeFilterCol = signal(null, /* @ts-ignore */
1861
+ ...(ngDevMode ? [{ debugName: "activeFilterCol" }] : /* istanbul ignore next */ []));
1862
+ columnWidths = signal({}, /* @ts-ignore */
1863
+ ...(ngDevMode ? [{ debugName: "columnWidths" }] : /* istanbul ignore next */ []));
1864
+ resizingColumn = signal(null, /* @ts-ignore */
1865
+ ...(ngDevMode ? [{ debugName: "resizingColumn" }] : /* istanbul ignore next */ []));
1866
+ isResizing = computed(() => this.resizingColumn() !== null, /* @ts-ignore */
1867
+ ...(ngDevMode ? [{ debugName: "isResizing" }] : /* istanbul ignore next */ []));
1868
+ hasResizableColumns = computed(() => {
1869
+ return this.resizable() || this.columns().some((c) => c.resizable === true);
1870
+ }, /* @ts-ignore */
1871
+ ...(ngDevMode ? [{ debugName: "hasResizableColumns" }] : /* istanbul ignore next */ []));
1872
+ // CDK Connected Overlay Positions
1873
+ overlayPositions = [
1874
+ {
1875
+ originX: 'start',
1876
+ originY: 'bottom',
1877
+ overlayX: 'start',
1878
+ overlayY: 'top',
1879
+ offsetY: 6,
1880
+ },
1881
+ {
1882
+ originX: 'end',
1883
+ originY: 'bottom',
1884
+ overlayX: 'end',
1885
+ overlayY: 'top',
1886
+ offsetY: 6,
1887
+ },
1888
+ {
1889
+ originX: 'start',
1890
+ originY: 'top',
1891
+ overlayX: 'start',
1892
+ overlayY: 'bottom',
1893
+ offsetY: -6,
1894
+ },
1895
+ {
1896
+ originX: 'end',
1897
+ originY: 'top',
1898
+ overlayX: 'end',
1899
+ overlayY: 'bottom',
1900
+ offsetY: -6,
1901
+ },
1902
+ ];
1903
+ constructor() {
1904
+ effect(() => {
1905
+ this.internalPageIndex.set(this.pageIndex());
1906
+ });
1907
+ effect(() => {
1908
+ this.internalPageSize.set(this.pageSize());
1909
+ });
1910
+ }
1911
+ // Active filters list
1912
+ activeFiltersList = computed(() => {
1913
+ return Array.from(this.internalFilterStates().values());
1914
+ }, /* @ts-ignore */
1915
+ ...(ngDevMode ? [{ debugName: "activeFiltersList" }] : /* istanbul ignore next */ []));
1916
+ hasActiveFilters = computed(() => {
1917
+ return this.internalFilterStates().size > 0;
1918
+ }, /* @ts-ignore */
1919
+ ...(ngDevMode ? [{ debugName: "hasActiveFilters" }] : /* istanbul ignore next */ []));
1920
+ // Cached distinct values for the currently active filter column
1921
+ activeColumnDistinctValues = computed(() => {
1922
+ const field = this.activeFilterCol();
1923
+ if (!field)
1924
+ return [];
1925
+ const col = this.columns().find((c) => c.field === field);
1926
+ if (!col)
1927
+ return [];
1928
+ return this.getDistinctValues(col);
1929
+ }, /* @ts-ignore */
1930
+ ...(ngDevMode ? [{ debugName: "activeColumnDistinctValues" }] : /* istanbul ignore next */ []));
1931
+ // Multi-Stage Processing Pipeline:
1932
+ // Stage 1: Filtered Data
1933
+ filteredData = computed(() => {
1934
+ const raw = this.data() || [];
1935
+ if (!this.clientFilter() || this.internalFilterStates().size === 0) {
1936
+ return raw;
1937
+ }
1938
+ const filters = this.internalFilterStates();
1939
+ const colsMap = new Map(this.columns().map((c) => [c.field, c]));
1940
+ return raw.filter((item) => {
1941
+ for (const [field, filter] of filters.entries()) {
1942
+ const rawVal = this.extractFieldValue(item, field);
1943
+ const col = colsMap.get(field);
1944
+ if (!this.matchesFilter(rawVal, filter, col)) {
1945
+ return false;
1946
+ }
1947
+ }
1948
+ return true;
1949
+ });
1950
+ }, /* @ts-ignore */
1951
+ ...(ngDevMode ? [{ debugName: "filteredData" }] : /* istanbul ignore next */ []));
1952
+ // Stage 2: Sorted Data
1953
+ sortedData = computed(() => {
1954
+ const base = this.filteredData();
1955
+ const sort = this.internalSortState();
1956
+ if (!this.clientSort() || !sort.direction || !sort.field) {
1957
+ return base;
1958
+ }
1959
+ const col = this.columns().find((c) => c.field === sort.field);
1960
+ const sortType = sort.sortType || col?.sortType || this.inferSortType(col);
1961
+ const dir = sort.direction === 'asc' ? 1 : -1;
1962
+ // Schwartzian transform: Pre-extract and parse sort keys in an O(N) pass
1963
+ // to eliminate reflection, string conversions, and Date parsing from the O(N log N) comparator
1964
+ const mapped = base.map((item, index) => {
1965
+ const raw = this.extractFieldValue(item, sort.field);
1966
+ let sortKey = null;
1967
+ if (raw !== null && raw !== undefined && raw !== '') {
1968
+ switch (sortType) {
1969
+ case 'number': {
1970
+ const num = Number(raw);
1971
+ sortKey = isNaN(num) ? null : num;
1972
+ break;
1973
+ }
1974
+ case 'date': {
1975
+ const time = raw instanceof Date ? raw.getTime() : new Date(raw).getTime();
1976
+ sortKey = isNaN(time) ? null : time;
1977
+ break;
1978
+ }
1979
+ case 'string':
1980
+ default:
1981
+ sortKey = String(raw);
1982
+ break;
1983
+ }
1984
+ }
1985
+ return { item, index, sortKey };
1986
+ });
1987
+ mapped.sort((a, b) => {
1988
+ if (a.sortKey === b.sortKey)
1989
+ return a.index - b.index;
1990
+ if (a.sortKey === null)
1991
+ return 1;
1992
+ if (b.sortKey === null)
1993
+ return -1;
1994
+ if (sortType === 'number' || sortType === 'date') {
1995
+ const diff = (a.sortKey - b.sortKey) * dir;
1996
+ return diff !== 0 ? diff : a.index - b.index;
1997
+ }
1998
+ // string
1999
+ const cmp = a.sortKey.localeCompare(b.sortKey, undefined, {
2000
+ numeric: true,
2001
+ sensitivity: 'base',
2002
+ }) * dir;
2003
+ return cmp !== 0 ? cmp : a.index - b.index;
2004
+ });
2005
+ return mapped.map((m) => m.item);
2006
+ }, /* @ts-ignore */
2007
+ ...(ngDevMode ? [{ debugName: "sortedData" }] : /* istanbul ignore next */ []));
2008
+ // Stage 3: Paged Data
2009
+ pagedData = computed(() => {
2010
+ const sorted = this.sortedData();
2011
+ if (!this.pagination() || !this.clientPagination()) {
2012
+ return sorted;
2013
+ }
2014
+ const pageSize = this.internalPageSize();
2015
+ const pageIndex = this.internalPageIndex();
2016
+ const start = pageIndex * pageSize;
2017
+ return sorted.slice(start, start + pageSize);
2018
+ }, /* @ts-ignore */
2019
+ ...(ngDevMode ? [{ debugName: "pagedData" }] : /* istanbul ignore next */ []));
2020
+ // Stage 4: Pagination Metrics
2021
+ totalCount = computed(() => {
2022
+ const externalTotal = this.totalItems();
2023
+ if (externalTotal !== null && externalTotal !== undefined) {
2024
+ return externalTotal;
2025
+ }
2026
+ return this.filteredData().length;
2027
+ }, /* @ts-ignore */
2028
+ ...(ngDevMode ? [{ debugName: "totalCount" }] : /* istanbul ignore next */ []));
2029
+ totalPages = computed(() => {
2030
+ const count = this.totalCount();
2031
+ const size = this.internalPageSize();
2032
+ if (count <= 0 || size <= 0)
2033
+ return 1;
2034
+ return Math.ceil(count / size);
2035
+ }, /* @ts-ignore */
2036
+ ...(ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []));
2037
+ startRecord = computed(() => {
2038
+ const total = this.totalCount();
2039
+ if (total === 0)
2040
+ return 0;
2041
+ return this.internalPageIndex() * this.internalPageSize() + 1;
2042
+ }, /* @ts-ignore */
2043
+ ...(ngDevMode ? [{ debugName: "startRecord" }] : /* istanbul ignore next */ []));
2044
+ endRecord = computed(() => {
2045
+ const total = this.totalCount();
2046
+ if (total === 0)
2047
+ return 0;
2048
+ return Math.min(total, (this.internalPageIndex() + 1) * this.internalPageSize());
2049
+ }, /* @ts-ignore */
2050
+ ...(ngDevMode ? [{ debugName: "endRecord" }] : /* istanbul ignore next */ []));
2051
+ get hasRowClickListeners() {
2052
+ return true;
2053
+ }
2054
+ // Row Identification for TrackBy
2055
+ trackByRow(index, row) {
2056
+ const customTrack = this.trackBy();
2057
+ if (customTrack) {
2058
+ return customTrack(index, row);
2059
+ }
2060
+ const customKey = this.rowKey();
2061
+ if (customKey && row && typeof row === 'object') {
2062
+ return row[customKey];
2063
+ }
2064
+ if (row && typeof row === 'object') {
2065
+ const anyRow = row;
2066
+ return anyRow.id ?? anyRow._id ?? anyRow.uuid ?? anyRow.key ?? index;
2067
+ }
2068
+ return index;
2069
+ }
2070
+ // Header & Sorting helpers
2071
+ isSortable(col) {
2072
+ if (col.type === 'actions')
2073
+ return false;
2074
+ if (col.sortable !== undefined)
2075
+ return col.sortable;
2076
+ return !!col.sortType;
2077
+ }
2078
+ isSorted(col) {
2079
+ return (this.internalSortState().field === col.field && this.internalSortState().direction !== null);
2080
+ }
2081
+ getSortDirection(col) {
2082
+ if (this.internalSortState().field !== col.field) {
2083
+ return null;
2084
+ }
2085
+ return this.internalSortState().direction;
2086
+ }
2087
+ getAriaSort(col) {
2088
+ if (!this.isSortable(col))
2089
+ return null;
2090
+ const dir = this.getSortDirection(col);
2091
+ if (dir === 'asc')
2092
+ return 'ascending';
2093
+ if (dir === 'desc')
2094
+ return 'descending';
2095
+ return 'none';
2096
+ }
2097
+ onHeaderClick(col) {
2098
+ if (!this.isSortable(col))
2099
+ return;
2100
+ const current = this.internalSortState();
2101
+ let nextDirection;
2102
+ if (current.field !== col.field) {
2103
+ nextDirection = 'asc';
2104
+ }
2105
+ else if (current.direction === 'asc') {
2106
+ nextDirection = 'desc';
2107
+ }
2108
+ else if (current.direction === 'desc') {
2109
+ nextDirection = null;
2110
+ }
2111
+ else {
2112
+ nextDirection = 'asc';
2113
+ }
2114
+ const sortType = col.sortType || this.inferSortType(col);
2115
+ const newState = {
2116
+ field: nextDirection ? col.field : '',
2117
+ direction: nextDirection,
2118
+ sortType,
2119
+ };
2120
+ this.internalSortState.set(newState);
2121
+ this.sortChange.emit(newState);
2122
+ }
2123
+ // Column Resizing Helpers & Handlers
2124
+ isResizable(col) {
2125
+ if (col.resizable !== undefined) {
2126
+ return col.resizable;
2127
+ }
2128
+ if (col.type === 'actions') {
2129
+ return false;
2130
+ }
2131
+ return this.resizable();
2132
+ }
2133
+ isColumnResizing(field) {
2134
+ return this.resizingColumn() === field;
2135
+ }
2136
+ getColumnWidth(col) {
2137
+ const dynamic = this.columnWidths()[col.field];
2138
+ if (dynamic !== undefined) {
2139
+ return `${dynamic}px`;
2140
+ }
2141
+ return col.width || col.minWidth;
2142
+ }
2143
+ getColumnMinWidth(col) {
2144
+ const dynamic = this.columnWidths()[col.field];
2145
+ if (dynamic !== undefined) {
2146
+ return `${dynamic}px`;
2147
+ }
2148
+ return col.minWidth || col.width;
2149
+ }
2150
+ setColumnWidth(field, width) {
2151
+ this.columnWidths.update((prev) => ({
2152
+ ...prev,
2153
+ [field]: width,
2154
+ }));
2155
+ }
2156
+ resetColumnWidths() {
2157
+ this.columnWidths.set({});
2158
+ }
2159
+ onResizeStart(col, event, thEl) {
2160
+ if (!this.isResizable(col))
2161
+ return;
2162
+ event.preventDefault();
2163
+ event.stopPropagation();
2164
+ const startX = 'touches' in event ? event.touches[0].clientX : event.clientX;
2165
+ const startWidth = thEl.getBoundingClientRect().width;
2166
+ const minW = col.minWidth ? parseInt(col.minWidth, 10) : 50;
2167
+ const maxW = col.maxWidth ? parseInt(col.maxWidth, 10) : undefined;
2168
+ this.resizingColumn.set(col.field);
2169
+ if (typeof document !== 'undefined') {
2170
+ document.body.style.cursor = 'col-resize';
2171
+ document.body.style.userSelect = 'none';
2172
+ }
2173
+ let lastWidth = startWidth;
2174
+ const onMove = (moveEvent) => {
2175
+ const currentX = 'touches' in moveEvent ? moveEvent.touches[0].clientX : moveEvent.clientX;
2176
+ const deltaX = currentX - startX;
2177
+ let newWidth = Math.round(startWidth + deltaX);
2178
+ if (minW !== undefined && newWidth < minW)
2179
+ newWidth = minW;
2180
+ if (maxW !== undefined && newWidth > maxW)
2181
+ newWidth = maxW;
2182
+ lastWidth = newWidth;
2183
+ this.columnWidths.update((prev) => ({
2184
+ ...prev,
2185
+ [col.field]: newWidth,
2186
+ }));
2187
+ };
2188
+ const onEnd = () => {
2189
+ if (typeof document !== 'undefined') {
2190
+ document.removeEventListener('mousemove', onMove);
2191
+ document.removeEventListener('mouseup', onEnd);
2192
+ document.removeEventListener('touchmove', onMove);
2193
+ document.removeEventListener('touchend', onEnd);
2194
+ document.body.style.cursor = '';
2195
+ document.body.style.userSelect = '';
2196
+ }
2197
+ this.resizingColumn.set(null);
2198
+ this.columnResize.emit({ column: col, width: lastWidth });
2199
+ };
2200
+ if (typeof document !== 'undefined') {
2201
+ document.addEventListener('mousemove', onMove);
2202
+ document.addEventListener('mouseup', onEnd);
2203
+ document.addEventListener('touchmove', onMove, { passive: true });
2204
+ document.addEventListener('touchend', onEnd);
2205
+ }
2206
+ }
2207
+ onResizeDoubleClick(col, event) {
2208
+ event.stopPropagation();
2209
+ event.preventDefault();
2210
+ this.columnWidths.update((prev) => {
2211
+ const next = { ...prev };
2212
+ delete next[col.field];
2213
+ return next;
2214
+ });
2215
+ if (col.width) {
2216
+ const parsed = parseInt(col.width, 10);
2217
+ if (!isNaN(parsed)) {
2218
+ this.columnResize.emit({ column: col, width: parsed });
2219
+ }
2220
+ }
2221
+ }
2222
+ onResizeKeydown(col, event, thEl) {
2223
+ if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
2224
+ event.preventDefault();
2225
+ event.stopPropagation();
2226
+ const currentWidth = this.columnWidths()[col.field] ?? thEl.getBoundingClientRect().width;
2227
+ const step = event.key === 'ArrowRight' ? 10 : -10;
2228
+ const minW = col.minWidth ? parseInt(col.minWidth, 10) : 50;
2229
+ const maxW = col.maxWidth ? parseInt(col.maxWidth, 10) : undefined;
2230
+ let newWidth = Math.round(currentWidth + step);
2231
+ if (minW !== undefined && newWidth < minW)
2232
+ newWidth = minW;
2233
+ if (maxW !== undefined && newWidth > maxW)
2234
+ newWidth = maxW;
2235
+ this.columnWidths.update((prev) => ({
2236
+ ...prev,
2237
+ [col.field]: newWidth,
2238
+ }));
2239
+ this.columnResize.emit({ column: col, width: newWidth });
2240
+ }
2241
+ }
2242
+ // Filter Helpers & Dialog Management
2243
+ isFilterable(col) {
2244
+ if (col.type === 'actions')
2245
+ return false;
2246
+ if (col.filterable !== undefined)
2247
+ return col.filterable;
2248
+ return this.filterable();
2249
+ }
2250
+ isFilterDialogOpen(field) {
2251
+ return this.activeFilterCol() === field;
2252
+ }
2253
+ toggleFilterDialog(field, event) {
2254
+ event.stopPropagation();
2255
+ if (this.activeFilterCol() === field) {
2256
+ this.activeFilterCol.set(null);
2257
+ }
2258
+ else {
2259
+ this.activeFilterCol.set(field);
2260
+ }
2261
+ }
2262
+ closeFilterDialog() {
2263
+ this.activeFilterCol.set(null);
2264
+ }
2265
+ onOverlayOutsideClick(event, field) {
2266
+ const target = event.target;
2267
+ if (target &&
2268
+ (target.closest(`.filter-anchor-${field}`) ||
2269
+ target.closest('.datepicker-dropdown-panel') ||
2270
+ target.closest('.talos-datepicker-host'))) {
2271
+ return;
2272
+ }
2273
+ this.closeFilterDialog();
2274
+ }
2275
+ getDistinctValues(col) {
2276
+ const raw = this.data() || [];
2277
+ const valuesSet = new Set();
2278
+ for (const item of raw) {
2279
+ const val = this.extractFieldValue(item, col.field);
2280
+ if (val === null || val === undefined) {
2281
+ valuesSet.add('');
2282
+ }
2283
+ else {
2284
+ valuesSet.add(String(val));
2285
+ }
2286
+ }
2287
+ return Array.from(valuesSet).sort((a, b) => {
2288
+ if (a === '')
2289
+ return 1;
2290
+ if (b === '')
2291
+ return -1;
2292
+ return a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' });
2293
+ });
2294
+ }
2295
+ getFilter(field) {
2296
+ return this.internalFilterStates().get(field);
2297
+ }
2298
+ hasFilter(field) {
2299
+ return this.internalFilterStates().has(field);
2300
+ }
2301
+ onFilterApplied(filter) {
2302
+ const map = new Map(this.internalFilterStates());
2303
+ map.set(filter.field, filter);
2304
+ this.internalFilterStates.set(map);
2305
+ this.internalPageIndex.set(0);
2306
+ this.filterChange.emit(this.activeFiltersList());
2307
+ }
2308
+ onFilterCleared(field) {
2309
+ const map = new Map(this.internalFilterStates());
2310
+ map.delete(field);
2311
+ this.internalFilterStates.set(map);
2312
+ this.internalPageIndex.set(0);
2313
+ this.filterChange.emit(this.activeFiltersList());
2314
+ }
2315
+ clearAllFilters() {
2316
+ this.internalFilterStates.set(new Map());
2317
+ this.internalPageIndex.set(0);
2318
+ this.filterChange.emit([]);
2319
+ }
2320
+ // Filter Matching Evaluator
2321
+ matchesFilter(rawValue, filter, col) {
2322
+ // Mode A: Set Filter (text / select / status)
2323
+ if (filter.mode === 'set') {
2324
+ if (!filter.selectedValues)
2325
+ return true;
2326
+ const strVal = rawValue === null || rawValue === undefined ? '' : String(rawValue);
2327
+ return filter.selectedValues.includes(strVal);
2328
+ }
2329
+ // Mode B: Condition Filter (numbers / dates / text)
2330
+ const op = filter.operator || 'eq';
2331
+ if (op === 'blank') {
2332
+ return rawValue === null || rawValue === undefined || rawValue === '';
2333
+ }
2334
+ if (op === 'notBlank') {
2335
+ return rawValue !== null && rawValue !== undefined && rawValue !== '';
2336
+ }
2337
+ if (rawValue === null || rawValue === undefined || rawValue === '') {
2338
+ return false;
2339
+ }
2340
+ const filterVal = filter.value;
2341
+ const secondVal = filter.secondValue;
2342
+ // Check if comparing dates
2343
+ const isDate = col?.type === 'date' ||
2344
+ col?.sortType === 'date' ||
2345
+ filterVal instanceof Date ||
2346
+ (typeof filterVal === 'string' && /^\d{4}-\d{2}-\d{2}/.test(filterVal)) ||
2347
+ rawValue instanceof Date;
2348
+ if (isDate) {
2349
+ const rowDate = this.normalizeDateToYMD(rawValue);
2350
+ const targetDate = this.normalizeDateToYMD(filterVal);
2351
+ const targetDate2 = secondVal ? this.normalizeDateToYMD(secondVal) : '';
2352
+ switch (op) {
2353
+ case 'eq':
2354
+ return rowDate === targetDate;
2355
+ case 'neq':
2356
+ return rowDate !== targetDate;
2357
+ case 'gt':
2358
+ return rowDate > targetDate;
2359
+ case 'gte':
2360
+ return rowDate >= targetDate;
2361
+ case 'lt':
2362
+ return rowDate < targetDate;
2363
+ case 'lte':
2364
+ return rowDate <= targetDate;
2365
+ case 'between': {
2366
+ if (!targetDate2)
2367
+ return rowDate >= targetDate;
2368
+ const minD = targetDate <= targetDate2 ? targetDate : targetDate2;
2369
+ const maxD = targetDate <= targetDate2 ? targetDate2 : targetDate;
2370
+ return rowDate >= minD && rowDate <= maxD;
2371
+ }
2372
+ default:
2373
+ return true;
2374
+ }
2375
+ }
2376
+ // Check if comparing numbers
2377
+ const isNumber = col?.type === 'number' || col?.sortType === 'number';
2378
+ const hasFilterNum = filterVal !== '' &&
2379
+ filterVal !== null &&
2380
+ filterVal !== undefined &&
2381
+ !isNaN(Number(filterVal));
2382
+ const numRaw = Number(rawValue);
2383
+ if ((isNumber || hasFilterNum) && !isNaN(numRaw)) {
2384
+ const numFilter = Number(filterVal);
2385
+ const numFilter2 = secondVal !== '' && secondVal !== null && secondVal !== undefined ? Number(secondVal) : NaN;
2386
+ switch (op) {
2387
+ case 'eq':
2388
+ return numRaw === numFilter;
2389
+ case 'neq':
2390
+ return numRaw !== numFilter;
2391
+ case 'gt':
2392
+ return numRaw > numFilter;
2393
+ case 'gte':
2394
+ return numRaw >= numFilter;
2395
+ case 'lt':
2396
+ return numRaw < numFilter;
2397
+ case 'lte':
2398
+ return numRaw <= numFilter;
2399
+ case 'between': {
2400
+ if (isNaN(numFilter2))
2401
+ return numRaw >= numFilter;
2402
+ const minN = Math.min(numFilter, numFilter2);
2403
+ const maxN = Math.max(numFilter, numFilter2);
2404
+ return numRaw >= minN && numRaw <= maxN;
2405
+ }
2406
+ default:
2407
+ return true;
2408
+ }
2409
+ }
2410
+ // String / Text comparison
2411
+ const strRaw = String(rawValue).toLowerCase().trim();
2412
+ const strFilter = String(filterVal ?? '')
2413
+ .toLowerCase()
2414
+ .trim();
2415
+ switch (op) {
2416
+ case 'eq':
2417
+ return strRaw === strFilter;
2418
+ case 'neq':
2419
+ return strRaw !== strFilter;
2420
+ case 'startsWith':
2421
+ return strRaw.startsWith(strFilter);
2422
+ case 'endsWith':
2423
+ return strRaw.endsWith(strFilter);
2424
+ case 'contains':
2425
+ default:
2426
+ return strRaw.includes(strFilter);
2427
+ }
2428
+ }
2429
+ normalizeDateToYMD(val) {
2430
+ if (!val)
2431
+ return '';
2432
+ if (typeof val === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(val)) {
2433
+ return val;
2434
+ }
2435
+ const d = new Date(val);
2436
+ if (isNaN(d.getTime()))
2437
+ return '';
2438
+ const y = d.getFullYear();
2439
+ const m = String(d.getMonth() + 1).padStart(2, '0');
2440
+ const day = String(d.getDate()).padStart(2, '0');
2441
+ return `${y}-${m}-${day}`;
2442
+ }
2443
+ // Pagination Handlers
2444
+ setPage(pageIndex) {
2445
+ const validPage = Math.max(0, Math.min(pageIndex, this.totalPages() - 1));
2446
+ if (validPage !== this.internalPageIndex()) {
2447
+ this.internalPageIndex.set(validPage);
2448
+ this.pageChange.emit({
2449
+ pageIndex: validPage,
2450
+ pageSize: this.internalPageSize(),
2451
+ totalItems: this.totalCount(),
2452
+ });
2453
+ }
2454
+ }
2455
+ onPageSizeChange(newSizeOrEvent) {
2456
+ const newSize = typeof newSizeOrEvent === 'number'
2457
+ ? newSizeOrEvent
2458
+ : Number(newSizeOrEvent.target.value);
2459
+ if (isNaN(newSize) || newSize <= 0)
2460
+ return;
2461
+ this.internalPageSize.set(newSize);
2462
+ this.internalPageIndex.set(0);
2463
+ this.pageChange.emit({
2464
+ pageIndex: 0,
2465
+ pageSize: newSize,
2466
+ totalItems: this.totalCount(),
2467
+ });
2468
+ }
2469
+ // Cell Content & Row Click Helpers
2470
+ getCellValue(row, col) {
2471
+ return this.extractFieldValue(row, col.field);
2472
+ }
2473
+ formatCellValue(row, col) {
2474
+ const val = this.getCellValue(row, col);
2475
+ if (col.formatter) {
2476
+ return col.formatter(val, row);
2477
+ }
2478
+ if (val === null || val === undefined) {
2479
+ return '';
2480
+ }
2481
+ if (col.type === 'date' && val instanceof Date) {
2482
+ return val.toLocaleDateString();
2483
+ }
2484
+ return String(val);
2485
+ }
2486
+ onRowClick(row, index) {
2487
+ this.rowClick.emit({ row, index });
2488
+ }
2489
+ fieldPartsCache = new Map();
2490
+ extractFieldValue(item, field) {
2491
+ if (!item || !field)
2492
+ return undefined;
2493
+ if (!field.includes('.')) {
2494
+ return item[field];
2495
+ }
2496
+ let parts = this.fieldPartsCache.get(field);
2497
+ if (!parts) {
2498
+ parts = field.split('.');
2499
+ this.fieldPartsCache.set(field, parts);
2500
+ }
2501
+ let cur = item;
2502
+ for (let i = 0; i < parts.length; i++) {
2503
+ if (cur == null)
2504
+ return undefined;
2505
+ cur = cur[parts[i]];
2506
+ }
2507
+ return cur;
2508
+ }
2509
+ inferSortType(col) {
2510
+ if (!col)
2511
+ return 'string';
2512
+ if (col.type === 'number')
2513
+ return 'number';
2514
+ if (col.type === 'date')
2515
+ return 'date';
2516
+ return 'string';
2517
+ }
2518
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosDataGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2519
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosDataGridComponent, isStandalone: true, selector: "talos-data-grid", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: true, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, pageIndex: { classPropertyName: "pageIndex", publicName: "pageIndex", isSignal: true, isRequired: false, transformFunction: null }, totalItems: { classPropertyName: "totalItems", publicName: "totalItems", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, hoverable: { classPropertyName: "hoverable", publicName: "hoverable", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, clientSort: { classPropertyName: "clientSort", publicName: "clientSort", isSignal: true, isRequired: false, transformFunction: null }, clientPagination: { classPropertyName: "clientPagination", publicName: "clientPagination", isSignal: true, isRequired: false, transformFunction: null }, clientFilter: { classPropertyName: "clientFilter", publicName: "clientFilter", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortChange: "sortChange", filterChange: "filterChange", pageChange: "pageChange", rowClick: "rowClick", actionClick: "actionClick", columnResize: "columnResize" }, host: { properties: { "style.min-height": "normalizedMinHeight()", "style.height": "normalizedHeight()" }, classAttribute: "talos-data-grid-host" }, ngImport: i0, template: "<div\n class=\"talos-data-grid-container\"\n [class.density-compact]=\"density() === 'compact'\"\n [class.density-comfortable]=\"density() === 'comfortable'\"\n [class.density-spacious]=\"density() === 'spacious'\"\n [class.is-bordered]=\"bordered()\"\n [class.is-striped]=\"striped()\"\n [class.is-resizing]=\"isResizing()\"\n>\n <!-- Loading overlay -->\n @if (loading()) {\n <div class=\"talos-data-grid-loading-overlay\">\n <ng-container *ngComponentOutlet=\"loaderIcon\" />\n </div>\n }\n\n <!-- Main Scrollable Table Wrapper -->\n <div class=\"talos-data-grid-table-wrapper\">\n <table class=\"talos-data-grid-table\" [class.has-resizable-columns]=\"hasResizableColumns()\" role=\"grid\">\n <thead>\n <!-- Header Column Row -->\n <tr>\n @for (col of columns(); track col.field) {\n <th\n #thEl\n [style.width]=\"getColumnWidth(col)\"\n [style.min-width]=\"getColumnMinWidth(col)\"\n [style.max-width]=\"col.maxWidth\"\n [class.align-left]=\"!col.align || col.align === 'left'\"\n [class.align-center]=\"col.align === 'center'\"\n [class.align-right]=\"col.align === 'right'\"\n [class.is-sortable]=\"isSortable(col)\"\n [class.is-sorted]=\"isSorted(col)\"\n [class.is-resizable]=\"isResizable(col)\"\n [class.is-resizing]=\"isColumnResizing(col.field)\"\n (click)=\"onHeaderClick(col)\"\n role=\"columnheader\"\n [attr.aria-sort]=\"getAriaSort(col)\"\n >\n <div class=\"header-content-wrapper\">\n <span class=\"header-title\" [title]=\"col.header\">{{ col.header }}</span>\n @if (isSortable(col) || isFilterable(col)) {\n <div class=\"header-tools\">\n @if (isSortable(col)) {\n <button\n talosButton\n variant=\"ghost\"\n size=\"xs\"\n [iconOnly]=\"true\"\n type=\"button\"\n class=\"header-sort-btn\"\n [class.is-sorted]=\"isSorted(col)\"\n (click)=\"$event.stopPropagation(); onHeaderClick(col)\"\n [attr.aria-label]=\"'Sort by ' + col.header\"\n [title]=\"'Sort by ' + col.header\"\n >\n @if (getSortDirection(col) === 'asc') {\n <ng-container *ngComponentOutlet=\"arrowUpIcon\" />\n } @else if (getSortDirection(col) === 'desc') {\n <ng-container *ngComponentOutlet=\"arrowDownIcon\" />\n } @else {\n <ng-container *ngComponentOutlet=\"arrowUpDownIcon\" />\n }\n </button>\n }\n @if (isFilterable(col)) {\n <div\n class=\"talos-grid-filter-anchor\"\n [class]=\"'filter-anchor-' + col.field\"\n cdkOverlayOrigin\n #filterOrigin=\"cdkOverlayOrigin\"\n (click)=\"$event.stopPropagation()\"\n >\n <button\n talosButton\n variant=\"ghost\"\n size=\"xs\"\n [iconOnly]=\"true\"\n type=\"button\"\n class=\"header-filter-btn\"\n [class.is-active]=\"hasFilter(col.field)\"\n [class.is-open]=\"isFilterDialogOpen(col.field)\"\n (click)=\"toggleFilterDialog(col.field, $event)\"\n [attr.aria-label]=\"'Filter ' + col.header\"\n title=\"Filter\"\n >\n <ng-container *ngComponentOutlet=\"filterIcon\" />\n </button>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"filterOrigin\"\n [cdkConnectedOverlayOpen]=\"isFilterDialogOpen(col.field)\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayPush]=\"true\"\n (overlayOutsideClick)=\"onOverlayOutsideClick($event, col.field)\"\n >\n <talos-grid-filter-dialog\n [column]=\"col\"\n [distinctValues]=\"activeColumnDistinctValues()\"\n [currentFilter]=\"getFilter(col.field)\"\n [align]=\"col.align === 'right' ? 'right' : 'left'\"\n (filterApplied)=\"onFilterApplied($event)\"\n (filterCleared)=\"onFilterCleared(col.field)\"\n (closed)=\"closeFilterDialog()\"\n />\n </ng-template>\n </div>\n }\n </div>\n }\n </div>\n @if (isResizable(col)) {\n <div\n class=\"talos-grid-resize-handle\"\n [class.is-resizing]=\"isColumnResizing(col.field)\"\n (mousedown)=\"onResizeStart(col, $event, thEl)\"\n (touchstart)=\"onResizeStart(col, $event, thEl)\"\n (dblclick)=\"onResizeDoubleClick(col, $event)\"\n (click)=\"$event.stopPropagation()\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Resize ' + col.header + ' column'\"\n (keydown)=\"onResizeKeydown(col, $event, thEl)\"\n ></div>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Table Body with TrackBy for Optimal Refresh Performance -->\n <tbody>\n @for (row of pagedData(); track trackByRow($index, row)) {\n <tr\n [class.is-hoverable]=\"hoverable()\"\n [class.is-clickable]=\"hasRowClickListeners\"\n (click)=\"onRowClick(row, $index)\"\n role=\"row\"\n >\n @for (col of columns(); track col.field) {\n <td\n [class.align-left]=\"!col.align || col.align === 'left'\"\n [class.align-center]=\"col.align === 'center'\"\n [class.align-right]=\"col.align === 'right'\"\n role=\"gridcell\"\n >\n @if (col.cellTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n col.cellTemplate;\n context: {\n $implicit: getCellValue(row, col),\n row: row,\n index: $index,\n column: col,\n }\n \"\n />\n } @else if (col.type === 'status') {\n <talos-grid-status-cell\n [row]=\"row\"\n [column]=\"col\"\n [rawValue]=\"getCellValue(row, col)\"\n />\n } @else if (col.type === 'actions' && col.actionsConfig) {\n <talos-grid-actions-cell\n [row]=\"row\"\n [rowIndex]=\"$index\"\n [actions]=\"col.actionsConfig\"\n (actionClick)=\"actionClick.emit($event)\"\n />\n } @else {\n {{ row | talosGridCellFormat: col }}\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <!-- Empty State -->\n @if (pagedData().length === 0) {\n <div class=\"talos-data-grid-empty\">\n <div class=\"empty-icon\">\n <ng-container *ngComponentOutlet=\"inboxIcon\" />\n </div>\n <div class=\"empty-text\">\n @if (hasActiveFilters()) {\n <span>No results matching the active filters.</span>\n } @else {\n <span>{{ emptyMessage() }}</span>\n }\n </div>\n @if (hasActiveFilters()) {\n <button talosButton variant=\"outline\" size=\"sm\" (click)=\"clearAllFilters()\">\n Clear Filters\n </button>\n }\n </div>\n }\n </div>\n\n <!-- Pagination Bar -->\n @if (pagination()) {\n <div class=\"talos-data-grid-pagination\">\n <div class=\"pagination-left\">\n <span class=\"pagination-info\">\n Showing {{ startRecord() }} to {{ endRecord() }} of {{ totalCount() }} entries\n </span>\n\n @if (pageSizeOptions().length > 1) {\n <div class=\"pagination-size-selector\">\n <span>Rows per page:</span>\n <talos-select-input\n size=\"sm\"\n placement=\"top\"\n [ngModel]=\"internalPageSize()\"\n (selectionChange)=\"onPageSizeChange(+$any($event))\"\n aria-label=\"Select page size\"\n >\n @for (size of pageSizeOptions(); track size) {\n <talos-option [value]=\"size\" [label]=\"size.toString()\">{{ size }}</talos-option>\n }\n </talos-select-input>\n </div>\n }\n </div>\n\n <div class=\"pagination-right\">\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() <= 0\"\n (click)=\"setPage(0)\"\n title=\"First page\"\n aria-label=\"First page\"\n >\n <ng-container *ngComponentOutlet=\"chevronsLeftIcon\" />\n </button>\n\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() <= 0\"\n (click)=\"setPage(internalPageIndex() - 1)\"\n title=\"Previous page\"\n aria-label=\"Previous page\"\n >\n <ng-container *ngComponentOutlet=\"chevronLeftIcon\" />\n </button>\n\n <span class=\"page-indicator\">\n Page {{ internalPageIndex() + 1 }} of {{ totalPages() }}\n </span>\n\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() >= totalPages() - 1\"\n (click)=\"setPage(internalPageIndex() + 1)\"\n title=\"Next page\"\n aria-label=\"Next page\"\n >\n <ng-container *ngComponentOutlet=\"chevronRightIcon\" />\n </button>\n\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() >= totalPages() - 1\"\n (click)=\"setPage(totalPages() - 1)\"\n title=\"Last page\"\n aria-label=\"Last page\"\n >\n <ng-container *ngComponentOutlet=\"chevronsRightIcon\" />\n </button>\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:flex;flex-direction:column;width:100%;height:100%;min-height:var(--talos-data-grid-min-height, 240px);flex:1 1 auto;font-family:var(--talos-font-sans, system-ui, -apple-system, sans-serif);color:var(--talos-text-primary, #0f172a)}.talos-data-grid-container{display:flex;flex-direction:column;background-color:var(--talos-bg-surface, #ffffff);border-radius:var(--talos-radius-lg, 8px);position:relative;width:100%;height:100%;min-height:inherit;flex:1 1 auto;overflow:hidden;container-type:inline-size}.talos-data-grid-container.is-bordered{border:1px solid var(--talos-border-default, #cbd5e1)}.talos-data-grid-container.is-resizing{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.talos-data-grid-container.is-resizing *{-webkit-user-select:none!important;user-select:none!important;cursor:col-resize!important}.talos-data-grid-table-wrapper{width:100%;flex:1 1 auto;min-height:0;overflow-x:auto;overflow-y:auto;position:relative;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--talos-border-default, #cbd5e1) transparent}.talos-data-grid-table-wrapper::-webkit-scrollbar{height:6px;width:6px}.talos-data-grid-table-wrapper::-webkit-scrollbar-thumb{background:var(--talos-border-default, #cbd5e1);border-radius:4px}.talos-data-grid-table{width:max-content;min-width:100%;border-collapse:collapse;text-align:left;font-size:var(--talos-font-size-sm, 13px);line-height:var(--talos-line-height-normal, 1.5);flex-shrink:0}.talos-data-grid-container.density-compact{--grid-header-padding-y: 6px;--grid-header-padding-x: 10px;--grid-cell-padding-y: 5px;--grid-cell-padding-x: 10px;--grid-font-size: 12px;--grid-header-font-size: 11px;--grid-filter-height: 24px}.talos-data-grid-container.density-comfortable{--grid-header-padding-y: 10px;--grid-header-padding-x: 14px;--grid-cell-padding-y: 9px;--grid-cell-padding-x: 14px;--grid-font-size: 13.5px;--grid-header-font-size: 12px;--grid-filter-height: 28px}.talos-data-grid-container.density-spacious{--grid-header-padding-y: 14px;--grid-header-padding-x: 18px;--grid-cell-padding-y: 14px;--grid-cell-padding-x: 18px;--grid-font-size: 14.5px;--grid-header-font-size: 13px;--grid-filter-height: 32px}.talos-data-grid-table thead th{position:sticky;top:0;z-index:2;min-width:max-content;background-color:var(--talos-bg-subtle, #f8fafc);color:var(--talos-text-secondary, #475569);font-size:var(--grid-header-font-size, 12px);font-weight:var(--talos-font-weight-semibold, 600);text-transform:uppercase;letter-spacing:.04em;padding:var(--grid-header-padding-y) 8px var(--grid-header-padding-y) var(--grid-header-padding-x);border-bottom:1px solid var(--talos-border-default, #cbd5e1);white-space:nowrap;-webkit-user-select:none;user-select:none;vertical-align:middle;overflow:hidden}.talos-data-grid-table thead th.is-sortable{cursor:pointer;transition:background-color var(--talos-transition, .15s ease)}.talos-data-grid-table thead th.is-sortable:hover{background-color:var(--talos-neutral-subtle-bg-hover, #f1f5f9);color:var(--talos-text-primary, #0f172a)}.talos-data-grid-table thead th.is-sorted{color:var(--talos-primary, #2563eb);background-color:var(--talos-primary-subtle-bg, #eff6ff)}.talos-data-grid-table thead th.is-resizable{padding-right:10px}.talos-data-grid-table thead th.is-resizing{background-color:var(--talos-neutral-subtle-bg-hover, #f1f5f9)}.header-content-wrapper{display:flex;align-items:center;gap:4px;width:100%;min-width:0;overflow:hidden}.header-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-tools{display:inline-flex;align-items:center;gap:2px;flex-shrink:0}.sort-icon-wrapper{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;opacity:.45;transition:opacity var(--talos-transition, .15s ease),transform .15s ease}.sort-icon-wrapper ::ng-deep svg,.sort-icon-wrapper ::ng-deep .lucide,.sort-icon-wrapper svg,.sort-icon-wrapper .lucide{width:13px!important;height:13px!important;display:block}.is-sortable:hover .sort-icon-wrapper{opacity:.85}.is-sorted .sort-icon-wrapper{opacity:1;color:var(--talos-primary, #2563eb)}.header-sort-btn{width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border-radius:var(--talos-radius-sm, 4px)!important;border:1px solid transparent!important;background:transparent!important;color:var(--talos-text-muted, #94a3b8)!important;cursor:pointer;opacity:.45;transition:all var(--talos-transition, .15s ease);box-shadow:none!important}.header-sort-btn ::ng-deep svg,.header-sort-btn ::ng-deep .lucide,.header-sort-btn svg,.header-sort-btn .lucide{width:13px!important;height:13px!important;display:block;flex-shrink:0}th:hover .header-sort-btn{opacity:.85}.header-sort-btn:hover{opacity:1;color:var(--talos-text-primary, #0f172a)!important;background:var(--talos-neutral-subtle-bg-hover, rgba(0, 0, 0, .06))!important}.header-sort-btn.is-sorted{opacity:1;color:var(--talos-primary, #2563eb)!important;background:var(--talos-primary-subtle-bg, #eff6ff)!important}.align-left{text-align:left}.align-left .header-content-wrapper{justify-content:flex-start}.align-center{text-align:center}.align-center .header-content-wrapper{justify-content:center}.align-right{text-align:right}.align-right .header-content-wrapper{justify-content:flex-end}.talos-grid-resize-handle{position:absolute;top:0;right:0;bottom:0;width:8px;cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;z-index:3;display:flex;align-items:center;justify-content:center}.talos-grid-resize-handle:after{content:\"\";display:block;width:2px;height:50%;border-radius:1px;background-color:transparent;transition:background-color var(--talos-transition, .15s ease),height var(--talos-transition, .15s ease)}.talos-grid-resize-handle:hover:after,.talos-grid-resize-handle:focus-visible:after,.talos-grid-resize-handle.is-resizing:after{background-color:var(--talos-primary, #2563eb);height:100%}.talos-grid-resize-handle:focus-visible{outline:none}.talos-grid-filter-anchor{position:relative;display:inline-flex;align-items:center}.header-filter-btn{display:inline-flex;align-items:center;justify-content:center;width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border-radius:var(--talos-radius-sm, 4px)!important;border:1px solid transparent!important;background:transparent!important;color:var(--talos-text-muted, #94a3b8)!important;cursor:pointer;opacity:.5;transition:all var(--talos-transition, .15s ease);box-shadow:none!important}.header-filter-btn ::ng-deep svg,.header-filter-btn ::ng-deep .lucide,.header-filter-btn svg,.header-filter-btn .lucide{width:13px!important;height:13px!important;display:block;flex-shrink:0}th:hover .header-filter-btn{opacity:.85}.header-filter-btn:hover,.header-filter-btn.is-open{opacity:1;color:var(--talos-text-primary, #0f172a)!important;background:var(--talos-neutral-subtle-bg-hover, rgba(0, 0, 0, .06))!important}.header-filter-btn.is-active{opacity:1;color:#fff!important;background:var(--talos-primary, #2563eb)!important;border-color:var(--talos-primary, #2563eb)!important}.talos-data-grid-table tbody tr{border-bottom:1px solid var(--talos-border-subtle, #f1f5f9);transition:background-color var(--talos-transition, .12s ease)}.talos-data-grid-table tbody tr.is-hoverable:hover{background-color:var(--talos-neutral-subtle-bg-hover, #f8fafc)}.talos-data-grid-table tbody tr.is-clickable{cursor:pointer}.talos-data-grid-container.is-striped .talos-data-grid-table tbody tr:nth-child(2n){background-color:var(--talos-bg-subtle, #fcfdfe)}.talos-data-grid-container.is-striped .talos-data-grid-table tbody tr:nth-child(2n).is-hoverable:hover{background-color:var(--talos-neutral-subtle-bg-hover, #f8fafc)}.talos-data-grid-table tbody td{padding:var(--grid-cell-padding-y) var(--grid-cell-padding-x);font-size:var(--grid-font-size, 13.5px);color:var(--talos-text-primary, #0f172a);vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.talos-data-grid-empty{flex:1 1 auto;position:sticky;left:0;align-self:flex-start;width:100%;width:100cqw;max-width:100%;max-width:100cqw;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:var(--talos-text-muted, #64748b);text-align:center;gap:12px}.talos-data-grid-empty .empty-icon{opacity:.5;width:36px;height:36px;display:flex;align-items:center;justify-content:center}.talos-data-grid-empty .empty-icon ::ng-deep svg,.talos-data-grid-empty .empty-icon ::ng-deep .lucide,.talos-data-grid-empty .empty-icon svg,.talos-data-grid-empty .empty-icon .lucide{width:36px;height:36px}.talos-data-grid-empty .empty-text{font-size:var(--talos-font-size-base, 14px);font-weight:var(--talos-font-weight-medium, 500)}.talos-data-grid-pagination{position:relative;z-index:10;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--talos-border-default, #cbd5e1);background-color:var(--talos-bg-surface, #ffffff);gap:12px;flex-wrap:wrap}.pagination-left{display:flex;align-items:center;gap:12px}.pagination-info{font-size:var(--talos-font-size-sm, 13px);color:var(--talos-text-muted, #64748b)}.pagination-size-selector{display:flex;align-items:center;gap:6px;font-size:var(--talos-font-size-sm, 13px);color:var(--talos-text-secondary, #334155)}.pagination-size-selector talos-select-input{width:76px;min-width:76px}.pagination-right{display:flex;align-items:center;gap:4px}.pagination-right ::ng-deep button.talos-btn svg,.pagination-right ::ng-deep button.talos-btn .lucide{width:14px;height:14px}.page-indicator{font-size:var(--talos-font-size-sm, 13px);color:var(--talos-text-secondary, #334155);font-weight:var(--talos-font-weight-medium, 500);padding:0 8px}.talos-data-grid-loading-overlay{position:absolute;inset:0;background:#ffffffb3;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}.talos-data-grid-loading-overlay ::ng-deep svg,.talos-data-grid-loading-overlay ::ng-deep .lucide,.talos-data-grid-loading-overlay svg,.talos-data-grid-loading-overlay .lucide{width:24px;height:24px;animation:talos-grid-spin .8s linear infinite}@keyframes talos-grid-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TalosButtonDirective, selector: "button[talosButton], a[talosButton], button[talos-btn], a[talos-btn]", inputs: ["variant", "size", "iconOnly", "fullWidth", "pill", "loading", "disabled", "animation", "spinning", "popping", "feedback"] }, { kind: "component", type: SelectInputComponent, selector: "talos-select-input", inputs: ["placeholder", "label", "floatingLabel", "floating", "required", "searchable", "searchPlaceholder", "disabled", "clearable", "multiple", "size", "placement"], outputs: ["selectionChange", "opened", "closed", "searchChange"] }, { kind: "component", type: OptionComponent, selector: "talos-option", inputs: ["value", "label", "disabled"], outputs: ["selected"] }, { kind: "component", type: TalosGridStatusCellComponent, selector: "talos-grid-status-cell", inputs: ["row", "column", "rawValue"] }, { kind: "component", type: TalosGridActionsCellComponent, selector: "talos-grid-actions-cell", inputs: ["row", "rowIndex", "actions"], outputs: ["actionClick"] }, { kind: "component", type: TalosGridFilterDialogComponent, selector: "talos-grid-filter-dialog", inputs: ["column", "distinctValues", "currentFilter", "align"], outputs: ["filterApplied", "filterCleared", "closed"] }, { kind: "pipe", type: TalosGridCellFormatPipe, name: "talosGridCellFormat" }] });
2520
+ }
2521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosDataGridComponent, decorators: [{
2522
+ type: Component,
2523
+ args: [{ selector: 'talos-data-grid', imports: [
2524
+ NgComponentOutlet,
2525
+ NgTemplateOutlet,
2526
+ OverlayModule,
2527
+ CdkConnectedOverlay,
2528
+ CdkOverlayOrigin,
2529
+ FormsModule,
2530
+ TalosButtonDirective,
2531
+ SelectInputComponent,
2532
+ OptionComponent,
2533
+ TalosGridStatusCellComponent,
2534
+ TalosGridActionsCellComponent,
2535
+ TalosGridFilterDialogComponent,
2536
+ TalosGridCellFormatPipe,
2537
+ ], host: {
2538
+ class: 'talos-data-grid-host',
2539
+ '[style.min-height]': 'normalizedMinHeight()',
2540
+ '[style.height]': 'normalizedHeight()',
2541
+ }, template: "<div\n class=\"talos-data-grid-container\"\n [class.density-compact]=\"density() === 'compact'\"\n [class.density-comfortable]=\"density() === 'comfortable'\"\n [class.density-spacious]=\"density() === 'spacious'\"\n [class.is-bordered]=\"bordered()\"\n [class.is-striped]=\"striped()\"\n [class.is-resizing]=\"isResizing()\"\n>\n <!-- Loading overlay -->\n @if (loading()) {\n <div class=\"talos-data-grid-loading-overlay\">\n <ng-container *ngComponentOutlet=\"loaderIcon\" />\n </div>\n }\n\n <!-- Main Scrollable Table Wrapper -->\n <div class=\"talos-data-grid-table-wrapper\">\n <table class=\"talos-data-grid-table\" [class.has-resizable-columns]=\"hasResizableColumns()\" role=\"grid\">\n <thead>\n <!-- Header Column Row -->\n <tr>\n @for (col of columns(); track col.field) {\n <th\n #thEl\n [style.width]=\"getColumnWidth(col)\"\n [style.min-width]=\"getColumnMinWidth(col)\"\n [style.max-width]=\"col.maxWidth\"\n [class.align-left]=\"!col.align || col.align === 'left'\"\n [class.align-center]=\"col.align === 'center'\"\n [class.align-right]=\"col.align === 'right'\"\n [class.is-sortable]=\"isSortable(col)\"\n [class.is-sorted]=\"isSorted(col)\"\n [class.is-resizable]=\"isResizable(col)\"\n [class.is-resizing]=\"isColumnResizing(col.field)\"\n (click)=\"onHeaderClick(col)\"\n role=\"columnheader\"\n [attr.aria-sort]=\"getAriaSort(col)\"\n >\n <div class=\"header-content-wrapper\">\n <span class=\"header-title\" [title]=\"col.header\">{{ col.header }}</span>\n @if (isSortable(col) || isFilterable(col)) {\n <div class=\"header-tools\">\n @if (isSortable(col)) {\n <button\n talosButton\n variant=\"ghost\"\n size=\"xs\"\n [iconOnly]=\"true\"\n type=\"button\"\n class=\"header-sort-btn\"\n [class.is-sorted]=\"isSorted(col)\"\n (click)=\"$event.stopPropagation(); onHeaderClick(col)\"\n [attr.aria-label]=\"'Sort by ' + col.header\"\n [title]=\"'Sort by ' + col.header\"\n >\n @if (getSortDirection(col) === 'asc') {\n <ng-container *ngComponentOutlet=\"arrowUpIcon\" />\n } @else if (getSortDirection(col) === 'desc') {\n <ng-container *ngComponentOutlet=\"arrowDownIcon\" />\n } @else {\n <ng-container *ngComponentOutlet=\"arrowUpDownIcon\" />\n }\n </button>\n }\n @if (isFilterable(col)) {\n <div\n class=\"talos-grid-filter-anchor\"\n [class]=\"'filter-anchor-' + col.field\"\n cdkOverlayOrigin\n #filterOrigin=\"cdkOverlayOrigin\"\n (click)=\"$event.stopPropagation()\"\n >\n <button\n talosButton\n variant=\"ghost\"\n size=\"xs\"\n [iconOnly]=\"true\"\n type=\"button\"\n class=\"header-filter-btn\"\n [class.is-active]=\"hasFilter(col.field)\"\n [class.is-open]=\"isFilterDialogOpen(col.field)\"\n (click)=\"toggleFilterDialog(col.field, $event)\"\n [attr.aria-label]=\"'Filter ' + col.header\"\n title=\"Filter\"\n >\n <ng-container *ngComponentOutlet=\"filterIcon\" />\n </button>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"filterOrigin\"\n [cdkConnectedOverlayOpen]=\"isFilterDialogOpen(col.field)\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayPush]=\"true\"\n (overlayOutsideClick)=\"onOverlayOutsideClick($event, col.field)\"\n >\n <talos-grid-filter-dialog\n [column]=\"col\"\n [distinctValues]=\"activeColumnDistinctValues()\"\n [currentFilter]=\"getFilter(col.field)\"\n [align]=\"col.align === 'right' ? 'right' : 'left'\"\n (filterApplied)=\"onFilterApplied($event)\"\n (filterCleared)=\"onFilterCleared(col.field)\"\n (closed)=\"closeFilterDialog()\"\n />\n </ng-template>\n </div>\n }\n </div>\n }\n </div>\n @if (isResizable(col)) {\n <div\n class=\"talos-grid-resize-handle\"\n [class.is-resizing]=\"isColumnResizing(col.field)\"\n (mousedown)=\"onResizeStart(col, $event, thEl)\"\n (touchstart)=\"onResizeStart(col, $event, thEl)\"\n (dblclick)=\"onResizeDoubleClick(col, $event)\"\n (click)=\"$event.stopPropagation()\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Resize ' + col.header + ' column'\"\n (keydown)=\"onResizeKeydown(col, $event, thEl)\"\n ></div>\n }\n </th>\n }\n </tr>\n </thead>\n\n <!-- Table Body with TrackBy for Optimal Refresh Performance -->\n <tbody>\n @for (row of pagedData(); track trackByRow($index, row)) {\n <tr\n [class.is-hoverable]=\"hoverable()\"\n [class.is-clickable]=\"hasRowClickListeners\"\n (click)=\"onRowClick(row, $index)\"\n role=\"row\"\n >\n @for (col of columns(); track col.field) {\n <td\n [class.align-left]=\"!col.align || col.align === 'left'\"\n [class.align-center]=\"col.align === 'center'\"\n [class.align-right]=\"col.align === 'right'\"\n role=\"gridcell\"\n >\n @if (col.cellTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n col.cellTemplate;\n context: {\n $implicit: getCellValue(row, col),\n row: row,\n index: $index,\n column: col,\n }\n \"\n />\n } @else if (col.type === 'status') {\n <talos-grid-status-cell\n [row]=\"row\"\n [column]=\"col\"\n [rawValue]=\"getCellValue(row, col)\"\n />\n } @else if (col.type === 'actions' && col.actionsConfig) {\n <talos-grid-actions-cell\n [row]=\"row\"\n [rowIndex]=\"$index\"\n [actions]=\"col.actionsConfig\"\n (actionClick)=\"actionClick.emit($event)\"\n />\n } @else {\n {{ row | talosGridCellFormat: col }}\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <!-- Empty State -->\n @if (pagedData().length === 0) {\n <div class=\"talos-data-grid-empty\">\n <div class=\"empty-icon\">\n <ng-container *ngComponentOutlet=\"inboxIcon\" />\n </div>\n <div class=\"empty-text\">\n @if (hasActiveFilters()) {\n <span>No results matching the active filters.</span>\n } @else {\n <span>{{ emptyMessage() }}</span>\n }\n </div>\n @if (hasActiveFilters()) {\n <button talosButton variant=\"outline\" size=\"sm\" (click)=\"clearAllFilters()\">\n Clear Filters\n </button>\n }\n </div>\n }\n </div>\n\n <!-- Pagination Bar -->\n @if (pagination()) {\n <div class=\"talos-data-grid-pagination\">\n <div class=\"pagination-left\">\n <span class=\"pagination-info\">\n Showing {{ startRecord() }} to {{ endRecord() }} of {{ totalCount() }} entries\n </span>\n\n @if (pageSizeOptions().length > 1) {\n <div class=\"pagination-size-selector\">\n <span>Rows per page:</span>\n <talos-select-input\n size=\"sm\"\n placement=\"top\"\n [ngModel]=\"internalPageSize()\"\n (selectionChange)=\"onPageSizeChange(+$any($event))\"\n aria-label=\"Select page size\"\n >\n @for (size of pageSizeOptions(); track size) {\n <talos-option [value]=\"size\" [label]=\"size.toString()\">{{ size }}</talos-option>\n }\n </talos-select-input>\n </div>\n }\n </div>\n\n <div class=\"pagination-right\">\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() <= 0\"\n (click)=\"setPage(0)\"\n title=\"First page\"\n aria-label=\"First page\"\n >\n <ng-container *ngComponentOutlet=\"chevronsLeftIcon\" />\n </button>\n\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() <= 0\"\n (click)=\"setPage(internalPageIndex() - 1)\"\n title=\"Previous page\"\n aria-label=\"Previous page\"\n >\n <ng-container *ngComponentOutlet=\"chevronLeftIcon\" />\n </button>\n\n <span class=\"page-indicator\">\n Page {{ internalPageIndex() + 1 }} of {{ totalPages() }}\n </span>\n\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() >= totalPages() - 1\"\n (click)=\"setPage(internalPageIndex() + 1)\"\n title=\"Next page\"\n aria-label=\"Next page\"\n >\n <ng-container *ngComponentOutlet=\"chevronRightIcon\" />\n </button>\n\n <button\n talosButton\n variant=\"ghost\"\n size=\"sm\"\n [iconOnly]=\"true\"\n [disabled]=\"internalPageIndex() >= totalPages() - 1\"\n (click)=\"setPage(totalPages() - 1)\"\n title=\"Last page\"\n aria-label=\"Last page\"\n >\n <ng-container *ngComponentOutlet=\"chevronsRightIcon\" />\n </button>\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:flex;flex-direction:column;width:100%;height:100%;min-height:var(--talos-data-grid-min-height, 240px);flex:1 1 auto;font-family:var(--talos-font-sans, system-ui, -apple-system, sans-serif);color:var(--talos-text-primary, #0f172a)}.talos-data-grid-container{display:flex;flex-direction:column;background-color:var(--talos-bg-surface, #ffffff);border-radius:var(--talos-radius-lg, 8px);position:relative;width:100%;height:100%;min-height:inherit;flex:1 1 auto;overflow:hidden;container-type:inline-size}.talos-data-grid-container.is-bordered{border:1px solid var(--talos-border-default, #cbd5e1)}.talos-data-grid-container.is-resizing{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.talos-data-grid-container.is-resizing *{-webkit-user-select:none!important;user-select:none!important;cursor:col-resize!important}.talos-data-grid-table-wrapper{width:100%;flex:1 1 auto;min-height:0;overflow-x:auto;overflow-y:auto;position:relative;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--talos-border-default, #cbd5e1) transparent}.talos-data-grid-table-wrapper::-webkit-scrollbar{height:6px;width:6px}.talos-data-grid-table-wrapper::-webkit-scrollbar-thumb{background:var(--talos-border-default, #cbd5e1);border-radius:4px}.talos-data-grid-table{width:max-content;min-width:100%;border-collapse:collapse;text-align:left;font-size:var(--talos-font-size-sm, 13px);line-height:var(--talos-line-height-normal, 1.5);flex-shrink:0}.talos-data-grid-container.density-compact{--grid-header-padding-y: 6px;--grid-header-padding-x: 10px;--grid-cell-padding-y: 5px;--grid-cell-padding-x: 10px;--grid-font-size: 12px;--grid-header-font-size: 11px;--grid-filter-height: 24px}.talos-data-grid-container.density-comfortable{--grid-header-padding-y: 10px;--grid-header-padding-x: 14px;--grid-cell-padding-y: 9px;--grid-cell-padding-x: 14px;--grid-font-size: 13.5px;--grid-header-font-size: 12px;--grid-filter-height: 28px}.talos-data-grid-container.density-spacious{--grid-header-padding-y: 14px;--grid-header-padding-x: 18px;--grid-cell-padding-y: 14px;--grid-cell-padding-x: 18px;--grid-font-size: 14.5px;--grid-header-font-size: 13px;--grid-filter-height: 32px}.talos-data-grid-table thead th{position:sticky;top:0;z-index:2;min-width:max-content;background-color:var(--talos-bg-subtle, #f8fafc);color:var(--talos-text-secondary, #475569);font-size:var(--grid-header-font-size, 12px);font-weight:var(--talos-font-weight-semibold, 600);text-transform:uppercase;letter-spacing:.04em;padding:var(--grid-header-padding-y) 8px var(--grid-header-padding-y) var(--grid-header-padding-x);border-bottom:1px solid var(--talos-border-default, #cbd5e1);white-space:nowrap;-webkit-user-select:none;user-select:none;vertical-align:middle;overflow:hidden}.talos-data-grid-table thead th.is-sortable{cursor:pointer;transition:background-color var(--talos-transition, .15s ease)}.talos-data-grid-table thead th.is-sortable:hover{background-color:var(--talos-neutral-subtle-bg-hover, #f1f5f9);color:var(--talos-text-primary, #0f172a)}.talos-data-grid-table thead th.is-sorted{color:var(--talos-primary, #2563eb);background-color:var(--talos-primary-subtle-bg, #eff6ff)}.talos-data-grid-table thead th.is-resizable{padding-right:10px}.talos-data-grid-table thead th.is-resizing{background-color:var(--talos-neutral-subtle-bg-hover, #f1f5f9)}.header-content-wrapper{display:flex;align-items:center;gap:4px;width:100%;min-width:0;overflow:hidden}.header-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-tools{display:inline-flex;align-items:center;gap:2px;flex-shrink:0}.sort-icon-wrapper{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;opacity:.45;transition:opacity var(--talos-transition, .15s ease),transform .15s ease}.sort-icon-wrapper ::ng-deep svg,.sort-icon-wrapper ::ng-deep .lucide,.sort-icon-wrapper svg,.sort-icon-wrapper .lucide{width:13px!important;height:13px!important;display:block}.is-sortable:hover .sort-icon-wrapper{opacity:.85}.is-sorted .sort-icon-wrapper{opacity:1;color:var(--talos-primary, #2563eb)}.header-sort-btn{width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border-radius:var(--talos-radius-sm, 4px)!important;border:1px solid transparent!important;background:transparent!important;color:var(--talos-text-muted, #94a3b8)!important;cursor:pointer;opacity:.45;transition:all var(--talos-transition, .15s ease);box-shadow:none!important}.header-sort-btn ::ng-deep svg,.header-sort-btn ::ng-deep .lucide,.header-sort-btn svg,.header-sort-btn .lucide{width:13px!important;height:13px!important;display:block;flex-shrink:0}th:hover .header-sort-btn{opacity:.85}.header-sort-btn:hover{opacity:1;color:var(--talos-text-primary, #0f172a)!important;background:var(--talos-neutral-subtle-bg-hover, rgba(0, 0, 0, .06))!important}.header-sort-btn.is-sorted{opacity:1;color:var(--talos-primary, #2563eb)!important;background:var(--talos-primary-subtle-bg, #eff6ff)!important}.align-left{text-align:left}.align-left .header-content-wrapper{justify-content:flex-start}.align-center{text-align:center}.align-center .header-content-wrapper{justify-content:center}.align-right{text-align:right}.align-right .header-content-wrapper{justify-content:flex-end}.talos-grid-resize-handle{position:absolute;top:0;right:0;bottom:0;width:8px;cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;z-index:3;display:flex;align-items:center;justify-content:center}.talos-grid-resize-handle:after{content:\"\";display:block;width:2px;height:50%;border-radius:1px;background-color:transparent;transition:background-color var(--talos-transition, .15s ease),height var(--talos-transition, .15s ease)}.talos-grid-resize-handle:hover:after,.talos-grid-resize-handle:focus-visible:after,.talos-grid-resize-handle.is-resizing:after{background-color:var(--talos-primary, #2563eb);height:100%}.talos-grid-resize-handle:focus-visible{outline:none}.talos-grid-filter-anchor{position:relative;display:inline-flex;align-items:center}.header-filter-btn{display:inline-flex;align-items:center;justify-content:center;width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border-radius:var(--talos-radius-sm, 4px)!important;border:1px solid transparent!important;background:transparent!important;color:var(--talos-text-muted, #94a3b8)!important;cursor:pointer;opacity:.5;transition:all var(--talos-transition, .15s ease);box-shadow:none!important}.header-filter-btn ::ng-deep svg,.header-filter-btn ::ng-deep .lucide,.header-filter-btn svg,.header-filter-btn .lucide{width:13px!important;height:13px!important;display:block;flex-shrink:0}th:hover .header-filter-btn{opacity:.85}.header-filter-btn:hover,.header-filter-btn.is-open{opacity:1;color:var(--talos-text-primary, #0f172a)!important;background:var(--talos-neutral-subtle-bg-hover, rgba(0, 0, 0, .06))!important}.header-filter-btn.is-active{opacity:1;color:#fff!important;background:var(--talos-primary, #2563eb)!important;border-color:var(--talos-primary, #2563eb)!important}.talos-data-grid-table tbody tr{border-bottom:1px solid var(--talos-border-subtle, #f1f5f9);transition:background-color var(--talos-transition, .12s ease)}.talos-data-grid-table tbody tr.is-hoverable:hover{background-color:var(--talos-neutral-subtle-bg-hover, #f8fafc)}.talos-data-grid-table tbody tr.is-clickable{cursor:pointer}.talos-data-grid-container.is-striped .talos-data-grid-table tbody tr:nth-child(2n){background-color:var(--talos-bg-subtle, #fcfdfe)}.talos-data-grid-container.is-striped .talos-data-grid-table tbody tr:nth-child(2n).is-hoverable:hover{background-color:var(--talos-neutral-subtle-bg-hover, #f8fafc)}.talos-data-grid-table tbody td{padding:var(--grid-cell-padding-y) var(--grid-cell-padding-x);font-size:var(--grid-font-size, 13.5px);color:var(--talos-text-primary, #0f172a);vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.talos-data-grid-empty{flex:1 1 auto;position:sticky;left:0;align-self:flex-start;width:100%;width:100cqw;max-width:100%;max-width:100cqw;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:var(--talos-text-muted, #64748b);text-align:center;gap:12px}.talos-data-grid-empty .empty-icon{opacity:.5;width:36px;height:36px;display:flex;align-items:center;justify-content:center}.talos-data-grid-empty .empty-icon ::ng-deep svg,.talos-data-grid-empty .empty-icon ::ng-deep .lucide,.talos-data-grid-empty .empty-icon svg,.talos-data-grid-empty .empty-icon .lucide{width:36px;height:36px}.talos-data-grid-empty .empty-text{font-size:var(--talos-font-size-base, 14px);font-weight:var(--talos-font-weight-medium, 500)}.talos-data-grid-pagination{position:relative;z-index:10;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--talos-border-default, #cbd5e1);background-color:var(--talos-bg-surface, #ffffff);gap:12px;flex-wrap:wrap}.pagination-left{display:flex;align-items:center;gap:12px}.pagination-info{font-size:var(--talos-font-size-sm, 13px);color:var(--talos-text-muted, #64748b)}.pagination-size-selector{display:flex;align-items:center;gap:6px;font-size:var(--talos-font-size-sm, 13px);color:var(--talos-text-secondary, #334155)}.pagination-size-selector talos-select-input{width:76px;min-width:76px}.pagination-right{display:flex;align-items:center;gap:4px}.pagination-right ::ng-deep button.talos-btn svg,.pagination-right ::ng-deep button.talos-btn .lucide{width:14px;height:14px}.page-indicator{font-size:var(--talos-font-size-sm, 13px);color:var(--talos-text-secondary, #334155);font-weight:var(--talos-font-weight-medium, 500);padding:0 8px}.talos-data-grid-loading-overlay{position:absolute;inset:0;background:#ffffffb3;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}.talos-data-grid-loading-overlay ::ng-deep svg,.talos-data-grid-loading-overlay ::ng-deep .lucide,.talos-data-grid-loading-overlay svg,.talos-data-grid-loading-overlay .lucide{width:24px;height:24px;animation:talos-grid-spin .8s linear infinite}@keyframes talos-grid-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
2542
+ }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: true }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], pageIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageIndex", required: false }] }], totalItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalItems", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], hoverable: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverable", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], clientSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientSort", required: false }] }], clientPagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientPagination", required: false }] }], clientFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientFilter", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeight", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }], columnResize: [{ type: i0.Output, args: ["columnResize"] }] } });
2543
+
2544
+ class TalosDataGridModule {
2545
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosDataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2546
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosDataGridModule, imports: [TalosDataGridComponent,
2547
+ TalosGridStatusCellComponent,
2548
+ TalosGridActionsCellComponent,
2549
+ TalosGridFilterDialogComponent,
2550
+ TalosGridCellFormatPipe], exports: [TalosDataGridComponent,
2551
+ TalosGridStatusCellComponent,
2552
+ TalosGridActionsCellComponent,
2553
+ TalosGridFilterDialogComponent,
2554
+ TalosGridCellFormatPipe] });
2555
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosDataGridModule, imports: [TalosDataGridComponent,
2556
+ TalosGridFilterDialogComponent] });
2557
+ }
2558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosDataGridModule, decorators: [{
2559
+ type: NgModule,
2560
+ args: [{
2561
+ imports: [
2562
+ TalosDataGridComponent,
2563
+ TalosGridStatusCellComponent,
2564
+ TalosGridActionsCellComponent,
2565
+ TalosGridFilterDialogComponent,
2566
+ TalosGridCellFormatPipe,
2567
+ ],
2568
+ exports: [
2569
+ TalosDataGridComponent,
2570
+ TalosGridStatusCellComponent,
2571
+ TalosGridActionsCellComponent,
2572
+ TalosGridFilterDialogComponent,
2573
+ TalosGridCellFormatPipe,
2574
+ ],
2575
+ }]
2576
+ }] });
2577
+
2578
+ class TalosTimelineDotDirective {
2579
+ templateRef = inject(TemplateRef, { optional: true });
2580
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineDotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2581
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosTimelineDotDirective, isStandalone: true, selector: "[talosTimelineDot], ng-template[talosTimelineDot]", ngImport: i0 });
2582
+ }
2583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineDotDirective, decorators: [{
2584
+ type: Directive,
2585
+ args: [{
2586
+ selector: '[talosTimelineDot], ng-template[talosTimelineDot]'
2587
+ }]
2588
+ }] });
2589
+ class TalosTimelineTitleDirective {
2590
+ templateRef = inject(TemplateRef, { optional: true });
2591
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2592
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosTimelineTitleDirective, isStandalone: true, selector: "[talosTimelineTitle], ng-template[talosTimelineTitle]", ngImport: i0 });
2593
+ }
2594
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineTitleDirective, decorators: [{
2595
+ type: Directive,
2596
+ args: [{
2597
+ selector: '[talosTimelineTitle], ng-template[talosTimelineTitle]'
2598
+ }]
2599
+ }] });
2600
+ class TalosTimelineTimeDirective {
2601
+ templateRef = inject(TemplateRef, { optional: true });
2602
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineTimeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2603
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosTimelineTimeDirective, isStandalone: true, selector: "[talosTimelineTime], ng-template[talosTimelineTime]", ngImport: i0 });
2604
+ }
2605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineTimeDirective, decorators: [{
2606
+ type: Directive,
2607
+ args: [{
2608
+ selector: '[talosTimelineTime], ng-template[talosTimelineTime]'
2609
+ }]
2610
+ }] });
2611
+ class TalosTimelineContentDirective {
2612
+ templateRef = inject(TemplateRef, { optional: true });
2613
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2614
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosTimelineContentDirective, isStandalone: true, selector: "[talosTimelineContent], ng-template[talosTimelineContent]", ngImport: i0 });
2615
+ }
2616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineContentDirective, decorators: [{
2617
+ type: Directive,
2618
+ args: [{
2619
+ selector: '[talosTimelineContent], ng-template[talosTimelineContent]'
2620
+ }]
2621
+ }] });
2622
+ class TalosTimelineExtraDirective {
2623
+ templateRef = inject(TemplateRef, { optional: true });
2624
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineExtraDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2625
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: TalosTimelineExtraDirective, isStandalone: true, selector: "[talosTimelineExtra], ng-template[talosTimelineExtra]", ngImport: i0 });
2626
+ }
2627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineExtraDirective, decorators: [{
2628
+ type: Directive,
2629
+ args: [{
2630
+ selector: '[talosTimelineExtra], ng-template[talosTimelineExtra]'
2631
+ }]
2632
+ }] });
2633
+
2634
+ class TalosTimelineItemComponent {
2635
+ // Inputs
2636
+ status = input('neutral', /* @ts-ignore */
2637
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
2638
+ dotVariant = input('solid', /* @ts-ignore */
2639
+ ...(ngDevMode ? [{ debugName: "dotVariant" }] : /* istanbul ignore next */ []));
2640
+ dotSize = input('md', /* @ts-ignore */
2641
+ ...(ngDevMode ? [{ debugName: "dotSize" }] : /* istanbul ignore next */ []));
2642
+ dotColor = input(null, /* @ts-ignore */
2643
+ ...(ngDevMode ? [{ debugName: "dotColor" }] : /* istanbul ignore next */ []));
2644
+ icon = input(null, /* @ts-ignore */
2645
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
2646
+ loading = input(false, /* @ts-ignore */
2647
+ ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
2648
+ active = input(false, /* @ts-ignore */
2649
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
2650
+ lineStyle = input('solid', /* @ts-ignore */
2651
+ ...(ngDevMode ? [{ debugName: "lineStyle" }] : /* istanbul ignore next */ []));
2652
+ timestamp = input(null, /* @ts-ignore */
2653
+ ...(ngDevMode ? [{ debugName: "timestamp" }] : /* istanbul ignore next */ []));
2654
+ relativeTime = input(null, /* @ts-ignore */
2655
+ ...(ngDevMode ? [{ debugName: "relativeTime" }] : /* istanbul ignore next */ []));
2656
+ title = input(null, /* @ts-ignore */
2657
+ ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
2658
+ description = input(null, /* @ts-ignore */
2659
+ ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
2660
+ actor = input(null, /* @ts-ignore */
2661
+ ...(ngDevMode ? [{ debugName: "actor" }] : /* istanbul ignore next */ []));
2662
+ tags = input(null, /* @ts-ignore */
2663
+ ...(ngDevMode ? [{ debugName: "tags" }] : /* istanbul ignore next */ []));
2664
+ diffs = input(null, /* @ts-ignore */
2665
+ ...(ngDevMode ? [{ debugName: "diffs" }] : /* istanbul ignore next */ []));
2666
+ metadata = input(null, /* @ts-ignore */
2667
+ ...(ngDevMode ? [{ debugName: "metadata" }] : /* istanbul ignore next */ []));
2668
+ expandable = input(false, /* @ts-ignore */
2669
+ ...(ngDevMode ? [{ debugName: "expandable" }] : /* istanbul ignore next */ []));
2670
+ expanded = input(false, /* @ts-ignore */
2671
+ ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
2672
+ position = input('left', /* @ts-ignore */
2673
+ ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
2674
+ isLast = input(false, /* @ts-ignore */
2675
+ ...(ngDevMode ? [{ debugName: "isLast" }] : /* istanbul ignore next */ []));
2676
+ // Outputs
2677
+ itemClick = output();
2678
+ toggleExpand = output();
2679
+ // Slot Directives
2680
+ customDot;
2681
+ customTitle;
2682
+ customTime;
2683
+ customContent;
2684
+ customExtra;
2685
+ // Internal state for accordion / collapse linked to input
2686
+ isExpanded = linkedSignal(() => this.expanded(), /* @ts-ignore */
2687
+ ...(ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []));
2688
+ hasExpandableDetails = computed(() => {
2689
+ return (this.expandable() ||
2690
+ (this.diffs() && this.diffs().length > 0) ||
2691
+ (this.metadata() && Object.keys(this.metadata()).length > 0));
2692
+ }, /* @ts-ignore */
2693
+ ...(ngDevMode ? [{ debugName: "hasExpandableDetails" }] : /* istanbul ignore next */ []));
2694
+ effectiveIcon = computed(() => {
2695
+ if (this.loading()) {
2696
+ return LucideLoader2;
2697
+ }
2698
+ if (this.icon()) {
2699
+ return this.icon();
2700
+ }
2701
+ switch (this.status()) {
2702
+ case 'success':
2703
+ case 'completed':
2704
+ return LucideCheck;
2705
+ case 'error':
2706
+ case 'cancelled':
2707
+ return LucideAlertCircle;
2708
+ case 'warning':
2709
+ return LucideAlertTriangle;
2710
+ case 'info':
2711
+ return LucideInfo;
2712
+ case 'pending':
2713
+ case 'in-progress':
2714
+ return LucideClock;
2715
+ default:
2716
+ return null;
2717
+ }
2718
+ }, /* @ts-ignore */
2719
+ ...(ngDevMode ? [{ debugName: "effectiveIcon" }] : /* istanbul ignore next */ []));
2720
+ isStatus(expected) {
2721
+ return this.status() === expected;
2722
+ }
2723
+ toggleAccordion() {
2724
+ this.isExpanded.update(current => !current);
2725
+ this.toggleExpand.emit(this.isExpanded());
2726
+ }
2727
+ onItemClicked() {
2728
+ this.itemClick.emit();
2729
+ }
2730
+ isDateObject(val) {
2731
+ return val instanceof Date;
2732
+ }
2733
+ formatJsonValue(val) {
2734
+ if (typeof val === 'string')
2735
+ return `"${val}"`;
2736
+ if (typeof val === 'object' && val !== null)
2737
+ return JSON.stringify(val);
2738
+ return String(val);
2739
+ }
2740
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2741
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosTimelineItemComponent, isStandalone: true, selector: "talos-timeline-item, [talosTimelineItem]", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, dotVariant: { classPropertyName: "dotVariant", publicName: "dotVariant", isSignal: true, isRequired: false, transformFunction: null }, dotSize: { classPropertyName: "dotSize", publicName: "dotSize", isSignal: true, isRequired: false, transformFunction: null }, dotColor: { classPropertyName: "dotColor", publicName: "dotColor", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, timestamp: { classPropertyName: "timestamp", publicName: "timestamp", isSignal: true, isRequired: false, transformFunction: null }, relativeTime: { classPropertyName: "relativeTime", publicName: "relativeTime", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, actor: { classPropertyName: "actor", publicName: "actor", isSignal: true, isRequired: false, transformFunction: null }, tags: { classPropertyName: "tags", publicName: "tags", isSignal: true, isRequired: false, transformFunction: null }, diffs: { classPropertyName: "diffs", publicName: "diffs", isSignal: true, isRequired: false, transformFunction: null }, metadata: { classPropertyName: "metadata", publicName: "metadata", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, isLast: { classPropertyName: "isLast", publicName: "isLast", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", toggleExpand: "toggleExpand" }, host: { properties: { "class.talos-timeline-item--primary": "isStatus(\"primary\")", "class.talos-timeline-item--secondary": "isStatus(\"secondary\")", "class.talos-timeline-item--success": "isStatus(\"success\") || isStatus(\"completed\")", "class.talos-timeline-item--warning": "isStatus(\"warning\")", "class.talos-timeline-item--error": "isStatus(\"error\") || isStatus(\"cancelled\")", "class.talos-timeline-item--info": "isStatus(\"info\")", "class.talos-timeline-item--neutral": "isStatus(\"neutral\")", "class.talos-timeline-item--pending": "isStatus(\"pending\")", "class.talos-timeline-item--in-progress": "isStatus(\"in-progress\")", "class.talos-timeline-item--loading": "loading()", "class.talos-timeline-item--active": "active()", "class.talos-timeline-item--last": "isLast()", "class.talos-timeline-item--left": "position() === \"left\"", "class.talos-timeline-item--right": "position() === \"right\"", "class.talos-timeline-item--expanded": "isExpanded()" }, classAttribute: "talos-timeline-item" }, queries: [{ propertyName: "customDot", first: true, predicate: TalosTimelineDotDirective, descendants: true }, { propertyName: "customTitle", first: true, predicate: TalosTimelineTitleDirective, descendants: true }, { propertyName: "customTime", first: true, predicate: TalosTimelineTimeDirective, descendants: true }, { propertyName: "customContent", first: true, predicate: TalosTimelineContentDirective, descendants: true }, { propertyName: "customExtra", first: true, predicate: TalosTimelineExtraDirective, descendants: true }], ngImport: i0, template: "<!-- Left / Opposite Slot (Used for Timestamps/Actor in Alternating or Two-Sided mode) -->\n<div class=\"talos-timeline-item__opposite\" aria-hidden=\"true\">\n @if (customTime?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customTime!.templateRef!\" />\n } @else if (timestamp() || relativeTime()) {\n <div class=\"talos-timeline-item__time-stamp\">\n @if (relativeTime()) {\n <span class=\"talos-timeline-item__relative-time\">{{ relativeTime() }}</span>\n }\n @if (timestamp()) {\n <span class=\"talos-timeline-item__absolute-time\">\n @if (isDateObject(timestamp())) {\n {{ timestamp() | date: 'medium' }}\n } @else {\n {{ timestamp() }}\n }\n </span>\n }\n </div>\n }\n</div>\n\n<!-- Separator Column: Connector Track & Dot Marker -->\n<div class=\"talos-timeline-item__separator\">\n <div\n class=\"talos-timeline-item__connector talos-timeline-item__connector--top\"\n [class.talos-timeline-item__connector--dashed]=\"lineStyle() === 'dashed'\"\n [class.talos-timeline-item__connector--dotted]=\"lineStyle() === 'dotted'\"\n ></div>\n\n <div\n class=\"talos-timeline-item__dot\"\n [class.talos-timeline-item__dot--solid]=\"dotVariant() === 'solid'\"\n [class.talos-timeline-item__dot--subtle]=\"dotVariant() === 'subtle'\"\n [class.talos-timeline-item__dot--outline]=\"dotVariant() === 'outline'\"\n [class.talos-timeline-item__dot--pure-dot]=\"dotVariant() === 'dot'\"\n [class.talos-timeline-item__dot--xs]=\"dotSize() === 'xs'\"\n [class.talos-timeline-item__dot--sm]=\"dotSize() === 'sm'\"\n [class.talos-timeline-item__dot--md]=\"dotSize() === 'md'\"\n [class.talos-timeline-item__dot--lg]=\"dotSize() === 'lg'\"\n [class.talos-timeline-item__dot--loading]=\"loading()\"\n [style.background-color]=\"dotColor()\"\n [style.border-color]=\"dotColor()\"\n >\n @if (customDot?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customDot!.templateRef!\" />\n } @else if (effectiveIcon()) {\n <ng-container *ngComponentOutlet=\"effectiveIcon()!\" />\n }\n </div>\n\n <div\n class=\"talos-timeline-item__connector talos-timeline-item__connector--bottom\"\n [class.talos-timeline-item__connector--dashed]=\"lineStyle() === 'dashed'\"\n [class.talos-timeline-item__connector--dotted]=\"lineStyle() === 'dotted'\"\n ></div>\n</div>\n\n<!-- Main Body / Content Area -->\n<div class=\"talos-timeline-item__body\" (click)=\"onItemClicked()\">\n <div class=\"talos-timeline-item__header\">\n <div class=\"talos-timeline-item__title-group\">\n <!-- Projected or Input Title -->\n @if (customTitle?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customTitle!.templateRef!\" />\n } @else if (title()) {\n <h4 class=\"talos-timeline-item__title\">{{ title() }}</h4>\n }\n\n <!-- Status Indicator Pill -->\n @if (status() && status() !== 'neutral') {\n <span class=\"talos-timeline-item__status-badge talos-timeline-item__status-badge--{{ status() }}\">\n {{ status() }}\n </span>\n }\n </div>\n\n <!-- Header Right / Metadata (Timestamp in Left Align mode) -->\n <div class=\"talos-timeline-item__header-meta\">\n @if (relativeTime()) {\n <span class=\"talos-timeline-item__header-time\">{{ relativeTime() }}</span>\n } @else if (timestamp()) {\n <span class=\"talos-timeline-item__header-time\">\n @if (isDateObject(timestamp())) {\n {{ timestamp() | date: 'short' }}\n } @else {\n {{ timestamp() }}\n }\n </span>\n }\n\n @if (hasExpandableDetails()) {\n <button\n type=\"button\"\n class=\"talos-timeline-item__expand-btn\"\n [attr.aria-expanded]=\"isExpanded()\"\n aria-label=\"Toggle audit details\"\n (click)=\"toggleAccordion(); $event.stopPropagation()\"\n >\n @if (isExpanded()) {\n <svg lucideChevronUp [size]=\"14\"></svg>\n } @else {\n <svg lucideChevronDown [size]=\"14\"></svg>\n }\n </button>\n }\n </div>\n </div>\n\n <!-- Actor Info for Audit Logs -->\n @if (actor(); as currentActor) {\n <div class=\"talos-timeline-item__actor\">\n <div class=\"talos-timeline-item__actor-avatar\">\n @if (currentActor.avatar) {\n <img [src]=\"currentActor.avatar\" [alt]=\"currentActor.name\" />\n } @else {\n <svg lucideUser [size]=\"12\"></svg>\n }\n </div>\n <div class=\"talos-timeline-item__actor-details\">\n <span class=\"talos-timeline-item__actor-name\">{{ currentActor.name }}</span>\n @if (currentActor.role) {\n <span class=\"talos-timeline-item__actor-role\">{{ currentActor.role }}</span>\n }\n @if (currentActor.ip) {\n <span class=\"talos-timeline-item__actor-ip\">({{ currentActor.ip }})</span>\n }\n </div>\n </div>\n }\n\n <!-- Description / Content Area -->\n <div class=\"talos-timeline-item__content\">\n @if (customContent?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customContent!.templateRef!\" />\n } @else if (description()) {\n <p class=\"talos-timeline-item__description\">{{ description() }}</p>\n }\n <ng-content></ng-content>\n </div>\n\n <!-- Tags Pill Row -->\n @if (tags() && tags()!.length > 0) {\n <div class=\"talos-timeline-item__tags\">\n @for (tag of tags()!; track tag) {\n <span class=\"talos-timeline-item__tag\">{{ tag }}</span>\n }\n </div>\n }\n\n <!-- Audit Change Diffs (Expanded / Default) -->\n @if (diffs() && diffs()!.length > 0 && isExpanded()) {\n <div class=\"talos-timeline-item__diffs-table-wrapper\">\n <table class=\"talos-timeline-item__diffs-table\">\n <thead>\n <tr>\n <th>Field</th>\n <th>Previous Value</th>\n <th>New Value</th>\n </tr>\n </thead>\n <tbody>\n @for (diff of diffs()!; track diff.field) {\n <tr class=\"talos-timeline-item__diff-row talos-timeline-item__diff-row--{{ diff.type || 'modified' }}\">\n <td class=\"talos-timeline-item__diff-field\">{{ diff.field }}</td>\n <td class=\"talos-timeline-item__diff-old\">\n <code>{{ formatJsonValue(diff.previousValue) }}</code>\n </td>\n <td class=\"talos-timeline-item__diff-new\">\n <code>{{ formatJsonValue(diff.newValue) }}</code>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n\n <!-- Expandable JSON / Metadata -->\n @if (metadata() && isExpanded()) {\n <div class=\"talos-timeline-item__metadata-card\">\n <div class=\"talos-timeline-item__metadata-header\">Metadata & Payload</div>\n <div class=\"talos-timeline-item__metadata-grid\">\n @for (entry of metadata()! | keyvalue; track entry.key) {\n <div class=\"talos-timeline-item__meta-item\">\n <span class=\"talos-timeline-item__meta-key\">{{ entry.key }}:</span>\n <span class=\"talos-timeline-item__meta-val\"><code>{{ formatJsonValue(entry.value) }}</code></span>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Extra Slot Projection -->\n @if (customExtra?.templateRef) {\n <div class=\"talos-timeline-item__extra\">\n <ng-container [ngTemplateOutlet]=\"customExtra!.templateRef!\" />\n </div>\n }\n</div>\n", styles: [":host{display:flex;position:relative;min-height:4.5rem;box-sizing:border-box;--timeline-line-color: var(--talos-border-color, #e2e8f0);--timeline-line-width: 2px;--timeline-dot-size: 1.5rem;--timeline-dot-color: var(--talos-text-muted, #64748b);--timeline-dot-bg: var(--talos-card-bg, #ffffff);--timeline-dot-border: var(--talos-border-color, #cbd5e1);--timeline-title-color: var(--talos-text-color, #0f172a);--timeline-desc-color: var(--talos-text-muted, #475569);--timeline-time-color: var(--talos-text-muted, #64748b)}:host(.talos-timeline-item--primary){--timeline-dot-color: var(--talos-primary-color, #2563eb);--timeline-dot-border: var(--talos-primary-color, #2563eb);--timeline-dot-bg: var(--talos-primary-color, #2563eb)}:host(.talos-timeline-item--secondary){--timeline-dot-color: #6366f1;--timeline-dot-border: #6366f1;--timeline-dot-bg: #6366f1}:host(.talos-timeline-item--success){--timeline-dot-color: var(--talos-success-color, #16a34a);--timeline-dot-border: var(--talos-success-color, #16a34a);--timeline-dot-bg: var(--talos-success-color, #16a34a)}:host(.talos-timeline-item--warning){--timeline-dot-color: var(--talos-warning-color, #d97706);--timeline-dot-border: var(--talos-warning-color, #d97706);--timeline-dot-bg: var(--talos-warning-color, #d97706)}:host(.talos-timeline-item--error){--timeline-dot-color: var(--talos-error-color, #ef4444);--timeline-dot-border: var(--talos-error-color, #ef4444);--timeline-dot-bg: var(--talos-error-color, #ef4444)}:host(.talos-timeline-item--info){--timeline-dot-color: #0284c7;--timeline-dot-border: #0284c7;--timeline-dot-bg: #0284c7}:host(.talos-timeline-item--pending),:host(.talos-timeline-item--in-progress){--timeline-dot-color: #0ea5e9;--timeline-dot-border: #0ea5e9;--timeline-dot-bg: #0ea5e9}.talos-timeline-item__opposite{display:none;flex:1;padding:0 1.25rem 1rem 0;text-align:right;box-sizing:border-box}.talos-timeline-item__opposite .talos-timeline-item__time-stamp{display:flex;flex-direction:column;gap:.125rem}.talos-timeline-item__opposite .talos-timeline-item__relative-time{font-size:.8125rem;font-weight:600;color:var(--timeline-title-color)}.talos-timeline-item__opposite .talos-timeline-item__absolute-time{font-size:.75rem;color:var(--timeline-time-color)}.talos-timeline-item__separator{display:flex;flex-direction:column;align-items:center;position:relative;min-width:2rem;margin:0 .75rem 0 0}.talos-timeline-item__connector{width:var(--timeline-line-width);background-color:var(--timeline-line-color);flex-grow:1}.talos-timeline-item__connector--top{height:.5rem;flex-grow:0}.talos-timeline-item__connector--dashed{background:none;border-left:var(--timeline-line-width) dashed var(--timeline-line-color)}.talos-timeline-item__connector--dotted{background:none;border-left:var(--timeline-line-width) dotted var(--timeline-line-color)}:host(:first-child) .talos-timeline-item__connector--top{visibility:hidden}:host(.talos-timeline-item--last) .talos-timeline-item__connector--bottom{visibility:hidden}.talos-timeline-item__dot{display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;box-sizing:border-box;flex-shrink:0;z-index:1;line-height:0;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff)}.talos-timeline-item__dot>*{display:inline-flex;align-items:center;justify-content:center;line-height:0;width:auto;height:auto}.talos-timeline-item__dot svg{display:block;stroke-width:2.25;overflow:visible}.talos-timeline-item__dot--xs{width:.625rem;height:.625rem;min-width:.625rem;min-height:.625rem}.talos-timeline-item__dot--sm{width:1.375rem;height:1.375rem;min-width:1.375rem;min-height:1.375rem}.talos-timeline-item__dot--sm svg,.talos-timeline-item__dot--sm>*{width:.6875rem!important;height:.6875rem!important;max-width:.6875rem!important;max-height:.6875rem!important}.talos-timeline-item__dot--md{width:1.875rem;height:1.875rem;min-width:1.875rem;min-height:1.875rem}.talos-timeline-item__dot--md svg,.talos-timeline-item__dot--md>*{width:.8125rem!important;height:.8125rem!important;max-width:.8125rem!important;max-height:.8125rem!important}.talos-timeline-item__dot--lg{width:2.375rem;height:2.375rem;min-width:2.375rem;min-height:2.375rem}.talos-timeline-item__dot--lg svg,.talos-timeline-item__dot--lg>*{width:1rem!important;height:1rem!important;max-width:1rem!important;max-height:1rem!important}.talos-timeline-item__dot--solid{background-color:var(--timeline-dot-bg);color:#fff;border:1px solid var(--timeline-dot-border)}.talos-timeline-item__dot--subtle{background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--timeline-dot-color);border:1.5px solid var(--timeline-dot-border)}.talos-timeline-item__dot--outline{background-color:var(--talos-card-bg, #ffffff);color:var(--timeline-dot-color);border:2px solid var(--timeline-dot-border)}.talos-timeline-item__dot--pure-dot{background-color:var(--timeline-dot-bg);border:2px solid var(--talos-card-bg, #ffffff);width:.75rem;height:.75rem;min-width:.75rem;min-height:.75rem}.talos-timeline-item__dot--loading{animation:talosTimelineSpin 1s linear infinite}:host(.talos-timeline-item--loading) .talos-timeline-item__dot{box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff),0 0 0 6px #2563eb40;animation:talosTimelinePulse 2s cubic-bezier(.4,0,.6,1) infinite}.talos-timeline-item__body{flex:1;padding-bottom:1.5rem;min-width:0}.talos-timeline-item__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.25rem}.talos-timeline-item__title-group{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.talos-timeline-item__title{margin:0;font-size:.9375rem;font-weight:600;color:var(--timeline-title-color);line-height:1.4}.talos-timeline-item__status-badge{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:9999px;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--talos-text-muted, #64748b);border:1px solid var(--talos-border-color, #e2e8f0)}.talos-timeline-item__status-badge--primary{background-color:#2563eb1a;color:#2563eb;border-color:#2563eb33}.talos-timeline-item__status-badge--success,.talos-timeline-item__status-badge--completed{background-color:#16a34a1a;color:#16a34a;border-color:#16a34a33}.talos-timeline-item__status-badge--warning{background-color:#d977061a;color:#d97706;border-color:#d9770633}.talos-timeline-item__status-badge--error,.talos-timeline-item__status-badge--cancelled{background-color:#ef44441a;color:#ef4444;border-color:#ef444433}.talos-timeline-item__status-badge--info,.talos-timeline-item__status-badge--pending,.talos-timeline-item__status-badge--in-progress{background-color:#0ea5e91a;color:#0284c7;border-color:#0ea5e933}.talos-timeline-item__header-meta{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.talos-timeline-item__header-time{font-size:.75rem;color:var(--timeline-time-color);white-space:nowrap}.talos-timeline-item__expand-btn{display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid var(--talos-border-color, #e2e8f0);border-radius:.25rem;padding:.1875rem;color:var(--talos-text-muted, #64748b);cursor:pointer;transition:all .15s ease}.talos-timeline-item__expand-btn:hover{background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--talos-text-color, #0f172a);border-color:var(--talos-border-hover, #cbd5e1)}.talos-timeline-item__actor{display:flex;align-items:center;gap:.5rem;margin-top:.25rem;margin-bottom:.375rem}.talos-timeline-item__actor-avatar{width:1.25rem;height:1.25rem;border-radius:9999px;background-color:var(--talos-bg-subtle, #e2e8f0);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--talos-text-muted, #64748b)}.talos-timeline-item__actor-avatar img{width:100%;height:100%;object-fit:cover}.talos-timeline-item__actor-details{display:flex;align-items:center;gap:.375rem;font-size:.75rem}.talos-timeline-item__actor-name{font-weight:600;color:var(--timeline-title-color)}.talos-timeline-item__actor-role{color:var(--talos-text-muted, #64748b);background-color:var(--talos-bg-subtle, #f1f5f9);padding:.0625rem .375rem;border-radius:.25rem;font-size:.6875rem}.talos-timeline-item__actor-ip{color:var(--talos-text-muted, #94a3b8);font-family:monospace;font-size:.6875rem}.talos-timeline-item__description{margin:.25rem 0 .5rem;font-size:.8125rem;line-height:1.5;color:var(--timeline-desc-color)}.talos-timeline-item__tags{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.375rem}.talos-timeline-item__tag{display:inline-flex;align-items:center;padding:.125rem .4375rem;font-size:.6875rem;font-weight:500;border-radius:.25rem;background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--talos-text-muted, #475569);border:1px solid var(--talos-border-color, #e2e8f0)}.talos-timeline-item__diffs-table-wrapper{margin-top:.75rem;border-radius:var(--talos-border-radius, .375rem);border:1px solid var(--talos-border-color, #e2e8f0);background-color:var(--talos-card-bg, #ffffff);overflow-x:auto}.talos-timeline-item__diffs-table{width:100%;border-collapse:collapse;font-size:.75rem;text-align:left}.talos-timeline-item__diffs-table th{padding:.375rem .625rem;font-weight:600;color:var(--talos-text-muted, #64748b);background-color:var(--talos-bg-subtle, #f8fafc);border-bottom:1px solid var(--talos-border-color, #e2e8f0)}.talos-timeline-item__diffs-table td{padding:.375rem .625rem;border-bottom:1px solid var(--talos-border-color, #f1f5f9);vertical-align:top}.talos-timeline-item__diffs-table tr:last-child td{border-bottom:none}.talos-timeline-item__diffs-table code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;padding:.0625rem .25rem;border-radius:.25rem;background-color:var(--talos-bg-subtle, #f1f5f9)}.talos-timeline-item__diff-row--modified .talos-timeline-item__diff-old code{color:#b91c1c;background-color:#ef44441a;text-decoration:line-through}.talos-timeline-item__diff-row--modified .talos-timeline-item__diff-new code,.talos-timeline-item__diff-row--added .talos-timeline-item__diff-new code{color:#15803d;background-color:#22c55e1a}.talos-timeline-item__diff-row--removed .talos-timeline-item__diff-old code{color:#b91c1c;background-color:#ef44441a;text-decoration:line-through}.talos-timeline-item__metadata-card{margin-top:.75rem;padding:.625rem .75rem;border-radius:var(--talos-border-radius, .375rem);border:1px solid var(--talos-border-color, #e2e8f0);background-color:var(--talos-bg-subtle, #f8fafc);font-size:.75rem}.talos-timeline-item__metadata-header{font-weight:600;color:var(--talos-text-muted, #64748b);margin-bottom:.375rem;font-size:.6875rem;text-transform:uppercase;letter-spacing:.04em}.talos-timeline-item__metadata-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.375rem .75rem}.talos-timeline-item__meta-item{display:flex;align-items:center;gap:.375rem}.talos-timeline-item__meta-key{font-weight:500;color:var(--talos-text-muted, #64748b)}.talos-timeline-item__meta-val code{font-family:monospace;font-size:.75rem;color:var(--talos-text-color, #0f172a)}.talos-timeline-item__extra{margin-top:.75rem}@keyframes talosTimelineSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes talosTimelinePulse{0%,to{box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff),0 0 0 6px #2563eb40}50%{box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff),0 0 0 10px #2563eb00}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: LucideChevronDown, selector: "svg[lucideChevronDown]" }, { kind: "component", type: LucideChevronUp, selector: "svg[lucideChevronUp]" }, { kind: "component", type: LucideUser, selector: "svg[lucideUser]" }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }] });
2742
+ }
2743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineItemComponent, decorators: [{
2744
+ type: Component,
2745
+ args: [{ selector: 'talos-timeline-item, [talosTimelineItem]', imports: [
2746
+ DatePipe,
2747
+ KeyValuePipe,
2748
+ NgTemplateOutlet,
2749
+ NgComponentOutlet,
2750
+ LucideChevronDown,
2751
+ LucideChevronUp,
2752
+ LucideUser
2753
+ ], host: {
2754
+ 'class': 'talos-timeline-item',
2755
+ '[class.talos-timeline-item--primary]': 'isStatus("primary")',
2756
+ '[class.talos-timeline-item--secondary]': 'isStatus("secondary")',
2757
+ '[class.talos-timeline-item--success]': 'isStatus("success") || isStatus("completed")',
2758
+ '[class.talos-timeline-item--warning]': 'isStatus("warning")',
2759
+ '[class.talos-timeline-item--error]': 'isStatus("error") || isStatus("cancelled")',
2760
+ '[class.talos-timeline-item--info]': 'isStatus("info")',
2761
+ '[class.talos-timeline-item--neutral]': 'isStatus("neutral")',
2762
+ '[class.talos-timeline-item--pending]': 'isStatus("pending")',
2763
+ '[class.talos-timeline-item--in-progress]': 'isStatus("in-progress")',
2764
+ '[class.talos-timeline-item--loading]': 'loading()',
2765
+ '[class.talos-timeline-item--active]': 'active()',
2766
+ '[class.talos-timeline-item--last]': 'isLast()',
2767
+ '[class.talos-timeline-item--left]': 'position() === "left"',
2768
+ '[class.talos-timeline-item--right]': 'position() === "right"',
2769
+ '[class.talos-timeline-item--expanded]': 'isExpanded()'
2770
+ }, template: "<!-- Left / Opposite Slot (Used for Timestamps/Actor in Alternating or Two-Sided mode) -->\n<div class=\"talos-timeline-item__opposite\" aria-hidden=\"true\">\n @if (customTime?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customTime!.templateRef!\" />\n } @else if (timestamp() || relativeTime()) {\n <div class=\"talos-timeline-item__time-stamp\">\n @if (relativeTime()) {\n <span class=\"talos-timeline-item__relative-time\">{{ relativeTime() }}</span>\n }\n @if (timestamp()) {\n <span class=\"talos-timeline-item__absolute-time\">\n @if (isDateObject(timestamp())) {\n {{ timestamp() | date: 'medium' }}\n } @else {\n {{ timestamp() }}\n }\n </span>\n }\n </div>\n }\n</div>\n\n<!-- Separator Column: Connector Track & Dot Marker -->\n<div class=\"talos-timeline-item__separator\">\n <div\n class=\"talos-timeline-item__connector talos-timeline-item__connector--top\"\n [class.talos-timeline-item__connector--dashed]=\"lineStyle() === 'dashed'\"\n [class.talos-timeline-item__connector--dotted]=\"lineStyle() === 'dotted'\"\n ></div>\n\n <div\n class=\"talos-timeline-item__dot\"\n [class.talos-timeline-item__dot--solid]=\"dotVariant() === 'solid'\"\n [class.talos-timeline-item__dot--subtle]=\"dotVariant() === 'subtle'\"\n [class.talos-timeline-item__dot--outline]=\"dotVariant() === 'outline'\"\n [class.talos-timeline-item__dot--pure-dot]=\"dotVariant() === 'dot'\"\n [class.talos-timeline-item__dot--xs]=\"dotSize() === 'xs'\"\n [class.talos-timeline-item__dot--sm]=\"dotSize() === 'sm'\"\n [class.talos-timeline-item__dot--md]=\"dotSize() === 'md'\"\n [class.talos-timeline-item__dot--lg]=\"dotSize() === 'lg'\"\n [class.talos-timeline-item__dot--loading]=\"loading()\"\n [style.background-color]=\"dotColor()\"\n [style.border-color]=\"dotColor()\"\n >\n @if (customDot?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customDot!.templateRef!\" />\n } @else if (effectiveIcon()) {\n <ng-container *ngComponentOutlet=\"effectiveIcon()!\" />\n }\n </div>\n\n <div\n class=\"talos-timeline-item__connector talos-timeline-item__connector--bottom\"\n [class.talos-timeline-item__connector--dashed]=\"lineStyle() === 'dashed'\"\n [class.talos-timeline-item__connector--dotted]=\"lineStyle() === 'dotted'\"\n ></div>\n</div>\n\n<!-- Main Body / Content Area -->\n<div class=\"talos-timeline-item__body\" (click)=\"onItemClicked()\">\n <div class=\"talos-timeline-item__header\">\n <div class=\"talos-timeline-item__title-group\">\n <!-- Projected or Input Title -->\n @if (customTitle?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customTitle!.templateRef!\" />\n } @else if (title()) {\n <h4 class=\"talos-timeline-item__title\">{{ title() }}</h4>\n }\n\n <!-- Status Indicator Pill -->\n @if (status() && status() !== 'neutral') {\n <span class=\"talos-timeline-item__status-badge talos-timeline-item__status-badge--{{ status() }}\">\n {{ status() }}\n </span>\n }\n </div>\n\n <!-- Header Right / Metadata (Timestamp in Left Align mode) -->\n <div class=\"talos-timeline-item__header-meta\">\n @if (relativeTime()) {\n <span class=\"talos-timeline-item__header-time\">{{ relativeTime() }}</span>\n } @else if (timestamp()) {\n <span class=\"talos-timeline-item__header-time\">\n @if (isDateObject(timestamp())) {\n {{ timestamp() | date: 'short' }}\n } @else {\n {{ timestamp() }}\n }\n </span>\n }\n\n @if (hasExpandableDetails()) {\n <button\n type=\"button\"\n class=\"talos-timeline-item__expand-btn\"\n [attr.aria-expanded]=\"isExpanded()\"\n aria-label=\"Toggle audit details\"\n (click)=\"toggleAccordion(); $event.stopPropagation()\"\n >\n @if (isExpanded()) {\n <svg lucideChevronUp [size]=\"14\"></svg>\n } @else {\n <svg lucideChevronDown [size]=\"14\"></svg>\n }\n </button>\n }\n </div>\n </div>\n\n <!-- Actor Info for Audit Logs -->\n @if (actor(); as currentActor) {\n <div class=\"talos-timeline-item__actor\">\n <div class=\"talos-timeline-item__actor-avatar\">\n @if (currentActor.avatar) {\n <img [src]=\"currentActor.avatar\" [alt]=\"currentActor.name\" />\n } @else {\n <svg lucideUser [size]=\"12\"></svg>\n }\n </div>\n <div class=\"talos-timeline-item__actor-details\">\n <span class=\"talos-timeline-item__actor-name\">{{ currentActor.name }}</span>\n @if (currentActor.role) {\n <span class=\"talos-timeline-item__actor-role\">{{ currentActor.role }}</span>\n }\n @if (currentActor.ip) {\n <span class=\"talos-timeline-item__actor-ip\">({{ currentActor.ip }})</span>\n }\n </div>\n </div>\n }\n\n <!-- Description / Content Area -->\n <div class=\"talos-timeline-item__content\">\n @if (customContent?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"customContent!.templateRef!\" />\n } @else if (description()) {\n <p class=\"talos-timeline-item__description\">{{ description() }}</p>\n }\n <ng-content></ng-content>\n </div>\n\n <!-- Tags Pill Row -->\n @if (tags() && tags()!.length > 0) {\n <div class=\"talos-timeline-item__tags\">\n @for (tag of tags()!; track tag) {\n <span class=\"talos-timeline-item__tag\">{{ tag }}</span>\n }\n </div>\n }\n\n <!-- Audit Change Diffs (Expanded / Default) -->\n @if (diffs() && diffs()!.length > 0 && isExpanded()) {\n <div class=\"talos-timeline-item__diffs-table-wrapper\">\n <table class=\"talos-timeline-item__diffs-table\">\n <thead>\n <tr>\n <th>Field</th>\n <th>Previous Value</th>\n <th>New Value</th>\n </tr>\n </thead>\n <tbody>\n @for (diff of diffs()!; track diff.field) {\n <tr class=\"talos-timeline-item__diff-row talos-timeline-item__diff-row--{{ diff.type || 'modified' }}\">\n <td class=\"talos-timeline-item__diff-field\">{{ diff.field }}</td>\n <td class=\"talos-timeline-item__diff-old\">\n <code>{{ formatJsonValue(diff.previousValue) }}</code>\n </td>\n <td class=\"talos-timeline-item__diff-new\">\n <code>{{ formatJsonValue(diff.newValue) }}</code>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n\n <!-- Expandable JSON / Metadata -->\n @if (metadata() && isExpanded()) {\n <div class=\"talos-timeline-item__metadata-card\">\n <div class=\"talos-timeline-item__metadata-header\">Metadata & Payload</div>\n <div class=\"talos-timeline-item__metadata-grid\">\n @for (entry of metadata()! | keyvalue; track entry.key) {\n <div class=\"talos-timeline-item__meta-item\">\n <span class=\"talos-timeline-item__meta-key\">{{ entry.key }}:</span>\n <span class=\"talos-timeline-item__meta-val\"><code>{{ formatJsonValue(entry.value) }}</code></span>\n </div>\n }\n </div>\n </div>\n }\n\n <!-- Extra Slot Projection -->\n @if (customExtra?.templateRef) {\n <div class=\"talos-timeline-item__extra\">\n <ng-container [ngTemplateOutlet]=\"customExtra!.templateRef!\" />\n </div>\n }\n</div>\n", styles: [":host{display:flex;position:relative;min-height:4.5rem;box-sizing:border-box;--timeline-line-color: var(--talos-border-color, #e2e8f0);--timeline-line-width: 2px;--timeline-dot-size: 1.5rem;--timeline-dot-color: var(--talos-text-muted, #64748b);--timeline-dot-bg: var(--talos-card-bg, #ffffff);--timeline-dot-border: var(--talos-border-color, #cbd5e1);--timeline-title-color: var(--talos-text-color, #0f172a);--timeline-desc-color: var(--talos-text-muted, #475569);--timeline-time-color: var(--talos-text-muted, #64748b)}:host(.talos-timeline-item--primary){--timeline-dot-color: var(--talos-primary-color, #2563eb);--timeline-dot-border: var(--talos-primary-color, #2563eb);--timeline-dot-bg: var(--talos-primary-color, #2563eb)}:host(.talos-timeline-item--secondary){--timeline-dot-color: #6366f1;--timeline-dot-border: #6366f1;--timeline-dot-bg: #6366f1}:host(.talos-timeline-item--success){--timeline-dot-color: var(--talos-success-color, #16a34a);--timeline-dot-border: var(--talos-success-color, #16a34a);--timeline-dot-bg: var(--talos-success-color, #16a34a)}:host(.talos-timeline-item--warning){--timeline-dot-color: var(--talos-warning-color, #d97706);--timeline-dot-border: var(--talos-warning-color, #d97706);--timeline-dot-bg: var(--talos-warning-color, #d97706)}:host(.talos-timeline-item--error){--timeline-dot-color: var(--talos-error-color, #ef4444);--timeline-dot-border: var(--talos-error-color, #ef4444);--timeline-dot-bg: var(--talos-error-color, #ef4444)}:host(.talos-timeline-item--info){--timeline-dot-color: #0284c7;--timeline-dot-border: #0284c7;--timeline-dot-bg: #0284c7}:host(.talos-timeline-item--pending),:host(.talos-timeline-item--in-progress){--timeline-dot-color: #0ea5e9;--timeline-dot-border: #0ea5e9;--timeline-dot-bg: #0ea5e9}.talos-timeline-item__opposite{display:none;flex:1;padding:0 1.25rem 1rem 0;text-align:right;box-sizing:border-box}.talos-timeline-item__opposite .talos-timeline-item__time-stamp{display:flex;flex-direction:column;gap:.125rem}.talos-timeline-item__opposite .talos-timeline-item__relative-time{font-size:.8125rem;font-weight:600;color:var(--timeline-title-color)}.talos-timeline-item__opposite .talos-timeline-item__absolute-time{font-size:.75rem;color:var(--timeline-time-color)}.talos-timeline-item__separator{display:flex;flex-direction:column;align-items:center;position:relative;min-width:2rem;margin:0 .75rem 0 0}.talos-timeline-item__connector{width:var(--timeline-line-width);background-color:var(--timeline-line-color);flex-grow:1}.talos-timeline-item__connector--top{height:.5rem;flex-grow:0}.talos-timeline-item__connector--dashed{background:none;border-left:var(--timeline-line-width) dashed var(--timeline-line-color)}.talos-timeline-item__connector--dotted{background:none;border-left:var(--timeline-line-width) dotted var(--timeline-line-color)}:host(:first-child) .talos-timeline-item__connector--top{visibility:hidden}:host(.talos-timeline-item--last) .talos-timeline-item__connector--bottom{visibility:hidden}.talos-timeline-item__dot{display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;box-sizing:border-box;flex-shrink:0;z-index:1;line-height:0;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff)}.talos-timeline-item__dot>*{display:inline-flex;align-items:center;justify-content:center;line-height:0;width:auto;height:auto}.talos-timeline-item__dot svg{display:block;stroke-width:2.25;overflow:visible}.talos-timeline-item__dot--xs{width:.625rem;height:.625rem;min-width:.625rem;min-height:.625rem}.talos-timeline-item__dot--sm{width:1.375rem;height:1.375rem;min-width:1.375rem;min-height:1.375rem}.talos-timeline-item__dot--sm svg,.talos-timeline-item__dot--sm>*{width:.6875rem!important;height:.6875rem!important;max-width:.6875rem!important;max-height:.6875rem!important}.talos-timeline-item__dot--md{width:1.875rem;height:1.875rem;min-width:1.875rem;min-height:1.875rem}.talos-timeline-item__dot--md svg,.talos-timeline-item__dot--md>*{width:.8125rem!important;height:.8125rem!important;max-width:.8125rem!important;max-height:.8125rem!important}.talos-timeline-item__dot--lg{width:2.375rem;height:2.375rem;min-width:2.375rem;min-height:2.375rem}.talos-timeline-item__dot--lg svg,.talos-timeline-item__dot--lg>*{width:1rem!important;height:1rem!important;max-width:1rem!important;max-height:1rem!important}.talos-timeline-item__dot--solid{background-color:var(--timeline-dot-bg);color:#fff;border:1px solid var(--timeline-dot-border)}.talos-timeline-item__dot--subtle{background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--timeline-dot-color);border:1.5px solid var(--timeline-dot-border)}.talos-timeline-item__dot--outline{background-color:var(--talos-card-bg, #ffffff);color:var(--timeline-dot-color);border:2px solid var(--timeline-dot-border)}.talos-timeline-item__dot--pure-dot{background-color:var(--timeline-dot-bg);border:2px solid var(--talos-card-bg, #ffffff);width:.75rem;height:.75rem;min-width:.75rem;min-height:.75rem}.talos-timeline-item__dot--loading{animation:talosTimelineSpin 1s linear infinite}:host(.talos-timeline-item--loading) .talos-timeline-item__dot{box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff),0 0 0 6px #2563eb40;animation:talosTimelinePulse 2s cubic-bezier(.4,0,.6,1) infinite}.talos-timeline-item__body{flex:1;padding-bottom:1.5rem;min-width:0}.talos-timeline-item__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.25rem}.talos-timeline-item__title-group{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.talos-timeline-item__title{margin:0;font-size:.9375rem;font-weight:600;color:var(--timeline-title-color);line-height:1.4}.talos-timeline-item__status-badge{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:9999px;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--talos-text-muted, #64748b);border:1px solid var(--talos-border-color, #e2e8f0)}.talos-timeline-item__status-badge--primary{background-color:#2563eb1a;color:#2563eb;border-color:#2563eb33}.talos-timeline-item__status-badge--success,.talos-timeline-item__status-badge--completed{background-color:#16a34a1a;color:#16a34a;border-color:#16a34a33}.talos-timeline-item__status-badge--warning{background-color:#d977061a;color:#d97706;border-color:#d9770633}.talos-timeline-item__status-badge--error,.talos-timeline-item__status-badge--cancelled{background-color:#ef44441a;color:#ef4444;border-color:#ef444433}.talos-timeline-item__status-badge--info,.talos-timeline-item__status-badge--pending,.talos-timeline-item__status-badge--in-progress{background-color:#0ea5e91a;color:#0284c7;border-color:#0ea5e933}.talos-timeline-item__header-meta{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.talos-timeline-item__header-time{font-size:.75rem;color:var(--timeline-time-color);white-space:nowrap}.talos-timeline-item__expand-btn{display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid var(--talos-border-color, #e2e8f0);border-radius:.25rem;padding:.1875rem;color:var(--talos-text-muted, #64748b);cursor:pointer;transition:all .15s ease}.talos-timeline-item__expand-btn:hover{background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--talos-text-color, #0f172a);border-color:var(--talos-border-hover, #cbd5e1)}.talos-timeline-item__actor{display:flex;align-items:center;gap:.5rem;margin-top:.25rem;margin-bottom:.375rem}.talos-timeline-item__actor-avatar{width:1.25rem;height:1.25rem;border-radius:9999px;background-color:var(--talos-bg-subtle, #e2e8f0);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--talos-text-muted, #64748b)}.talos-timeline-item__actor-avatar img{width:100%;height:100%;object-fit:cover}.talos-timeline-item__actor-details{display:flex;align-items:center;gap:.375rem;font-size:.75rem}.talos-timeline-item__actor-name{font-weight:600;color:var(--timeline-title-color)}.talos-timeline-item__actor-role{color:var(--talos-text-muted, #64748b);background-color:var(--talos-bg-subtle, #f1f5f9);padding:.0625rem .375rem;border-radius:.25rem;font-size:.6875rem}.talos-timeline-item__actor-ip{color:var(--talos-text-muted, #94a3b8);font-family:monospace;font-size:.6875rem}.talos-timeline-item__description{margin:.25rem 0 .5rem;font-size:.8125rem;line-height:1.5;color:var(--timeline-desc-color)}.talos-timeline-item__tags{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.375rem}.talos-timeline-item__tag{display:inline-flex;align-items:center;padding:.125rem .4375rem;font-size:.6875rem;font-weight:500;border-radius:.25rem;background-color:var(--talos-bg-subtle, #f1f5f9);color:var(--talos-text-muted, #475569);border:1px solid var(--talos-border-color, #e2e8f0)}.talos-timeline-item__diffs-table-wrapper{margin-top:.75rem;border-radius:var(--talos-border-radius, .375rem);border:1px solid var(--talos-border-color, #e2e8f0);background-color:var(--talos-card-bg, #ffffff);overflow-x:auto}.talos-timeline-item__diffs-table{width:100%;border-collapse:collapse;font-size:.75rem;text-align:left}.talos-timeline-item__diffs-table th{padding:.375rem .625rem;font-weight:600;color:var(--talos-text-muted, #64748b);background-color:var(--talos-bg-subtle, #f8fafc);border-bottom:1px solid var(--talos-border-color, #e2e8f0)}.talos-timeline-item__diffs-table td{padding:.375rem .625rem;border-bottom:1px solid var(--talos-border-color, #f1f5f9);vertical-align:top}.talos-timeline-item__diffs-table tr:last-child td{border-bottom:none}.talos-timeline-item__diffs-table code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;padding:.0625rem .25rem;border-radius:.25rem;background-color:var(--talos-bg-subtle, #f1f5f9)}.talos-timeline-item__diff-row--modified .talos-timeline-item__diff-old code{color:#b91c1c;background-color:#ef44441a;text-decoration:line-through}.talos-timeline-item__diff-row--modified .talos-timeline-item__diff-new code,.talos-timeline-item__diff-row--added .talos-timeline-item__diff-new code{color:#15803d;background-color:#22c55e1a}.talos-timeline-item__diff-row--removed .talos-timeline-item__diff-old code{color:#b91c1c;background-color:#ef44441a;text-decoration:line-through}.talos-timeline-item__metadata-card{margin-top:.75rem;padding:.625rem .75rem;border-radius:var(--talos-border-radius, .375rem);border:1px solid var(--talos-border-color, #e2e8f0);background-color:var(--talos-bg-subtle, #f8fafc);font-size:.75rem}.talos-timeline-item__metadata-header{font-weight:600;color:var(--talos-text-muted, #64748b);margin-bottom:.375rem;font-size:.6875rem;text-transform:uppercase;letter-spacing:.04em}.talos-timeline-item__metadata-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.375rem .75rem}.talos-timeline-item__meta-item{display:flex;align-items:center;gap:.375rem}.talos-timeline-item__meta-key{font-weight:500;color:var(--talos-text-muted, #64748b)}.talos-timeline-item__meta-val code{font-family:monospace;font-size:.75rem;color:var(--talos-text-color, #0f172a)}.talos-timeline-item__extra{margin-top:.75rem}@keyframes talosTimelineSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes talosTimelinePulse{0%,to{box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff),0 0 0 6px #2563eb40}50%{box-shadow:0 0 0 4px var(--talos-card-bg, #ffffff),0 0 0 10px #2563eb00}}\n"] }]
2771
+ }], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], dotVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "dotVariant", required: false }] }], dotSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "dotSize", required: false }] }], dotColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "dotColor", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], lineStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStyle", required: false }] }], timestamp: [{ type: i0.Input, args: [{ isSignal: true, alias: "timestamp", required: false }] }], relativeTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "relativeTime", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], actor: [{ type: i0.Input, args: [{ isSignal: true, alias: "actor", required: false }] }], tags: [{ type: i0.Input, args: [{ isSignal: true, alias: "tags", required: false }] }], diffs: [{ type: i0.Input, args: [{ isSignal: true, alias: "diffs", required: false }] }], metadata: [{ type: i0.Input, args: [{ isSignal: true, alias: "metadata", required: false }] }], expandable: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandable", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], isLast: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLast", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], toggleExpand: [{ type: i0.Output, args: ["toggleExpand"] }], customDot: [{
2772
+ type: ContentChild,
2773
+ args: [TalosTimelineDotDirective]
2774
+ }], customTitle: [{
2775
+ type: ContentChild,
2776
+ args: [TalosTimelineTitleDirective]
2777
+ }], customTime: [{
2778
+ type: ContentChild,
2779
+ args: [TalosTimelineTimeDirective]
2780
+ }], customContent: [{
2781
+ type: ContentChild,
2782
+ args: [TalosTimelineContentDirective]
2783
+ }], customExtra: [{
2784
+ type: ContentChild,
2785
+ args: [TalosTimelineExtraDirective]
2786
+ }] } });
2787
+
2788
+ class TalosTimelineComponent {
2789
+ // Inputs
2790
+ orientation = input('vertical', /* @ts-ignore */
2791
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
2792
+ align = input('left', /* @ts-ignore */
2793
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
2794
+ mode = input('standard', /* @ts-ignore */
2795
+ ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
2796
+ reverse = input(false, /* @ts-ignore */
2797
+ ...(ngDevMode ? [{ debugName: "reverse" }] : /* istanbul ignore next */ []));
2798
+ lineStyle = input('solid', /* @ts-ignore */
2799
+ ...(ngDevMode ? [{ debugName: "lineStyle" }] : /* istanbul ignore next */ []));
2800
+ items = input(null, /* @ts-ignore */
2801
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
2802
+ // Outputs
2803
+ itemClick = output();
2804
+ // Processed items for data-driven rendering
2805
+ processedItems = computed(() => {
2806
+ const raw = this.items();
2807
+ if (!raw || raw.length === 0)
2808
+ return [];
2809
+ const list = [...raw];
2810
+ if (this.reverse()) {
2811
+ list.reverse();
2812
+ }
2813
+ return list;
2814
+ }, /* @ts-ignore */
2815
+ ...(ngDevMode ? [{ debugName: "processedItems" }] : /* istanbul ignore next */ []));
2816
+ getItemPosition(index) {
2817
+ if (this.align() === 'alternate') {
2818
+ return index % 2 === 0 ? 'left' : 'right';
2819
+ }
2820
+ return this.align() === 'right' ? 'right' : 'left';
2821
+ }
2822
+ onDataDrivenItemClick(item) {
2823
+ this.itemClick.emit(item);
2824
+ }
2825
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2826
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosTimelineComponent, isStandalone: true, selector: "talos-timeline, [talosTimeline]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { attributes: { "role": "list" }, properties: { "class.talos-timeline--vertical": "orientation() === \"vertical\"", "class.talos-timeline--horizontal": "orientation() === \"horizontal\"", "class.talos-timeline--left": "align() === \"left\"", "class.talos-timeline--right": "align() === \"right\"", "class.talos-timeline--alternate": "align() === \"alternate\"", "class.talos-timeline--standard": "mode() === \"standard\"", "class.talos-timeline--dense": "mode() === \"dense\"", "class.talos-timeline--card": "mode() === \"card\"" }, classAttribute: "talos-timeline" }, ngImport: i0, template: "@if (items() && items()!.length > 0) {\n @for (item of processedItems(); track item.id || $index; let idx = $index; let isLast = $last) {\n <talos-timeline-item\n [title]=\"item.title\"\n [description]=\"item.description || null\"\n [timestamp]=\"item.timestamp || null\"\n [relativeTime]=\"item.relativeTime || null\"\n [status]=\"item.status || 'neutral'\"\n [dotVariant]=\"item.dotVariant || 'solid'\"\n [dotSize]=\"item.dotSize || 'md'\"\n [dotColor]=\"item.dotColor || null\"\n [icon]=\"item.icon || null\"\n [loading]=\"item.loading || false\"\n [active]=\"item.active || false\"\n [lineStyle]=\"item.lineStyle || lineStyle()\"\n [actor]=\"item.actor || null\"\n [tags]=\"item.tags || null\"\n [diffs]=\"item.diffs || null\"\n [metadata]=\"item.metadata || null\"\n [expanded]=\"item.expanded || false\"\n [expandable]=\"!!(item.diffs?.length || item.metadata)\"\n [position]=\"getItemPosition(idx)\"\n [isLast]=\"isLast\"\n (itemClick)=\"onDataDrivenItemClick(item)\"\n />\n }\n} @else {\n <ng-content></ng-content>\n}\n", styles: [":host{display:flex;box-sizing:border-box;width:100%}:host(.talos-timeline--vertical){flex-direction:column;position:relative}:host(.talos-timeline--horizontal){flex-direction:row;overflow-x:auto;padding-bottom:1rem}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item{flex-direction:column;min-height:auto;min-width:180px;flex:1}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__separator,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__separator{flex-direction:row;min-width:auto;height:2rem;margin:0;width:100%}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__connector,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__connector{height:var(--timeline-line-width, 2px);width:auto;flex-grow:1}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__connector--top,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__connector--top{width:1rem;flex-grow:0}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__body{padding-top:.75rem;padding-bottom:0;text-align:center}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__header,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__header{flex-direction:column;align-items:center;text-align:center}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__title-group,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__title-group{justify-content:center}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__actor,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__actor{justify-content:center}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item .talos-timeline-item__opposite,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item .talos-timeline-item__opposite{display:block}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right{flex-direction:row-reverse}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__opposite,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__opposite{text-align:left;padding:0 0 1rem 1.25rem}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__body,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__body{text-align:right}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__header,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__header{flex-direction:row-reverse}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__title-group,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__title-group{justify-content:flex-end}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__actor,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__actor{justify-content:flex-end}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__tags,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__tags{justify-content:flex-end}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__separator,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__separator{margin:0 0 0 .75rem}:host(.talos-timeline--right) ::ng-deep talos-timeline-item,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item{flex-direction:row-reverse}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__separator,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__separator{margin:0 0 0 .75rem}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__body{text-align:right}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__header,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__header{flex-direction:row-reverse}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__title-group,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__title-group{justify-content:flex-end}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__actor,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__actor{justify-content:flex-end}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__tags,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__tags{justify-content:flex-end}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item{min-height:2.75rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__body{padding-bottom:.75rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__title,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__title{font-size:.8125rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__description,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__description{font-size:.75rem;margin:.125rem 0 .25rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__separator,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__separator{min-width:1.5rem;margin-right:.5rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__dot,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__dot{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:.625rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__dot svg,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__dot svg{width:.625rem;height:.625rem}:host(.talos-timeline--card) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--card) ::ng-deep .talos-timeline-item .talos-timeline-item__body{padding:1rem 1.125rem;margin-bottom:1rem;background-color:var(--talos-card-bg, #ffffff);border:1px solid var(--talos-border-color, #e2e8f0);border-radius:var(--talos-border-radius, .5rem);box-shadow:0 1px 3px #0000000a,0 1px 2px -1px #0000000a;transition:all .2s ease}:host(.talos-timeline--card) ::ng-deep talos-timeline-item .talos-timeline-item__body:hover,:host(.talos-timeline--card) ::ng-deep .talos-timeline-item .talos-timeline-item__body:hover{border-color:var(--talos-border-hover, #cbd5e1);box-shadow:0 4px 6px -1px #0000000f,0 2px 4px -2px #0000000a}\n"], dependencies: [{ kind: "component", type: TalosTimelineItemComponent, selector: "talos-timeline-item, [talosTimelineItem]", inputs: ["status", "dotVariant", "dotSize", "dotColor", "icon", "loading", "active", "lineStyle", "timestamp", "relativeTime", "title", "description", "actor", "tags", "diffs", "metadata", "expandable", "expanded", "position", "isLast"], outputs: ["itemClick", "toggleExpand"] }] });
2827
+ }
2828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineComponent, decorators: [{
2829
+ type: Component,
2830
+ args: [{ selector: 'talos-timeline, [talosTimeline]', imports: [TalosTimelineItemComponent], host: {
2831
+ 'class': 'talos-timeline',
2832
+ '[class.talos-timeline--vertical]': 'orientation() === "vertical"',
2833
+ '[class.talos-timeline--horizontal]': 'orientation() === "horizontal"',
2834
+ '[class.talos-timeline--left]': 'align() === "left"',
2835
+ '[class.talos-timeline--right]': 'align() === "right"',
2836
+ '[class.talos-timeline--alternate]': 'align() === "alternate"',
2837
+ '[class.talos-timeline--standard]': 'mode() === "standard"',
2838
+ '[class.talos-timeline--dense]': 'mode() === "dense"',
2839
+ '[class.talos-timeline--card]': 'mode() === "card"',
2840
+ 'role': 'list'
2841
+ }, template: "@if (items() && items()!.length > 0) {\n @for (item of processedItems(); track item.id || $index; let idx = $index; let isLast = $last) {\n <talos-timeline-item\n [title]=\"item.title\"\n [description]=\"item.description || null\"\n [timestamp]=\"item.timestamp || null\"\n [relativeTime]=\"item.relativeTime || null\"\n [status]=\"item.status || 'neutral'\"\n [dotVariant]=\"item.dotVariant || 'solid'\"\n [dotSize]=\"item.dotSize || 'md'\"\n [dotColor]=\"item.dotColor || null\"\n [icon]=\"item.icon || null\"\n [loading]=\"item.loading || false\"\n [active]=\"item.active || false\"\n [lineStyle]=\"item.lineStyle || lineStyle()\"\n [actor]=\"item.actor || null\"\n [tags]=\"item.tags || null\"\n [diffs]=\"item.diffs || null\"\n [metadata]=\"item.metadata || null\"\n [expanded]=\"item.expanded || false\"\n [expandable]=\"!!(item.diffs?.length || item.metadata)\"\n [position]=\"getItemPosition(idx)\"\n [isLast]=\"isLast\"\n (itemClick)=\"onDataDrivenItemClick(item)\"\n />\n }\n} @else {\n <ng-content></ng-content>\n}\n", styles: [":host{display:flex;box-sizing:border-box;width:100%}:host(.talos-timeline--vertical){flex-direction:column;position:relative}:host(.talos-timeline--horizontal){flex-direction:row;overflow-x:auto;padding-bottom:1rem}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item{flex-direction:column;min-height:auto;min-width:180px;flex:1}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__separator,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__separator{flex-direction:row;min-width:auto;height:2rem;margin:0;width:100%}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__connector,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__connector{height:var(--timeline-line-width, 2px);width:auto;flex-grow:1}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__connector--top,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__connector--top{width:1rem;flex-grow:0}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__body{padding-top:.75rem;padding-bottom:0;text-align:center}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__header,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__header{flex-direction:column;align-items:center;text-align:center}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__title-group,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__title-group{justify-content:center}:host(.talos-timeline--horizontal) ::ng-deep talos-timeline-item .talos-timeline-item__actor,:host(.talos-timeline--horizontal) ::ng-deep .talos-timeline-item .talos-timeline-item__actor{justify-content:center}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item .talos-timeline-item__opposite,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item .talos-timeline-item__opposite{display:block}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right{flex-direction:row-reverse}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__opposite,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__opposite{text-align:left;padding:0 0 1rem 1.25rem}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__body,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__body{text-align:right}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__header,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__header{flex-direction:row-reverse}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__title-group,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__title-group{justify-content:flex-end}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__actor,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__actor{justify-content:flex-end}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__tags,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__tags{justify-content:flex-end}:host(.talos-timeline--alternate) ::ng-deep talos-timeline-item.talos-timeline-item--right .talos-timeline-item__separator,:host(.talos-timeline--alternate) ::ng-deep .talos-timeline-item.talos-timeline-item--right .talos-timeline-item__separator{margin:0 0 0 .75rem}:host(.talos-timeline--right) ::ng-deep talos-timeline-item,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item{flex-direction:row-reverse}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__separator,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__separator{margin:0 0 0 .75rem}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__body{text-align:right}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__header,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__header{flex-direction:row-reverse}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__title-group,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__title-group{justify-content:flex-end}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__actor,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__actor{justify-content:flex-end}:host(.talos-timeline--right) ::ng-deep talos-timeline-item .talos-timeline-item__tags,:host(.talos-timeline--right) ::ng-deep .talos-timeline-item .talos-timeline-item__tags{justify-content:flex-end}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item{min-height:2.75rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__body{padding-bottom:.75rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__title,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__title{font-size:.8125rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__description,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__description{font-size:.75rem;margin:.125rem 0 .25rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__separator,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__separator{min-width:1.5rem;margin-right:.5rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__dot,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__dot{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:.625rem}:host(.talos-timeline--dense) ::ng-deep talos-timeline-item .talos-timeline-item__dot svg,:host(.talos-timeline--dense) ::ng-deep .talos-timeline-item .talos-timeline-item__dot svg{width:.625rem;height:.625rem}:host(.talos-timeline--card) ::ng-deep talos-timeline-item .talos-timeline-item__body,:host(.talos-timeline--card) ::ng-deep .talos-timeline-item .talos-timeline-item__body{padding:1rem 1.125rem;margin-bottom:1rem;background-color:var(--talos-card-bg, #ffffff);border:1px solid var(--talos-border-color, #e2e8f0);border-radius:var(--talos-border-radius, .5rem);box-shadow:0 1px 3px #0000000a,0 1px 2px -1px #0000000a;transition:all .2s ease}:host(.talos-timeline--card) ::ng-deep talos-timeline-item .talos-timeline-item__body:hover,:host(.talos-timeline--card) ::ng-deep .talos-timeline-item .talos-timeline-item__body:hover{border-color:var(--talos-border-hover, #cbd5e1);box-shadow:0 4px 6px -1px #0000000f,0 2px 4px -2px #0000000a}\n"] }]
2842
+ }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], reverse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverse", required: false }] }], lineStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStyle", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
2843
+
2844
+ const TIMELINE_COMPONENTS = [
2845
+ TalosTimelineComponent,
2846
+ TalosTimelineItemComponent,
2847
+ TalosTimelineDotDirective,
2848
+ TalosTimelineTitleDirective,
2849
+ TalosTimelineTimeDirective,
2850
+ TalosTimelineContentDirective,
2851
+ TalosTimelineExtraDirective
2852
+ ];
2853
+ class TalosTimelineModule {
2854
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2855
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineModule, imports: [TalosTimelineComponent,
2856
+ TalosTimelineItemComponent,
2857
+ TalosTimelineDotDirective,
2858
+ TalosTimelineTitleDirective,
2859
+ TalosTimelineTimeDirective,
2860
+ TalosTimelineContentDirective,
2861
+ TalosTimelineExtraDirective], exports: [TalosTimelineComponent,
2862
+ TalosTimelineItemComponent,
2863
+ TalosTimelineDotDirective,
2864
+ TalosTimelineTitleDirective,
2865
+ TalosTimelineTimeDirective,
2866
+ TalosTimelineContentDirective,
2867
+ TalosTimelineExtraDirective] });
2868
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineModule, imports: [TalosTimelineComponent,
2869
+ TalosTimelineItemComponent] });
2870
+ }
2871
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTimelineModule, decorators: [{
2872
+ type: NgModule,
2873
+ args: [{
2874
+ imports: TIMELINE_COMPONENTS,
2875
+ exports: TIMELINE_COMPONENTS
2876
+ }]
2877
+ }] });
2878
+
2879
+ /**
2880
+ * Types and interfaces for TalosTrendIndicatorComponent
2881
+ */
2882
+
2883
+ class TalosTrendIndicatorComponent {
2884
+ /** Explicit value to display (e.g. 14.2, -5.3, "+12%") */
2885
+ value = input(null, /* @ts-ignore */
2886
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2887
+ /** Current value for automatic delta calculation */
2888
+ current = input(null, /* @ts-ignore */
2889
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
2890
+ /** Previous value for automatic delta calculation */
2891
+ previous = input(null, /* @ts-ignore */
2892
+ ...(ngDevMode ? [{ debugName: "previous" }] : /* istanbul ignore next */ []));
2893
+ /** Explicit direction override or 'auto' */
2894
+ direction = input('auto', /* @ts-ignore */
2895
+ ...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
2896
+ /** Explicit status override or 'auto' */
2897
+ status = input('auto', /* @ts-ignore */
2898
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
2899
+ /** Polarity: normal (+ is good), inverse (+ is bad), neutral */
2900
+ polarity = input('normal', /* @ts-ignore */
2901
+ ...(ngDevMode ? [{ debugName: "polarity" }] : /* istanbul ignore next */ []));
2902
+ /** Visual variant */
2903
+ variant = input('badge', /* @ts-ignore */
2904
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
2905
+ /** Layout orientation: horizontal or vertical */
2906
+ layout = input('horizontal', /* @ts-ignore */
2907
+ ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
2908
+ /** Icon shape / style */
2909
+ iconType = input('arrow-diagonal', /* @ts-ignore */
2910
+ ...(ngDevMode ? [{ debugName: "iconType" }] : /* istanbul ignore next */ []));
2911
+ /** Size preset */
2912
+ size = input('md', /* @ts-ignore */
2913
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
2914
+ /** Value formatting mode */
2915
+ format = input('percentage', /* @ts-ignore */
2916
+ ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
2917
+ /** Prefix string before number */
2918
+ prefix = input('', /* @ts-ignore */
2919
+ ...(ngDevMode ? [{ debugName: "prefix" }] : /* istanbul ignore next */ []));
2920
+ /** Suffix string after number (e.g. '%', 'pts') */
2921
+ suffix = input('', /* @ts-ignore */
2922
+ ...(ngDevMode ? [{ debugName: "suffix" }] : /* istanbul ignore next */ []));
2923
+ /** Number of decimal places */
2924
+ decimals = input(1, /* @ts-ignore */
2925
+ ...(ngDevMode ? [{ debugName: "decimals" }] : /* istanbul ignore next */ []));
2926
+ /** Whether to show '+' / '-' sign */
2927
+ showSign = input(true, /* @ts-ignore */
2928
+ ...(ngDevMode ? [{ debugName: "showSign" }] : /* istanbul ignore next */ []));
2929
+ /** Whether to show arrow icon */
2930
+ showIcon = input(true, /* @ts-ignore */
2931
+ ...(ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []));
2932
+ /** Show only the icon without text */
2933
+ iconOnly = input(false, /* @ts-ignore */
2934
+ ...(ngDevMode ? [{ debugName: "iconOnly" }] : /* istanbul ignore next */ []));
2935
+ /** Secondary comparison label (e.g. 'vs last month') */
2936
+ label = input('', /* @ts-ignore */
2937
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
2938
+ /** Currency symbol when format is 'currency' */
2939
+ currencySymbol = input('$', /* @ts-ignore */
2940
+ ...(ngDevMode ? [{ debugName: "currencySymbol" }] : /* istanbul ignore next */ []));
2941
+ /** Custom formatter function */
2942
+ valueFormatter = input(null, /* @ts-ignore */
2943
+ ...(ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []));
2944
+ /** Accessible label */
2945
+ ariaLabel = input(null, /* @ts-ignore */
2946
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
2947
+ /** Calculation result */
2948
+ calculation = computed(() => {
2949
+ const cur = this.current();
2950
+ const prev = this.previous();
2951
+ const val = this.value();
2952
+ const dec = this.decimals();
2953
+ let delta = 0;
2954
+ let deltaPct = 0;
2955
+ let dir = 'flat';
2956
+ if (cur !== null && prev !== null) {
2957
+ delta = cur - prev;
2958
+ deltaPct = prev !== 0 ? ((cur - prev) / Math.abs(prev)) * 100 : cur > 0 ? 100 : cur < 0 ? -100 : 0;
2959
+ if (delta > 0.0001)
2960
+ dir = 'up';
2961
+ else if (delta < -0.0001)
2962
+ dir = 'down';
2963
+ else
2964
+ dir = 'flat';
2965
+ }
2966
+ else if (typeof val === 'number') {
2967
+ delta = val;
2968
+ deltaPct = val;
2969
+ if (val > 0.0001)
2970
+ dir = 'up';
2971
+ else if (val < -0.0001)
2972
+ dir = 'down';
2973
+ else
2974
+ dir = 'flat';
2975
+ }
2976
+ else if (typeof val === 'string') {
2977
+ const parsed = parseFloat(val.replace(/[^0-9.-]/g, ''));
2978
+ delta = isNaN(parsed) ? 0 : parsed;
2979
+ deltaPct = delta;
2980
+ if (val.includes('+') || delta > 0.0001)
2981
+ dir = 'up';
2982
+ else if (val.includes('-') || delta < -0.0001)
2983
+ dir = 'down';
2984
+ else
2985
+ dir = 'flat';
2986
+ }
2987
+ // Force direction override if specified
2988
+ const explicitDir = this.direction();
2989
+ if (explicitDir !== 'auto') {
2990
+ dir = explicitDir;
2991
+ }
2992
+ // Determine status (positive / negative / neutral) based on polarity or explicit override
2993
+ const explicitStatus = this.status();
2994
+ let calculatedStatus = 'neutral';
2995
+ if (explicitStatus !== 'auto') {
2996
+ calculatedStatus = explicitStatus;
2997
+ }
2998
+ else {
2999
+ const pol = this.polarity();
3000
+ if (pol === 'neutral' || dir === 'flat') {
3001
+ calculatedStatus = 'neutral';
3002
+ }
3003
+ else if (pol === 'normal') {
3004
+ calculatedStatus = dir === 'up' ? 'positive' : 'negative';
3005
+ }
3006
+ else if (pol === 'inverse') {
3007
+ calculatedStatus = dir === 'up' ? 'negative' : 'positive';
3008
+ }
3009
+ }
3010
+ // Format text
3011
+ let formattedText = '';
3012
+ const customFmt = this.valueFormatter();
3013
+ if (customFmt) {
3014
+ formattedText = customFmt({ delta, deltaPercentage: deltaPct, direction: dir, status: calculatedStatus, formattedText: '' });
3015
+ }
3016
+ else if (typeof val === 'string' && cur === null) {
3017
+ formattedText = val;
3018
+ }
3019
+ else {
3020
+ const sign = this.showSign() ? (dir === 'up' ? '+' : dir === 'down' ? '-' : '') : '';
3021
+ const absDelta = Math.abs(delta);
3022
+ const absPct = Math.abs(deltaPct);
3023
+ const pfx = this.prefix();
3024
+ const sfx = this.suffix();
3025
+ switch (this.format()) {
3026
+ case 'percentage':
3027
+ formattedText = `${sign}${pfx}${absPct.toFixed(dec)}%${sfx}`;
3028
+ break;
3029
+ case 'currency':
3030
+ formattedText = `${sign}${this.currencySymbol()}${pfx}${absDelta.toFixed(dec)}${sfx}`;
3031
+ break;
3032
+ case 'points':
3033
+ formattedText = `${sign}${pfx}${absDelta.toFixed(dec)} pts${sfx}`;
3034
+ break;
3035
+ case 'number':
3036
+ default:
3037
+ formattedText = `${sign}${pfx}${absDelta.toFixed(dec)}${sfx}`;
3038
+ break;
3039
+ }
3040
+ }
3041
+ return {
3042
+ delta,
3043
+ deltaPercentage: deltaPct,
3044
+ direction: dir,
3045
+ status: calculatedStatus,
3046
+ formattedText
3047
+ };
3048
+ }, /* @ts-ignore */
3049
+ ...(ngDevMode ? [{ debugName: "calculation" }] : /* istanbul ignore next */ []));
3050
+ computedStatus = computed(() => this.calculation().status, /* @ts-ignore */
3051
+ ...(ngDevMode ? [{ debugName: "computedStatus" }] : /* istanbul ignore next */ []));
3052
+ computedDirection = computed(() => this.calculation().direction, /* @ts-ignore */
3053
+ ...(ngDevMode ? [{ debugName: "computedDirection" }] : /* istanbul ignore next */ []));
3054
+ displayValue = computed(() => this.calculation().formattedText, /* @ts-ignore */
3055
+ ...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
3056
+ computedAriaLabel = computed(() => {
3057
+ const custom = this.ariaLabel();
3058
+ if (custom)
3059
+ return custom;
3060
+ const calc = this.calculation();
3061
+ const dirWord = calc.direction === 'up' ? 'Increased by' : calc.direction === 'down' ? 'Decreased by' : 'No change';
3062
+ const labelText = this.label() ? ` (${this.label()})` : '';
3063
+ return `Trend: ${dirWord} ${calc.formattedText}${labelText}`;
3064
+ }, /* @ts-ignore */
3065
+ ...(ngDevMode ? [{ debugName: "computedAriaLabel" }] : /* istanbul ignore next */ []));
3066
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTrendIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3067
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosTrendIndicatorComponent, isStandalone: true, selector: "talos-trend-indicator", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, previous: { classPropertyName: "previous", publicName: "previous", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, polarity: { classPropertyName: "polarity", publicName: "polarity", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, iconType: { classPropertyName: "iconType", publicName: "iconType", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, suffix: { classPropertyName: "suffix", publicName: "suffix", isSignal: true, isRequired: false, transformFunction: null }, decimals: { classPropertyName: "decimals", publicName: "decimals", isSignal: true, isRequired: false, transformFunction: null }, showSign: { classPropertyName: "showSign", publicName: "showSign", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, currencySymbol: { classPropertyName: "currencySymbol", publicName: "currencySymbol", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.talos-trend-badge": "variant() === \"badge\"", "class.talos-trend-subtle": "variant() === \"subtle\"", "class.talos-trend-text": "variant() === \"text\"", "class.talos-trend-bordered": "variant() === \"bordered\"", "class.talos-trend-solid": "variant() === \"solid\"", "class.talos-trend-horizontal": "layout() === \"horizontal\"", "class.talos-trend-vertical": "layout() === \"vertical\"", "class.talos-trend-positive": "computedStatus() === \"positive\"", "class.talos-trend-negative": "computedStatus() === \"negative\"", "class.talos-trend-neutral": "computedStatus() === \"neutral\"", "class.talos-trend-xs": "size() === \"xs\"", "class.talos-trend-sm": "size() === \"sm\"", "class.talos-trend-md": "size() === \"md\"", "class.talos-trend-lg": "size() === \"lg\"", "attr.role": "\"status\"", "attr.aria-label": "computedAriaLabel()" }, classAttribute: "talos-trend-indicator" }, ngImport: i0, template: "<span class=\"talos-trend-main\">\n @if (showIcon()) {\n <span class=\"talos-trend-icon-wrapper\" aria-hidden=\"true\">\n @switch (iconType()) {\n @case ('arrow-vertical') {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M8 12.5V3.5M8 3.5L4.5 7M8 3.5L11.5 7\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M8 3.5V12.5M8 12.5L4.5 9M8 12.5L11.5 9\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 8H12.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n }\n }\n @case ('chevron') {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 10L8 5.5L12.5 10\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 6L8 10.5L12.5 6\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 8H12.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n }\n }\n @case ('triangle') {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up talos-trend-icon--fill\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path d=\"M8 4.5L13 12H3L8 4.5Z\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down talos-trend-icon--fill\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path d=\"M8 11.5L3 4H13L8 11.5Z\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat talos-trend-icon--fill\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <rect x=\"3.5\" y=\"7\" width=\"9\" height=\"2\" rx=\"1\"/>\n </svg>\n }\n }\n @default {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M4 11.5L11.5 4M11.5 4H6M11.5 4V9.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M4 4.5L11.5 12M11.5 12H6M11.5 12V6.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 8H12.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n }\n }\n }\n </span>\n }\n\n @if (!iconOnly()) {\n <span class=\"talos-trend-value\">{{ displayValue() }}</span>\n }\n</span>\n\n@if (label()) {\n <span class=\"talos-trend-label\">{{ label() }}</span>\n}\n\n", styles: [":host{display:inline-flex;vertical-align:middle;box-sizing:border-box;font-family:inherit;font-weight:600;line-height:1;transition:background-color .15s ease,color .15s ease,border-color .15s ease;white-space:nowrap;--_trend-color: #64748b;--_trend-bg: #f1f5f9;--_trend-border: #e2e8f0;--_trend-solid-bg: #64748b;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(100, 116, 139, .1)}:host.talos-trend-positive{--_trend-color: #15803d;--_trend-bg: #dcfce7;--_trend-border: #bbf7d0;--_trend-solid-bg: #16a34a;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(22, 163, 74, .12)}:host.talos-trend-negative{--_trend-color: #b91c1c;--_trend-bg: #fee2e2;--_trend-border: #fecaca;--_trend-solid-bg: #dc2626;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(220, 38, 38, .12)}:host.talos-trend-neutral{--_trend-color: #475569;--_trend-bg: #f1f5f9;--_trend-border: #e2e8f0;--_trend-solid-bg: #64748b;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(100, 116, 139, .1)}:host.talos-trend-horizontal{flex-direction:row;align-items:center;gap:.25rem}:host.talos-trend-horizontal .talos-trend-label{font-weight:400;opacity:.8;margin-left:.125rem}:host.talos-trend-vertical{flex-direction:column;align-items:flex-start;gap:.125rem}:host.talos-trend-vertical .talos-trend-label{font-weight:400;opacity:.75;font-size:.85em}:host .talos-trend-main{display:inline-flex;align-items:center;gap:.25rem;line-height:1}:host .talos-trend-icon-wrapper{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}:host .talos-trend-icon{display:block;width:.875rem;height:.875rem;flex-shrink:0}:host .talos-trend-icon--fill{fill:currentColor}:host .talos-trend-value{letter-spacing:-.01em}:host.talos-trend-xs{font-size:.6875rem}:host.talos-trend-xs .talos-trend-icon{width:.625rem;height:.625rem}:host.talos-trend-xs.talos-trend-badge,:host.talos-trend-xs.talos-trend-subtle,:host.talos-trend-xs.talos-trend-bordered,:host.talos-trend-xs.talos-trend-solid{padding:.125rem .375rem;border-radius:9999px}:host.talos-trend-sm{font-size:.75rem}:host.talos-trend-sm .talos-trend-icon{width:.75rem;height:.75rem}:host.talos-trend-sm.talos-trend-badge,:host.talos-trend-sm.talos-trend-subtle,:host.talos-trend-sm.talos-trend-bordered,:host.talos-trend-sm.talos-trend-solid{padding:.1875rem .5rem;border-radius:9999px}:host.talos-trend-md{font-size:.8125rem}:host.talos-trend-md .talos-trend-icon{width:.875rem;height:.875rem}:host.talos-trend-md.talos-trend-badge,:host.talos-trend-md.talos-trend-subtle,:host.talos-trend-md.talos-trend-bordered,:host.talos-trend-md.talos-trend-solid{padding:.25rem .625rem;border-radius:9999px}:host.talos-trend-lg{font-size:.9375rem}:host.talos-trend-lg .talos-trend-icon{width:1rem;height:1rem}:host.talos-trend-lg.talos-trend-badge,:host.talos-trend-lg.talos-trend-subtle,:host.talos-trend-lg.talos-trend-bordered,:host.talos-trend-lg.talos-trend-solid{padding:.3125rem .75rem;border-radius:9999px}:host.talos-trend-badge{background-color:var(--_trend-bg);color:var(--_trend-color)}:host.talos-trend-subtle{background-color:var(--_trend-subtle-bg);color:var(--_trend-color)}:host.talos-trend-bordered{background-color:var(--_trend-bg);border:1px solid var(--_trend-border);color:var(--_trend-color)}:host.talos-trend-solid{background-color:var(--_trend-solid-bg);color:var(--_trend-solid-text);box-shadow:0 1px 2px #00000014}:host.talos-trend-text{padding:0;background:transparent;color:var(--_trend-color)}:root[data-theme=dark] :host.talos-trend-positive,:root.dark :host.talos-trend-positive,[data-theme=dark] :host.talos-trend-positive,[data-mode=dark] :host.talos-trend-positive,.dark :host.talos-trend-positive,.dark-theme :host.talos-trend-positive{--_trend-color: #4ade80;--_trend-bg: rgba(34, 197, 94, .18);--_trend-border: rgba(74, 222, 128, .3);--_trend-solid-bg: #16a34a;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(34, 197, 94, .12)}:root[data-theme=dark] :host.talos-trend-negative,:root.dark :host.talos-trend-negative,[data-theme=dark] :host.talos-trend-negative,[data-mode=dark] :host.talos-trend-negative,.dark :host.talos-trend-negative,.dark-theme :host.talos-trend-negative{--_trend-color: #f87171;--_trend-bg: rgba(239, 68, 68, .18);--_trend-border: rgba(248, 113, 113, .3);--_trend-solid-bg: #dc2626;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(239, 68, 68, .12)}:root[data-theme=dark] :host.talos-trend-neutral,:root.dark :host.talos-trend-neutral,[data-theme=dark] :host.talos-trend-neutral,[data-mode=dark] :host.talos-trend-neutral,.dark :host.talos-trend-neutral,.dark-theme :host.talos-trend-neutral{--_trend-color: #94a3b8;--_trend-bg: rgba(100, 116, 139, .18);--_trend-border: rgba(148, 163, 184, .25);--_trend-solid-bg: #475569;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(100, 116, 139, .12)}\n"] });
3068
+ }
3069
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTrendIndicatorComponent, decorators: [{
3070
+ type: Component,
3071
+ args: [{ selector: 'talos-trend-indicator', host: {
3072
+ 'class': 'talos-trend-indicator',
3073
+ '[class.talos-trend-badge]': 'variant() === "badge"',
3074
+ '[class.talos-trend-subtle]': 'variant() === "subtle"',
3075
+ '[class.talos-trend-text]': 'variant() === "text"',
3076
+ '[class.talos-trend-bordered]': 'variant() === "bordered"',
3077
+ '[class.talos-trend-solid]': 'variant() === "solid"',
3078
+ '[class.talos-trend-horizontal]': 'layout() === "horizontal"',
3079
+ '[class.talos-trend-vertical]': 'layout() === "vertical"',
3080
+ '[class.talos-trend-positive]': 'computedStatus() === "positive"',
3081
+ '[class.talos-trend-negative]': 'computedStatus() === "negative"',
3082
+ '[class.talos-trend-neutral]': 'computedStatus() === "neutral"',
3083
+ '[class.talos-trend-xs]': 'size() === "xs"',
3084
+ '[class.talos-trend-sm]': 'size() === "sm"',
3085
+ '[class.talos-trend-md]': 'size() === "md"',
3086
+ '[class.talos-trend-lg]': 'size() === "lg"',
3087
+ '[attr.role]': '"status"',
3088
+ '[attr.aria-label]': 'computedAriaLabel()'
3089
+ }, template: "<span class=\"talos-trend-main\">\n @if (showIcon()) {\n <span class=\"talos-trend-icon-wrapper\" aria-hidden=\"true\">\n @switch (iconType()) {\n @case ('arrow-vertical') {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M8 12.5V3.5M8 3.5L4.5 7M8 3.5L11.5 7\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M8 3.5V12.5M8 12.5L4.5 9M8 12.5L11.5 9\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 8H12.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n }\n }\n @case ('chevron') {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 10L8 5.5L12.5 10\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 6L8 10.5L12.5 6\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 8H12.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n }\n }\n @case ('triangle') {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up talos-trend-icon--fill\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path d=\"M8 4.5L13 12H3L8 4.5Z\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down talos-trend-icon--fill\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <path d=\"M8 11.5L3 4H13L8 11.5Z\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat talos-trend-icon--fill\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <rect x=\"3.5\" y=\"7\" width=\"9\" height=\"2\" rx=\"1\"/>\n </svg>\n }\n }\n @default {\n @if (computedDirection() === 'up') {\n <svg class=\"talos-trend-icon talos-trend-icon-up\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M4 11.5L11.5 4M11.5 4H6M11.5 4V9.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else if (computedDirection() === 'down') {\n <svg class=\"talos-trend-icon talos-trend-icon-down\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M4 4.5L11.5 12M11.5 12H6M11.5 12V6.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n } @else {\n <svg class=\"talos-trend-icon talos-trend-icon-flat\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\">\n <path d=\"M3.5 8H12.5\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n }\n }\n }\n </span>\n }\n\n @if (!iconOnly()) {\n <span class=\"talos-trend-value\">{{ displayValue() }}</span>\n }\n</span>\n\n@if (label()) {\n <span class=\"talos-trend-label\">{{ label() }}</span>\n}\n\n", styles: [":host{display:inline-flex;vertical-align:middle;box-sizing:border-box;font-family:inherit;font-weight:600;line-height:1;transition:background-color .15s ease,color .15s ease,border-color .15s ease;white-space:nowrap;--_trend-color: #64748b;--_trend-bg: #f1f5f9;--_trend-border: #e2e8f0;--_trend-solid-bg: #64748b;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(100, 116, 139, .1)}:host.talos-trend-positive{--_trend-color: #15803d;--_trend-bg: #dcfce7;--_trend-border: #bbf7d0;--_trend-solid-bg: #16a34a;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(22, 163, 74, .12)}:host.talos-trend-negative{--_trend-color: #b91c1c;--_trend-bg: #fee2e2;--_trend-border: #fecaca;--_trend-solid-bg: #dc2626;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(220, 38, 38, .12)}:host.talos-trend-neutral{--_trend-color: #475569;--_trend-bg: #f1f5f9;--_trend-border: #e2e8f0;--_trend-solid-bg: #64748b;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(100, 116, 139, .1)}:host.talos-trend-horizontal{flex-direction:row;align-items:center;gap:.25rem}:host.talos-trend-horizontal .talos-trend-label{font-weight:400;opacity:.8;margin-left:.125rem}:host.talos-trend-vertical{flex-direction:column;align-items:flex-start;gap:.125rem}:host.talos-trend-vertical .talos-trend-label{font-weight:400;opacity:.75;font-size:.85em}:host .talos-trend-main{display:inline-flex;align-items:center;gap:.25rem;line-height:1}:host .talos-trend-icon-wrapper{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}:host .talos-trend-icon{display:block;width:.875rem;height:.875rem;flex-shrink:0}:host .talos-trend-icon--fill{fill:currentColor}:host .talos-trend-value{letter-spacing:-.01em}:host.talos-trend-xs{font-size:.6875rem}:host.talos-trend-xs .talos-trend-icon{width:.625rem;height:.625rem}:host.talos-trend-xs.talos-trend-badge,:host.talos-trend-xs.talos-trend-subtle,:host.talos-trend-xs.talos-trend-bordered,:host.talos-trend-xs.talos-trend-solid{padding:.125rem .375rem;border-radius:9999px}:host.talos-trend-sm{font-size:.75rem}:host.talos-trend-sm .talos-trend-icon{width:.75rem;height:.75rem}:host.talos-trend-sm.talos-trend-badge,:host.talos-trend-sm.talos-trend-subtle,:host.talos-trend-sm.talos-trend-bordered,:host.talos-trend-sm.talos-trend-solid{padding:.1875rem .5rem;border-radius:9999px}:host.talos-trend-md{font-size:.8125rem}:host.talos-trend-md .talos-trend-icon{width:.875rem;height:.875rem}:host.talos-trend-md.talos-trend-badge,:host.talos-trend-md.talos-trend-subtle,:host.talos-trend-md.talos-trend-bordered,:host.talos-trend-md.talos-trend-solid{padding:.25rem .625rem;border-radius:9999px}:host.talos-trend-lg{font-size:.9375rem}:host.talos-trend-lg .talos-trend-icon{width:1rem;height:1rem}:host.talos-trend-lg.talos-trend-badge,:host.talos-trend-lg.talos-trend-subtle,:host.talos-trend-lg.talos-trend-bordered,:host.talos-trend-lg.talos-trend-solid{padding:.3125rem .75rem;border-radius:9999px}:host.talos-trend-badge{background-color:var(--_trend-bg);color:var(--_trend-color)}:host.talos-trend-subtle{background-color:var(--_trend-subtle-bg);color:var(--_trend-color)}:host.talos-trend-bordered{background-color:var(--_trend-bg);border:1px solid var(--_trend-border);color:var(--_trend-color)}:host.talos-trend-solid{background-color:var(--_trend-solid-bg);color:var(--_trend-solid-text);box-shadow:0 1px 2px #00000014}:host.talos-trend-text{padding:0;background:transparent;color:var(--_trend-color)}:root[data-theme=dark] :host.talos-trend-positive,:root.dark :host.talos-trend-positive,[data-theme=dark] :host.talos-trend-positive,[data-mode=dark] :host.talos-trend-positive,.dark :host.talos-trend-positive,.dark-theme :host.talos-trend-positive{--_trend-color: #4ade80;--_trend-bg: rgba(34, 197, 94, .18);--_trend-border: rgba(74, 222, 128, .3);--_trend-solid-bg: #16a34a;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(34, 197, 94, .12)}:root[data-theme=dark] :host.talos-trend-negative,:root.dark :host.talos-trend-negative,[data-theme=dark] :host.talos-trend-negative,[data-mode=dark] :host.talos-trend-negative,.dark :host.talos-trend-negative,.dark-theme :host.talos-trend-negative{--_trend-color: #f87171;--_trend-bg: rgba(239, 68, 68, .18);--_trend-border: rgba(248, 113, 113, .3);--_trend-solid-bg: #dc2626;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(239, 68, 68, .12)}:root[data-theme=dark] :host.talos-trend-neutral,:root.dark :host.talos-trend-neutral,[data-theme=dark] :host.talos-trend-neutral,[data-mode=dark] :host.talos-trend-neutral,.dark :host.talos-trend-neutral,.dark-theme :host.talos-trend-neutral{--_trend-color: #94a3b8;--_trend-bg: rgba(100, 116, 139, .18);--_trend-border: rgba(148, 163, 184, .25);--_trend-solid-bg: #475569;--_trend-solid-text: #ffffff;--_trend-subtle-bg: rgba(100, 116, 139, .12)}\n"] }]
3090
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], previous: [{ type: i0.Input, args: [{ isSignal: true, alias: "previous", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], polarity: [{ type: i0.Input, args: [{ isSignal: true, alias: "polarity", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], iconType: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconType", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], prefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "prefix", required: false }] }], suffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "suffix", required: false }] }], decimals: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimals", required: false }] }], showSign: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSign", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], currencySymbol: [{ type: i0.Input, args: [{ isSignal: true, alias: "currencySymbol", required: false }] }], valueFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormatter", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
3091
+
3092
+ class TalosTrendIndicatorModule {
3093
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTrendIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3094
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosTrendIndicatorModule, imports: [TalosTrendIndicatorComponent], exports: [TalosTrendIndicatorComponent] });
3095
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTrendIndicatorModule });
3096
+ }
3097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTrendIndicatorModule, decorators: [{
3098
+ type: NgModule,
3099
+ args: [{
3100
+ imports: [TalosTrendIndicatorComponent],
3101
+ exports: [TalosTrendIndicatorComponent]
3102
+ }]
3103
+ }] });
3104
+
3105
+ /**
3106
+ * Generated bundle index. Do not edit.
3107
+ */
3108
+
3109
+ export { TALOS_STATUS_DESCRIPTORS, TalosBadgeDirective, TalosBadgeModule, TalosBreadcrumbComponent, TalosBreadcrumbItemComponent, TalosBreadcrumbItemDefDirective, TalosBreadcrumbModule, TalosBreadcrumbSeparatorDirective, TalosDataGridComponent, TalosDataGridModule, TalosGridActionsCellComponent, TalosGridCellFormatPipe, TalosGridFilterDialogComponent, TalosGridStatusCellComponent, TalosStatusTagComponent, TalosStatusTagModule, TalosTimelineComponent, TalosTimelineContentDirective, TalosTimelineDotDirective, TalosTimelineExtraDirective, TalosTimelineItemComponent, TalosTimelineModule, TalosTimelineTimeDirective, TalosTimelineTitleDirective, TalosTrendIndicatorComponent, TalosTrendIndicatorModule, formatBadgeContent, normalizeWorkflowStatus };
3110
+ //# sourceMappingURL=weeehaoooz-talos-ui-data-display.mjs.map