@tectra-ng/ui 0.1.1 → 0.1.3

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 (145) hide show
  1. package/README.md +36 -19
  2. package/analog-clock/README.md +31 -0
  3. package/countdown/README.md +45 -0
  4. package/country/README.md +14 -4
  5. package/data-view/README.md +71 -0
  6. package/datepicker/README.md +109 -0
  7. package/export/README.md +79 -0
  8. package/export-font/OFL.txt +93 -0
  9. package/export-font/README.md +7 -0
  10. package/fesm2022/tectra-ng-ui-analog-clock.mjs +386 -0
  11. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
  13. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  15. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-chip.mjs +2 -2
  17. package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
  19. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  21. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-countdown.mjs +513 -0
  23. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-ui-country.mjs +47 -6
  25. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-data-view.mjs +1370 -0
  27. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-ui-datepicker.mjs +2640 -0
  29. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-ui-export-font.mjs +7 -0
  31. package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-ui-export.mjs +2574 -0
  33. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-ui-fieldset.mjs +2 -2
  35. package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-input-number.mjs +2 -2
  37. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  39. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-label.mjs +4 -4
  41. package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
  43. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-menu.mjs +2 -2
  45. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-message.mjs +2 -2
  47. package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-month-calendar.mjs +601 -0
  49. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -0
  50. package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
  51. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-paginator.mjs +2 -2
  53. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-select.mjs +4 -4
  55. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui-slider.mjs +2 -2
  57. package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
  58. package/fesm2022/tectra-ng-ui-sparkline.mjs +240 -0
  59. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -0
  60. package/fesm2022/tectra-ng-ui-stat-tiles.mjs +661 -0
  61. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -0
  62. package/fesm2022/tectra-ng-ui-table.mjs +1368 -1348
  63. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  64. package/fesm2022/tectra-ng-ui-tag.mjs +2 -2
  65. package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
  66. package/fesm2022/tectra-ng-ui-timeline.mjs +407 -0
  67. package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -0
  68. package/fesm2022/tectra-ng-ui-toggle-switch.mjs +2 -2
  69. package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
  70. package/fesm2022/tectra-ng-ui-tree-select.mjs +7 -46
  71. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  72. package/fesm2022/tectra-ng-ui-tree-table.mjs +901 -0
  73. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -0
  74. package/fesm2022/tectra-ng-ui-tree.mjs +1940 -0
  75. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -0
  76. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +928 -0
  77. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -0
  78. package/month-calendar/README.md +46 -0
  79. package/package.json +56 -4
  80. package/sparkline/README.md +27 -0
  81. package/stat-tiles/README.md +53 -0
  82. package/timeline/README.md +42 -0
  83. package/tree/README.md +93 -0
  84. package/tree-table/README.md +84 -0
  85. package/types/tectra-ng-ui-analog-clock.d.ts +127 -0
  86. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -0
  87. package/types/tectra-ng-ui-autocomplete.d.ts +11 -0
  88. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  89. package/types/tectra-ng-ui-chip.d.ts +3 -0
  90. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  91. package/types/tectra-ng-ui-countdown.d.ts +150 -0
  92. package/types/tectra-ng-ui-countdown.d.ts.map +1 -0
  93. package/types/tectra-ng-ui-country-select.d.ts +11 -0
  94. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  95. package/types/tectra-ng-ui-country.d.ts +9 -3
  96. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  97. package/types/tectra-ng-ui-data-view.d.ts +363 -0
  98. package/types/tectra-ng-ui-data-view.d.ts.map +1 -0
  99. package/types/tectra-ng-ui-datepicker.d.ts +801 -0
  100. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -0
  101. package/types/tectra-ng-ui-export-font.d.ts +5 -0
  102. package/types/tectra-ng-ui-export-font.d.ts.map +1 -0
  103. package/types/tectra-ng-ui-export.d.ts +427 -0
  104. package/types/tectra-ng-ui-export.d.ts.map +1 -0
  105. package/types/tectra-ng-ui-fieldset.d.ts +8 -0
  106. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  107. package/types/tectra-ng-ui-input-number.d.ts +1 -0
  108. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  109. package/types/tectra-ng-ui-input.d.ts +4 -0
  110. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  111. package/types/tectra-ng-ui-menu.d.ts +2 -0
  112. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  113. package/types/tectra-ng-ui-message.d.ts +5 -0
  114. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  115. package/types/tectra-ng-ui-month-calendar.d.ts +287 -0
  116. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -0
  117. package/types/tectra-ng-ui-multiselect.d.ts +11 -0
  118. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  119. package/types/tectra-ng-ui-paginator.d.ts +1 -0
  120. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  121. package/types/tectra-ng-ui-select.d.ts +11 -0
  122. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  123. package/types/tectra-ng-ui-slider.d.ts +1 -0
  124. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  125. package/types/tectra-ng-ui-sparkline.d.ts +80 -0
  126. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -0
  127. package/types/tectra-ng-ui-stat-tiles.d.ts +287 -0
  128. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -0
  129. package/types/tectra-ng-ui-table.d.ts +181 -15
  130. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  131. package/types/tectra-ng-ui-tag.d.ts +8 -0
  132. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  133. package/types/tectra-ng-ui-timeline.d.ts +129 -0
  134. package/types/tectra-ng-ui-timeline.d.ts.map +1 -0
  135. package/types/tectra-ng-ui-toggle-switch.d.ts +5 -0
  136. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  137. package/types/tectra-ng-ui-tree-select.d.ts +19 -22
  138. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  139. package/types/tectra-ng-ui-tree-table.d.ts +94 -0
  140. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -0
  141. package/types/tectra-ng-ui-tree.d.ts +571 -0
  142. package/types/tectra-ng-ui-tree.d.ts.map +1 -0
  143. package/types/tectra-ng-ui-virtual-scroller.d.ts +297 -0
  144. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -0
  145. package/virtual-scroller/README.md +60 -0
@@ -231,7 +231,7 @@ var TxTag = class TxTag {
231
231
  }
232
232
  `,
233
233
  isInline: true,
234
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"],
234
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"],
235
235
  dependencies: [{
236
236
  kind: "component",
237
237
  type: TxIcon,
@@ -302,7 +302,7 @@ i0.ɵɵngDeclareClassMetadata({
302
302
  "[attr.data-size]": "resolvedSize()",
303
303
  "[class.tx-tag--rounded]": "rounded()"
304
304
  },
305
- styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"]
305
+ styles: [":host{display:inline-flex;align-items:center;max-width:100%;vertical-align:middle;white-space:nowrap}.tx-tag__label{min-width:0;overflow:hidden;text-overflow:ellipsis}.tx-tag__label:empty{display:none}:host([data-styled]){--_tone: var(--tx-tag-primary-color);--_background: var(--tx-tag-primary-background);flex-shrink:0;gap:var(--tx-tag-gap);box-sizing:border-box;padding:var(--tx-tag-padding-y) var(--tx-tag-padding-x);border-radius:var(--tx-tag-border-radius);background:color-mix(in srgb,var(--_background) var(--tx-tag-tint),transparent);color:var(--_tone);font-family:var(--tx-font-family);font-size:var(--tx-tag-font-size);font-weight:var(--tx-tag-font-weight);line-height:var(--tx-tag-line-height)}:host([data-styled][data-severity=secondary]){--_tone: var(--tx-tag-secondary-color);--_background: var(--tx-tag-secondary-background)}:host([data-styled][data-severity=success]){--_tone: var(--tx-tag-success-color);--_background: var(--tx-tag-success-background)}:host([data-styled][data-severity=info]){--_tone: var(--tx-tag-info-color);--_background: var(--tx-tag-info-background)}:host([data-styled][data-severity=warn]){--_tone: var(--tx-tag-warn-color);--_background: var(--tx-tag-warn-background)}:host([data-styled][data-severity=danger]){--_tone: var(--tx-tag-danger-color);--_background: var(--tx-tag-danger-background)}:host([data-styled][data-severity=help]){--_tone: var(--tx-tag-help-color);--_background: var(--tx-tag-help-background)}:host([data-styled][data-severity=contrast]){--_tone: var(--tx-tag-contrast-color);--_background: var(--tx-tag-contrast-background)}:host([data-styled][data-size=small]){padding:var(--tx-tag-sm-padding-y) var(--tx-tag-sm-padding-x);font-size:var(--tx-tag-sm-font-size)}:host([data-styled][data-size=large]){padding:var(--tx-tag-lg-padding-y) var(--tx-tag-lg-padding-x);font-size:var(--tx-tag-lg-font-size)}:host([data-styled][data-size=large]){gap:var(--tx-tag-lg-gap)}:host([data-styled].tx-tag--rounded){border-radius:var(--tx-tag-rounded-border-radius)}:host([data-styled]) .tx-tag__icon{display:inline-flex;flex-shrink:0;font-size:var(--tx-tag-icon-size)}:host([data-styled]) .tx-tag__action{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-tag-action-size);height:var(--tx-tag-action-size);margin-inline-end:-3px;padding:0;border:none;border-radius:var(--tx-radius-xs);background:transparent;color:inherit;font-size:.85em;opacity:.75;cursor:pointer;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),opacity var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-tag__action:hover{background:color-mix(in srgb,currentColor 16%,transparent);opacity:1}:host([data-styled]) .tx-tag__action:focus-visible{outline:2px solid var(--tx-tag-focus-ring-color);outline-offset:1px;opacity:1}:host([data-styled]) .tx-tag__action+.tx-tag__action{margin-inline-start:-2px}:host([data-styled]) .tx-tag__copy--done{opacity:1}\n"]
306
306
  }]
307
307
  }],
308
308
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-tag.mjs","names":[],"sources":["../../../../packages/ui/tag/src/tag.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, ElementRef, booleanAttribute, computed, inject, input, output, signal, viewChild } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTagTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTagPart, TxTagSeverity, TxTagSize } from './tag.types';\n\nconst COPIED_FOR = 1500;\n\n@Component({\n selector: 'tx-tag',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-tag__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span #label class=\"tx-tag__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__copy\"\n [class.tx-tag__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n }\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './tag.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tag',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'resolvedSize()',\n '[class.tx-tag--rounded]': 'rounded()',\n },\n})\nexport class TxTag {\n private txIconRegistry = inject(TxIconRegistry);\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly value = input<string | number | undefined>(undefined);\n readonly severity = input<TxTagSeverity>('primary');\n readonly size = input<TxTagSize>('medium');\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTagTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTagPart, TxTag> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n readonly removed = output<Event>();\n\n readonly label = viewChild.required<ElementRef<HTMLElement>>('label');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tag', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tag'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = (this.label().nativeElement.textContent ?? '').trim();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAQA,MAAM,aAAa;AA0DnB,IAAa,QAAb,MAAa,MAAK;CACR,iBAAiB,OAAO,cAAc;CACtC,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,WAAW,MAAqB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,OAAO,MAAiB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACjC,UAAU,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACtE,OAAO,MAA8C,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC/D,WAAW,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACvE,YAAY,MAAwB,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CACxE,cAAc,MAA0B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,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A,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-tag.mjs","names":[],"sources":["../../../../packages/ui/tag/src/tag.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, ElementRef, booleanAttribute, computed, inject, input, output, signal, viewChild } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraDeepPartial, TectraTagTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTagPart, TxTagSeverity, TxTagSize } from './tag.types';\n\nconst COPIED_FOR = 1500;\n\n@Component({\n selector: 'tx-tag',\n imports: [TxIcon],\n template: `\n @if (icon(); as icon) {\n <span class=\"tx-tag__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n </span>\n }\n <span #label class=\"tx-tag__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ value() }}<ng-content /></span>\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__copy\"\n [class.tx-tag__copy--done]=\"isCopied()\"\n [class]=\"passThrough().copy?.class\"\n [style]=\"passThrough().copy?.style\"\n [attr.aria-label]=\"isCopied() ? translations().copied : translations().copy\"\n [title]=\"isCopied() ? translations().copied : translations().copy\"\n (click)=\"copy()\"\n >\n <tx-icon [name]=\"isCopied() ? 'check' : 'copy'\" />\n </button>\n }\n @if (removable()) {\n <button\n type=\"button\"\n class=\"tx-tag__action tx-tag__remove\"\n [class]=\"passThrough().remove?.class\"\n [style]=\"passThrough().remove?.style\"\n [attr.aria-label]=\"removeLabel() ?? translations().remove\"\n [title]=\"removeLabel() ?? translations().remove\"\n (click)=\"remove($event)\"\n (keydown.delete)=\"remove($event)\"\n (keydown.backspace)=\"remove($event)\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n `,\n styleUrl: './tag.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-tag',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'resolvedSize()',\n '[class.tx-tag--rounded]': 'rounded()',\n },\n})\nexport class TxTag {\n private txIconRegistry = inject(TxIconRegistry);\n private document = inject(DOCUMENT);\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n readonly value = input<string | number | undefined>(undefined);\n readonly severity = input<TxTagSeverity>('primary');\n readonly size = input<TxTagSize>('medium');\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly copyable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removable = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly removeLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTagTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTagPart, TxTag> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly copied = output<string>();\n readonly removed = output<Event>();\n\n readonly label = viewChild.required<ElementRef<HTMLElement>>('label');\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('tag', this, this.pt, this.ptOptions);\n readonly isCopied = signal(false);\n readonly resolvedSize = computed(() => (this.size() === 'normal' ? 'medium' : this.size()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return icon && this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-tag'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.timer && clearTimeout(this.timer));\n }\n\n copy(): void {\n const text = (this.label().nativeElement.textContent ?? '').trim();\n this.document.defaultView?.navigator.clipboard?.writeText(text);\n this.copied.emit(text);\n this.isCopied.set(true);\n if (this.timer) {\n clearTimeout(this.timer);\n }\n this.timer = setTimeout(() => this.isCopied.set(false), COPIED_FOR);\n }\n\n remove(event: Event): void {\n event.preventDefault();\n event.stopPropagation();\n this.removed.emit(event);\n }\n}\n"],"mappings":";;;;;;;AAQA,MAAM,aAAa;AA0DnB,IAAa,QAAb,MAAa,MAAK;CACR,iBAAiB,OAAO,cAAc;CACtC,WAAW,OAAO,QAAQ;CAC1B,QAA8C;CAE7C,QAAQ,MAAmC,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACrD,WAAW,MAAqB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAC1C,OAAO,MAAiB,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,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A;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -0,0 +1,407 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, TemplateRef, computed, contentChild, inject, input } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
5
+ import { optionalBoolean } from "@tectra-ng/core/utils";
6
+ import { toStyleObject } from "@tectra-ng/themes";
7
+ var TxTimelineContent = class TxTimelineContent {
8
+ templateRef = inject(TemplateRef);
9
+ static ɵfac = i0.ɵɵngDeclareFactory({
10
+ minVersion: "12.0.0",
11
+ version: "22.2.3",
12
+ ngImport: i0,
13
+ type: TxTimelineContent,
14
+ deps: [],
15
+ target: i0.ɵɵFactoryTarget.Directive
16
+ });
17
+ static ɵdir = i0.ɵɵngDeclareDirective({
18
+ minVersion: "14.0.0",
19
+ version: "22.2.3",
20
+ type: TxTimelineContent,
21
+ isStandalone: true,
22
+ selector: "ng-template[txTimelineContent]",
23
+ ngImport: i0
24
+ });
25
+ };
26
+ i0.ɵɵngDeclareClassMetadata({
27
+ minVersion: "12.0.0",
28
+ version: "22.2.3",
29
+ ngImport: i0,
30
+ type: TxTimelineContent,
31
+ decorators: [{
32
+ type: Directive,
33
+ args: [{ selector: "ng-template[txTimelineContent]" }]
34
+ }]
35
+ });
36
+ var TxTimelineOpposite = class TxTimelineOpposite {
37
+ templateRef = inject(TemplateRef);
38
+ static ɵfac = i0.ɵɵngDeclareFactory({
39
+ minVersion: "12.0.0",
40
+ version: "22.2.3",
41
+ ngImport: i0,
42
+ type: TxTimelineOpposite,
43
+ deps: [],
44
+ target: i0.ɵɵFactoryTarget.Directive
45
+ });
46
+ static ɵdir = i0.ɵɵngDeclareDirective({
47
+ minVersion: "14.0.0",
48
+ version: "22.2.3",
49
+ type: TxTimelineOpposite,
50
+ isStandalone: true,
51
+ selector: "ng-template[txTimelineOpposite]",
52
+ ngImport: i0
53
+ });
54
+ };
55
+ i0.ɵɵngDeclareClassMetadata({
56
+ minVersion: "12.0.0",
57
+ version: "22.2.3",
58
+ ngImport: i0,
59
+ type: TxTimelineOpposite,
60
+ decorators: [{
61
+ type: Directive,
62
+ args: [{ selector: "ng-template[txTimelineOpposite]" }]
63
+ }]
64
+ });
65
+ var TxTimelineMarker = class TxTimelineMarker {
66
+ templateRef = inject(TemplateRef);
67
+ static ɵfac = i0.ɵɵngDeclareFactory({
68
+ minVersion: "12.0.0",
69
+ version: "22.2.3",
70
+ ngImport: i0,
71
+ type: TxTimelineMarker,
72
+ deps: [],
73
+ target: i0.ɵɵFactoryTarget.Directive
74
+ });
75
+ static ɵdir = i0.ɵɵngDeclareDirective({
76
+ minVersion: "14.0.0",
77
+ version: "22.2.3",
78
+ type: TxTimelineMarker,
79
+ isStandalone: true,
80
+ selector: "ng-template[txTimelineMarker]",
81
+ ngImport: i0
82
+ });
83
+ };
84
+ i0.ɵɵngDeclareClassMetadata({
85
+ minVersion: "12.0.0",
86
+ version: "22.2.3",
87
+ ngImport: i0,
88
+ type: TxTimelineMarker,
89
+ decorators: [{
90
+ type: Directive,
91
+ args: [{ selector: "ng-template[txTimelineMarker]" }]
92
+ }]
93
+ });
94
+ var TxTimelineConnector = class TxTimelineConnector {
95
+ templateRef = inject(TemplateRef);
96
+ static ɵfac = i0.ɵɵngDeclareFactory({
97
+ minVersion: "12.0.0",
98
+ version: "22.2.3",
99
+ ngImport: i0,
100
+ type: TxTimelineConnector,
101
+ deps: [],
102
+ target: i0.ɵɵFactoryTarget.Directive
103
+ });
104
+ static ɵdir = i0.ɵɵngDeclareDirective({
105
+ minVersion: "14.0.0",
106
+ version: "22.2.3",
107
+ type: TxTimelineConnector,
108
+ isStandalone: true,
109
+ selector: "ng-template[txTimelineConnector]",
110
+ ngImport: i0
111
+ });
112
+ };
113
+ i0.ɵɵngDeclareClassMetadata({
114
+ minVersion: "12.0.0",
115
+ version: "22.2.3",
116
+ ngImport: i0,
117
+ type: TxTimelineConnector,
118
+ decorators: [{
119
+ type: Directive,
120
+ args: [{ selector: "ng-template[txTimelineConnector]" }]
121
+ }]
122
+ });
123
+ var TxTimeline = class TxTimeline {
124
+ value = input([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
125
+ layout = input("vertical", ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
126
+ align = input(void 0, ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
127
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
128
+ ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
129
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
130
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
131
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
132
+ unstyled = input(void 0, {
133
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
134
+ transform: optionalBoolean
135
+ });
136
+ contentTemplate = contentChild(TxTimelineContent, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
137
+ oppositeTemplate = contentChild(TxTimelineOpposite, ...ngDevMode ? [{ debugName: "oppositeTemplate" }] : /* istanbul ignore next */ []);
138
+ markerTemplate = contentChild(TxTimelineMarker, ...ngDevMode ? [{ debugName: "markerTemplate" }] : /* istanbul ignore next */ []);
139
+ connectorTemplate = contentChild(TxTimelineConnector, ...ngDevMode ? [{ debugName: "connectorTemplate" }] : /* istanbul ignore next */ []);
140
+ isUnstyled = injectUnstyled(this.unstyled);
141
+ passThrough = injectPassThrough("timeline", this, this.pt, this.ptOptions);
142
+ hostStyle = computed(() => ({
143
+ ...toStyleObject(this.dt(), "--tx-timeline"),
144
+ ...this.passThrough().root?.style
145
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
146
+ resolvedAlign = computed(() => this.align() ?? (this.layout() === "horizontal" ? "top" : "left"), ...ngDevMode ? [{ debugName: "resolvedAlign" }] : /* istanbul ignore next */ []);
147
+ events = computed(() => {
148
+ const items = this.value() ?? [];
149
+ return items.map((item, index) => ({
150
+ $implicit: item,
151
+ index,
152
+ first: index === 0,
153
+ last: index === items.length - 1
154
+ }));
155
+ }, ...ngDevMode ? [{ debugName: "events" }] : /* istanbul ignore next */ []);
156
+ static ɵfac = i0.ɵɵngDeclareFactory({
157
+ minVersion: "12.0.0",
158
+ version: "22.2.3",
159
+ ngImport: i0,
160
+ type: TxTimeline,
161
+ deps: [],
162
+ target: i0.ɵɵFactoryTarget.Component
163
+ });
164
+ static ɵcmp = i0.ɵɵngDeclareComponent({
165
+ minVersion: "17.0.0",
166
+ version: "22.2.3",
167
+ type: TxTimeline,
168
+ isStandalone: true,
169
+ selector: "tx-timeline",
170
+ inputs: {
171
+ value: {
172
+ classPropertyName: "value",
173
+ publicName: "value",
174
+ isSignal: true,
175
+ isRequired: false,
176
+ transformFunction: null
177
+ },
178
+ layout: {
179
+ classPropertyName: "layout",
180
+ publicName: "layout",
181
+ isSignal: true,
182
+ isRequired: false,
183
+ transformFunction: null
184
+ },
185
+ align: {
186
+ classPropertyName: "align",
187
+ publicName: "align",
188
+ isSignal: true,
189
+ isRequired: false,
190
+ transformFunction: null
191
+ },
192
+ ariaLabel: {
193
+ classPropertyName: "ariaLabel",
194
+ publicName: "ariaLabel",
195
+ isSignal: true,
196
+ isRequired: false,
197
+ transformFunction: null
198
+ },
199
+ ariaLabelledBy: {
200
+ classPropertyName: "ariaLabelledBy",
201
+ publicName: "ariaLabelledBy",
202
+ isSignal: true,
203
+ isRequired: false,
204
+ transformFunction: null
205
+ },
206
+ dt: {
207
+ classPropertyName: "dt",
208
+ publicName: "dt",
209
+ isSignal: true,
210
+ isRequired: false,
211
+ transformFunction: null
212
+ },
213
+ pt: {
214
+ classPropertyName: "pt",
215
+ publicName: "pt",
216
+ isSignal: true,
217
+ isRequired: false,
218
+ transformFunction: null
219
+ },
220
+ ptOptions: {
221
+ classPropertyName: "ptOptions",
222
+ publicName: "ptOptions",
223
+ isSignal: true,
224
+ isRequired: false,
225
+ transformFunction: null
226
+ },
227
+ unstyled: {
228
+ classPropertyName: "unstyled",
229
+ publicName: "unstyled",
230
+ isSignal: true,
231
+ isRequired: false,
232
+ transformFunction: null
233
+ }
234
+ },
235
+ host: {
236
+ properties: {
237
+ "class": "passThrough().root?.class",
238
+ "style": "hostStyle()",
239
+ "attr.data-styled": "!isUnstyled() || null",
240
+ "attr.data-layout": "layout()",
241
+ "attr.data-align": "resolvedAlign()"
242
+ },
243
+ classAttribute: "tx-timeline"
244
+ },
245
+ queries: [
246
+ {
247
+ propertyName: "contentTemplate",
248
+ first: true,
249
+ predicate: TxTimelineContent,
250
+ descendants: true,
251
+ isSignal: true
252
+ },
253
+ {
254
+ propertyName: "oppositeTemplate",
255
+ first: true,
256
+ predicate: TxTimelineOpposite,
257
+ descendants: true,
258
+ isSignal: true
259
+ },
260
+ {
261
+ propertyName: "markerTemplate",
262
+ first: true,
263
+ predicate: TxTimelineMarker,
264
+ descendants: true,
265
+ isSignal: true
266
+ },
267
+ {
268
+ propertyName: "connectorTemplate",
269
+ first: true,
270
+ predicate: TxTimelineConnector,
271
+ descendants: true,
272
+ isSignal: true
273
+ }
274
+ ],
275
+ ngImport: i0,
276
+ template: "<ol\n class=\"tx-timeline__list\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n>\n @for (event of events(); track $index) {\n <li class=\"tx-timeline__event\" [class]=\"passThrough().event?.class\" [style]=\"passThrough().event?.style\">\n <div\n class=\"tx-timeline__opposite\"\n [class]=\"passThrough().eventOpposite?.class\"\n [style]=\"passThrough().eventOpposite?.style\"\n >\n @if (oppositeTemplate(); as opposite) {\n <ng-container *ngTemplateOutlet=\"opposite.templateRef; context: event\" />\n }\n </div>\n <div\n class=\"tx-timeline__separator\"\n [class]=\"passThrough().eventSeparator?.class\"\n [style]=\"passThrough().eventSeparator?.style\"\n >\n @if (markerTemplate(); as marker) {\n <ng-container *ngTemplateOutlet=\"marker.templateRef; context: event\" />\n } @else {\n <span\n class=\"tx-timeline__marker\"\n aria-hidden=\"true\"\n [class]=\"passThrough().eventMarker?.class\"\n [style]=\"passThrough().eventMarker?.style\"\n ></span>\n }\n @if (!event.last) {\n @if (connectorTemplate(); as connector) {\n <ng-container *ngTemplateOutlet=\"connector.templateRef; context: event\" />\n } @else {\n <span\n class=\"tx-timeline__connector\"\n aria-hidden=\"true\"\n [class]=\"passThrough().eventConnector?.class\"\n [style]=\"passThrough().eventConnector?.style\"\n ></span>\n }\n }\n </div>\n <div\n class=\"tx-timeline__content\"\n [class]=\"passThrough().eventContent?.class\"\n [style]=\"passThrough().eventContent?.style\"\n >\n @if (contentTemplate(); as content) {\n <ng-container *ngTemplateOutlet=\"content.templateRef; context: event\" />\n }\n </div>\n </li>\n }\n</ol>\n",
277
+ styles: [":host{display:block}:host([data-styled]) .tx-timeline__list{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0;list-style:none}:host([data-styled]) .tx-timeline__event{position:relative;display:flex;min-height:var(--tx-timeline-event-min-height)}:host([data-styled]) .tx-timeline__event:last-child{min-height:0}:host([data-styled]) .tx-timeline__opposite,:host([data-styled]) .tx-timeline__content{flex:1}:host([data-styled]) .tx-timeline__separator{display:flex;flex:0;flex-direction:column;align-items:center}:host([data-styled]) .tx-timeline__marker{position:relative;display:inline-flex;align-self:baseline;align-items:center;justify-content:center;box-sizing:border-box;flex-shrink:0;width:var(--tx-timeline-event-marker-size);height:var(--tx-timeline-event-marker-size);border:var(--tx-timeline-event-marker-border-width) solid var(--tx-timeline-event-marker-border-color);border-radius:var(--tx-timeline-event-marker-border-radius);background:var(--tx-timeline-event-marker-background)}:host([data-styled]) .tx-timeline__marker:before{width:var(--tx-timeline-event-marker-content-size);height:var(--tx-timeline-event-marker-content-size);border-radius:var(--tx-timeline-event-marker-content-border-radius);background:var(--tx-timeline-event-marker-content-background);content:\"\"}:host([data-styled]) .tx-timeline__marker:after{position:absolute;width:100%;height:100%;border-radius:var(--tx-timeline-event-marker-border-radius);box-shadow:var(--tx-timeline-event-marker-content-inset-shadow);content:\"\"}:host([data-styled]) .tx-timeline__connector{flex-grow:1;background:var(--tx-timeline-event-connector-color)}:host([data-styled][data-layout=vertical]) .tx-timeline__opposite,:host([data-styled][data-layout=vertical]) .tx-timeline__content{padding:var(--tx-timeline-vertical-event-content-padding)}:host([data-styled][data-layout=vertical]) .tx-timeline__connector{width:var(--tx-timeline-event-connector-size)}:host([data-styled][data-layout=vertical][data-align=left]) .tx-timeline__opposite{text-align:end}:host([data-styled][data-layout=vertical][data-align=left]) .tx-timeline__content{text-align:start}:host([data-styled][data-layout=vertical][data-align=right]) .tx-timeline__event{flex-direction:row-reverse}:host([data-styled][data-layout=vertical][data-align=right]) .tx-timeline__opposite{text-align:start}:host([data-styled][data-layout=vertical][data-align=right]) .tx-timeline__content{text-align:end}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(odd) .tx-timeline__opposite{text-align:end}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(odd) .tx-timeline__content{text-align:start}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(2n){flex-direction:row-reverse}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(2n) .tx-timeline__opposite{text-align:start}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(2n) .tx-timeline__content{text-align:end}:host([data-styled][data-layout=horizontal]) .tx-timeline__list{flex-direction:row}:host([data-styled][data-layout=horizontal]) .tx-timeline__event{flex:1;flex-direction:column}:host([data-styled][data-layout=horizontal]) .tx-timeline__event:last-child{flex:0}:host([data-styled][data-layout=horizontal]) .tx-timeline__separator{flex-direction:row}:host([data-styled][data-layout=horizontal]) .tx-timeline__connector{width:100%;height:var(--tx-timeline-event-connector-size)}:host([data-styled][data-layout=horizontal]) .tx-timeline__opposite,:host([data-styled][data-layout=horizontal]) .tx-timeline__content{padding:var(--tx-timeline-horizontal-event-content-padding)}:host([data-styled][data-layout=horizontal][data-align=bottom]) .tx-timeline__event,:host([data-styled][data-layout=horizontal][data-align=alternate]) .tx-timeline__event:nth-child(2n){flex-direction:column-reverse}\n"],
278
+ dependencies: [{
279
+ kind: "directive",
280
+ type: NgTemplateOutlet,
281
+ selector: "[ngTemplateOutlet]",
282
+ inputs: [
283
+ "ngTemplateOutletContext",
284
+ "ngTemplateOutlet",
285
+ "ngTemplateOutletInjector"
286
+ ]
287
+ }],
288
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
289
+ });
290
+ };
291
+ i0.ɵɵngDeclareClassMetadata({
292
+ minVersion: "12.0.0",
293
+ version: "22.2.3",
294
+ ngImport: i0,
295
+ type: TxTimeline,
296
+ decorators: [{
297
+ type: Component,
298
+ args: [{
299
+ selector: "tx-timeline",
300
+ imports: [NgTemplateOutlet],
301
+ changeDetection: ChangeDetectionStrategy.OnPush,
302
+ host: {
303
+ class: "tx-timeline",
304
+ "[class]": "passThrough().root?.class",
305
+ "[style]": "hostStyle()",
306
+ "[attr.data-styled]": "!isUnstyled() || null",
307
+ "[attr.data-layout]": "layout()",
308
+ "[attr.data-align]": "resolvedAlign()"
309
+ },
310
+ template: "<ol\n class=\"tx-timeline__list\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n>\n @for (event of events(); track $index) {\n <li class=\"tx-timeline__event\" [class]=\"passThrough().event?.class\" [style]=\"passThrough().event?.style\">\n <div\n class=\"tx-timeline__opposite\"\n [class]=\"passThrough().eventOpposite?.class\"\n [style]=\"passThrough().eventOpposite?.style\"\n >\n @if (oppositeTemplate(); as opposite) {\n <ng-container *ngTemplateOutlet=\"opposite.templateRef; context: event\" />\n }\n </div>\n <div\n class=\"tx-timeline__separator\"\n [class]=\"passThrough().eventSeparator?.class\"\n [style]=\"passThrough().eventSeparator?.style\"\n >\n @if (markerTemplate(); as marker) {\n <ng-container *ngTemplateOutlet=\"marker.templateRef; context: event\" />\n } @else {\n <span\n class=\"tx-timeline__marker\"\n aria-hidden=\"true\"\n [class]=\"passThrough().eventMarker?.class\"\n [style]=\"passThrough().eventMarker?.style\"\n ></span>\n }\n @if (!event.last) {\n @if (connectorTemplate(); as connector) {\n <ng-container *ngTemplateOutlet=\"connector.templateRef; context: event\" />\n } @else {\n <span\n class=\"tx-timeline__connector\"\n aria-hidden=\"true\"\n [class]=\"passThrough().eventConnector?.class\"\n [style]=\"passThrough().eventConnector?.style\"\n ></span>\n }\n }\n </div>\n <div\n class=\"tx-timeline__content\"\n [class]=\"passThrough().eventContent?.class\"\n [style]=\"passThrough().eventContent?.style\"\n >\n @if (contentTemplate(); as content) {\n <ng-container *ngTemplateOutlet=\"content.templateRef; context: event\" />\n }\n </div>\n </li>\n }\n</ol>\n",
311
+ styles: [":host{display:block}:host([data-styled]) .tx-timeline__list{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0;list-style:none}:host([data-styled]) .tx-timeline__event{position:relative;display:flex;min-height:var(--tx-timeline-event-min-height)}:host([data-styled]) .tx-timeline__event:last-child{min-height:0}:host([data-styled]) .tx-timeline__opposite,:host([data-styled]) .tx-timeline__content{flex:1}:host([data-styled]) .tx-timeline__separator{display:flex;flex:0;flex-direction:column;align-items:center}:host([data-styled]) .tx-timeline__marker{position:relative;display:inline-flex;align-self:baseline;align-items:center;justify-content:center;box-sizing:border-box;flex-shrink:0;width:var(--tx-timeline-event-marker-size);height:var(--tx-timeline-event-marker-size);border:var(--tx-timeline-event-marker-border-width) solid var(--tx-timeline-event-marker-border-color);border-radius:var(--tx-timeline-event-marker-border-radius);background:var(--tx-timeline-event-marker-background)}:host([data-styled]) .tx-timeline__marker:before{width:var(--tx-timeline-event-marker-content-size);height:var(--tx-timeline-event-marker-content-size);border-radius:var(--tx-timeline-event-marker-content-border-radius);background:var(--tx-timeline-event-marker-content-background);content:\"\"}:host([data-styled]) .tx-timeline__marker:after{position:absolute;width:100%;height:100%;border-radius:var(--tx-timeline-event-marker-border-radius);box-shadow:var(--tx-timeline-event-marker-content-inset-shadow);content:\"\"}:host([data-styled]) .tx-timeline__connector{flex-grow:1;background:var(--tx-timeline-event-connector-color)}:host([data-styled][data-layout=vertical]) .tx-timeline__opposite,:host([data-styled][data-layout=vertical]) .tx-timeline__content{padding:var(--tx-timeline-vertical-event-content-padding)}:host([data-styled][data-layout=vertical]) .tx-timeline__connector{width:var(--tx-timeline-event-connector-size)}:host([data-styled][data-layout=vertical][data-align=left]) .tx-timeline__opposite{text-align:end}:host([data-styled][data-layout=vertical][data-align=left]) .tx-timeline__content{text-align:start}:host([data-styled][data-layout=vertical][data-align=right]) .tx-timeline__event{flex-direction:row-reverse}:host([data-styled][data-layout=vertical][data-align=right]) .tx-timeline__opposite{text-align:start}:host([data-styled][data-layout=vertical][data-align=right]) .tx-timeline__content{text-align:end}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(odd) .tx-timeline__opposite{text-align:end}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(odd) .tx-timeline__content{text-align:start}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(2n){flex-direction:row-reverse}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(2n) .tx-timeline__opposite{text-align:start}:host([data-styled][data-layout=vertical][data-align=alternate]) .tx-timeline__event:nth-child(2n) .tx-timeline__content{text-align:end}:host([data-styled][data-layout=horizontal]) .tx-timeline__list{flex-direction:row}:host([data-styled][data-layout=horizontal]) .tx-timeline__event{flex:1;flex-direction:column}:host([data-styled][data-layout=horizontal]) .tx-timeline__event:last-child{flex:0}:host([data-styled][data-layout=horizontal]) .tx-timeline__separator{flex-direction:row}:host([data-styled][data-layout=horizontal]) .tx-timeline__connector{width:100%;height:var(--tx-timeline-event-connector-size)}:host([data-styled][data-layout=horizontal]) .tx-timeline__opposite,:host([data-styled][data-layout=horizontal]) .tx-timeline__content{padding:var(--tx-timeline-horizontal-event-content-padding)}:host([data-styled][data-layout=horizontal][data-align=bottom]) .tx-timeline__event,:host([data-styled][data-layout=horizontal][data-align=alternate]) .tx-timeline__event:nth-child(2n){flex-direction:column-reverse}\n"]
312
+ }]
313
+ }],
314
+ propDecorators: {
315
+ value: [{
316
+ type: i0.Input,
317
+ args: [{
318
+ isSignal: true,
319
+ alias: "value",
320
+ required: false
321
+ }]
322
+ }],
323
+ layout: [{
324
+ type: i0.Input,
325
+ args: [{
326
+ isSignal: true,
327
+ alias: "layout",
328
+ required: false
329
+ }]
330
+ }],
331
+ align: [{
332
+ type: i0.Input,
333
+ args: [{
334
+ isSignal: true,
335
+ alias: "align",
336
+ required: false
337
+ }]
338
+ }],
339
+ ariaLabel: [{
340
+ type: i0.Input,
341
+ args: [{
342
+ isSignal: true,
343
+ alias: "ariaLabel",
344
+ required: false
345
+ }]
346
+ }],
347
+ ariaLabelledBy: [{
348
+ type: i0.Input,
349
+ args: [{
350
+ isSignal: true,
351
+ alias: "ariaLabelledBy",
352
+ required: false
353
+ }]
354
+ }],
355
+ dt: [{
356
+ type: i0.Input,
357
+ args: [{
358
+ isSignal: true,
359
+ alias: "dt",
360
+ required: false
361
+ }]
362
+ }],
363
+ pt: [{
364
+ type: i0.Input,
365
+ args: [{
366
+ isSignal: true,
367
+ alias: "pt",
368
+ required: false
369
+ }]
370
+ }],
371
+ ptOptions: [{
372
+ type: i0.Input,
373
+ args: [{
374
+ isSignal: true,
375
+ alias: "ptOptions",
376
+ required: false
377
+ }]
378
+ }],
379
+ unstyled: [{
380
+ type: i0.Input,
381
+ args: [{
382
+ isSignal: true,
383
+ alias: "unstyled",
384
+ required: false
385
+ }]
386
+ }],
387
+ contentTemplate: [{
388
+ type: i0.ContentChild,
389
+ args: [i0.forwardRef(() => TxTimelineContent), { isSignal: true }]
390
+ }],
391
+ oppositeTemplate: [{
392
+ type: i0.ContentChild,
393
+ args: [i0.forwardRef(() => TxTimelineOpposite), { isSignal: true }]
394
+ }],
395
+ markerTemplate: [{
396
+ type: i0.ContentChild,
397
+ args: [i0.forwardRef(() => TxTimelineMarker), { isSignal: true }]
398
+ }],
399
+ connectorTemplate: [{
400
+ type: i0.ContentChild,
401
+ args: [i0.forwardRef(() => TxTimelineConnector), { isSignal: true }]
402
+ }]
403
+ }
404
+ });
405
+ export { TxTimeline, TxTimelineConnector, TxTimelineContent, TxTimelineMarker, TxTimelineOpposite };
406
+
407
+ //# sourceMappingURL=tectra-ng-ui-timeline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-timeline.mjs","names":[],"sources":["../../../../packages/ui/timeline/src/timeline.templates.ts","../../../../packages/ui/timeline/src/timeline.component.ts","../../../../packages/ui/timeline/src/timeline.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxTimelineEventContext } from './timeline.types';\n\n@Directive({ selector: 'ng-template[txTimelineContent]' })\nexport class TxTimelineContent<T = unknown> {\n readonly templateRef = inject<TemplateRef<TxTimelineEventContext<T>>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTimelineOpposite]' })\nexport class TxTimelineOpposite<T = unknown> {\n readonly templateRef = inject<TemplateRef<TxTimelineEventContext<T>>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTimelineMarker]' })\nexport class TxTimelineMarker<T = unknown> {\n readonly templateRef = inject<TemplateRef<TxTimelineEventContext<T>>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txTimelineConnector]' })\nexport class TxTimelineConnector<T = unknown> {\n readonly templateRef = inject<TemplateRef<TxTimelineEventContext<T>>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraTimelineTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxTimelineConnector, TxTimelineContent, TxTimelineMarker, TxTimelineOpposite } from './timeline.templates';\nimport { TxTimelineAlign, TxTimelineEventContext, TxTimelineLayout, TxTimelinePart } from './timeline.types';\n\n@Component({\n selector: 'tx-timeline',\n imports: [NgTemplateOutlet],\n templateUrl: './timeline.component.html',\n styleUrl: './timeline.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-timeline',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-layout]': 'layout()',\n '[attr.data-align]': 'resolvedAlign()',\n },\n})\nexport class TxTimeline<T = unknown> {\n readonly value = input<readonly T[] | null | undefined>([]);\n readonly layout = input<TxTimelineLayout>('vertical');\n readonly align = input<TxTimelineAlign | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraTimelineTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxTimelinePart, TxTimeline<T>> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n protected readonly contentTemplate = contentChild(TxTimelineContent);\n protected readonly oppositeTemplate = contentChild(TxTimelineOpposite);\n protected readonly markerTemplate = contentChild(TxTimelineMarker);\n protected readonly connectorTemplate = contentChild(TxTimelineConnector);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('timeline', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-timeline'), ...this.passThrough().root?.style }));\n readonly resolvedAlign = computed<TxTimelineAlign>(() => this.align() ?? (this.layout() === 'horizontal' ? 'top' : 'left'));\n\n protected readonly events = computed(() => {\n const items = this.value() ?? [];\n return items.map<TxTimelineEventContext<T>>((item, index) => ({\n $implicit: item,\n index,\n first: index === 0,\n last: index === items.length - 1,\n }));\n });\n}\n","<ol\n class=\"tx-timeline__list\"\n [class]=\"passThrough().list?.class\"\n [style]=\"passThrough().list?.style\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n>\n @for (event of events(); track $index) {\n <li class=\"tx-timeline__event\" [class]=\"passThrough().event?.class\" [style]=\"passThrough().event?.style\">\n <div\n class=\"tx-timeline__opposite\"\n [class]=\"passThrough().eventOpposite?.class\"\n [style]=\"passThrough().eventOpposite?.style\"\n >\n @if (oppositeTemplate(); as opposite) {\n <ng-container *ngTemplateOutlet=\"opposite.templateRef; context: event\" />\n }\n </div>\n <div\n class=\"tx-timeline__separator\"\n [class]=\"passThrough().eventSeparator?.class\"\n [style]=\"passThrough().eventSeparator?.style\"\n >\n @if (markerTemplate(); as marker) {\n <ng-container *ngTemplateOutlet=\"marker.templateRef; context: event\" />\n } @else {\n <span\n class=\"tx-timeline__marker\"\n aria-hidden=\"true\"\n [class]=\"passThrough().eventMarker?.class\"\n [style]=\"passThrough().eventMarker?.style\"\n ></span>\n }\n @if (!event.last) {\n @if (connectorTemplate(); as connector) {\n <ng-container *ngTemplateOutlet=\"connector.templateRef; context: event\" />\n } @else {\n <span\n class=\"tx-timeline__connector\"\n aria-hidden=\"true\"\n [class]=\"passThrough().eventConnector?.class\"\n [style]=\"passThrough().eventConnector?.style\"\n ></span>\n }\n }\n </div>\n <div\n class=\"tx-timeline__content\"\n [class]=\"passThrough().eventContent?.class\"\n [style]=\"passThrough().eventContent?.style\"\n >\n @if (contentTemplate(); as content) {\n <ng-container *ngTemplateOutlet=\"content.templateRef; context: event\" />\n }\n </div>\n </li>\n }\n</ol>\n"],"mappings":";;;;;;AAIA,IAAa,oBAAb,MAAa,kBAAiB;CACnB,cAAc,OAA+C,WAAW;CADtE,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EA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AAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,iBAAiB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,kBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAChB,kBAAkB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACpB,gBAAgB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACb,mBAAmB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -321,7 +321,7 @@ var TxToggleSwitch = class TxToggleSwitch extends TxFormControlBase {
321
321
  usesInheritance: true,
322
322
  ngImport: i0,
323
323
  template: "<span class=\"tx-toggle-switch__track\" [class]=\"passThrough().track?.class\" [style]=\"passThrough().track?.style\">\n <input\n #input\n type=\"checkbox\"\n role=\"switch\"\n class=\"tx-toggle-switch__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.aria-checked]=\"checked()\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-toggle-switch__handle\" aria-hidden=\"true\" [class]=\"passThrough().handle?.class\" [style]=\"passThrough().handle?.style\">\n @if (handleTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked() }\" />\n } @else if (handleIcon(); as icon) {\n @if (handleIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-toggle-switch__text\">\n <label class=\"tx-toggle-switch__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span\n class=\"tx-toggle-switch__description\"\n [id]=\"descriptionId\"\n [class]=\"passThrough().description?.class\"\n [style]=\"passThrough().description?.style\"\n >{{ description() }}</span\n >\n }\n</span>\n",
324
- styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-label-position=start]){flex-direction:row-reverse}:host([data-styled]){--_width: var(--tx-toggle-switch-width);--_height: var(--tx-toggle-switch-height);--_handle: var(--tx-toggle-switch-handle-size);--_icon: var(--tx-toggle-switch-handle-icon-size);--_label-font-size: var(--tx-toggle-switch-label-font-size);gap:var(--tx-toggle-switch-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_width: var(--tx-toggle-switch-sm-width);--_height: var(--tx-toggle-switch-sm-height);--_handle: var(--tx-toggle-switch-sm-handle-size);--_icon: var(--tx-toggle-switch-sm-icon-size);--_label-font-size: var(--tx-toggle-switch-sm-label-font-size)}:host([data-styled][data-size=large]){--_width: var(--tx-toggle-switch-lg-width);--_height: var(--tx-toggle-switch-lg-height);--_handle: var(--tx-toggle-switch-lg-handle-size);--_icon: var(--tx-toggle-switch-lg-icon-size);--_label-font-size: var(--tx-toggle-switch-lg-label-font-size)}.tx-toggle-switch__track{position:relative;display:inline-flex;flex-shrink:0}.tx-toggle-switch__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-toggle-switch__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-toggle-switch__track{width:var(--_width);height:var(--_height);margin-top:max(0px,(var(--_label-font-size) * 1.5 - var(--_height)) / 2);border-radius:var(--tx-toggle-switch-border-radius);background:var(--tx-toggle-switch-background);transition:background-color var(--tx-toggle-switch-transition-duration)}:host([data-styled]) .tx-toggle-switch__handle{position:absolute;top:50%;left:var(--tx-toggle-switch-gutter);display:inline-flex;align-items:center;justify-content:center;width:var(--_handle);height:var(--_handle);border-radius:50%;background:var(--tx-toggle-switch-handle-background);box-shadow:var(--tx-toggle-switch-handle-shadow);color:var(--tx-toggle-switch-handle-icon-color);font-size:var(--_icon);transform:translateY(-50%);transition:left var(--tx-toggle-switch-transition-duration) cubic-bezier(.2,0,0,1),background-color var(--tx-toggle-switch-transition-duration),color var(--tx-toggle-switch-transition-duration)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__track{background:var(--tx-toggle-switch-checked-background)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__handle{left:calc(100% - var(--_handle) - var(--tx-toggle-switch-gutter));background:var(--tx-toggle-switch-handle-checked-background);color:var(--tx-toggle-switch-handle-checked-icon-color)}:host([data-styled]:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{background:var(--tx-toggle-switch-hover-background)}:host([data-styled].tx-toggle-switch--checked:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{background:var(--tx-toggle-switch-checked-hover-background)}:host([data-styled]) .tx-toggle-switch__track:has(.tx-toggle-switch__input:focus-visible){outline:var(--tx-toggle-switch-focus-ring-width) solid var(--tx-toggle-switch-focus-ring-color);outline-offset:var(--tx-toggle-switch-focus-ring-offset)}:host([data-styled].tx-toggle-switch--invalid) .tx-toggle-switch__track{box-shadow:0 0 0 1px var(--tx-toggle-switch-invalid-ring-color)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-background)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__handle{background:var(--tx-toggle-switch-handle-disabled-background);box-shadow:none}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__label{color:var(--tx-toggle-switch-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-toggle-switch--disabled.tx-toggle-switch--checked) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-checked-background)}:host(.tx-toggle-switch--readonly) .tx-toggle-switch__input,:host(.tx-toggle-switch--readonly) .tx-toggle-switch__label{cursor:default}.tx-toggle-switch__text{display:flex;flex-direction:column;min-width:0}.tx-toggle-switch__label:empty{display:none}:host([data-styled]) .tx-toggle-switch__label{color:var(--tx-toggle-switch-label-color);font-size:var(--_label-font-size);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-toggle-switch__description{color:var(--tx-toggle-switch-description-color);font-size:var(--tx-toggle-switch-description-font-size);line-height:1.45}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-toggle-switch__track,:host([data-styled]) .tx-toggle-switch__handle{transition:none}}\n"],
324
+ styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-label-position=start]){flex-direction:row-reverse}:host([data-styled]){--_width: var(--tx-toggle-switch-width);--_height: var(--tx-toggle-switch-height);--_handle: var(--tx-toggle-switch-handle-size);--_icon: var(--tx-toggle-switch-handle-icon-size);--_label-font-size: var(--tx-toggle-switch-label-font-size);gap:var(--tx-toggle-switch-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_width: var(--tx-toggle-switch-sm-width);--_height: var(--tx-toggle-switch-sm-height);--_handle: var(--tx-toggle-switch-sm-handle-size);--_icon: var(--tx-toggle-switch-sm-icon-size);--_label-font-size: var(--tx-toggle-switch-sm-label-font-size)}:host([data-styled][data-size=large]){--_width: var(--tx-toggle-switch-lg-width);--_height: var(--tx-toggle-switch-lg-height);--_handle: var(--tx-toggle-switch-lg-handle-size);--_icon: var(--tx-toggle-switch-lg-icon-size);--_label-font-size: var(--tx-toggle-switch-lg-label-font-size)}.tx-toggle-switch__track{position:relative;display:inline-flex;flex-shrink:0}.tx-toggle-switch__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-toggle-switch__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-toggle-switch__track{width:var(--_width);height:var(--_height);box-sizing:border-box;margin-top:max(0px,(var(--_label-font-size) * 1.5 - var(--_height)) / 2);border:var(--tx-toggle-switch-border-width) solid var(--tx-toggle-switch-border-color);border-radius:var(--tx-toggle-switch-border-radius);background:var(--tx-toggle-switch-background);transition:background-color var(--tx-toggle-switch-transition-duration),border-color var(--tx-toggle-switch-transition-duration)}:host([data-styled]) .tx-toggle-switch__handle{position:absolute;top:50%;left:var(--tx-toggle-switch-gutter);display:inline-flex;align-items:center;justify-content:center;width:var(--_handle);height:var(--_handle);border-radius:50%;background:var(--tx-toggle-switch-handle-background);box-shadow:var(--tx-toggle-switch-handle-shadow);color:var(--tx-toggle-switch-handle-icon-color);font-size:var(--_icon);transform:translateY(-50%);transition:left var(--tx-toggle-switch-transition-duration) cubic-bezier(.2,0,0,1),background-color var(--tx-toggle-switch-transition-duration),color var(--tx-toggle-switch-transition-duration)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__track{border-color:var(--tx-toggle-switch-checked-border-color);background:var(--tx-toggle-switch-checked-background)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__handle{left:calc(100% - var(--_handle) - var(--tx-toggle-switch-gutter));background:var(--tx-toggle-switch-handle-checked-background);color:var(--tx-toggle-switch-handle-checked-icon-color)}:host([data-styled]:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{border-color:var(--tx-toggle-switch-hover-border-color);background:var(--tx-toggle-switch-hover-background)}:host([data-styled].tx-toggle-switch--checked:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{border-color:var(--tx-toggle-switch-checked-hover-border-color);background:var(--tx-toggle-switch-checked-hover-background)}:host([data-styled]) .tx-toggle-switch__track:has(.tx-toggle-switch__input:focus-visible){outline:var(--tx-toggle-switch-focus-ring-width) solid var(--tx-toggle-switch-focus-ring-color);outline-offset:var(--tx-toggle-switch-focus-ring-offset)}:host([data-styled].tx-toggle-switch--invalid) .tx-toggle-switch__track{box-shadow:0 0 0 1px var(--tx-toggle-switch-invalid-ring-color)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-background)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__handle{background:var(--tx-toggle-switch-handle-disabled-background);box-shadow:none}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__label{color:var(--tx-toggle-switch-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-toggle-switch--disabled.tx-toggle-switch--checked) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-checked-background)}:host(.tx-toggle-switch--readonly) .tx-toggle-switch__input,:host(.tx-toggle-switch--readonly) .tx-toggle-switch__label{cursor:default}.tx-toggle-switch__text{display:flex;flex-direction:column;min-width:0}.tx-toggle-switch__label:empty{display:none}:host([data-styled]) .tx-toggle-switch__label{color:var(--tx-toggle-switch-label-color);font-size:var(--_label-font-size);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-toggle-switch__description{color:var(--tx-toggle-switch-description-color);font-size:var(--tx-toggle-switch-description-font-size);line-height:1.45}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-toggle-switch__track,:host([data-styled]) .tx-toggle-switch__handle{transition:none}}\n"],
325
325
  dependencies: [{
326
326
  kind: "directive",
327
327
  type: NgTemplateOutlet,
@@ -369,7 +369,7 @@ i0.ɵɵngDeclareClassMetadata({
369
369
  "[class.tx-toggle-switch--invalid]": "isInvalid()"
370
370
  },
371
371
  template: "<span class=\"tx-toggle-switch__track\" [class]=\"passThrough().track?.class\" [style]=\"passThrough().track?.style\">\n <input\n #input\n type=\"checkbox\"\n role=\"switch\"\n class=\"tx-toggle-switch__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.aria-checked]=\"checked()\"\n [attr.name]=\"name() ?? null\"\n [attr.tabindex]=\"tabindex() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n (click)=\"onInputClick($event)\"\n (change)=\"onInputChange($event)\"\n (blur)=\"onBlur()\"\n />\n <span class=\"tx-toggle-switch__handle\" aria-hidden=\"true\" [class]=\"passThrough().handle?.class\" [style]=\"passThrough().handle?.style\">\n @if (handleTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: checked() }\" />\n } @else if (handleIcon(); as icon) {\n @if (handleIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon\"></span>\n }\n }\n </span>\n</span>\n<span class=\"tx-toggle-switch__text\">\n <label class=\"tx-toggle-switch__label\" [for]=\"resolvedId()\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\"\n >{{ label() }}<ng-content\n /></label>\n @if (description()) {\n <span\n class=\"tx-toggle-switch__description\"\n [id]=\"descriptionId\"\n [class]=\"passThrough().description?.class\"\n [style]=\"passThrough().description?.style\"\n >{{ description() }}</span\n >\n }\n</span>\n",
372
- styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-label-position=start]){flex-direction:row-reverse}:host([data-styled]){--_width: var(--tx-toggle-switch-width);--_height: var(--tx-toggle-switch-height);--_handle: var(--tx-toggle-switch-handle-size);--_icon: var(--tx-toggle-switch-handle-icon-size);--_label-font-size: var(--tx-toggle-switch-label-font-size);gap:var(--tx-toggle-switch-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_width: var(--tx-toggle-switch-sm-width);--_height: var(--tx-toggle-switch-sm-height);--_handle: var(--tx-toggle-switch-sm-handle-size);--_icon: var(--tx-toggle-switch-sm-icon-size);--_label-font-size: var(--tx-toggle-switch-sm-label-font-size)}:host([data-styled][data-size=large]){--_width: var(--tx-toggle-switch-lg-width);--_height: var(--tx-toggle-switch-lg-height);--_handle: var(--tx-toggle-switch-lg-handle-size);--_icon: var(--tx-toggle-switch-lg-icon-size);--_label-font-size: var(--tx-toggle-switch-lg-label-font-size)}.tx-toggle-switch__track{position:relative;display:inline-flex;flex-shrink:0}.tx-toggle-switch__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-toggle-switch__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-toggle-switch__track{width:var(--_width);height:var(--_height);margin-top:max(0px,(var(--_label-font-size) * 1.5 - var(--_height)) / 2);border-radius:var(--tx-toggle-switch-border-radius);background:var(--tx-toggle-switch-background);transition:background-color var(--tx-toggle-switch-transition-duration)}:host([data-styled]) .tx-toggle-switch__handle{position:absolute;top:50%;left:var(--tx-toggle-switch-gutter);display:inline-flex;align-items:center;justify-content:center;width:var(--_handle);height:var(--_handle);border-radius:50%;background:var(--tx-toggle-switch-handle-background);box-shadow:var(--tx-toggle-switch-handle-shadow);color:var(--tx-toggle-switch-handle-icon-color);font-size:var(--_icon);transform:translateY(-50%);transition:left var(--tx-toggle-switch-transition-duration) cubic-bezier(.2,0,0,1),background-color var(--tx-toggle-switch-transition-duration),color var(--tx-toggle-switch-transition-duration)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__track{background:var(--tx-toggle-switch-checked-background)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__handle{left:calc(100% - var(--_handle) - var(--tx-toggle-switch-gutter));background:var(--tx-toggle-switch-handle-checked-background);color:var(--tx-toggle-switch-handle-checked-icon-color)}:host([data-styled]:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{background:var(--tx-toggle-switch-hover-background)}:host([data-styled].tx-toggle-switch--checked:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{background:var(--tx-toggle-switch-checked-hover-background)}:host([data-styled]) .tx-toggle-switch__track:has(.tx-toggle-switch__input:focus-visible){outline:var(--tx-toggle-switch-focus-ring-width) solid var(--tx-toggle-switch-focus-ring-color);outline-offset:var(--tx-toggle-switch-focus-ring-offset)}:host([data-styled].tx-toggle-switch--invalid) .tx-toggle-switch__track{box-shadow:0 0 0 1px var(--tx-toggle-switch-invalid-ring-color)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-background)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__handle{background:var(--tx-toggle-switch-handle-disabled-background);box-shadow:none}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__label{color:var(--tx-toggle-switch-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-toggle-switch--disabled.tx-toggle-switch--checked) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-checked-background)}:host(.tx-toggle-switch--readonly) .tx-toggle-switch__input,:host(.tx-toggle-switch--readonly) .tx-toggle-switch__label{cursor:default}.tx-toggle-switch__text{display:flex;flex-direction:column;min-width:0}.tx-toggle-switch__label:empty{display:none}:host([data-styled]) .tx-toggle-switch__label{color:var(--tx-toggle-switch-label-color);font-size:var(--_label-font-size);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-toggle-switch__description{color:var(--tx-toggle-switch-description-color);font-size:var(--tx-toggle-switch-description-font-size);line-height:1.45}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-toggle-switch__track,:host([data-styled]) .tx-toggle-switch__handle{transition:none}}\n"]
372
+ styles: [":host{display:inline-flex;align-items:flex-start;vertical-align:top}:host([data-label-position=start]){flex-direction:row-reverse}:host([data-styled]){--_width: var(--tx-toggle-switch-width);--_height: var(--tx-toggle-switch-height);--_handle: var(--tx-toggle-switch-handle-size);--_icon: var(--tx-toggle-switch-handle-icon-size);--_label-font-size: var(--tx-toggle-switch-label-font-size);gap:var(--tx-toggle-switch-gap);font-family:var(--tx-font-family)}:host([data-styled][data-size=small]){--_width: var(--tx-toggle-switch-sm-width);--_height: var(--tx-toggle-switch-sm-height);--_handle: var(--tx-toggle-switch-sm-handle-size);--_icon: var(--tx-toggle-switch-sm-icon-size);--_label-font-size: var(--tx-toggle-switch-sm-label-font-size)}:host([data-styled][data-size=large]){--_width: var(--tx-toggle-switch-lg-width);--_height: var(--tx-toggle-switch-lg-height);--_handle: var(--tx-toggle-switch-lg-handle-size);--_icon: var(--tx-toggle-switch-lg-icon-size);--_label-font-size: var(--tx-toggle-switch-lg-label-font-size)}.tx-toggle-switch__track{position:relative;display:inline-flex;flex-shrink:0}.tx-toggle-switch__input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.tx-toggle-switch__input:disabled{cursor:not-allowed}:host([data-styled]) .tx-toggle-switch__track{width:var(--_width);height:var(--_height);box-sizing:border-box;margin-top:max(0px,(var(--_label-font-size) * 1.5 - var(--_height)) / 2);border:var(--tx-toggle-switch-border-width) solid var(--tx-toggle-switch-border-color);border-radius:var(--tx-toggle-switch-border-radius);background:var(--tx-toggle-switch-background);transition:background-color var(--tx-toggle-switch-transition-duration),border-color var(--tx-toggle-switch-transition-duration)}:host([data-styled]) .tx-toggle-switch__handle{position:absolute;top:50%;left:var(--tx-toggle-switch-gutter);display:inline-flex;align-items:center;justify-content:center;width:var(--_handle);height:var(--_handle);border-radius:50%;background:var(--tx-toggle-switch-handle-background);box-shadow:var(--tx-toggle-switch-handle-shadow);color:var(--tx-toggle-switch-handle-icon-color);font-size:var(--_icon);transform:translateY(-50%);transition:left var(--tx-toggle-switch-transition-duration) cubic-bezier(.2,0,0,1),background-color var(--tx-toggle-switch-transition-duration),color var(--tx-toggle-switch-transition-duration)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__track{border-color:var(--tx-toggle-switch-checked-border-color);background:var(--tx-toggle-switch-checked-background)}:host([data-styled].tx-toggle-switch--checked) .tx-toggle-switch__handle{left:calc(100% - var(--_handle) - var(--tx-toggle-switch-gutter));background:var(--tx-toggle-switch-handle-checked-background);color:var(--tx-toggle-switch-handle-checked-icon-color)}:host([data-styled]:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{border-color:var(--tx-toggle-switch-hover-border-color);background:var(--tx-toggle-switch-hover-background)}:host([data-styled].tx-toggle-switch--checked:not(.tx-toggle-switch--disabled):not(.tx-toggle-switch--readonly)) .tx-toggle-switch__track:hover{border-color:var(--tx-toggle-switch-checked-hover-border-color);background:var(--tx-toggle-switch-checked-hover-background)}:host([data-styled]) .tx-toggle-switch__track:has(.tx-toggle-switch__input:focus-visible){outline:var(--tx-toggle-switch-focus-ring-width) solid var(--tx-toggle-switch-focus-ring-color);outline-offset:var(--tx-toggle-switch-focus-ring-offset)}:host([data-styled].tx-toggle-switch--invalid) .tx-toggle-switch__track{box-shadow:0 0 0 1px var(--tx-toggle-switch-invalid-ring-color)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-background)}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__handle{background:var(--tx-toggle-switch-handle-disabled-background);box-shadow:none}:host([data-styled].tx-toggle-switch--disabled) .tx-toggle-switch__label{color:var(--tx-toggle-switch-disabled-label-color);cursor:not-allowed}:host([data-styled].tx-toggle-switch--disabled.tx-toggle-switch--checked) .tx-toggle-switch__track{background:var(--tx-toggle-switch-disabled-checked-background)}:host(.tx-toggle-switch--readonly) .tx-toggle-switch__input,:host(.tx-toggle-switch--readonly) .tx-toggle-switch__label{cursor:default}.tx-toggle-switch__text{display:flex;flex-direction:column;min-width:0}.tx-toggle-switch__label:empty{display:none}:host([data-styled]) .tx-toggle-switch__label{color:var(--tx-toggle-switch-label-color);font-size:var(--_label-font-size);line-height:1.5;cursor:pointer}:host([data-styled]) .tx-toggle-switch__description{color:var(--tx-toggle-switch-description-color);font-size:var(--tx-toggle-switch-description-font-size);line-height:1.45}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-toggle-switch__track,:host([data-styled]) .tx-toggle-switch__handle{transition:none}}\n"]
373
373
  }]
374
374
  }],
375
375
  propDecorators: {