@ojiepermana/angular 22.0.1 → 22.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (517) hide show
  1. package/README.md +16 -302
  2. package/fesm2022/ojiepermana-angular-chart.mjs +11 -0
  3. package/fesm2022/ojiepermana-angular-chart.mjs.map +1 -0
  4. package/fesm2022/ojiepermana-angular-component.mjs +11 -0
  5. package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
  6. package/fesm2022/ojiepermana-angular-navigation.mjs +11 -0
  7. package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -0
  8. package/fesm2022/ojiepermana-angular-sdk.mjs +11 -0
  9. package/fesm2022/ojiepermana-angular-sdk.mjs.map +1 -0
  10. package/fesm2022/ojiepermana-angular-theme.mjs +3 -382
  11. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
  12. package/fesm2022/ojiepermana-angular.mjs +14 -14
  13. package/fesm2022/ojiepermana-angular.mjs.map +1 -1
  14. package/package.json +25 -425
  15. package/types/ojiepermana-angular-chart.d.ts +1 -0
  16. package/types/ojiepermana-angular-component.d.ts +1 -0
  17. package/types/ojiepermana-angular-navigation.d.ts +1 -0
  18. package/types/ojiepermana-angular-sdk.d.ts +1 -0
  19. package/types/ojiepermana-angular-theme.d.ts +1 -116
  20. package/types/ojiepermana-angular.d.ts +5 -3
  21. package/.npmignore +0 -2
  22. package/collection.json +0 -30
  23. package/component/accordion/README.md +0 -195
  24. package/component/accordion/package.json +0 -4
  25. package/component/alert/README.md +0 -182
  26. package/component/alert/package.json +0 -4
  27. package/component/alert-dialog/README.md +0 -239
  28. package/component/alert-dialog/package.json +0 -4
  29. package/component/aspect-ratio/README.md +0 -112
  30. package/component/aspect-ratio/package.json +0 -4
  31. package/component/avatar/README.md +0 -176
  32. package/component/avatar/package.json +0 -4
  33. package/component/badge/README.md +0 -133
  34. package/component/badge/package.json +0 -4
  35. package/component/breadcrumb/README.md +0 -216
  36. package/component/breadcrumb/package.json +0 -4
  37. package/component/button/README.md +0 -139
  38. package/component/button/package.json +0 -4
  39. package/component/button-group/README.md +0 -208
  40. package/component/button-group/package.json +0 -4
  41. package/component/calendar/README.md +0 -132
  42. package/component/calendar/package.json +0 -4
  43. package/component/card/README.md +0 -220
  44. package/component/card/package.json +0 -4
  45. package/component/carousel/README.md +0 -276
  46. package/component/carousel/package.json +0 -4
  47. package/component/chart/README.md +0 -249
  48. package/component/chart/area/package.json +0 -4
  49. package/component/chart/bar/package.json +0 -4
  50. package/component/chart/line/package.json +0 -4
  51. package/component/chart/package.json +0 -4
  52. package/component/chart/pie/package.json +0 -4
  53. package/component/chart/radar/package.json +0 -4
  54. package/component/chart/radial/package.json +0 -4
  55. package/component/chart/scatter/package.json +0 -4
  56. package/component/checkbox/README.md +0 -149
  57. package/component/checkbox/package.json +0 -4
  58. package/component/collapsible/README.md +0 -195
  59. package/component/collapsible/package.json +0 -4
  60. package/component/combobox/README.md +0 -198
  61. package/component/combobox/package.json +0 -4
  62. package/component/command/README.md +0 -275
  63. package/component/command/package.json +0 -4
  64. package/component/composer/README.md +0 -235
  65. package/component/composer/package.json +0 -4
  66. package/component/context-menu/README.md +0 -267
  67. package/component/context-menu/package.json +0 -4
  68. package/component/date-picker/README.md +0 -177
  69. package/component/date-picker/package.json +0 -4
  70. package/component/dialog/README.md +0 -237
  71. package/component/dialog/package.json +0 -4
  72. package/component/drawer/README.md +0 -145
  73. package/component/drawer/package.json +0 -4
  74. package/component/dropdown-menu/README.md +0 -311
  75. package/component/dropdown-menu/package.json +0 -4
  76. package/component/editor/README.md +0 -136
  77. package/component/editor/package.json +0 -4
  78. package/component/empty/README.md +0 -183
  79. package/component/empty/package.json +0 -4
  80. package/component/form/README.md +0 -210
  81. package/component/form/package.json +0 -4
  82. package/component/hover-card/README.md +0 -146
  83. package/component/hover-card/package.json +0 -4
  84. package/component/input/README.md +0 -159
  85. package/component/input/package.json +0 -4
  86. package/component/input-group/README.md +0 -239
  87. package/component/input-group/package.json +0 -4
  88. package/component/input-otp/README.md +0 -278
  89. package/component/input-otp/package.json +0 -4
  90. package/component/item/README.md +0 -247
  91. package/component/item/package.json +0 -4
  92. package/component/kanban/README.md +0 -81
  93. package/component/kanban/package.json +0 -4
  94. package/component/kbd/README.md +0 -139
  95. package/component/kbd/package.json +0 -4
  96. package/component/label/README.md +0 -136
  97. package/component/label/package.json +0 -4
  98. package/component/menubar/README.md +0 -269
  99. package/component/menubar/package.json +0 -4
  100. package/component/native-select/README.md +0 -176
  101. package/component/native-select/package.json +0 -4
  102. package/component/navigation-menu/README.md +0 -160
  103. package/component/navigation-menu/package.json +0 -4
  104. package/component/pagination/README.md +0 -144
  105. package/component/pagination/package.json +0 -4
  106. package/component/pillbox/README.md +0 -67
  107. package/component/pillbox/package.json +0 -4
  108. package/component/popover/README.md +0 -43
  109. package/component/popover/package.json +0 -4
  110. package/component/progress/README.md +0 -160
  111. package/component/progress/package.json +0 -4
  112. package/component/radio/README.md +0 -209
  113. package/component/radio/package.json +0 -4
  114. package/component/resizable/README.md +0 -168
  115. package/component/resizable/package.json +0 -4
  116. package/component/scroll-area/README.md +0 -143
  117. package/component/scroll-area/package.json +0 -4
  118. package/component/select/README.md +0 -174
  119. package/component/select/package.json +0 -4
  120. package/component/separator/README.md +0 -170
  121. package/component/separator/package.json +0 -4
  122. package/component/sheet/README.md +0 -183
  123. package/component/sheet/package.json +0 -4
  124. package/component/skeleton/README.md +0 -158
  125. package/component/skeleton/package.json +0 -4
  126. package/component/slider/README.md +0 -207
  127. package/component/slider/package.json +0 -4
  128. package/component/spinner/README.md +0 -160
  129. package/component/spinner/package.json +0 -4
  130. package/component/switch/README.md +0 -166
  131. package/component/switch/package.json +0 -4
  132. package/component/table/README.md +0 -291
  133. package/component/table/package.json +0 -4
  134. package/component/tabs/README.md +0 -219
  135. package/component/tabs/package.json +0 -4
  136. package/component/textarea/README.md +0 -154
  137. package/component/textarea/package.json +0 -4
  138. package/component/timeline/README.md +0 -94
  139. package/component/timeline/package.json +0 -4
  140. package/component/toast/README.md +0 -321
  141. package/component/toast/package.json +0 -4
  142. package/component/toggle/README.md +0 -131
  143. package/component/toggle/package.json +0 -4
  144. package/component/toggle-group/README.md +0 -206
  145. package/component/toggle-group/package.json +0 -4
  146. package/component/tooltip/README.md +0 -211
  147. package/component/tooltip/package.json +0 -4
  148. package/component/utils/package.json +0 -4
  149. package/fesm2022/ojiepermana-angular-component-accordion.mjs +0 -189
  150. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +0 -1
  151. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +0 -276
  152. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +0 -1
  153. package/fesm2022/ojiepermana-angular-component-alert.mjs +0 -99
  154. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +0 -1
  155. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +0 -37
  156. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +0 -1
  157. package/fesm2022/ojiepermana-angular-component-avatar.mjs +0 -139
  158. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +0 -1
  159. package/fesm2022/ojiepermana-angular-component-badge.mjs +0 -50
  160. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +0 -1
  161. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +0 -200
  162. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +0 -1
  163. package/fesm2022/ojiepermana-angular-component-button-group.mjs +0 -103
  164. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +0 -1
  165. package/fesm2022/ojiepermana-angular-component-button.mjs +0 -68
  166. package/fesm2022/ojiepermana-angular-component-button.mjs.map +0 -1
  167. package/fesm2022/ojiepermana-angular-component-calendar.mjs +0 -88
  168. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +0 -1
  169. package/fesm2022/ojiepermana-angular-component-card.mjs +0 -152
  170. package/fesm2022/ojiepermana-angular-component-card.mjs.map +0 -1
  171. package/fesm2022/ojiepermana-angular-component-carousel.mjs +0 -334
  172. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +0 -1
  173. package/fesm2022/ojiepermana-angular-component-chart-area.mjs +0 -6
  174. package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +0 -1
  175. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +0 -6
  176. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +0 -1
  177. package/fesm2022/ojiepermana-angular-component-chart-line.mjs +0 -6
  178. package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +0 -1
  179. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +0 -6
  180. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +0 -1
  181. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +0 -6
  182. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +0 -1
  183. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +0 -6
  184. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +0 -1
  185. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +0 -6
  186. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +0 -1
  187. package/fesm2022/ojiepermana-angular-component-chart.mjs +0 -3925
  188. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +0 -1
  189. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +0 -114
  190. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +0 -1
  191. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +0 -124
  192. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +0 -1
  193. package/fesm2022/ojiepermana-angular-component-combobox.mjs +0 -272
  194. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +0 -1
  195. package/fesm2022/ojiepermana-angular-component-command.mjs +0 -293
  196. package/fesm2022/ojiepermana-angular-component-command.mjs.map +0 -1
  197. package/fesm2022/ojiepermana-angular-component-composer.mjs +0 -352
  198. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +0 -1
  199. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +0 -103
  200. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +0 -1
  201. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +0 -170
  202. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +0 -1
  203. package/fesm2022/ojiepermana-angular-component-dialog.mjs +0 -279
  204. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +0 -1
  205. package/fesm2022/ojiepermana-angular-component-drawer.mjs +0 -6
  206. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +0 -1
  207. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +0 -492
  208. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +0 -1
  209. package/fesm2022/ojiepermana-angular-component-editor.mjs +0 -717
  210. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +0 -1
  211. package/fesm2022/ojiepermana-angular-component-empty.mjs +0 -145
  212. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +0 -1
  213. package/fesm2022/ojiepermana-angular-component-form.mjs +0 -366
  214. package/fesm2022/ojiepermana-angular-component-form.mjs.map +0 -1
  215. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +0 -297
  216. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +0 -1
  217. package/fesm2022/ojiepermana-angular-component-input-group.mjs +0 -179
  218. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +0 -1
  219. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +0 -514
  220. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +0 -1
  221. package/fesm2022/ojiepermana-angular-component-input.mjs +0 -45
  222. package/fesm2022/ojiepermana-angular-component-input.mjs.map +0 -1
  223. package/fesm2022/ojiepermana-angular-component-item.mjs +0 -264
  224. package/fesm2022/ojiepermana-angular-component-item.mjs.map +0 -1
  225. package/fesm2022/ojiepermana-angular-component-kanban.mjs +0 -314
  226. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +0 -1
  227. package/fesm2022/ojiepermana-angular-component-kbd.mjs +0 -55
  228. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +0 -1
  229. package/fesm2022/ojiepermana-angular-component-label.mjs +0 -33
  230. package/fesm2022/ojiepermana-angular-component-label.mjs.map +0 -1
  231. package/fesm2022/ojiepermana-angular-component-menubar.mjs +0 -308
  232. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +0 -1
  233. package/fesm2022/ojiepermana-angular-component-native-select.mjs +0 -67
  234. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +0 -1
  235. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +0 -413
  236. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +0 -1
  237. package/fesm2022/ojiepermana-angular-component-pagination.mjs +0 -226
  238. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +0 -1
  239. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +0 -812
  240. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +0 -1
  241. package/fesm2022/ojiepermana-angular-component-popover.mjs +0 -169
  242. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +0 -1
  243. package/fesm2022/ojiepermana-angular-component-progress.mjs +0 -60
  244. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +0 -1
  245. package/fesm2022/ojiepermana-angular-component-radio.mjs +0 -122
  246. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +0 -1
  247. package/fesm2022/ojiepermana-angular-component-resizable.mjs +0 -481
  248. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +0 -1
  249. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +0 -54
  250. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +0 -1
  251. package/fesm2022/ojiepermana-angular-component-select.mjs +0 -176
  252. package/fesm2022/ojiepermana-angular-component-select.mjs.map +0 -1
  253. package/fesm2022/ojiepermana-angular-component-separator.mjs +0 -37
  254. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +0 -1
  255. package/fesm2022/ojiepermana-angular-component-sheet.mjs +0 -284
  256. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +0 -1
  257. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +0 -31
  258. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +0 -1
  259. package/fesm2022/ojiepermana-angular-component-slider.mjs +0 -423
  260. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +0 -1
  261. package/fesm2022/ojiepermana-angular-component-spinner.mjs +0 -60
  262. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +0 -1
  263. package/fesm2022/ojiepermana-angular-component-switch.mjs +0 -116
  264. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +0 -1
  265. package/fesm2022/ojiepermana-angular-component-table.mjs +0 -155
  266. package/fesm2022/ojiepermana-angular-component-table.mjs.map +0 -1
  267. package/fesm2022/ojiepermana-angular-component-tabs.mjs +0 -272
  268. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +0 -1
  269. package/fesm2022/ojiepermana-angular-component-textarea.mjs +0 -39
  270. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +0 -1
  271. package/fesm2022/ojiepermana-angular-component-timeline.mjs +0 -237
  272. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +0 -1
  273. package/fesm2022/ojiepermana-angular-component-toast.mjs +0 -71
  274. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +0 -1
  275. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +0 -289
  276. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +0 -1
  277. package/fesm2022/ojiepermana-angular-component-toggle.mjs +0 -82
  278. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +0 -1
  279. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +0 -354
  280. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +0 -1
  281. package/fesm2022/ojiepermana-angular-component-utils.mjs +0 -13
  282. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +0 -1
  283. package/fesm2022/ojiepermana-angular-generator-api.mjs +0 -68
  284. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +0 -1
  285. package/fesm2022/ojiepermana-angular-layout-component.mjs +0 -602
  286. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +0 -1
  287. package/fesm2022/ojiepermana-angular-layout-provider.mjs +0 -21
  288. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +0 -1
  289. package/fesm2022/ojiepermana-angular-layout-services.mjs +0 -116
  290. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +0 -1
  291. package/fesm2022/ojiepermana-angular-layout-shell.mjs +0 -48
  292. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +0 -1
  293. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +0 -30
  294. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +0 -1
  295. package/fesm2022/ojiepermana-angular-layout-token.mjs +0 -33
  296. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +0 -1
  297. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +0 -49
  298. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +0 -1
  299. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +0 -128
  300. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +0 -1
  301. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +0 -123
  302. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +0 -1
  303. package/fesm2022/ojiepermana-angular-layout.mjs +0 -485
  304. package/fesm2022/ojiepermana-angular-layout.mjs.map +0 -1
  305. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +0 -334
  306. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +0 -1
  307. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +0 -63
  308. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +0 -1
  309. package/fesm2022/ojiepermana-angular-navigation-item.mjs +0 -559
  310. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +0 -1
  311. package/fesm2022/ojiepermana-angular-navigation-service.mjs +0 -213
  312. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +0 -1
  313. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +0 -401
  314. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +0 -1
  315. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +0 -670
  316. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +0 -1
  317. package/fesm2022/ojiepermana-angular-navigation-types.mjs +0 -4
  318. package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +0 -1
  319. package/fesm2022/ojiepermana-angular-theme-provider.mjs +0 -35
  320. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +0 -1
  321. package/fesm2022/ojiepermana-angular-theme-services.mjs +0 -294
  322. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +0 -1
  323. package/fesm2022/ojiepermana-angular-theme-token.mjs +0 -56
  324. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +0 -1
  325. package/generator/api/README.md +0 -252
  326. package/generator/api/bin/package.json +0 -3
  327. package/generator/api/bin/schematics/init/index.js +0 -90
  328. package/generator/api/bin/schematics/ng-add/index.js +0 -131
  329. package/generator/api/bin/schematics/sdk/index.js +0 -76
  330. package/generator/api/bin/src/config/loader.js +0 -41
  331. package/generator/api/bin/src/config/schema.js +0 -57
  332. package/generator/api/bin/src/emit/client.js +0 -248
  333. package/generator/api/bin/src/emit/metadata.js +0 -295
  334. package/generator/api/bin/src/emit/models.js +0 -106
  335. package/generator/api/bin/src/emit/navigation.js +0 -56
  336. package/generator/api/bin/src/emit/operations.js +0 -122
  337. package/generator/api/bin/src/emit/public-api.js +0 -54
  338. package/generator/api/bin/src/emit/services.js +0 -87
  339. package/generator/api/bin/src/engine.js +0 -65
  340. package/generator/api/bin/src/layout/per-domain.js +0 -359
  341. package/generator/api/bin/src/parser/bundle.js +0 -25
  342. package/generator/api/bin/src/parser/ir.js +0 -320
  343. package/generator/api/bin/src/parser/types.js +0 -7
  344. package/generator/api/bin/src/render/template.js +0 -58
  345. package/generator/api/bin/src/writer/index.js +0 -278
  346. package/generator/api/package.json +0 -4
  347. package/generator/api/schematics/init/schema.json +0 -19
  348. package/generator/api/schematics/ng-add/schema.json +0 -14
  349. package/generator/api/schematics/sdk/schema.json +0 -19
  350. package/generator/api/sdk.config.example.json +0 -24
  351. package/generator/guide/README.md +0 -84
  352. package/generator/guide/bin/package.json +0 -3
  353. package/generator/guide/bin/schematics/build/index.js +0 -36
  354. package/generator/guide/bin/schematics/init/index.js +0 -70
  355. package/generator/guide/bin/src/config/loader.js +0 -50
  356. package/generator/guide/bin/src/config/schema.js +0 -12
  357. package/generator/guide/bin/src/engine/component.js +0 -74
  358. package/generator/guide/bin/src/engine/frontmatter.js +0 -42
  359. package/generator/guide/bin/src/engine/index.js +0 -42
  360. package/generator/guide/bin/src/engine/naming.js +0 -39
  361. package/generator/guide/bin/src/engine/render.js +0 -36
  362. package/generator/guide/bin/src/engine/routes.js +0 -106
  363. package/generator/guide/bin/src/engine/walk.js +0 -35
  364. package/generator/guide/guide.config.example.json +0 -9
  365. package/generator/guide/schematics/build/schema.json +0 -14
  366. package/generator/guide/schematics/init/schema.json +0 -19
  367. package/layout/component/package.json +0 -4
  368. package/layout/package.json +0 -4
  369. package/layout/provider/package.json +0 -4
  370. package/layout/services/package.json +0 -4
  371. package/layout/shell/package.json +0 -4
  372. package/layout/token/directive/package.json +0 -4
  373. package/layout/token/package.json +0 -4
  374. package/layout/type/empty/package.json +0 -4
  375. package/layout/type/horizontal/package.json +0 -4
  376. package/layout/type/vertical/package.json +0 -4
  377. package/navigation/demo-data/package.json +0 -4
  378. package/navigation/icon/package.json +0 -4
  379. package/navigation/item/package.json +0 -4
  380. package/navigation/service/package.json +0 -4
  381. package/navigation/sidebar/package.json +0 -4
  382. package/navigation/topbar/README.md +0 -196
  383. package/navigation/topbar/package.json +0 -4
  384. package/navigation/types/package.json +0 -4
  385. package/theme/README.md +0 -174
  386. package/theme/package.json +0 -4
  387. package/theme/provider/package.json +0 -4
  388. package/theme/services/package.json +0 -4
  389. package/theme/styles/foundation/components.css +0 -81
  390. package/theme/styles/foundation/layers.css +0 -15
  391. package/theme/styles/foundation/tokens.css +0 -55
  392. package/theme/styles/index.css +0 -37
  393. package/theme/styles/integrations/material/autocomplete.css +0 -178
  394. package/theme/styles/integrations/material/button.css +0 -468
  395. package/theme/styles/integrations/material/dialog.css +0 -152
  396. package/theme/styles/integrations/material/select.css +0 -175
  397. package/theme/styles/integrations/material/slide-toggle.css +0 -234
  398. package/theme/styles/integrations/material/slider.css +0 -194
  399. package/theme/styles/integrations/material/tabs.css +0 -229
  400. package/theme/styles/integrations/material.css +0 -264
  401. package/theme/styles/integrations/tailwind.css +0 -114
  402. package/theme/styles/variants/color/amber.css +0 -31
  403. package/theme/styles/variants/color/base.css +0 -36
  404. package/theme/styles/variants/color/blue.css +0 -31
  405. package/theme/styles/variants/color/cyan.css +0 -31
  406. package/theme/styles/variants/color/emerald.css +0 -31
  407. package/theme/styles/variants/color/fuchsia.css +0 -31
  408. package/theme/styles/variants/color/green.css +0 -31
  409. package/theme/styles/variants/color/index.css +0 -22
  410. package/theme/styles/variants/color/indigo.css +0 -31
  411. package/theme/styles/variants/color/lime.css +0 -31
  412. package/theme/styles/variants/color/orange.css +0 -31
  413. package/theme/styles/variants/color/pink.css +0 -31
  414. package/theme/styles/variants/color/purple.css +0 -31
  415. package/theme/styles/variants/color/red.css +0 -31
  416. package/theme/styles/variants/color/rose.css +0 -31
  417. package/theme/styles/variants/color/sky.css +0 -31
  418. package/theme/styles/variants/color/teal.css +0 -31
  419. package/theme/styles/variants/color/violet.css +0 -31
  420. package/theme/styles/variants/color/yellow.css +0 -31
  421. package/theme/styles/variants/mode/dark.css +0 -20
  422. package/theme/styles/variants/mode/index.css +0 -6
  423. package/theme/styles/variants/mode/light.css +0 -24
  424. package/theme/styles/variants/style/brutal.css +0 -50
  425. package/theme/styles/variants/style/default.css +0 -54
  426. package/theme/styles/variants/style/index.css +0 -8
  427. package/theme/styles/variants/style/sharp.css +0 -50
  428. package/theme/styles/variants/style/soft.css +0 -50
  429. package/theme/token/package.json +0 -4
  430. package/types/ojiepermana-angular-component-accordion.d.ts +0 -51
  431. package/types/ojiepermana-angular-component-alert-dialog.d.ts +0 -93
  432. package/types/ojiepermana-angular-component-alert.d.ts +0 -37
  433. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +0 -12
  434. package/types/ojiepermana-angular-component-avatar.d.ts +0 -51
  435. package/types/ojiepermana-angular-component-badge.d.ts +0 -19
  436. package/types/ojiepermana-angular-component-breadcrumb.d.ts +0 -46
  437. package/types/ojiepermana-angular-component-button-group.d.ts +0 -26
  438. package/types/ojiepermana-angular-component-button.d.ts +0 -22
  439. package/types/ojiepermana-angular-component-calendar.d.ts +0 -33
  440. package/types/ojiepermana-angular-component-card.d.ts +0 -60
  441. package/types/ojiepermana-angular-component-carousel.d.ts +0 -86
  442. package/types/ojiepermana-angular-component-chart-area.d.ts +0 -1
  443. package/types/ojiepermana-angular-component-chart-bar.d.ts +0 -1
  444. package/types/ojiepermana-angular-component-chart-line.d.ts +0 -1
  445. package/types/ojiepermana-angular-component-chart-pie.d.ts +0 -1
  446. package/types/ojiepermana-angular-component-chart-radar.d.ts +0 -1
  447. package/types/ojiepermana-angular-component-chart-radial.d.ts +0 -1
  448. package/types/ojiepermana-angular-component-chart-scatter.d.ts +0 -1
  449. package/types/ojiepermana-angular-component-chart.d.ts +0 -1094
  450. package/types/ojiepermana-angular-component-checkbox.d.ts +0 -35
  451. package/types/ojiepermana-angular-component-collapsible.d.ts +0 -42
  452. package/types/ojiepermana-angular-component-combobox.d.ts +0 -50
  453. package/types/ojiepermana-angular-component-command.d.ts +0 -99
  454. package/types/ojiepermana-angular-component-composer.d.ts +0 -90
  455. package/types/ojiepermana-angular-component-context-menu.d.ts +0 -35
  456. package/types/ojiepermana-angular-component-date-picker.d.ts +0 -41
  457. package/types/ojiepermana-angular-component-dialog.d.ts +0 -87
  458. package/types/ojiepermana-angular-component-drawer.d.ts +0 -1
  459. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +0 -137
  460. package/types/ojiepermana-angular-component-editor.d.ts +0 -123
  461. package/types/ojiepermana-angular-component-empty.d.ts +0 -50
  462. package/types/ojiepermana-angular-component-form.d.ts +0 -141
  463. package/types/ojiepermana-angular-component-hover-card.d.ts +0 -74
  464. package/types/ojiepermana-angular-component-input-group.d.ts +0 -51
  465. package/types/ojiepermana-angular-component-input-otp.d.ts +0 -136
  466. package/types/ojiepermana-angular-component-input.d.ts +0 -16
  467. package/types/ojiepermana-angular-component-item.d.ts +0 -88
  468. package/types/ojiepermana-angular-component-kanban.d.ts +0 -70
  469. package/types/ojiepermana-angular-component-kbd.d.ts +0 -16
  470. package/types/ojiepermana-angular-component-label.d.ts +0 -11
  471. package/types/ojiepermana-angular-component-menubar.d.ts +0 -67
  472. package/types/ojiepermana-angular-component-native-select.d.ts +0 -26
  473. package/types/ojiepermana-angular-component-navigation-menu.d.ts +0 -96
  474. package/types/ojiepermana-angular-component-pagination.d.ts +0 -33
  475. package/types/ojiepermana-angular-component-pillbox.d.ts +0 -157
  476. package/types/ojiepermana-angular-component-popover.d.ts +0 -43
  477. package/types/ojiepermana-angular-component-progress.d.ts +0 -17
  478. package/types/ojiepermana-angular-component-radio.d.ts +0 -40
  479. package/types/ojiepermana-angular-component-resizable.d.ts +0 -99
  480. package/types/ojiepermana-angular-component-scroll-area.d.ts +0 -19
  481. package/types/ojiepermana-angular-component-select.d.ts +0 -57
  482. package/types/ojiepermana-angular-component-separator.d.ts +0 -14
  483. package/types/ojiepermana-angular-component-sheet.d.ts +0 -76
  484. package/types/ojiepermana-angular-component-skeleton.d.ts +0 -10
  485. package/types/ojiepermana-angular-component-slider.d.ts +0 -74
  486. package/types/ojiepermana-angular-component-spinner.d.ts +0 -13
  487. package/types/ojiepermana-angular-component-switch.d.ts +0 -40
  488. package/types/ojiepermana-angular-component-table.d.ts +0 -52
  489. package/types/ojiepermana-angular-component-tabs.d.ts +0 -92
  490. package/types/ojiepermana-angular-component-textarea.d.ts +0 -12
  491. package/types/ojiepermana-angular-component-timeline.d.ts +0 -63
  492. package/types/ojiepermana-angular-component-toast.d.ts +0 -38
  493. package/types/ojiepermana-angular-component-toggle-group.d.ts +0 -89
  494. package/types/ojiepermana-angular-component-toggle.d.ts +0 -25
  495. package/types/ojiepermana-angular-component-tooltip.d.ts +0 -89
  496. package/types/ojiepermana-angular-component-utils.d.ts +0 -5
  497. package/types/ojiepermana-angular-generator-api.d.ts +0 -86
  498. package/types/ojiepermana-angular-layout-component.d.ts +0 -205
  499. package/types/ojiepermana-angular-layout-provider.d.ts +0 -6
  500. package/types/ojiepermana-angular-layout-services.d.ts +0 -25
  501. package/types/ojiepermana-angular-layout-shell.d.ts +0 -8
  502. package/types/ojiepermana-angular-layout-token-directive.d.ts +0 -13
  503. package/types/ojiepermana-angular-layout-token.d.ts +0 -36
  504. package/types/ojiepermana-angular-layout-type-empty.d.ts +0 -22
  505. package/types/ojiepermana-angular-layout-type-horizontal.d.ts +0 -36
  506. package/types/ojiepermana-angular-layout-type-vertical.d.ts +0 -38
  507. package/types/ojiepermana-angular-layout.d.ts +0 -164
  508. package/types/ojiepermana-angular-navigation-demo-data.d.ts +0 -5
  509. package/types/ojiepermana-angular-navigation-icon.d.ts +0 -17
  510. package/types/ojiepermana-angular-navigation-item.d.ts +0 -54
  511. package/types/ojiepermana-angular-navigation-service.d.ts +0 -77
  512. package/types/ojiepermana-angular-navigation-sidebar.d.ts +0 -75
  513. package/types/ojiepermana-angular-navigation-topbar.d.ts +0 -74
  514. package/types/ojiepermana-angular-navigation-types.d.ts +0 -135
  515. package/types/ojiepermana-angular-theme-provider.d.ts +0 -11
  516. package/types/ojiepermana-angular-theme-services.d.ts +0 -55
  517. package/types/ojiepermana-angular-theme-token.d.ts +0 -57
@@ -1,717 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { input, booleanAttribute, output, computed, ChangeDetectionStrategy, Component, inject, ElementRef, signal, forwardRef } from '@angular/core';
4
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
- import { cn } from '@ojiepermana/angular/component/utils';
6
-
7
- const DEFAULT_EDITOR_TOOLBAR = 'heading | bold italic underline strike | bullet ordered blockquote link align ~ undo redo';
8
- const EDITOR_BASE = 'block w-full min-w-0 text-sm text-foreground';
9
- const EDITOR_SHELL_BASE = [
10
- 'relative min-w-0 overflow-hidden rounded-md border border-input bg-background shadow-sm',
11
- 'transition-[border-color,box-shadow] focus-within:border-ring focus-within:ring-1 focus-within:ring-ring',
12
- 'aria-[invalid=true]:border-destructive aria-[invalid=true]:focus-within:ring-destructive',
13
- 'data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',
14
- ].join(' ');
15
- const EDITOR_TOOLBAR_BASE = [
16
- 'flex min-h-11 min-w-0 flex-wrap items-center gap-1 border-b border-border/70 bg-muted/30 px-2 py-1.5',
17
- 'data-[disabled=true]:pointer-events-none',
18
- ].join(' ');
19
- const EDITOR_TOOL_BUTTON_BASE = [
20
- 'inline-flex size-8 shrink-0 items-center justify-center rounded-md text-sm font-medium text-muted-foreground',
21
- 'transition-colors hover:bg-accent hover:text-accent-foreground',
22
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',
23
- 'disabled:pointer-events-none disabled:opacity-50',
24
- 'aria-pressed:bg-accent aria-pressed:text-accent-foreground',
25
- ].join(' ');
26
- const EDITOR_SELECT_BASE = [
27
- 'h-8 rounded-md border border-transparent bg-transparent px-2 text-sm font-medium text-muted-foreground outline-none',
28
- 'transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring',
29
- 'disabled:pointer-events-none disabled:opacity-50',
30
- ].join(' ');
31
- const EDITOR_CONTENT_BASE = [
32
- 'block min-h-[200px] max-h-[500px] w-full overflow-y-auto px-4 py-3 text-sm leading-6 outline-none',
33
- '[&_p]:my-2 [&_h1]:mb-2 [&_h1]:mt-4 [&_h1]:text-2xl [&_h1]:font-semibold [&_h2]:mb-2 [&_h2]:mt-4 [&_h2]:text-xl [&_h2]:font-semibold [&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:text-lg [&_h3]:font-semibold',
34
- '[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground [&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-6 [&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-xs',
35
- 'data-[empty=true]:before:pointer-events-none data-[empty=true]:before:text-muted-foreground data-[empty=true]:before:content-[attr(data-placeholder)]',
36
- 'data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50',
37
- ].join(' ');
38
- const toolbarButtons = {
39
- bold: { label: 'B', ariaLabel: 'Bold' },
40
- italic: { label: 'I', ariaLabel: 'Italic' },
41
- underline: { label: 'U', ariaLabel: 'Underline' },
42
- strike: { label: 'S', ariaLabel: 'Strikethrough' },
43
- bullet: { label: 'UL', ariaLabel: 'Bulleted list' },
44
- ordered: { label: '1.', ariaLabel: 'Numbered list' },
45
- blockquote: { label: 'Q', ariaLabel: 'Block quote' },
46
- subscript: { label: 'Sub', ariaLabel: 'Subscript' },
47
- superscript: { label: 'Sup', ariaLabel: 'Superscript' },
48
- highlight: { label: 'H', ariaLabel: 'Highlight' },
49
- link: { label: 'Link', ariaLabel: 'Insert link' },
50
- code: { label: '</>', ariaLabel: 'Code block' },
51
- undo: { label: 'Undo', ariaLabel: 'Undo' },
52
- redo: { label: 'Redo', ariaLabel: 'Redo' },
53
- };
54
- const toolbarItemAliases = {
55
- bold: 'bold',
56
- italic: 'italic',
57
- strike: 'strike',
58
- underline: 'underline',
59
- bullet: 'bullet',
60
- ordered: 'ordered',
61
- blockquote: 'blockquote',
62
- subscript: 'subscript',
63
- superscript: 'superscript',
64
- highlight: 'highlight',
65
- link: 'link',
66
- code: 'code',
67
- undo: 'undo',
68
- redo: 'redo',
69
- };
70
- const parseToolbarItems = (items) => {
71
- const tokens = items.split(/\s+/).filter(Boolean);
72
- return tokens.flatMap((token, index) => {
73
- if (token === '|') {
74
- return [{ type: 'separator', track: `separator-${index}` }];
75
- }
76
- if (token === '~') {
77
- return [{ type: 'spacer', track: `spacer-${index}` }];
78
- }
79
- if (token === 'heading') {
80
- return [{ type: 'heading', track: `heading-${index}` }];
81
- }
82
- if (token === 'align') {
83
- return [{ type: 'align', track: `align-${index}` }];
84
- }
85
- const command = toolbarItemAliases[token];
86
- const button = command ? toolbarButtons[command] : undefined;
87
- if (!command || !button) {
88
- return [];
89
- }
90
- return [{ type: 'button', command, label: button.label, ariaLabel: button.ariaLabel }];
91
- });
92
- };
93
- class EditorComponent {
94
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
95
- invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
96
- class = input('', /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
98
- commandSelected = output();
99
- content = null;
100
- classes = computed(() => cn(EDITOR_BASE, this.class()), /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
102
- shellClasses = computed(() => cn(EDITOR_SHELL_BASE), /* @ts-ignore */
103
- ...(ngDevMode ? [{ debugName: "shellClasses" }] : /* istanbul ignore next */ []));
104
- execute(command, source = 'api', originalEvent) {
105
- if (this.disabled()) {
106
- return;
107
- }
108
- this.content?.execute(command);
109
- this.commandSelected.emit({ command, source, originalEvent });
110
- }
111
- registerContent(content) {
112
- this.content = content;
113
- }
114
- unregisterContent(content) {
115
- if (this.content === content) {
116
- this.content = null;
117
- }
118
- }
119
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
120
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: EditorComponent, isStandalone: true, selector: "ui-editor", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { commandSelected: "commandSelected" }, host: { properties: { "class": "classes()", "attr.data-slot": "\"editor\"", "attr.data-disabled": "disabled() ? \"true\" : null", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.aria-invalid": "invalid() ? \"true\" : null", "attr.inert": "disabled() ? \"\" : null" } }, ngImport: i0, template: `
121
- <div
122
- data-slot="editor-shell"
123
- [class]="shellClasses()"
124
- [attr.data-disabled]="disabled() ? 'true' : null"
125
- [attr.aria-invalid]="invalid() ? 'true' : null">
126
- <ng-content select="ui-editor-toolbar" />
127
- <ng-content select="ui-editor-content" />
128
- </div>
129
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
130
- }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorComponent, decorators: [{
132
- type: Component,
133
- args: [{
134
- selector: 'ui-editor',
135
- changeDetection: ChangeDetectionStrategy.OnPush,
136
- host: {
137
- '[class]': 'classes()',
138
- '[attr.data-slot]': '"editor"',
139
- '[attr.data-disabled]': 'disabled() ? "true" : null',
140
- '[attr.aria-disabled]': 'disabled() ? "true" : null',
141
- '[attr.aria-invalid]': 'invalid() ? "true" : null',
142
- '[attr.inert]': 'disabled() ? "" : null',
143
- },
144
- template: `
145
- <div
146
- data-slot="editor-shell"
147
- [class]="shellClasses()"
148
- [attr.data-disabled]="disabled() ? 'true' : null"
149
- [attr.aria-invalid]="invalid() ? 'true' : null">
150
- <ng-content select="ui-editor-toolbar" />
151
- <ng-content select="ui-editor-content" />
152
- </div>
153
- `,
154
- }]
155
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], commandSelected: [{ type: i0.Output, args: ["commandSelected"] }] } });
156
- class EditorToolbarComponent {
157
- editor = inject(EditorComponent, { optional: true });
158
- items = input(DEFAULT_EDITOR_TOOLBAR, /* @ts-ignore */
159
- ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
160
- disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled', transform: booleanAttribute });
161
- ariaLabel = input('Formatting', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
162
- class = input('', /* @ts-ignore */
163
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
164
- buttonClasses = EDITOR_TOOL_BUTTON_BASE;
165
- selectClasses = EDITOR_SELECT_BASE;
166
- disabled = computed(() => this.disabledInput() || this.editor?.disabled() === true, /* @ts-ignore */
167
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
168
- parts = computed(() => parseToolbarItems(this.items()), /* @ts-ignore */
169
- ...(ngDevMode ? [{ debugName: "parts" }] : /* istanbul ignore next */ []));
170
- classes = computed(() => cn(EDITOR_TOOLBAR_BASE, this.class()), /* @ts-ignore */
171
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
172
- execute(command, event) {
173
- this.editor?.execute(command, 'toolbar', event);
174
- }
175
- handleSelect(event) {
176
- const select = event.target;
177
- this.editor?.execute(select.value, 'toolbar', event);
178
- select.selectedIndex = 0;
179
- }
180
- preserveSelection(event) {
181
- event.preventDefault();
182
- }
183
- trackPart(part, index) {
184
- if (part.type === 'button') {
185
- return `${part.command}-${index}`;
186
- }
187
- return part.track;
188
- }
189
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
190
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: EditorToolbarComponent, isStandalone: true, selector: "ui-editor-toolbar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "toolbar" }, properties: { "class": "classes()", "attr.data-slot": "\"editor-toolbar\"", "attr.aria-label": "ariaLabel()", "attr.data-disabled": "disabled() ? \"true\" : null" } }, ngImport: i0, template: `
191
- @for (part of parts(); track trackPart(part, $index)) {
192
- @switch (part.type) {
193
- @case ('heading') {
194
- <select
195
- [class]="selectClasses"
196
- [disabled]="disabled()"
197
- aria-label="Text style"
198
- (change)="handleSelect($event)">
199
- <option value="paragraph">Text</option>
200
- <option value="heading-1">Heading 1</option>
201
- <option value="heading-2">Heading 2</option>
202
- <option value="heading-3">Heading 3</option>
203
- </select>
204
- }
205
- @case ('align') {
206
- <select
207
- [class]="selectClasses"
208
- [disabled]="disabled()"
209
- aria-label="Text alignment"
210
- (change)="handleSelect($event)">
211
- <option value="align-left">Left</option>
212
- <option value="align-center">Center</option>
213
- <option value="align-right">Right</option>
214
- </select>
215
- }
216
- @case ('separator') {
217
- <span
218
- data-slot="editor-separator"
219
- class="mx-1 h-6 w-px shrink-0 bg-border"
220
- role="separator"
221
- aria-orientation="vertical"></span>
222
- }
223
- @case ('spacer') {
224
- <span data-slot="editor-spacer" class="min-w-2 flex-1"></span>
225
- }
226
- @case ('button') {
227
- <button
228
- type="button"
229
- data-slot="editor-button"
230
- [class]="buttonClasses"
231
- [disabled]="disabled()"
232
- [attr.aria-label]="part.ariaLabel"
233
- [attr.title]="part.ariaLabel"
234
- (mousedown)="preserveSelection($event)"
235
- (click)="execute(part.command, $event)">
236
- @if (part.command === 'undo') {
237
- <svg
238
- aria-hidden="true"
239
- class="size-4"
240
- viewBox="0 0 24 24"
241
- fill="none"
242
- stroke="currentColor"
243
- stroke-width="1.75"
244
- stroke-linecap="round"
245
- stroke-linejoin="round">
246
- <path d="M9 14 4 9l5-5" />
247
- <path d="M4 9h10a6 6 0 0 1 0 12h-2" />
248
- </svg>
249
- } @else if (part.command === 'redo') {
250
- <svg
251
- aria-hidden="true"
252
- class="size-4"
253
- viewBox="0 0 24 24"
254
- fill="none"
255
- stroke="currentColor"
256
- stroke-width="1.75"
257
- stroke-linecap="round"
258
- stroke-linejoin="round">
259
- <path d="m15 14 5-5-5-5" />
260
- <path d="M20 9H10a6 6 0 0 0 0 12h2" />
261
- </svg>
262
- } @else {
263
- <span aria-hidden="true">{{ part.label }}</span>
264
- }
265
- </button>
266
- }
267
- }
268
- }
269
- <ng-content />
270
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
271
- }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorToolbarComponent, decorators: [{
273
- type: Component,
274
- args: [{
275
- selector: 'ui-editor-toolbar',
276
- changeDetection: ChangeDetectionStrategy.OnPush,
277
- host: {
278
- '[class]': 'classes()',
279
- '[attr.data-slot]': '"editor-toolbar"',
280
- role: 'toolbar',
281
- '[attr.aria-label]': 'ariaLabel()',
282
- '[attr.data-disabled]': 'disabled() ? "true" : null',
283
- },
284
- template: `
285
- @for (part of parts(); track trackPart(part, $index)) {
286
- @switch (part.type) {
287
- @case ('heading') {
288
- <select
289
- [class]="selectClasses"
290
- [disabled]="disabled()"
291
- aria-label="Text style"
292
- (change)="handleSelect($event)">
293
- <option value="paragraph">Text</option>
294
- <option value="heading-1">Heading 1</option>
295
- <option value="heading-2">Heading 2</option>
296
- <option value="heading-3">Heading 3</option>
297
- </select>
298
- }
299
- @case ('align') {
300
- <select
301
- [class]="selectClasses"
302
- [disabled]="disabled()"
303
- aria-label="Text alignment"
304
- (change)="handleSelect($event)">
305
- <option value="align-left">Left</option>
306
- <option value="align-center">Center</option>
307
- <option value="align-right">Right</option>
308
- </select>
309
- }
310
- @case ('separator') {
311
- <span
312
- data-slot="editor-separator"
313
- class="mx-1 h-6 w-px shrink-0 bg-border"
314
- role="separator"
315
- aria-orientation="vertical"></span>
316
- }
317
- @case ('spacer') {
318
- <span data-slot="editor-spacer" class="min-w-2 flex-1"></span>
319
- }
320
- @case ('button') {
321
- <button
322
- type="button"
323
- data-slot="editor-button"
324
- [class]="buttonClasses"
325
- [disabled]="disabled()"
326
- [attr.aria-label]="part.ariaLabel"
327
- [attr.title]="part.ariaLabel"
328
- (mousedown)="preserveSelection($event)"
329
- (click)="execute(part.command, $event)">
330
- @if (part.command === 'undo') {
331
- <svg
332
- aria-hidden="true"
333
- class="size-4"
334
- viewBox="0 0 24 24"
335
- fill="none"
336
- stroke="currentColor"
337
- stroke-width="1.75"
338
- stroke-linecap="round"
339
- stroke-linejoin="round">
340
- <path d="M9 14 4 9l5-5" />
341
- <path d="M4 9h10a6 6 0 0 1 0 12h-2" />
342
- </svg>
343
- } @else if (part.command === 'redo') {
344
- <svg
345
- aria-hidden="true"
346
- class="size-4"
347
- viewBox="0 0 24 24"
348
- fill="none"
349
- stroke="currentColor"
350
- stroke-width="1.75"
351
- stroke-linecap="round"
352
- stroke-linejoin="round">
353
- <path d="m15 14 5-5-5-5" />
354
- <path d="M20 9H10a6 6 0 0 0 0 12h2" />
355
- </svg>
356
- } @else {
357
- <span aria-hidden="true">{{ part.label }}</span>
358
- }
359
- </button>
360
- }
361
- }
362
- }
363
- <ng-content />
364
- `,
365
- }]
366
- }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
367
- class EditorButtonComponent {
368
- editor = inject(EditorComponent, { optional: true });
369
- command = input(null, /* @ts-ignore */
370
- ...(ngDevMode ? [{ debugName: "command" }] : /* istanbul ignore next */ []));
371
- pressed = input(null, /* @ts-ignore */
372
- ...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
373
- disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled', transform: booleanAttribute });
374
- tooltip = input('', /* @ts-ignore */
375
- ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
376
- class = input('', /* @ts-ignore */
377
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
378
- disabled = computed(() => this.disabledInput() || this.editor?.disabled() === true, /* @ts-ignore */
379
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
380
- classes = computed(() => cn(EDITOR_TOOL_BUTTON_BASE, this.class()), /* @ts-ignore */
381
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
382
- handleClick(event) {
383
- const command = this.command();
384
- if (!command) {
385
- return;
386
- }
387
- this.editor?.execute(command, 'toolbar', event);
388
- }
389
- preserveSelection(event) {
390
- event.preventDefault();
391
- }
392
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
393
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: EditorButtonComponent, isStandalone: true, selector: "button[ui-editor-button]", inputs: { command: { classPropertyName: "command", publicName: "command", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "mousedown": "preserveSelection($event)", "click": "handleClick($event)" }, properties: { "class": "classes()", "attr.data-slot": "\"editor-button\"", "attr.title": "tooltip() || null", "attr.aria-pressed": "pressed() === null ? null : pressed()", "disabled": "disabled() || null" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
394
- }
395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorButtonComponent, decorators: [{
396
- type: Component,
397
- args: [{
398
- selector: 'button[ui-editor-button]',
399
- changeDetection: ChangeDetectionStrategy.OnPush,
400
- host: {
401
- '[class]': 'classes()',
402
- '[attr.data-slot]': '"editor-button"',
403
- '[attr.title]': 'tooltip() || null',
404
- '[attr.aria-pressed]': 'pressed() === null ? null : pressed()',
405
- '[disabled]': 'disabled() || null',
406
- type: 'button',
407
- '(mousedown)': 'preserveSelection($event)',
408
- '(click)': 'handleClick($event)',
409
- },
410
- template: `<ng-content />`,
411
- }]
412
- }], propDecorators: { command: [{ type: i0.Input, args: [{ isSignal: true, alias: "command", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
413
- class EditorSeparatorComponent {
414
- class = input('', /* @ts-ignore */
415
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
416
- classes = computed(() => cn('mx-1 h-6 w-px shrink-0 bg-border', this.class()), /* @ts-ignore */
417
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
418
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
419
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: EditorSeparatorComponent, isStandalone: true, selector: "ui-editor-separator", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator", "aria-orientation": "vertical" }, properties: { "class": "classes()", "attr.data-slot": "\"editor-separator\"" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
420
- }
421
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorSeparatorComponent, decorators: [{
422
- type: Component,
423
- args: [{
424
- selector: 'ui-editor-separator',
425
- changeDetection: ChangeDetectionStrategy.OnPush,
426
- host: {
427
- '[class]': 'classes()',
428
- '[attr.data-slot]': '"editor-separator"',
429
- role: 'separator',
430
- 'aria-orientation': 'vertical',
431
- },
432
- template: '',
433
- }]
434
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
435
- class EditorSpacerComponent {
436
- class = input('', /* @ts-ignore */
437
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
438
- classes = computed(() => cn('min-w-2 flex-1', this.class()), /* @ts-ignore */
439
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
440
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
441
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: EditorSpacerComponent, isStandalone: true, selector: "ui-editor-spacer", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-slot": "\"editor-spacer\"" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
442
- }
443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorSpacerComponent, decorators: [{
444
- type: Component,
445
- args: [{
446
- selector: 'ui-editor-spacer',
447
- changeDetection: ChangeDetectionStrategy.OnPush,
448
- host: {
449
- '[class]': 'classes()',
450
- '[attr.data-slot]': '"editor-spacer"',
451
- },
452
- template: '',
453
- }]
454
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
455
- class EditorContentComponent {
456
- el = inject(ElementRef);
457
- editor = inject(EditorComponent, { optional: true });
458
- document = inject(DOCUMENT);
459
- placeholder = input('Write something...', /* @ts-ignore */
460
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
461
- ariaLabel = input('Rich text editor', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
462
- disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {}), alias: 'disabled', transform: booleanAttribute });
463
- invalidInput = input(false, { ...(ngDevMode ? { debugName: "invalidInput" } : /* istanbul ignore next */ {}), alias: 'aria-invalid', transform: booleanAttribute });
464
- class = input('', /* @ts-ignore */
465
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
466
- disabledState = signal(false, /* @ts-ignore */
467
- ...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
468
- empty = signal(true, /* @ts-ignore */
469
- ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
470
- disabled = computed(() => this.disabledInput() || this.disabledState() || this.editor?.disabled() === true, /* @ts-ignore */
471
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
472
- invalid = computed(() => this.invalidInput() || this.editor?.invalid() === true, /* @ts-ignore */
473
- ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
474
- classes = computed(() => cn(EDITOR_CONTENT_BASE, this.class()), /* @ts-ignore */
475
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
476
- onChange = () => { };
477
- onTouched = () => { };
478
- ngAfterViewInit() {
479
- this.editor?.registerContent(this);
480
- queueMicrotask(() => this.syncEmptyState());
481
- }
482
- ngOnDestroy() {
483
- this.editor?.unregisterContent(this);
484
- }
485
- writeValue(value) {
486
- this.el.nativeElement.innerHTML = value ?? '';
487
- queueMicrotask(() => this.syncEmptyState());
488
- }
489
- registerOnChange(fn) {
490
- this.onChange = fn;
491
- }
492
- registerOnTouched(fn) {
493
- this.onTouched = fn;
494
- }
495
- setDisabledState(isDisabled) {
496
- this.disabledState.set(isDisabled);
497
- }
498
- execute(command) {
499
- if (this.disabled()) {
500
- return;
501
- }
502
- this.el.nativeElement.focus();
503
- switch (command) {
504
- case 'paragraph':
505
- this.exec('formatBlock', 'p');
506
- break;
507
- case 'heading-1':
508
- this.exec('formatBlock', 'h1');
509
- break;
510
- case 'heading-2':
511
- this.exec('formatBlock', 'h2');
512
- break;
513
- case 'heading-3':
514
- this.exec('formatBlock', 'h3');
515
- break;
516
- case 'bold':
517
- this.exec('bold');
518
- break;
519
- case 'italic':
520
- this.exec('italic');
521
- break;
522
- case 'underline':
523
- this.exec('underline');
524
- break;
525
- case 'strike':
526
- this.exec('strikeThrough');
527
- break;
528
- case 'bullet':
529
- this.exec('insertUnorderedList');
530
- break;
531
- case 'ordered':
532
- this.exec('insertOrderedList');
533
- break;
534
- case 'blockquote':
535
- this.exec('formatBlock', 'blockquote');
536
- break;
537
- case 'subscript':
538
- this.exec('subscript');
539
- break;
540
- case 'superscript':
541
- this.exec('superscript');
542
- break;
543
- case 'highlight':
544
- this.exec('backColor', '#fef08a');
545
- break;
546
- case 'link':
547
- this.exec('createLink', '#');
548
- break;
549
- case 'code':
550
- this.exec('formatBlock', 'pre');
551
- break;
552
- case 'align-left':
553
- this.exec('justifyLeft');
554
- break;
555
- case 'align-center':
556
- this.exec('justifyCenter');
557
- break;
558
- case 'align-right':
559
- this.exec('justifyRight');
560
- break;
561
- case 'undo':
562
- this.exec('undo');
563
- break;
564
- case 'redo':
565
- this.exec('redo');
566
- break;
567
- }
568
- this.handleInput();
569
- }
570
- focus() {
571
- this.el.nativeElement.focus();
572
- }
573
- handleInput() {
574
- this.syncEmptyState();
575
- this.onChange(this.el.nativeElement.innerHTML);
576
- }
577
- handleBlur() {
578
- this.onTouched();
579
- }
580
- handleKeydown(event) {
581
- if (this.disabled()) {
582
- return;
583
- }
584
- const command = this.shortcutCommand(event);
585
- if (!command) {
586
- return;
587
- }
588
- event.preventDefault();
589
- if (this.editor) {
590
- this.editor.execute(command, 'shortcut', event);
591
- return;
592
- }
593
- this.execute(command);
594
- }
595
- exec(command, value) {
596
- if (typeof this.document.execCommand !== 'function') {
597
- return;
598
- }
599
- this.document.execCommand(command, false, value);
600
- }
601
- syncEmptyState() {
602
- const element = this.el.nativeElement;
603
- const html = element.innerHTML
604
- .replace(/<br\s*\/?\>/gi, '')
605
- .replace(/&nbsp;/g, '')
606
- .trim();
607
- const text = element.textContent?.replace(/\u00a0/g, '').trim() ?? '';
608
- this.empty.set(html.length === 0 && text.length === 0);
609
- }
610
- shortcutCommand(event) {
611
- const modifier = event.metaKey || event.ctrlKey;
612
- if (!modifier) {
613
- return null;
614
- }
615
- const key = event.key.toLowerCase();
616
- if (event.altKey && !event.shiftKey) {
617
- if (key === '0') {
618
- return 'paragraph';
619
- }
620
- if (key === '1') {
621
- return 'heading-1';
622
- }
623
- if (key === '2') {
624
- return 'heading-2';
625
- }
626
- if (key === '3') {
627
- return 'heading-3';
628
- }
629
- }
630
- if (event.shiftKey && !event.altKey) {
631
- switch (key) {
632
- case 'x':
633
- return 'strike';
634
- case '7':
635
- return 'ordered';
636
- case '8':
637
- return 'bullet';
638
- case 'b':
639
- return 'blockquote';
640
- case 'h':
641
- return 'highlight';
642
- case 'l':
643
- return 'align-left';
644
- case 'e':
645
- return 'align-center';
646
- case 'r':
647
- return 'align-right';
648
- case 'z':
649
- return 'redo';
650
- }
651
- }
652
- if (event.altKey || event.shiftKey) {
653
- return null;
654
- }
655
- switch (key) {
656
- case 'b':
657
- return 'bold';
658
- case 'i':
659
- return 'italic';
660
- case 'u':
661
- return 'underline';
662
- case 'e':
663
- return 'code';
664
- case 'z':
665
- return 'undo';
666
- default:
667
- return null;
668
- }
669
- }
670
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
671
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: EditorContentComponent, isStandalone: true, selector: "ui-editor-content", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "aria-invalid", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "handleInput()", "blur": "handleBlur()", "keydown": "handleKeydown($event)" }, properties: { "class": "classes()", "attr.data-slot": "\"editor-content\"", "attr.contenteditable": "disabled() ? \"false\" : \"true\"", "attr.role": "\"textbox\"", "attr.aria-multiline": "\"true\"", "attr.aria-label": "ariaLabel()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.aria-invalid": "invalid() ? \"true\" : null", "attr.data-disabled": "disabled() ? \"true\" : null", "attr.data-empty": "empty() ? \"true\" : null", "attr.data-placeholder": "placeholder()", "attr.tabindex": "disabled() ? null : \"0\"" } }, providers: [
672
- {
673
- provide: NG_VALUE_ACCESSOR,
674
- useExisting: forwardRef(() => EditorContentComponent),
675
- multi: true,
676
- },
677
- ], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
678
- }
679
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: EditorContentComponent, decorators: [{
680
- type: Component,
681
- args: [{
682
- selector: 'ui-editor-content',
683
- changeDetection: ChangeDetectionStrategy.OnPush,
684
- providers: [
685
- {
686
- provide: NG_VALUE_ACCESSOR,
687
- useExisting: forwardRef(() => EditorContentComponent),
688
- multi: true,
689
- },
690
- ],
691
- host: {
692
- '[class]': 'classes()',
693
- '[attr.data-slot]': '"editor-content"',
694
- '[attr.contenteditable]': 'disabled() ? "false" : "true"',
695
- '[attr.role]': '"textbox"',
696
- '[attr.aria-multiline]': '"true"',
697
- '[attr.aria-label]': 'ariaLabel()',
698
- '[attr.aria-disabled]': 'disabled() ? "true" : null',
699
- '[attr.aria-invalid]': 'invalid() ? "true" : null',
700
- '[attr.data-disabled]': 'disabled() ? "true" : null',
701
- '[attr.data-empty]': 'empty() ? "true" : null',
702
- '[attr.data-placeholder]': 'placeholder()',
703
- '[attr.tabindex]': 'disabled() ? null : "0"',
704
- '(input)': 'handleInput()',
705
- '(blur)': 'handleBlur()',
706
- '(keydown)': 'handleKeydown($event)',
707
- },
708
- template: `<ng-content />`,
709
- }]
710
- }], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalidInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-invalid", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
711
-
712
- /**
713
- * Generated bundle index. Do not edit.
714
- */
715
-
716
- export { EditorButtonComponent, EditorComponent, EditorContentComponent, EditorSeparatorComponent, EditorSpacerComponent, EditorToolbarComponent };
717
- //# sourceMappingURL=ojiepermana-angular-component-editor.mjs.map