@edsis/angular 21.3.4 → 21.3.9

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 (384) hide show
  1. package/README.md +88 -257
  2. package/fesm2022/edsis-angular-block-shell.mjs +560 -0
  3. package/fesm2022/edsis-angular-block-shell.mjs.map +1 -0
  4. package/fesm2022/edsis-angular-module-auth.mjs +1301 -0
  5. package/fesm2022/edsis-angular-module-auth.mjs.map +1 -0
  6. package/fesm2022/edsis-angular.mjs +8 -0
  7. package/fesm2022/edsis-angular.mjs.map +1 -0
  8. package/package.json +16 -367
  9. package/types/edsis-angular-block-shell.d.ts +96 -0
  10. package/types/edsis-angular-module-auth.d.ts +132 -0
  11. package/types/edsis-angular.d.ts +2 -0
  12. package/.npmignore +0 -2
  13. package/collection.json +0 -30
  14. package/component/accordion/package.json +0 -4
  15. package/component/alert/package.json +0 -4
  16. package/component/alert-dialog/package.json +0 -4
  17. package/component/aspect-ratio/package.json +0 -4
  18. package/component/avatar/package.json +0 -4
  19. package/component/badge/package.json +0 -4
  20. package/component/breadcrumb/package.json +0 -4
  21. package/component/button/package.json +0 -4
  22. package/component/button-group/package.json +0 -4
  23. package/component/calendar/package.json +0 -4
  24. package/component/card/package.json +0 -4
  25. package/component/carousel/package.json +0 -4
  26. package/component/chart/README.md +0 -249
  27. package/component/chart/area/package.json +0 -4
  28. package/component/chart/bar/package.json +0 -4
  29. package/component/chart/line/package.json +0 -4
  30. package/component/chart/package.json +0 -4
  31. package/component/chart/pie/package.json +0 -4
  32. package/component/chart/radar/package.json +0 -4
  33. package/component/chart/radial/package.json +0 -4
  34. package/component/chart/scatter/package.json +0 -4
  35. package/component/checkbox/package.json +0 -4
  36. package/component/collapsible/package.json +0 -4
  37. package/component/combobox/package.json +0 -4
  38. package/component/command/package.json +0 -4
  39. package/component/context-menu/package.json +0 -4
  40. package/component/date-picker/package.json +0 -4
  41. package/component/dialog/package.json +0 -4
  42. package/component/drawer/package.json +0 -4
  43. package/component/dropdown-menu/package.json +0 -4
  44. package/component/form/package.json +0 -4
  45. package/component/input/package.json +0 -4
  46. package/component/input-group/package.json +0 -4
  47. package/component/item/package.json +0 -4
  48. package/component/label/package.json +0 -4
  49. package/component/pagination/package.json +0 -4
  50. package/component/popover/package.json +0 -4
  51. package/component/progress/package.json +0 -4
  52. package/component/radio/package.json +0 -4
  53. package/component/scroll-area/package.json +0 -4
  54. package/component/select/package.json +0 -4
  55. package/component/separator/package.json +0 -4
  56. package/component/sheet/package.json +0 -4
  57. package/component/skeleton/package.json +0 -4
  58. package/component/slider/package.json +0 -4
  59. package/component/switch/package.json +0 -4
  60. package/component/table/package.json +0 -4
  61. package/component/tabs/package.json +0 -4
  62. package/component/textarea/package.json +0 -4
  63. package/component/toast/package.json +0 -4
  64. package/component/tooltip/package.json +0 -4
  65. package/component/utils/package.json +0 -4
  66. package/fesm2022/ojiepermana-angular-component-accordion.mjs +0 -174
  67. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +0 -1
  68. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +0 -242
  69. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +0 -1
  70. package/fesm2022/ojiepermana-angular-component-alert.mjs +0 -90
  71. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +0 -1
  72. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +0 -33
  73. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +0 -1
  74. package/fesm2022/ojiepermana-angular-component-avatar.mjs +0 -123
  75. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +0 -1
  76. package/fesm2022/ojiepermana-angular-component-badge.mjs +0 -47
  77. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +0 -1
  78. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +0 -186
  79. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +0 -1
  80. package/fesm2022/ojiepermana-angular-component-button-group.mjs +0 -95
  81. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +0 -1
  82. package/fesm2022/ojiepermana-angular-component-button.mjs +0 -64
  83. package/fesm2022/ojiepermana-angular-component-button.mjs.map +0 -1
  84. package/fesm2022/ojiepermana-angular-component-calendar.mjs +0 -78
  85. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +0 -1
  86. package/fesm2022/ojiepermana-angular-component-card.mjs +0 -137
  87. package/fesm2022/ojiepermana-angular-component-card.mjs.map +0 -1
  88. package/fesm2022/ojiepermana-angular-component-carousel.mjs +0 -310
  89. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +0 -1
  90. package/fesm2022/ojiepermana-angular-component-chart-area.mjs +0 -6
  91. package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +0 -1
  92. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +0 -6
  93. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +0 -1
  94. package/fesm2022/ojiepermana-angular-component-chart-line.mjs +0 -6
  95. package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +0 -1
  96. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +0 -6
  97. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +0 -1
  98. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +0 -6
  99. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +0 -1
  100. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +0 -6
  101. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +0 -1
  102. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +0 -6
  103. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +0 -1
  104. package/fesm2022/ojiepermana-angular-component-chart.mjs +0 -3714
  105. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +0 -1
  106. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +0 -104
  107. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +0 -1
  108. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +0 -116
  109. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +0 -1
  110. package/fesm2022/ojiepermana-angular-component-combobox.mjs +0 -263
  111. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +0 -1
  112. package/fesm2022/ojiepermana-angular-component-command.mjs +0 -268
  113. package/fesm2022/ojiepermana-angular-component-command.mjs.map +0 -1
  114. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +0 -100
  115. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +0 -1
  116. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +0 -155
  117. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +0 -1
  118. package/fesm2022/ojiepermana-angular-component-dialog.mjs +0 -262
  119. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +0 -1
  120. package/fesm2022/ojiepermana-angular-component-drawer.mjs +0 -6
  121. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +0 -1
  122. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +0 -458
  123. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +0 -1
  124. package/fesm2022/ojiepermana-angular-component-form.mjs +0 -208
  125. package/fesm2022/ojiepermana-angular-component-form.mjs.map +0 -1
  126. package/fesm2022/ojiepermana-angular-component-input-group.mjs +0 -164
  127. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +0 -1
  128. package/fesm2022/ojiepermana-angular-component-input.mjs +0 -43
  129. package/fesm2022/ojiepermana-angular-component-input.mjs.map +0 -1
  130. package/fesm2022/ojiepermana-angular-component-item.mjs +0 -241
  131. package/fesm2022/ojiepermana-angular-component-item.mjs.map +0 -1
  132. package/fesm2022/ojiepermana-angular-component-label.mjs +0 -30
  133. package/fesm2022/ojiepermana-angular-component-label.mjs.map +0 -1
  134. package/fesm2022/ojiepermana-angular-component-pagination.mjs +0 -192
  135. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +0 -1
  136. package/fesm2022/ojiepermana-angular-component-popover.mjs +0 -163
  137. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +0 -1
  138. package/fesm2022/ojiepermana-angular-component-progress.mjs +0 -53
  139. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +0 -1
  140. package/fesm2022/ojiepermana-angular-component-radio.mjs +0 -92
  141. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +0 -1
  142. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +0 -48
  143. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +0 -1
  144. package/fesm2022/ojiepermana-angular-component-select.mjs +0 -131
  145. package/fesm2022/ojiepermana-angular-component-select.mjs.map +0 -1
  146. package/fesm2022/ojiepermana-angular-component-separator.mjs +0 -33
  147. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +0 -1
  148. package/fesm2022/ojiepermana-angular-component-sheet.mjs +0 -235
  149. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +0 -1
  150. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +0 -29
  151. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +0 -1
  152. package/fesm2022/ojiepermana-angular-component-slider.mjs +0 -29
  153. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +0 -1
  154. package/fesm2022/ojiepermana-angular-component-switch.mjs +0 -84
  155. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +0 -1
  156. package/fesm2022/ojiepermana-angular-component-table.mjs +0 -139
  157. package/fesm2022/ojiepermana-angular-component-table.mjs.map +0 -1
  158. package/fesm2022/ojiepermana-angular-component-tabs.mjs +0 -252
  159. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +0 -1
  160. package/fesm2022/ojiepermana-angular-component-textarea.mjs +0 -37
  161. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +0 -1
  162. package/fesm2022/ojiepermana-angular-component-toast.mjs +0 -47
  163. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +0 -1
  164. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +0 -56
  165. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +0 -1
  166. package/fesm2022/ojiepermana-angular-component-utils.mjs +0 -13
  167. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +0 -1
  168. package/fesm2022/ojiepermana-angular-generator-api.mjs +0 -68
  169. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +0 -1
  170. package/fesm2022/ojiepermana-angular-layout-component.mjs +0 -581
  171. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +0 -1
  172. package/fesm2022/ojiepermana-angular-layout-empty.mjs +0 -49
  173. package/fesm2022/ojiepermana-angular-layout-empty.mjs.map +0 -1
  174. package/fesm2022/ojiepermana-angular-layout-horizontal.mjs +0 -119
  175. package/fesm2022/ojiepermana-angular-layout-horizontal.mjs.map +0 -1
  176. package/fesm2022/ojiepermana-angular-layout-provider.mjs +0 -21
  177. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +0 -1
  178. package/fesm2022/ojiepermana-angular-layout-services.mjs +0 -114
  179. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +0 -1
  180. package/fesm2022/ojiepermana-angular-layout-shell.mjs +0 -48
  181. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +0 -1
  182. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +0 -27
  183. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +0 -1
  184. package/fesm2022/ojiepermana-angular-layout-token.mjs +0 -33
  185. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +0 -1
  186. package/fesm2022/ojiepermana-angular-layout-vertical.mjs +0 -113
  187. package/fesm2022/ojiepermana-angular-layout-vertical.mjs.map +0 -1
  188. package/fesm2022/ojiepermana-angular-layout.mjs +0 -461
  189. package/fesm2022/ojiepermana-angular-layout.mjs.map +0 -1
  190. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +0 -334
  191. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +0 -1
  192. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +0 -59
  193. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +0 -1
  194. package/fesm2022/ojiepermana-angular-navigation-item.mjs +0 -548
  195. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +0 -1
  196. package/fesm2022/ojiepermana-angular-navigation-service.mjs +0 -204
  197. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +0 -1
  198. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +0 -373
  199. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +0 -1
  200. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +0 -433
  201. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +0 -1
  202. package/fesm2022/ojiepermana-angular-navigation-types.mjs +0 -4
  203. package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +0 -1
  204. package/fesm2022/ojiepermana-angular-theme-provider.mjs +0 -35
  205. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +0 -1
  206. package/fesm2022/ojiepermana-angular-theme-services.mjs +0 -286
  207. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +0 -1
  208. package/fesm2022/ojiepermana-angular-theme-token.mjs +0 -56
  209. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +0 -1
  210. package/fesm2022/ojiepermana-angular-theme.mjs +0 -382
  211. package/fesm2022/ojiepermana-angular-theme.mjs.map +0 -1
  212. package/fesm2022/ojiepermana-angular.mjs +0 -22
  213. package/fesm2022/ojiepermana-angular.mjs.map +0 -1
  214. package/generator/api/README.md +0 -252
  215. package/generator/api/bin/package.json +0 -3
  216. package/generator/api/bin/schematics/init/index.js +0 -90
  217. package/generator/api/bin/schematics/ng-add/index.js +0 -131
  218. package/generator/api/bin/schematics/sdk/index.js +0 -76
  219. package/generator/api/bin/src/config/loader.js +0 -41
  220. package/generator/api/bin/src/config/schema.js +0 -57
  221. package/generator/api/bin/src/emit/client.js +0 -246
  222. package/generator/api/bin/src/emit/metadata.js +0 -295
  223. package/generator/api/bin/src/emit/models.js +0 -106
  224. package/generator/api/bin/src/emit/navigation.js +0 -56
  225. package/generator/api/bin/src/emit/operations.js +0 -122
  226. package/generator/api/bin/src/emit/public-api.js +0 -54
  227. package/generator/api/bin/src/emit/services.js +0 -87
  228. package/generator/api/bin/src/engine.js +0 -65
  229. package/generator/api/bin/src/layout/per-domain.js +0 -359
  230. package/generator/api/bin/src/parser/bundle.js +0 -25
  231. package/generator/api/bin/src/parser/ir.js +0 -320
  232. package/generator/api/bin/src/parser/types.js +0 -7
  233. package/generator/api/bin/src/render/template.js +0 -58
  234. package/generator/api/bin/src/writer/index.js +0 -278
  235. package/generator/api/package.json +0 -4
  236. package/generator/api/schematics/init/schema.json +0 -19
  237. package/generator/api/schematics/ng-add/schema.json +0 -14
  238. package/generator/api/schematics/sdk/schema.json +0 -19
  239. package/generator/api/sdk.config.example.json +0 -24
  240. package/generator/guide/README.md +0 -84
  241. package/generator/guide/bin/package.json +0 -3
  242. package/generator/guide/bin/schematics/build/index.js +0 -35
  243. package/generator/guide/bin/schematics/init/index.js +0 -70
  244. package/generator/guide/bin/src/config/loader.js +0 -50
  245. package/generator/guide/bin/src/config/schema.js +0 -12
  246. package/generator/guide/bin/src/engine/component.js +0 -74
  247. package/generator/guide/bin/src/engine/frontmatter.js +0 -42
  248. package/generator/guide/bin/src/engine/index.js +0 -42
  249. package/generator/guide/bin/src/engine/naming.js +0 -39
  250. package/generator/guide/bin/src/engine/render.js +0 -31
  251. package/generator/guide/bin/src/engine/routes.js +0 -106
  252. package/generator/guide/bin/src/engine/walk.js +0 -35
  253. package/generator/guide/guide.config.example.json +0 -9
  254. package/generator/guide/schematics/build/schema.json +0 -14
  255. package/generator/guide/schematics/init/schema.json +0 -19
  256. package/layout/component/package.json +0 -4
  257. package/layout/empty/package.json +0 -4
  258. package/layout/horizontal/package.json +0 -4
  259. package/layout/package.json +0 -4
  260. package/layout/provider/package.json +0 -4
  261. package/layout/services/package.json +0 -4
  262. package/layout/shell/package.json +0 -4
  263. package/layout/token/directive/package.json +0 -4
  264. package/layout/token/package.json +0 -4
  265. package/layout/vertical/package.json +0 -4
  266. package/navigation/demo-data/package.json +0 -4
  267. package/navigation/icon/package.json +0 -4
  268. package/navigation/item/package.json +0 -4
  269. package/navigation/service/package.json +0 -4
  270. package/navigation/sidebar/package.json +0 -4
  271. package/navigation/topbar/package.json +0 -4
  272. package/navigation/types/package.json +0 -4
  273. package/theme/README.md +0 -67
  274. package/theme/package.json +0 -4
  275. package/theme/provider/package.json +0 -4
  276. package/theme/services/package.json +0 -4
  277. package/theme/styles/foundation/components.css +0 -81
  278. package/theme/styles/foundation/layers.css +0 -15
  279. package/theme/styles/foundation/tokens.css +0 -55
  280. package/theme/styles/index.css +0 -37
  281. package/theme/styles/integrations/material.css +0 -254
  282. package/theme/styles/integrations/tailwind.css +0 -114
  283. package/theme/styles/variants/color/amber.css +0 -31
  284. package/theme/styles/variants/color/base.css +0 -36
  285. package/theme/styles/variants/color/blue.css +0 -31
  286. package/theme/styles/variants/color/cyan.css +0 -31
  287. package/theme/styles/variants/color/emerald.css +0 -31
  288. package/theme/styles/variants/color/fuchsia.css +0 -31
  289. package/theme/styles/variants/color/green.css +0 -31
  290. package/theme/styles/variants/color/index.css +0 -22
  291. package/theme/styles/variants/color/indigo.css +0 -31
  292. package/theme/styles/variants/color/lime.css +0 -31
  293. package/theme/styles/variants/color/orange.css +0 -31
  294. package/theme/styles/variants/color/pink.css +0 -31
  295. package/theme/styles/variants/color/purple.css +0 -31
  296. package/theme/styles/variants/color/red.css +0 -31
  297. package/theme/styles/variants/color/rose.css +0 -31
  298. package/theme/styles/variants/color/sky.css +0 -31
  299. package/theme/styles/variants/color/teal.css +0 -31
  300. package/theme/styles/variants/color/violet.css +0 -31
  301. package/theme/styles/variants/color/yellow.css +0 -31
  302. package/theme/styles/variants/mode/dark.css +0 -20
  303. package/theme/styles/variants/mode/index.css +0 -6
  304. package/theme/styles/variants/mode/light.css +0 -24
  305. package/theme/styles/variants/style/brutal.css +0 -50
  306. package/theme/styles/variants/style/default.css +0 -54
  307. package/theme/styles/variants/style/index.css +0 -8
  308. package/theme/styles/variants/style/sharp.css +0 -50
  309. package/theme/styles/variants/style/soft.css +0 -50
  310. package/theme/token/package.json +0 -4
  311. package/types/ojiepermana-angular-component-accordion.d.ts +0 -51
  312. package/types/ojiepermana-angular-component-alert-dialog.d.ts +0 -93
  313. package/types/ojiepermana-angular-component-alert.d.ts +0 -37
  314. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +0 -12
  315. package/types/ojiepermana-angular-component-avatar.d.ts +0 -51
  316. package/types/ojiepermana-angular-component-badge.d.ts +0 -19
  317. package/types/ojiepermana-angular-component-breadcrumb.d.ts +0 -46
  318. package/types/ojiepermana-angular-component-button-group.d.ts +0 -26
  319. package/types/ojiepermana-angular-component-button.d.ts +0 -22
  320. package/types/ojiepermana-angular-component-calendar.d.ts +0 -33
  321. package/types/ojiepermana-angular-component-card.d.ts +0 -60
  322. package/types/ojiepermana-angular-component-carousel.d.ts +0 -86
  323. package/types/ojiepermana-angular-component-chart-area.d.ts +0 -1
  324. package/types/ojiepermana-angular-component-chart-bar.d.ts +0 -1
  325. package/types/ojiepermana-angular-component-chart-line.d.ts +0 -1
  326. package/types/ojiepermana-angular-component-chart-pie.d.ts +0 -1
  327. package/types/ojiepermana-angular-component-chart-radar.d.ts +0 -1
  328. package/types/ojiepermana-angular-component-chart-radial.d.ts +0 -1
  329. package/types/ojiepermana-angular-component-chart-scatter.d.ts +0 -1
  330. package/types/ojiepermana-angular-component-chart.d.ts +0 -1094
  331. package/types/ojiepermana-angular-component-checkbox.d.ts +0 -35
  332. package/types/ojiepermana-angular-component-collapsible.d.ts +0 -42
  333. package/types/ojiepermana-angular-component-combobox.d.ts +0 -51
  334. package/types/ojiepermana-angular-component-command.d.ts +0 -99
  335. package/types/ojiepermana-angular-component-context-menu.d.ts +0 -35
  336. package/types/ojiepermana-angular-component-date-picker.d.ts +0 -41
  337. package/types/ojiepermana-angular-component-dialog.d.ts +0 -87
  338. package/types/ojiepermana-angular-component-drawer.d.ts +0 -1
  339. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +0 -135
  340. package/types/ojiepermana-angular-component-form.d.ts +0 -92
  341. package/types/ojiepermana-angular-component-input-group.d.ts +0 -51
  342. package/types/ojiepermana-angular-component-input.d.ts +0 -16
  343. package/types/ojiepermana-angular-component-item.d.ts +0 -88
  344. package/types/ojiepermana-angular-component-label.d.ts +0 -11
  345. package/types/ojiepermana-angular-component-pagination.d.ts +0 -27
  346. package/types/ojiepermana-angular-component-popover.d.ts +0 -43
  347. package/types/ojiepermana-angular-component-progress.d.ts +0 -17
  348. package/types/ojiepermana-angular-component-radio.d.ts +0 -34
  349. package/types/ojiepermana-angular-component-scroll-area.d.ts +0 -19
  350. package/types/ojiepermana-angular-component-select.d.ts +0 -45
  351. package/types/ojiepermana-angular-component-separator.d.ts +0 -14
  352. package/types/ojiepermana-angular-component-sheet.d.ts +0 -74
  353. package/types/ojiepermana-angular-component-skeleton.d.ts +0 -10
  354. package/types/ojiepermana-angular-component-slider.d.ts +0 -16
  355. package/types/ojiepermana-angular-component-switch.d.ts +0 -30
  356. package/types/ojiepermana-angular-component-table.d.ts +0 -52
  357. package/types/ojiepermana-angular-component-tabs.d.ts +0 -92
  358. package/types/ojiepermana-angular-component-textarea.d.ts +0 -12
  359. package/types/ojiepermana-angular-component-toast.d.ts +0 -29
  360. package/types/ojiepermana-angular-component-tooltip.d.ts +0 -22
  361. package/types/ojiepermana-angular-component-utils.d.ts +0 -5
  362. package/types/ojiepermana-angular-generator-api.d.ts +0 -86
  363. package/types/ojiepermana-angular-layout-component.d.ts +0 -205
  364. package/types/ojiepermana-angular-layout-empty.d.ts +0 -22
  365. package/types/ojiepermana-angular-layout-horizontal.d.ts +0 -36
  366. package/types/ojiepermana-angular-layout-provider.d.ts +0 -6
  367. package/types/ojiepermana-angular-layout-services.d.ts +0 -25
  368. package/types/ojiepermana-angular-layout-shell.d.ts +0 -8
  369. package/types/ojiepermana-angular-layout-token-directive.d.ts +0 -13
  370. package/types/ojiepermana-angular-layout-token.d.ts +0 -36
  371. package/types/ojiepermana-angular-layout-vertical.d.ts +0 -38
  372. package/types/ojiepermana-angular-layout.d.ts +0 -164
  373. package/types/ojiepermana-angular-navigation-demo-data.d.ts +0 -5
  374. package/types/ojiepermana-angular-navigation-icon.d.ts +0 -17
  375. package/types/ojiepermana-angular-navigation-item.d.ts +0 -54
  376. package/types/ojiepermana-angular-navigation-service.d.ts +0 -77
  377. package/types/ojiepermana-angular-navigation-sidebar.d.ts +0 -75
  378. package/types/ojiepermana-angular-navigation-topbar.d.ts +0 -54
  379. package/types/ojiepermana-angular-navigation-types.d.ts +0 -129
  380. package/types/ojiepermana-angular-theme-provider.d.ts +0 -11
  381. package/types/ojiepermana-angular-theme-services.d.ts +0 -55
  382. package/types/ojiepermana-angular-theme-token.d.ts +0 -57
  383. package/types/ojiepermana-angular-theme.d.ts +0 -116
  384. package/types/ojiepermana-angular.d.ts +0 -3
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-avatar.mjs","sources":["../../../projects/angular/component/avatar/src/lib/avatar.component.ts","../../../projects/angular/component/avatar/ojiepermana-angular-component-avatar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { cn } from '@edsis/angular/component/utils';\n\nconst avatarSizeClasses = {\n default: 'h-10 w-10',\n sm: 'h-8 w-8',\n lg: 'h-12 w-12',\n} as const;\n\nexport type AvatarSize = keyof typeof avatarSizeClasses;\n\n@Component({\n selector: 'ui-avatar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-size]': 'size()',\n },\n template: `<ng-content />`,\n})\nexport class AvatarComponent {\n readonly size = input<AvatarSize>('default');\n readonly class = input<string>('');\n protected readonly classes = computed(() =>\n cn('relative flex shrink-0 overflow-hidden rounded-full', avatarSizeClasses[this.size()], this.class()),\n );\n}\n\n@Component({\n selector: 'ui-avatar-image',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'absolute inset-0 z-10 block',\n },\n template: `\n @if (!failed()) {\n <img [src]=\"src()\" [alt]=\"alt()\" [class]=\"classes()\" (error)=\"failed.set(true)\" />\n }\n `,\n})\nexport class AvatarImageComponent {\n readonly src = input.required<string>();\n readonly alt = input<string>('');\n readonly class = input<string>('');\n\n protected readonly failed = signal(false);\n protected readonly classes = computed(() => cn('h-full w-full object-cover', this.class()));\n}\n\n@Component({\n selector: 'ui-avatar-fallback',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class AvatarFallbackComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() =>\n cn(\n 'absolute inset-0 z-0 flex items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground',\n this.class(),\n ),\n );\n}\n\n@Component({\n selector: 'ui-avatar-badge',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class AvatarBadgeComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() =>\n cn(\n 'absolute bottom-0 right-0 z-10 flex size-4 translate-x-1/4 translate-y-1/4 items-center justify-center rounded-full border-2 border-background bg-primary text-[0.625rem] font-medium leading-none text-primary-foreground shadow-sm [&>*]:pointer-events-none [&>*]:size-2.5 [&>*]:shrink-0',\n this.class(),\n ),\n );\n}\n\n@Component({\n selector: 'ui-avatar-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class AvatarGroupComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() =>\n cn('inline-flex items-center [&>*]:ring-2 [&>*]:ring-background [&>*:not(:first-child)]:-ml-3', this.class()),\n );\n}\n\n@Component({\n selector: 'ui-avatar-group-count',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class AvatarGroupCountComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() =>\n cn(\n 'flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground',\n this.class(),\n ),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAGA,MAAM,iBAAiB,GAAG;AACxB,IAAA,OAAO,EAAE,WAAW;AACpB,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,EAAE,EAAE,WAAW;CACP;MAaG,eAAe,CAAA;AACjB,IAAA,IAAI,GAAG,KAAK,CAAa,SAAS,2EAAC;AACnC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;IACf,OAAO,GAAG,QAAQ,CAAC,MACpC,EAAE,CAAC,qDAAqD,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CACxG;wGALU,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,0YAFhB,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAT3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,WAAW;oBACrB,eAAe,EAAE,uBAAuB,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D;;AAEG;;;;"}
@@ -1,47 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@edsis/angular/component/utils';
4
- import { cva } from 'class-variance-authority';
5
-
6
- const badgeVariants = cva([
7
- 'inline-flex items-center gap-1 rounded-full border border-border px-2.5 py-0.5',
8
- 'text-xs font-semibold transition-colors',
9
- '[&>svg]:size-3 [&>svg]:shrink-0',
10
- 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
11
- ].join(' '), {
12
- variants: {
13
- variant: {
14
- default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
15
- secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
16
- destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
17
- outline: 'bg-transparent text-foreground',
18
- ghost: 'border-transparent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground',
19
- link: 'border-transparent bg-transparent text-foreground underline-offset-4 hover:underline',
20
- },
21
- },
22
- defaultVariants: { variant: 'default' },
23
- });
24
-
25
- class BadgeComponent {
26
- variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
27
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
28
- classes = computed(() => cn(badgeVariants({ variant: this.variant() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BadgeComponent, isStandalone: true, selector: "ui-badge, [ui-badge]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, 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 });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BadgeComponent, decorators: [{
33
- type: Component,
34
- args: [{
35
- selector: 'ui-badge, [ui-badge]',
36
- changeDetection: ChangeDetectionStrategy.OnPush,
37
- host: { '[class]': 'classes()' },
38
- template: `<ng-content />`,
39
- }]
40
- }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
41
-
42
- /**
43
- * Generated bundle index. Do not edit.
44
- */
45
-
46
- export { BadgeComponent, badgeVariants };
47
- //# sourceMappingURL=ojiepermana-angular-component-badge.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-badge.mjs","sources":["../../../projects/angular/component/badge/src/lib/badge.variants.ts","../../../projects/angular/component/badge/src/lib/badge.component.ts","../../../projects/angular/component/badge/ojiepermana-angular-component-badge.ts"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nexport const badgeVariants = cva(\n [\n 'inline-flex items-center gap-1 rounded-full border border-border px-2.5 py-0.5',\n 'text-xs font-semibold transition-colors',\n '[&>svg]:size-3 [&>svg]:shrink-0',\n 'focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',\n ].join(' '),\n {\n variants: {\n variant: {\n default: 'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',\n secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',\n destructive: 'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n outline: 'bg-transparent text-foreground',\n ghost: 'border-transparent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground',\n link: 'border-transparent bg-transparent text-foreground underline-offset-4 hover:underline',\n },\n },\n defaultVariants: { variant: 'default' },\n },\n);\n\nexport type BadgeVariant = NonNullable<VariantProps<typeof badgeVariants>['variant']>;\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@edsis/angular/component/utils';\nimport { badgeVariants, type BadgeVariant } from './badge.variants';\n\n@Component({\n selector: 'ui-badge, [ui-badge]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class BadgeComponent {\n readonly variant = input<BadgeVariant>('default');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn(badgeVariants({ variant: this.variant() }), this.class()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAEO,MAAM,aAAa,GAAG,GAAG,CAC9B;IACE,gFAAgF;IAChF,yCAAyC;IACzC,iCAAiC;IACjC,qEAAqE;AACtE,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC,EACX;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,2EAA2E;AACpF,YAAA,SAAS,EAAE,iFAAiF;AAC5F,YAAA,WAAW,EAAE,uFAAuF;AACpG,YAAA,OAAO,EAAE,gCAAgC;AACzC,YAAA,KAAK,EAAE,gGAAgG;AACvG,YAAA,IAAI,EAAE,sFAAsF;AAC7F,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;AACxC,CAAA;;MCXU,cAAc,CAAA;AAChB,IAAA,OAAO,GAAG,KAAK,CAAe,SAAS,8EAAC;AACxC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;IAEf,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;wGAJ9F,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAd,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,kYAFf,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEf,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;oBAChC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE;AAChC,oBAAA,QAAQ,EAAE,CAAA,cAAA,CAAgB;AAC3B,iBAAA;;;ACTD;;AAEG;;;;"}
@@ -1,186 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@edsis/angular/component/utils';
4
-
5
- class BreadcrumbComponent {
6
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
7
- classes = computed(() => cn('block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbComponent, isStandalone: true, selector: "ui-breadcrumb, nav[ui-breadcrumb]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.aria-label": "\"breadcrumb\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbComponent, decorators: [{
12
- type: Component,
13
- args: [{
14
- selector: 'ui-breadcrumb, nav[ui-breadcrumb]',
15
- changeDetection: ChangeDetectionStrategy.OnPush,
16
- host: {
17
- '[class]': 'classes()',
18
- '[attr.aria-label]': '"breadcrumb"',
19
- },
20
- template: `<ng-content />`,
21
- }]
22
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
23
- class BreadcrumbListComponent {
24
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
25
- classes = computed(() => cn('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
26
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbListComponent, isStandalone: true, selector: "ol[ui-breadcrumb-list]", 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 });
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbListComponent, decorators: [{
30
- type: Component,
31
- args: [{
32
- selector: 'ol[ui-breadcrumb-list]',
33
- changeDetection: ChangeDetectionStrategy.OnPush,
34
- host: { '[class]': 'classes()' },
35
- template: `<ng-content />`,
36
- }]
37
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
38
- class BreadcrumbItemComponent {
39
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
40
- classes = computed(() => cn('inline-flex items-center gap-1.5', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbItemComponent, isStandalone: true, selector: "li[ui-breadcrumb-item]", 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 });
43
- }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbItemComponent, decorators: [{
45
- type: Component,
46
- args: [{
47
- selector: 'li[ui-breadcrumb-item]',
48
- changeDetection: ChangeDetectionStrategy.OnPush,
49
- host: { '[class]': 'classes()' },
50
- template: `<ng-content />`,
51
- }]
52
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
53
- class BreadcrumbLinkComponent {
54
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
55
- classes = computed(() => cn('transition-colors hover:text-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
56
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
57
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbLinkComponent, isStandalone: true, selector: "a[ui-breadcrumb-link]", 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 });
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbLinkComponent, decorators: [{
60
- type: Component,
61
- args: [{
62
- selector: 'a[ui-breadcrumb-link]',
63
- changeDetection: ChangeDetectionStrategy.OnPush,
64
- host: { '[class]': 'classes()' },
65
- template: `<ng-content />`,
66
- }]
67
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
68
- class BreadcrumbPageComponent {
69
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
70
- classes = computed(() => cn('font-normal text-foreground', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
71
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbPageComponent, isStandalone: true, selector: "span[ui-breadcrumb-page]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "link", "aria-disabled": "true", "aria-current": "page" }, properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbPageComponent, decorators: [{
75
- type: Component,
76
- args: [{
77
- selector: 'span[ui-breadcrumb-page]',
78
- changeDetection: ChangeDetectionStrategy.OnPush,
79
- host: {
80
- '[class]': 'classes()',
81
- role: 'link',
82
- 'aria-disabled': 'true',
83
- 'aria-current': 'page',
84
- },
85
- template: `<ng-content />`,
86
- }]
87
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
88
- class BreadcrumbSeparatorComponent {
89
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
90
- classes = computed(() => cn('[&>svg]:size-3.5', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
91
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
92
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbSeparatorComponent, isStandalone: true, selector: "li[ui-breadcrumb-separator]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation", "aria-hidden": "true" }, properties: { "class": "classes()" } }, ngImport: i0, template: `
93
- <ng-content>
94
- <svg
95
- class="h-3.5 w-3.5"
96
- viewBox="0 0 24 24"
97
- fill="none"
98
- stroke="currentColor"
99
- stroke-width="2"
100
- stroke-linecap="round"
101
- stroke-linejoin="round">
102
- <polyline points="9 18 15 12 9 6" />
103
- </svg>
104
- </ng-content>
105
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbSeparatorComponent, decorators: [{
108
- type: Component,
109
- args: [{
110
- selector: 'li[ui-breadcrumb-separator]',
111
- changeDetection: ChangeDetectionStrategy.OnPush,
112
- host: {
113
- '[class]': 'classes()',
114
- role: 'presentation',
115
- 'aria-hidden': 'true',
116
- },
117
- template: `
118
- <ng-content>
119
- <svg
120
- class="h-3.5 w-3.5"
121
- viewBox="0 0 24 24"
122
- fill="none"
123
- stroke="currentColor"
124
- stroke-width="2"
125
- stroke-linecap="round"
126
- stroke-linejoin="round">
127
- <polyline points="9 18 15 12 9 6" />
128
- </svg>
129
- </ng-content>
130
- `,
131
- }]
132
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
133
- class BreadcrumbEllipsisComponent {
134
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
135
- classes = computed(() => cn('relative flex h-9 w-9 items-center justify-center', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
136
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbEllipsisComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
137
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: BreadcrumbEllipsisComponent, isStandalone: true, selector: "span[ui-breadcrumb-ellipsis]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation", "aria-hidden": "true" }, properties: { "class": "classes()" } }, ngImport: i0, template: `
138
- <svg
139
- class="h-4 w-4"
140
- viewBox="0 0 24 24"
141
- fill="none"
142
- stroke="currentColor"
143
- stroke-width="2"
144
- stroke-linecap="round"
145
- stroke-linejoin="round">
146
- <circle cx="12" cy="12" r="1" />
147
- <circle cx="19" cy="12" r="1" />
148
- <circle cx="5" cy="12" r="1" />
149
- </svg>
150
- <span class="sr-only">More</span>
151
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
152
- }
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: BreadcrumbEllipsisComponent, decorators: [{
154
- type: Component,
155
- args: [{
156
- selector: 'span[ui-breadcrumb-ellipsis]',
157
- changeDetection: ChangeDetectionStrategy.OnPush,
158
- host: {
159
- '[class]': 'classes()',
160
- role: 'presentation',
161
- 'aria-hidden': 'true',
162
- },
163
- template: `
164
- <svg
165
- class="h-4 w-4"
166
- viewBox="0 0 24 24"
167
- fill="none"
168
- stroke="currentColor"
169
- stroke-width="2"
170
- stroke-linecap="round"
171
- stroke-linejoin="round">
172
- <circle cx="12" cy="12" r="1" />
173
- <circle cx="19" cy="12" r="1" />
174
- <circle cx="5" cy="12" r="1" />
175
- </svg>
176
- <span class="sr-only">More</span>
177
- `,
178
- }]
179
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
180
-
181
- /**
182
- * Generated bundle index. Do not edit.
183
- */
184
-
185
- export { BreadcrumbComponent, BreadcrumbEllipsisComponent, BreadcrumbItemComponent, BreadcrumbLinkComponent, BreadcrumbListComponent, BreadcrumbPageComponent, BreadcrumbSeparatorComponent };
186
- //# sourceMappingURL=ojiepermana-angular-component-breadcrumb.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-breadcrumb.mjs","sources":["../../../projects/angular/component/breadcrumb/src/lib/breadcrumb.component.ts","../../../projects/angular/component/breadcrumb/ojiepermana-angular-component-breadcrumb.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@edsis/angular/component/utils';\n\n@Component({\n selector: 'ui-breadcrumb, nav[ui-breadcrumb]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.aria-label]': '\"breadcrumb\"',\n },\n template: `<ng-content />`,\n})\nexport class BreadcrumbComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() => cn('block', this.class()));\n}\n\n@Component({\n selector: 'ol[ui-breadcrumb-list]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class BreadcrumbListComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() =>\n cn('flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5', this.class()),\n );\n}\n\n@Component({\n selector: 'li[ui-breadcrumb-item]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class BreadcrumbItemComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() => cn('inline-flex items-center gap-1.5', this.class()));\n}\n\n@Component({\n selector: 'a[ui-breadcrumb-link]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: `<ng-content />`,\n})\nexport class BreadcrumbLinkComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() => cn('transition-colors hover:text-foreground', this.class()));\n}\n\n@Component({\n selector: 'span[ui-breadcrumb-page]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n role: 'link',\n 'aria-disabled': 'true',\n 'aria-current': 'page',\n },\n template: `<ng-content />`,\n})\nexport class BreadcrumbPageComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() => cn('font-normal text-foreground', this.class()));\n}\n\n@Component({\n selector: 'li[ui-breadcrumb-separator]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n role: 'presentation',\n 'aria-hidden': 'true',\n },\n template: `\n <ng-content>\n <svg\n class=\"h-3.5 w-3.5\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n </ng-content>\n `,\n})\nexport class BreadcrumbSeparatorComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() => cn('[&>svg]:size-3.5', this.class()));\n}\n\n@Component({\n selector: 'span[ui-breadcrumb-ellipsis]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n role: 'presentation',\n 'aria-hidden': 'true',\n },\n template: `\n <svg\n class=\"h-4 w-4\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"1\" />\n <circle cx=\"19\" cy=\"12\" r=\"1\" />\n <circle cx=\"5\" cy=\"12\" r=\"1\" />\n </svg>\n <span class=\"sr-only\">More</span>\n `,\n})\nexport class BreadcrumbEllipsisComponent {\n readonly class = input<string>('');\n protected readonly classes = computed(() => cn('relative flex h-9 w-9 items-center justify-center', this.class()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAYa,mBAAmB,CAAA;AACrB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;AACf,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,8EAAC;wGAF3D,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,sTAFpB,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEf,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAT/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mCAAmC;oBAC7C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB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,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,cAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAhB5B;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEU,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAxBvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,8BAA8B;oBACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,aAAa,EAAE,MAAM;AACtB,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;AAcT,EAAA,CAAA;AACF,iBAAA;;;ACvHD;;AAEG;;;;"}
@@ -1,95 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@edsis/angular/component/utils';
4
-
5
- const BUTTON_GROUP_BASE = [
6
- 'inline-flex w-fit items-stretch',
7
- 'has-[>[data-slot=button-group]]:gap-2',
8
- '[&>*]:focus-visible:relative [&>*]:focus-visible:z-10',
9
- '[&>input]:flex-1 [&>textarea]:flex-1',
10
- '[&>ui-input-group]:min-w-0 [&>ui-input-group]:flex-1',
11
- ].join(' ');
12
- const buttonGroupOrientationClasses = {
13
- horizontal: [
14
- '[&>*:not(:first-child)]:rounded-s-none',
15
- '[&>*:not(:first-child)]:[border-inline-start-width:0]',
16
- '[&>*:not(:last-child)]:rounded-e-none',
17
- ].join(' '),
18
- vertical: [
19
- 'flex-col',
20
- '[&>*:not(:first-child)]:rounded-t-none',
21
- '[&>*:not(:first-child)]:border-t-0',
22
- '[&>*:not(:last-child)]:rounded-b-none',
23
- ].join(' '),
24
- };
25
- class ButtonGroupComponent {
26
- orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
27
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
28
- classes = computed(() => cn(BUTTON_GROUP_BASE, buttonGroupOrientationClasses[this.orientation()], this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: ButtonGroupComponent, isStandalone: true, selector: "ui-button-group", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class": "classes()", "attr.data-orientation": "orientation()", "attr.data-slot": "\"button-group\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonGroupComponent, decorators: [{
33
- type: Component,
34
- args: [{
35
- selector: 'ui-button-group',
36
- changeDetection: ChangeDetectionStrategy.OnPush,
37
- host: {
38
- '[class]': 'classes()',
39
- '[attr.data-orientation]': 'orientation()',
40
- '[attr.data-slot]': '"button-group"',
41
- role: 'group',
42
- },
43
- template: `<ng-content />`,
44
- }]
45
- }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
46
- class ButtonGroupTextComponent {
47
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
48
- classes = computed(() => cn([
49
- 'flex items-center gap-2 whitespace-nowrap rounded-md border border-border bg-muted px-4 text-sm font-medium shadow-sm',
50
- '[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4',
51
- ].join(' '), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
52
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonGroupTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
53
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: ButtonGroupTextComponent, isStandalone: true, selector: "ui-button-group-text", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"button-group-text\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonGroupTextComponent, decorators: [{
56
- type: Component,
57
- args: [{
58
- selector: 'ui-button-group-text',
59
- changeDetection: ChangeDetectionStrategy.OnPush,
60
- host: {
61
- '[class]': 'classes()',
62
- '[attr.data-slot]': '"button-group-text"',
63
- },
64
- template: `<ng-content />`,
65
- }]
66
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
67
- class ButtonGroupSeparatorComponent {
68
- orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
69
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
70
- classes = computed(() => cn('relative shrink-0 bg-border', this.orientation() === 'horizontal' ? 'h-px w-full self-auto' : 'h-auto w-px self-stretch', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
71
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonGroupSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: ButtonGroupSeparatorComponent, isStandalone: true, selector: "ui-button-group-separator", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "class": "classes()", "attr.aria-orientation": "orientation()", "attr.data-orientation": "orientation()", "attr.data-slot": "\"button-group-separator\"" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonGroupSeparatorComponent, decorators: [{
75
- type: Component,
76
- args: [{
77
- selector: 'ui-button-group-separator',
78
- changeDetection: ChangeDetectionStrategy.OnPush,
79
- host: {
80
- '[class]': 'classes()',
81
- '[attr.aria-orientation]': 'orientation()',
82
- '[attr.data-orientation]': 'orientation()',
83
- '[attr.data-slot]': '"button-group-separator"',
84
- role: 'separator',
85
- },
86
- template: '',
87
- }]
88
- }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
89
-
90
- /**
91
- * Generated bundle index. Do not edit.
92
- */
93
-
94
- export { ButtonGroupComponent, ButtonGroupSeparatorComponent, ButtonGroupTextComponent };
95
- //# sourceMappingURL=ojiepermana-angular-component-button-group.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-button-group.mjs","sources":["../../../projects/angular/component/button-group/src/lib/button-group.component.ts","../../../projects/angular/component/button-group/ojiepermana-angular-component-button-group.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@edsis/angular/component/utils';\n\nexport type ButtonGroupOrientation = 'horizontal' | 'vertical';\n\nconst BUTTON_GROUP_BASE = [\n 'inline-flex w-fit items-stretch',\n 'has-[>[data-slot=button-group]]:gap-2',\n '[&>*]:focus-visible:relative [&>*]:focus-visible:z-10',\n '[&>input]:flex-1 [&>textarea]:flex-1',\n '[&>ui-input-group]:min-w-0 [&>ui-input-group]:flex-1',\n].join(' ');\n\nconst buttonGroupOrientationClasses: Record<ButtonGroupOrientation, string> = {\n horizontal: [\n '[&>*:not(:first-child)]:rounded-s-none',\n '[&>*:not(:first-child)]:[border-inline-start-width:0]',\n '[&>*:not(:last-child)]:rounded-e-none',\n ].join(' '),\n vertical: [\n 'flex-col',\n '[&>*:not(:first-child)]:rounded-t-none',\n '[&>*:not(:first-child)]:border-t-0',\n '[&>*:not(:last-child)]:rounded-b-none',\n ].join(' '),\n};\n\n@Component({\n selector: 'ui-button-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-slot]': '\"button-group\"',\n role: 'group',\n },\n template: `<ng-content />`,\n})\nexport class ButtonGroupComponent {\n readonly orientation = input<ButtonGroupOrientation>('horizontal');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(BUTTON_GROUP_BASE, buttonGroupOrientationClasses[this.orientation()], this.class()),\n );\n}\n\n@Component({\n selector: 'ui-button-group-text',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-slot]': '\"button-group-text\"',\n },\n template: `<ng-content />`,\n})\nexport class ButtonGroupTextComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(\n [\n 'flex items-center gap-2 whitespace-nowrap rounded-md border border-border bg-muted px-4 text-sm font-medium shadow-sm',\n '[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4',\n ].join(' '),\n this.class(),\n ),\n );\n}\n\n@Component({\n selector: 'ui-button-group-separator',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.aria-orientation]': 'orientation()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-slot]': '\"button-group-separator\"',\n role: 'separator',\n },\n template: '',\n})\nexport class ButtonGroupSeparatorComponent {\n readonly orientation = input<ButtonGroupOrientation>('vertical');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(\n 'relative shrink-0 bg-border',\n this.orientation() === 'horizontal' ? 'h-px w-full self-auto' : 'h-auto w-px self-stretch',\n this.class(),\n ),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAKA,MAAM,iBAAiB,GAAG;IACxB,iCAAiC;IACjC,uCAAuC;IACvC,uDAAuD;IACvD,sCAAsC;IACtC,sDAAsD;AACvD,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC;AAEX,MAAM,6BAA6B,GAA2C;AAC5E,IAAA,UAAU,EAAE;QACV,wCAAwC;QACxC,uDAAuD;QACvD,uCAAuC;KACxC,CAAC,IAAI,CAAC,GAA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F,IAAI,CAAC,KAAK,EAAE,CACb,8EACF;wGAVU,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA7B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,6BAA6B,4jBAF9B,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAED,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAZzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,2BAA2B;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,kBAAkB,EAAE,0BAA0B;AAC9C,wBAAA,IAAI,EAAE,WAAW;AAClB,qBAAA;AACD,oBAAA,QAAQ,EAAE,EAAE;AACb,iBAAA;;;ACjFD;;AAEG;;;;"}
@@ -1,64 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@edsis/angular/component/utils';
4
- import { cva } from 'class-variance-authority';
5
-
6
- const buttonVariants = cva([
7
- 'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap',
8
- 'rounded-md text-sm font-medium',
9
- 'transition-colors',
10
- 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',
11
- 'disabled:pointer-events-none disabled:opacity-50',
12
- '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
13
- ].join(' '), {
14
- variants: {
15
- variant: {
16
- default: 'bg-primary text-primary-foreground hover:bg-primary/90',
17
- destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
18
- outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
19
- secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
20
- ghost: 'hover:bg-accent hover:text-accent-foreground',
21
- link: 'text-primary underline-offset-4 hover:underline',
22
- },
23
- size: {
24
- xs: 'h-7 rounded-md px-2.5 text-xs',
25
- default: 'h-9 px-4 py-2',
26
- sm: 'h-8 rounded-md px-3 text-xs',
27
- lg: 'h-10 rounded-md px-8',
28
- 'icon-xs': 'h-7 w-7 p-0',
29
- 'icon-sm': 'h-8 w-8 p-0',
30
- icon: 'h-9 w-9 p-0',
31
- 'icon-lg': 'h-10 w-10 p-0',
32
- },
33
- },
34
- defaultVariants: { variant: 'default', size: 'default' },
35
- });
36
-
37
- class ButtonComponent {
38
- variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
39
- size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
40
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
41
- classes = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: ButtonComponent, isStandalone: true, selector: "button[ui-button], a[ui-button]", 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-variant": "variant()", "attr.data-size": "size()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
44
- }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ButtonComponent, decorators: [{
46
- type: Component,
47
- args: [{
48
- selector: 'button[ui-button], a[ui-button]',
49
- changeDetection: ChangeDetectionStrategy.OnPush,
50
- host: {
51
- '[class]': 'classes()',
52
- '[attr.data-variant]': 'variant()',
53
- '[attr.data-size]': 'size()',
54
- },
55
- template: `<ng-content />`,
56
- }]
57
- }], 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 }] }] } });
58
-
59
- /**
60
- * Generated bundle index. Do not edit.
61
- */
62
-
63
- export { ButtonComponent, buttonVariants };
64
- //# sourceMappingURL=ojiepermana-angular-component-button.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-button.mjs","sources":["../../../projects/angular/component/button/src/lib/button.variants.ts","../../../projects/angular/component/button/src/lib/button.component.ts","../../../projects/angular/component/button/ojiepermana-angular-component-button.ts"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nexport const buttonVariants = cva(\n [\n 'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap',\n 'rounded-md text-sm font-medium',\n 'transition-colors',\n 'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50',\n '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n ].join(' '),\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary underline-offset-4 hover:underline',\n },\n size: {\n xs: 'h-7 rounded-md px-2.5 text-xs',\n default: 'h-9 px-4 py-2',\n sm: 'h-8 rounded-md px-3 text-xs',\n lg: 'h-10 rounded-md px-8',\n 'icon-xs': 'h-7 w-7 p-0',\n 'icon-sm': 'h-8 w-8 p-0',\n icon: 'h-9 w-9 p-0',\n 'icon-lg': 'h-10 w-10 p-0',\n },\n },\n defaultVariants: { variant: 'default', size: 'default' },\n },\n);\n\nexport type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;\nexport type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>['size']>;\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@edsis/angular/component/utils';\nimport { buttonVariants, type ButtonSize, type ButtonVariant } from './button.variants';\n\n@Component({\n selector: 'button[ui-button], a[ui-button]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n },\n template: `<ng-content />`,\n})\nexport class ButtonComponent {\n readonly variant = input<ButtonVariant>('default');\n readonly size = input<ButtonSize>('default');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.class()),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAEO,MAAM,cAAc,GAAG,GAAG,CAC/B;IACE,gFAAgF;IAChF,gCAAgC;IAChC,mBAAmB;IACnB,yEAAyE;IACzE,kDAAkD;IAClD,6DAA6D;AAC9D,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC,EACX;AACE,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,wDAAwD;AACjE,YAAA,WAAW,EAAE,oEAAoE;AACjF,YAAA,OA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AAe,EAAA,UAAA,EAAA,CAAA;kBAV3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iCAAiC;oBAC3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,qBAAqB,EAAE,WAAW;AAClC,wBAAA,kBAAkB,EAAE,QAAQ;AAC7B,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA,cAAA,CAAgB;AAC3B,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -1,78 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { model, input, computed, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { MatCalendar } from '@angular/material/datepicker';
4
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import { cn } from '@edsis/angular/component/utils';
6
-
7
- /**
8
- * Inline calendar built on MatCalendar. Requires a date adapter provider in the
9
- * consumer app (e.g. `provideNativeDateAdapter()` from `@angular/material/core`).
10
- */
11
- class CalendarComponent {
12
- value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
13
- min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
14
- max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
15
- startAt = input(null, ...(ngDevMode ? [{ debugName: "startAt" }] : /* istanbul ignore next */ []));
16
- startView = input('month', ...(ngDevMode ? [{ debugName: "startView" }] : /* istanbul ignore next */ []));
17
- dateFilter = input(null, ...(ngDevMode ? [{ debugName: "dateFilter" }] : /* istanbul ignore next */ []));
18
- disabled = model(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
19
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
20
- classes = computed(() => cn('block w-fit', this.disabled() ? 'pointer-events-none opacity-50' : '', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
21
- resolvedDateFilter = computed(() => this.dateFilter() ?? undefined, ...(ngDevMode ? [{ debugName: "resolvedDateFilter" }] : /* istanbul ignore next */ []));
22
- onChangeFn = () => { };
23
- onTouchedFn = () => { };
24
- onSelect(d) {
25
- this.value.set(d);
26
- this.onChangeFn(d);
27
- this.onTouchedFn();
28
- }
29
- writeValue(v) {
30
- this.value.set(v);
31
- }
32
- registerOnChange(fn) {
33
- this.onChangeFn = fn;
34
- }
35
- registerOnTouched(fn) {
36
- this.onTouchedFn = fn;
37
- }
38
- setDisabledState(state) {
39
- this.disabled.set(state);
40
- }
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: CalendarComponent, isStandalone: true, selector: "ui-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, startAt: { classPropertyName: "startAt", publicName: "startAt", isSignal: true, isRequired: false, transformFunction: null }, startView: { classPropertyName: "startView", publicName: "startView", isSignal: true, isRequired: false, transformFunction: null }, dateFilter: { classPropertyName: "dateFilter", publicName: "dateFilter", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", disabled: "disabledChange" }, host: { properties: { "class": "classes()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.inert": "disabled() ? \"\" : null" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendarComponent), multi: true }], ngImport: i0, template: `
43
- <mat-calendar
44
- class="ui-calendar"
45
- [selected]="value()"
46
- [minDate]="min()"
47
- [maxDate]="max()"
48
- [startAt]="startAt()"
49
- [startView]="startView()"
50
- [dateFilter]="resolvedDateFilter()"
51
- (selectedChange)="onSelect($event)" />
52
- `, isInline: true, styles: [":host{display:block;width:fit-content;padding:.75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.ui-calendar{display:block;width:var(--ui-calendar-width, 17.5rem)}\n"], dependencies: [{ kind: "component", type: MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd", "startDateAccessibleName", "endDateAccessibleName"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection", "_userDragDrop"], exportAs: ["matCalendar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
53
- }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CalendarComponent, decorators: [{
55
- type: Component,
56
- args: [{ selector: 'ui-calendar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatCalendar], host: {
57
- '[class]': 'classes()',
58
- '[attr.aria-disabled]': 'disabled() ? "true" : null',
59
- '[attr.inert]': 'disabled() ? "" : null',
60
- }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendarComponent), multi: true }], template: `
61
- <mat-calendar
62
- class="ui-calendar"
63
- [selected]="value()"
64
- [minDate]="min()"
65
- [maxDate]="max()"
66
- [startAt]="startAt()"
67
- [startView]="startView()"
68
- [dateFilter]="resolvedDateFilter()"
69
- (selectedChange)="onSelect($event)" />
70
- `, styles: [":host{display:block;width:fit-content;padding:.75rem;border-radius:var(--radius);border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.ui-calendar{display:block;width:var(--ui-calendar-width, 17.5rem)}\n"] }]
71
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], startAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "startAt", required: false }] }], startView: [{ type: i0.Input, args: [{ isSignal: true, alias: "startView", required: false }] }], dateFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFilter", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
72
-
73
- /**
74
- * Generated bundle index. Do not edit.
75
- */
76
-
77
- export { CalendarComponent };
78
- //# sourceMappingURL=ojiepermana-angular-component-calendar.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-calendar.mjs","sources":["../../../projects/angular/component/calendar/src/lib/calendar.component.ts","../../../projects/angular/component/calendar/ojiepermana-angular-component-calendar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, forwardRef, input, model } from '@angular/core';\nimport { MatCalendar } from '@angular/material/datepicker';\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\nimport { cn } from '@edsis/angular/component/utils';\n\nexport type CalendarStartView = 'month' | 'year' | 'multi-year';\nexport type CalendarDateFilter = (date: Date | null) => boolean;\n\n/**\n * Inline calendar built on MatCalendar. Requires a date adapter provider in the\n * consumer app (e.g. `provideNativeDateAdapter()` from `@angular/material/core`).\n */\n@Component({\n selector: 'ui-calendar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MatCalendar],\n host: {\n '[class]': 'classes()',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.inert]': 'disabled() ? \"\" : null',\n },\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendarComponent), multi: true }],\n template: `\n <mat-calendar\n class=\"ui-calendar\"\n [selected]=\"value()\"\n [minDate]=\"min()\"\n [maxDate]=\"max()\"\n [startAt]=\"startAt()\"\n [startView]=\"startView()\"\n [dateFilter]=\"resolvedDateFilter()\"\n (selectedChange)=\"onSelect($event)\" />\n `,\n styles: [\n `\n :host {\n display: block;\n width: fit-content;\n padding: 0.75rem;\n border-radius: var(--radius);\n border: 1px solid hsl(var(--border));\n background: hsl(var(--background));\n color: hsl(var(--foreground));\n }\n .ui-calendar {\n display: block;\n width: var(--ui-calendar-width, 17.5rem);\n }\n `,\n ],\n})\nexport class CalendarComponent implements ControlValueAccessor {\n readonly value = model<Date | null>(null);\n readonly min = input<Date | null>(null);\n readonly max = input<Date | null>(null);\n readonly startAt = input<Date | null>(null);\n readonly startView = input<CalendarStartView>('month');\n readonly dateFilter = input<CalendarDateFilter | null>(null);\n readonly disabled = model<boolean>(false);\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn('block w-fit', this.disabled() ? 'pointer-events-none opacity-50' : '', this.class()),\n );\n protected readonly resolvedDateFilter = computed(() => this.dateFilter() ?? undefined);\n\n private onChangeFn: (v: Date | null) => void = () => {};\n private onTouchedFn: () => void = () => {};\n\n protected onSelect(d: Date | null): void {\n this.value.set(d);\n this.onChangeFn(d);\n this.onTouchedFn();\n }\n\n writeValue(v: Date | null): void {\n this.value.set(v);\n }\n\n registerOnChange(fn: (v: Date | null) => void): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(state: boolean): void {\n this.disabled.set(state);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAQA;;;AAGG;MAwCU,iBAAiB,CAAA;AACnB,IAAA,KAAK,GAAG,KAAK,CAAc,IAAI,4EAAC;AAChC,IAAA,GAAG,GAAG,KAAK,CAAc,I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