@tectra-ng/ui 0.3.2 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +2 -2
  2. package/data-view/README.md +9 -1
  3. package/dialog/README.md +3 -0
  4. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
  19. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  31. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  43. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-ui-table.mjs +2 -2
  45. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  50. package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
  51. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  52. package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
  53. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  55. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  56. package/fesm2022/tectra-ng-ui.mjs +1 -1
  57. package/fesm2022/tectra-ng-ui.mjs.map +1 -1
  58. package/package.json +4 -4
  59. package/table/README.md +1 -0
  60. package/tree-select/README.md +1 -0
  61. package/types/tectra-ng-ui-accordion.d.ts +96 -65
  62. package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
  63. package/types/tectra-ng-ui-amount.d.ts +40 -17
  64. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  65. package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
  66. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  67. package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
  68. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  69. package/types/tectra-ng-ui-avatar.d.ts +84 -259
  70. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  71. package/types/tectra-ng-ui-badge.d.ts +18 -61
  72. package/types/tectra-ng-ui-badge.d.ts.map +1 -1
  73. package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
  74. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
  75. package/types/tectra-ng-ui-button-group.d.ts +4 -0
  76. package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
  77. package/types/tectra-ng-ui-button.d.ts +45 -266
  78. package/types/tectra-ng-ui-button.d.ts.map +1 -1
  79. package/types/tectra-ng-ui-card.d.ts +14 -16
  80. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  81. package/types/tectra-ng-ui-carousel.d.ts +55 -27
  82. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  83. package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
  84. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  85. package/types/tectra-ng-ui-checkbox.d.ts +79 -119
  86. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  87. package/types/tectra-ng-ui-chip.d.ts +19 -22
  88. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  89. package/types/tectra-ng-ui-chips-input.d.ts +41 -11
  90. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  91. package/types/tectra-ng-ui-color-picker.d.ts +51 -47
  92. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  93. package/types/tectra-ng-ui-confirm.d.ts +45 -0
  94. package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
  95. package/types/tectra-ng-ui-countdown.d.ts +42 -10
  96. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  97. package/types/tectra-ng-ui-country-select.d.ts +41 -96
  98. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  99. package/types/tectra-ng-ui-country.d.ts +40 -17
  100. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  101. package/types/tectra-ng-ui-data-view.d.ts +92 -34
  102. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  103. package/types/tectra-ng-ui-datepicker.d.ts +186 -147
  104. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  105. package/types/tectra-ng-ui-dialog.d.ts +149 -67
  106. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  107. package/types/tectra-ng-ui-divider.d.ts +17 -12
  108. package/types/tectra-ng-ui-divider.d.ts.map +1 -1
  109. package/types/tectra-ng-ui-drawer.d.ts +31 -67
  110. package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
  111. package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
  112. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
  113. package/types/tectra-ng-ui-export-font.d.ts +1 -0
  114. package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
  115. package/types/tectra-ng-ui-export.d.ts +238 -0
  116. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  117. package/types/tectra-ng-ui-field.d.ts +24 -11
  118. package/types/tectra-ng-ui-field.d.ts.map +1 -1
  119. package/types/tectra-ng-ui-fieldset.d.ts +14 -23
  120. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  121. package/types/tectra-ng-ui-file-upload.d.ts +127 -115
  122. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  123. package/types/tectra-ng-ui-galleria.d.ts +84 -84
  124. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  125. package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
  126. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
  127. package/types/tectra-ng-ui-icon-field.d.ts +20 -0
  128. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  129. package/types/tectra-ng-ui-image.d.ts +60 -36
  130. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  131. package/types/tectra-ng-ui-input-group.d.ts +9 -0
  132. package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
  133. package/types/tectra-ng-ui-input-mask.d.ts +39 -0
  134. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
  135. package/types/tectra-ng-ui-input-number.d.ts +73 -15
  136. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  137. package/types/tectra-ng-ui-input-otp.d.ts +28 -21
  138. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  139. package/types/tectra-ng-ui-input.d.ts +17 -50
  140. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  141. package/types/tectra-ng-ui-key-filter.d.ts +14 -0
  142. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  143. package/types/tectra-ng-ui-knob.d.ts +38 -18
  144. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  145. package/types/tectra-ng-ui-label.d.ts +19 -0
  146. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  147. package/types/tectra-ng-ui-link.d.ts +39 -34
  148. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  149. package/types/tectra-ng-ui-list-input.d.ts +54 -45
  150. package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
  151. package/types/tectra-ng-ui-listbox.d.ts +24 -14
  152. package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
  153. package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
  154. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  155. package/types/tectra-ng-ui-menu.d.ts +92 -166
  156. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  157. package/types/tectra-ng-ui-menubar.d.ts +29 -58
  158. package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
  159. package/types/tectra-ng-ui-message.d.ts +61 -126
  160. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  161. package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
  162. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  163. package/types/tectra-ng-ui-multiselect.d.ts +26 -96
  164. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  165. package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
  166. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
  167. package/types/tectra-ng-ui-paginator.d.ts +69 -47
  168. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  169. package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
  170. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  171. package/types/tectra-ng-ui-panel.d.ts +22 -30
  172. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  173. package/types/tectra-ng-ui-password-generator.d.ts +27 -0
  174. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
  175. package/types/tectra-ng-ui-password.d.ts +55 -26
  176. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  177. package/types/tectra-ng-ui-pill.d.ts +23 -70
  178. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  179. package/types/tectra-ng-ui-popover.d.ts +58 -46
  180. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  181. package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
  182. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  183. package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
  184. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
  185. package/types/tectra-ng-ui-radio-button.d.ts +64 -115
  186. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  187. package/types/tectra-ng-ui-rating.d.ts +40 -29
  188. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  189. package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
  190. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
  191. package/types/tectra-ng-ui-select.d.ts +169 -100
  192. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  193. package/types/tectra-ng-ui-skeleton.d.ts +34 -37
  194. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
  195. package/types/tectra-ng-ui-slider.d.ts +37 -33
  196. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  197. package/types/tectra-ng-ui-sparkline.d.ts +22 -15
  198. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
  199. package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
  200. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  201. package/types/tectra-ng-ui-split-button.d.ts +28 -7
  202. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  203. package/types/tectra-ng-ui-splitter.d.ts +47 -23
  204. package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
  205. package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
  206. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  207. package/types/tectra-ng-ui-status-icon.d.ts +19 -23
  208. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  209. package/types/tectra-ng-ui-stepper.d.ts +106 -133
  210. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  211. package/types/tectra-ng-ui-table.d.ts +415 -183
  212. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  213. package/types/tectra-ng-ui-tabs.d.ts +91 -133
  214. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  215. package/types/tectra-ng-ui-tag.d.ts +46 -135
  216. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  217. package/types/tectra-ng-ui-textarea.d.ts +25 -31
  218. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  219. package/types/tectra-ng-ui-timeline.d.ts +39 -27
  220. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  221. package/types/tectra-ng-ui-toast.d.ts +84 -78
  222. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  223. package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
  224. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
  225. package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
  226. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  227. package/types/tectra-ng-ui-toolbar.d.ts +15 -14
  228. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
  229. package/types/tectra-ng-ui-tooltip.d.ts +72 -22
  230. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  231. package/types/tectra-ng-ui-tree-select.d.ts +65 -104
  232. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  233. package/types/tectra-ng-ui-tree-table.d.ts +30 -0
  234. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
  235. package/types/tectra-ng-ui-tree.d.ts +197 -69
  236. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  237. package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
  238. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  239. package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
  240. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  241. package/types/tectra-ng-ui.d.ts +2 -1
  242. package/types/tectra-ng-ui.d.ts.map +1 -1
@@ -2,125 +2,70 @@ import * as i0 from "@angular/core";
2
2
  import { TemplateRef } from "@angular/core";
3
3
  import { TxPassThroughOptions, TxValidationMessages } from "@tectra-ng/core/config";
4
4
  import { TxIconName } from "@tectra-ng/icons";
5
- import { TectraDeepPartial } from "@tectra-ng/themes";
5
+ import { TectraDeepPartial, TectraFieldMessageTokens, TectraMessageTokens } from "@tectra-ng/themes";
6
6
  import { AbstractControl } from "@angular/forms";
7
+ /** Color role of `tx-message`. */
7
8
  export type TxMessageSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
9
+ /** Size of `tx-message`. */
8
10
  export type TxMessageSize = 'small' | 'medium' | 'large';
11
+ /** Look of `tx-message`: outlined, text only or simple. */
9
12
  export type TxMessageVariant = 'outlined' | 'text' | 'simple';
13
+ /** Parts of `tx-message` that `pt` can style. */
10
14
  export type TxMessagePart = 'root' | 'icon' | 'content' | 'closeButton';
15
+ /** Tone of a field hint: neutral (`secondary`) or `success`. */
11
16
  export type TxFieldHintSeverity = 'secondary' | 'success';
17
+ /** Parts of a field hint or error that `pt` can style. */
12
18
  export type TxFieldMessagePart = 'root' | 'icon' | 'text';
19
+ /**
20
+ * `<ng-template txMessageIcon>` — own icon
21
+ * @see https://tectra-ng.com/components/message
22
+ */
13
23
  export declare class TxMessageIconTemplate {
14
24
  readonly templateRef: TemplateRef<any>;
15
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TxMessageIconTemplate, never>;
16
26
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxMessageIconTemplate, "ng-template[txMessageIcon]", never, {}, {}, never, never, true, never>;
17
27
  }
28
+ /**
29
+ * `<ng-template txMessageCloseIcon>` — own close icon
30
+ * @see https://tectra-ng.com/components/message
31
+ */
18
32
  export declare class TxMessageCloseIconTemplate {
19
33
  readonly templateRef: TemplateRef<any>;
20
34
  static ɵfac: i0.ɵɵFactoryDeclaration<TxMessageCloseIconTemplate, never>;
21
35
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxMessageCloseIconTemplate, "ng-template[txMessageCloseIcon]", never, {}, {}, never, never, true, never>;
22
36
  }
37
+ /**
38
+ * Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a close button — for notices on a page or inside a form. `<tx-field-hint>` and `<tx-field-error>` sit under a field: a help text, and the first validation error of a form control with built-in texts in every locale.
39
+ * @see https://tectra-ng.com/components/message
40
+ */
23
41
  export declare class TxMessage {
24
42
  private readonly messageTheme;
25
43
  private txIconRegistry;
44
+ /** `primary`, `secondary`, `success`, `info`, `warn`, `danger`, `help`, `contrast`. `tx-field-hint`: `secondary` or `success` */
26
45
  readonly severity: import("@angular/core").InputSignal<TxMessageSeverity>;
46
+ /** the text; without it the content is shown */
27
47
  readonly text: import("@angular/core").InputSignal<string | undefined>;
48
+ /** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default */
28
49
  readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
50
+ /** `small`, `medium`, `large` */
29
51
  readonly size: import("@angular/core").InputSignal<TxMessageSize>;
52
+ /** tinted box by default, `outlined` without the fill, `text` without the box, `simple` without the box and padding */
30
53
  readonly variant: import("@angular/core").InputSignal<TxMessageVariant | undefined>;
54
+ /** shows a close button */
31
55
  readonly closable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
56
+ /** icon of the close button */
32
57
  readonly closeIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
58
+ /** closes itself after this many milliseconds */
33
59
  readonly life: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
34
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
35
- root: {
36
- borderRadius: string;
37
- borderColor: string;
38
- borderTint: string;
39
- borderWidth: string;
40
- outlinedBorderWidth: string;
41
- background: string;
42
- backgroundTint: string;
43
- color: string;
44
- gap: string;
45
- paddingY: string;
46
- paddingStart: string;
47
- paddingEnd: string;
48
- fontSize: string;
49
- fontWeight: string;
50
- lineHeight: string;
51
- accentWidth: string;
52
- transitionDuration: string;
53
- };
54
- icon: {
55
- size: string;
56
- fontSize: string;
57
- tint: string;
58
- };
59
- closeButton: {
60
- size: string;
61
- borderRadius: string;
62
- color: string;
63
- hoverColor: string;
64
- hoverBackground: string;
65
- fontSize: string;
66
- focusRingWidth: string;
67
- focusRingOffset: string;
68
- focusRingShadow: string;
69
- };
70
- sm: {
71
- gap: string;
72
- paddingY: string;
73
- paddingStart: string;
74
- paddingEnd: string;
75
- fontSize: string;
76
- iconSize: string;
77
- iconFontSize: string;
78
- };
79
- lg: {
80
- gap: string;
81
- paddingY: string;
82
- paddingStart: string;
83
- paddingEnd: string;
84
- fontSize: string;
85
- iconSize: string;
86
- iconFontSize: string;
87
- };
88
- primary: {
89
- tone: string;
90
- text: string;
91
- };
92
- info: {
93
- tone: string;
94
- text: string;
95
- };
96
- success: {
97
- tone: string;
98
- text: string;
99
- };
100
- warn: {
101
- tone: string;
102
- text: string;
103
- };
104
- danger: {
105
- tone: string;
106
- text: string;
107
- };
108
- help: {
109
- tone: string;
110
- text: string;
111
- };
112
- secondary: {
113
- tone: string;
114
- text: string;
115
- };
116
- contrast: {
117
- tone: string;
118
- text: string;
119
- };
120
- }> | undefined>;
60
+ /** Design tokens of this instance (`message` or `fieldMessage`) */
61
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMessageTokens> | undefined>;
62
+ /** Classes and styles of the parts: `root`, `icon`, `content`, `closeButton` (message); `root`, `icon`, `text` (hint, error) */
121
63
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMessagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxMessage>>> | undefined>;
64
+ /** How `pt` merges with the global pass-through */
122
65
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
66
+ /** Removes the tectra styles, keeps behaviour and ARIA */
123
67
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
68
+ /** closed by the button or after `life` — fires when the leave animation ends, so removing the message here keeps the animation */
124
69
  readonly closed: import("@angular/core").OutputEmitterRef<void>;
125
70
  readonly iconTemplate: import("@angular/core").Signal<TxMessageIconTemplate | undefined>;
126
71
  readonly closeIconTemplate: import("@angular/core").Signal<TxMessageCloseIconTemplate | undefined>;
@@ -207,35 +152,28 @@ export declare class TxMessage {
207
152
  "closed": "closed";
208
153
  }, ["iconTemplate", "closeIconTemplate"], ["*"], true, never>;
209
154
  }
155
+ /**
156
+ * Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a close button — for notices on a page or inside a form. `<tx-field-hint>` and `<tx-field-error>` sit under a field: a help text, and the first validation error of a form control with built-in texts in every locale.
157
+ * @see https://tectra-ng.com/components/message
158
+ */
210
159
  export declare class TxFieldHint {
211
160
  private readonly messageTheme;
212
161
  private txIconRegistry;
213
162
  private generatedId;
163
+ /** `tx-field-hint`, `tx-field-error`: id of the field; adds this text to its `aria-describedby` */
214
164
  readonly for: import("@angular/core").InputSignal<string | undefined>;
165
+ /** `tx-field-hint`, `tx-field-error`: own id instead of a generated one */
215
166
  readonly id: import("@angular/core").InputSignal<string | undefined>;
216
167
  readonly severity: import("@angular/core").InputSignal<TxFieldHintSeverity>;
168
+ /** Icon name (`exclamation-triangle`, also `pi-exclamation-triangle`) or an icon class; no icon by default */
217
169
  readonly icon: import("@angular/core").InputSignal<TxIconName | (string & {}) | undefined>;
218
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
219
- root: {
220
- fontSize: string;
221
- lineHeight: string;
222
- gap: string;
223
- marginTop: string;
224
- iconSize: string;
225
- transitionDuration: string;
226
- };
227
- hint: {
228
- color: string;
229
- };
230
- success: {
231
- color: string;
232
- };
233
- error: {
234
- color: string;
235
- };
236
- }> | undefined>;
170
+ /** Design tokens of this instance (`message` or `fieldMessage`) */
171
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldMessageTokens> | undefined>;
172
+ /** Classes and styles of the parts: `root`, `icon`, `content`, `closeButton` (message); `root`, `icon`, `text` (hint, error) */
237
173
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxFieldHint>>> | undefined>;
174
+ /** How `pt` merges with the global pass-through */
238
175
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
176
+ /** Removes the tectra styles, keeps behaviour and ARIA */
239
177
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
240
178
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
241
179
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -289,40 +227,37 @@ export declare class TxFieldHint {
289
227
  };
290
228
  }, {}, never, ["*"], true, never>;
291
229
  }
230
+ /**
231
+ * Inline feedback. `<tx-message>` is a box with a severity, an optional icon and a close button — for notices on a page or inside a form. `<tx-field-hint>` and `<tx-field-error>` sit under a field: a help text, and the first validation error of a form control with built-in texts in every locale.
232
+ * @see https://tectra-ng.com/components/message
233
+ */
292
234
  export declare class TxFieldError {
293
235
  private readonly messageTheme;
294
236
  private generatedId;
295
237
  private globalMessages;
296
238
  private translations;
297
239
  private readonly version;
240
+ /** the form control whose errors are shown (`formControl`, a group's control, or `ngModel.control`) */
298
241
  readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | undefined>;
242
+ /** an error from outside the form (e.g. the server) — shown as is, before the control's errors */
299
243
  readonly errorText: import("@angular/core").InputSignal<string | undefined>;
244
+ /** shows the error before the control is touched or changed */
300
245
  readonly showImmediately: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
246
+ /** text shown when the control has a valid value and was touched or changed */
301
247
  readonly successText: import("@angular/core").InputSignal<string | undefined>;
248
+ /** own texts per error key — a string with `{param}` or a function of the error */
302
249
  readonly messages: import("@angular/core").InputSignal<TxValidationMessages | undefined>;
250
+ /** `tx-field-hint`, `tx-field-error`: id of the field; adds this text to its `aria-describedby` */
303
251
  readonly for: import("@angular/core").InputSignal<string | undefined>;
252
+ /** `tx-field-hint`, `tx-field-error`: own id instead of a generated one */
304
253
  readonly id: import("@angular/core").InputSignal<string | undefined>;
305
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
306
- root: {
307
- fontSize: string;
308
- lineHeight: string;
309
- gap: string;
310
- marginTop: string;
311
- iconSize: string;
312
- transitionDuration: string;
313
- };
314
- hint: {
315
- color: string;
316
- };
317
- success: {
318
- color: string;
319
- };
320
- error: {
321
- color: string;
322
- };
323
- }> | undefined>;
254
+ /** Design tokens of this instance (`message` or `fieldMessage`) */
255
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldMessageTokens> | undefined>;
256
+ /** Classes and styles of the parts: `root`, `icon`, `content`, `closeButton` (message); `root`, `icon`, `text` (hint, error) */
324
257
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughValue<TxFieldError>>> | undefined>;
258
+ /** How `pt` merges with the global pass-through */
325
259
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
260
+ /** Removes the tectra styles, keeps behaviour and ARIA */
326
261
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
327
262
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
328
263
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFieldMessagePart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":";;;;;;YAAY;YACA;YACA;YACA;YACA;YACA;qBCFC;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBCwBA;mBACM;UAET;WAEC,kCAAQ,YAAA;WACR,8BAAI;WACJ,8BAAI,YAAA;WACJ,8BAAI,YAAA;WACJ,iCAAO,YAAA;WACP,kCAAQ;WACR,mCAAS,YAAA;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IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;qBCmBX;mBACM;UAET;UACA;UACA;mBACS;WAER,iCAAO,YAAA;WACP,mCAAS;WACT,yCAAe;WACf,qCAAW;WACX,kCAAQ,YAAA;WACR,6BAAG;WACH,4BAAE;WACF,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,oCAAU;WACV,mCAAS;;;WAET,kCAAQ;WAIR,oCAAU;WAaV,sCAAY;WAYZ,+BAAK;;UAUN;SAhEG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-message.d.ts","names":[],"sources":["../../../../packages/ui/message/src/message.types.ts","../../../../packages/ui/message/src/message-templates.directive.ts","../../../../packages/ui/message/src/message.component.ts","../../../../packages/ui/message/src/field-hint.component.ts","../../../../packages/ui/message/src/field-error.component.ts"],"mappings":";;;;;;;YACY;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;;;;qBCRC;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;qBAKA;WACF,aAAW;SADT,MAAA,GAAA,qBAAA;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,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;;;;;;qBCmBX;mBACM;UAET;UACA;UACA;mBACS;;WAER,iCAAO,YAAA;;WACP,mCAAS;;WACT,yCAAe;;WACf,qCAAW;;WACX,kCAAQ,YAAA;;WACR,6BAAG;;WACH,4BAAE;;WACF,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,oCAAU;WACV,mCAAS;;;WAET,kCAAQ;WAIR,oCAAU;WAaV,sCAAY;WAYZ,+BAAK;;UAUN;SAhEG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAY;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
@@ -1,197 +1,208 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { TemplateRef } from "@angular/core";
3
3
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
4
- import { TectraDeepPartial } from "@tectra-ng/themes";
4
+ import { TectraDeepPartial, TectraMonthCalendarTokens } from "@tectra-ng/themes";
5
+ /** Color role of an event, marker or dot in `tx-month-calendar`. */
5
6
  export type TxMonthCalendarTone = 'primary' | 'info' | 'success' | 'warn' | 'danger' | 'neutral';
7
+ /** A day given as a `Date` or a string such as `2025-03-14`; a plain `YYYY-MM-DD` string is read in local time. */
6
8
  export type TxMonthCalendarDateInput = Date | string;
9
+ /** Parts of `tx-month-calendar` that `pt` can style. */
7
10
  export type TxMonthCalendarPart = 'root' | 'grid' | 'head' | 'weekday' | 'week' | 'cell' | 'day' | 'number' | 'marker' | 'event' | 'more';
11
+ /** Avatar of an event: an image, or a name to show initials from. */
8
12
  export interface TxMonthCalendarAvatar {
13
+ /** Address of the avatar image. */
9
14
  src?: string | null;
15
+ /** Name used for the initials and the accessible text when there is no image. */
10
16
  name?: string | null;
11
17
  }
18
+ /** An event on `tx-month-calendar`; with an `end` it spans several days. */
12
19
  export interface TxMonthCalendarEvent<TData = unknown> {
20
+ /** Unique id of the event. */
13
21
  id: string;
22
+ /** First day of the event. */
14
23
  start: TxMonthCalendarDateInput;
24
+ /** Last day of the event, inclusive; a one-day event when empty. */
15
25
  end?: TxMonthCalendarDateInput | null;
26
+ /** Text of the event. */
16
27
  title: string;
28
+ /** Color of the event. */
17
29
  tone: TxMonthCalendarTone;
30
+ /** Avatar shown before the title. */
18
31
  avatar?: TxMonthCalendarAvatar | null;
32
+ /** Your own data, passed back in events and templates. */
19
33
  data?: TData;
20
34
  }
35
+ /** A pill in the header of one day, such as a holiday or a deadline; a dot in the compact grid. */
21
36
  export interface TxMonthCalendarMarker {
37
+ /** Day of the marker. */
22
38
  date: TxMonthCalendarDateInput;
39
+ /** Color of the marker. */
23
40
  tone: TxMonthCalendarTone;
41
+ /** Text of the marker pill in the day header. */
24
42
  label: string;
43
+ /** Icon name shown in the pill. */
25
44
  icon?: string;
26
45
  }
46
+ /** Texts of `tx-month-calendar`. */
27
47
  export interface TxMonthCalendarLabels {
48
+ /** Text of the "more" button with a `{count}` placeholder. */
28
49
  more: string;
50
+ /** Word added to the accessible name of today. */
29
51
  today: string;
52
+ /** Accessible name of the calendar grid. */
30
53
  region: string;
31
54
  }
55
+ /** One day cell of the laid out month. */
32
56
  export interface TxMonthCalendarDay {
57
+ /** Day as `YYYY-MM-DD`. */
33
58
  key: string;
59
+ /** Day as a local `Date`. */
34
60
  date: Date;
61
+ /** Day number from `dayIndex`. */
35
62
  index: number;
63
+ /** Day of the month, 1 to 31. */
36
64
  day: number;
65
+ /** Grid column of the day within its week, 1 to 7. */
37
66
  column: number;
67
+ /** `false` for days of the neighboring months shown to fill the weeks. */
38
68
  inMonth: boolean;
69
+ /** `true` for Saturday and Sunday. */
39
70
  weekend: boolean;
71
+ /** `true` for the current day. */
40
72
  today: boolean;
73
+ /** `true` for the selected day. */
41
74
  selected: boolean;
75
+ /** Markers on this day. */
42
76
  markers: TxMonthCalendarMarker[];
77
+ /** All events that cover this day. */
43
78
  events: TxMonthCalendarEvent[];
79
+ /** Tones of the first three events, shown as dots in compact cells. */
44
80
  dots: TxMonthCalendarTone[];
81
+ /** Number of events of this day that did not fit into the lanes. */
45
82
  hidden: number;
46
83
  }
84
+ /** The part of an event inside one week, drawn as one bar. */
47
85
  export interface TxMonthCalendarSegment {
86
+ /** Unique key of the segment: event id and week. */
48
87
  key: string;
88
+ /** The event the bar belongs to. */
49
89
  event: TxMonthCalendarEvent;
90
+ /** Row of the bar below the day number, starting at 0. */
50
91
  lane: number;
92
+ /** First grid column of the bar, 1 to 7. */
51
93
  column: number;
94
+ /** Number of days the bar covers in this week. */
52
95
  span: number;
96
+ /** `true` when the event begins in this week, so the bar has a rounded start. */
53
97
  startsHere: boolean;
98
+ /** `true` when the event ends in this week, so the bar has a rounded end. */
54
99
  endsHere: boolean;
55
100
  }
101
+ /** One row of the laid out month. */
56
102
  export interface TxMonthCalendarWeek {
103
+ /** First day of the week as `YYYY-MM-DD`. */
57
104
  key: string;
105
+ /** The seven days of the week. */
58
106
  days: TxMonthCalendarDay[];
107
+ /** Event bars of the week that fit into the lanes. */
59
108
  segments: TxMonthCalendarSegment[];
60
109
  }
110
+ /** A column heading of the calendar. */
61
111
  export interface TxMonthCalendarWeekday {
112
+ /** Weekday number, 0 for Sunday to 6 for Saturday. */
62
113
  key: number;
114
+ /** Short weekday name in the locale. */
63
115
  short: string;
116
+ /** Narrow weekday name in the locale, used in small widths. */
64
117
  narrow: string;
118
+ /** `true` for Saturday and Sunday. */
65
119
  weekend: boolean;
66
120
  }
121
+ /** Context of a `txMonthCalendarEvent` template: one event bar. */
67
122
  export interface TxMonthCalendarEventContext {
123
+ /** The event to render. */
68
124
  $implicit: TxMonthCalendarEvent;
125
+ /** The event to render. */
69
126
  event: TxMonthCalendarEvent;
127
+ /** The bar being drawn, with its place in the week. */
70
128
  segment: TxMonthCalendarSegment;
71
129
  }
130
+ /** Input of `buildMonthLayout`. */
72
131
  export interface TxMonthCalendarLayoutRequest {
132
+ /** Any date inside the month to lay out. */
73
133
  month: Date;
134
+ /** Events to place. */
74
135
  events: readonly TxMonthCalendarEvent[];
136
+ /** Markers to place. */
75
137
  markers: readonly TxMonthCalendarMarker[];
138
+ /** Day to mark as selected; `null` for none. */
76
139
  selectedDate: TxMonthCalendarDateInput | null;
140
+ /** Day to mark as today. */
77
141
  today: Date;
142
+ /** First weekday of a week: 0 for Sunday to 6 for Saturday. */
78
143
  weekStartsOn: number;
144
+ /** Most event rows per week; further events are counted in `hidden`. */
79
145
  maxLanes: number;
80
146
  }
147
+ /**
148
+ * `<ng-template txMonthCalendarEvent let-event let-segment="segment">` — content of a bar; `segment` has `lane`, `column`, `span`, `startsHere`, `endsHere`
149
+ * @see https://tectra-ng.com/components/month-calendar
150
+ */
81
151
  export declare class TxMonthCalendarEventTemplate {
82
152
  readonly templateRef: TemplateRef<TxMonthCalendarEventContext>;
83
153
  static ngTemplateContextGuard(_directive: TxMonthCalendarEventTemplate, context: unknown): context is TxMonthCalendarEventContext;
84
154
  static ɵfac: i0.ɵɵFactoryDeclaration<TxMonthCalendarEventTemplate, never>;
85
155
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxMonthCalendarEventTemplate, "ng-template[txMonthCalendarEvent]", never, {}, {}, never, never, true, never>;
86
156
  }
157
+ /**
158
+ * Converts a date to a whole day number (days since 1970-01-01, local calendar day); `null` when empty
159
+ * or invalid.
160
+ */
87
161
  export declare function dayIndex(value: TxMonthCalendarDateInput | null | undefined): number | null;
162
+ /** Converts a day number from `dayIndex` back to a local `Date` at midnight. */
88
163
  export declare function indexToDate(index: number): Date;
164
+ /** Lays out a month as weeks of days, with multi-day events as lane-packed segments and a count of hidden ones. */
89
165
  export declare function buildMonthLayout(request: TxMonthCalendarLayoutRequest): TxMonthCalendarWeek[];
166
+ /** Lists the seven weekday headings starting at the given weekday, with short and narrow names in the locale. */
90
167
  export declare function monthWeekdays(weekStartsOn: number, locale: string): TxMonthCalendarWeekday[];
168
+ /**
169
+ * A month grid that draws events as continuous bars across days, with day markers, a `+N` link for the events that do not fit and keyboard navigation. Give it events and markers, handle day and event clicks — for schedules, deadlines, shifts or bookings. Below 560px of its own width it turns into a compact grid with coloured dots.
170
+ * @see https://tectra-ng.com/components/month-calendar
171
+ */
91
172
  export declare class TxMonthCalendar {
92
173
  private readonly monthCalendarTheme;
93
174
  private host;
94
175
  private localeService;
95
176
  private readonly createdAt;
177
+ /** Any date inside the month to show; the month of creation by default */
96
178
  readonly month: import("@angular/core").InputSignal<Date | undefined>;
179
+ /** Bars: `{ id, start, end?, title, tone, avatar?, data? }`; `start` / `end` are `Date` or `'yyyy-MM-dd'` (local days), `end` is the inclusive last day; `tone` is `primary`, `info`, `success`, `warn`, `danger` or `neutral`; `avatar` `{ src?, name? }` shows at the start of the bar */
97
180
  readonly events: import("@angular/core").InputSignal<readonly TxMonthCalendarEvent<unknown>[]>;
181
+ /** Pills in a day header (a dot in the compact grid): `{ date, tone, label, icon? }` */
98
182
  readonly markers: import("@angular/core").InputSignal<readonly TxMonthCalendarMarker[]>;
183
+ /** Highlighted day: a `Date` or `'yyyy-MM-dd'`; it gets the keyboard focus */
99
184
  readonly selectedDate: import("@angular/core").InputSignal<TxMonthCalendarDateInput | null>;
185
+ /** First day of the week: 0 Sunday … 6 Saturday; locale default */
100
186
  readonly weekStartsOn: import("@angular/core").InputSignal<number | undefined>;
187
+ /** Bar rows per week; the rest goes to the `+N` link of the day */
101
188
  readonly maxLanes: import("@angular/core").InputSignalWithTransform<number, unknown>;
189
+ /** Own texts `{ more, today, region }`: `more` with a `{count}` placeholder, `today` added to the name of today, `region` the name of the grid; translated by default */
102
190
  readonly labels: import("@angular/core").InputSignal<Partial<TxMonthCalendarLabels>>;
191
+ /** BCP 47 locale for weekday names and day names; the kit locale by default */
103
192
  readonly locale: import("@angular/core").InputSignal<string | undefined>;
193
+ /** The day treated as today (the day of creation by default); pass it from a clock if the page stays open over midnight */
104
194
  readonly today: import("@angular/core").InputSignal<Date | undefined>;
105
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
106
- root: {
107
- background: string;
108
- borderColor: string;
109
- borderRadius: string;
110
- transitionDuration: string;
111
- };
112
- head: {
113
- background: string;
114
- };
115
- weekday: {
116
- padding: string;
117
- widePaddingX: string;
118
- color: string;
119
- fontSize: string;
120
- fontWeight: string;
121
- weekendColor: string;
122
- };
123
- week: {
124
- height: string;
125
- headHeight: string;
126
- laneHeight: string;
127
- moreHeight: string;
128
- };
129
- cell: {
130
- borderColor: string;
131
- weekendBackground: string;
132
- selectedBackground: string;
133
- };
134
- day: {
135
- padding: string;
136
- widePaddingX: string;
137
- color: string;
138
- hoverBackground: string;
139
- gap: string;
140
- focusRingWidth: string;
141
- focusRingColor: string;
142
- };
143
- number: {
144
- size: string;
145
- fontSize: string;
146
- fontWeight: string;
147
- selectedColor: string;
148
- selectedFontWeight: string;
149
- todayBackground: string;
150
- todayColor: string;
151
- outsideColor: string;
152
- };
153
- dot: {
154
- size: string;
155
- gap: string;
156
- bottom: string;
157
- };
158
- event: {
159
- height: string;
160
- paddingX: string;
161
- gap: string;
162
- inset: string;
163
- borderRadius: string;
164
- fontSize: string;
165
- fontWeight: string;
166
- backgroundMix: string;
167
- hoverBackgroundMix: string;
168
- textMix: string;
169
- textBase: string;
170
- avatarSize: string;
171
- };
172
- more: {
173
- margin: string;
174
- padding: string;
175
- borderRadius: string;
176
- color: string;
177
- hoverColor: string;
178
- hoverBackground: string;
179
- fontSize: string;
180
- fontWeight: string;
181
- };
182
- tone: {
183
- primary: string;
184
- info: string;
185
- success: string;
186
- warn: string;
187
- danger: string;
188
- neutral: string;
189
- };
190
- }> | undefined>;
195
+ /** Design tokens of this instance (`monthCalendar`) */
196
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraMonthCalendarTokens> | undefined>;
197
+ /** Classes and styles of the parts: `root`, `grid`, `head`, `weekday`, `week`, `cell`, `day`, `number`, `marker`, `event`, `more` */
191
198
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxMonthCalendarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxMonthCalendar>>> | undefined>;
199
+ /** How `pt` merges with the global pass-through */
192
200
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
201
+ /** Removes the tectra styles */
193
202
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
203
+ /** A day or its `+N` link was clicked; the day `Date` */
194
204
  readonly dayClick: import("@angular/core").OutputEmitterRef<Date>;
205
+ /** A bar was clicked; the event */
195
206
  readonly eventClick: import("@angular/core").OutputEmitterRef<TxMonthCalendarEvent<unknown>>;
196
207
  protected readonly eventTemplate: import("@angular/core").Signal<TxMonthCalendarEventTemplate | undefined>;
197
208
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-month-calendar.d.ts","names":[],"sources":["../../../../packages/ui/month-calendar/src/month-calendar.types.ts","../../../../packages/ui/month-calendar/src/month-calendar.templates.ts","../../../../packages/ui/month-calendar/src/month-calendar.layout.ts","../../../../packages/ui/month-calendar/src/month-calendar.component.ts"],"mappings":";;;;YAAY;YAEA,2BAA2B;YAE3B;iB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;WACX,mCAAS;;;WAET,wCAAc;WACd,2CAAiB;WACjB,8BAAI,OAAA;WAIJ,kCAAQ,8CAAA;WACR,+BAAK,OAAA;mBAWG;WACR,kCAAQ;mBAKA;EAEjB,SAAS,KAAK;EAOd,UAAU;EAIV,WAAW,KAAK;EAKhB,aAAa,OAAO;EAIpB,aAAa,OAAO,eAAe,KAAK;SA7E7B,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-month-calendar.d.ts","names":[],"sources":["../../../../packages/ui/month-calendar/src/month-calendar.types.ts","../../../../packages/ui/month-calendar/src/month-calendar.templates.ts","../../../../packages/ui/month-calendar/src/month-calendar.layout.ts","../../../../packages/ui/month-calendar/src/month-calendar.component.ts"],"mappings":";;;;;YACY;;YAGA,2BAA2B;;YAG3B;;iBAGK;;EAEf;;EAEA;;;iBAIe,qBAAqB;;EAEpC;;EAEA,OAAO;;EAEP,MAAM;;EAEN;;EAEA,MAAM;;EAEN,SAAS;;EAET,OAAO;;;iBAIQ;;EAEf,MAAM;;EAEN,MAAM;;EAEN;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS;;EAET,QAAQ;;EAER,MAAM;;EAEN;;;iBAIe;;EAEf;;EAEA,OAAO;;EAEP;;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