@acorex/components 18.5.17 → 18.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (476) hide show
  1. package/audio-wave/lib/audio-wave.component.d.ts +5 -0
  2. package/button-group/lib/button-group.component.d.ts +5 -2
  3. package/calendar/lib/calendar-range.component.d.ts +1 -1
  4. package/calendar/lib/calendar.component.d.ts +1 -1
  5. package/circular-progress/lib/circular-progress.component.d.ts +21 -57
  6. package/color-box/lib/color-box.component.d.ts +1 -1
  7. package/conversation/lib/conversation-input/conversation-input.component.d.ts +1 -1
  8. package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +28 -0
  9. package/data-pager/lib/data-pager-prev-buttons.component.d.ts +20 -0
  10. package/data-pager/lib/data-pager.component.d.ts +111 -0
  11. package/data-table/lib/columns/data-text-column.component.d.ts +58 -0
  12. package/data-table/lib/columns/row-command-column.component.d.ts +83 -0
  13. package/data-table/lib/columns/row-index-column.component.d.ts +51 -0
  14. package/data-table/lib/columns/row-select-column.component.d.ts +47 -0
  15. package/data-table/lib/data-table/data-table.component.d.ts +200 -0
  16. package/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.d.ts +185 -0
  17. package/datetime-box/lib/datetime-box.component.d.ts +60 -2
  18. package/datetime-input/lib/datetime-input.component.d.ts +133 -0
  19. package/datetime-picker/lib/datetime-picker.component.d.ts +96 -1
  20. package/decorators/lib/components/clear-button.component.d.ts +25 -0
  21. package/decorators/lib/components/close-button.component.d.ts +22 -0
  22. package/decorators/lib/components/generic-content.component.d.ts +4 -0
  23. package/decorators/lib/components/icon.component.d.ts +12 -0
  24. package/dialog/lib/dialog.component.d.ts +20 -0
  25. package/drawer/lib/drawer-container.component.d.ts +7 -0
  26. package/drawer/lib/drawer.component.d.ts +104 -0
  27. package/dropdown/lib/dropdown-box.component.d.ts +66 -0
  28. package/dropdown/lib/dropdown-panel.component.d.ts +85 -0
  29. package/dropdown-button/lib/dropdown-button.component.d.ts +38 -0
  30. package/esm2022/action-sheet/lib/action-sheet.component.mjs +3 -3
  31. package/esm2022/action-sheet/lib/action-sheet.module.mjs +4 -4
  32. package/esm2022/action-sheet/lib/action-sheet.service.mjs +3 -3
  33. package/esm2022/alert/lib/alert.component.mjs +3 -3
  34. package/esm2022/alert/lib/alert.module.mjs +4 -4
  35. package/esm2022/audio-wave/lib/audio-wave.component.mjs +9 -4
  36. package/esm2022/audio-wave/lib/audio-wave.module.mjs +4 -4
  37. package/esm2022/avatar/lib/avatar-group.component.mjs +3 -3
  38. package/esm2022/avatar/lib/avatar.component.mjs +3 -3
  39. package/esm2022/avatar/lib/avatar.module.mjs +4 -4
  40. package/esm2022/badge/lib/badge.component.mjs +3 -3
  41. package/esm2022/badge/lib/badge.module.mjs +4 -4
  42. package/esm2022/bottom-navigation/lib/bottom-navigation-item/bottom-navigation-item.component.mjs +3 -3
  43. package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +3 -3
  44. package/esm2022/bottom-navigation/lib/bottom-navigation.module.mjs +4 -4
  45. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +3 -3
  46. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  47. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +4 -4
  48. package/esm2022/button/lib/button-item-list.component.mjs +3 -3
  49. package/esm2022/button/lib/button-item.component.mjs +3 -3
  50. package/esm2022/button/lib/button.component.mjs +3 -3
  51. package/esm2022/button/lib/button.module.mjs +4 -4
  52. package/esm2022/button-group/lib/button-group.component.mjs +9 -6
  53. package/esm2022/button-group/lib/button-group.module.mjs +4 -4
  54. package/esm2022/calendar/lib/calendar-range.component.mjs +3 -3
  55. package/esm2022/calendar/lib/calendar.class.mjs +3 -3
  56. package/esm2022/calendar/lib/calendar.component.mjs +3 -3
  57. package/esm2022/calendar/lib/calendar.module.mjs +4 -4
  58. package/esm2022/check-box/lib/check-box.component.mjs +3 -3
  59. package/esm2022/check-box/lib/check-box.module.mjs +4 -4
  60. package/esm2022/chips/lib/chips.component.mjs +3 -3
  61. package/esm2022/chips/lib/chips.module.mjs +4 -4
  62. package/esm2022/circular-progress/lib/circular-progress.component.mjs +46 -115
  63. package/esm2022/circular-progress/lib/circular-progress.module.mjs +4 -4
  64. package/esm2022/collapse/lib/collapse-group.component.mjs +3 -3
  65. package/esm2022/collapse/lib/collapse.component.mjs +3 -3
  66. package/esm2022/collapse/lib/collapse.module.mjs +4 -4
  67. package/esm2022/color-box/lib/color-box.component.mjs +3 -3
  68. package/esm2022/color-box/lib/color-box.module.mjs +4 -4
  69. package/esm2022/color-palette/lib/color-palette-input.component.mjs +3 -3
  70. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +4 -4
  71. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +3 -3
  72. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +3 -3
  73. package/esm2022/color-palette/lib/color-palette.class.mjs +6 -6
  74. package/esm2022/color-palette/lib/color-palette.component.mjs +3 -3
  75. package/esm2022/color-palette/lib/color-palette.module.mjs +4 -4
  76. package/esm2022/comment/lib/comment-container/comment-container.component.mjs +3 -3
  77. package/esm2022/comment/lib/comment-item/comment-item.component.mjs +3 -3
  78. package/esm2022/comment/lib/comment-like/comment-like.component.mjs +3 -3
  79. package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +3 -3
  80. package/esm2022/comment/lib/comment-reply-text/comment-reply-text.component.mjs +3 -3
  81. package/esm2022/comment/lib/comment-view/comment-view.component.mjs +3 -3
  82. package/esm2022/comment/lib/comment.module.mjs +4 -4
  83. package/esm2022/comment/lib/services/comment.service.mjs +3 -3
  84. package/esm2022/common/lib/classes/components.class.mjs +21 -21
  85. package/esm2022/common/lib/common.module.mjs +4 -4
  86. package/esm2022/common/lib/components/base-component.class.mjs +3 -3
  87. package/esm2022/common/lib/components/input-base-value-component.class.mjs +3 -3
  88. package/esm2022/common/lib/components/look-component.class.mjs +3 -3
  89. package/esm2022/common/lib/components/selection-base.component.class.mjs +6 -6
  90. package/esm2022/common/lib/components/value-component.class.mjs +3 -3
  91. package/esm2022/common/lib/directives/auto-focus.directive.mjs +3 -3
  92. package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +3 -3
  93. package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -3
  94. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +3 -3
  95. package/esm2022/common/lib/directives/inverted-color.directive.mjs +3 -3
  96. package/esm2022/common/lib/directives/responsive.directive.mjs +3 -3
  97. package/esm2022/common/lib/directives/ripple.directive.mjs +3 -3
  98. package/esm2022/common/lib/services/dom.service.mjs +3 -3
  99. package/esm2022/common/lib/services/hotkey.service.mjs +3 -3
  100. package/esm2022/conversation/lib/conversation-container/conversation-container.component.mjs +3 -3
  101. package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +3 -3
  102. package/esm2022/conversation/lib/conversation-message/conversation-message.component.mjs +3 -3
  103. package/esm2022/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.mjs +3 -3
  104. package/esm2022/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.mjs +3 -3
  105. package/esm2022/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.mjs +3 -3
  106. package/esm2022/conversation/lib/conversation-messages/conversation-message-image-popup/conversation-message-image-popup.component.mjs +3 -3
  107. package/esm2022/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.mjs +3 -3
  108. package/esm2022/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.mjs +3 -3
  109. package/esm2022/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.mjs +3 -3
  110. package/esm2022/conversation/lib/conversation-view/conversation-view.component.mjs +3 -3
  111. package/esm2022/conversation/lib/conversation.module.mjs +4 -4
  112. package/esm2022/conversation/lib/conversation.types.mjs +3 -3
  113. package/esm2022/conversation/lib/services/conversation-message-type-registry.service.mjs +3 -3
  114. package/esm2022/conversation/lib/services/conversation.service.mjs +3 -3
  115. package/esm2022/conversation/lib/services/recording.service.mjs +3 -3
  116. package/esm2022/data-pager/lib/data-pager-base.component.mjs +6 -6
  117. package/esm2022/data-pager/lib/data-pager-info.component.mjs +3 -3
  118. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +3 -3
  119. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +3 -3
  120. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +3 -3
  121. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +26 -4
  122. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +21 -4
  123. package/esm2022/data-pager/lib/data-pager.component.mjs +112 -4
  124. package/esm2022/data-pager/lib/data-pager.module.mjs +4 -4
  125. package/esm2022/data-table/lib/base-data-table.class.mjs +3 -3
  126. package/esm2022/data-table/lib/columns/data-table-column-resizable.directive.mjs +3 -3
  127. package/esm2022/data-table/lib/columns/data-table-column.mjs +3 -3
  128. package/esm2022/data-table/lib/columns/data-text-column.component.mjs +35 -4
  129. package/esm2022/data-table/lib/columns/row-command-column.component.mjs +69 -7
  130. package/esm2022/data-table/lib/columns/row-index-column.component.mjs +43 -4
  131. package/esm2022/data-table/lib/columns/row-select-column.component.mjs +42 -4
  132. package/esm2022/data-table/lib/data-table/data-table.component.mjs +187 -5
  133. package/esm2022/data-table/lib/data-table.module.mjs +4 -4
  134. package/esm2022/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.mjs +162 -4
  135. package/esm2022/datetime-box/lib/datetime-box.component.mjs +54 -5
  136. package/esm2022/datetime-box/lib/datetime-box.module.mjs +4 -4
  137. package/esm2022/datetime-input/lib/datetime-input.component.mjs +125 -4
  138. package/esm2022/datetime-input/lib/datetime-input.module.mjs +4 -4
  139. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +93 -4
  140. package/esm2022/datetime-picker/lib/datetime-picker.module.mjs +4 -4
  141. package/esm2022/decorators/lib/components/clear-button.component.mjs +29 -4
  142. package/esm2022/decorators/lib/components/close-button.component.mjs +26 -4
  143. package/esm2022/decorators/lib/components/generic-content.component.mjs +8 -4
  144. package/esm2022/decorators/lib/components/icon.component.mjs +16 -4
  145. package/esm2022/decorators/lib/decorators.module.mjs +4 -4
  146. package/esm2022/dialog/lib/dialog.component.mjs +22 -5
  147. package/esm2022/dialog/lib/dialog.module.mjs +4 -4
  148. package/esm2022/dialog/lib/dialog.service.mjs +3 -3
  149. package/esm2022/drawer/lib/drawer-container.component.mjs +11 -4
  150. package/esm2022/drawer/lib/drawer.component.mjs +105 -4
  151. package/esm2022/drawer/lib/drawer.module.mjs +4 -4
  152. package/esm2022/dropdown/lib/dropdown-box.class.mjs +3 -3
  153. package/esm2022/dropdown/lib/dropdown-box.component.mjs +61 -4
  154. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +80 -4
  155. package/esm2022/dropdown/lib/dropdown.module.mjs +4 -4
  156. package/esm2022/dropdown-button/lib/dropdown-button.component.mjs +39 -4
  157. package/esm2022/dropdown-button/lib/dropdown-button.module.mjs +4 -4
  158. package/esm2022/form/lib/form-field.component.mjs +43 -4
  159. package/esm2022/form/lib/form.component.mjs +62 -4
  160. package/esm2022/form/lib/form.module.mjs +4 -4
  161. package/esm2022/form/lib/validation-rule.directive.mjs +3 -3
  162. package/esm2022/form/lib/validation-summary.component.mjs +44 -4
  163. package/esm2022/image/lib/image.component.mjs +50 -4
  164. package/esm2022/image/lib/image.module.mjs +4 -4
  165. package/esm2022/label/lib/label.component.mjs +35 -4
  166. package/esm2022/label/lib/label.module.mjs +4 -4
  167. package/esm2022/list/lib/list.component.mjs +87 -4
  168. package/esm2022/list/lib/list.module.mjs +4 -4
  169. package/esm2022/loading/lib/loading-spinner.component.mjs +20 -4
  170. package/esm2022/loading/lib/loading.component.mjs +30 -4
  171. package/esm2022/loading/lib/loading.directive.mjs +3 -3
  172. package/esm2022/loading/lib/loading.module.mjs +4 -4
  173. package/esm2022/loading/lib/loading.service.mjs +3 -3
  174. package/esm2022/loading-dialog/lib/loading-dialog.component.mjs +42 -5
  175. package/esm2022/loading-dialog/lib/loading-dialog.module.mjs +4 -4
  176. package/esm2022/loading-dialog/lib/loading-dialog.service.mjs +3 -3
  177. package/esm2022/menu/lib/menu-item/menu-item.component.mjs +50 -4
  178. package/esm2022/menu/lib/menu.component.mjs +10 -4
  179. package/esm2022/menu/lib/menu.module.mjs +4 -4
  180. package/esm2022/menu/lib/menu.service.mjs +3 -3
  181. package/esm2022/nav/lib/nav-item/nav-item.component.mjs +26 -4
  182. package/esm2022/nav/lib/nav.component.mjs +8 -4
  183. package/esm2022/nav/lib/nav.module.mjs +4 -4
  184. package/esm2022/navbar/lib/navbar.component.mjs +9 -4
  185. package/esm2022/navbar/lib/navbar.module.mjs +4 -4
  186. package/esm2022/notification/lib/notification.component.mjs +13 -4
  187. package/esm2022/notification/lib/notification.module.mjs +4 -4
  188. package/esm2022/notification/lib/notification.service.mjs +3 -3
  189. package/esm2022/number-box/lib/number-box.component.mjs +77 -8
  190. package/esm2022/number-box/lib/number-box.module.mjs +4 -4
  191. package/esm2022/otp/lib/otp.component.mjs +38 -4
  192. package/esm2022/otp/lib/otp.module.mjs +4 -4
  193. package/esm2022/page/lib/base-page.class.mjs +3 -3
  194. package/esm2022/page/lib/page.component.mjs +18 -4
  195. package/esm2022/page/lib/page.module.mjs +4 -4
  196. package/esm2022/paint/acorex-components-paint.mjs +5 -0
  197. package/esm2022/paint/index.mjs +8 -0
  198. package/esm2022/paint/lib/paint/paint-container/paint-container.component.mjs +38 -0
  199. package/esm2022/paint/lib/paint/paint-toolbar/paint-toolbar.component.mjs +15 -0
  200. package/esm2022/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.mjs +46 -0
  201. package/esm2022/paint/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.mjs +37 -0
  202. package/esm2022/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.mjs +55 -0
  203. package/esm2022/paint/lib/paint/paint-view/paint-view.component.mjs +104 -0
  204. package/esm2022/paint/lib/paint/paint.service.mjs +17 -0
  205. package/esm2022/paint/lib/paint.module.mjs +50 -0
  206. package/esm2022/password-box/lib/password-box.component.mjs +13 -4
  207. package/esm2022/password-box/lib/password-box.module.mjs +4 -4
  208. package/esm2022/phone-box/lib/phone-box.component.mjs +38 -4
  209. package/esm2022/phone-box/lib/phone-box.module.mjs +4 -4
  210. package/esm2022/picker/lib/picker-column.directive.mjs +3 -3
  211. package/esm2022/picker/lib/picker.component.mjs +29 -4
  212. package/esm2022/picker/lib/picker.module.mjs +4 -4
  213. package/esm2022/popover/lib/popover.component.mjs +118 -4
  214. package/esm2022/popover/lib/popover.module.mjs +4 -4
  215. package/esm2022/popup/lib/popup.component.mjs +34 -9
  216. package/esm2022/popup/lib/popup.module.mjs +4 -4
  217. package/esm2022/popup/lib/popup.service.mjs +3 -3
  218. package/esm2022/progress-bar/lib/progress-bar.component.mjs +33 -4
  219. package/esm2022/progress-bar/lib/progress-bar.module.mjs +4 -4
  220. package/esm2022/radio/lib/radio.component.mjs +8 -5
  221. package/esm2022/radio/lib/radio.module.mjs +4 -4
  222. package/esm2022/range-slider/lib/range-slider.component.mjs +8 -4
  223. package/esm2022/range-slider/lib/range-slider.module.mjs +4 -4
  224. package/esm2022/result/lib/result.component.mjs +18 -4
  225. package/esm2022/result/lib/result.module.mjs +4 -4
  226. package/esm2022/routing-progress/lib/routing-progress.component.mjs +19 -4
  227. package/esm2022/routing-progress/lib/routing-progress.module.mjs +4 -4
  228. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +3 -3
  229. package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +3 -3
  230. package/esm2022/scheduler/lib/scheduler.component.mjs +6 -4
  231. package/esm2022/scheduler/lib/scheduler.module.mjs +4 -4
  232. package/esm2022/scss/lib/scss.module.mjs +4 -4
  233. package/esm2022/search-box/lib/search-box.component.mjs +3 -3
  234. package/esm2022/search-box/lib/search-box.module.mjs +4 -4
  235. package/esm2022/select-box/lib/select-box.component.mjs +5 -5
  236. package/esm2022/select-box/lib/select-box.module.mjs +4 -4
  237. package/esm2022/selection-list/lib/selection-list.component.mjs +3 -3
  238. package/esm2022/selection-list/lib/selection-list.module.mjs +4 -4
  239. package/esm2022/side-menu/lib/side-menu-item/side-menu-item.compoent.mjs +3 -3
  240. package/esm2022/side-menu/lib/side-menu.component.mjs +3 -3
  241. package/esm2022/side-menu/lib/side-menu.module.mjs +4 -4
  242. package/esm2022/skeleton/lib/skeleton.component.mjs +3 -3
  243. package/esm2022/skeleton/lib/skeleton.module.mjs +4 -4
  244. package/esm2022/slider/lib/slider.component.mjs +3 -3
  245. package/esm2022/slider/lib/slider.module.mjs +4 -4
  246. package/esm2022/step-wizard/lib/step-wizard-item/step-wizard-item.component.mjs +3 -3
  247. package/esm2022/step-wizard/lib/step-wizard.component.mjs +17 -4
  248. package/esm2022/step-wizard/lib/step-wizard.directive.mjs +3 -3
  249. package/esm2022/step-wizard/lib/step-wizard.module.mjs +4 -4
  250. package/esm2022/switch/lib/switch-content.component.mjs +3 -3
  251. package/esm2022/switch/lib/switch.component.mjs +3 -3
  252. package/esm2022/switch/lib/switch.module.mjs +4 -4
  253. package/esm2022/tabs/lib/tab-content.directive.mjs +3 -3
  254. package/esm2022/tabs/lib/tab-item.component.mjs +3 -3
  255. package/esm2022/tabs/lib/tabs.component.mjs +3 -3
  256. package/esm2022/tabs/lib/tabs.module.mjs +4 -4
  257. package/esm2022/tag/lib/tag.component.mjs +8 -4
  258. package/esm2022/tag/lib/tag.module.mjs +4 -4
  259. package/esm2022/text-area/lib/text-area.component.mjs +8 -4
  260. package/esm2022/text-area/lib/text-area.module.mjs +4 -4
  261. package/esm2022/text-box/lib/mask-options.directive.mjs +3 -3
  262. package/esm2022/text-box/lib/text-box.component.mjs +3 -3
  263. package/esm2022/text-box/lib/text-box.module.mjs +4 -4
  264. package/esm2022/toast/lib/toast.component.mjs +3 -3
  265. package/esm2022/toast/lib/toast.module.mjs +4 -4
  266. package/esm2022/toast/lib/toast.service.mjs +3 -3
  267. package/esm2022/tooltip/lib/tooltip.component.mjs +3 -3
  268. package/esm2022/tooltip/lib/tooltip.directive.mjs +3 -3
  269. package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
  270. package/esm2022/uploader/index.mjs +5 -5
  271. package/esm2022/uploader/lib/uploader-browse-handle.directive.mjs +3 -3
  272. package/esm2022/uploader/lib/{uploader-dialog-container.component.mjs → uploader-dialog-container/uploader-dialog-container.component.mjs} +5 -5
  273. package/esm2022/uploader/lib/uploader-drop-zone/uploader-drop-zone.component.mjs +27 -0
  274. package/esm2022/uploader/lib/uploader-list/uploader-list.component.mjs +24 -0
  275. package/esm2022/uploader/lib/uploader-zone.directive.mjs +26 -19
  276. package/esm2022/uploader/lib/uploader.models.mjs +26 -11
  277. package/esm2022/uploader/lib/uploader.module.mjs +22 -17
  278. package/esm2022/uploader/lib/uploader.service.mjs +54 -25
  279. package/esm2022/wysiwyg/index.mjs +7 -1
  280. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +56 -24
  281. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +7 -267
  282. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.mjs +59 -0
  283. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.mjs +53 -0
  284. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.mjs +156 -0
  285. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.mjs +36 -0
  286. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.mjs +49 -0
  287. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.mjs +67 -0
  288. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +9 -8
  289. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +4 -5
  290. package/esm2022/wysiwyg/lib/wysiwyg.module.mjs +38 -6
  291. package/fesm2022/acorex-components-action-sheet.mjs +10 -10
  292. package/fesm2022/acorex-components-alert.mjs +7 -7
  293. package/fesm2022/acorex-components-audio-wave.mjs +12 -7
  294. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  295. package/fesm2022/acorex-components-avatar.mjs +10 -10
  296. package/fesm2022/acorex-components-badge.mjs +7 -7
  297. package/fesm2022/acorex-components-bottom-navigation.mjs +10 -10
  298. package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
  299. package/fesm2022/acorex-components-button-group.mjs +12 -9
  300. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  301. package/fesm2022/acorex-components-button.mjs +13 -13
  302. package/fesm2022/acorex-components-calendar.mjs +13 -13
  303. package/fesm2022/acorex-components-check-box.mjs +7 -7
  304. package/fesm2022/acorex-components-chips.mjs +7 -7
  305. package/fesm2022/acorex-components-circular-progress.mjs +49 -118
  306. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  307. package/fesm2022/acorex-components-collapse.mjs +10 -10
  308. package/fesm2022/acorex-components-color-box.mjs +7 -7
  309. package/fesm2022/acorex-components-color-palette.mjs +26 -26
  310. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  311. package/fesm2022/acorex-components-comment.mjs +25 -25
  312. package/fesm2022/acorex-components-common.mjs +70 -70
  313. package/fesm2022/acorex-components-conversation.mjs +49 -49
  314. package/fesm2022/acorex-components-data-pager.mjs +178 -31
  315. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  316. package/fesm2022/acorex-components-data-table.mjs +545 -35
  317. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  318. package/fesm2022/acorex-components-datetime-box.mjs +57 -8
  319. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  320. package/fesm2022/acorex-components-datetime-input.mjs +128 -7
  321. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  322. package/fesm2022/acorex-components-datetime-picker.mjs +96 -7
  323. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  324. package/fesm2022/acorex-components-decorators.mjs +79 -16
  325. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  326. package/fesm2022/acorex-components-dialog.mjs +28 -11
  327. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  328. package/fesm2022/acorex-components-drawer.mjs +118 -10
  329. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  330. package/fesm2022/acorex-components-dropdown-button.mjs +42 -7
  331. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  332. package/fesm2022/acorex-components-dropdown.mjs +146 -13
  333. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  334. package/fesm2022/acorex-components-form.mjs +153 -16
  335. package/fesm2022/acorex-components-form.mjs.map +1 -1
  336. package/fesm2022/acorex-components-image.mjs +53 -7
  337. package/fesm2022/acorex-components-image.mjs.map +1 -1
  338. package/fesm2022/acorex-components-label.mjs +38 -7
  339. package/fesm2022/acorex-components-label.mjs.map +1 -1
  340. package/fesm2022/acorex-components-list.mjs +90 -7
  341. package/fesm2022/acorex-components-list.mjs.map +1 -1
  342. package/fesm2022/acorex-components-loading-dialog.mjs +48 -11
  343. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  344. package/fesm2022/acorex-components-loading.mjs +58 -16
  345. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  346. package/fesm2022/acorex-components-menu.mjs +65 -13
  347. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  348. package/fesm2022/acorex-components-nav.mjs +36 -10
  349. package/fesm2022/acorex-components-nav.mjs.map +1 -1
  350. package/fesm2022/acorex-components-navbar.mjs +12 -7
  351. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  352. package/fesm2022/acorex-components-notification.mjs +19 -10
  353. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  354. package/fesm2022/acorex-components-number-box.mjs +80 -11
  355. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  356. package/fesm2022/acorex-components-otp.mjs +41 -7
  357. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  358. package/fesm2022/acorex-components-page.mjs +24 -10
  359. package/fesm2022/acorex-components-page.mjs.map +1 -1
  360. package/fesm2022/acorex-components-paint.mjs +336 -0
  361. package/fesm2022/acorex-components-paint.mjs.map +1 -0
  362. package/fesm2022/acorex-components-password-box.mjs +16 -7
  363. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  364. package/fesm2022/acorex-components-phone-box.mjs +41 -7
  365. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  366. package/fesm2022/acorex-components-picker.mjs +35 -10
  367. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  368. package/fesm2022/acorex-components-popover.mjs +121 -7
  369. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  370. package/fesm2022/acorex-components-popup.mjs +40 -15
  371. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  372. package/fesm2022/acorex-components-progress-bar.mjs +36 -7
  373. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  374. package/fesm2022/acorex-components-radio.mjs +11 -8
  375. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  376. package/fesm2022/acorex-components-range-slider.mjs +11 -7
  377. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  378. package/fesm2022/acorex-components-result.mjs +21 -7
  379. package/fesm2022/acorex-components-result.mjs.map +1 -1
  380. package/fesm2022/acorex-components-routing-progress.mjs +22 -7
  381. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  382. package/fesm2022/acorex-components-scheduler.mjs +15 -13
  383. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  384. package/fesm2022/acorex-components-scss.mjs +4 -4
  385. package/fesm2022/acorex-components-search-box.mjs +7 -7
  386. package/fesm2022/acorex-components-select-box.mjs +8 -8
  387. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  388. package/fesm2022/acorex-components-selection-list.mjs +7 -7
  389. package/fesm2022/acorex-components-side-menu.mjs +10 -10
  390. package/fesm2022/acorex-components-skeleton.mjs +7 -7
  391. package/fesm2022/acorex-components-slider.mjs +7 -7
  392. package/fesm2022/acorex-components-step-wizard.mjs +26 -13
  393. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  394. package/fesm2022/acorex-components-switch.mjs +10 -10
  395. package/fesm2022/acorex-components-tabs.mjs +13 -13
  396. package/fesm2022/acorex-components-tag.mjs +11 -7
  397. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  398. package/fesm2022/acorex-components-text-area.mjs +11 -7
  399. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  400. package/fesm2022/acorex-components-text-box.mjs +10 -10
  401. package/fesm2022/acorex-components-toast.mjs +10 -10
  402. package/fesm2022/acorex-components-tooltip.mjs +10 -10
  403. package/fesm2022/acorex-components-uploader.mjs +141 -82
  404. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  405. package/fesm2022/acorex-components-wysiwyg.mjs +365 -178
  406. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  407. package/form/lib/form-field.component.d.ts +45 -0
  408. package/form/lib/form.component.d.ts +58 -0
  409. package/form/lib/validation-summary.component.d.ts +49 -0
  410. package/image/lib/image.component.d.ts +61 -0
  411. package/label/lib/label.component.d.ts +34 -0
  412. package/list/lib/list.component.d.ts +98 -0
  413. package/loading/lib/loading-spinner.component.d.ts +20 -0
  414. package/loading/lib/loading.component.d.ts +35 -0
  415. package/loading-dialog/lib/loading-dialog.component.d.ts +39 -1
  416. package/menu/lib/menu-item/menu-item.component.d.ts +52 -0
  417. package/menu/lib/menu.component.d.ts +7 -0
  418. package/nav/lib/nav-item/nav-item.component.d.ts +22 -0
  419. package/nav/lib/nav.component.d.ts +4 -0
  420. package/navbar/lib/navbar.component.d.ts +5 -0
  421. package/notification/lib/notification.component.d.ts +11 -0
  422. package/number-box/lib/number-box.component.d.ts +74 -1
  423. package/otp/lib/otp.component.d.ts +35 -1
  424. package/package.json +74 -68
  425. package/page/lib/page.component.d.ts +15 -0
  426. package/paint/README.md +3 -0
  427. package/paint/index.d.ts +7 -0
  428. package/paint/lib/paint/paint-container/paint-container.component.d.ts +16 -0
  429. package/paint/lib/paint/paint-toolbar/paint-toolbar.component.d.ts +9 -0
  430. package/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.d.ts +27 -0
  431. package/paint/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.d.ts +20 -0
  432. package/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.d.ts +33 -0
  433. package/paint/lib/paint/paint-view/paint-view.component.d.ts +42 -0
  434. package/paint/lib/paint/paint.service.d.ts +10 -0
  435. package/paint/lib/paint.module.d.ts +19 -0
  436. package/password-box/lib/password-box.component.d.ts +14 -1
  437. package/phone-box/lib/phone-box.component.d.ts +39 -1
  438. package/picker/lib/picker.component.d.ts +29 -0
  439. package/popover/lib/popover.component.d.ts +129 -0
  440. package/popup/lib/popup.component.d.ts +39 -4
  441. package/progress-bar/lib/progress-bar.component.d.ts +30 -1
  442. package/radio/lib/radio.component.d.ts +7 -1
  443. package/range-slider/lib/range-slider.component.d.ts +4 -0
  444. package/result/lib/result.component.d.ts +14 -0
  445. package/routing-progress/lib/routing-progress.component.d.ts +16 -0
  446. package/scheduler/lib/scheduler.component.d.ts +2 -0
  447. package/search-box/lib/search-box.component.d.ts +1 -1
  448. package/select-box/lib/select-box.component.d.ts +1 -1
  449. package/slider/lib/slider.component.d.ts +1 -1
  450. package/step-wizard/lib/step-wizard.component.d.ts +13 -0
  451. package/switch/lib/switch.component.d.ts +1 -1
  452. package/tag/lib/tag.component.d.ts +4 -0
  453. package/text-area/lib/text-area.component.d.ts +6 -1
  454. package/text-box/lib/text-box.component.d.ts +1 -1
  455. package/uploader/index.d.ts +4 -4
  456. package/uploader/lib/{uploader-drop-zone.component.d.ts → uploader-drop-zone/uploader-drop-zone.component.d.ts} +3 -1
  457. package/uploader/lib/{uploader-list.component.d.ts → uploader-list/uploader-list.component.d.ts} +2 -3
  458. package/uploader/lib/uploader-zone.directive.d.ts +1 -0
  459. package/uploader/lib/uploader.models.d.ts +14 -4
  460. package/uploader/lib/uploader.module.d.ts +4 -4
  461. package/uploader/lib/uploader.service.d.ts +6 -1
  462. package/wysiwyg/index.d.ts +6 -0
  463. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +20 -15
  464. package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +1 -100
  465. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.d.ts +31 -0
  466. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.d.ts +35 -0
  467. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.d.ts +37 -0
  468. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.d.ts +21 -0
  469. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.d.ts +35 -0
  470. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.d.ts +23 -0
  471. package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +3 -1
  472. package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +0 -1
  473. package/wysiwyg/lib/wysiwyg.module.d.ts +14 -8
  474. package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +0 -18
  475. package/esm2022/uploader/lib/uploader-list.component.mjs +0 -26
  476. /package/uploader/lib/{uploader-dialog-container.component.d.ts → uploader-dialog-container/uploader-dialog-container.component.d.ts} +0 -0
@@ -0,0 +1,336 @@
1
+ import * as i0 from '@angular/core';
2
+ import { forwardRef, Component, ViewEncapsulation, signal, Injectable, inject, HostBinding, input, viewChild, afterNextRender, effect, NgModule } from '@angular/core';
3
+ import * as i2 from '@acorex/components/button';
4
+ import { AXButtonModule } from '@acorex/components/button';
5
+ import * as i3 from '@acorex/components/color-palette';
6
+ import { AXColorPaletteModule } from '@acorex/components/color-palette';
7
+ import * as i5 from '@acorex/components/decorators';
8
+ import { AXDecoratorModule } from '@acorex/components/decorators';
9
+ import * as i4 from '@acorex/components/popover';
10
+ import { AXPopoverModule } from '@acorex/components/popover';
11
+ import * as i2$1 from '@acorex/components/select-box';
12
+ import { AXSelectBoxModule } from '@acorex/components/select-box';
13
+ import * as i2$2 from '@acorex/components/slider';
14
+ import { AXSliderModule } from '@acorex/components/slider';
15
+ import * as i1 from '@angular/forms';
16
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
17
+ import { MXInputBaseValueComponent, MXLookComponent, AXComponent, AXFocusableComponent, AXClearableComponent, AXValuableComponent } from '@acorex/components/common';
18
+ import { classes } from 'polytype';
19
+
20
+ /**
21
+ * paint container.
22
+ * @category Components
23
+ */
24
+ class AXPaintContainerComponent extends classes((MXInputBaseValueComponent), MXLookComponent) {
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPaintContainerComponent, selector: "ax-paint-container", inputs: { look: "look" }, providers: [
27
+ { provide: AXComponent, useExisting: AXPaintContainerComponent },
28
+ { provide: AXFocusableComponent, useExisting: AXPaintContainerComponent },
29
+ { provide: AXClearableComponent, useExisting: AXPaintContainerComponent },
30
+ { provide: AXValuableComponent, useExisting: AXPaintContainerComponent },
31
+ {
32
+ provide: NG_VALUE_ACCESSOR,
33
+ useExisting: forwardRef(() => AXPaintContainerComponent),
34
+ multi: true,
35
+ },
36
+ ], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-editor-container ax-look-{{ look }}\">\n <ng-content></ng-content>\n <ng-content select=\"ax-validation-rule\"> </ng-content>\n</div>\n<div class=\"ax-error-container\"></div>\n", styles: ["ax-paint-container{width:100%}ax-paint-container>.ax-editor-container{display:block;height:auto!important}\n"], encapsulation: i0.ViewEncapsulation.None }); }
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintContainerComponent, decorators: [{
39
+ type: Component,
40
+ args: [{ selector: 'ax-paint-container', encapsulation: ViewEncapsulation.None, inputs: ['look'], providers: [
41
+ { provide: AXComponent, useExisting: AXPaintContainerComponent },
42
+ { provide: AXFocusableComponent, useExisting: AXPaintContainerComponent },
43
+ { provide: AXClearableComponent, useExisting: AXPaintContainerComponent },
44
+ { provide: AXValuableComponent, useExisting: AXPaintContainerComponent },
45
+ {
46
+ provide: NG_VALUE_ACCESSOR,
47
+ useExisting: forwardRef(() => AXPaintContainerComponent),
48
+ multi: true,
49
+ },
50
+ ], template: "<div class=\"ax-editor-container ax-look-{{ look }}\">\n <ng-content></ng-content>\n <ng-content select=\"ax-validation-rule\"> </ng-content>\n</div>\n<div class=\"ax-error-container\"></div>\n", styles: ["ax-paint-container{width:100%}ax-paint-container>.ax-editor-container{display:block;height:auto!important}\n"] }]
51
+ }] });
52
+
53
+ /**
54
+ *paint toolbar
55
+ * @category Components
56
+ */
57
+ class AXPaintToolbarComponent {
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPaintToolbarComponent, selector: "ax-paint-toolbar", ngImport: i0, template: "<div class=\"ax-paint-toolbar-container\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: [".ax-paint-toolbar-container{padding:.3rem;width:100%;display:flex;align-items:center;flex-wrap:wrap}\n"], encapsulation: i0.ViewEncapsulation.None }); }
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintToolbarComponent, decorators: [{
62
+ type: Component,
63
+ args: [{ selector: 'ax-paint-toolbar', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-paint-toolbar-container\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: [".ax-paint-toolbar-container{padding:.3rem;width:100%;display:flex;align-items:center;flex-wrap:wrap}\n"] }]
64
+ }] });
65
+
66
+ class AXPaintService {
67
+ constructor() {
68
+ this.penColor = signal('');
69
+ this.lineCap = signal('round');
70
+ this.lineWidth = signal(10);
71
+ this.penType = signal('pen');
72
+ this.toggleClear = signal(false);
73
+ }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
75
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintService }); }
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintService, decorators: [{
78
+ type: Injectable
79
+ }] });
80
+
81
+ /**
82
+ * paint color picker.
83
+ * @category Components
84
+ */
85
+ class AXPaintColorPickerComponent {
86
+ constructor() {
87
+ /** @ignore */
88
+ this.service = inject(AXPaintService);
89
+ /** @ignore */
90
+ this.selectedColor = signal('rgb(12, 12, 12)');
91
+ /** @ignore */
92
+ this.popoverOption = {
93
+ openOn: 'click',
94
+ closeOn: 'clickOut',
95
+ placement: 'top',
96
+ offsetX: 0,
97
+ offsetY: 0,
98
+ };
99
+ }
100
+ /** @ignore */
101
+ changeColorHandler(e) {
102
+ this.service.penColor.set(e);
103
+ this.selectedColor.set(e);
104
+ }
105
+ get __hostClass() {
106
+ return `.5rem`;
107
+ }
108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
109
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPaintColorPickerComponent, selector: "ax-paint-color-picker", host: { properties: { "style.marginInline": "this.__hostClass" } }, ngImport: i0, template: "<ax-button #colorBtn look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-color-palette\"></ax-icon>\n</ax-button>\n<ax-popover [openOn]=\"popoverOption.openOn\" [closeOn]=\"popoverOption.closeOn\" [target]=\"colorBtn\" [placement]=\"popoverOption.placement\">\n <div class=\"ax-overlay-pane\">\n <ax-color-palette (ngModelChange)=\"changeColorHandler($event)\" [ngModel]=\"selectedColor()\">\n <ax-color-palette-preview></ax-color-palette-preview>\n <ax-color-palette-picker></ax-color-palette-picker>\n <ax-color-palette-input></ax-color-palette-input>\n </ax-color-palette>\n </div>\n</ax-popover>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i3.AXColorPalleteComponent, selector: "ax-color-palette", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "checked"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange"] }, { kind: "component", type: i3.AXColorPalettePreviewComponent, selector: "ax-color-palette-preview" }, { kind: "component", type: i3.AXColorPaletteInputComponent, selector: "ax-color-palette-input" }, { kind: "component", type: i3.AXColorPalettePickerComponent, selector: "ax-color-palette-picker" }, { kind: "component", type: i4.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], encapsulation: i0.ViewEncapsulation.None }); }
110
+ }
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintColorPickerComponent, decorators: [{
112
+ type: Component,
113
+ args: [{ selector: 'ax-paint-color-picker', encapsulation: ViewEncapsulation.None, template: "<ax-button #colorBtn look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-color-palette\"></ax-icon>\n</ax-button>\n<ax-popover [openOn]=\"popoverOption.openOn\" [closeOn]=\"popoverOption.closeOn\" [target]=\"colorBtn\" [placement]=\"popoverOption.placement\">\n <div class=\"ax-overlay-pane\">\n <ax-color-palette (ngModelChange)=\"changeColorHandler($event)\" [ngModel]=\"selectedColor()\">\n <ax-color-palette-preview></ax-color-palette-preview>\n <ax-color-palette-picker></ax-color-palette-picker>\n <ax-color-palette-input></ax-color-palette-input>\n </ax-color-palette>\n </div>\n</ax-popover>\n" }]
114
+ }], propDecorators: { __hostClass: [{
115
+ type: HostBinding,
116
+ args: ['style.marginInline']
117
+ }] } });
118
+
119
+ /**
120
+ * paint pen cap.
121
+ * @category Components
122
+ */
123
+ class AXPaintPenCapComponent {
124
+ constructor() {
125
+ /** @ignore */
126
+ this.parent = inject(AXPaintContainerComponent);
127
+ /** @ignore */
128
+ this.service = inject(AXPaintService);
129
+ /** @ignore */
130
+ this.selectedLineCap = signal('round');
131
+ }
132
+ /** @ignore */
133
+ lineCapHandler(e) {
134
+ this.service.lineCap.set(e);
135
+ }
136
+ get __hostClass() {
137
+ return `.5rem`;
138
+ }
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintPenCapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
140
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPaintPenCapComponent, selector: "ax-paint-pen-cap", host: { properties: { "style.marginInline": "this.__hostClass" } }, ngImport: i0, template: "<ax-select-box\n [look]=\"this.parent.look\"\n (ngModelChange)=\"lineCapHandler($event)\"\n [ngModel]=\"selectedLineCap()\"\n [dataSource]=\"['round', 'butt', 'square']\"\n placeholder=\"Choose...\"\n>\n</ax-select-box>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "textTemplate", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }], encapsulation: i0.ViewEncapsulation.None }); }
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintPenCapComponent, decorators: [{
143
+ type: Component,
144
+ args: [{ selector: 'ax-paint-pen-cap', encapsulation: ViewEncapsulation.None, template: "<ax-select-box\n [look]=\"this.parent.look\"\n (ngModelChange)=\"lineCapHandler($event)\"\n [ngModel]=\"selectedLineCap()\"\n [dataSource]=\"['round', 'butt', 'square']\"\n placeholder=\"Choose...\"\n>\n</ax-select-box>\n" }]
145
+ }], propDecorators: { __hostClass: [{
146
+ type: HostBinding,
147
+ args: ['style.marginInline']
148
+ }] } });
149
+
150
+ /**
151
+ * paint mode.
152
+ * @category Components
153
+ */
154
+ class AXPaintPenModeChangerComponent {
155
+ constructor() {
156
+ /** @ignore */
157
+ this.service = inject(AXPaintService);
158
+ /** @ignore */
159
+ this.value = 10;
160
+ /** @ignore */
161
+ this.popoverOption = {
162
+ openOn: 'click',
163
+ closeOn: 'clickOut',
164
+ placement: 'top',
165
+ offsetX: 0,
166
+ offsetY: 0,
167
+ };
168
+ /** @ignore */
169
+ this.selectedPenType = signal('pen');
170
+ }
171
+ /** @ignore */
172
+ penTypeHandler(e) {
173
+ this.service.penType.set(e);
174
+ }
175
+ /** @ignore */
176
+ clear() {
177
+ this.service.toggleClear.update((prev) => !prev);
178
+ }
179
+ get __hostClass() {
180
+ return `.5rem`;
181
+ }
182
+ /** @ignore */
183
+ valueHandler(e) {
184
+ this.service.lineWidth.set(e);
185
+ }
186
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintPenModeChangerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
187
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPaintPenModeChangerComponent, selector: "ax-paint-pen-mode-changer", host: { properties: { "style.marginInline": "this.__hostClass" } }, ngImport: i0, template: "<div class=\"ax-paint-pen-mode-changer-container\">\n <div class=\"ax-pen-type-container\">\n <ax-button look=\"blank\" #alignPop>\n <ax-icon class=\"ax-icon ax-icon-pen-ruler\"></ax-icon>\n </ax-button>\n </div>\n\n <ax-button (click)=\"clear()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-undo\"></ax-icon>\n </ax-button>\n\n <ax-popover [openOn]=\"popoverOption.openOn\" [closeOn]=\"popoverOption.closeOn\" [target]=\"alignPop\" [placement]=\"popoverOption.placement\">\n <div class=\"ax-overlay-pane\">\n <ax-button (click)=\"penTypeHandler('pen')\" look=\"blank\" [selected]=\"this.service.penType() === 'pen' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-pen\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"penTypeHandler('highlight')\" look=\"blank\" [selected]=\"this.service.penType() === 'highlight' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-highlight\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"penTypeHandler('eraser')\" look=\"blank\" [selected]=\"this.service.penType() === 'eraser' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-eraser\"></ax-icon>\n </ax-button>\n\n <div class=\"ax-paint-width-slider\">\n <ax-slider [minValue]=\"2\" [maxValue]=\"20\" [(ngModel)]=\"value\" (ngModelChange)=\"valueHandler($event)\"></ax-slider>\n </div>\n </div>\n </ax-popover>\n</div>\n", styles: [".ax-paint-pen-mode-changer-container{display:flex;align-items:center}.ax-paint-pen-mode-changer-container .ax-pen-type-container{margin-inline-end:.5rem}.ax-overlay-pane{padding:.5rem!important}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$2.AXSliderComponent, selector: "ax-slider", inputs: ["readonly", "disabled", "value", "name", "color", "minValue", "maxValue", "step", "direction"], outputs: ["valueChange", "onValueChanged", "readonlyChange", "disabledChange", "onChange", "onClick"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i4.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }] }); }
188
+ }
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintPenModeChangerComponent, decorators: [{
190
+ type: Component,
191
+ args: [{ selector: 'ax-paint-pen-mode-changer', template: "<div class=\"ax-paint-pen-mode-changer-container\">\n <div class=\"ax-pen-type-container\">\n <ax-button look=\"blank\" #alignPop>\n <ax-icon class=\"ax-icon ax-icon-pen-ruler\"></ax-icon>\n </ax-button>\n </div>\n\n <ax-button (click)=\"clear()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-undo\"></ax-icon>\n </ax-button>\n\n <ax-popover [openOn]=\"popoverOption.openOn\" [closeOn]=\"popoverOption.closeOn\" [target]=\"alignPop\" [placement]=\"popoverOption.placement\">\n <div class=\"ax-overlay-pane\">\n <ax-button (click)=\"penTypeHandler('pen')\" look=\"blank\" [selected]=\"this.service.penType() === 'pen' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-pen\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"penTypeHandler('highlight')\" look=\"blank\" [selected]=\"this.service.penType() === 'highlight' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-highlight\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"penTypeHandler('eraser')\" look=\"blank\" [selected]=\"this.service.penType() === 'eraser' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-eraser\"></ax-icon>\n </ax-button>\n\n <div class=\"ax-paint-width-slider\">\n <ax-slider [minValue]=\"2\" [maxValue]=\"20\" [(ngModel)]=\"value\" (ngModelChange)=\"valueHandler($event)\"></ax-slider>\n </div>\n </div>\n </ax-popover>\n</div>\n", styles: [".ax-paint-pen-mode-changer-container{display:flex;align-items:center}.ax-paint-pen-mode-changer-container .ax-pen-type-container{margin-inline-end:.5rem}.ax-overlay-pane{padding:.5rem!important}\n"] }]
192
+ }], propDecorators: { __hostClass: [{
193
+ type: HostBinding,
194
+ args: ['style.marginInline']
195
+ }] } });
196
+
197
+ /**
198
+ * @category Components
199
+ * paint view
200
+ */
201
+ class AXPaintViewComponent {
202
+ /** @ignore */
203
+ constructor() {
204
+ /** @ignore */
205
+ this.parent = inject(AXPaintContainerComponent);
206
+ /** @ignore */
207
+ this.service = inject(AXPaintService);
208
+ /**
209
+ * Specifies the class that pass to component.
210
+ *
211
+ */
212
+ this.customClass = input('', { alias: 'class' });
213
+ /** @ignore */
214
+ this.canvasElem = viewChild('c');
215
+ /** @ignore */
216
+ this.ctx = signal(null);
217
+ /** @ignore */
218
+ this.isPainting = signal(false);
219
+ /** @ignore */
220
+ this.isUserInteract = signal(false);
221
+ afterNextRender(() => {
222
+ this.ctx.set(this.canvasElem().nativeElement.getContext('2d'));
223
+ this.ctx().canvas.width = this.canvasElem().nativeElement.getBoundingClientRect().width;
224
+ this.ctx().canvas.height = this.canvasElem().nativeElement.getBoundingClientRect().height;
225
+ this.ctx().lineJoin = 'round';
226
+ this.ctx().lineCap = this.service.lineCap();
227
+ this.ctx().strokeStyle = this.service.penColor();
228
+ this.ctx().lineWidth = this.service.lineWidth();
229
+ });
230
+ effect(() => {
231
+ this.service.toggleClear();
232
+ this.ctx()?.clearRect(0, 0, this.canvasElem()?.nativeElement?.getBoundingClientRect().width, this.canvasElem()?.nativeElement?.getBoundingClientRect().height);
233
+ }, { allowSignalWrites: true });
234
+ }
235
+ /** @ignore */
236
+ mouseDownHandler(e) {
237
+ this.isPainting.set(true);
238
+ this.isUserInteract.set(true);
239
+ switch (this.service.penType()) {
240
+ case 'pen':
241
+ this.ctx().globalAlpha = 1;
242
+ this.ctx().globalCompositeOperation = 'source-over';
243
+ break;
244
+ case 'eraser':
245
+ this.ctx().globalAlpha = 1;
246
+ this.ctx().globalCompositeOperation = 'destination-out';
247
+ break;
248
+ case 'highlight':
249
+ this.ctx().globalAlpha = 0.008;
250
+ this.ctx().globalCompositeOperation = 'source-over';
251
+ break;
252
+ }
253
+ this.ctx().strokeStyle = this.service.penColor();
254
+ this.ctx().lineCap = this.service.lineCap();
255
+ this.ctx().lineWidth = this.service.lineWidth();
256
+ this.ctx().beginPath();
257
+ this.ctx().moveTo(e.offsetX, e.offsetY);
258
+ }
259
+ /** @ignore */
260
+ mouseMoveHandler(e) {
261
+ if (this.isPainting()) {
262
+ this.ctx().lineTo(e.offsetX, e.offsetY);
263
+ this.ctx().stroke();
264
+ }
265
+ }
266
+ /** @ignore */
267
+ mouseUpHandler() {
268
+ this.ctx().closePath();
269
+ this.isPainting.set(false);
270
+ }
271
+ /**
272
+ * @param e - output file type
273
+ */
274
+ getOutPut(e) {
275
+ const base64 = this.canvasElem().nativeElement.toDataURL(e, 0.1);
276
+ if (this.isUserInteract()) {
277
+ this.parent.commitValue(base64);
278
+ }
279
+ else {
280
+ this.parent.commitValue(null);
281
+ }
282
+ }
283
+ get __hostClass() {
284
+ return `${this.customClass()}`;
285
+ }
286
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
287
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.2.0", type: AXPaintViewComponent, selector: "ax-paint-view", inputs: { customClass: { classPropertyName: "customClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "this.__hostClass" } }, viewQueries: [{ propertyName: "canvasElem", first: true, predicate: ["c"], descendants: true, isSignal: true }], ngImport: i0, template: "<canvas\n #c\n (mousedown)=\"mouseDownHandler($event)\"\n (mouseup)=\"mouseUpHandler()\"\n (mousemove)=\"mouseMoveHandler($event)\"\n class=\"ax-canvas-element\"\n>\n</canvas>\n", styles: ["ax-paint-view{display:block}ax-paint-view .ax-canvas-element{height:100%;border-bottom:1px solid rgb(var(--ax-color-border-default));width:100%;cursor:crosshair}\n"], encapsulation: i0.ViewEncapsulation.None }); }
288
+ }
289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintViewComponent, decorators: [{
290
+ type: Component,
291
+ args: [{ selector: 'ax-paint-view', encapsulation: ViewEncapsulation.None, template: "<canvas\n #c\n (mousedown)=\"mouseDownHandler($event)\"\n (mouseup)=\"mouseUpHandler()\"\n (mousemove)=\"mouseMoveHandler($event)\"\n class=\"ax-canvas-element\"\n>\n</canvas>\n", styles: ["ax-paint-view{display:block}ax-paint-view .ax-canvas-element{height:100%;border-bottom:1px solid rgb(var(--ax-color-border-default));width:100%;cursor:crosshair}\n"] }]
292
+ }], ctorParameters: () => [], propDecorators: { __hostClass: [{
293
+ type: HostBinding,
294
+ args: ['class']
295
+ }] } });
296
+
297
+ const COMPONENT = [
298
+ AXPaintContainerComponent,
299
+ AXPaintToolbarComponent,
300
+ AXPaintViewComponent,
301
+ AXPaintColorPickerComponent,
302
+ AXPaintPenCapComponent,
303
+ AXPaintPenModeChangerComponent,
304
+ ];
305
+ const MODULES = [FormsModule, AXSliderModule, AXSelectBoxModule, AXButtonModule, AXColorPaletteModule, AXPopoverModule, AXDecoratorModule];
306
+ class AXPaintModule {
307
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
308
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPaintModule, declarations: [AXPaintContainerComponent,
309
+ AXPaintToolbarComponent,
310
+ AXPaintViewComponent,
311
+ AXPaintColorPickerComponent,
312
+ AXPaintPenCapComponent,
313
+ AXPaintPenModeChangerComponent], imports: [FormsModule, AXSliderModule, AXSelectBoxModule, AXButtonModule, AXColorPaletteModule, AXPopoverModule, AXDecoratorModule], exports: [AXPaintContainerComponent,
314
+ AXPaintToolbarComponent,
315
+ AXPaintViewComponent,
316
+ AXPaintColorPickerComponent,
317
+ AXPaintPenCapComponent,
318
+ AXPaintPenModeChangerComponent] }); }
319
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintModule, providers: [AXPaintService], imports: [MODULES] }); }
320
+ }
321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPaintModule, decorators: [{
322
+ type: NgModule,
323
+ args: [{
324
+ declarations: [...COMPONENT],
325
+ imports: [...MODULES],
326
+ exports: [...COMPONENT],
327
+ providers: [AXPaintService],
328
+ }]
329
+ }] });
330
+
331
+ /**
332
+ * Generated bundle index. Do not edit.
333
+ */
334
+
335
+ export { AXPaintColorPickerComponent, AXPaintContainerComponent, AXPaintModule, AXPaintPenCapComponent, AXPaintPenModeChangerComponent, AXPaintToolbarComponent, AXPaintViewComponent };
336
+ //# sourceMappingURL=acorex-components-paint.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-components-paint.mjs","sources":["../../../../libs/components/paint/src/lib/paint/paint-container/paint-container.component.ts","../../../../libs/components/paint/src/lib/paint/paint-container/paint-container.component.html","../../../../libs/components/paint/src/lib/paint/paint-toolbar/paint-toolbar.component.ts","../../../../libs/components/paint/src/lib/paint/paint-toolbar/paint-toolbar.component.html","../../../../libs/components/paint/src/lib/paint/paint.service.ts","../../../../libs/components/paint/src/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.ts","../../../../libs/components/paint/src/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.html","../../../../libs/components/paint/src/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.ts","../../../../libs/components/paint/src/lib/paint/paint-tools/paint-pen-cap/paint-pen-cap.component.html","../../../../libs/components/paint/src/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.ts","../../../../libs/components/paint/src/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.html","../../../../libs/components/paint/src/lib/paint/paint-view/paint-view.component.ts","../../../../libs/components/paint/src/lib/paint/paint-view/paint-view.component.html","../../../../libs/components/paint/src/lib/paint.module.ts","../../../../libs/components/paint/src/acorex-components-paint.ts"],"sourcesContent":["import {\n AXClearableComponent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport { Component, ViewEncapsulation, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\n/**\n * paint container.\n * @category Components\n */\n@Component({\n selector: 'ax-paint-container',\n templateUrl: './paint-container.component.html',\n styleUrl: './paint-container.component.scss',\n encapsulation: ViewEncapsulation.None,\n inputs: ['look'],\n providers: [\n { provide: AXComponent, useExisting: AXPaintContainerComponent },\n { provide: AXFocusableComponent, useExisting: AXPaintContainerComponent },\n { provide: AXClearableComponent, useExisting: AXPaintContainerComponent },\n { provide: AXValuableComponent, useExisting: AXPaintContainerComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXPaintContainerComponent),\n multi: true,\n },\n ],\n})\nexport class AXPaintContainerComponent extends classes(MXInputBaseValueComponent<string>, MXLookComponent) {}\n","<div class=\"ax-editor-container ax-look-{{ look }}\">\n <ng-content></ng-content>\n <ng-content select=\"ax-validation-rule\"> </ng-content>\n</div>\n<div class=\"ax-error-container\"></div>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n/**\n *paint toolbar\n * @category Components\n */\n@Component({\n selector: 'ax-paint-toolbar',\n templateUrl: './paint-toolbar.component.html',\n styleUrl: './paint-toolbar.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPaintToolbarComponent {}\n","<div class=\"ax-paint-toolbar-container\">\n <ng-content select=\"ax-prefix\"></ng-content>\n <ng-content></ng-content>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n","import { Injectable, signal } from '@angular/core';\n\n@Injectable()\nexport class AXPaintService {\n penColor = signal<string | CanvasGradient | CanvasPattern>('');\n lineCap = signal<CanvasLineCap>('round');\n lineWidth = signal<number>(10);\n penType = signal<'pen' | 'highlight' | 'eraser'>('pen');\n toggleClear = signal(false);\n}\n","import { AXPlacement } from '@acorex/components/common';\nimport { AXPopoverCloseTrigger, AXPopoverOpenTrigger } from '@acorex/components/popover';\nimport { Component, HostBinding, ViewEncapsulation, inject, signal } from '@angular/core';\nimport { AXPaintService } from '../../paint.service';\n\n/**\n * paint color picker.\n * @category Components\n */\n@Component({\n selector: 'ax-paint-color-picker',\n templateUrl: './paint-color-picker.component.html',\n styleUrl: './paint-color-picker.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPaintColorPickerComponent {\n /** @ignore */\n protected service = inject(AXPaintService);\n\n /** @ignore */\n protected selectedColor = signal('rgb(12, 12, 12)');\n\n /** @ignore */\n protected popoverOption: {\n openOn: AXPopoverOpenTrigger;\n closeOn: AXPopoverCloseTrigger;\n placement: AXPlacement;\n offsetX: number;\n offsetY: number;\n } = {\n openOn: 'click',\n closeOn: 'clickOut',\n placement: 'top',\n offsetX: 0,\n offsetY: 0,\n };\n\n /** @ignore */\n protected changeColorHandler(e: string) {\n this.service.penColor.set(e);\n this.selectedColor.set(e);\n }\n\n @HostBinding('style.marginInline')\n get __hostClass(): string {\n return `.5rem`;\n }\n}\n","<ax-button #colorBtn look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-color-palette\"></ax-icon>\n</ax-button>\n<ax-popover [openOn]=\"popoverOption.openOn\" [closeOn]=\"popoverOption.closeOn\" [target]=\"colorBtn\" [placement]=\"popoverOption.placement\">\n <div class=\"ax-overlay-pane\">\n <ax-color-palette (ngModelChange)=\"changeColorHandler($event)\" [ngModel]=\"selectedColor()\">\n <ax-color-palette-preview></ax-color-palette-preview>\n <ax-color-palette-picker></ax-color-palette-picker>\n <ax-color-palette-input></ax-color-palette-input>\n </ax-color-palette>\n </div>\n</ax-popover>\n","import { Component, HostBinding, inject, signal, ViewEncapsulation } from '@angular/core';\nimport { AXPaintContainerComponent } from '../../paint-container/paint-container.component';\nimport { AXPaintService } from '../../paint.service';\n\n/**\n * paint pen cap.\n * @category Components\n */\n@Component({\n selector: 'ax-paint-pen-cap',\n templateUrl: './paint-pen-cap.component.html',\n styleUrl: './paint-pen-cap.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPaintPenCapComponent {\n /** @ignore */\n protected parent = inject(AXPaintContainerComponent);\n\n /** @ignore */\n protected service = inject(AXPaintService);\n\n /** @ignore */\n protected selectedLineCap = signal<CanvasLineCap>('round');\n\n /** @ignore */\n protected lineCapHandler(e: CanvasLineCap) {\n this.service.lineCap.set(e);\n }\n\n @HostBinding('style.marginInline')\n get __hostClass(): string {\n return `.5rem`;\n }\n}\n","<ax-select-box\n [look]=\"this.parent.look\"\n (ngModelChange)=\"lineCapHandler($event)\"\n [ngModel]=\"selectedLineCap()\"\n [dataSource]=\"['round', 'butt', 'square']\"\n placeholder=\"Choose...\"\n>\n</ax-select-box>\n","import { AXPlacement } from '@acorex/components/common';\nimport { AXPopoverCloseTrigger, AXPopoverOpenTrigger } from '@acorex/components/popover';\nimport { Component, HostBinding, inject, signal } from '@angular/core';\nimport { AXPaintService } from '../../paint.service';\n\n/**\n * paint mode.\n * @category Components\n */\n@Component({\n selector: 'ax-paint-pen-mode-changer',\n templateUrl: './paint-pen-mode-changer.component.html',\n styleUrl: './paint-pen-mode-changer.component.scss',\n})\nexport class AXPaintPenModeChangerComponent {\n /** @ignore */\n protected service = inject(AXPaintService);\n\n /** @ignore */\n protected value = 10;\n\n /** @ignore */\n protected popoverOption: {\n openOn: AXPopoverOpenTrigger;\n closeOn: AXPopoverCloseTrigger;\n placement: AXPlacement;\n offsetX: number;\n offsetY: number;\n } = {\n openOn: 'click',\n closeOn: 'clickOut',\n placement: 'top',\n offsetX: 0,\n offsetY: 0,\n };\n\n /** @ignore */\n protected selectedPenType = signal<'pen' | 'highlight' | 'eraser'>('pen');\n\n /** @ignore */\n protected penTypeHandler(e: 'pen' | 'highlight' | 'eraser') {\n this.service.penType.set(e);\n }\n\n /** @ignore */\n protected clear() {\n this.service.toggleClear.update((prev) => !prev);\n }\n\n @HostBinding('style.marginInline')\n get __hostClass(): string {\n return `.5rem`;\n }\n\n /** @ignore */\n protected valueHandler(e: number) {\n this.service.lineWidth.set(e);\n }\n}\n","<div class=\"ax-paint-pen-mode-changer-container\">\n <div class=\"ax-pen-type-container\">\n <ax-button look=\"blank\" #alignPop>\n <ax-icon class=\"ax-icon ax-icon-pen-ruler\"></ax-icon>\n </ax-button>\n </div>\n\n <ax-button (click)=\"clear()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-undo\"></ax-icon>\n </ax-button>\n\n <ax-popover [openOn]=\"popoverOption.openOn\" [closeOn]=\"popoverOption.closeOn\" [target]=\"alignPop\" [placement]=\"popoverOption.placement\">\n <div class=\"ax-overlay-pane\">\n <ax-button (click)=\"penTypeHandler('pen')\" look=\"blank\" [selected]=\"this.service.penType() === 'pen' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-pen\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"penTypeHandler('highlight')\" look=\"blank\" [selected]=\"this.service.penType() === 'highlight' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-highlight\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"penTypeHandler('eraser')\" look=\"blank\" [selected]=\"this.service.penType() === 'eraser' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-eraser\"></ax-icon>\n </ax-button>\n\n <div class=\"ax-paint-width-slider\">\n <ax-slider [minValue]=\"2\" [maxValue]=\"20\" [(ngModel)]=\"value\" (ngModelChange)=\"valueHandler($event)\"></ax-slider>\n </div>\n </div>\n </ax-popover>\n</div>\n","import {\n afterNextRender,\n Component,\n effect,\n ElementRef,\n HostBinding,\n inject,\n input,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXPaintContainerComponent } from '../paint-container/paint-container.component';\nimport { AXPaintService } from '../paint.service';\n\n/**\n * @category Components\n * paint view\n */\n@Component({\n selector: 'ax-paint-view',\n templateUrl: './paint-view.component.html',\n styleUrl: './paint-view.component.scss',\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXPaintViewComponent {\n /** @ignore */\n parent = inject(AXPaintContainerComponent);\n\n /** @ignore */\n protected service = inject(AXPaintService);\n\n /**\n * Specifies the class that pass to component.\n *\n */\n customClass = input<string>('', { alias: 'class' });\n\n /** @ignore */\n protected canvasElem = viewChild<ElementRef<HTMLCanvasElement>>('c');\n\n /** @ignore */\n protected ctx = signal<CanvasRenderingContext2D>(null);\n\n /** @ignore */\n protected isPainting = signal(false);\n\n /** @ignore */\n protected isUserInteract = signal(false);\n\n /** @ignore */\n constructor() {\n afterNextRender(() => {\n this.ctx.set(this.canvasElem().nativeElement.getContext('2d'));\n this.ctx().canvas.width = this.canvasElem().nativeElement.getBoundingClientRect().width;\n this.ctx().canvas.height = this.canvasElem().nativeElement.getBoundingClientRect().height;\n this.ctx().lineJoin = 'round';\n this.ctx().lineCap = this.service.lineCap();\n this.ctx().strokeStyle = this.service.penColor();\n this.ctx().lineWidth = this.service.lineWidth();\n });\n\n effect(\n () => {\n this.service.toggleClear();\n this.ctx()?.clearRect(\n 0,\n 0,\n this.canvasElem()?.nativeElement?.getBoundingClientRect().width,\n this.canvasElem()?.nativeElement?.getBoundingClientRect().height,\n );\n },\n { allowSignalWrites: true },\n );\n }\n\n /** @ignore */\n protected mouseDownHandler(e: MouseEvent) {\n this.isPainting.set(true);\n this.isUserInteract.set(true);\n\n switch (this.service.penType()) {\n case 'pen':\n this.ctx().globalAlpha = 1;\n this.ctx().globalCompositeOperation = 'source-over';\n break;\n case 'eraser':\n this.ctx().globalAlpha = 1;\n this.ctx().globalCompositeOperation = 'destination-out';\n break;\n case 'highlight':\n this.ctx().globalAlpha = 0.008;\n this.ctx().globalCompositeOperation = 'source-over';\n break;\n }\n\n this.ctx().strokeStyle = this.service.penColor();\n this.ctx().lineCap = this.service.lineCap();\n this.ctx().lineWidth = this.service.lineWidth();\n\n this.ctx().beginPath();\n this.ctx().moveTo(e.offsetX, e.offsetY);\n }\n\n /** @ignore */\n protected mouseMoveHandler(e: MouseEvent) {\n if (this.isPainting()) {\n this.ctx().lineTo(e.offsetX, e.offsetY);\n this.ctx().stroke();\n }\n }\n\n /** @ignore */\n protected mouseUpHandler() {\n this.ctx().closePath();\n this.isPainting.set(false);\n }\n\n /**\n * @param e - output file type\n */\n getOutPut(e: 'image/webp' | 'image/png' | 'image/jpeg') {\n const base64 = this.canvasElem().nativeElement.toDataURL(e, 0.1);\n if (this.isUserInteract()) {\n this.parent.commitValue(base64);\n } else {\n this.parent.commitValue(null);\n }\n }\n\n @HostBinding('class')\n get __hostClass(): string {\n return `${this.customClass()}`;\n }\n}\n","<canvas\n #c\n (mousedown)=\"mouseDownHandler($event)\"\n (mouseup)=\"mouseUpHandler()\"\n (mousemove)=\"mouseMoveHandler($event)\"\n class=\"ax-canvas-element\"\n>\n</canvas>\n","import { NgModule } from '@angular/core';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXColorPaletteModule } from '@acorex/components/color-palette';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXSliderModule } from '@acorex/components/slider';\nimport { FormsModule } from '@angular/forms';\nimport { AXPaintContainerComponent } from './paint/paint-container/paint-container.component';\nimport { AXPaintToolbarComponent } from './paint/paint-toolbar/paint-toolbar.component';\nimport { AXPaintColorPickerComponent } from './paint/paint-tools/paint-color-picker/paint-color-picker.component';\nimport { AXPaintPenCapComponent } from './paint/paint-tools/paint-pen-cap/paint-pen-cap.component';\nimport { AXPaintPenModeChangerComponent } from './paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component';\nimport { AXPaintViewComponent } from './paint/paint-view/paint-view.component';\nimport { AXPaintService } from './paint/paint.service';\n\nconst COMPONENT = [\n AXPaintContainerComponent,\n AXPaintToolbarComponent,\n AXPaintViewComponent,\n AXPaintColorPickerComponent,\n AXPaintPenCapComponent,\n AXPaintPenModeChangerComponent,\n];\n\nconst MODULES = [FormsModule, AXSliderModule, AXSelectBoxModule, AXButtonModule, AXColorPaletteModule, AXPopoverModule, AXDecoratorModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [AXPaintService],\n})\nexport class AXPaintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;AAYA;;;AAGG;AAmBG,MAAO,yBAA0B,SAAQ,OAAO,EAAC,yBAAiC,GAAE,eAAe,CAAC,CAAA;8GAA7F,yBAAyB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,EAZzB,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,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,EAAA,EAAA,IAAA,EAAA,aAAa,EAFb,SAAA,EAAA,CAAC,cAAc,CAAC,YAFd,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIT,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;oBACvB,SAAS,EAAE,CAAC,cAAc,CAAC;AAC5B,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -16,17 +16,26 @@ import { CommonModule } from '@angular/common';
16
16
  class AXPasswordBoxComponent extends classes((MXInputBaseValueComponent), MXLookComponent) {
17
17
  constructor() {
18
18
  super(...arguments);
19
+ /** @ignore */
19
20
  this._type = 'password';
21
+ /** @ignore */
20
22
  this._icon = 'ax-icon-visibility';
23
+ /**
24
+ * Sets the autocomplete behavior for the input field.
25
+ */
21
26
  this.autoComplete = 'one-time-code';
22
27
  /**
23
28
  * A flag for showing or hiding password button.
24
29
  */
25
30
  this.showToggleButton = true;
26
31
  }
32
+ /** @ignore */
27
33
  _handleModelChange(value) {
28
34
  this.commitValue(value, true);
29
35
  }
36
+ /**
37
+ * Toggles the input type between 'password' and 'text' to show or hide the password.
38
+ */
30
39
  toggleType() {
31
40
  if (this._type === 'password') {
32
41
  this._type = 'text';
@@ -37,8 +46,8 @@ class AXPasswordBoxComponent extends classes((MXInputBaseValueComponent), MXLook
37
46
  this._icon = 'ax-icon-visibility';
38
47
  }
39
48
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPasswordBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPasswordBoxComponent, selector: "ax-password-box", inputs: { readonly: "readonly", disabled: "disabled", tabIndex: "tabIndex", placeholder: "placeholder", value: "value", state: "state", name: "name", id: "id", look: "look", autoComplete: "autoComplete", showToggleButton: "showToggleButton", classNames: ["class", "classNames"] }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange", onKeyDown: "onKeyDown", onKeyUp: "onKeyUp", onKeyPress: "onKeyPress" }, providers: [
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPasswordBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
50
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPasswordBoxComponent, selector: "ax-password-box", inputs: { readonly: "readonly", disabled: "disabled", tabIndex: "tabIndex", placeholder: "placeholder", value: "value", state: "state", name: "name", id: "id", look: "look", autoComplete: "autoComplete", showToggleButton: "showToggleButton", classNames: ["class", "classNames"] }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange", onKeyDown: "onKeyDown", onKeyUp: "onKeyUp", onKeyPress: "onKeyPress" }, providers: [
42
51
  { provide: AXComponent, useExisting: AXPasswordBoxComponent },
43
52
  { provide: AXFocusableComponent, useExisting: AXPasswordBoxComponent },
44
53
  { provide: AXClearableComponent, useExisting: AXPasswordBoxComponent },
@@ -50,7 +59,7 @@ class AXPasswordBoxComponent extends classes((MXInputBaseValueComponent), MXLook
50
59
  },
51
60
  ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-editor-container ax-look-{{look}} {{classNames}}\" [class.ax-state-disabled]=\"disabled\">\n <ng-content select=\"ax-prefix\">\n </ng-content>\n <input #input class=\"ax-input\" [name]=\"name\" [type]=\"_type\" [id]=\"id\" [attr.placeholder]=\"placeholder\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"value\" [attr.autocomplete]=\"autoComplete\"\n (ngModelChange)=\"_handleModelChange($event)\" (keydown)=\"emitOnKeydownEvent($event)\"\n (keyup)=\"emitOnKeyupEvent($event)\" (keypress)=\"emitOnKeypressEvent($event)\" (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\">\n @if(value && !disabled && !readonly){\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n @if(showToggleButton){\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" (click)=\"toggleType()\" [tabIndex]=\"-1\">\n <span class=\"ax-icon {{_icon}}\"></span>\n </button>\n }\n <ng-content select=\"ax-suffix\">\n </ng-content>\n <ng-content select=\"ax-validation-rule\">\n </ng-content>\n</div>\n<div class=\"ax-error-container\"></div>", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
52
61
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPasswordBoxComponent, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPasswordBoxComponent, decorators: [{
54
63
  type: Component,
55
64
  args: [{ selector: 'ax-password-box', inputs: ['readonly', 'disabled', 'tabIndex', 'placeholder', 'value', 'state', 'name', 'id', 'look'], outputs: [
56
65
  'valueChange',
@@ -89,11 +98,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
89
98
  const COMPONENT = [AXPasswordBoxComponent];
90
99
  const MODULES = [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule];
91
100
  class AXPasswordBoxModule {
92
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPasswordBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
93
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXPasswordBoxModule, declarations: [AXPasswordBoxComponent], imports: [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule], exports: [AXPasswordBoxComponent] }); }
94
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPasswordBoxModule, imports: [MODULES] }); }
101
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPasswordBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
102
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPasswordBoxModule, declarations: [AXPasswordBoxComponent], imports: [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule], exports: [AXPasswordBoxComponent] }); }
103
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPasswordBoxModule, imports: [MODULES] }); }
95
104
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
105
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
97
106
  type: NgModule,
98
107
  args: [{
99
108
  declarations: [...COMPONENT],
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-password-box.mjs","sources":["../../../../libs/components/password-box/src/lib/password-box.component.ts","../../../../libs/components/password-box/src/lib/password-box.component.html","../../../../libs/components/password-box/src/lib/password-box.module.ts","../../../../libs/components/password-box/src/acorex-components-password-box.ts"],"sourcesContent":["import {\n AXClearableComponent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\n/**\n * The Textbox is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-password-box',\n templateUrl: 'password-box.component.html',\n inputs: ['readonly', 'disabled', 'tabIndex', 'placeholder', 'value', 'state', 'name', 'id', 'look'],\n outputs: [\n 'valueChange',\n 'stateChange',\n 'onValueChanged',\n 'onBlur',\n 'onFocus',\n 'readonlyChange',\n 'disabledChange',\n 'onKeyDown',\n 'onKeyUp',\n 'onKeyPress',\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n\n providers: [\n { provide: AXComponent, useExisting: AXPasswordBoxComponent },\n { provide: AXFocusableComponent, useExisting: AXPasswordBoxComponent },\n { provide: AXClearableComponent, useExisting: AXPasswordBoxComponent },\n { provide: AXValuableComponent, useExisting: AXPasswordBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXPasswordBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXPasswordBoxComponent extends classes(MXInputBaseValueComponent<string>, MXLookComponent) {\n @ViewChild('input') input: ElementRef<HTMLInputElement>;\n\n protected _type: 'password' | 'text' = 'password';\n protected _icon: 'ax-icon-visibility' | 'ax-icon-visibility-off' = 'ax-icon-visibility';\n\n @Input()\n autoComplete: 'current-password' | 'new-password' | 'one-time-code' | 'off' = 'one-time-code';\n\n /**\n * A flag for showing or hiding password button.\n */\n @Input()\n showToggleButton = true;\n\n @Input('class')\n classNames: string;\n\n _handleModelChange(value: string) {\n this.commitValue(value, true);\n }\n\n toggleType() {\n if (this._type === 'password') {\n this._type = 'text';\n this._icon = 'ax-icon-visibility-off';\n } else {\n this._type = 'password';\n this._icon = 'ax-icon-visibility';\n }\n }\n\n // @HostBinding('class')\n // get __hostClass(): string[] {\n // return ['ax-editor-container', `ax-look-${this.look}`, `${this.disabled ? 'ax-state-disabled' : ''}`];\n // }\n}\n","<div class=\"ax-editor-container ax-look-{{look}} {{classNames}}\" [class.ax-state-disabled]=\"disabled\">\n <ng-content select=\"ax-prefix\">\n </ng-content>\n <input #input class=\"ax-input\" [name]=\"name\" [type]=\"_type\" [id]=\"id\" [attr.placeholder]=\"placeholder\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"value\" [attr.autocomplete]=\"autoComplete\"\n (ngModelChange)=\"_handleModelChange($event)\" (keydown)=\"emitOnKeydownEvent($event)\"\n (keyup)=\"emitOnKeyupEvent($event)\" (keypress)=\"emitOnKeypressEvent($event)\" (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\">\n @if(value && !disabled && !readonly){\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n @if(showToggleButton){\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" (click)=\"toggleType()\" [tabIndex]=\"-1\">\n <span class=\"ax-icon {{_icon}}\"></span>\n </button>\n }\n <ng-content select=\"ax-suffix\">\n </ng-content>\n <ng-content select=\"ax-validation-rule\">\n </ng-content>\n</div>\n<div class=\"ax-error-container\"></div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPasswordBoxComponent } from './password-box.component';\n\nconst COMPONENT = [AXPasswordBoxComponent];\nconst MODULES = [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXPasswordBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAYA;;;;AAIG;AAgCG,MAAO,sBAAuB,SAAQ,OAAO,EAAC,yBAAiC,GAAE,eAAe,CAAC,CAAA;AA/BvG,IAAA,WAAA,GAAA;;QAkCY,IAAK,CAAA,KAAA,GAAwB,UAAU,CAAC;QACxC,IAAK,CAAA,KAAA,GAAoD,oBAAoB,CAAC;QAGxF,IAAY,CAAA,YAAA,GAAkE,eAAe,CAAC;AAE9F;;AAEG;QAEH,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAC;AAuBzB,KAAA;AAlBC,IAAA,kBAAkB,CAAC,KAAa,EAAA;AAC9B,QAAA,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KAC/B;IAED,UAAU,GAAA;AACR,QAAA,IAAI,IAAI,CAAC,KAAK,KAAK,UAAU,EAAE;AAC7B,YAAA,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;AACpB,YAAA,IAAI,CAAC,KAAK,GAAG,wBAAwB,CAAC;SACvC;aAAM;AACL,YAAA,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC;AACxB,YAAA,IAAI,CAAC,KAAK,GAAG,oBAAoB,CAAC;SACnC;KACF;8GA9BU,sBAAsB,EAAA,IAAA,EAAA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AAS5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAJjB,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-password-box.mjs","sources":["../../../../libs/components/password-box/src/lib/password-box.component.ts","../../../../libs/components/password-box/src/lib/password-box.component.html","../../../../libs/components/password-box/src/lib/password-box.module.ts","../../../../libs/components/password-box/src/acorex-components-password-box.ts"],"sourcesContent":["import {\n AXClearableComponent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation, forwardRef } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\n/**\n * The Textbox is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-password-box',\n templateUrl: 'password-box.component.html',\n inputs: ['readonly', 'disabled', 'tabIndex', 'placeholder', 'value', 'state', 'name', 'id', 'look'],\n outputs: [\n 'valueChange',\n 'stateChange',\n 'onValueChanged',\n 'onBlur',\n 'onFocus',\n 'readonlyChange',\n 'disabledChange',\n 'onKeyDown',\n 'onKeyUp',\n 'onKeyPress',\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n\n providers: [\n { provide: AXComponent, useExisting: AXPasswordBoxComponent },\n { provide: AXFocusableComponent, useExisting: AXPasswordBoxComponent },\n { provide: AXClearableComponent, useExisting: AXPasswordBoxComponent },\n { provide: AXValuableComponent, useExisting: AXPasswordBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXPasswordBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXPasswordBoxComponent extends classes(MXInputBaseValueComponent<string>, MXLookComponent) {\n\n /** @ignore */\n @ViewChild('input') input: ElementRef<HTMLInputElement>;\n\n /** @ignore */\n protected _type: 'password' | 'text' = 'password';\n\n /** @ignore */\n protected _icon: 'ax-icon-visibility' | 'ax-icon-visibility-off' = 'ax-icon-visibility';\n\n /**\n * Sets the autocomplete behavior for the input field.\n */\n @Input()\n autoComplete: 'current-password' | 'new-password' | 'one-time-code' | 'off' = 'one-time-code';\n\n /**\n * A flag for showing or hiding password button.\n */\n @Input()\n showToggleButton = true;\n\n /**\n * Defines custom CSS classes to apply to the component.\n */\n @Input('class')\n classNames: string;\n\n /** @ignore */\n _handleModelChange(value: string) {\n this.commitValue(value, true);\n }\n\n /**\n * Toggles the input type between 'password' and 'text' to show or hide the password.\n */\n toggleType() {\n if (this._type === 'password') {\n this._type = 'text';\n this._icon = 'ax-icon-visibility-off';\n } else {\n this._type = 'password';\n this._icon = 'ax-icon-visibility';\n }\n }\n\n // @HostBinding('class')\n // get __hostClass(): string[] {\n // return ['ax-editor-container', `ax-look-${this.look}`, `${this.disabled ? 'ax-state-disabled' : ''}`];\n // }\n}\n","<div class=\"ax-editor-container ax-look-{{look}} {{classNames}}\" [class.ax-state-disabled]=\"disabled\">\n <ng-content select=\"ax-prefix\">\n </ng-content>\n <input #input class=\"ax-input\" [name]=\"name\" [type]=\"_type\" [id]=\"id\" [attr.placeholder]=\"placeholder\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"value\" [attr.autocomplete]=\"autoComplete\"\n (ngModelChange)=\"_handleModelChange($event)\" (keydown)=\"emitOnKeydownEvent($event)\"\n (keyup)=\"emitOnKeyupEvent($event)\" (keypress)=\"emitOnKeypressEvent($event)\" (focus)=\"emitOnFocusEvent($event)\"\n (blur)=\"emitOnBlurEvent($event)\">\n @if(value && !disabled && !readonly){\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n @if(showToggleButton){\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" (click)=\"toggleType()\" [tabIndex]=\"-1\">\n <span class=\"ax-icon {{_icon}}\"></span>\n </button>\n }\n <ng-content select=\"ax-suffix\">\n </ng-content>\n <ng-content select=\"ax-validation-rule\">\n </ng-content>\n</div>\n<div class=\"ax-error-container\"></div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPasswordBoxComponent } from './password-box.component';\n\nconst COMPONENT = [AXPasswordBoxComponent];\nconst MODULES = [CommonModule, FormsModule, AXButtonModule, AXDecoratorModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXPasswordBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAYA;;;;AAIG;AAgCG,MAAO,sBAAuB,SAAQ,OAAO,EAAC,yBAAiC,GAAE,eAAe,CAAC,CAAA;AA/BvG,IAAA,WAAA,GAAA;;;QAqCY,IAAK,CAAA,KAAA,GAAwB,UAAU,CAAC;;QAGxC,IAAK,CAAA,KAAA,GAAoD,oBAAoB,CAAC;AAExF;;AAEC;QAED,IAAY,CAAA,YAAA,GAAkE,eAAe,CAAC;A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