pdm-ui-kit 0.1.3 → 0.1.5

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 (375) hide show
  1. package/package.json +20 -13
  2. package/dist/corelusa-pdm-ui-kit/README.md +0 -79
  3. package/dist/corelusa-pdm-ui-kit/esm2020/corelusa-pdm-ui-kit.mjs +0 -5
  4. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/field/field.component.mjs +0 -52
  5. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input/input.component.mjs +0 -65
  6. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input-group/input-group.component.mjs +0 -54
  7. package/dist/corelusa-pdm-ui-kit/esm2020/lib/components/input-password/input-password.component.mjs +0 -72
  8. package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs +0 -2959
  9. package/dist/corelusa-pdm-ui-kit/fesm2015/corelusa-pdm-ui-kit.mjs.map +0 -1
  10. package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs +0 -2954
  11. package/dist/corelusa-pdm-ui-kit/fesm2020/corelusa-pdm-ui-kit.mjs.map +0 -1
  12. package/dist/corelusa-pdm-ui-kit/index.d.ts +0 -5
  13. package/dist/corelusa-pdm-ui-kit/lib/components/field/field.component.d.ts +0 -18
  14. package/dist/corelusa-pdm-ui-kit/lib/components/input-group/input-group.component.d.ts +0 -19
  15. package/dist/corelusa-pdm-ui-kit/package.json +0 -47
  16. package/dist/pdm-ui-kit/README.md +0 -128
  17. package/dist/pdm-ui-kit/esm2020/lib/components/accordion/accordion.component.mjs +0 -42
  18. package/dist/pdm-ui-kit/esm2020/lib/components/alert/alert.component.mjs +0 -35
  19. package/dist/pdm-ui-kit/esm2020/lib/components/alert-dialog/alert-dialog.component.mjs +0 -69
  20. package/dist/pdm-ui-kit/esm2020/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -31
  21. package/dist/pdm-ui-kit/esm2020/lib/components/avatar/avatar.component.mjs +0 -46
  22. package/dist/pdm-ui-kit/esm2020/lib/components/badge/badge.component.mjs +0 -23
  23. package/dist/pdm-ui-kit/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -29
  24. package/dist/pdm-ui-kit/esm2020/lib/components/button/button.component.mjs +0 -82
  25. package/dist/pdm-ui-kit/esm2020/lib/components/button-group/button-group.component.mjs +0 -23
  26. package/dist/pdm-ui-kit/esm2020/lib/components/calendar/calendar.component.mjs +0 -71
  27. package/dist/pdm-ui-kit/esm2020/lib/components/card/card.component.mjs +0 -65
  28. package/dist/pdm-ui-kit/esm2020/lib/components/carousel/carousel.component.mjs +0 -97
  29. package/dist/pdm-ui-kit/esm2020/lib/components/chart/chart.component.mjs +0 -174
  30. package/dist/pdm-ui-kit/esm2020/lib/components/checkbox/checkbox.component.mjs +0 -47
  31. package/dist/pdm-ui-kit/esm2020/lib/components/collapsible/collapsible.component.mjs +0 -43
  32. package/dist/pdm-ui-kit/esm2020/lib/components/combobox/combobox.component.mjs +0 -51
  33. package/dist/pdm-ui-kit/esm2020/lib/components/command/command.component.mjs +0 -75
  34. package/dist/pdm-ui-kit/esm2020/lib/components/context-menu/context-menu.component.mjs +0 -78
  35. package/dist/pdm-ui-kit/esm2020/lib/components/data-table/data-table.component.mjs +0 -89
  36. package/dist/pdm-ui-kit/esm2020/lib/components/date-picker/date-picker.component.mjs +0 -63
  37. package/dist/pdm-ui-kit/esm2020/lib/components/dialog/dialog.component.mjs +0 -90
  38. package/dist/pdm-ui-kit/esm2020/lib/components/drawer/drawer.component.mjs +0 -72
  39. package/dist/pdm-ui-kit/esm2020/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -120
  40. package/dist/pdm-ui-kit/esm2020/lib/components/empty/empty.component.mjs +0 -58
  41. package/dist/pdm-ui-kit/esm2020/lib/components/hover-card/hover-card.component.mjs +0 -44
  42. package/dist/pdm-ui-kit/esm2020/lib/components/icon/icon.component.mjs +0 -94
  43. package/dist/pdm-ui-kit/esm2020/lib/components/input-otp/input-otp.component.mjs +0 -140
  44. package/dist/pdm-ui-kit/esm2020/lib/components/item/item.component.mjs +0 -23
  45. package/dist/pdm-ui-kit/esm2020/lib/components/kbd/kbd.component.mjs +0 -17
  46. package/dist/pdm-ui-kit/esm2020/lib/components/label/label.component.mjs +0 -23
  47. package/dist/pdm-ui-kit/esm2020/lib/components/menubar/menubar.component.mjs +0 -31
  48. package/dist/pdm-ui-kit/esm2020/lib/components/native-select/native-select.component.mjs +0 -42
  49. package/dist/pdm-ui-kit/esm2020/lib/components/navigation-menu/navigation-menu.component.mjs +0 -20
  50. package/dist/pdm-ui-kit/esm2020/lib/components/pagination/pagination.component.mjs +0 -47
  51. package/dist/pdm-ui-kit/esm2020/lib/components/popover/popover.component.mjs +0 -58
  52. package/dist/pdm-ui-kit/esm2020/lib/components/progress/progress.component.mjs +0 -33
  53. package/dist/pdm-ui-kit/esm2020/lib/components/radio-group/radio-group.component.mjs +0 -38
  54. package/dist/pdm-ui-kit/esm2020/lib/components/scroll-area/scroll-area.component.mjs +0 -20
  55. package/dist/pdm-ui-kit/esm2020/lib/components/select/select.component.mjs +0 -38
  56. package/dist/pdm-ui-kit/esm2020/lib/components/separator/separator.component.mjs +0 -26
  57. package/dist/pdm-ui-kit/esm2020/lib/components/sheet/sheet.component.mjs +0 -39
  58. package/dist/pdm-ui-kit/esm2020/lib/components/sidebar/sidebar.component.mjs +0 -20
  59. package/dist/pdm-ui-kit/esm2020/lib/components/skeleton/skeleton.component.mjs +0 -17
  60. package/dist/pdm-ui-kit/esm2020/lib/components/slider/slider.component.mjs +0 -46
  61. package/dist/pdm-ui-kit/esm2020/lib/components/sonner/sonner.component.mjs +0 -39
  62. package/dist/pdm-ui-kit/esm2020/lib/components/spinner/spinner.component.mjs +0 -20
  63. package/dist/pdm-ui-kit/esm2020/lib/components/switch/switch.component.mjs +0 -35
  64. package/dist/pdm-ui-kit/esm2020/lib/components/table/table.component.mjs +0 -17
  65. package/dist/pdm-ui-kit/esm2020/lib/components/tabs/tabs.component.mjs +0 -31
  66. package/dist/pdm-ui-kit/esm2020/lib/components/textarea/textarea.component.mjs +0 -59
  67. package/dist/pdm-ui-kit/esm2020/lib/components/toggle/toggle.component.mjs +0 -41
  68. package/dist/pdm-ui-kit/esm2020/lib/components/toggle-group/toggle-group.component.mjs +0 -31
  69. package/dist/pdm-ui-kit/esm2020/lib/components/tooltip/tooltip.component.mjs +0 -33
  70. package/dist/pdm-ui-kit/esm2020/lib/pdm-ui-kit.module.mjs +0 -245
  71. package/dist/pdm-ui-kit/esm2020/public-api.mjs +0 -59
  72. package/dist/pdm-ui-kit/lib/components/accordion/accordion.component.d.ts +0 -19
  73. package/dist/pdm-ui-kit/lib/components/alert/alert.component.d.ts +0 -13
  74. package/dist/pdm-ui-kit/lib/components/alert-dialog/alert-dialog.component.d.ts +0 -21
  75. package/dist/pdm-ui-kit/lib/components/aspect-ratio/aspect-ratio.component.d.ts +0 -10
  76. package/dist/pdm-ui-kit/lib/components/avatar/avatar.component.d.ts +0 -20
  77. package/dist/pdm-ui-kit/lib/components/badge/badge.component.d.ts +0 -9
  78. package/dist/pdm-ui-kit/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -10
  79. package/dist/pdm-ui-kit/lib/components/button/button.component.d.ts +0 -24
  80. package/dist/pdm-ui-kit/lib/components/button-group/button-group.component.d.ts +0 -9
  81. package/dist/pdm-ui-kit/lib/components/calendar/calendar.component.d.ts +0 -28
  82. package/dist/pdm-ui-kit/lib/components/card/card.component.d.ts +0 -24
  83. package/dist/pdm-ui-kit/lib/components/carousel/carousel.component.d.ts +0 -25
  84. package/dist/pdm-ui-kit/lib/components/chart/chart.component.d.ts +0 -41
  85. package/dist/pdm-ui-kit/lib/components/checkbox/checkbox.component.d.ts +0 -17
  86. package/dist/pdm-ui-kit/lib/components/collapsible/collapsible.component.d.ts +0 -14
  87. package/dist/pdm-ui-kit/lib/components/combobox/combobox.component.d.ts +0 -18
  88. package/dist/pdm-ui-kit/lib/components/command/command.component.d.ts +0 -33
  89. package/dist/pdm-ui-kit/lib/components/context-menu/context-menu.component.d.ts +0 -26
  90. package/dist/pdm-ui-kit/lib/components/data-table/data-table.component.d.ts +0 -36
  91. package/dist/pdm-ui-kit/lib/components/date-picker/date-picker.component.d.ts +0 -23
  92. package/dist/pdm-ui-kit/lib/components/dialog/dialog.component.d.ts +0 -30
  93. package/dist/pdm-ui-kit/lib/components/drawer/drawer.component.d.ts +0 -27
  94. package/dist/pdm-ui-kit/lib/components/dropdown-menu/dropdown-menu.component.d.ts +0 -34
  95. package/dist/pdm-ui-kit/lib/components/empty/empty.component.d.ts +0 -19
  96. package/dist/pdm-ui-kit/lib/components/hover-card/hover-card.component.d.ts +0 -14
  97. package/dist/pdm-ui-kit/lib/components/icon/icon.component.d.ts +0 -18
  98. package/dist/pdm-ui-kit/lib/components/input/input.component.d.ts +0 -23
  99. package/dist/pdm-ui-kit/lib/components/input-otp/input-otp.component.d.ts +0 -26
  100. package/dist/pdm-ui-kit/lib/components/input-password/input-password.component.d.ts +0 -25
  101. package/dist/pdm-ui-kit/lib/components/item/item.component.d.ts +0 -8
  102. package/dist/pdm-ui-kit/lib/components/kbd/kbd.component.d.ts +0 -6
  103. package/dist/pdm-ui-kit/lib/components/label/label.component.d.ts +0 -8
  104. package/dist/pdm-ui-kit/lib/components/menubar/menubar.component.d.ts +0 -17
  105. package/dist/pdm-ui-kit/lib/components/native-select/native-select.component.d.ts +0 -20
  106. package/dist/pdm-ui-kit/lib/components/navigation-menu/navigation-menu.component.d.ts +0 -12
  107. package/dist/pdm-ui-kit/lib/components/pagination/pagination.component.d.ts +0 -13
  108. package/dist/pdm-ui-kit/lib/components/popover/popover.component.d.ts +0 -17
  109. package/dist/pdm-ui-kit/lib/components/progress/progress.component.d.ts +0 -10
  110. package/dist/pdm-ui-kit/lib/components/radio-group/radio-group.component.d.ts +0 -19
  111. package/dist/pdm-ui-kit/lib/components/scroll-area/scroll-area.component.d.ts +0 -7
  112. package/dist/pdm-ui-kit/lib/components/select/select.component.d.ts +0 -19
  113. package/dist/pdm-ui-kit/lib/components/separator/separator.component.d.ts +0 -9
  114. package/dist/pdm-ui-kit/lib/components/sheet/sheet.component.d.ts +0 -13
  115. package/dist/pdm-ui-kit/lib/components/sidebar/sidebar.component.d.ts +0 -7
  116. package/dist/pdm-ui-kit/lib/components/skeleton/skeleton.component.d.ts +0 -6
  117. package/dist/pdm-ui-kit/lib/components/slider/slider.component.d.ts +0 -15
  118. package/dist/pdm-ui-kit/lib/components/sonner/sonner.component.d.ts +0 -13
  119. package/dist/pdm-ui-kit/lib/components/spinner/spinner.component.d.ts +0 -7
  120. package/dist/pdm-ui-kit/lib/components/switch/switch.component.d.ts +0 -13
  121. package/dist/pdm-ui-kit/lib/components/table/table.component.d.ts +0 -6
  122. package/dist/pdm-ui-kit/lib/components/tabs/tabs.component.d.ts +0 -16
  123. package/dist/pdm-ui-kit/lib/components/textarea/textarea.component.d.ts +0 -21
  124. package/dist/pdm-ui-kit/lib/components/toggle/toggle.component.d.ts +0 -14
  125. package/dist/pdm-ui-kit/lib/components/toggle-group/toggle-group.component.d.ts +0 -16
  126. package/dist/pdm-ui-kit/lib/components/tooltip/tooltip.component.d.ts +0 -10
  127. package/dist/pdm-ui-kit/lib/pdm-ui-kit.module.d.ts +0 -64
  128. package/dist/pdm-ui-kit/package.json +0 -44
  129. package/dist/pdm-ui-kit/public-api.d.ts +0 -58
  130. package/ng-package.json +0 -8
  131. package/pdm-ui-kit-0.1.1.tgz +0 -0
  132. package/pdm-ui-kit-0.1.2.tgz +0 -0
  133. package/pdm-ui-kit-0.1.3.tgz +0 -0
  134. package/src/lib/components/accordion/accordion.component.html +0 -34
  135. package/src/lib/components/accordion/accordion.component.ts +0 -38
  136. package/src/lib/components/alert/alert.component.html +0 -52
  137. package/src/lib/components/alert/alert.component.ts +0 -25
  138. package/src/lib/components/alert-dialog/alert-dialog.component.html +0 -41
  139. package/src/lib/components/alert-dialog/alert-dialog.component.ts +0 -45
  140. package/src/lib/components/aspect-ratio/aspect-ratio.component.html +0 -11
  141. package/src/lib/components/aspect-ratio/aspect-ratio.component.ts +0 -18
  142. package/src/lib/components/avatar/avatar.component.html +0 -21
  143. package/src/lib/components/avatar/avatar.component.ts +0 -32
  144. package/src/lib/components/badge/badge.component.html +0 -28
  145. package/src/lib/components/badge/badge.component.ts +0 -23
  146. package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -39
  147. package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -26
  148. package/src/lib/components/button/button.component.html +0 -15
  149. package/src/lib/components/button/button.component.ts +0 -84
  150. package/src/lib/components/button-group/button-group.component.html +0 -39
  151. package/src/lib/components/button-group/button-group.component.ts +0 -15
  152. package/src/lib/components/calendar/calendar.component.html +0 -73
  153. package/src/lib/components/calendar/calendar.component.ts +0 -78
  154. package/src/lib/components/card/card.component.html +0 -77
  155. package/src/lib/components/card/card.component.ts +0 -39
  156. package/src/lib/components/carousel/carousel.component.html +0 -86
  157. package/src/lib/components/carousel/carousel.component.ts +0 -100
  158. package/src/lib/components/chart/chart.component.html +0 -143
  159. package/src/lib/components/chart/chart.component.ts +0 -147
  160. package/src/lib/components/checkbox/checkbox.component.html +0 -38
  161. package/src/lib/components/checkbox/checkbox.component.ts +0 -32
  162. package/src/lib/components/collapsible/collapsible.component.html +0 -26
  163. package/src/lib/components/collapsible/collapsible.component.ts +0 -29
  164. package/src/lib/components/combobox/combobox.component.html +0 -42
  165. package/src/lib/components/combobox/combobox.component.ts +0 -32
  166. package/src/lib/components/command/command.component.html +0 -55
  167. package/src/lib/components/command/command.component.ts +0 -67
  168. package/src/lib/components/context-menu/context-menu.component.html +0 -47
  169. package/src/lib/components/context-menu/context-menu.component.ts +0 -67
  170. package/src/lib/components/data-table/data-table.component.html +0 -63
  171. package/src/lib/components/data-table/data-table.component.ts +0 -78
  172. package/src/lib/components/date-picker/date-picker.component.html +0 -38
  173. package/src/lib/components/date-picker/date-picker.component.ts +0 -38
  174. package/src/lib/components/dialog/dialog.component.html +0 -78
  175. package/src/lib/components/dialog/dialog.component.ts +0 -55
  176. package/src/lib/components/drawer/drawer.component.html +0 -56
  177. package/src/lib/components/drawer/drawer.component.ts +0 -43
  178. package/src/lib/components/dropdown-menu/dropdown-menu.component.html +0 -56
  179. package/src/lib/components/dropdown-menu/dropdown-menu.component.ts +0 -126
  180. package/src/lib/components/empty/empty.component.html +0 -29
  181. package/src/lib/components/empty/empty.component.ts +0 -35
  182. package/src/lib/components/field/field.component.html +0 -26
  183. package/src/lib/components/field/field.component.ts +0 -42
  184. package/src/lib/components/hover-card/hover-card.component.html +0 -24
  185. package/src/lib/components/hover-card/hover-card.component.ts +0 -36
  186. package/src/lib/components/icon/icon.component.html +0 -286
  187. package/src/lib/components/icon/icon.component.ts +0 -133
  188. package/src/lib/components/input/input.component.html +0 -25
  189. package/src/lib/components/input/input.component.ts +0 -33
  190. package/src/lib/components/input-group/input-group.component.html +0 -59
  191. package/src/lib/components/input-group/input-group.component.ts +0 -32
  192. package/src/lib/components/input-otp/input-otp.component.html +0 -25
  193. package/src/lib/components/input-otp/input-otp.component.ts +0 -146
  194. package/src/lib/components/input-password/input-password.component.html +0 -66
  195. package/src/lib/components/input-password/input-password.component.ts +0 -46
  196. package/src/lib/components/item/item.component.html +0 -10
  197. package/src/lib/components/item/item.component.ts +0 -12
  198. package/src/lib/components/kbd/kbd.component.html +0 -3
  199. package/src/lib/components/kbd/kbd.component.ts +0 -10
  200. package/src/lib/components/label/label.component.html +0 -7
  201. package/src/lib/components/label/label.component.ts +0 -12
  202. package/src/lib/components/menubar/menubar.component.html +0 -16
  203. package/src/lib/components/menubar/menubar.component.ts +0 -29
  204. package/src/lib/components/native-select/native-select.component.html +0 -17
  205. package/src/lib/components/native-select/native-select.component.ts +0 -28
  206. package/src/lib/components/navigation-menu/navigation-menu.component.html +0 -15
  207. package/src/lib/components/navigation-menu/navigation-menu.component.ts +0 -17
  208. package/src/lib/components/pagination/pagination.component.html +0 -30
  209. package/src/lib/components/pagination/pagination.component.ts +0 -37
  210. package/src/lib/components/popover/popover.component.html +0 -6
  211. package/src/lib/components/popover/popover.component.ts +0 -40
  212. package/src/lib/components/progress/progress.component.html +0 -9
  213. package/src/lib/components/progress/progress.component.ts +0 -20
  214. package/src/lib/components/radio-group/radio-group.component.html +0 -25
  215. package/src/lib/components/radio-group/radio-group.component.ts +0 -30
  216. package/src/lib/components/scroll-area/scroll-area.component.html +0 -5
  217. package/src/lib/components/scroll-area/scroll-area.component.ts +0 -11
  218. package/src/lib/components/select/select.component.html +0 -14
  219. package/src/lib/components/select/select.component.ts +0 -27
  220. package/src/lib/components/separator/separator.component.html +0 -5
  221. package/src/lib/components/separator/separator.component.ts +0 -16
  222. package/src/lib/components/sheet/sheet.component.html +0 -10
  223. package/src/lib/components/sheet/sheet.component.ts +0 -28
  224. package/src/lib/components/sidebar/sidebar.component.html +0 -3
  225. package/src/lib/components/sidebar/sidebar.component.ts +0 -11
  226. package/src/lib/components/skeleton/skeleton.component.html +0 -1
  227. package/src/lib/components/skeleton/skeleton.component.ts +0 -10
  228. package/src/lib/components/slider/slider.component.html +0 -15
  229. package/src/lib/components/slider/slider.component.ts +0 -31
  230. package/src/lib/components/sonner/sonner.component.html +0 -10
  231. package/src/lib/components/sonner/sonner.component.ts +0 -25
  232. package/src/lib/components/spinner/spinner.component.html +0 -6
  233. package/src/lib/components/spinner/spinner.component.ts +0 -11
  234. package/src/lib/components/switch/switch.component.html +0 -14
  235. package/src/lib/components/switch/switch.component.ts +0 -20
  236. package/src/lib/components/table/table.component.html +0 -5
  237. package/src/lib/components/table/table.component.ts +0 -10
  238. package/src/lib/components/tabs/tabs.component.html +0 -21
  239. package/src/lib/components/tabs/tabs.component.ts +0 -26
  240. package/src/lib/components/textarea/textarea.component.html +0 -21
  241. package/src/lib/components/textarea/textarea.component.ts +0 -28
  242. package/src/lib/components/toggle/toggle.component.html +0 -16
  243. package/src/lib/components/toggle/toggle.component.ts +0 -29
  244. package/src/lib/components/toggle-group/toggle-group.component.html +0 -17
  245. package/src/lib/components/toggle-group/toggle-group.component.ts +0 -26
  246. package/src/lib/components/tooltip/tooltip.component.html +0 -6
  247. package/src/lib/components/tooltip/tooltip.component.ts +0 -20
  248. package/src/lib/pdm-ui-kit.module.ts +0 -126
  249. package/src/public-api.ts +0 -58
  250. package/tsconfig.json +0 -30
  251. package/tsconfig.lib.json +0 -17
  252. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/accordion/accordion.component.mjs +0 -0
  253. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/alert/alert.component.mjs +0 -0
  254. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/alert-dialog/alert-dialog.component.mjs +0 -0
  255. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/aspect-ratio/aspect-ratio.component.mjs +0 -0
  256. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/avatar/avatar.component.mjs +0 -0
  257. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/badge/badge.component.mjs +0 -0
  258. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/breadcrumb/breadcrumb.component.mjs +0 -0
  259. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/button/button.component.mjs +0 -0
  260. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/button-group/button-group.component.mjs +0 -0
  261. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/calendar/calendar.component.mjs +0 -0
  262. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/card/card.component.mjs +0 -0
  263. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/carousel/carousel.component.mjs +0 -0
  264. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/chart/chart.component.mjs +0 -0
  265. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/checkbox/checkbox.component.mjs +0 -0
  266. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/collapsible/collapsible.component.mjs +0 -0
  267. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/combobox/combobox.component.mjs +0 -0
  268. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/command/command.component.mjs +0 -0
  269. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/context-menu/context-menu.component.mjs +0 -0
  270. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/data-table/data-table.component.mjs +0 -0
  271. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/date-picker/date-picker.component.mjs +0 -0
  272. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/dialog/dialog.component.mjs +0 -0
  273. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/drawer/drawer.component.mjs +0 -0
  274. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/dropdown-menu/dropdown-menu.component.mjs +0 -0
  275. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/empty/empty.component.mjs +0 -0
  276. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/field/field.component.mjs +0 -0
  277. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/hover-card/hover-card.component.mjs +0 -0
  278. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/icon/icon.component.mjs +0 -0
  279. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input/input.component.mjs +0 -0
  280. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input-group/input-group.component.mjs +0 -0
  281. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/input-otp/input-otp.component.mjs +0 -0
  282. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/lib/components/input-password/input-password.component.mjs +0 -0
  283. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/item/item.component.mjs +0 -0
  284. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/kbd/kbd.component.mjs +0 -0
  285. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/label/label.component.mjs +0 -0
  286. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/menubar/menubar.component.mjs +0 -0
  287. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/native-select/native-select.component.mjs +0 -0
  288. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/navigation-menu/navigation-menu.component.mjs +0 -0
  289. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/pagination/pagination.component.mjs +0 -0
  290. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/popover/popover.component.mjs +0 -0
  291. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/progress/progress.component.mjs +0 -0
  292. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/radio-group/radio-group.component.mjs +0 -0
  293. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/scroll-area/scroll-area.component.mjs +0 -0
  294. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/select/select.component.mjs +0 -0
  295. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/separator/separator.component.mjs +0 -0
  296. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sheet/sheet.component.mjs +0 -0
  297. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sidebar/sidebar.component.mjs +0 -0
  298. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/skeleton/skeleton.component.mjs +0 -0
  299. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/slider/slider.component.mjs +0 -0
  300. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/sonner/sonner.component.mjs +0 -0
  301. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/spinner/spinner.component.mjs +0 -0
  302. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/switch/switch.component.mjs +0 -0
  303. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/table/table.component.mjs +0 -0
  304. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/tabs/tabs.component.mjs +0 -0
  305. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/textarea/textarea.component.mjs +0 -0
  306. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/toggle/toggle.component.mjs +0 -0
  307. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/toggle-group/toggle-group.component.mjs +0 -0
  308. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/components/tooltip/tooltip.component.mjs +0 -0
  309. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/lib/pdm-ui-kit.module.mjs +0 -0
  310. /package/{dist/pdm-ui-kit/esm2020 → esm2020}/pdm-ui-kit.mjs +0 -0
  311. /package/{dist/corelusa-pdm-ui-kit/esm2020 → esm2020}/public-api.mjs +0 -0
  312. /package/{dist/pdm-ui-kit/fesm2015 → fesm2015}/pdm-ui-kit.mjs +0 -0
  313. /package/{dist/pdm-ui-kit/fesm2015 → fesm2015}/pdm-ui-kit.mjs.map +0 -0
  314. /package/{dist/pdm-ui-kit/fesm2020 → fesm2020}/pdm-ui-kit.mjs +0 -0
  315. /package/{dist/pdm-ui-kit/fesm2020 → fesm2020}/pdm-ui-kit.mjs.map +0 -0
  316. /package/{dist/pdm-ui-kit/index.d.ts → index.d.ts} +0 -0
  317. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/accordion/accordion.component.d.ts +0 -0
  318. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/alert/alert.component.d.ts +0 -0
  319. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/alert-dialog/alert-dialog.component.d.ts +0 -0
  320. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/aspect-ratio/aspect-ratio.component.d.ts +0 -0
  321. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/avatar/avatar.component.d.ts +0 -0
  322. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/badge/badge.component.d.ts +0 -0
  323. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/breadcrumb/breadcrumb.component.d.ts +0 -0
  324. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/button/button.component.d.ts +0 -0
  325. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/button-group/button-group.component.d.ts +0 -0
  326. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/calendar/calendar.component.d.ts +0 -0
  327. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/card/card.component.d.ts +0 -0
  328. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/carousel/carousel.component.d.ts +0 -0
  329. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/chart/chart.component.d.ts +0 -0
  330. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/checkbox/checkbox.component.d.ts +0 -0
  331. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/collapsible/collapsible.component.d.ts +0 -0
  332. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/combobox/combobox.component.d.ts +0 -0
  333. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/command/command.component.d.ts +0 -0
  334. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/context-menu/context-menu.component.d.ts +0 -0
  335. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/data-table/data-table.component.d.ts +0 -0
  336. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/date-picker/date-picker.component.d.ts +0 -0
  337. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/dialog/dialog.component.d.ts +0 -0
  338. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/drawer/drawer.component.d.ts +0 -0
  339. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/dropdown-menu/dropdown-menu.component.d.ts +0 -0
  340. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/empty/empty.component.d.ts +0 -0
  341. /package/{dist/pdm-ui-kit/lib → lib}/components/field/field.component.d.ts +0 -0
  342. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/hover-card/hover-card.component.d.ts +0 -0
  343. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/icon/icon.component.d.ts +0 -0
  344. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input/input.component.d.ts +0 -0
  345. /package/{dist/pdm-ui-kit/lib → lib}/components/input-group/input-group.component.d.ts +0 -0
  346. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input-otp/input-otp.component.d.ts +0 -0
  347. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/input-password/input-password.component.d.ts +0 -0
  348. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/item/item.component.d.ts +0 -0
  349. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/kbd/kbd.component.d.ts +0 -0
  350. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/label/label.component.d.ts +0 -0
  351. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/menubar/menubar.component.d.ts +0 -0
  352. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/native-select/native-select.component.d.ts +0 -0
  353. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/navigation-menu/navigation-menu.component.d.ts +0 -0
  354. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/pagination/pagination.component.d.ts +0 -0
  355. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/popover/popover.component.d.ts +0 -0
  356. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/progress/progress.component.d.ts +0 -0
  357. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/radio-group/radio-group.component.d.ts +0 -0
  358. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/scroll-area/scroll-area.component.d.ts +0 -0
  359. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/select/select.component.d.ts +0 -0
  360. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/separator/separator.component.d.ts +0 -0
  361. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sheet/sheet.component.d.ts +0 -0
  362. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sidebar/sidebar.component.d.ts +0 -0
  363. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/skeleton/skeleton.component.d.ts +0 -0
  364. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/slider/slider.component.d.ts +0 -0
  365. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/sonner/sonner.component.d.ts +0 -0
  366. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/spinner/spinner.component.d.ts +0 -0
  367. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/switch/switch.component.d.ts +0 -0
  368. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/table/table.component.d.ts +0 -0
  369. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/tabs/tabs.component.d.ts +0 -0
  370. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/textarea/textarea.component.d.ts +0 -0
  371. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/toggle/toggle.component.d.ts +0 -0
  372. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/toggle-group/toggle-group.component.d.ts +0 -0
  373. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/components/tooltip/tooltip.component.d.ts +0 -0
  374. /package/{dist/corelusa-pdm-ui-kit/lib → lib}/pdm-ui-kit.module.d.ts +0 -0
  375. /package/{dist/corelusa-pdm-ui-kit/public-api.d.ts → public-api.d.ts} +0 -0
@@ -1,146 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, QueryList, ViewChildren } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-input-otp',
5
- templateUrl: './input-otp.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmInputOtpComponent {
9
- @Input() length = 6;
10
- @Input() groupSize = 3;
11
- @Input() disabled = false;
12
- @Input() invalid = false;
13
- @Input() className = '';
14
-
15
- @Output() valueChange = new EventEmitter<string>();
16
- @Output() completed = new EventEmitter<string>();
17
-
18
- @ViewChildren('otpInput') private readonly inputs?: QueryList<ElementRef<HTMLInputElement>>;
19
-
20
- values: string[] = Array.from({ length: this.length }, () => '');
21
-
22
- ngOnChanges(): void {
23
- if (this.values.length !== this.length) {
24
- this.values = Array.from({ length: this.length }, (_, index) => this.values[index] ?? '');
25
- }
26
- }
27
-
28
- trackByIndex(index: number): number {
29
- return index;
30
- }
31
-
32
- onInput(index: number, event: Event): void {
33
- const input = event.target as HTMLInputElement;
34
- const char = (input.value || '').replace(/\D+/g, '').slice(-1);
35
-
36
- this.values[index] = char;
37
- input.value = char;
38
- this.emit();
39
-
40
- if (char) {
41
- this.focusInput(index + 1, true);
42
- }
43
- }
44
-
45
- onKeyDown(index: number, event: KeyboardEvent): void {
46
- if (event.key === 'Backspace' && !this.values[index]) {
47
- this.focusInput(index - 1);
48
- return;
49
- }
50
-
51
- if (event.key === 'ArrowLeft') {
52
- event.preventDefault();
53
- this.focusInput(index - 1);
54
- return;
55
- }
56
-
57
- if (event.key === 'ArrowRight') {
58
- event.preventDefault();
59
- this.focusInput(index + 1);
60
- }
61
- }
62
-
63
- onPaste(event: ClipboardEvent): void {
64
- event.preventDefault();
65
-
66
- const pastedText = (event.clipboardData?.getData('text') ?? '').replace(/\D+/g, '').slice(0, this.length);
67
-
68
- if (!pastedText) {
69
- return;
70
- }
71
-
72
- this.values = Array.from({ length: this.length }, (_, index) => pastedText[index] ?? '');
73
- this.emit();
74
-
75
- const nextIndex = Math.min(pastedText.length, this.length - 1);
76
- this.focusInput(nextIndex);
77
- }
78
-
79
- getInputClasses(index: number): string {
80
- const classes = [
81
- 'h-9 w-9 appearance-none border bg-background text-center text-sm font-normal text-foreground outline-none transition focus:outline-none focus-visible:outline-none',
82
- 'shadow-[0_1px_2px_0_rgba(0,0,0,0.1)]',
83
- 'focus:border-input focus:ring-1 focus:ring-primary/30',
84
- 'disabled:cursor-not-allowed disabled:opacity-50',
85
- ];
86
-
87
- if (this.invalid) {
88
- classes.push('border-destructive focus:border-destructive focus:ring-destructive');
89
- } else {
90
- classes.push('border-input');
91
- }
92
-
93
- if (this.isGroupStart(index)) {
94
- classes.push('rounded-l-md border-l');
95
- } else {
96
- classes.push('border-l-0');
97
- }
98
-
99
- if (this.isGroupEnd(index)) {
100
- classes.push('rounded-r-md');
101
- }
102
-
103
- return classes.join(' ');
104
- }
105
-
106
- shouldShowSeparator(index: number): boolean {
107
- return this.groupSize > 0 && (index + 1) % this.groupSize === 0 && index < this.length - 1;
108
- }
109
-
110
- private isGroupStart(index: number): boolean {
111
- return this.groupSize <= 0 || index % this.groupSize === 0;
112
- }
113
-
114
- private isGroupEnd(index: number): boolean {
115
- if (this.groupSize <= 0) {
116
- return index === this.length - 1;
117
- }
118
- return (index + 1) % this.groupSize === 0 || index === this.length - 1;
119
- }
120
-
121
- private emit(): void {
122
- const value = this.values.join('');
123
- this.valueChange.emit(value);
124
-
125
- if (value.length === this.length && !this.values.includes('')) {
126
- this.completed.emit(value);
127
- }
128
- }
129
-
130
- private focusInput(index: number, deferred = false): void {
131
- if (deferred) {
132
- requestAnimationFrame(() => this.focusInput(index, false));
133
- return;
134
- }
135
-
136
- if (!this.inputs || index < 0 || index >= this.length) {
137
- return;
138
- }
139
-
140
- const input = this.inputs.get(index)?.nativeElement;
141
- if (input) {
142
- input.focus();
143
- input.select();
144
- }
145
- }
146
- }
@@ -1,66 +0,0 @@
1
- <div [ngClass]="['grid w-full gap-3', className]">
2
- <label *ngIf="label" [attr.for]="id" class="text-sm font-medium leading-5 text-[hsl(var(--foreground))]">{{ label }}</label>
3
- <div class="relative">
4
- <input
5
- [id]="id"
6
- [type]="inputType"
7
- [value]="value"
8
- [placeholder]="placeholder"
9
- [disabled]="disabled"
10
- [readonly]="readonly"
11
- [required]="required"
12
- [attr.aria-invalid]="invalid"
13
- [ngClass]="[
14
- 'flex h-9 w-full rounded-[8px] border bg-[hsl(var(--background))] px-3 py-1 pr-10 text-base leading-6 text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)] outline-none transition-[border-color,box-shadow] placeholder:text-[hsl(var(--muted-foreground))] focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',
15
- invalid
16
- ? 'border-[hsl(var(--destructive))] focus:border-[hsl(var(--destructive))] focus:shadow-[0_0_0_3px_hsl(var(--destructive)/0.2)]'
17
- : 'border-[hsl(var(--input))] focus:border-[hsl(var(--ring))] focus:shadow-[0_0_0_3px_hsl(var(--ring)/0.5)]',
18
- inputClassName
19
- ]"
20
- (input)="onInput($event)"
21
- (blur)="onBlur($event)"
22
- />
23
- <button
24
- type="button"
25
- class="absolute right-2 top-1/2 inline-flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded border-0 bg-transparent p-0 text-[hsl(var(--muted-foreground))] outline-none transition-colors hover:text-[hsl(var(--foreground))] focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
26
- [disabled]="disabled"
27
- [attr.aria-label]="showPassword ? 'Hide password' : 'Show password'"
28
- (click)="toggleVisibility()"
29
- >
30
- <svg
31
- *ngIf="!showPassword"
32
- aria-hidden="true"
33
- xmlns="http://www.w3.org/2000/svg"
34
- viewBox="0 0 24 24"
35
- fill="none"
36
- stroke="currentColor"
37
- stroke-width="2"
38
- stroke-linecap="round"
39
- stroke-linejoin="round"
40
- class="h-4 w-4"
41
- >
42
- <path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path>
43
- <circle cx="12" cy="12" r="3"></circle>
44
- </svg>
45
- <svg
46
- *ngIf="showPassword"
47
- aria-hidden="true"
48
- xmlns="http://www.w3.org/2000/svg"
49
- viewBox="0 0 24 24"
50
- fill="none"
51
- stroke="currentColor"
52
- stroke-width="2"
53
- stroke-linecap="round"
54
- stroke-linejoin="round"
55
- class="h-4 w-4"
56
- >
57
- <path d="M3 3l18 18"></path>
58
- <path d="M10.58 10.58a2 2 0 1 0 2.83 2.83"></path>
59
- <path d="M9.88 5.09A10.94 10.94 0 0 1 12 4.91c5.05 0 9.27 3.11 10.6 7.09a1 1 0 0 1 0 .64 11.9 11.9 0 0 1-1.84 3.2"></path>
60
- <path d="M6.61 6.61A11.81 11.81 0 0 0 1.4 12a1 1 0 0 0 0 .64 11.83 11.83 0 0 0 8.79 7.54"></path>
61
- </svg>
62
- </button>
63
- </div>
64
- <p *ngIf="!invalid && helperText" class="text-sm leading-5 text-[hsl(var(--muted-foreground))]">{{ helperText }}</p>
65
- <p *ngIf="invalid && errorText" class="text-sm leading-5 text-[hsl(var(--destructive))]">{{ errorText }}</p>
66
- </div>
@@ -1,46 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-input-password',
5
- templateUrl: './input-password.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmInputPasswordComponent {
9
- @Input() id = '';
10
- @Input() value = '';
11
- @Input() placeholder = '';
12
- @Input() disabled = false;
13
- @Input() readonly = false;
14
- @Input() required = false;
15
- @Input() invalid = false;
16
- @Input() className = '';
17
- @Input() inputClassName = '';
18
- @Input() label = '';
19
- @Input() helperText = '';
20
- @Input() errorText = '';
21
-
22
- @Output() valueChange = new EventEmitter<string>();
23
- @Output() blurred = new EventEmitter<FocusEvent>();
24
-
25
- showPassword = false;
26
-
27
- get inputType(): 'text' | 'password' {
28
- return this.showPassword ? 'text' : 'password';
29
- }
30
-
31
- onInput(event: Event): void {
32
- this.valueChange.emit((event.target as HTMLInputElement).value);
33
- }
34
-
35
- onBlur(event: FocusEvent): void {
36
- this.blurred.emit(event);
37
- }
38
-
39
- toggleVisibility(): void {
40
- if (this.disabled) {
41
- return;
42
- }
43
-
44
- this.showPassword = !this.showPassword;
45
- }
46
- }
@@ -1,10 +0,0 @@
1
- <div
2
- [ngClass]="[
3
- 'relative flex w-full select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors',
4
- selected ? 'bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))]' : 'text-[hsl(var(--foreground))]',
5
- disabled ? 'pointer-events-none opacity-50' : 'hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]',
6
- className
7
- ]"
8
- >
9
- <ng-content></ng-content>
10
- </div>
@@ -1,12 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-item',
5
- templateUrl: './item.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmItemComponent {
9
- @Input() className = '';
10
- @Input() disabled = false;
11
- @Input() selected = false;
12
- }
@@ -1,3 +0,0 @@
1
- <kbd [ngClass]="['inline-flex h-6 min-w-[24px] items-center justify-center rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted))] px-1.5 font-mono text-xs font-medium text-[hsl(var(--muted-foreground))]', className]">
2
- <ng-content></ng-content>
3
- </kbd>
@@ -1,10 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-kbd',
5
- templateUrl: './kbd.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmKbdComponent {
9
- @Input() className = '';
10
- }
@@ -1,7 +0,0 @@
1
- <label
2
- [attr.for]="forId"
3
- [ngClass]="['text-sm font-medium leading-5 text-[hsl(var(--foreground))] peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className]"
4
- >
5
- <ng-content></ng-content>
6
- <span *ngIf="required" class="ml-1 text-[hsl(var(--destructive))]">*</span>
7
- </label>
@@ -1,12 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-label',
5
- templateUrl: './label.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmLabelComponent {
9
- @Input() forId = '';
10
- @Input() required = false;
11
- @Input() className = '';
12
- }
@@ -1,16 +0,0 @@
1
- <nav role="menubar" [ngClass]="['inline-flex h-9 items-center gap-0.5 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--background))] p-1 shadow-[0_1px_2px_rgba(0,0,0,0.1)]', className]">
2
- <div *ngFor="let menu of menus; let i = index" class="relative">
3
- <button type="button" class="inline-flex h-7 items-center rounded-sm px-3 text-sm leading-5 text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))]" (click)="toggle(i)">{{ menu.label }}</button>
4
- <div *ngIf="openIndex === i" class="absolute left-0 top-full z-50 mt-1 min-w-[12rem] rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-1 text-[hsl(var(--popover-foreground))] shadow-[0_4px_6px_rgba(0,0,0,0.09)]">
5
- <button
6
- *ngFor="let item of menu.items"
7
- type="button"
8
- [disabled]="item.disabled"
9
- class="relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm leading-5 outline-none hover:bg-[hsl(var(--accent))] disabled:pointer-events-none disabled:opacity-50"
10
- (click)="select(item.value)"
11
- >
12
- {{ item.label }}
13
- </button>
14
- </div>
15
- </div>
16
- </nav>
@@ -1,29 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
- import { PdmMenuItem } from '../dropdown-menu/dropdown-menu.component';
3
-
4
- export interface PdmMenubarItem {
5
- label: string;
6
- items: PdmMenuItem[];
7
- }
8
-
9
- @Component({
10
- selector: 'pdm-menubar',
11
- templateUrl: './menubar.component.html',
12
- changeDetection: ChangeDetectionStrategy.OnPush
13
- })
14
- export class PdmMenubarComponent {
15
- @Input() menus: PdmMenubarItem[] = [];
16
- @Input() className = '';
17
- @Output() itemSelect = new EventEmitter<string>();
18
-
19
- openIndex = -1;
20
-
21
- toggle(index: number): void {
22
- this.openIndex = this.openIndex === index ? -1 : index;
23
- }
24
-
25
- select(value: string): void {
26
- this.itemSelect.emit(value);
27
- this.openIndex = -1;
28
- }
29
- }
@@ -1,17 +0,0 @@
1
- <div class="relative" [ngClass]="className">
2
- <select
3
- [id]="id"
4
- [value]="value"
5
- [disabled]="disabled"
6
- [attr.aria-invalid]="invalid"
7
- (change)="onChange($event)"
8
- [ngClass]="[
9
- 'flex h-9 w-full appearance-none rounded-[8px] border bg-[hsl(var(--background))] px-3 py-2 pr-9 text-sm leading-5 shadow-[0_1px_2px_rgba(0,0,0,0.1)] ring-offset-[hsl(var(--background))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[hsl(var(--foreground))] disabled:cursor-not-allowed disabled:opacity-50',
10
- invalid ? 'border-[hsl(var(--destructive))]' : 'border-[hsl(var(--input))]'
11
- ]"
12
- >
13
- <option value="" disabled>{{ placeholder }}</option>
14
- <option *ngFor="let option of options" [value]="option.value" [disabled]="option.disabled">{{ option.label }}</option>
15
- </select>
16
- <pdm-icon className="pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-[hsl(var(--muted-foreground))]" name="chevron-down" [size]="16"></pdm-icon>
17
- </div>
@@ -1,28 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- export interface PdmNativeSelectOption {
4
- label: string;
5
- value: string;
6
- disabled?: boolean;
7
- }
8
-
9
- @Component({
10
- selector: 'pdm-native-select',
11
- templateUrl: './native-select.component.html',
12
- changeDetection: ChangeDetectionStrategy.OnPush
13
- })
14
- export class PdmNativeSelectComponent {
15
- @Input() id = '';
16
- @Input() value = '';
17
- @Input() disabled = false;
18
- @Input() invalid = false;
19
- @Input() options: PdmNativeSelectOption[] = [];
20
- @Input() placeholder = 'Select an option';
21
- @Input() className = '';
22
-
23
- @Output() valueChange = new EventEmitter<string>();
24
-
25
- onChange(event: Event): void {
26
- this.valueChange.emit((event.target as HTMLSelectElement).value);
27
- }
28
- }
@@ -1,15 +0,0 @@
1
- <nav [ngClass]="['relative z-10 flex max-w-max flex-1 items-center justify-center', className]">
2
- <ul class="group flex flex-1 list-none items-center justify-center space-x-1">
3
- <li *ngFor="let item of items">
4
- <a
5
- [href]="item.href || '#'"
6
- [ngClass]="[
7
- 'group inline-flex h-9 w-max items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-colors hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]',
8
- item.active ? 'bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))]' : 'text-[hsl(var(--foreground))]'
9
- ]"
10
- >
11
- {{ item.label }}
12
- </a>
13
- </li>
14
- </ul>
15
- </nav>
@@ -1,17 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
-
3
- export interface PdmNavigationItem {
4
- label: string;
5
- href?: string;
6
- active?: boolean;
7
- }
8
-
9
- @Component({
10
- selector: 'pdm-navigation-menu',
11
- templateUrl: './navigation-menu.component.html',
12
- changeDetection: ChangeDetectionStrategy.OnPush
13
- })
14
- export class PdmNavigationMenuComponent {
15
- @Input() items: PdmNavigationItem[] = [];
16
- @Input() className = '';
17
- }
@@ -1,30 +0,0 @@
1
- <nav aria-label="Pagination" [ngClass]="['mx-auto flex w-full justify-center', className]">
2
- <ul class="flex items-center gap-1">
3
- <li>
4
- <button type="button" class="inline-flex h-8 items-center justify-center gap-1 rounded-md px-2 text-sm text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))] disabled:opacity-50" [disabled]="page <= 1" (click)="setPage(page - 1)">
5
- <pdm-icon name="chevron-left" [size]="14"></pdm-icon>
6
- Previous
7
- </button>
8
- </li>
9
- <li *ngFor="let pageNumber of visiblePages">
10
- <button
11
- type="button"
12
- [ngClass]="[
13
- 'inline-flex h-6 min-w-[24px] items-center justify-center rounded-md px-2 text-sm',
14
- pageNumber === page
15
- ? 'border border-[hsl(var(--border))] bg-[hsl(var(--muted))] text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)]'
16
- : 'text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]'
17
- ]"
18
- (click)="setPage(pageNumber)"
19
- >
20
- {{ pageNumber }}
21
- </button>
22
- </li>
23
- <li>
24
- <button type="button" class="inline-flex h-8 items-center justify-center gap-1 rounded-md px-2 text-sm text-[hsl(var(--foreground))] hover:bg-[hsl(var(--accent))] disabled:opacity-50" [disabled]="page >= pageCount" (click)="setPage(page + 1)">
25
- Next
26
- <pdm-icon name="chevron-right" [size]="14"></pdm-icon>
27
- </button>
28
- </li>
29
- </ul>
30
- </nav>
@@ -1,37 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-pagination',
5
- templateUrl: './pagination.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmPaginationComponent {
9
- @Input() page = 1;
10
- @Input() pageCount = 1;
11
- @Input() maxVisible = 5;
12
- @Input() className = '';
13
-
14
- @Output() pageChange = new EventEmitter<number>();
15
-
16
- get visiblePages(): number[] {
17
- const total = Math.max(1, this.pageCount);
18
- const visible = Math.max(1, this.maxVisible);
19
- const half = Math.floor(visible / 2);
20
- let start = Math.max(1, this.page - half);
21
- let end = Math.min(total, start + visible - 1);
22
-
23
- if (end - start + 1 < visible) {
24
- start = Math.max(1, end - visible + 1);
25
- }
26
-
27
- return Array.from({ length: end - start + 1 }, (_, i) => start + i);
28
- }
29
-
30
- setPage(next: number): void {
31
- if (next < 1 || next > this.pageCount || next === this.page) {
32
- return;
33
- }
34
-
35
- this.pageChange.emit(next);
36
- }
37
- }
@@ -1,6 +0,0 @@
1
- <div class="relative inline-block" [ngClass]="className">
2
- <button *ngIf="showTrigger" type="button" class="inline-flex h-8 items-center justify-center rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--background))] px-3 text-sm font-medium leading-5 text-[hsl(var(--foreground))] shadow-[0_1px_2px_rgba(0,0,0,0.1)]" [attr.aria-expanded]="open" (click)="toggle()">{{ triggerText }}</button>
3
- <div *ngIf="open || !showTrigger" [ngClass]="['absolute left-0 top-full z-30 mt-2 min-w-[320px] rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-4 text-[hsl(var(--popover-foreground))] shadow-[0px_4px_6px_0px_rgba(0,0,0,0.09)]', panelClassName]">
4
- <ng-content></ng-content>
5
- </div>
6
- </div>
@@ -1,40 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Input, Output } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-popover',
5
- templateUrl: './popover.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmPopoverComponent {
9
- @Input() open = false;
10
- @Input() triggerText = 'Open';
11
- @Input() className = '';
12
- @Input() panelClassName = '';
13
- @Input() showTrigger = true;
14
- @Output() openChange = new EventEmitter<boolean>();
15
-
16
- constructor(private readonly elementRef: ElementRef<HTMLElement>) {}
17
-
18
- toggle(): void {
19
- this.open = !this.open;
20
- this.openChange.emit(this.open);
21
- }
22
-
23
- @HostListener('document:keydown.escape')
24
- onEsc(): void {
25
- if (this.open) {
26
- this.open = false;
27
- this.openChange.emit(false);
28
- }
29
- }
30
-
31
- @HostListener('document:click', ['$event'])
32
- onDocumentClick(event: MouseEvent): void {
33
- if (!this.open) return;
34
- const target = event.target as Node | null;
35
- if (target && !this.elementRef.nativeElement.contains(target)) {
36
- this.open = false;
37
- this.openChange.emit(false);
38
- }
39
- }
40
- }
@@ -1,9 +0,0 @@
1
- <div
2
- role="progressbar"
3
- [attr.aria-valuemin]="0"
4
- [attr.aria-valuemax]="max"
5
- [attr.aria-valuenow]="indeterminate ? null : value"
6
- [ngClass]="['relative h-1.5 w-full overflow-hidden rounded-full bg-[hsl(var(--muted))]', className]"
7
- >
8
- <div [ngClass]="['h-full bg-[hsl(var(--foreground))] transition-all', indeterminate ? 'animate-pulse' : '']" [style.width]="width"></div>
9
- </div>
@@ -1,20 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'pdm-progress',
5
- templateUrl: './progress.component.html',
6
- changeDetection: ChangeDetectionStrategy.OnPush
7
- })
8
- export class PdmProgressComponent {
9
- @Input() value = 0;
10
- @Input() max = 100;
11
- @Input() indeterminate = false;
12
- @Input() className = '';
13
-
14
- get width(): string {
15
- if (this.indeterminate) return '100%';
16
- const safeMax = this.max > 0 ? this.max : 100;
17
- const pct = Math.min(100, Math.max(0, (this.value / safeMax) * 100));
18
- return pct + '%';
19
- }
20
- }
@@ -1,25 +0,0 @@
1
- <div
2
- role="radiogroup"
3
- [ngClass]="[
4
- 'gap-2',
5
- direction === 'horizontal' ? 'inline-flex items-center' : 'grid',
6
- className
7
- ]"
8
- >
9
- <label *ngFor="let option of options" [attr.for]="optionId(option)" class="inline-flex cursor-pointer items-center gap-2">
10
- <input
11
- [id]="optionId(option)"
12
- type="radio"
13
- [name]="name"
14
- [value]="option.value"
15
- [checked]="value === option.value"
16
- [disabled]="option.disabled"
17
- class="peer sr-only"
18
- (change)="onChange($event)"
19
- />
20
- <span class="relative block h-4 w-4 rounded-full border border-[hsl(var(--input))] bg-[hsl(var(--background))] peer-checked:border-[hsl(var(--foreground))] peer-focus-visible:ring-1 peer-focus-visible:ring-[hsl(var(--foreground))]">
21
- <span class="absolute left-1/2 top-1/2 hidden h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-[hsl(var(--foreground))] peer-checked:block"></span>
22
- </span>
23
- <span class="text-sm leading-5 text-[hsl(var(--foreground))]">{{ option.label }}</span>
24
- </label>
25
- </div>
@@ -1,30 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
-
3
- export interface PdmRadioOption {
4
- label: string;
5
- value: string;
6
- disabled?: boolean;
7
- }
8
-
9
- @Component({
10
- selector: 'pdm-radio-group',
11
- templateUrl: './radio-group.component.html',
12
- changeDetection: ChangeDetectionStrategy.OnPush
13
- })
14
- export class PdmRadioGroupComponent {
15
- @Input() name = 'pdm-radio-group';
16
- @Input() value = '';
17
- @Input() options: PdmRadioOption[] = [];
18
- @Input() direction: 'vertical' | 'horizontal' = 'vertical';
19
- @Input() className = '';
20
-
21
- @Output() valueChange = new EventEmitter<string>();
22
-
23
- optionId(option: PdmRadioOption): string {
24
- return `${this.name}-${option.value}`;
25
- }
26
-
27
- onChange(event: Event): void {
28
- this.valueChange.emit((event.target as HTMLInputElement).value);
29
- }
30
- }