@acorex/components 18.4.3 → 18.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. package/action-sheet/lib/action-sheet.class.d.ts +0 -9
  2. package/action-sheet/lib/action-sheet.component.d.ts +3 -3
  3. package/alert/lib/alert.component.d.ts +15 -36
  4. package/comment/README.md +3 -0
  5. package/comment/index.d.ts +9 -0
  6. package/comment/lib/comment-container/comment-container.component.d.ts +5 -0
  7. package/comment/lib/comment-input/comment-input.component.d.ts +10 -0
  8. package/comment/lib/comment-item/comment-item.component.d.ts +9 -0
  9. package/comment/lib/comment-like/comment-like.component.d.ts +6 -0
  10. package/comment/lib/comment-reply/comment-reply.component.d.ts +5 -0
  11. package/comment/lib/comment-view/comment-view.component.d.ts +5 -0
  12. package/comment/lib/comment.module.d.ts +17 -0
  13. package/comment/lib/comment.types.d.ts +3 -0
  14. package/comment/lib/services/comment.service.d.ts +6 -0
  15. package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
  16. package/esm2022/action-sheet/lib/action-sheet.component.mjs +1 -1
  17. package/esm2022/alert/lib/alert.component.mjs +37 -133
  18. package/esm2022/avatar/lib/avatar.component.mjs +2 -2
  19. package/esm2022/badge/lib/badge.component.mjs +2 -2
  20. package/esm2022/bottom-navigation/lib/bottom-navigation-item/bottom-navigation-item.component.mjs +2 -2
  21. package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +1 -1
  22. package/esm2022/bottom-navigation/lib/bottom-navigation.module.mjs +3 -8
  23. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +2 -5
  24. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +2 -2
  25. package/esm2022/button/lib/button-item.class.mjs +1 -1
  26. package/esm2022/button/lib/button.module.mjs +5 -26
  27. package/esm2022/check-box/lib/check-box.component.mjs +3 -11
  28. package/esm2022/circular-progress/lib/circular-progress.component.mjs +1 -1
  29. package/esm2022/color-box/lib/color-box.module.mjs +3 -11
  30. package/esm2022/color-palette/lib/color-palette-input.component.mjs +9 -15
  31. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +6 -14
  32. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +16 -17
  33. package/esm2022/color-palette/lib/color-palette.class.mjs +1 -1
  34. package/esm2022/color-palette/lib/color-palette.component.mjs +5 -21
  35. package/esm2022/comment/acorex-components-comment.mjs +5 -0
  36. package/esm2022/comment/index.mjs +10 -0
  37. package/esm2022/comment/lib/comment-container/comment-container.component.mjs +12 -0
  38. package/esm2022/comment/lib/comment-input/comment-input.component.mjs +33 -0
  39. package/esm2022/comment/lib/comment-item/comment-item.component.mjs +21 -0
  40. package/esm2022/comment/lib/comment-like/comment-like.component.mjs +15 -0
  41. package/esm2022/comment/lib/comment-reply/comment-reply.component.mjs +12 -0
  42. package/esm2022/comment/lib/comment-view/comment-view.component.mjs +11 -0
  43. package/esm2022/comment/lib/comment.module.mjs +48 -0
  44. package/esm2022/comment/lib/comment.types.mjs +2 -0
  45. package/esm2022/comment/lib/services/comment.service.mjs +19 -0
  46. package/esm2022/common/lib/classes/events.class.mjs +1 -1
  47. package/esm2022/common/lib/classes/styles.class.mjs +2 -10
  48. package/esm2022/common/lib/common.module.mjs +4 -20
  49. package/esm2022/common/lib/components/colorlook-component.class.mjs +1 -1
  50. package/esm2022/common/lib/components/input-base-value-component.class.mjs +1 -1
  51. package/esm2022/common/lib/directives/auto-focus.directive.mjs +4 -12
  52. package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -4
  53. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +2 -3
  54. package/esm2022/common/lib/directives/responsive.directive.mjs +3 -8
  55. package/esm2022/common/lib/directives/ripple.directive.mjs +4 -6
  56. package/esm2022/common/lib/types/placement.mjs +6 -26
  57. package/esm2022/conversation/lib/conversation-input/conversation-input.component.mjs +3 -3
  58. package/esm2022/data-pager/lib/data-pager-info.component.mjs +4 -10
  59. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +2 -2
  60. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +3 -3
  61. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +8 -36
  62. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +3 -3
  63. package/esm2022/data-table/lib/base-data-table.class.mjs +3 -2
  64. package/esm2022/data-table/lib/data-table/data-table.component.mjs +16 -12
  65. package/esm2022/datetime-box/lib/datetime-box.module.mjs +3 -15
  66. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +7 -8
  67. package/esm2022/datetime-picker/lib/datetime-picker.config.mjs +1 -1
  68. package/esm2022/decorators/lib/components/clear-button.component.mjs +6 -21
  69. package/esm2022/decorators/lib/components/close-button.component.mjs +5 -15
  70. package/esm2022/decorators/lib/decorators.module.mjs +3 -14
  71. package/esm2022/dialog/lib/dialog.class.mjs +1 -1
  72. package/esm2022/dialog/lib/dialog.component.mjs +4 -6
  73. package/esm2022/dialog/lib/dialog.module.mjs +2 -2
  74. package/esm2022/drawer/lib/drawer-container.component.mjs +2 -2
  75. package/esm2022/dropdown/lib/dropdown.module.mjs +4 -21
  76. package/esm2022/dropdown-button/lib/dropdown-button.component.mjs +4 -12
  77. package/esm2022/dropdown-button/lib/dropdown-button.module.mjs +4 -23
  78. package/esm2022/form/lib/form.config.mjs +1 -1
  79. package/esm2022/form/lib/validation-rule.directive.mjs +2 -2
  80. package/esm2022/form/lib/validation-summary.component.mjs +30 -46
  81. package/esm2022/image/lib/image.component.mjs +2 -2
  82. package/esm2022/label/lib/label.component.mjs +2 -2
  83. package/esm2022/loading/lib/loading-spinner.component.mjs +3 -3
  84. package/esm2022/loading/lib/loading.component.mjs +5 -17
  85. package/esm2022/loading/lib/loading.config.mjs +1 -1
  86. package/esm2022/loading/lib/loading.directive.mjs +1 -1
  87. package/esm2022/loading/lib/loading.module.mjs +3 -11
  88. package/esm2022/loading/lib/loading.service.mjs +5 -11
  89. package/esm2022/loading-dialog/lib/loading-dialog.class.mjs +1 -1
  90. package/esm2022/loading-dialog/lib/loading-dialog.component.mjs +4 -6
  91. package/esm2022/loading-dialog/lib/loading-dialog.module.mjs +4 -23
  92. package/esm2022/loading-dialog/lib/loading-dialog.service.mjs +1 -1
  93. package/esm2022/menu/lib/class/root-menu.class.mjs +1 -1
  94. package/esm2022/nav/lib/nav-item/nav-item.component.mjs +3 -3
  95. package/esm2022/nav/lib/nav.component.mjs +2 -2
  96. package/esm2022/navbar/lib/navbar.component.mjs +2 -2
  97. package/esm2022/notification/lib/notification.class.mjs +1 -1
  98. package/esm2022/notification/lib/notification.component.mjs +6 -10
  99. package/esm2022/notification/lib/notification.config.mjs +1 -1
  100. package/esm2022/notification/lib/notification.module.mjs +4 -18
  101. package/esm2022/notification/lib/notification.service.mjs +6 -13
  102. package/esm2022/number-box/lib/number-box.module.mjs +3 -13
  103. package/esm2022/page/lib/base-page.class.mjs +3 -3
  104. package/esm2022/password-box/lib/password-box.component.mjs +3 -13
  105. package/esm2022/phone-box/lib/phone-box.component.mjs +1 -1
  106. package/esm2022/picker/lib/picker-column.directive.mjs +2 -2
  107. package/esm2022/picker/lib/picker.component.mjs +7 -13
  108. package/esm2022/popup/lib/popup.component.mjs +3 -3
  109. package/esm2022/popup/lib/popup.module.mjs +2 -2
  110. package/esm2022/popup/lib/popup.service.mjs +2 -2
  111. package/esm2022/progress-bar/lib/progress-bar.component.mjs +1 -1
  112. package/esm2022/radio/lib/radio.component.mjs +2 -10
  113. package/esm2022/result/lib/result.component.mjs +2 -2
  114. package/esm2022/routing-progress/lib/routing-progress.component.mjs +3 -3
  115. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +2 -2
  116. package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +2 -2
  117. package/esm2022/scheduler/lib/scheduler.component.mjs +2 -2
  118. package/esm2022/scheduler/lib/scheduler.module.mjs +4 -22
  119. package/esm2022/scss/lib/scss.module.mjs +2 -2
  120. package/esm2022/selection-list/lib/selection-list.component.mjs +4 -10
  121. package/esm2022/selection-list/lib/selection-list.module.mjs +4 -21
  122. package/esm2022/skeleton/lib/skeleton.component.mjs +2 -2
  123. package/esm2022/step-wizard/lib/step-wizard-item/step-wizard-item.component.mjs +2 -2
  124. package/esm2022/step-wizard/lib/step-wizard.class.mjs +1 -1
  125. package/esm2022/step-wizard/lib/step-wizard.component.mjs +1 -1
  126. package/esm2022/step-wizard/lib/step-wizard.module.mjs +3 -11
  127. package/esm2022/switch/lib/switch-content.component.mjs +1 -1
  128. package/esm2022/switch/lib/switch.component.mjs +3 -10
  129. package/esm2022/tabs/lib/tab-item.component.mjs +32 -36
  130. package/esm2022/tabs/lib/tabs.class.mjs +1 -1
  131. package/esm2022/tabs/lib/tabs.component.mjs +1 -1
  132. package/esm2022/tag/lib/tag.component.mjs +2 -2
  133. package/esm2022/text-box/lib/mask-options.directive.mjs +1 -1
  134. package/esm2022/text-box/lib/text-box.component.mjs +3 -4
  135. package/esm2022/text-box/lib/text-box.module.mjs +4 -18
  136. package/esm2022/toast/lib/toast.component.mjs +3 -3
  137. package/esm2022/toast/lib/toast.config.mjs +1 -1
  138. package/esm2022/toast/lib/toast.module.mjs +4 -16
  139. package/esm2022/toast/lib/toast.service.mjs +7 -16
  140. package/esm2022/uploader/lib/uploader-browse-handle.directive.mjs +2 -2
  141. package/esm2022/uploader/lib/uploader-dialog-container.component.mjs +3 -3
  142. package/esm2022/uploader/lib/uploader-list.component.mjs +2 -2
  143. package/esm2022/uploader/lib/uploader-zone.directive.mjs +2 -2
  144. package/esm2022/uploader/lib/uploader.models.mjs +1 -1
  145. package/esm2022/uploader/lib/uploader.module.mjs +3 -11
  146. package/esm2022/wysiwyg/acorex-components-wysiwyg.mjs +5 -0
  147. package/esm2022/wysiwyg/index.mjs +5 -0
  148. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +27 -0
  149. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +113 -0
  150. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.mjs +11 -0
  151. package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg.service.mjs +13 -0
  152. package/esm2022/wysiwyg/lib/wysiwyg.module.mjs +27 -0
  153. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  154. package/fesm2022/acorex-components-alert.mjs +37 -132
  155. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  156. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  157. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  158. package/fesm2022/acorex-components-bottom-navigation.mjs +2 -7
  159. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  160. package/fesm2022/acorex-components-breadcrumbs.mjs +1 -4
  161. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  162. package/fesm2022/acorex-components-button.mjs +4 -25
  163. package/fesm2022/acorex-components-button.mjs.map +1 -1
  164. package/fesm2022/acorex-components-check-box.mjs +1 -9
  165. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  166. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  167. package/fesm2022/acorex-components-color-box.mjs +2 -10
  168. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  169. package/fesm2022/acorex-components-color-palette.mjs +22 -53
  170. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  171. package/fesm2022/acorex-components-comment.mjs +153 -0
  172. package/fesm2022/acorex-components-comment.mjs.map +1 -0
  173. package/fesm2022/acorex-components-common.mjs +17 -78
  174. package/fesm2022/acorex-components-common.mjs.map +1 -1
  175. package/fesm2022/acorex-components-conversation.mjs +2 -2
  176. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  177. package/fesm2022/acorex-components-data-pager.mjs +12 -46
  178. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  179. package/fesm2022/acorex-components-data-table.mjs +17 -12
  180. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  181. package/fesm2022/acorex-components-datetime-box.mjs +2 -14
  182. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  183. package/fesm2022/acorex-components-datetime-picker.mjs +1 -2
  184. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  185. package/fesm2022/acorex-components-decorators.mjs +7 -43
  186. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  187. package/fesm2022/acorex-components-dialog.mjs +1 -3
  188. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  189. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  190. package/fesm2022/acorex-components-dropdown-button.mjs +4 -31
  191. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  192. package/fesm2022/acorex-components-dropdown.mjs +3 -20
  193. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  194. package/fesm2022/acorex-components-form.mjs +28 -44
  195. package/fesm2022/acorex-components-form.mjs.map +1 -1
  196. package/fesm2022/acorex-components-image.mjs.map +1 -1
  197. package/fesm2022/acorex-components-label.mjs.map +1 -1
  198. package/fesm2022/acorex-components-loading-dialog.mjs +4 -25
  199. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  200. package/fesm2022/acorex-components-loading.mjs +11 -37
  201. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  202. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  203. package/fesm2022/acorex-components-nav.mjs.map +1 -1
  204. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  205. package/fesm2022/acorex-components-notification.mjs +8 -33
  206. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  207. package/fesm2022/acorex-components-number-box.mjs +2 -12
  208. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  209. package/fesm2022/acorex-components-page.mjs.map +1 -1
  210. package/fesm2022/acorex-components-password-box.mjs +1 -11
  211. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  212. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  213. package/fesm2022/acorex-components-picker.mjs +6 -12
  214. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  215. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  216. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  217. package/fesm2022/acorex-components-radio.mjs +1 -9
  218. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  219. package/fesm2022/acorex-components-result.mjs.map +1 -1
  220. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  221. package/fesm2022/acorex-components-scheduler.mjs +3 -21
  222. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  223. package/fesm2022/acorex-components-scss.mjs +1 -1
  224. package/fesm2022/acorex-components-scss.mjs.map +1 -1
  225. package/fesm2022/acorex-components-selection-list.mjs +5 -28
  226. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  227. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  228. package/fesm2022/acorex-components-step-wizard.mjs +3 -11
  229. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  230. package/fesm2022/acorex-components-switch.mjs +1 -8
  231. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  232. package/fesm2022/acorex-components-tabs.mjs +30 -34
  233. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  234. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  235. package/fesm2022/acorex-components-text-box.mjs +4 -19
  236. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  237. package/fesm2022/acorex-components-toast.mjs +7 -28
  238. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  239. package/fesm2022/acorex-components-uploader.mjs +3 -11
  240. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  241. package/fesm2022/acorex-components-wysiwyg.mjs +183 -0
  242. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -0
  243. package/form/lib/validation-rule.directive.d.ts +1 -1
  244. package/package.json +65 -53
  245. package/uploader/lib/uploader-list.component.d.ts +1 -1
  246. package/wysiwyg/README.md +3 -0
  247. package/wysiwyg/index.d.ts +4 -0
  248. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +12 -0
  249. package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +28 -0
  250. package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +5 -0
  251. package/wysiwyg/lib/wysiwyg/wysiwyg.service.d.ts +7 -0
  252. package/wysiwyg/lib/wysiwyg.module.d.ts +13 -0
@@ -0,0 +1,5 @@
1
+ export * from './lib/wysiwyg.module';
2
+ export * from './lib/wysiwyg/wysiwyg-container/wysiwyg-container.component';
3
+ export * from './lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component';
4
+ export * from './lib/wysiwyg/wysiwyg-view/wysiwyg-view.component';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvd3lzaXd5Zy9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLDZEQUE2RCxDQUFDO0FBQzVFLGNBQWMseURBQXlELENBQUM7QUFDeEUsY0FBYyxtREFBbUQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL3d5c2l3eWcubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3d5c2l3eWcvd3lzaXd5Zy1jb250YWluZXIvd3lzaXd5Zy1jb250YWluZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3d5c2l3eWcvd3lzaXd5Zy10b29sYmFyL3d5c2l3eWctdG9vbGJhci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvd3lzaXd5Zy93eXNpd3lnLXZpZXcvd3lzaXd5Zy12aWV3LmNvbXBvbmVudCc7XG4iXX0=
@@ -0,0 +1,27 @@
1
+ import { AXWysiwyg } from '@acorex/cdk/wysiwyg';
2
+ import { MXBaseComponent } from '@acorex/components/common';
3
+ import { Component, ViewEncapsulation, afterNextRender, inject, signal } from '@angular/core';
4
+ import { AXWysiwygService } from '../wysiwyg.service';
5
+ import * as i0 from "@angular/core";
6
+ export class AXWysiwygContainerComponent extends MXBaseComponent {
7
+ constructor() {
8
+ super();
9
+ this.wysiwyg = signal(null);
10
+ this.view = signal(null);
11
+ this.service = inject(AXWysiwygService);
12
+ afterNextRender(() => {
13
+ this.view.set(this.getHostElement().querySelector('ax-wysiwyg-view'));
14
+ this.wysiwyg.set(new AXWysiwyg(this.view(), {
15
+ placeholder: 'Write Your Message ...',
16
+ }));
17
+ this.service.wysiwyg.set(this.wysiwyg());
18
+ });
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXWysiwygContainerComponent, selector: "ax-wysiwyg-container", usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: ["ax-wysiwyg-container{border:1px solid rgb(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);width:100%;display:block;overflow-x:auto}\n"], encapsulation: i0.ViewEncapsulation.None }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygContainerComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ selector: 'ax-wysiwyg-container', encapsulation: ViewEncapsulation.None, template: "<ng-content></ng-content>\n", styles: ["ax-wysiwyg-container{border:1px solid rgb(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);width:100%;display:block;overflow-x:auto}\n"] }]
26
+ }], ctorParameters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xcbiAgc3R5bGVVcmw6ICcuL3d5c2l3eWctY29udGFpbmVyLmNvbXBvbmVudC5zY3NzJyxcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcbn0pXG5leHBvcnQgY2xhc3MgQVhXeXNpd3lnQ29udGFpbmVyQ29tcG9uZW50IGV4dGVuZHMgTVhCYXNlQ29tcG9uZW50IHtcbiAgd3lzaXd5ZyA9IHNpZ25hbDxBWFd5c2l3eWc+KG51bGwpO1xuICB2aWV3ID0gc2lnbmFsPEhUTUxFbGVtZW50IHwgbnVsbD4obnVsbCk7XG4gIHNlcnZpY2UgPSBpbmplY3QoQVhXeXNpd3lnU2VydmljZSk7XG5cbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKTtcbiAgICBhZnRlck5leHRSZW5kZXIoKCkgPT4ge1xuICAgICAgdGhpcy52aWV3LnNldCh0aGlzLmdldEhvc3RFbGVtZW50KCkucXVlcnlTZWxlY3RvcignYXgtd3lzaXd5Zy12aWV3JykgYXMgSFRNTEVsZW1lbnQpO1xuXG4gICAgICB0aGlzLnd5c2l3eWcuc2V0KFxuICAgICAgICBuZXcgQVhXeXNpd3lnKHRoaXMudmlldygpLCB7XG4gICAgICAgICAgcGxhY2Vob2xkZXI6ICdXcml0ZSBZb3VyIE1lc3NhZ2UgLi4uJyxcbiAgICAgICAgfSksXG4gICAgICApO1xuXG4gICAgICB0aGlzLnNlcnZpY2Uud3lzaXd5Zy5zZXQodGhpcy53eXNpd3lnKCkpO1xuICAgIH0pO1xuICB9XG59XG4iLCI8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4iXX0=
@@ -0,0 +1,113 @@
1
+ import { AXDataSource } from '@acorex/components/common';
2
+ import { Component, afterNextRender, inject, output, signal } from '@angular/core';
3
+ import { AXWysiwygService } from '../wysiwyg.service';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@acorex/components/button";
6
+ import * as i2 from "@acorex/components/decorators";
7
+ import * as i3 from "@acorex/components/select-box";
8
+ import * as i4 from "@angular/forms";
9
+ export class AXWysiwygToolbarComponent {
10
+ constructor() {
11
+ this.outputHTML = output();
12
+ this.service = inject(AXWysiwygService);
13
+ this.wysiwyg = signal(null);
14
+ this.boldState = signal(false);
15
+ this.italicState = signal(false);
16
+ this.underLineState = signal(false);
17
+ this.orderListState = signal('');
18
+ this.unOrderListState = signal('');
19
+ this.alignState = signal('');
20
+ this.fontSize = new AXDataSource({
21
+ pageSize: 10,
22
+ key: 'id',
23
+ load: (e) => {
24
+ return new Promise((resolve) => {
25
+ resolve({
26
+ items: ['small', 'medium', 'large', 'huge'],
27
+ total: 4,
28
+ });
29
+ });
30
+ },
31
+ byKey: (key) => {
32
+ return new Promise((resolve) => {
33
+ resolve('medium');
34
+ });
35
+ },
36
+ });
37
+ this.selectedFont = 'medium';
38
+ afterNextRender(() => {
39
+ this.wysiwyg.set(this.service.wysiwyg());
40
+ });
41
+ }
42
+ fontHandler(e) {
43
+ this.wysiwyg().fontSize(e);
44
+ }
45
+ bold() {
46
+ if (this.boldState()) {
47
+ this.wysiwyg().bold(false);
48
+ this.boldState.set(false);
49
+ }
50
+ else {
51
+ this.wysiwyg().bold(true);
52
+ this.boldState.set(true);
53
+ }
54
+ }
55
+ out() {
56
+ this.outputHTML.emit({
57
+ component: this,
58
+ data: { value: this.wysiwyg().HTMLoutput },
59
+ isUserInteraction: true,
60
+ });
61
+ }
62
+ italic() {
63
+ if (this.italicState()) {
64
+ this.wysiwyg().italic(false);
65
+ this.italicState.set(false);
66
+ }
67
+ else {
68
+ this.wysiwyg().italic(true);
69
+ this.italicState.set(true);
70
+ }
71
+ }
72
+ underLine() {
73
+ if (this.underLineState()) {
74
+ this.wysiwyg().underLine(false);
75
+ this.underLineState.set(false);
76
+ }
77
+ else {
78
+ this.wysiwyg().underLine(true);
79
+ this.underLineState.set(true);
80
+ }
81
+ }
82
+ orderList() {
83
+ if (this.orderListState()) {
84
+ this.wysiwyg().list('');
85
+ this.orderListState.set('');
86
+ }
87
+ else {
88
+ this.wysiwyg().list('ordered');
89
+ this.orderListState.set('ordered');
90
+ }
91
+ }
92
+ unOrderList() {
93
+ if (this.unOrderListState()) {
94
+ this.wysiwyg().list('');
95
+ this.unOrderListState.set('');
96
+ }
97
+ else {
98
+ this.wysiwyg().list('bullet');
99
+ this.unOrderListState.set('bullet');
100
+ }
101
+ }
102
+ alignStateHandler(e) {
103
+ this.alignState.set(e);
104
+ this.wysiwyg().align(e);
105
+ }
106
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
107
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXWysiwygToolbarComponent, selector: "ax-wysiwyg-toolbar", outputs: { outputHTML: "outputHTML" }, ngImport: i0, template: "<div class=\"ax-wysiwyg-toolbar-container ax-sm\">\n <ng-content select=\"ax-prefix\"></ng-content>\n\n <div class=\"ax-wysiwyg-tool-container\">\n <ax-button class=\"\" (click)=\"bold()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-bold\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"italic()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-italic\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"underLine()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-under-line\"></ax-icon>\n </ax-button>\n\n <ax-select-box (ngModelChange)=\"fontHandler($event)\" [ngModel]=\"selectedFont\" [dataSource]=\"fontSize\" placeholder=\"Choose...\">\n </ax-select-box>\n\n <ax-button (click)=\"orderList()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-order-list\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"unOrderList()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-un-order-list\"></ax-icon>\n </ax-button>\n\n <ax-button\n (click)=\"alignStateHandler('left')\"\n [look]=\"alignState() !== 'left' && 'blank'\"\n [color]=\"alignState() === 'left' && 'primary'\"\n >\n <ax-icon class=\"ax-icon ax-icon-align-left\"></ax-icon>\n </ax-button>\n\n <ax-button\n (click)=\"alignStateHandler('center')\"\n [look]=\"alignState() !== 'center' && 'blank'\"\n [color]=\"alignState() === 'center' && 'primary'\"\n >\n <ax-icon class=\"ax-icon ax-icon-align-center\"></ax-icon>\n </ax-button>\n\n <ax-button\n (click)=\"alignStateHandler('right')\"\n [look]=\"alignState() !== 'right' && 'blank'\"\n [color]=\"alignState() === 'right' && 'primary'\"\n >\n <ax-icon class=\"ax-icon ax-icon-align-right\"></ax-icon>\n </ax-button>\n </div>\n\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: [".ax-wysiwyg-toolbar-container{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem}.ax-wysiwyg-toolbar-container .ax-icon{font-weight:900;font-size:1rem}.ax-wysiwyg-toolbar-container .ax-wysiwyg-tool-container{display:flex}.ax-wysiwyg-toolbar-container .ax-wysiwyg-tool-container ax-button{margin-inline:.1rem}.ax-wysiwyg-toolbar-container .ax-wysiwyg-tool-container ax-select-box{margin-inline:1rem}\n"], dependencies: [{ kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
108
+ }
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygToolbarComponent, decorators: [{
110
+ type: Component,
111
+ args: [{ selector: 'ax-wysiwyg-toolbar', template: "<div class=\"ax-wysiwyg-toolbar-container ax-sm\">\n <ng-content select=\"ax-prefix\"></ng-content>\n\n <div class=\"ax-wysiwyg-tool-container\">\n <ax-button class=\"\" (click)=\"bold()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-bold\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"italic()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-italic\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"underLine()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-under-line\"></ax-icon>\n </ax-button>\n\n <ax-select-box (ngModelChange)=\"fontHandler($event)\" [ngModel]=\"selectedFont\" [dataSource]=\"fontSize\" placeholder=\"Choose...\">\n </ax-select-box>\n\n <ax-button (click)=\"orderList()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-order-list\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"unOrderList()\" look=\"blank\" [toggleable]=\"true\">\n <ax-icon class=\"ax-icon ax-icon-un-order-list\"></ax-icon>\n </ax-button>\n\n <ax-button\n (click)=\"alignStateHandler('left')\"\n [look]=\"alignState() !== 'left' && 'blank'\"\n [color]=\"alignState() === 'left' && 'primary'\"\n >\n <ax-icon class=\"ax-icon ax-icon-align-left\"></ax-icon>\n </ax-button>\n\n <ax-button\n (click)=\"alignStateHandler('center')\"\n [look]=\"alignState() !== 'center' && 'blank'\"\n [color]=\"alignState() === 'center' && 'primary'\"\n >\n <ax-icon class=\"ax-icon ax-icon-align-center\"></ax-icon>\n </ax-button>\n\n <ax-button\n (click)=\"alignStateHandler('right')\"\n [look]=\"alignState() !== 'right' && 'blank'\"\n [color]=\"alignState() === 'right' && 'primary'\"\n >\n <ax-icon class=\"ax-icon ax-icon-align-right\"></ax-icon>\n </ax-button>\n </div>\n\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n", styles: [".ax-wysiwyg-toolbar-container{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem}.ax-wysiwyg-toolbar-container .ax-icon{font-weight:900;font-size:1rem}.ax-wysiwyg-toolbar-container .ax-wysiwyg-tool-container{display:flex}.ax-wysiwyg-toolbar-container .ax-wysiwyg-tool-container ax-button{margin-inline:.1rem}.ax-wysiwyg-toolbar-container .ax-wysiwyg-tool-container ax-select-box{margin-inline:1rem}\n"] }]
112
+ }], ctorParameters: () => [] });
113
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy10b29sYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXRvb2xiYXIvd3lzaXd5Zy10b29sYmFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXRvb2xiYXIvd3lzaXd5Zy10b29sYmFyLmNvbXBv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iYWxpZ25TdGF0ZSgpICE9PSAnbGVmdCcgJiYgJ2JsYW5rJ1wiXG4gICAgICBbY29sb3JdPVwiYWxpZ25TdGF0ZSgpID09PSAnbGVmdCcgJiYgJ3ByaW1hcnknXCJcbiAgICA+XG4gICAgICA8YXgtaWNvbiBjbGFzcz1cImF4LWljb24gYXgtaWNvbi1hbGlnbi1sZWZ0XCI+PC9heC1pY29uPlxuICAgIDwvYXgtYnV0dG9uPlxuXG4gICAgPGF4LWJ1dHRvblxuICAgICAgKGNsaWNrKT1cImFsaWduU3RhdGVIYW5kbGVyKCdjZW50ZXInKVwiXG4gICAgICBbbG9va109XCJhbGlnblN0YXRlKCkgIT09ICdjZW50ZXInICYmICdibGFuaydcIlxuICAgICAgW2NvbG9yXT1cImFsaWduU3RhdGUoKSA9PT0gJ2NlbnRlcicgJiYgJ3ByaW1hcnknXCJcbiAgICA+XG4gICAgICA8YXgtaWNvbiBjbGFzcz1cImF4LWljb24gYXgtaWNvbi1hbGlnbi1jZW50ZXJcIj48L2F4LWljb24+XG4gICAgPC9heC1idXR0b24+XG5cbiAgICA8YXgtYnV0dG9uXG4gICAgICAoY2xpY2spPVwiYWxpZ25TdGF0ZUhhbmRsZXIoJ3JpZ2h0JylcIlxuICAgICAgW2xvb2tdPVwiYWxpZ25TdGF0ZSgpICE9PSAncmlnaHQnICYmICdibGFuaydcIlxuICAgICAgW2NvbG9yXT1cImFsaWduU3RhdGUoKSA9PT0gJ3JpZ2h0JyAmJiAncHJpbWFyeSdcIlxuICAgID5cbiAgICAgIDxheC1pY29uIGNsYXNzPVwiYXgtaWNvbiBheC1pY29uLWFsaWduLXJpZ2h0XCI+PC9heC1pY29uPlxuICAgIDwvYXgtYnV0dG9uPlxuICA8L2Rpdj5cblxuICA8bmctY29udGVudCBzZWxlY3Q9XCJheC1zdWZmaXhcIj48L25nLWNvbnRlbnQ+XG48L2Rpdj5cbiJdfQ==
@@ -0,0 +1,11 @@
1
+ import { Component, ViewEncapsulation } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class AXWysiwygViewComponent {
4
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
5
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXWysiwygViewComponent, selector: "ax-wysiwyg-view", ngImport: i0, template: "<!-- wysiwyg editor render here -->\n", styles: ["ax-wysiwyg-view{display:block;width:100%;border-bottom:1px solid rgb(var(--ax-color-border-default))}.ql-container{font-family:inherit}.ql-editor.ql-blank:before{color:rgb(var(--ax-color-neutral-400));font-weight:600;font-style:normal}\n"], encapsulation: i0.ViewEncapsulation.None }); }
6
+ }
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygViewComponent, decorators: [{
8
+ type: Component,
9
+ args: [{ selector: 'ax-wysiwyg-view', encapsulation: ViewEncapsulation.None, template: "<!-- wysiwyg editor render here -->\n", styles: ["ax-wysiwyg-view{display:block;width:100%;border-bottom:1px solid rgb(var(--ax-color-border-default))}.ql-container{font-family:inherit}.ql-editor.ql-blank:before{color:rgb(var(--ax-color-neutral-400));font-weight:600;font-style:normal}\n"] }]
10
+ }] });
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXZpZXcvd3lzaXd5Zy12aWV3LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXZpZXcvd3lzaXd5Zy12aWV3LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBUTdELE1BQU0sT0FBTyxzQkFBc0I7OEdBQXRCLHNCQUFzQjtrR0FBdEIsc0JBQXNCLHVEQ1JuQyx1Q0FDQTs7MkZET2Esc0JBQXNCO2tCQU5sQyxTQUFTOytCQUNFLGlCQUFpQixpQkFHWixpQkFBaUIsQ0FBQyxJQUFJIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBWaWV3RW5jYXBzdWxhdGlvbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdheC13eXNpd3lnLXZpZXcnLFxuICB0ZW1wbGF0ZVVybDogJy4vd3lzaXd5Zy12aWV3LmNvbXBvbmVudC5odG1sJyxcbiAgc3R5bGVVcmw6ICcuL3d5c2l3eWctdmlldy5jb21wb25lbnQuc2NzcycsXG4gIGVuY2Fwc3VsYXRpb246IFZpZXdFbmNhcHN1bGF0aW9uLk5vbmUsXG59KVxuZXhwb3J0IGNsYXNzIEFYV3lzaXd5Z1ZpZXdDb21wb25lbnQge31cbiIsIjwhLS0gd3lzaXd5ZyBlZGl0b3IgcmVuZGVyIGhlcmUgLS0+XG4iXX0=
@@ -0,0 +1,13 @@
1
+ import { Injectable, signal } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class AXWysiwygService {
4
+ constructor() {
5
+ this.wysiwyg = signal(null);
6
+ }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
8
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygService }); }
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygService, decorators: [{
11
+ type: Injectable
12
+ }] });
13
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3d5c2l3eWcvc3JjL2xpYi93eXNpd3lnL3d5c2l3eWcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFHbkQsTUFBTSxPQUFPLGdCQUFnQjtJQUQ3QjtRQUVFLFlBQU8sR0FBRyxNQUFNLENBQW1CLElBQUksQ0FBQyxDQUFDO0tBQzFDOzhHQUZZLGdCQUFnQjtrSEFBaEIsZ0JBQWdCOzsyRkFBaEIsZ0JBQWdCO2tCQUQ1QixVQUFVIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQVhXeXNpd3lnIH0gZnJvbSAnQGFjb3JleC9jZGsvd3lzaXd5Zyc7XG5pbXBvcnQgeyBJbmplY3RhYmxlLCBzaWduYWwgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIEFYV3lzaXd5Z1NlcnZpY2Uge1xuICB3eXNpd3lnID0gc2lnbmFsPEFYV3lzaXd5ZyB8IG51bGw+KG51bGwpO1xufVxuIl19
@@ -0,0 +1,27 @@
1
+ import { AXButtonModule } from '@acorex/components/button';
2
+ import { AXDecoratorModule } from '@acorex/components/decorators';
3
+ import { AXSelectBoxModule } from '@acorex/components/select-box';
4
+ import { NgModule } from '@angular/core';
5
+ import { FormsModule } from '@angular/forms';
6
+ import { AXWysiwygContainerComponent } from './wysiwyg/wysiwyg-container/wysiwyg-container.component';
7
+ import { AXWysiwygToolbarComponent } from './wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component';
8
+ import { AXWysiwygViewComponent } from './wysiwyg/wysiwyg-view/wysiwyg-view.component';
9
+ import { AXWysiwygService } from './wysiwyg/wysiwyg.service';
10
+ import * as i0 from "@angular/core";
11
+ const COMPONENT = [AXWysiwygContainerComponent, AXWysiwygViewComponent, AXWysiwygToolbarComponent];
12
+ const MODULES = [AXButtonModule, AXDecoratorModule, AXSelectBoxModule, FormsModule];
13
+ export class AXWysiwygModule {
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
15
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygModule, declarations: [AXWysiwygContainerComponent, AXWysiwygViewComponent, AXWysiwygToolbarComponent], imports: [AXButtonModule, AXDecoratorModule, AXSelectBoxModule, FormsModule], exports: [AXWysiwygContainerComponent, AXWysiwygViewComponent, AXWysiwygToolbarComponent] }); }
16
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygModule, providers: [AXWysiwygService], imports: [MODULES] }); }
17
+ }
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXWysiwygModule, decorators: [{
19
+ type: NgModule,
20
+ args: [{
21
+ declarations: [...COMPONENT],
22
+ imports: [...MODULES],
23
+ exports: [...COMPONENT],
24
+ providers: [AXWysiwygService],
25
+ }]
26
+ }] });
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3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3J0IHsgQVhXeXNpd3lnVmlld0NvbXBvbmVudCB9IGZyb20gJy4vd3lzaXd5Zy93eXNpd3lnLXZpZXcvd3lzaXd5Zy12aWV3LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBBWFd5c2l3eWdTZXJ2aWNlIH0gZnJvbSAnLi93eXNpd3lnL3d5c2l3eWcuc2VydmljZSc7XG5cbmNvbnN0IENPTVBPTkVOVCA9IFtBWFd5c2l3eWdDb250YWluZXJDb21wb25lbnQsIEFYV3lzaXd5Z1ZpZXdDb21wb25lbnQsIEFYV3lzaXd5Z1Rvb2xiYXJDb21wb25lbnRdO1xuY29uc3QgTU9EVUxFUyA9IFtBWEJ1dHRvbk1vZHVsZSwgQVhEZWNvcmF0b3JNb2R1bGUsIEFYU2VsZWN0Qm94TW9kdWxlLCBGb3Jtc01vZHVsZV07XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogWy4uLkNPTVBPTkVOVF0sXG4gIGltcG9ydHM6IFsuLi5NT0RVTEVTXSxcbiAgZXhwb3J0czogWy4uLkNPTVBPTkVOVF0sXG4gIHByb3ZpZGVyczogW0FYV3lzaXd5Z1NlcnZpY2VdLFxufSlcbmV4cG9ydCBjbGFzcyBBWFd5c2l3eWdNb2R1bGUge31cbiJdfQ==
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-action-sheet.mjs","sources":["../../../../libs/components/action-sheet/src/lib/action-sheet.component.ts","../../../../libs/components/action-sheet/src/lib/action-sheet.component.html","../../../../libs/components/action-sheet/src/lib/action-sheet.service.ts","../../../../libs/components/action-sheet/src/lib/action-sheet.module.ts","../../../../libs/components/action-sheet/src/acorex-components-action-sheet.ts"],"sourcesContent":["import { AXClosbaleComponent, AXComponentCloseEvent, AXFocusableComponent, MXBaseComponent } from '@acorex/components/common';\nimport { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';\nimport { CdkPortalOutletAttachedRef, ComponentPortal, Portal, TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n HostListener,\n Inject,\n OnInit,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXActionSheetData, AXActionSheetItem } from './action-sheet.class';\n\n@Component({\n selector: 'ax-action-sheet',\n templateUrl: './action-sheet.component.html',\n styleUrls: ['./action-sheet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXClosbaleComponent,\n useExisting: AXActionSheetComponent,\n },\n {\n provide: AXFocusableComponent,\n useExisting: AXActionSheetComponent,\n },\n ],\n})\nexport class AXActionSheetComponent extends MXBaseComponent implements OnInit {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n protected _selectedPortal: Portal<any>;\n\n private _componentRef: unknown;\n\n /**\n * @ignore\n */\n constructor(\n @Inject(DIALOG_DATA)\n protected data: AXActionSheetData,\n private dialogRef: DialogRef<AXComponentCloseEvent>,\n ) {\n super();\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n if (this.data.content) {\n if (this.data.content instanceof TemplateRef) {\n this._selectedPortal = new TemplatePortal(this.data.content, this.getViewContainer(), {\n $implicit: this.data,\n ref: this,\n });\n this.cdr.markForCheck();\n } else if (typeof this.data.content === 'function') {\n this._selectedPortal = new ComponentPortal(this.data.content);\n this.cdr.markForCheck();\n }\n }\n }\n\n @HostListener('keydown.escape')\n protected onKeydownHandler() {\n const focusedOrHasFocused = this.getHostElement().matches(':focus-within');\n if (this.data.closeButton && focusedOrHasFocused) {\n this.close(null);\n }\n }\n\n _handleAttched(ref: CdkPortalOutletAttachedRef) {\n ref = ref as ComponentRef<any>;\n if (ref.instance) {\n this._componentRef = ref.instance;\n Object.assign(this._componentRef, this.data);\n Object.assign(this._componentRef, { _isPopup: true });\n if (ref.instance.onClosed) {\n ref.instance.onClosed.subscribe((e: AXComponentCloseEvent) => {\n this.close(e);\n });\n }\n }\n }\n\n onItemClick(item: AXActionSheetItem) {\n this.close(item);\n if (item?.onClick) item.onClick();\n }\n\n close(e) {\n this.dialogRef.close({\n component: this._componentRef,\n htmlElement: this.getHostElement(),\n data: e,\n });\n }\n}\n","@if (data.header) {\n <ax-header>\n <ax-prefix>\n <ax-title>{{ data.title | translate | async }}</ax-title>\n\n @if (data.subTitle) {\n <ax-sub-title>\n {{ data.subTitle }}\n </ax-sub-title>\n }\n </ax-prefix>\n @if (data.closeButton) {\n <ax-suffix>\n <ax-close-button></ax-close-button>\n </ax-suffix>\n }\n </ax-header>\n}\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n<div class=\"ax-action-sheet-items\">\n @for (item of data.items; let i = $index; track i) {\n <div\n class=\"ax-action-sheet-item ax-{{ item.color }}\"\n [class.ax-state-disabled]=\"item.disabled\"\n [tabindex]=\"i\"\n (click)=\"onItemClick(item)\"\n >\n @if (item.icon) {\n <span class=\"item-icon\" [class]=\"item.icon\"></span>\n }\n <span class=\"item-text\">{{ item.text | translate | async }}</span>\n </div>\n }\n</div>\n","import { Dialog } from '@angular/cdk/dialog';\nimport { GlobalPositionStrategy } from '@angular/cdk/overlay';\nimport { Injectable, inject } from '@angular/core';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport { AXActionSheetConfig } from './action-sheet.class';\nimport { AXActionSheetComponent } from './action-sheet.component';\n\nexport interface AXActionSheetDialogRef {\n close: (e?) => void;\n closed: Subject<any>;\n}\n\n@Injectable()\nexport class AXActionSheetService {\n private dialog: Dialog = inject(Dialog);\n\n open(config: AXActionSheetConfig): Promise<AXActionSheetDialogRef> {\n const defaultConfig: AXActionSheetConfig = {\n title: 'action-sheet.title',\n closeButton: true,\n closeOnBackdropClick: true,\n header: true,\n };\n config = Object.assign(defaultConfig, config);\n\n const dialogRef = this.dialog.open(AXActionSheetComponent, {\n data: config,\n autoFocus: 'first-tabbable',\n restoreFocus: true,\n role: 'dialog',\n ariaModal: true,\n closeOnNavigation: true,\n closeOnDestroy: true,\n hasBackdrop: true,\n panelClass: ['ax-actionsheet-panel'],\n disableClose: config.closeOnBackdropClick ? false : true,\n positionStrategy: new GlobalPositionStrategy().centerHorizontally().bottom(),\n });\n const promise = new Promise<AXActionSheetDialogRef>((resolve) => {\n const closed = new BehaviorSubject<any>(null);\n const axDialogRef: AXActionSheetDialogRef = {\n close: (e) => {\n dialogRef.close(e);\n },\n closed,\n };\n dialogRef.closed.subscribe((d: any) => {\n closed.next({ data: d.data.data });\n if (resolve) {\n resolve(axDialogRef);\n }\n });\n });\n return promise;\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { NgModule } from '@angular/core';\n\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { DialogModule } from '@angular/cdk/dialog';\nimport { AsyncPipe } from '@angular/common';\nimport { AXActionSheetComponent } from './action-sheet.component';\nimport { AXActionSheetService } from './action-sheet.service';\n\nconst MODULES = [\n AXCommonModule,\n DragDropModule,\n A11yModule,\n AXButtonModule,\n PortalModule,\n AXDecoratorModule,\n AXTranslationModule,\n DialogModule,\n AsyncPipe,\n];\n\n@NgModule({\n declarations: [AXActionSheetComponent],\n imports: [...MODULES],\n exports: [AXActionSheetComponent],\n providers: [AXActionSheetService],\n})\nexport class AXActionSheetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAgCM,MAAO,sBAAuB,SAAQ,eAAe,CAAA;AAMzD;;AAEG;IACH,WAEY,CAAA,IAAuB,EACzB,SAA2C,EAAA;AAEnD,QAAA,KAAK,EAAE,CAAC;QAHE,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAmB;QACzB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAkC;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,CALf,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAZrC,cAAc;YACd,cAAc;YACd,UAAU;YACV,cAAc;YACd,YAAY;YACZ,iBAAiB;YACjB,mBAAmB;YACnB,YAAY;AACZ,YAAA,SAAS,aAMC,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGrB,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,EAFnB,SAAA,EAAA,CAAC,oBAAoB,CAAC,YAfjC,cAAc;YACd,cAAc;YACd,UAAU;YACV,cAAc;YACd,YAAY;YACZ,iBAAiB;YACjB,mBAAmB;YACnB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAUD,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;oBACrB,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,SAAS,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-action-sheet.mjs","sources":["../../../../libs/components/action-sheet/src/lib/action-sheet.component.ts","../../../../libs/components/action-sheet/src/lib/action-sheet.component.html","../../../../libs/components/action-sheet/src/lib/action-sheet.service.ts","../../../../libs/components/action-sheet/src/lib/action-sheet.module.ts","../../../../libs/components/action-sheet/src/acorex-components-action-sheet.ts"],"sourcesContent":["import { AXClosbaleComponent, AXComponentCloseEvent, AXFocusableComponent, MXBaseComponent } from '@acorex/components/common';\nimport { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';\nimport { CdkPortalOutletAttachedRef, ComponentPortal, Portal, TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n HostListener,\n Inject,\n OnInit,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXActionSheetConfig, AXActionSheetItem } from './action-sheet.class';\n\n@Component({\n selector: 'ax-action-sheet',\n templateUrl: './action-sheet.component.html',\n styleUrls: ['./action-sheet.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: AXClosbaleComponent,\n useExisting: AXActionSheetComponent,\n },\n {\n provide: AXFocusableComponent,\n useExisting: AXActionSheetComponent,\n },\n ],\n})\nexport class AXActionSheetComponent extends MXBaseComponent implements OnInit {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n protected _selectedPortal: Portal<any>;\n\n private _componentRef: unknown;\n\n /**\n * @ignore\n */\n constructor(\n @Inject(DIALOG_DATA)\n protected data: AXActionSheetConfig,\n private dialogRef: DialogRef<AXComponentCloseEvent>,\n ) {\n super();\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n if (this.data.content) {\n if (this.data.content instanceof TemplateRef) {\n this._selectedPortal = new TemplatePortal(this.data.content, this.getViewContainer(), {\n $implicit: this.data,\n ref: this,\n });\n this.cdr.markForCheck();\n } else if (typeof this.data.content === 'function') {\n this._selectedPortal = new ComponentPortal(this.data.content);\n this.cdr.markForCheck();\n }\n }\n }\n\n @HostListener('keydown.escape')\n protected onKeydownHandler() {\n const focusedOrHasFocused = this.getHostElement().matches(':focus-within');\n if (this.data.closeButton && focusedOrHasFocused) {\n this.close(null);\n }\n }\n\n _handleAttched(ref: CdkPortalOutletAttachedRef) {\n ref = ref as ComponentRef<any>;\n if (ref.instance) {\n this._componentRef = ref.instance;\n Object.assign(this._componentRef, this.data);\n Object.assign(this._componentRef, { _isPopup: true });\n if (ref.instance.onClosed) {\n ref.instance.onClosed.subscribe((e: AXComponentCloseEvent) => {\n this.close(e);\n });\n }\n }\n }\n\n onItemClick(item: AXActionSheetItem) {\n this.close(item);\n if (item?.onClick) item.onClick();\n }\n\n close(e) {\n this.dialogRef.close({\n component: this._componentRef,\n htmlElement: this.getHostElement(),\n data: e,\n });\n }\n}\n","@if (data.header) {\n <ax-header>\n <ax-prefix>\n <ax-title>{{ data.title | translate | async }}</ax-title>\n\n @if (data.subTitle) {\n <ax-sub-title>\n {{ data.subTitle }}\n </ax-sub-title>\n }\n </ax-prefix>\n @if (data.closeButton) {\n <ax-suffix>\n <ax-close-button></ax-close-button>\n </ax-suffix>\n }\n </ax-header>\n}\n<ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n<div class=\"ax-action-sheet-items\">\n @for (item of data.items; let i = $index; track i) {\n <div\n class=\"ax-action-sheet-item ax-{{ item.color }}\"\n [class.ax-state-disabled]=\"item.disabled\"\n [tabindex]=\"i\"\n (click)=\"onItemClick(item)\"\n >\n @if (item.icon) {\n <span class=\"item-icon\" [class]=\"item.icon\"></span>\n }\n <span class=\"item-text\">{{ item.text | translate | async }}</span>\n </div>\n }\n</div>\n","import { Dialog } from '@angular/cdk/dialog';\nimport { GlobalPositionStrategy } from '@angular/cdk/overlay';\nimport { Injectable, inject } from '@angular/core';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport { AXActionSheetConfig } from './action-sheet.class';\nimport { AXActionSheetComponent } from './action-sheet.component';\n\nexport interface AXActionSheetDialogRef {\n close: (e?) => void;\n closed: Subject<any>;\n}\n\n@Injectable()\nexport class AXActionSheetService {\n private dialog: Dialog = inject(Dialog);\n\n open(config: AXActionSheetConfig): Promise<AXActionSheetDialogRef> {\n const defaultConfig: AXActionSheetConfig = {\n title: 'action-sheet.title',\n closeButton: true,\n closeOnBackdropClick: true,\n header: true,\n };\n config = Object.assign(defaultConfig, config);\n\n const dialogRef = this.dialog.open(AXActionSheetComponent, {\n data: config,\n autoFocus: 'first-tabbable',\n restoreFocus: true,\n role: 'dialog',\n ariaModal: true,\n closeOnNavigation: true,\n closeOnDestroy: true,\n hasBackdrop: true,\n panelClass: ['ax-actionsheet-panel'],\n disableClose: config.closeOnBackdropClick ? false : true,\n positionStrategy: new GlobalPositionStrategy().centerHorizontally().bottom(),\n });\n const promise = new Promise<AXActionSheetDialogRef>((resolve) => {\n const closed = new BehaviorSubject<any>(null);\n const axDialogRef: AXActionSheetDialogRef = {\n close: (e) => {\n dialogRef.close(e);\n },\n closed,\n };\n dialogRef.closed.subscribe((d: any) => {\n closed.next({ data: d.data.data });\n if (resolve) {\n resolve(axDialogRef);\n }\n });\n });\n return promise;\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { NgModule } from '@angular/core';\n\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { DialogModule } from '@angular/cdk/dialog';\nimport { AsyncPipe } from '@angular/common';\nimport { AXActionSheetComponent } from './action-sheet.component';\nimport { AXActionSheetService } from './action-sheet.service';\n\nconst MODULES = [\n AXCommonModule,\n DragDropModule,\n A11yModule,\n AXButtonModule,\n PortalModule,\n AXDecoratorModule,\n AXTranslationModule,\n DialogModule,\n AsyncPipe,\n];\n\n@NgModule({\n declarations: [AXActionSheetComponent],\n imports: [...MODULES],\n exports: [AXActionSheetComponent],\n providers: [AXActionSheetService],\n})\nexport class AXActionSheetModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAgCM,MAAO,sBAAuB,SAAQ,eAAe,CAAA;AAMzD;;AAEG;IACH,WAEY,CAAA,IAAyB,EAC3B,SAA2C,EAAA;AAEnD,QAAA,KAAK,EAAE,CAAC;QAHE,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAqB;QAC3B,IAAS,CAAA,SA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