@tectra-ng/ui 0.3.2 → 0.4.0

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 (241) hide show
  1. package/data-view/README.md +9 -1
  2. package/dialog/README.md +3 -0
  3. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
  8. package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-ui-dialog.mjs +51 -0
  18. package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
  27. package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
  31. package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
  32. package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
  34. package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
  36. package/fesm2022/tectra-ng-ui-password-generator.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
  38. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
  40. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
  43. package/fesm2022/tectra-ng-ui-table.mjs +2 -2
  44. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  45. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
  46. package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
  48. package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-tree-select.mjs +20 -3
  50. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  51. package/fesm2022/tectra-ng-ui-tree-table.mjs +2 -2
  52. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  53. package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
  54. package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
  55. package/fesm2022/tectra-ng-ui.mjs +1 -1
  56. package/fesm2022/tectra-ng-ui.mjs.map +1 -1
  57. package/package.json +4 -4
  58. package/table/README.md +1 -0
  59. package/tree-select/README.md +1 -0
  60. package/types/tectra-ng-ui-accordion.d.ts +96 -65
  61. package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
  62. package/types/tectra-ng-ui-amount.d.ts +40 -17
  63. package/types/tectra-ng-ui-amount.d.ts.map +1 -1
  64. package/types/tectra-ng-ui-analog-clock.d.ts +28 -41
  65. package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
  66. package/types/tectra-ng-ui-autocomplete.d.ts +35 -96
  67. package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
  68. package/types/tectra-ng-ui-avatar.d.ts +84 -259
  69. package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
  70. package/types/tectra-ng-ui-badge.d.ts +18 -61
  71. package/types/tectra-ng-ui-badge.d.ts.map +1 -1
  72. package/types/tectra-ng-ui-breadcrumb.d.ts +53 -36
  73. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
  74. package/types/tectra-ng-ui-button-group.d.ts +4 -0
  75. package/types/tectra-ng-ui-button-group.d.ts.map +1 -1
  76. package/types/tectra-ng-ui-button.d.ts +45 -266
  77. package/types/tectra-ng-ui-button.d.ts.map +1 -1
  78. package/types/tectra-ng-ui-card.d.ts +14 -16
  79. package/types/tectra-ng-ui-card.d.ts.map +1 -1
  80. package/types/tectra-ng-ui-carousel.d.ts +55 -27
  81. package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
  82. package/types/tectra-ng-ui-cascade-select.d.ts +48 -8
  83. package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
  84. package/types/tectra-ng-ui-checkbox.d.ts +79 -119
  85. package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
  86. package/types/tectra-ng-ui-chip.d.ts +19 -22
  87. package/types/tectra-ng-ui-chip.d.ts.map +1 -1
  88. package/types/tectra-ng-ui-chips-input.d.ts +41 -11
  89. package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
  90. package/types/tectra-ng-ui-color-picker.d.ts +51 -47
  91. package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
  92. package/types/tectra-ng-ui-confirm.d.ts +45 -0
  93. package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
  94. package/types/tectra-ng-ui-countdown.d.ts +42 -10
  95. package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
  96. package/types/tectra-ng-ui-country-select.d.ts +41 -96
  97. package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
  98. package/types/tectra-ng-ui-country.d.ts +40 -17
  99. package/types/tectra-ng-ui-country.d.ts.map +1 -1
  100. package/types/tectra-ng-ui-data-view.d.ts +92 -34
  101. package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
  102. package/types/tectra-ng-ui-datepicker.d.ts +186 -147
  103. package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
  104. package/types/tectra-ng-ui-dialog.d.ts +149 -67
  105. package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
  106. package/types/tectra-ng-ui-divider.d.ts +17 -12
  107. package/types/tectra-ng-ui-divider.d.ts.map +1 -1
  108. package/types/tectra-ng-ui-drawer.d.ts +31 -67
  109. package/types/tectra-ng-ui-drawer.d.ts.map +1 -1
  110. package/types/tectra-ng-ui-email-suggestion.d.ts +25 -8
  111. package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
  112. package/types/tectra-ng-ui-export-font.d.ts +1 -0
  113. package/types/tectra-ng-ui-export-font.d.ts.map +1 -1
  114. package/types/tectra-ng-ui-export.d.ts +238 -0
  115. package/types/tectra-ng-ui-export.d.ts.map +1 -1
  116. package/types/tectra-ng-ui-field.d.ts +24 -11
  117. package/types/tectra-ng-ui-field.d.ts.map +1 -1
  118. package/types/tectra-ng-ui-fieldset.d.ts +14 -23
  119. package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
  120. package/types/tectra-ng-ui-file-upload.d.ts +127 -115
  121. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
  122. package/types/tectra-ng-ui-galleria.d.ts +84 -84
  123. package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
  124. package/types/tectra-ng-ui-highlight-text.d.ts +24 -10
  125. package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
  126. package/types/tectra-ng-ui-icon-field.d.ts +20 -0
  127. package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
  128. package/types/tectra-ng-ui-image.d.ts +60 -36
  129. package/types/tectra-ng-ui-image.d.ts.map +1 -1
  130. package/types/tectra-ng-ui-input-group.d.ts +9 -0
  131. package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
  132. package/types/tectra-ng-ui-input-mask.d.ts +39 -0
  133. package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
  134. package/types/tectra-ng-ui-input-number.d.ts +73 -15
  135. package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
  136. package/types/tectra-ng-ui-input-otp.d.ts +28 -21
  137. package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
  138. package/types/tectra-ng-ui-input.d.ts +17 -50
  139. package/types/tectra-ng-ui-input.d.ts.map +1 -1
  140. package/types/tectra-ng-ui-key-filter.d.ts +14 -0
  141. package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
  142. package/types/tectra-ng-ui-knob.d.ts +38 -18
  143. package/types/tectra-ng-ui-knob.d.ts.map +1 -1
  144. package/types/tectra-ng-ui-label.d.ts +19 -0
  145. package/types/tectra-ng-ui-label.d.ts.map +1 -1
  146. package/types/tectra-ng-ui-link.d.ts +39 -34
  147. package/types/tectra-ng-ui-link.d.ts.map +1 -1
  148. package/types/tectra-ng-ui-list-input.d.ts +54 -45
  149. package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
  150. package/types/tectra-ng-ui-listbox.d.ts +24 -14
  151. package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
  152. package/types/tectra-ng-ui-mention-textarea.d.ts +36 -9
  153. package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
  154. package/types/tectra-ng-ui-menu.d.ts +92 -166
  155. package/types/tectra-ng-ui-menu.d.ts.map +1 -1
  156. package/types/tectra-ng-ui-menubar.d.ts +29 -58
  157. package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
  158. package/types/tectra-ng-ui-message.d.ts +61 -126
  159. package/types/tectra-ng-ui-message.d.ts.map +1 -1
  160. package/types/tectra-ng-ui-month-calendar.d.ts +98 -87
  161. package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
  162. package/types/tectra-ng-ui-multiselect.d.ts +26 -96
  163. package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
  164. package/types/tectra-ng-ui-overlay-badge.d.ts +20 -9
  165. package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
  166. package/types/tectra-ng-ui-paginator.d.ts +69 -47
  167. package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
  168. package/types/tectra-ng-ui-panel-menu.d.ts +52 -105
  169. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
  170. package/types/tectra-ng-ui-panel.d.ts +22 -30
  171. package/types/tectra-ng-ui-panel.d.ts.map +1 -1
  172. package/types/tectra-ng-ui-password-generator.d.ts +27 -0
  173. package/types/tectra-ng-ui-password-generator.d.ts.map +1 -1
  174. package/types/tectra-ng-ui-password.d.ts +55 -26
  175. package/types/tectra-ng-ui-password.d.ts.map +1 -1
  176. package/types/tectra-ng-ui-pill.d.ts +23 -70
  177. package/types/tectra-ng-ui-pill.d.ts.map +1 -1
  178. package/types/tectra-ng-ui-popover.d.ts +58 -46
  179. package/types/tectra-ng-ui-popover.d.ts.map +1 -1
  180. package/types/tectra-ng-ui-progress-bar.d.ts +32 -28
  181. package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
  182. package/types/tectra-ng-ui-progress-spinner.d.ts +18 -16
  183. package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
  184. package/types/tectra-ng-ui-radio-button.d.ts +64 -115
  185. package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
  186. package/types/tectra-ng-ui-rating.d.ts +40 -29
  187. package/types/tectra-ng-ui-rating.d.ts.map +1 -1
  188. package/types/tectra-ng-ui-scroll-panel.d.ts +22 -17
  189. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
  190. package/types/tectra-ng-ui-select.d.ts +169 -100
  191. package/types/tectra-ng-ui-select.d.ts.map +1 -1
  192. package/types/tectra-ng-ui-skeleton.d.ts +34 -37
  193. package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
  194. package/types/tectra-ng-ui-slider.d.ts +37 -33
  195. package/types/tectra-ng-ui-slider.d.ts.map +1 -1
  196. package/types/tectra-ng-ui-sparkline.d.ts +22 -15
  197. package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
  198. package/types/tectra-ng-ui-speed-dial.d.ts +34 -11
  199. package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
  200. package/types/tectra-ng-ui-split-button.d.ts +28 -7
  201. package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
  202. package/types/tectra-ng-ui-splitter.d.ts +47 -23
  203. package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
  204. package/types/tectra-ng-ui-stat-tiles.d.ts +39 -91
  205. package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
  206. package/types/tectra-ng-ui-status-icon.d.ts +19 -23
  207. package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
  208. package/types/tectra-ng-ui-stepper.d.ts +106 -133
  209. package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
  210. package/types/tectra-ng-ui-table.d.ts +415 -183
  211. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  212. package/types/tectra-ng-ui-tabs.d.ts +91 -133
  213. package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
  214. package/types/tectra-ng-ui-tag.d.ts +46 -135
  215. package/types/tectra-ng-ui-tag.d.ts.map +1 -1
  216. package/types/tectra-ng-ui-textarea.d.ts +25 -31
  217. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  218. package/types/tectra-ng-ui-timeline.d.ts +39 -27
  219. package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
  220. package/types/tectra-ng-ui-toast.d.ts +84 -78
  221. package/types/tectra-ng-ui-toast.d.ts.map +1 -1
  222. package/types/tectra-ng-ui-toggle-button.d.ts +29 -55
  223. package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
  224. package/types/tectra-ng-ui-toggle-switch.d.ts +41 -55
  225. package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
  226. package/types/tectra-ng-ui-toolbar.d.ts +15 -14
  227. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
  228. package/types/tectra-ng-ui-tooltip.d.ts +72 -22
  229. package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
  230. package/types/tectra-ng-ui-tree-select.d.ts +65 -104
  231. package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
  232. package/types/tectra-ng-ui-tree-table.d.ts +30 -0
  233. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
  234. package/types/tectra-ng-ui-tree.d.ts +197 -69
  235. package/types/tectra-ng-ui-tree.d.ts.map +1 -1
  236. package/types/tectra-ng-ui-truncate-text.d.ts +21 -14
  237. package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
  238. package/types/tectra-ng-ui-virtual-scroller.d.ts +97 -13
  239. package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
  240. package/types/tectra-ng-ui.d.ts +2 -1
  241. package/types/tectra-ng-ui.d.ts.map +1 -1
@@ -1,9 +1,15 @@
1
1
  import { AbstractControl, NgControl } from "@angular/forms";
2
2
  import { TxPassThroughOptions, TxValidationMessages } from "@tectra-ng/core/config";
3
- import { TectraDeepPartial } from "@tectra-ng/themes";
3
+ import { TectraDeepPartial, TectraFieldTokens } from "@tectra-ng/themes";
4
4
  import * as i0 from "@angular/core";
5
+ /** Places the label above the control (`vertical`) or beside it (`horizontal`). */
5
6
  export type TxFieldLayout = 'vertical' | 'horizontal';
7
+ /** Parts of `tx-field` that `pt` can style. */
6
8
  export type TxFieldPart = 'root' | 'label' | 'control' | 'hint' | 'error';
9
+ /**
10
+ * A form row: label, control, hint and error in one element. It finds the control inside (input, textarea, select, `tx-select`, checkbox, switch, slider…), gives it an id when it has none, points the label at it and adds the hint and the error to its `aria-describedby`. A group (`tx-radio-group`, `tx-checkbox-group`, any `role="radiogroup"` / `role="group"`) or a custom control that is not a native field (`role="slider"`, e.g. `tx-rating`, or an element marked `data-tx-field-control`, e.g. the `tx-file-upload` drop zone) is named by the label through `aria-labelledby` instead. The error comes from the projected `formControl` / `formControlName` / `ngModel`, or from `control`; `errorText` shows an error from outside the form and turns the control red.
11
+ * @see https://tectra-ng.com/components/field
12
+ */
7
13
  export declare class TxField {
8
14
  private readonly fieldTheme;
9
15
  private elementRef;
@@ -11,30 +17,37 @@ export declare class TxField {
11
17
  private linkedElement;
12
18
  private linkedKey;
13
19
  private unlinks;
20
+ /** Text of the label */
14
21
  readonly label: import("@angular/core").InputSignal<string | undefined>;
22
+ /** Required mark after the label (also put `required` / `Validators.required` on the control) */
15
23
  readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24
+ /** Adds `:` after the label */
16
25
  readonly colon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
26
+ /** Smaller, muted label — for filters and dense forms */
17
27
  readonly subtle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
28
+ /** Help icon after the label with this hint */
18
29
  readonly tooltip: import("@angular/core").InputSignal<string | undefined>;
30
+ /** Help text under the control */
19
31
  readonly hint: import("@angular/core").InputSignal<string | undefined>;
32
+ /** Form control for the error, when it is not the projected one */
20
33
  readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | undefined>;
34
+ /** Error from outside the form (e.g. the server); shown before the control's errors and marks the control invalid */
21
35
  readonly errorText: import("@angular/core").InputSignal<string | undefined>;
36
+ /** Text shown when the control has a valid value and was touched or changed */
22
37
  readonly successText: import("@angular/core").InputSignal<string | undefined>;
38
+ /** Own error texts per error key (see `tx-field-error`) */
23
39
  readonly messages: import("@angular/core").InputSignal<TxValidationMessages | undefined>;
40
+ /** Shows the error before the control is touched or changed */
24
41
  readonly showImmediately: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
42
+ /** `vertical` (label above) or `horizontal` (label on the left, stacks below 40rem) */
25
43
  readonly layout: import("@angular/core").InputSignal<TxFieldLayout>;
26
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
27
- root: {
28
- gap: string;
29
- };
30
- horizontal: {
31
- columnGap: string;
32
- labelWidth: string;
33
- labelPaddingTop: string;
34
- };
35
- }> | undefined>;
44
+ /** Design tokens of this instance (`field`) */
45
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldTokens> | undefined>;
46
+ /** Classes and styles of the parts: `root`, `label`, `control`, `hint`, `error` */
36
47
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFieldPart, import("@tectra-ng/core/config").TxPassThroughValue<TxField>>> | undefined>;
48
+ /** How `pt` merges with the global pass-through */
37
49
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
50
+ /** Removes the tectra styles, keeps the wiring */
38
51
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
39
52
  readonly projectedControl: import("@angular/core").Signal<NgControl | undefined>;
40
53
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-field.d.ts","names":[],"sources":["../../../../packages/ui/field/src/field.types.ts","../../../../packages/ui/field/src/field.component.ts"],"mappings":";;;;YAAY;YACA;qBCkDC;mBACM;UAET;UACA;UACA;UACA;UACA;WAEC,+BAAK;WACL,kCAAQ;WACR,+BAAK;WACL,gCAAM;WACN,iCAAO;WACP,8BAAI;WACJ,iCAAO,YAAA;WACP,mCAAS;WACT,qCAAW;WACX,kCAAQ,YAAA;WACR,yCAAe;WACf,gCAAM,YAAA;WACN,4BAAE,YAAA;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,8CAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,0CAAgB,OAAA;WAEhB,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,8CAAA;WACX;WACA;WACA;WACA,mCAAS;WACT,qCAAW,OAAA;WACX;;;WACA,mCAAS;;;;UAOV;UA+BA;SA1EG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-field.d.ts","names":[],"sources":["../../../../packages/ui/field/src/field.types.ts","../../../../packages/ui/field/src/field.component.ts"],"mappings":";;;;;YACY;;YAEA;;;;;qBCgDC;mBACM;UAET;UACA;UACA;UACA;UACA;;WAEC,+BAAK;;WACL,kCAAQ;;WACR,+BAAK;;WACL,gCAAM;;WACN,iCAAO;;WACP,8BAAI;;WACJ,iCAAO,YAAA;;WACP,mCAAS;;WACT,qCAAW;;WACX,kCAAQ,YAAA;;WACR,yCAAe;;WACf,gCAAM,YAAA;;WACN,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,8CAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,0CAAgB,OAAA;WAEhB,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,8CAAA;WACX;WACA;WACA;WACA,mCAAS;WACT,qCAAW,OAAA;WACX;;;WACA,mCAAS;;;;UAOV;UA+BA;SA1EG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAO;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;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
@@ -1,36 +1,27 @@
1
1
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
2
- import { TectraDeepPartial } from "@tectra-ng/themes";
2
+ import { TectraDeepPartial, TectraFieldsetTokens } from "@tectra-ng/themes";
3
3
  import * as i0 from "@angular/core";
4
+ /** Parts of `tx-fieldset` that `pt` can style. */
4
5
  export type TxFieldsetPart = 'root' | 'legend' | 'toggle' | 'content';
6
+ /**
7
+ * Groups related fields under a legend — a native `<fieldset>`, so screen readers announce the legend with every field inside. It can collapse.
8
+ * @see https://tectra-ng.com/components/fieldset
9
+ */
5
10
  export declare class TxFieldset {
6
11
  private readonly fieldsetTheme;
12
+ /** Text of the legend */
7
13
  readonly legend: import("@angular/core").InputSignal<string | undefined>;
14
+ /** Turns the legend into a button that collapses the content */
8
15
  readonly toggleable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
16
+ /** Two-way: the content is collapsed */
9
17
  readonly collapsed: import("@angular/core").ModelSignal<boolean>;
10
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
11
- root: {
12
- borderColor: string;
13
- borderRadius: string;
14
- padding: string;
15
- background: string;
16
- legendPadding: string;
17
- legendColor: string;
18
- legendFontSize: string;
19
- legendFontWeight: string;
20
- legendHoverBackground: string;
21
- legendFocusBackground: string;
22
- legendBackground: string;
23
- legendBorderColor: string;
24
- legendBorderRadius: string;
25
- togglePadding: string;
26
- focusRingWidth: string;
27
- focusRingOffset: string;
28
- focusRingShadow: string;
29
- transitionDuration: string;
30
- };
31
- }> | undefined>;
18
+ /** Design tokens of this instance (`fieldset`) */
19
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFieldsetTokens> | undefined>;
20
+ /** Classes and styles of the parts: `root`, `legend`, `toggle`, `content` */
32
21
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFieldsetPart, import("@tectra-ng/core/config").TxPassThroughValue<TxFieldset>>> | undefined>;
22
+ /** How `pt` merges with the global pass-through */
33
23
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
24
+ /** Removes the tectra styles */
34
25
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
35
26
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
36
27
  readonly passThrough: import("@angular/core").Signal<Partial<Record<TxFieldsetPart, import("@tectra-ng/core/config").TxPassThroughPart>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-fieldset.d.ts","names":[],"sources":["../../../../packages/ui/fieldset/src/fieldset.types.ts","../../../../packages/ui/fieldset/src/fieldset.component.ts"],"mappings":";;;YAAY;qBCoDC;mBACM;WAER,gCAAM;WACN,oCAAU;WACV,mCAAS;WACT,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX;WACA,gCAAM;WACN,mCAAS;;;SAfP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;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"}
1
+ {"version":3,"file":"tectra-ng-ui-fieldset.d.ts","names":[],"sources":["../../../../packages/ui/fieldset/src/fieldset.types.ts","../../../../packages/ui/fieldset/src/fieldset.component.ts"],"mappings":";;;;YACY;;;;;qBCmDC;mBACM;;WAER,gCAAM;;WACN,oCAAU;;WACV,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,iDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,iDAAA;WACX;WACA,gCAAM;WACN,mCAAS;;;SAfP,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;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"}
@@ -4,101 +4,182 @@ import { HttpHeaders } from "@angular/common/http";
4
4
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
5
5
  import { TxFormControlBase } from "@tectra-ng/core/forms";
6
6
  import { TxIconName } from "@tectra-ng/icons";
7
- import { TectraDeepPartial } from "@tectra-ng/themes";
7
+ import { TectraDeepPartial, TectraFileUploadTokens } from "@tectra-ng/themes";
8
+ /** `advanced` shows a drop zone and a file list; `basic` is a single button. */
8
9
  export type TxFileUploadMode = 'advanced' | 'basic';
10
+ /** HTTP method of the built-in upload request. */
9
11
  export type TxFileUploadMethod = 'post' | 'put';
12
+ /** Group a file belongs to, chosen from its type and extension; picks the thumbnail icon. */
10
13
  export type TxFileKind = 'image' | 'pdf' | 'sheet' | 'document' | 'archive' | 'media' | 'other';
14
+ /** Upload state of a file: waiting, being sent, sent or failed. */
11
15
  export type TxFileStatus = 'pending' | 'uploading' | 'uploaded' | 'failed';
16
+ /** Why a file was not added: wrong type, too big or over the file limit. */
12
17
  export type TxFileRejectReason = 'type' | 'size' | 'limit';
18
+ /** Parts of `tx-file-upload` that `pt` can style. */
13
19
  export type TxFileUploadPart = 'root' | 'dropzone' | 'icon' | 'prompt' | 'hint' | 'list' | 'file' | 'thumbnail' | 'fileName' | 'fileMeta' | 'progress' | 'message' | 'footer' | 'basic';
20
+ /** One file in the list of `tx-file-upload` with its preview, status and progress. */
14
21
  export interface TxFileUploadEntry {
22
+ /** Unique id of the entry inside the component. */
15
23
  id: string;
24
+ /** The picked file. */
16
25
  file: File;
26
+ /** Group of the file, used for its icon. */
17
27
  kind: TxFileKind;
28
+ /** Lower-case file extension without the dot; empty when the name has none. */
18
29
  extension: string;
30
+ /** Object URL of an image preview; `null` for files that are not images. */
19
31
  preview: string | null;
32
+ /** Current upload state. */
20
33
  status: TxFileStatus;
34
+ /** Upload progress in percent, 0 to 100. */
21
35
  progress: number;
36
+ /** Message of the last failure; `null` when there is none. */
22
37
  error: string | null;
23
38
  }
39
+ /** A file that was not added and the reason. */
24
40
  export interface TxFileRejection {
41
+ /** The rejected file. */
25
42
  file: File;
43
+ /** Which rule the file broke. */
26
44
  reason: TxFileRejectReason;
45
+ /** Translated text that explains the rejection. */
27
46
  message: string;
28
47
  }
48
+ /** Event of `selected`: files were added by choosing or dropping them. */
29
49
  export interface TxFileUploadSelectEvent {
50
+ /** Browser event that brought the files: a change or a drop. */
30
51
  originalEvent: Event;
52
+ /** Files that were accepted in this selection. */
31
53
  files: File[];
54
+ /** All files in the component after the selection. */
32
55
  currentFiles: File[];
33
56
  }
57
+ /** Event of `removed`: a file was taken out of the list. */
34
58
  export interface TxFileUploadRemoveEvent {
59
+ /** Browser event of the remove click. */
35
60
  originalEvent: Event;
61
+ /** The removed file. */
36
62
  file: File;
37
63
  }
64
+ /** Event of `beforeUpload`: lets you change the request body before it is sent. */
38
65
  export interface TxFileUploadBeforeUploadEvent {
66
+ /** Form data that will be sent; append your own fields to it. */
39
67
  formData: FormData;
40
68
  }
69
+ /** Event of `uploadProgress`. */
41
70
  export interface TxFileUploadProgressEvent {
71
+ /** Upload progress in percent, 0 to 100. */
42
72
  progress: number;
43
73
  }
74
+ /** Event of `uploaded`: files were sent successfully. */
44
75
  export interface TxFileUploadEvent {
76
+ /** The request or its load event; `null` when your `uploadHandler` completed the upload. */
45
77
  originalEvent: unknown;
78
+ /** Files that were uploaded. */
46
79
  files: File[];
47
80
  }
81
+ /** Event of `uploadFailed`: files could not be sent. */
48
82
  export interface TxFileUploadErrorEvent {
83
+ /** Files that failed. */
49
84
  files: File[];
85
+ /** Error or message that describes the failure. */
50
86
  error: unknown;
51
87
  }
88
+ /** Event of `uploadHandler`: you upload the files yourself and report back through its callbacks. */
52
89
  export interface TxFileUploadHandlerEvent {
90
+ /** Files to upload. */
53
91
  files: File[];
92
+ /** Reports progress in percent for all files, or for one file. */
54
93
  progress: (value: number, file?: File) => void;
94
+ /** Marks all files, or one file, as uploaded. */
55
95
  complete: (file?: File) => void;
96
+ /** Marks all files, or one file, as failed, with an optional message. */
56
97
  fail: (message?: string, file?: File) => void;
57
98
  }
99
+ /** Event of `uploadedFileRemoved`: an already uploaded file was removed. */
58
100
  export interface TxFileUploadedRemoveEvent {
101
+ /** The removed file. */
59
102
  file: File;
103
+ /** Uploaded files that remain. */
60
104
  files: File[];
61
105
  }
106
+ /** A rejection message shown under the drop zone. */
62
107
  export interface TxFileUploadMessage {
108
+ /** Unique id of the message. */
63
109
  id: number;
110
+ /** Text of the message. */
64
111
  text: string;
65
112
  }
113
+ /** Context of a `txFileUploadFile` template: one file row. */
66
114
  export interface TxFileUploadFileContext {
115
+ /** Entry the row shows. */
67
116
  $implicit: TxFileUploadEntry;
117
+ /** Position of the entry in the list. */
68
118
  index: number;
119
+ /** Removes the file; pass it the click event. */
69
120
  remove: (event: Event) => void;
70
121
  }
122
+ /** Context of a `txFileUploadDropzone` template: the drop zone content. */
71
123
  export interface TxFileUploadDropzoneContext {
124
+ /** `true` while files are dragged over the zone. */
72
125
  $implicit: boolean;
126
+ /** Opens the file picker. */
73
127
  choose: () => void;
74
128
  }
129
+ /**
130
+ * `<ng-template txFileUploadFile let-entry let-remove="remove">` — own file row (`entry.file`, `status`, `progress`, `preview`, `kind`)
131
+ * @see https://tectra-ng.com/components/file-upload
132
+ */
75
133
  export declare class TxFileUploadFileTemplate {
76
134
  readonly template: TemplateRef<TxFileUploadFileContext>;
77
135
  static ngTemplateContextGuard(_directive: TxFileUploadFileTemplate, context: unknown): context is TxFileUploadFileContext;
78
136
  static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUploadFileTemplate, never>;
79
137
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxFileUploadFileTemplate, "ng-template[txFileUploadFile]", never, {}, {}, never, never, true, never>;
80
138
  }
139
+ /**
140
+ * `<ng-template txFileUploadDropzone let-dragging let-choose="choose">` — own content of the empty drop zone
141
+ * @see https://tectra-ng.com/components/file-upload
142
+ */
81
143
  export declare class TxFileUploadDropzoneTemplate {
82
144
  readonly template: TemplateRef<TxFileUploadDropzoneContext>;
83
145
  static ngTemplateContextGuard(_directive: TxFileUploadDropzoneTemplate, context: unknown): context is TxFileUploadDropzoneContext;
84
146
  static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUploadDropzoneTemplate, never>;
85
147
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxFileUploadDropzoneTemplate, "ng-template[txFileUploadDropzone]", never, {}, {}, never, never, true, never>;
86
148
  }
149
+ /**
150
+ * Content at the start of the footer, next to Clear and Upload
151
+ * @see https://tectra-ng.com/components/file-upload
152
+ */
87
153
  export declare class TxFileUploadActions {
88
154
  static ɵfac: i0.ɵɵFactoryDeclaration<TxFileUploadActions, never>;
89
155
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxFileUploadActions, "[txFileUploadActions]", never, {}, {}, never, never, true, never>;
90
156
  }
157
+ /** Unit names for file sizes, from byte to terabyte, as `Intl.NumberFormat` unit identifiers. */
91
158
  export declare const TX_FILE_SIZE_UNITS: readonly ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte"];
159
+ /** Lower-case extension of a file name without the dot; empty when it has none. */
92
160
  export declare function fileExtension(file: Pick<File, 'name'>): string;
161
+ /** Sorts a file into a `TxFileKind` by its MIME type and extension. */
93
162
  export declare function fileKind(file: Pick<File, 'name' | 'type'>): TxFileKind;
163
+ /**
164
+ * Checks a file against an `accept` list of extensions, MIME types and `type/*` wildcards; an empty
165
+ * list accepts everything.
166
+ */
94
167
  export declare function fileMatchesAccept(file: Pick<File, 'name' | 'type'>, accept: string | undefined): boolean;
168
+ /** Scales a byte count to the largest unit that keeps the value under 1024. */
95
169
  export declare function fileSizeParts(bytes: number): {
96
170
  value: number;
97
171
  unit: (typeof TX_FILE_SIZE_UNITS)[number];
98
172
  };
173
+ /** Tells whether two `File` objects are the same file by name, size, type and modified time. */
99
174
  export declare function sameFile(a: File, b: File): boolean;
175
+ /** Turns an `accept` list into a short readable label such as `PNG, JPEG`. */
100
176
  export declare function acceptLabel(accept: string | undefined): string;
177
+ /** Value of `tx-file-upload`: one file, or an array of files when several are allowed. */
101
178
  type TxFileUploadValue = File | File[];
179
+ /**
180
+ * Pick files by dropping them on a zone or browsing for them. The component checks the type, size and count, previews images, shows every file with its size and status, and uploads them — to a `url`, or through your own code with progress. One file replaces the zone with a card; many files collect in a list below it. `mode="basic"` is a single button for places like a profile photo.
181
+ * @see https://tectra-ng.com/components/file-upload
182
+ */
102
183
  export declare class TxFileUpload extends TxFormControlBase<TxFileUploadValue> {
103
184
  private readonly fileUploadTheme;
104
185
  private document;
@@ -106,162 +187,93 @@ export declare class TxFileUpload extends TxFormControlBase<TxFileUploadValue> {
106
187
  private announcer;
107
188
  private localeService;
108
189
  private field;
190
+ /** `advanced` (drop zone, list) or `basic` (a button) */
109
191
  readonly mode: import("@angular/core").InputSignal<TxFileUploadMode>;
192
+ /** Two-way: the picked files that are not uploaded yet */
110
193
  readonly files: import("@angular/core").ModelSignal<File[]>;
194
+ /** Two-way: the picked file without `multiple` */
111
195
  readonly file: import("@angular/core").ModelSignal<File | null>;
196
+ /** Many files; new picks are added to the list */
112
197
  readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
198
+ /** Allowed types, checked on pick and drop: extensions (`.csv`), MIME types (`application/pdf`) and wildcards (`image/*`) */
113
199
  readonly accept: import("@angular/core").InputSignal<string | undefined>;
200
+ /** Largest file in bytes */
114
201
  readonly maxFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
202
+ /** Most files with `multiple`, uploaded ones included */
115
203
  readonly fileLimit: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
204
+ /** Turns the control off */
116
205
  readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
206
+ /** Red outline; follows the form control by default */
117
207
  readonly invalid: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
208
+ /** Uploads right after the files are picked */
118
209
  readonly auto: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
210
+ /** Address to upload to */
119
211
  readonly url: import("@angular/core").InputSignal<string | undefined>;
212
+ /** Field name of the files in the `FormData` */
120
213
  readonly name: import("@angular/core").InputSignal<string>;
214
+ /** `post` or `put` */
121
215
  readonly method: import("@angular/core").InputSignal<TxFileUploadMethod>;
216
+ /** Request headers, `HttpHeaders` or a plain object */
122
217
  readonly headers: import("@angular/core").InputSignal<HttpHeaders | Record<string, string> | undefined>;
218
+ /** Sends cookies with the request */
123
219
  readonly withCredentials: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
220
+ /** Hands the files to `uploadHandler` instead of sending them */
124
221
  readonly customUpload: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
222
+ /** Hint under the prompt, e.g. the types and the size limit */
125
223
  readonly description: import("@angular/core").InputSignal<string | undefined>;
224
+ /** Text of the browse link and the basic button */
126
225
  readonly chooseLabel: import("@angular/core").InputSignal<string | undefined>;
226
+ /** Text of the Upload button */
127
227
  readonly uploadLabel: import("@angular/core").InputSignal<string | undefined>;
228
+ /** Text of the Clear button */
128
229
  readonly cancelLabel: import("@angular/core").InputSignal<string | undefined>;
230
+ /** Icon of the basic button */
129
231
  readonly chooseIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
232
+ /** Icon of the Upload button */
130
233
  readonly uploadIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
234
+ /** Icon of the Clear button and of the remove buttons in the list */
131
235
  readonly cancelIcon: import("@angular/core").InputSignal<TxIconName | (string & {})>;
236
+ /** Shows the Upload button when there is a `url` or `customUpload` and no `auto` */
132
237
  readonly showUploadButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
238
+ /** Shows the Clear button next to it */
133
239
  readonly showCancelButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
240
+ /** Shows the reasons for rejected files under the zone; turn it off to show them yourself from `rejected` */
134
241
  readonly showMessages: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
242
+ /** Own text for a wrong type: `{name}`, `{types}` */
135
243
  readonly invalidFileTypeMessage: import("@angular/core").InputSignal<string | undefined>;
244
+ /** Own text for a big file: `{name}`, `{size}` */
136
245
  readonly invalidFileSizeMessage: import("@angular/core").InputSignal<string | undefined>;
246
+ /** Own text for too many files: `{limit}` */
137
247
  readonly invalidFileLimitMessage: import("@angular/core").InputSignal<string | undefined>;
248
+ /** Accessible name of the drop zone instead of its prompt */
138
249
  readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
139
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
140
- root: {
141
- gap: string;
142
- color: string;
143
- fontSize: string;
144
- transitionDuration: string;
145
- easing: string;
146
- focusRingWidth: string;
147
- focusRingColor: string;
148
- focusRingOffset: string;
149
- };
150
- dropzone: {
151
- minHeight: string;
152
- padding: string;
153
- gap: string;
154
- borderRadius: string;
155
- borderWidth: string;
156
- dash: string;
157
- dashPeriod: string;
158
- borderColor: string;
159
- hoverBorderColor: string;
160
- activeBorderColor: string;
161
- invalidBorderColor: string;
162
- background: string;
163
- hoverBackground: string;
164
- activeBackground: string;
165
- disabledOpacity: string;
166
- };
167
- icon: {
168
- size: string;
169
- glyphSize: string;
170
- borderRadius: string;
171
- background: string;
172
- color: string;
173
- hoverShadow: string;
174
- lift: string;
175
- };
176
- prompt: {
177
- fontWeight: string;
178
- linkColor: string;
179
- linkFontWeight: string;
180
- };
181
- hint: {
182
- color: string;
183
- fontSize: string;
184
- };
185
- list: {
186
- gap: string;
187
- };
188
- file: {
189
- padding: string;
190
- gap: string;
191
- borderRadius: string;
192
- borderColor: string;
193
- background: string;
194
- nameFontWeight: string;
195
- metaColor: string;
196
- metaFontSize: string;
197
- metaGap: string;
198
- successColor: string;
199
- errorColor: string;
200
- };
201
- thumbnail: {
202
- size: string;
203
- borderRadius: string;
204
- background: string;
205
- color: string;
206
- glyphSize: string;
207
- extensionFontSize: string;
208
- largeSize: string;
209
- largeBorderRadius: string;
210
- largeGlyphSize: string;
211
- largeExtensionFontSize: string;
212
- imageColor: string;
213
- documentColor: string;
214
- pdfColor: string;
215
- sheetColor: string;
216
- archiveColor: string;
217
- tint: string;
218
- };
219
- progress: {
220
- height: string;
221
- marginTop: string;
222
- background: string;
223
- color: string;
224
- successColor: string;
225
- errorColor: string;
226
- };
227
- message: {
228
- padding: string;
229
- gap: string;
230
- borderRadius: string;
231
- background: string;
232
- color: string;
233
- fontSize: string;
234
- };
235
- footer: {
236
- gap: string;
237
- summaryColor: string;
238
- summaryFontSize: string;
239
- };
240
- selected: {
241
- gap: string;
242
- background: string;
243
- borderColor: string;
244
- progressWidth: string;
245
- actionsGap: string;
246
- };
247
- basic: {
248
- gap: string;
249
- labelColor: string;
250
- labelFontSize: string;
251
- };
252
- }> | undefined>;
250
+ /** Design tokens of this instance (`fileUpload`) */
251
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraFileUploadTokens> | undefined>;
252
+ /** Classes and styles of the parts: `root`, `dropzone`, `icon`, `prompt`, `hint`, `list`, `file`, `thumbnail`, `fileName`, `fileMeta`, `progress`, `message`, `footer`, `basic` */
253
253
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxFileUploadPart, import("@tectra-ng/core/config").TxPassThroughValue<TxFileUpload>>> | undefined>;
254
+ /** How `pt` merges with the global pass-through */
254
255
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
256
+ /** Removes the tectra styles */
255
257
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
258
+ /** Files were added: `{ originalEvent, files, currentFiles }` */
256
259
  readonly selected: import("@angular/core").OutputEmitterRef<TxFileUploadSelectEvent>;
260
+ /** A waiting file was removed: `{ originalEvent, file }` */
257
261
  readonly removed: import("@angular/core").OutputEmitterRef<TxFileUploadRemoveEvent>;
262
+ /** Clear removed the waiting files */
258
263
  readonly cleared: import("@angular/core").OutputEmitterRef<void>;
264
+ /** Files were not added: `[{ file, reason: 'type' | 'size' | 'limit', message }]` */
259
265
  readonly rejected: import("@angular/core").OutputEmitterRef<TxFileRejection[]>;
266
+ /** The `FormData` before the files are added; append more fields here */
260
267
  readonly beforeUpload: import("@angular/core").OutputEmitterRef<TxFileUploadBeforeUploadEvent>;
268
+ /** `{ progress }` in percent */
261
269
  readonly uploadProgress: import("@angular/core").OutputEmitterRef<TxFileUploadProgressEvent>;
270
+ /** Files were uploaded: `{ originalEvent, files }` */
262
271
  readonly uploaded: import("@angular/core").OutputEmitterRef<TxFileUploadEvent>;
272
+ /** The upload failed: `{ files, error }` */
263
273
  readonly uploadFailed: import("@angular/core").OutputEmitterRef<TxFileUploadErrorEvent>;
274
+ /** `customUpload`: `{ files, progress, complete, fail }` */
264
275
  readonly uploadHandler: import("@angular/core").OutputEmitterRef<TxFileUploadHandlerEvent>;
276
+ /** An uploaded file was removed from the list: `{ file, files }` */
265
277
  readonly uploadedFileRemoved: import("@angular/core").OutputEmitterRef<TxFileUploadedRemoveEvent>;
266
278
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
267
279
  readonly isUnstyled: import("@angular/core").Signal<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-ui-file-upload.d.ts","names":[],"sources":["../../../../packages/ui/file-upload/src/file-upload.types.ts","../../../../packages/ui/file-upload/src/file-upload.templates.ts","../../../../packages/ui/file-upload/src/file-upload.utils.ts","../../../../packages/ui/file-upload/src/file-upload.component.ts"],"mappings":";;;;;;;YAAY;YAEA;YAEA;YAEA;YAEA;YAEA;iBAgBK;EACf;EACA,MAAM;EACN,MAAM;EACN;EACA;EACA,QAAQ;EACR;EACA;;iBAGe;EACf,MAAM;EACN,QAAQ;EACR;;iBAGe;EACf,eAAe;EACf,OAAO;EACP,cAAc;;iBAGC;EACf,eAAe;EACf,MAAM;;iBAGS;EACf,UAAU;;iBAGK;EACf;;iBAGe;EACf;EACA,OAAO;;iBAGQ;EACf,OAAO;EACP;;iBAGe;EACf,OAAO;EACP,WAAW,eAAe,OAAO;EACjC,WAAW,OAAO;EAClB,OAAO,kBAAkB,OAAO;;iBAGjB;EACf,MAAM;EACN,OAAO;;iBAGQ;EACf;EACA;;iBAGe;EACf,WAAW;EACX;EACA,SAAS,OAAO;;iBAGD;EACf;EACA;;qBC7FW;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,0BAA0B,mBAAmB,WAAW;SAHvF,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBASA;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,8BAA8B,mBAAmB,WAAW;SAH3F,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBASA;SAAA,MAAA,GAAA,qBAAA;SA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A;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;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;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA"}
1
+ {"version":3,"file":"tectra-ng-ui-file-upload.d.ts","names":[],"sources":["../../../../packages/ui/file-upload/src/file-upload.types.ts","../../../../packages/ui/file-upload/src/file-upload.templates.ts","../../../../packages/ui/file-upload/src/file-upload.utils.ts","../../../../packages/ui/file-upload/src/file-upload.component.ts"],"mappings":";;;;;;;;YACY;;YAGA;;YAGA;;YAGA;;YAGA;;YAGA;;iBAiBK;;EAEf;;EAEA,MAAM;;EAEN,MAAM;;EAEN;;EAEA;;EAEA,QAAQ;;EAER;;EAEA;;;iBAIe;;EAEf,MAAM;;EAEN,QAAQ;;EAER;;;iBAIe;;EAEf,eAAe;;EAEf,OAAO;;EAEP,cAAc;;;iBAIC;;EAEf,eAAe;;EAEf,MAAM;;;iBAIS;;EAEf,UAAU;;;iBAIK;;EAEf;;;iBAIe;;EAEf;;EAEA,OAAO;;;iBAIQ;;EAEf,OAAO;;EAEP;;;iBAIe;;EAEf,OAAO;;EAEP,WAAW,eAAe,OAAO;;EAEjC,WAAW,OAAO;;EA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