@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,275 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, input, forwardRef, ChangeDetectionStrategy, Component, inject, TemplateRef, Directive, ViewContainerRef, ElementRef, DestroyRef, output, signal } from '@angular/core';
3
+ import { Overlay } from '@angular/cdk/overlay';
4
+ import { TemplatePortal } from '@angular/cdk/portal';
5
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
+ import { connectedPositionFor, oppositeSide, overlayDismissals } from '@ojiepermana/angular-component/utils';
7
+
8
+ const HOVER_CARD_DEFAULTS = new InjectionToken('HOVER_CARD_DEFAULTS');
9
+ class HoverCardComponent {
10
+ side = input('bottom', /* @ts-ignore */
11
+ ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
12
+ align = input('center', /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
14
+ sideOffset = input(8, /* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
16
+ openDelay = input(100, /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "openDelay" }] : /* istanbul ignore next */ []));
18
+ closeDelay = input(100, /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "closeDelay" }] : /* istanbul ignore next */ []));
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: HoverCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: HoverCardComponent, isStandalone: true, selector: "HoverCard", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, openDelay: { classPropertyName: "openDelay", publicName: "openDelay", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, providers: [{ provide: HOVER_CARD_DEFAULTS, useExisting: forwardRef(() => HoverCardComponent) }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: HoverCardComponent, decorators: [{
24
+ type: Component,
25
+ args: [{
26
+ selector: 'HoverCard',
27
+ changeDetection: ChangeDetectionStrategy.OnPush,
28
+ providers: [{ provide: HOVER_CARD_DEFAULTS, useExisting: forwardRef(() => HoverCardComponent) }],
29
+ host: {
30
+ class: 'contents',
31
+ },
32
+ template: '<ng-content />',
33
+ }]
34
+ }], propDecorators: { side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], openDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "openDelay", required: false }] }], closeDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeDelay", required: false }] }] } });
35
+
36
+ class HoverCardContentDirective {
37
+ template = inject(TemplateRef);
38
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: HoverCardContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: HoverCardContentDirective, isStandalone: true, selector: "ng-template[HoverCardContent]", exportAs: ["HoverCardContent"], ngImport: i0 });
40
+ }
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: HoverCardContentDirective, decorators: [{
42
+ type: Directive,
43
+ args: [{
44
+ selector: 'ng-template[HoverCardContent]',
45
+ exportAs: 'HoverCardContent',
46
+ }]
47
+ }] });
48
+
49
+ // Hover cards are visual preview content (Radix-style): the trigger keeps its
50
+ // own semantics and must NOT advertise aria-haspopup="dialog" for content that
51
+ // is not a dialog.
52
+ class HoverCardTriggerDirective {
53
+ overlay = inject(Overlay);
54
+ vcr = inject(ViewContainerRef);
55
+ el = inject(ElementRef);
56
+ destroyRef = inject(DestroyRef);
57
+ defaults = inject(HOVER_CARD_DEFAULTS, { optional: true });
58
+ HoverCardTrigger = input.required(/* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "HoverCardTrigger" }] : /* istanbul ignore next */ []));
60
+ side = input(undefined, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
62
+ align = input(undefined, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
64
+ sideOffset = input(undefined, /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
66
+ openDelay = input(undefined, /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "openDelay" }] : /* istanbul ignore next */ []));
68
+ closeDelay = input(undefined, /* @ts-ignore */
69
+ ...(ngDevMode ? [{ debugName: "closeDelay" }] : /* istanbul ignore next */ []));
70
+ disabled = input(false, /* @ts-ignore */
71
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
72
+ openedChange = output();
73
+ isOpen = signal(false, /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
75
+ overlayRef = null;
76
+ openTimeoutId = null;
77
+ closeTimeoutId = null;
78
+ isTriggerHovered = false;
79
+ isContentHovered = false;
80
+ isTriggerFocused = false;
81
+ isContentFocused = false;
82
+ constructor() {
83
+ this.destroyRef.onDestroy(() => {
84
+ this.clearOpenTimeout();
85
+ this.clearCloseTimeout();
86
+ this.close(false);
87
+ });
88
+ }
89
+ handleTriggerPointerEnter() {
90
+ if (this.disabled()) {
91
+ return;
92
+ }
93
+ this.isTriggerHovered = true;
94
+ this.clearCloseTimeout();
95
+ this.scheduleOpen();
96
+ }
97
+ handleTriggerPointerLeave(event) {
98
+ this.isTriggerHovered = false;
99
+ if (this.relatedTargetInsideContent(event.relatedTarget)) {
100
+ return;
101
+ }
102
+ this.scheduleClose();
103
+ }
104
+ handleTriggerFocusIn() {
105
+ if (this.disabled()) {
106
+ return;
107
+ }
108
+ this.isTriggerFocused = true;
109
+ this.clearCloseTimeout();
110
+ this.scheduleOpen();
111
+ }
112
+ handleTriggerFocusOut(event) {
113
+ this.isTriggerFocused = false;
114
+ if (this.relatedTargetInsideContent(event.relatedTarget)) {
115
+ return;
116
+ }
117
+ this.scheduleClose();
118
+ }
119
+ open() {
120
+ if (this.isOpen() || this.disabled()) {
121
+ return;
122
+ }
123
+ const side = this.side() ?? this.defaults?.side() ?? 'bottom';
124
+ const align = this.align() ?? this.defaults?.align() ?? 'center';
125
+ const sideOffset = this.sideOffset() ?? this.defaults?.sideOffset() ?? 8;
126
+ const primary = connectedPositionFor(side, align, sideOffset);
127
+ const fallback = connectedPositionFor(oppositeSide(side), align, sideOffset);
128
+ const positionStrategy = this.overlay
129
+ .position()
130
+ .flexibleConnectedTo(this.el)
131
+ .withPositions([primary, fallback])
132
+ .withPush(false)
133
+ .withFlexibleDimensions(false);
134
+ this.overlayRef = this.overlay.create({
135
+ positionStrategy,
136
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
137
+ hasBackdrop: false,
138
+ panelClass: 'hover-card-panel',
139
+ });
140
+ const portal = new TemplatePortal(this.HoverCardTrigger().template, this.vcr);
141
+ this.overlayRef.attach(portal);
142
+ this.bindOverlayInteractions();
143
+ overlayDismissals(this.overlayRef, this.el.nativeElement)
144
+ .pipe(takeUntilDestroyed(this.destroyRef))
145
+ .subscribe(() => this.close());
146
+ this.isOpen.set(true);
147
+ this.openedChange.emit(true);
148
+ }
149
+ close(emitOpenedChange = true) {
150
+ this.clearOpenTimeout();
151
+ this.clearCloseTimeout();
152
+ if (!this.isOpen()) {
153
+ return;
154
+ }
155
+ const overlayRef = this.overlayRef;
156
+ this.unbindOverlayInteractions();
157
+ this.overlayRef = null;
158
+ this.isContentHovered = false;
159
+ this.isContentFocused = false;
160
+ this.isOpen.set(false);
161
+ overlayRef?.dispose();
162
+ if (emitOpenedChange) {
163
+ this.openedChange.emit(false);
164
+ }
165
+ }
166
+ bindOverlayInteractions() {
167
+ const overlayElement = this.overlayRef?.overlayElement;
168
+ if (!overlayElement) {
169
+ return;
170
+ }
171
+ overlayElement.addEventListener('pointerenter', this.onContentPointerEnter);
172
+ overlayElement.addEventListener('pointerleave', this.onContentPointerLeave);
173
+ overlayElement.addEventListener('focusin', this.onContentFocusIn);
174
+ overlayElement.addEventListener('focusout', this.onContentFocusOut);
175
+ }
176
+ unbindOverlayInteractions() {
177
+ const overlayElement = this.overlayRef?.overlayElement;
178
+ if (!overlayElement) {
179
+ return;
180
+ }
181
+ overlayElement.removeEventListener('pointerenter', this.onContentPointerEnter);
182
+ overlayElement.removeEventListener('pointerleave', this.onContentPointerLeave);
183
+ overlayElement.removeEventListener('focusin', this.onContentFocusIn);
184
+ overlayElement.removeEventListener('focusout', this.onContentFocusOut);
185
+ }
186
+ onContentPointerEnter = () => {
187
+ this.isContentHovered = true;
188
+ this.clearCloseTimeout();
189
+ };
190
+ onContentPointerLeave = (event) => {
191
+ this.isContentHovered = false;
192
+ if (this.el.nativeElement.contains(event.relatedTarget)) {
193
+ return;
194
+ }
195
+ this.scheduleClose();
196
+ };
197
+ onContentFocusIn = () => {
198
+ this.isContentFocused = true;
199
+ this.clearCloseTimeout();
200
+ };
201
+ onContentFocusOut = (event) => {
202
+ this.isContentFocused = false;
203
+ if (this.el.nativeElement.contains(event.relatedTarget)) {
204
+ return;
205
+ }
206
+ this.scheduleClose();
207
+ };
208
+ scheduleOpen() {
209
+ this.clearCloseTimeout();
210
+ if (this.isOpen()) {
211
+ return;
212
+ }
213
+ this.clearOpenTimeout();
214
+ this.openTimeoutId = window.setTimeout(() => {
215
+ this.openTimeoutId = null;
216
+ if (this.disabled() || (!this.isTriggerHovered && !this.isTriggerFocused)) {
217
+ return;
218
+ }
219
+ this.open();
220
+ }, this.openDelay() ?? this.defaults?.openDelay() ?? 100);
221
+ }
222
+ scheduleClose() {
223
+ this.clearOpenTimeout();
224
+ if (!this.isOpen()) {
225
+ return;
226
+ }
227
+ this.clearCloseTimeout();
228
+ this.closeTimeoutId = window.setTimeout(() => {
229
+ this.closeTimeoutId = null;
230
+ if (this.isTriggerHovered || this.isContentHovered || this.isTriggerFocused || this.isContentFocused) {
231
+ return;
232
+ }
233
+ this.close();
234
+ }, this.closeDelay() ?? this.defaults?.closeDelay() ?? 100);
235
+ }
236
+ clearOpenTimeout() {
237
+ if (this.openTimeoutId !== null) {
238
+ window.clearTimeout(this.openTimeoutId);
239
+ this.openTimeoutId = null;
240
+ }
241
+ }
242
+ clearCloseTimeout() {
243
+ if (this.closeTimeoutId !== null) {
244
+ window.clearTimeout(this.closeTimeoutId);
245
+ this.closeTimeoutId = null;
246
+ }
247
+ }
248
+ relatedTargetInsideContent(relatedTarget) {
249
+ return this.overlayRef?.overlayElement.contains(relatedTarget) ?? false;
250
+ }
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: HoverCardTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
252
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: HoverCardTriggerDirective, isStandalone: true, selector: "[HoverCardTrigger]", inputs: { HoverCardTrigger: { classPropertyName: "HoverCardTrigger", publicName: "HoverCardTrigger", isSignal: true, isRequired: true, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, openDelay: { classPropertyName: "openDelay", publicName: "openDelay", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "pointerenter": "handleTriggerPointerEnter()", "pointerleave": "handleTriggerPointerLeave($event)", "focusin": "handleTriggerFocusIn()", "focusout": "handleTriggerFocusOut($event)", "keydown.escape": "close()" }, properties: { "attr.data-state": "isOpen() ? \"open\" : \"closed\"" } }, exportAs: ["HoverCardTrigger"], ngImport: i0 });
253
+ }
254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: HoverCardTriggerDirective, decorators: [{
255
+ type: Directive,
256
+ args: [{
257
+ selector: '[HoverCardTrigger]',
258
+ exportAs: 'HoverCardTrigger',
259
+ host: {
260
+ '[attr.data-state]': 'isOpen() ? "open" : "closed"',
261
+ '(pointerenter)': 'handleTriggerPointerEnter()',
262
+ '(pointerleave)': 'handleTriggerPointerLeave($event)',
263
+ '(focusin)': 'handleTriggerFocusIn()',
264
+ '(focusout)': 'handleTriggerFocusOut($event)',
265
+ '(keydown.escape)': 'close()',
266
+ },
267
+ }]
268
+ }], ctorParameters: () => [], propDecorators: { HoverCardTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "HoverCardTrigger", required: true }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], openDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "openDelay", required: false }] }], closeDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeDelay", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
269
+
270
+ /**
271
+ * Generated bundle index. Do not edit.
272
+ */
273
+
274
+ export { HOVER_CARD_DEFAULTS, HoverCardComponent, HoverCardContentDirective, HoverCardTriggerDirective };
275
+ //# sourceMappingURL=ojiepermana-angular-component-hover-card.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ojiepermana-angular-component-hover-card.mjs","sources":["../../../library/component/hover-card/hover-card.component.ts","../../../library/component/hover-card/hover-card-content.directive.ts","../../../library/component/hover-card/hover-card-trigger.directive.ts","../../../library/component/hover-card/ojiepermana-angular-component-hover-card.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, InjectionToken, Signal, forwardRef, input } from '@angular/core';\n\nexport type HoverCardSide = 'top' | 'right' | 'bottom' | 'left';\nexport type HoverCardAlign = 'start' | 'center' | 'end';\n\nexport interface HoverCardDefaults {\n readonly side: Signal<HoverCardSide>;\n readonly align: Signal<HoverCardAlign>;\n readonly sideOffset: Signal<number>;\n readonly openDelay: Signal<number>;\n readonly closeDelay: Signal<number>;\n}\n\nexport const HOVER_CARD_DEFAULTS = new InjectionToken<HoverCardDefaults>('HOVER_CARD_DEFAULTS');\n\n@Component({\n selector: 'HoverCard',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: HOVER_CARD_DEFAULTS, useExisting: forwardRef(() => HoverCardComponent) }],\n host: {\n class: 'contents',\n },\n template: '<ng-content />',\n})\nexport class HoverCardComponent implements HoverCardDefaults {\n readonly side = input<HoverCardSide>('bottom');\n readonly align = input<HoverCardAlign>('center');\n readonly sideOffset = input(8);\n readonly openDelay = input(100);\n readonly closeDelay = input(100);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n selector: 'ng-template[HoverCardContent]',\n exportAs: 'HoverCardContent',\n})\nexport class HoverCardContentDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { DestroyRef, Directive, ElementRef, ViewContainerRef, inject, input, output, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { connectedPositionFor, oppositeSide, overlayDismissals } from '@ojiepermana/angular-component/utils';\n\nimport { HOVER_CARD_DEFAULTS, type HoverCardAlign, type HoverCardSide } from './hover-card.component';\nimport type { HoverCardContentDirective } from './hover-card-content.directive';\n\n// Hover cards are visual preview content (Radix-style): the trigger keeps its\n// own semantics and must NOT advertise aria-haspopup=\"dialog\" for content that\n// is not a dialog.\n@Directive({\n selector: '[HoverCardTrigger]',\n exportAs: 'HoverCardTrigger',\n host: {\n '[attr.data-state]': 'isOpen() ? \"open\" : \"closed\"',\n '(pointerenter)': 'handleTriggerPointerEnter()',\n '(pointerleave)': 'handleTriggerPointerLeave($event)',\n '(focusin)': 'handleTriggerFocusIn()',\n '(focusout)': 'handleTriggerFocusOut($event)',\n '(keydown.escape)': 'close()',\n },\n})\nexport class HoverCardTriggerDirective {\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly destroyRef = inject(DestroyRef);\n private readonly defaults = inject(HOVER_CARD_DEFAULTS, { optional: true });\n\n readonly HoverCardTrigger = input.required<HoverCardContentDirective>();\n readonly side = input<HoverCardSide | undefined>(undefined);\n readonly align = input<HoverCardAlign | undefined>(undefined);\n readonly sideOffset = input<number | undefined>(undefined);\n readonly openDelay = input<number | undefined>(undefined);\n readonly closeDelay = input<number | undefined>(undefined);\n readonly disabled = input(false);\n\n readonly openedChange = output<boolean>();\n\n readonly isOpen = signal(false);\n\n private overlayRef: OverlayRef | null = null;\n private openTimeoutId: number | null = null;\n private closeTimeoutId: number | null = null;\n private isTriggerHovered = false;\n private isContentHovered = false;\n private isTriggerFocused = false;\n private isContentFocused = false;\n\n constructor() {\n this.destroyRef.onDestroy(() => {\n this.clearOpenTimeout();\n this.clearCloseTimeout();\n this.close(false);\n });\n }\n\n handleTriggerPointerEnter(): void {\n if (this.disabled()) {\n return;\n }\n\n this.isTriggerHovered = true;\n this.clearCloseTimeout();\n this.scheduleOpen();\n }\n\n handleTriggerPointerLeave(event: PointerEvent): void {\n this.isTriggerHovered = false;\n\n if (this.relatedTargetInsideContent(event.relatedTarget)) {\n return;\n }\n\n this.scheduleClose();\n }\n\n handleTriggerFocusIn(): void {\n if (this.disabled()) {\n return;\n }\n\n this.isTriggerFocused = true;\n this.clearCloseTimeout();\n this.scheduleOpen();\n }\n\n handleTriggerFocusOut(event: FocusEvent): void {\n this.isTriggerFocused = false;\n\n if (this.relatedTargetInsideContent(event.relatedTarget)) {\n return;\n }\n\n this.scheduleClose();\n }\n\n open(): void {\n if (this.isOpen() || this.disabled()) {\n return;\n }\n\n const side = this.side() ?? this.defaults?.side() ?? 'bottom';\n const align = this.align() ?? this.defaults?.align() ?? 'center';\n const sideOffset = this.sideOffset() ?? this.defaults?.sideOffset() ?? 8;\n\n const primary = connectedPositionFor(side, align, sideOffset);\n const fallback = connectedPositionFor(oppositeSide(side), align, sideOffset);\n\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.el)\n .withPositions([primary, fallback])\n .withPush(false)\n .withFlexibleDimensions(false);\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n hasBackdrop: false,\n panelClass: 'hover-card-panel',\n });\n\n const portal = new TemplatePortal(this.HoverCardTrigger().template, this.vcr);\n this.overlayRef.attach(portal);\n this.bindOverlayInteractions();\n\n overlayDismissals(this.overlayRef, this.el.nativeElement)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.close());\n\n this.isOpen.set(true);\n this.openedChange.emit(true);\n }\n\n close(emitOpenedChange = true): void {\n this.clearOpenTimeout();\n this.clearCloseTimeout();\n\n if (!this.isOpen()) {\n return;\n }\n\n const overlayRef = this.overlayRef;\n this.unbindOverlayInteractions();\n this.overlayRef = null;\n this.isContentHovered = false;\n this.isContentFocused = false;\n this.isOpen.set(false);\n overlayRef?.dispose();\n\n if (emitOpenedChange) {\n this.openedChange.emit(false);\n }\n }\n\n private bindOverlayInteractions(): void {\n const overlayElement = this.overlayRef?.overlayElement;\n\n if (!overlayElement) {\n return;\n }\n\n overlayElement.addEventListener('pointerenter', this.onContentPointerEnter);\n overlayElement.addEventListener('pointerleave', this.onContentPointerLeave);\n overlayElement.addEventListener('focusin', this.onContentFocusIn);\n overlayElement.addEventListener('focusout', this.onContentFocusOut);\n }\n\n private unbindOverlayInteractions(): void {\n const overlayElement = this.overlayRef?.overlayElement;\n\n if (!overlayElement) {\n return;\n }\n\n overlayElement.removeEventListener('pointerenter', this.onContentPointerEnter);\n overlayElement.removeEventListener('pointerleave', this.onContentPointerLeave);\n overlayElement.removeEventListener('focusin', this.onContentFocusIn);\n overlayElement.removeEventListener('focusout', this.onContentFocusOut);\n }\n\n private readonly onContentPointerEnter = (): void => {\n this.isContentHovered = true;\n this.clearCloseTimeout();\n };\n\n private readonly onContentPointerLeave = (event: PointerEvent): void => {\n this.isContentHovered = false;\n\n if (this.el.nativeElement.contains(event.relatedTarget as Node | null)) {\n return;\n }\n\n this.scheduleClose();\n };\n\n private readonly onContentFocusIn = (): void => {\n this.isContentFocused = true;\n this.clearCloseTimeout();\n };\n\n private readonly onContentFocusOut = (event: FocusEvent): void => {\n this.isContentFocused = false;\n\n if (this.el.nativeElement.contains(event.relatedTarget as Node | null)) {\n return;\n }\n\n this.scheduleClose();\n };\n\n private scheduleOpen(): void {\n this.clearCloseTimeout();\n\n if (this.isOpen()) {\n return;\n }\n\n this.clearOpenTimeout();\n this.openTimeoutId = window.setTimeout(\n () => {\n this.openTimeoutId = null;\n\n if (this.disabled() || (!this.isTriggerHovered && !this.isTriggerFocused)) {\n return;\n }\n\n this.open();\n },\n this.openDelay() ?? this.defaults?.openDelay() ?? 100,\n );\n }\n\n private scheduleClose(): void {\n this.clearOpenTimeout();\n\n if (!this.isOpen()) {\n return;\n }\n\n this.clearCloseTimeout();\n this.closeTimeoutId = window.setTimeout(\n () => {\n this.closeTimeoutId = null;\n\n if (this.isTriggerHovered || this.isContentHovered || this.isTriggerFocused || this.isContentFocused) {\n return;\n }\n\n this.close();\n },\n this.closeDelay() ?? this.defaults?.closeDelay() ?? 100,\n );\n }\n\n private clearOpenTimeout(): void {\n if (this.openTimeoutId !== null) {\n window.clearTimeout(this.openTimeoutId);\n this.openTimeoutId = null;\n }\n }\n\n private clearCloseTimeout(): void {\n if (this.closeTimeoutId !== null) {\n window.clearTimeout(this.closeTimeoutId);\n this.closeTimeoutId = null;\n }\n }\n\n private relatedTargetInsideContent(relatedTarget: EventTarget | null): boolean {\n return this.overlayRef?.overlayElement.contains(relatedTarget as Node | null) ?? false;\n }\n}\n","/**\n * Generated b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AAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,cAAA,EAAA,6BAAA,EAAA,cAAA,EAAA,mCAAA,EAAA,SAAA,EAAA,wBAAA,EAAA,UAAA,EAAA,+BAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,kCAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAZrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,mBAAmB,EAAE,8BAA8B;AACnD,wBAAA,gBAAgB,EAAE,6BAA6B;AAC/C,wBAAA,gBAAgB,EAAE,mCAAmC;AACrD,wBAAA,WAAW,EAAE,wBAAwB;AACrC,wBAAA,YAAY,EAAE,+BAA+B;AAC7C,wBAAA,kBAAkB,EAAE,SAAS;AAC9B,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;;;"}
@@ -0,0 +1,86 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, PLATFORM_ID, Service, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { DOCUMENT, isPlatformBrowser } from '@angular/common';
4
+
5
+ const MATERIAL_SYMBOLS_FONT_ATTR = 'data-icon-font';
6
+ const MATERIAL_SYMBOLS_FONT_ID = 'material-symbols-outlined';
7
+ const MATERIAL_SYMBOLS_FONT_HREF = 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0';
8
+ class MaterialSymbolsService {
9
+ documentRef = inject(DOCUMENT, { optional: true });
10
+ platformId = inject(PLATFORM_ID);
11
+ ensureLoaded() {
12
+ const head = this.documentRef?.head;
13
+ if (!isPlatformBrowser(this.platformId) || !head) {
14
+ return;
15
+ }
16
+ const existing = head.querySelector(`link[${MATERIAL_SYMBOLS_FONT_ATTR}="${MATERIAL_SYMBOLS_FONT_ID}"]`);
17
+ if (existing) {
18
+ return;
19
+ }
20
+ const link = this.documentRef.createElement('link');
21
+ link.rel = 'stylesheet';
22
+ link.href = MATERIAL_SYMBOLS_FONT_HREF;
23
+ link.setAttribute(MATERIAL_SYMBOLS_FONT_ATTR, MATERIAL_SYMBOLS_FONT_ID);
24
+ head.appendChild(link);
25
+ }
26
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: MaterialSymbolsService, deps: [], target: i0.ɵɵFactoryTarget.Service });
27
+ static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.2", ngImport: i0, type: MaterialSymbolsService });
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: MaterialSymbolsService, decorators: [{
30
+ type: Service
31
+ }] });
32
+
33
+ class IconComponent {
34
+ materialSymbols = inject(MaterialSymbolsService);
35
+ name = input('', /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
37
+ class = input('', { ...(ngDevMode ? { debugName: "class" } : /* istanbul ignore next */ {}), alias: 'class' });
38
+ size = input(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
40
+ fill = input(0, /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "fill" }] : /* istanbul ignore next */ []));
42
+ weight = input(400, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "weight" }] : /* istanbul ignore next */ []));
44
+ grade = input(0, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "grade" }] : /* istanbul ignore next */ []));
46
+ opticalSize = input(24, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "opticalSize" }] : /* istanbul ignore next */ []));
48
+ resolvedSize = computed(() => this.size() ?? this.opticalSize(), /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
50
+ fontVariationSettings = computed(() => `"FILL" ${this.fill()}, "wght" ${this.weight()}, "GRAD" ${this.grade()}, "opsz" ${this.opticalSize()}`, /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "fontVariationSettings" }] : /* istanbul ignore next */ []));
52
+ classes = computed(() => {
53
+ const base = 'material-symbols-outlined inline-flex items-center justify-center leading-none select-none';
54
+ const extra = this.class();
55
+ return extra ? `${base} ${extra}` : base;
56
+ }, /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
58
+ constructor() {
59
+ this.materialSymbols.ensureLoaded();
60
+ }
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
62
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: IconComponent, isStandalone: true, selector: "Icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, grade: { classPropertyName: "grade", publicName: "grade", isSignal: true, isRequired: false, transformFunction: null }, opticalSize: { classPropertyName: "opticalSize", publicName: "opticalSize", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "translate": "no" }, properties: { "class": "classes()", "style.font-size.px": "resolvedSize()", "style.line-height.px": "resolvedSize()", "style.font-variation-settings": "fontVariationSettings()" } }, ngImport: i0, template: `{{ name() }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
63
+ }
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: IconComponent, decorators: [{
65
+ type: Component,
66
+ args: [{
67
+ selector: 'Icon',
68
+ changeDetection: ChangeDetectionStrategy.OnPush,
69
+ host: {
70
+ '[class]': 'classes()',
71
+ '[style.font-size.px]': 'resolvedSize()',
72
+ '[style.line-height.px]': 'resolvedSize()',
73
+ '[style.font-variation-settings]': 'fontVariationSettings()',
74
+ 'aria-hidden': 'true',
75
+ translate: 'no',
76
+ },
77
+ template: `{{ name() }}`,
78
+ }]
79
+ }], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], grade: [{ type: i0.Input, args: [{ isSignal: true, alias: "grade", required: false }] }], opticalSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "opticalSize", required: false }] }] } });
80
+
81
+ /**
82
+ * Generated bundle index. Do not edit.
83
+ */
84
+
85
+ export { IconComponent, MATERIAL_SYMBOLS_FONT_ATTR, MATERIAL_SYMBOLS_FONT_HREF, MATERIAL_SYMBOLS_FONT_ID, MaterialSymbolsService };
86
+ //# sourceMappingURL=ojiepermana-angular-component-icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ojiepermana-angular-component-icon.mjs","sources":["../../../library/component/icon/material-symbols.service.ts","../../../library/component/icon/icon.component.ts","../../../library/component/icon/ojiepermana-angular-component-icon.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { PLATFORM_ID, Service, inject } from '@angular/core';\n\nexport const MATERIAL_SYMBOLS_FONT_ATTR = 'data-icon-font';\nexport const MATERIAL_SYMBOLS_FONT_ID = 'material-symbols-outlined';\nexport const MATERIAL_SYMBOLS_FONT_HREF =\n 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0';\n\n@Service()\nexport class MaterialSymbolsService {\n private readonly documentRef = inject(DOCUMENT, { optional: true });\n private readonly platformId = inject(PLATFORM_ID);\n\n ensureLoaded(): void {\n const head = this.documentRef?.head;\n\n if (!isPlatformBrowser(this.platformId) || !head) {\n return;\n }\n\n const existing = head.querySelector(`link[${MATERIAL_SYMBOLS_FONT_ATTR}=\"${MATERIAL_SYMBOLS_FONT_ID}\"]`);\n if (existing) {\n return;\n }\n\n const link = this.documentRef.createElement('link');\n link.rel = 'stylesheet';\n link.href = MATERIAL_SYMBOLS_FONT_HREF;\n link.setAttribute(MATERIAL_SYMBOLS_FONT_ATTR, MATERIAL_SYMBOLS_FONT_ID);\n head.appendChild(link);\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { MaterialSymbolsService } from './material-symbols.service';\n\n@Component({\n selector: 'Icon',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[style.font-size.px]': 'resolvedSize()',\n '[style.line-height.px]': 'resolvedSize()',\n '[style.font-variation-settings]': 'fontVariationSettings()',\n 'aria-hidden': 'true',\n translate: 'no',\n },\n template: `{{ name() }}`,\n})\nexport class IconComponent {\n private readonly materialSymbols = inject(MaterialSymbolsService);\n\n readonly name = input('');\n readonly class = input('', { alias: 'class' });\n readonly size = input<number | null>(null);\n readonly fill = input(0);\n readonly weight = input(400);\n readonly grade = input(0);\n readonly opticalSize = input(24);\n\n protected readonly resolvedSize = computed(() => this.size() ?? this.opticalSize());\n protected readonly fontVariationSettings = computed(\n () => `\"FILL\" ${this.fill()}, \"wght\" ${this.weight()}, \"GRAD\" ${this.grade()}, \"opsz\" ${this.opticalSize()}`,\n );\n protected readonly classes = computed(() => {\n const base = 'material-symbols-outlined inline-flex items-center justify-center leading-none select-none';\n const extra = this.class();\n return extra ? `${base} ${extra}` : base;\n });\n\n constructor() {\n this.materialSymbols.ensureLoaded();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGO,MAAM,0BAA0B,GAAG;AACnC,MAAM,wBAAwB,GAAG;AACjC,MAAM,0BAA0B,GACrC;MAGW,sBAAsB,CAAA;IAChB,WAAW,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAClD,IAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;IAEjD,YAAY,GAAA;AACV,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI;QAEnC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;YAChD;QACF;AAEA,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,CAAA,KAAA,EAAQ,0BAA0B,CAAA,EAAA,EAAK,wBAAwB,CAAA,EAAA,CAAI,CAAC;QACxG,IAAI,QAAQ,EAAE;YACZ;QACF;QAEA,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC;AACnD,QAAA,IAAI,CAAC,GAAG,GAAG,YAAY;AACvB,QA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AAA,EAAG,IAAI,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE,GAAG,IAAI;IAC1C,CAAC;gFAAC;AAEF,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE;IACrC;uGAvBW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,wpCAFd,CAAA,YAAA,CAAc,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAEb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAbzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,MAAM;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,sBAAsB,EAAE,gBAAgB;AACxC,wBAAA,wBAAwB,EAAE,gBAAgB;AAC1C,wBAAA,iCAAiC,EAAE,yBAAyB;AAC5D,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,SAAS,EAAE,IAAI;AAChB,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA,YAAA,CAAc;AACzB,iBAAA;;;ACfD;;AAEG;;;;"}
@@ -0,0 +1,179 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, ChangeDetectionStrategy, Component, inject, ElementRef } from '@angular/core';
3
+ import { cn } from '@ojiepermana/angular-component/utils';
4
+ import { buttonVariants } from '@ojiepermana/angular-component/button';
5
+
6
+ const GROUP_BASE = [
7
+ 'relative flex min-w-0 flex-wrap overflow-hidden rounded-lg border border-input bg-transparent text-sm shadow-sm',
8
+ 'transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-1 focus-within:ring-ring',
9
+ '[&>[data-slot=input-group-control]]:min-w-0',
10
+ '[&>[data-slot=input-group-control]]:flex-1',
11
+ '[&>[data-slot=input-group-control]]:rounded-none',
12
+ '[&>[data-slot=input-group-control]]:border-0',
13
+ '[&>[data-slot=input-group-control]]:bg-transparent',
14
+ '[&>[data-slot=input-group-control]]:shadow-none',
15
+ '[&>[data-slot=input-group-control]]:outline-none',
16
+ '[&>[data-slot=input-group-control]]:focus-visible:ring-0',
17
+ '[&>[data-slot=input-group-control]]:focus-visible:outline-none',
18
+ ].join(' ');
19
+ const addonAlignClasses = {
20
+ 'inline-start': ['order-10', '[border-inline-end-width:1px]', '[border-inline-end-color:hsl(var(--border))]'].join(' '),
21
+ 'inline-end': ['order-30', '[border-inline-start-width:1px]', '[border-inline-start-color:hsl(var(--border))]'].join(' '),
22
+ 'block-start': [
23
+ 'order-0 basis-full py-2',
24
+ '[border-block-end-width:1px]',
25
+ '[border-block-end-color:hsl(var(--border))]',
26
+ ].join(' '),
27
+ 'block-end': [
28
+ 'order-40 basis-full py-2',
29
+ '[border-block-start-width:1px]',
30
+ '[border-block-start-color:hsl(var(--border))]',
31
+ ].join(' '),
32
+ };
33
+ const ADDON_BASE = [
34
+ 'flex min-h-9 shrink-0 items-center gap-1.5 bg-[hsl(var(--muted)/var(--opacity-30))] px-3 text-sm text-muted-foreground',
35
+ '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
36
+ ].join(' ');
37
+ const CONTROL_BASE = [
38
+ 'order-20 min-w-0 flex-1 bg-transparent text-sm text-foreground',
39
+ 'placeholder:text-muted-foreground',
40
+ 'disabled:cursor-not-allowed disabled:opacity-50',
41
+ 'focus-visible:outline-none',
42
+ 'aria-[invalid=true]:text-destructive',
43
+ ].join(' ');
44
+ class InputGroupComponent {
45
+ class = input('', /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
47
+ classes = computed(() => cn(GROUP_BASE, this.class()), /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
49
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: InputGroupComponent, isStandalone: true, selector: "InputGroup", 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 });
51
+ }
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupComponent, decorators: [{
53
+ type: Component,
54
+ args: [{
55
+ selector: 'InputGroup',
56
+ changeDetection: ChangeDetectionStrategy.OnPush,
57
+ host: { '[class]': 'classes()' },
58
+ template: `<ng-content />`,
59
+ }]
60
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
61
+ class InputGroupAddonComponent {
62
+ align = input('inline-start', /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
64
+ class = input('', /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
66
+ classes = computed(() => cn(ADDON_BASE, addonAlignClasses[this.align()], this.class()), /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
68
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupAddonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
69
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: InputGroupAddonComponent, isStandalone: true, selector: "InputGroupAddon", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-align": "align()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
70
+ }
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupAddonComponent, decorators: [{
72
+ type: Component,
73
+ args: [{
74
+ selector: 'InputGroupAddon',
75
+ changeDetection: ChangeDetectionStrategy.OnPush,
76
+ host: {
77
+ '[class]': 'classes()',
78
+ '[attr.data-align]': 'align()',
79
+ },
80
+ template: `<ng-content />`,
81
+ }]
82
+ }], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
83
+ class InputGroupTextComponent {
84
+ class = input('', /* @ts-ignore */
85
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
86
+ classes = computed(() => cn('inline-flex items-center gap-1.5 whitespace-nowrap text-sm leading-none text-current', this.class()), /* @ts-ignore */
87
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: InputGroupTextComponent, isStandalone: true, selector: "InputGroupText", 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 });
90
+ }
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupTextComponent, decorators: [{
92
+ type: Component,
93
+ args: [{
94
+ selector: 'InputGroupText',
95
+ changeDetection: ChangeDetectionStrategy.OnPush,
96
+ host: { '[class]': 'classes()' },
97
+ template: `<ng-content />`,
98
+ }]
99
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
100
+ class InputGroupButtonComponent {
101
+ variant = input('ghost', /* @ts-ignore */
102
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
103
+ size = input('xs', /* @ts-ignore */
104
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
105
+ class = input('', /* @ts-ignore */
106
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
107
+ classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), 'shrink-0 shadow-none', 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: InputGroupButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
110
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: InputGroupButtonComponent, isStandalone: true, selector: "button[InputGroupButton], a[InputGroupButton]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-size": "size()", "attr.data-variant": "variant()" } }, 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: InputGroupButtonComponent, decorators: [{
113
+ type: Component,
114
+ args: [{
115
+ selector: 'button[InputGroupButton], a[InputGroupButton]',
116
+ changeDetection: ChangeDetectionStrategy.OnPush,
117
+ host: {
118
+ '[class]': 'classes()',
119
+ '[attr.data-size]': 'size()',
120
+ '[attr.data-variant]': 'variant()',
121
+ },
122
+ template: `<ng-content />`,
123
+ }]
124
+ }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
125
+ class InputGroupInputComponent {
126
+ el = inject(ElementRef);
127
+ class = input('', /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
129
+ classes = computed(() => cn(CONTROL_BASE, 'h-9 px-3 py-2', this.class()), /* @ts-ignore */
130
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
131
+ focus() {
132
+ this.el.nativeElement.focus();
133
+ }
134
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
135
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: InputGroupInputComponent, isStandalone: true, selector: "input[InputGroupInput]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "input-group-control" }, properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
136
+ }
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupInputComponent, decorators: [{
138
+ type: Component,
139
+ args: [{
140
+ selector: 'input[InputGroupInput]',
141
+ changeDetection: ChangeDetectionStrategy.OnPush,
142
+ host: {
143
+ '[class]': 'classes()',
144
+ 'data-slot': 'input-group-control',
145
+ },
146
+ template: '',
147
+ }]
148
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
149
+ class InputGroupTextareaComponent {
150
+ el = inject(ElementRef);
151
+ class = input('', /* @ts-ignore */
152
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
153
+ classes = computed(() => cn(CONTROL_BASE, 'min-h-[120px] w-full resize-none px-3 py-2.5', this.class()), /* @ts-ignore */
154
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
155
+ focus() {
156
+ this.el.nativeElement.focus();
157
+ }
158
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
159
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.2", type: InputGroupTextareaComponent, isStandalone: true, selector: "textarea[InputGroupTextarea]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "input-group-control" }, properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
160
+ }
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: InputGroupTextareaComponent, decorators: [{
162
+ type: Component,
163
+ args: [{
164
+ selector: 'textarea[InputGroupTextarea]',
165
+ changeDetection: ChangeDetectionStrategy.OnPush,
166
+ host: {
167
+ '[class]': 'classes()',
168
+ 'data-slot': 'input-group-control',
169
+ },
170
+ template: '',
171
+ }]
172
+ }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
173
+
174
+ /**
175
+ * Generated bundle index. Do not edit.
176
+ */
177
+
178
+ export { InputGroupAddonComponent, InputGroupButtonComponent, InputGroupComponent, InputGroupInputComponent, InputGroupTextComponent, InputGroupTextareaComponent };
179
+ //# sourceMappingURL=ojiepermana-angular-component-input-group.mjs.map