@ojiepermana/angular-component 22.0.27

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 (244) hide show
  1. package/README.md +82 -0
  2. package/accordion/README.md +193 -0
  3. package/alert/README.md +180 -0
  4. package/alert-dialog/README.md +239 -0
  5. package/aspect-ratio/README.md +112 -0
  6. package/avatar/README.md +176 -0
  7. package/badge/README.md +133 -0
  8. package/breadcrumb/README.md +216 -0
  9. package/button/README.md +139 -0
  10. package/button-group/README.md +208 -0
  11. package/calendar/README.md +135 -0
  12. package/card/README.md +220 -0
  13. package/carousel/README.md +276 -0
  14. package/checkbox/README.md +149 -0
  15. package/collapsible/README.md +195 -0
  16. package/combobox/README.md +198 -0
  17. package/command/README.md +275 -0
  18. package/composer/README.md +235 -0
  19. package/context-menu/README.md +267 -0
  20. package/date-picker/README.md +179 -0
  21. package/dialog/README.md +235 -0
  22. package/drawer/README.md +145 -0
  23. package/dropdown-menu/README.md +311 -0
  24. package/editor/README.md +136 -0
  25. package/empty/README.md +183 -0
  26. package/fesm2022/ojiepermana-angular-component-accordion.mjs +186 -0
  27. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -0
  28. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +276 -0
  29. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -0
  30. package/fesm2022/ojiepermana-angular-component-alert.mjs +99 -0
  31. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -0
  32. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +37 -0
  33. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -0
  34. package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -0
  35. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -0
  36. package/fesm2022/ojiepermana-angular-component-badge.mjs +50 -0
  37. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -0
  38. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +200 -0
  39. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -0
  40. package/fesm2022/ojiepermana-angular-component-button-group.mjs +103 -0
  41. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -0
  42. package/fesm2022/ojiepermana-angular-component-button.mjs +68 -0
  43. package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -0
  44. package/fesm2022/ojiepermana-angular-component-calendar.mjs +103 -0
  45. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -0
  46. package/fesm2022/ojiepermana-angular-component-card.mjs +152 -0
  47. package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -0
  48. package/fesm2022/ojiepermana-angular-component-carousel.mjs +334 -0
  49. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -0
  50. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +165 -0
  51. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -0
  52. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +121 -0
  53. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -0
  54. package/fesm2022/ojiepermana-angular-component-combobox.mjs +274 -0
  55. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -0
  56. package/fesm2022/ojiepermana-angular-component-command.mjs +297 -0
  57. package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -0
  58. package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
  59. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
  60. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +108 -0
  61. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -0
  62. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +186 -0
  63. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -0
  64. package/fesm2022/ojiepermana-angular-component-dialog.mjs +283 -0
  65. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -0
  66. package/fesm2022/ojiepermana-angular-component-drawer.mjs +6 -0
  67. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -0
  68. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +494 -0
  69. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -0
  70. package/fesm2022/ojiepermana-angular-component-editor.mjs +680 -0
  71. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
  72. package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
  73. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
  74. package/fesm2022/ojiepermana-angular-component-form.mjs +364 -0
  75. package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -0
  76. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +275 -0
  77. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
  78. package/fesm2022/ojiepermana-angular-component-icon.mjs +86 -0
  79. package/fesm2022/ojiepermana-angular-component-icon.mjs.map +1 -0
  80. package/fesm2022/ojiepermana-angular-component-input-group.mjs +179 -0
  81. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -0
  82. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +517 -0
  83. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
  84. package/fesm2022/ojiepermana-angular-component-input.mjs +45 -0
  85. package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -0
  86. package/fesm2022/ojiepermana-angular-component-item.mjs +264 -0
  87. package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -0
  88. package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
  89. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
  90. package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
  91. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
  92. package/fesm2022/ojiepermana-angular-component-label.mjs +33 -0
  93. package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -0
  94. package/fesm2022/ojiepermana-angular-component-menubar.mjs +311 -0
  95. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
  96. package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
  97. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
  98. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +408 -0
  99. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
  100. package/fesm2022/ojiepermana-angular-component-pagination.mjs +226 -0
  101. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -0
  102. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +810 -0
  103. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
  104. package/fesm2022/ojiepermana-angular-component-popover.mjs +145 -0
  105. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -0
  106. package/fesm2022/ojiepermana-angular-component-progress.mjs +60 -0
  107. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -0
  108. package/fesm2022/ojiepermana-angular-component-radio.mjs +173 -0
  109. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -0
  110. package/fesm2022/ojiepermana-angular-component-resizable.mjs +478 -0
  111. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
  112. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +54 -0
  113. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -0
  114. package/fesm2022/ojiepermana-angular-component-select.mjs +297 -0
  115. package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -0
  116. package/fesm2022/ojiepermana-angular-component-separator.mjs +37 -0
  117. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -0
  118. package/fesm2022/ojiepermana-angular-component-sheet.mjs +297 -0
  119. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -0
  120. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +31 -0
  121. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -0
  122. package/fesm2022/ojiepermana-angular-component-slider.mjs +423 -0
  123. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -0
  124. package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
  125. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
  126. package/fesm2022/ojiepermana-angular-component-switch.mjs +140 -0
  127. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -0
  128. package/fesm2022/ojiepermana-angular-component-table.mjs +155 -0
  129. package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -0
  130. package/fesm2022/ojiepermana-angular-component-tabs.mjs +271 -0
  131. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -0
  132. package/fesm2022/ojiepermana-angular-component-textarea.mjs +39 -0
  133. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -0
  134. package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
  135. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
  136. package/fesm2022/ojiepermana-angular-component-toast.mjs +161 -0
  137. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -0
  138. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
  139. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
  140. package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
  141. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
  142. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +410 -0
  143. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -0
  144. package/fesm2022/ojiepermana-angular-component-utils.mjs +81 -0
  145. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -0
  146. package/fesm2022/ojiepermana-angular-component.mjs +11 -0
  147. package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
  148. package/form/README.md +210 -0
  149. package/hover-card/README.md +142 -0
  150. package/icon/README.md +25 -0
  151. package/input/README.md +159 -0
  152. package/input-group/README.md +237 -0
  153. package/input-otp/README.md +278 -0
  154. package/item/README.md +247 -0
  155. package/kanban/README.md +81 -0
  156. package/kbd/README.md +139 -0
  157. package/label/README.md +135 -0
  158. package/menubar/README.md +269 -0
  159. package/native-select/README.md +176 -0
  160. package/navigation-menu/README.md +160 -0
  161. package/package.json +291 -0
  162. package/pagination/README.md +144 -0
  163. package/pillbox/README.md +67 -0
  164. package/popover/README.md +43 -0
  165. package/progress/README.md +160 -0
  166. package/radio/README.md +209 -0
  167. package/resizable/README.md +168 -0
  168. package/scroll-area/README.md +143 -0
  169. package/select/README.md +174 -0
  170. package/separator/README.md +170 -0
  171. package/sheet/README.md +183 -0
  172. package/skeleton/README.md +158 -0
  173. package/slider/README.md +207 -0
  174. package/spinner/README.md +160 -0
  175. package/switch/README.md +166 -0
  176. package/table/README.md +291 -0
  177. package/tabs/README.md +214 -0
  178. package/textarea/README.md +153 -0
  179. package/timeline/README.md +94 -0
  180. package/toast/README.md +321 -0
  181. package/toggle/README.md +131 -0
  182. package/toggle-group/README.md +206 -0
  183. package/tooltip/README.md +207 -0
  184. package/types/ojiepermana-angular-component-accordion.d.ts +51 -0
  185. package/types/ojiepermana-angular-component-alert-dialog.d.ts +93 -0
  186. package/types/ojiepermana-angular-component-alert.d.ts +37 -0
  187. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -0
  188. package/types/ojiepermana-angular-component-avatar.d.ts +51 -0
  189. package/types/ojiepermana-angular-component-badge.d.ts +19 -0
  190. package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -0
  191. package/types/ojiepermana-angular-component-button-group.d.ts +26 -0
  192. package/types/ojiepermana-angular-component-button.d.ts +22 -0
  193. package/types/ojiepermana-angular-component-calendar.d.ts +39 -0
  194. package/types/ojiepermana-angular-component-card.d.ts +60 -0
  195. package/types/ojiepermana-angular-component-carousel.d.ts +86 -0
  196. package/types/ojiepermana-angular-component-checkbox.d.ts +42 -0
  197. package/types/ojiepermana-angular-component-collapsible.d.ts +42 -0
  198. package/types/ojiepermana-angular-component-combobox.d.ts +53 -0
  199. package/types/ojiepermana-angular-component-command.d.ts +102 -0
  200. package/types/ojiepermana-angular-component-composer.d.ts +90 -0
  201. package/types/ojiepermana-angular-component-context-menu.d.ts +36 -0
  202. package/types/ojiepermana-angular-component-date-picker.d.ts +48 -0
  203. package/types/ojiepermana-angular-component-dialog.d.ts +87 -0
  204. package/types/ojiepermana-angular-component-drawer.d.ts +1 -0
  205. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +140 -0
  206. package/types/ojiepermana-angular-component-editor.d.ts +126 -0
  207. package/types/ojiepermana-angular-component-empty.d.ts +50 -0
  208. package/types/ojiepermana-angular-component-form.d.ts +140 -0
  209. package/types/ojiepermana-angular-component-hover-card.d.ts +75 -0
  210. package/types/ojiepermana-angular-component-icon.d.ts +31 -0
  211. package/types/ojiepermana-angular-component-input-group.d.ts +51 -0
  212. package/types/ojiepermana-angular-component-input-otp.d.ts +142 -0
  213. package/types/ojiepermana-angular-component-input.d.ts +16 -0
  214. package/types/ojiepermana-angular-component-item.d.ts +88 -0
  215. package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
  216. package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
  217. package/types/ojiepermana-angular-component-label.d.ts +11 -0
  218. package/types/ojiepermana-angular-component-menubar.d.ts +69 -0
  219. package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
  220. package/types/ojiepermana-angular-component-navigation-menu.d.ts +98 -0
  221. package/types/ojiepermana-angular-component-pagination.d.ts +33 -0
  222. package/types/ojiepermana-angular-component-pillbox.d.ts +156 -0
  223. package/types/ojiepermana-angular-component-popover.d.ts +50 -0
  224. package/types/ojiepermana-angular-component-progress.d.ts +17 -0
  225. package/types/ojiepermana-angular-component-radio.d.ts +57 -0
  226. package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
  227. package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -0
  228. package/types/ojiepermana-angular-component-select.d.ts +56 -0
  229. package/types/ojiepermana-angular-component-separator.d.ts +14 -0
  230. package/types/ojiepermana-angular-component-sheet.d.ts +78 -0
  231. package/types/ojiepermana-angular-component-skeleton.d.ts +10 -0
  232. package/types/ojiepermana-angular-component-slider.d.ts +74 -0
  233. package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
  234. package/types/ojiepermana-angular-component-switch.d.ts +44 -0
  235. package/types/ojiepermana-angular-component-table.d.ts +52 -0
  236. package/types/ojiepermana-angular-component-tabs.d.ts +92 -0
  237. package/types/ojiepermana-angular-component-textarea.d.ts +12 -0
  238. package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
  239. package/types/ojiepermana-angular-component-toast.d.ts +51 -0
  240. package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
  241. package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
  242. package/types/ojiepermana-angular-component-tooltip.d.ts +101 -0
  243. package/types/ojiepermana-angular-component-utils.d.ts +30 -0
  244. package/types/ojiepermana-angular-component.d.ts +2 -0
@@ -0,0 +1,364 @@
1
+ import * as i0 from '@angular/core';
2
+ import { signal, computed, effect, Injectable, inject, input, booleanAttribute, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
+ import { uniqueId, cn } from '@ojiepermana/angular-component/utils';
4
+ import { NgControl } from '@angular/forms';
5
+
6
+ /**
7
+ * Backing store for a single `<FormField>`. Provided on the component
8
+ * so descendant parts (label, description, message, control) can inject it.
9
+ */
10
+ class FormFieldContext {
11
+ controlId = uniqueId('FormField');
12
+ descriptionId = `${this.controlId}-description`;
13
+ messageId = `${this.controlId}-message`;
14
+ control = signal(null, /* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
16
+ manualInvalid = signal(false, /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "manualInvalid" }] : /* istanbul ignore next */ []));
18
+ hasDescription = signal(false, /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "hasDescription" }] : /* istanbul ignore next */ []));
20
+ hasMessage = signal(false, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "hasMessage" }] : /* istanbul ignore next */ []));
22
+ statusTick = signal(0, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "statusTick" }] : /* istanbul ignore next */ []));
24
+ invalid = computed(() => {
25
+ this.statusTick();
26
+ const c = this.control();
27
+ return this.manualInvalid() || (!!c && c.invalid && (c.touched || c.dirty));
28
+ }, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
30
+ firstError = computed(() => {
31
+ this.statusTick();
32
+ const c = this.control();
33
+ if (!c?.errors)
34
+ return null;
35
+ const keys = Object.keys(c.errors);
36
+ return keys.length > 0 ? keys[0] : null;
37
+ }, /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "firstError" }] : /* istanbul ignore next */ []));
39
+ describedBy = computed(() => {
40
+ const parts = [];
41
+ if (this.hasDescription())
42
+ parts.push(this.descriptionId);
43
+ if (this.hasMessage() && this.invalid())
44
+ parts.push(this.messageId);
45
+ return parts.length > 0 ? parts.join(' ') : null;
46
+ }, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
48
+ constructor() {
49
+ // Re-run computed() above whenever the control's status or interaction state changes.
50
+ effect((onCleanup) => {
51
+ const c = this.control();
52
+ if (!c)
53
+ return;
54
+ const sub = c.events.subscribe(() => this.statusTick.update((n) => n + 1));
55
+ onCleanup(() => sub.unsubscribe());
56
+ });
57
+ }
58
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldContext, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
59
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldContext });
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldContext, decorators: [{
62
+ type: Injectable
63
+ }], ctorParameters: () => [] });
64
+
65
+ /**
66
+ * Groups a label, control, description, and validation message.
67
+ * Provides ids + invalid state to descendants via {@link FormFieldContext}.
68
+ */
69
+ class FormFieldComponent {
70
+ ctx = inject(FormFieldContext);
71
+ class = input('', /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
73
+ orientation = input('vertical', /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
75
+ invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
76
+ classes = computed(() => {
77
+ const orientation = this.orientation();
78
+ return cn('block min-w-0', orientation === 'vertical' && 'flex flex-col gap-2', orientation === 'horizontal' && 'flex items-start gap-3', orientation === 'responsive' &&
79
+ 'flex flex-col gap-3 sm:grid sm:grid-cols-[minmax(0,12rem)_minmax(0,1fr)] sm:items-start', this.class());
80
+ }, /* @ts-ignore */
81
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
82
+ constructor() {
83
+ effect(() => this.ctx.manualInvalid.set(this.invalid()));
84
+ }
85
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
86
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormFieldComponent, isStandalone: true, selector: "FormField", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-orientation": "orientation()", "attr.data-invalid": "ctx.invalid() ? \"\" : null", "attr.role": "\"group\"" } }, providers: [FormFieldContext], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
87
+ }
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldComponent, decorators: [{
89
+ type: Component,
90
+ args: [{
91
+ selector: 'FormField',
92
+ changeDetection: ChangeDetectionStrategy.OnPush,
93
+ providers: [FormFieldContext],
94
+ host: {
95
+ '[class]': 'classes()',
96
+ '[attr.data-orientation]': 'orientation()',
97
+ '[attr.data-invalid]': 'ctx.invalid() ? "" : null',
98
+ '[attr.role]': '"group"',
99
+ },
100
+ template: `<ng-content />`,
101
+ }]
102
+ }], ctorParameters: () => [], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
103
+
104
+ class FormFieldsetComponent {
105
+ class = input('', /* @ts-ignore */
106
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
107
+ classes = computed(() => cn('block min-w-0 border-0 p-0 m-0', 'grid gap-4', this.class()), /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
109
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldsetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
110
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormFieldsetComponent, isStandalone: true, selector: "FormFieldset, fieldset[FormFieldset]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
111
+ }
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormFieldsetComponent, decorators: [{
113
+ type: Component,
114
+ args: [{
115
+ selector: 'FormFieldset, fieldset[FormFieldset]',
116
+ changeDetection: ChangeDetectionStrategy.OnPush,
117
+ host: {
118
+ '[class]': 'classes()',
119
+ },
120
+ template: `<ng-content />`,
121
+ }]
122
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
123
+
124
+ class FormLegendComponent {
125
+ class = input('', /* @ts-ignore */
126
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
127
+ variant = input('legend', /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
129
+ classes = computed(() => cn('block min-w-0 text-foreground', this.variant() === 'label' ? 'text-sm font-medium leading-none' : 'text-sm font-semibold leading-none', this.class()), /* @ts-ignore */
130
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
131
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormLegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
132
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormLegendComponent, isStandalone: true, selector: "FormLegend, legend[FormLegend]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
133
+ }
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormLegendComponent, decorators: [{
135
+ type: Component,
136
+ args: [{
137
+ selector: 'FormLegend, legend[FormLegend]',
138
+ changeDetection: ChangeDetectionStrategy.OnPush,
139
+ host: {
140
+ '[class]': 'classes()',
141
+ },
142
+ template: `<ng-content />`,
143
+ }]
144
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
145
+
146
+ class FormGroupComponent {
147
+ class = input('', /* @ts-ignore */
148
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
149
+ classes = computed(() => cn('block min-w-0', 'grid gap-6', this.class()), /* @ts-ignore */
150
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
151
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
152
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormGroupComponent, isStandalone: true, selector: "FormGroup", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
153
+ }
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormGroupComponent, decorators: [{
155
+ type: Component,
156
+ args: [{
157
+ selector: 'FormGroup',
158
+ changeDetection: ChangeDetectionStrategy.OnPush,
159
+ host: {
160
+ '[class]': 'classes()',
161
+ },
162
+ template: `<ng-content />`,
163
+ }]
164
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
165
+
166
+ class FormSeparatorComponent {
167
+ class = input('', /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
169
+ classes = computed(() => cn('block min-w-0', 'flex items-center gap-3 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground', 'before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border', this.class()), /* @ts-ignore */
170
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
171
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
172
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormSeparatorComponent, isStandalone: true, selector: "FormSeparator", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<span class="shrink-0"><ng-content /></span>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
173
+ }
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormSeparatorComponent, decorators: [{
175
+ type: Component,
176
+ args: [{
177
+ selector: 'FormSeparator',
178
+ changeDetection: ChangeDetectionStrategy.OnPush,
179
+ host: {
180
+ '[class]': 'classes()',
181
+ },
182
+ template: `<span class="shrink-0"><ng-content /></span>`,
183
+ }]
184
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
185
+
186
+ class FormContentComponent {
187
+ class = input('', /* @ts-ignore */
188
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
189
+ classes = computed(() => cn('block min-w-0 flex-1', 'grid gap-1.5', this.class()), /* @ts-ignore */
190
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
191
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
192
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormContentComponent, isStandalone: true, selector: "FormContent", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
193
+ }
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormContentComponent, decorators: [{
195
+ type: Component,
196
+ args: [{
197
+ selector: 'FormContent',
198
+ changeDetection: ChangeDetectionStrategy.OnPush,
199
+ host: {
200
+ '[class]': 'classes()',
201
+ },
202
+ template: `<ng-content />`,
203
+ }]
204
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
205
+
206
+ class FormTitleComponent {
207
+ class = input('', /* @ts-ignore */
208
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
209
+ classes = computed(() => cn('block text-sm font-medium leading-none text-foreground', this.class()), /* @ts-ignore */
210
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
212
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormTitleComponent, isStandalone: true, selector: "FormTitle", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
213
+ }
214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormTitleComponent, decorators: [{
215
+ type: Component,
216
+ args: [{
217
+ selector: 'FormTitle',
218
+ changeDetection: ChangeDetectionStrategy.OnPush,
219
+ host: {
220
+ '[class]': 'classes()',
221
+ },
222
+ template: `<ng-content />`,
223
+ }]
224
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
225
+
226
+ class FormLabelComponent {
227
+ ctx = inject(FormFieldContext);
228
+ class = input('', /* @ts-ignore */
229
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
230
+ classes = computed(() => cn('text-sm font-medium leading-none', this.ctx.invalid() ? 'text-destructive' : 'text-foreground', 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70', this.class()), /* @ts-ignore */
231
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
232
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
233
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormLabelComponent, isStandalone: true, selector: "FormLabel, label[FormLabel]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.for": "ctx.controlId" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
234
+ }
235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormLabelComponent, decorators: [{
236
+ type: Component,
237
+ args: [{
238
+ selector: 'FormLabel, label[FormLabel]',
239
+ changeDetection: ChangeDetectionStrategy.OnPush,
240
+ host: {
241
+ '[class]': 'classes()',
242
+ '[attr.for]': 'ctx.controlId',
243
+ },
244
+ template: `<ng-content />`,
245
+ }]
246
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
247
+
248
+ class FormDescriptionComponent {
249
+ ctx = inject(FormFieldContext, { optional: true });
250
+ class = input('', /* @ts-ignore */
251
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
252
+ classes = computed(() => cn('text-sm text-muted-foreground', this.class()), /* @ts-ignore */
253
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
254
+ descriptionId = computed(() => this.ctx?.descriptionId ?? null, /* @ts-ignore */
255
+ ...(ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []));
256
+ ngOnInit() {
257
+ this.ctx?.hasDescription.set(true);
258
+ }
259
+ ngOnDestroy() {
260
+ this.ctx?.hasDescription.set(false);
261
+ }
262
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormDescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
263
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: FormDescriptionComponent, isStandalone: true, selector: "FormDescription, p[FormDescription]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "descriptionId()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
264
+ }
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormDescriptionComponent, decorators: [{
266
+ type: Component,
267
+ args: [{
268
+ selector: 'FormDescription, p[FormDescription]',
269
+ changeDetection: ChangeDetectionStrategy.OnPush,
270
+ host: {
271
+ '[class]': 'classes()',
272
+ '[attr.id]': 'descriptionId()',
273
+ },
274
+ template: `<ng-content />`,
275
+ }]
276
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
277
+
278
+ /**
279
+ * Renders validation errors for the field's control.
280
+ * By default, surfaces the first error key. Provide custom content to override.
281
+ */
282
+ class FormMessageComponent {
283
+ ctx = inject(FormFieldContext);
284
+ class = input('', /* @ts-ignore */
285
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
286
+ show = computed(() => this.ctx.invalid(), /* @ts-ignore */
287
+ ...(ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []));
288
+ classes = computed(() => cn('text-sm font-medium text-destructive', this.class()), /* @ts-ignore */
289
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
290
+ ngOnInit() {
291
+ this.ctx.hasMessage.set(true);
292
+ }
293
+ ngOnDestroy() {
294
+ this.ctx.hasMessage.set(false);
295
+ }
296
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
297
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.2", type: FormMessageComponent, isStandalone: true, selector: "FormMessage, p[FormMessage]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "ctx.messageId", "attr.role": "\"alert\"", "attr.aria-live": "\"polite\"" } }, ngImport: i0, template: `
298
+ @if (show()) {
299
+ <ng-content>{{ ctx.firstError() }}</ng-content>
300
+ }
301
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
302
+ }
303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormMessageComponent, decorators: [{
304
+ type: Component,
305
+ args: [{
306
+ selector: 'FormMessage, p[FormMessage]',
307
+ changeDetection: ChangeDetectionStrategy.OnPush,
308
+ host: {
309
+ '[class]': 'classes()',
310
+ '[attr.id]': 'ctx.messageId',
311
+ '[attr.role]': '"alert"',
312
+ '[attr.aria-live]': '"polite"',
313
+ },
314
+ template: `
315
+ @if (show()) {
316
+ <ng-content>{{ ctx.firstError() }}</ng-content>
317
+ }
318
+ `,
319
+ }]
320
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
321
+
322
+ /**
323
+ * Attach to the native form control inside a `<FormField>` to auto-wire:
324
+ * - `id` ↔ `<FormLabel for>`
325
+ * - `aria-describedby` ↔ description + error message
326
+ * - `aria-invalid` ↔ control validity (after touch/dirty)
327
+ *
328
+ * @example
329
+ * <FormField>
330
+ * <FormLabel>Email</FormLabel>
331
+ * <input Input FormControl [formControl]="email" />
332
+ * <FormDescription>We'll never share it.</FormDescription>
333
+ * <FormMessage />
334
+ * </FormField>
335
+ */
336
+ class FormControlDirective {
337
+ ctx = inject(FormFieldContext);
338
+ ngControl = inject(NgControl, { optional: true, self: true });
339
+ ngOnInit() {
340
+ if (this.ngControl?.control) {
341
+ this.ctx.control.set(this.ngControl.control);
342
+ }
343
+ }
344
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
345
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: FormControlDirective, isStandalone: true, selector: "[FormControl]", host: { properties: { "attr.id": "ctx.controlId", "attr.aria-describedby": "ctx.describedBy()", "attr.aria-invalid": "ctx.invalid() ? \"true\" : null" } }, ngImport: i0 });
346
+ }
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: FormControlDirective, decorators: [{
348
+ type: Directive,
349
+ args: [{
350
+ selector: '[FormControl]',
351
+ host: {
352
+ '[attr.id]': 'ctx.controlId',
353
+ '[attr.aria-describedby]': 'ctx.describedBy()',
354
+ '[attr.aria-invalid]': 'ctx.invalid() ? "true" : null',
355
+ },
356
+ }]
357
+ }] });
358
+
359
+ /**
360
+ * Generated bundle index. Do not edit.
361
+ */
362
+
363
+ export { FormContentComponent, FormControlDirective, FormDescriptionComponent, FormFieldComponent, FormFieldContext, FormFieldsetComponent, FormGroupComponent, FormLabelComponent, FormLegendComponent, FormMessageComponent, FormSeparatorComponent, FormTitleComponent };
364
+ //# sourceMappingURL=ojiepermana-angular-component-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ojiepermana-angular-component-form.mjs","sources":["../../../library/component/form/form-field.context.ts","../../../library/component/form/form-field.component.ts","../../../library/component/form/form-fieldset.component.ts","../../../library/component/form/form-legend.component.ts","../../../library/component/form/form-group.component.ts","../../../library/component/form/form-separator.component.ts","../../../library/component/form/form-content.component.ts","../../../library/component/form/form-title.component.ts","../../../library/component/form/form-label.component.ts","../../../library/component/form/form-description.component.ts","../../../library/component/form/form-message.component.ts","../../../library/component/form/form-control.directive.ts","../../../library/component/form/ojiepermana-angular-component-form.ts"],"sourcesContent":["import { Injectable, computed, effect, signal } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\nimport { uniqueId } from '@ojiepermana/angular-component/utils';\n\n/**\n * Backing store for a single `<FormField>`. Provided on the component\n * so descendant parts (label, description, message, control) can inject it.\n */\n@Injectable()\nexport class FormFieldContext {\n readonly controlId = uniqueId('FormField');\n readonly descriptionId = `${this.controlId}-description`;\n readonly messageId = `${this.controlId}-message`;\n\n readonly control = signal<AbstractControl | null>(null);\n readonly manualInvalid = signal(false);\n readonly hasDescription = signal(false);\n readonly hasMessage = signal(false);\n\n private readonly statusTick = signal(0);\n\n readonly invalid = computed(() => {\n this.statusTick();\n const c = this.control();\n return this.manualInvalid() || (!!c && c.invalid && (c.touched || c.dirty));\n });\n\n readonly firstError = computed<string | null>(() => {\n this.statusTick();\n const c = this.control();\n if (!c?.errors) return null;\n const keys = Object.keys(c.errors);\n return keys.length > 0 ? keys[0]! : null;\n });\n\n readonly describedBy = computed(() => {\n const parts: string[] = [];\n if (this.hasDescription()) parts.push(this.descriptionId);\n if (this.hasMessage() && this.invalid()) parts.push(this.messageId);\n return parts.length > 0 ? parts.join(' ') : null;\n });\n\n constructor() {\n // Re-run computed() above whenever the control's status or interaction state changes.\n effect((onCleanup) => {\n const c = this.control();\n if (!c) return;\n const sub = c.events.subscribe(() => this.statusTick.update((n) => n + 1));\n onCleanup(() => sub.unsubscribe());\n });\n }\n}\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, inject, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\nimport { FormFieldContext } from './form-field.context';\n\n/**\n * Groups a label, control, description, and validation message.\n * Provides ids + invalid state to descendants via {@link FormFieldContext}.\n */\n@Component({\n selector: 'FormField',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [FormFieldContext],\n host: {\n '[class]': 'classes()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-invalid]': 'ctx.invalid() ? \"\" : null',\n '[attr.role]': '\"group\"',\n },\n template: `<ng-content />`,\n})\nexport class FormFieldComponent {\n protected readonly ctx = inject(FormFieldContext);\n\n readonly class = input<string>('');\n readonly orientation = input<'vertical' | 'horizontal' | 'responsive'>('vertical');\n readonly invalid = input(false, { transform: booleanAttribute });\n\n protected readonly classes = computed(() => {\n const orientation = this.orientation();\n\n return cn(\n 'block min-w-0',\n orientation === 'vertical' && 'flex flex-col gap-2',\n orientation === 'horizontal' && 'flex items-start gap-3',\n orientation === 'responsive' &&\n 'flex flex-col gap-3 sm:grid sm:grid-cols-[minmax(0,12rem)_minmax(0,1fr)] sm:items-start',\n this.class(),\n );\n });\n\n constructor() {\n effect(() => this.ctx.manualInvalid.set(this.invalid()));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\n\n@Component({\n selector: 'FormFieldset, fieldset[FormFieldset]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class FormFieldsetComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('block min-w-0 border-0 p-0 m-0', 'grid gap-4', this.class()));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\n\n@Component({\n selector: 'FormLegend, legend[FormLegend]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class FormLegendComponent {\n readonly class = input<string>('');\n readonly variant = input<'legend' | 'label'>('legend');\n\n protected readonly classes = computed(() =>\n cn(\n 'block min-w-0 text-foreground',\n this.variant() === 'label' ? 'text-sm font-medium leading-none' : 'text-sm font-semibold leading-none',\n this.class(),\n ),\n );\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\n\n@Component({\n selector: 'FormGroup',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class FormGroupComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('block min-w-0', 'grid gap-6', this.class()));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\n\n@Component({\n selector: 'FormSeparator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<span class=\"shrink-0\"><ng-content /></span>`,\n})\nexport class FormSeparatorComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(\n 'block min-w-0',\n 'flex items-center gap-3 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground',\n 'before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border',\n this.class(),\n ),\n );\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\n\n@Component({\n selector: 'FormContent',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class FormContentComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('block min-w-0 flex-1', 'grid gap-1.5', this.class()));\n}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\n\n@Component({\n selector: 'FormTitle',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class FormTitleComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn('block text-sm font-medium leading-none text-foreground', this.class()),\n );\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\nimport { FormFieldContext } from './form-field.context';\n\n@Component({\n selector: 'FormLabel, label[FormLabel]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.for]': 'ctx.controlId',\n },\n template: `<ng-content />`,\n})\nexport class FormLabelComponent {\n protected readonly ctx = inject(FormFieldContext);\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(\n 'text-sm font-medium leading-none',\n this.ctx.invalid() ? 'text-destructive' : 'text-foreground',\n 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n this.class(),\n ),\n );\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input, OnDestroy, OnInit } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\nimport { FormFieldContext } from './form-field.context';\n\n@Component({\n selector: 'FormDescription, p[FormDescription]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.id]': 'descriptionId()',\n },\n template: `<ng-content />`,\n})\nexport class FormDescriptionComponent implements OnInit, OnDestroy {\n protected readonly ctx = inject(FormFieldContext, { optional: true });\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('text-sm text-muted-foreground', this.class()));\n protected readonly descriptionId = computed(() => this.ctx?.descriptionId ?? null);\n\n ngOnInit(): void {\n this.ctx?.hasDescription.set(true);\n }\n\n ngOnDestroy(): void {\n this.ctx?.hasDescription.set(false);\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input, OnDestroy, OnInit } from '@angular/core';\nimport { cn } from '@ojiepermana/angular-component/utils';\nimport { FormFieldContext } from './form-field.context';\n\n/**\n * Renders validation errors for the field's control.\n * By default, surfaces the first error key. Provide custom content to override.\n */\n@Component({\n selector: 'FormMessage, p[FormMessage]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.id]': 'ctx.messageId',\n '[attr.role]': '\"alert\"',\n '[attr.aria-live]': '\"polite\"',\n },\n template: `\n @if (show()) {\n <ng-content>{{ ctx.firstError() }}</ng-content>\n }\n `,\n})\nexport class FormMessageComponent implements OnInit, OnDestroy {\n protected readonly ctx = inject(FormFieldContext);\n readonly class = input<string>('');\n\n protected readonly show = computed(() => this.ctx.invalid());\n protected readonly classes = computed(() => cn('text-sm font-medium text-destructive', this.class()));\n\n ngOnInit(): void {\n this.ctx.hasMessage.set(true);\n }\n\n ngOnDestroy(): void {\n this.ctx.hasMessage.set(false);\n }\n}\n","import { Directive, OnInit, inject } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { FormFieldContext } from './form-field.context';\n\n/**\n * Attach to the native form control inside a `<FormField>` to auto-wire:\n * - `id` ↔ `<FormLabel for>`\n * - `aria-describedby` ↔ description + error message\n * - `aria-invalid` ↔ control validity (after touch/dirty)\n *\n * @example\n * <FormField>\n * <FormLabel>Email</FormLabel>\n * <input Input FormControl [formControl]=\"email\" />\n * <FormDescription>We'll never share it.</FormDescription>\n * <FormMessage />\n * </FormField>\n */\n@Directive({\n selector: '[FormControl]',\n host: {\n '[attr.id]': 'ctx.controlId',\n '[attr.aria-describedby]': 'ctx.describedBy()',\n '[attr.aria-invalid]': 'ctx.invalid() ? \"true\" : null',\n },\n})\nexport class FormControlDirective implements OnInit {\n protected readonly ctx = inject(FormFieldContext);\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n\n ngOnInit(): void {\n if (this.ngControl?.control) {\n this.ctx.control.set(this.ngControl.control);\n }\n }\n}\n","/**\n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