@acorex/platform 19.1.6 → 19.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/auth/lib/permission/index.d.ts +4 -3
  2. package/auth/lib/permission/permission.service.d.ts +18 -0
  3. package/auth/lib/permission/permission.types.d.ts +5 -0
  4. package/common/index.d.ts +3 -2
  5. package/common/lib/app/application.types.d.ts +16 -4
  6. package/common/lib/layout/menu/index.d.ts +4 -2
  7. package/common/lib/layout/menu/search-definition.provider.d.ts +4 -0
  8. package/common/lib/layout/menu/search.provider.d.ts +20 -0
  9. package/common/lib/search/index.d.ts +5 -0
  10. package/common/lib/search/search-definition.builder.d.ts +23 -0
  11. package/common/lib/search/search-definition.provider.d.ts +18 -0
  12. package/common/lib/search/search.provider.d.ts +4 -0
  13. package/common/lib/search/search.service.d.ts +12 -0
  14. package/common/lib/search/search.types.d.ts +42 -0
  15. package/common/lib/settings/search-definition.provider.d.ts +4 -0
  16. package/common/lib/settings/search.provider.d.ts +10 -0
  17. package/fesm2022/acorex-platform-auth.mjs +78 -43
  18. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-common.mjs +1439 -2234
  20. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-layout-entity.mjs +14 -5
  22. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  23. package/fesm2022/acorex-platform-layout-search.mjs +183 -0
  24. package/fesm2022/acorex-platform-layout-search.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-layout-setting.mjs +21 -20
  26. package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
  27. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs} +5 -5
  28. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CtpkzjOm.mjs → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs} +12 -12
  30. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CtpkzjOm.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs} +3 -3
  32. package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs.map} +1 -1
  33. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs} +4 -4
  34. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs.map} +1 -1
  35. package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs +62 -0
  36. package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs.map +1 -0
  37. package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs} +3 -3
  38. package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs.map} +1 -1
  39. package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs} +5 -5
  40. package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs.map} +1 -1
  41. package/fesm2022/acorex-platform-themes-default.mjs +28 -15
  42. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  43. package/fesm2022/acorex-platform-themes-shared.mjs +2 -2
  44. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  45. package/fesm2022/acorex-platform-widgets.mjs +74 -85
  46. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  47. package/layout/search/README.md +3 -0
  48. package/layout/search/index.d.ts +1 -0
  49. package/layout/search/lib/index.d.ts +3 -0
  50. package/layout/search/lib/search-slot.component.d.ts +9 -0
  51. package/layout/search/lib/search.config.d.ts +5 -0
  52. package/layout/search/lib/search.module.d.ts +11 -0
  53. package/layout/search/lib/search.viewmodel.d.ts +13 -0
  54. package/layout/search/lib/workflows/search.workflow.d.ts +10 -0
  55. package/layout/setting/lib/setting.viewmodel.d.ts +1 -1
  56. package/package.json +12 -8
  57. package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +11 -0
  58. package/themes/shared/index.d.ts +1 -1
  59. package/themes/shared/lib/components/layout-elements/layout-list.component.d.ts +1 -1
  60. package/themes/shared/lib/components/{theme-slot.component.d.ts → slots/theme-slot.component.d.ts} +7 -7
  61. package/widgets/lib/widgets/layout/block/block-widget-designer.component.d.ts +0 -1
  62. package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +6 -4
  63. package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +6 -5
  64. package/common/lib/schema/component-loader.d.ts +0 -24
  65. package/common/lib/schema/entity/entity-registery.service.d.ts +0 -34
  66. package/common/lib/schema/entity/entity.class.d.ts +0 -161
  67. package/common/lib/schema/entity/entity.loader.d.ts +0 -9
  68. package/common/lib/schema/entity/index.d.ts +0 -3
  69. package/common/lib/schema/formats.d.ts +0 -8
  70. package/common/lib/schema/index.d.ts +0 -8
  71. package/common/lib/schema/schema-registery.service.d.ts +0 -20
  72. package/common/lib/schema/schema.module.d.ts +0 -12
  73. package/common/lib/schema/schema.types.d.ts +0 -16
  74. package/common/lib/schema/widget/index.d.ts +0 -5
  75. package/common/lib/schema/widget/widget-base.d.ts +0 -45
  76. package/common/lib/schema/widget/widget-column-renderer.d.ts +0 -34
  77. package/common/lib/schema/widget/widget-filter-renderer.d.ts +0 -30
  78. package/common/lib/schema/widget/widget-renderer.d.ts +0 -27
  79. package/common/lib/schema/widget/widget-token.d.ts +0 -16
  80. package/common/lib/schema/widgets/avatar/avatar-widget-edit.component.d.ts +0 -16
  81. package/common/lib/schema/widgets/avatar/avatar-widget-view.component.d.ts +0 -13
  82. package/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.d.ts +0 -11
  83. package/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.d.ts +0 -6
  84. package/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.d.ts +0 -11
  85. package/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +0 -18
  86. package/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.d.ts +0 -12
  87. package/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.d.ts +0 -12
  88. package/common/lib/schema/widgets/common-widgets.module.d.ts +0 -32
  89. package/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.d.ts +0 -11
  90. package/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.d.ts +0 -24
  91. package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +0 -19
  92. package/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.d.ts +0 -11
  93. package/common/lib/schema/widgets/email/email-widget-column.component.d.ts +0 -16
  94. package/common/lib/schema/widgets/email/email-widget-edit.component.d.ts +0 -26
  95. package/common/lib/schema/widgets/email/email-widget-view.component.d.ts +0 -16
  96. package/common/lib/schema/widgets/file/file-widget-column.component.d.ts +0 -8
  97. package/common/lib/schema/widgets/file/file-widget-edit.component.d.ts +0 -17
  98. package/common/lib/schema/widgets/file/file-widget-filter.component.d.ts +0 -6
  99. package/common/lib/schema/widgets/file/file-widget-view.component.d.ts +0 -17
  100. package/common/lib/schema/widgets/gallery/gallery-widget-edit.component.d.ts +0 -15
  101. package/common/lib/schema/widgets/gallery/gallery-widget-filter.component.d.ts +0 -6
  102. package/common/lib/schema/widgets/gallery/gallery-widget-types.d.ts +0 -10
  103. package/common/lib/schema/widgets/gallery/gallery-widget-view.component.d.ts +0 -16
  104. package/common/lib/schema/widgets/index.d.ts +0 -1
  105. package/common/lib/schema/widgets/lookup/lookup-widget-column.component.d.ts +0 -17
  106. package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +0 -18
  107. package/common/lib/schema/widgets/lookup/lookup-widget-filter.component.d.ts +0 -17
  108. package/common/lib/schema/widgets/lookup/lookup-widget-view.component.d.ts +0 -18
  109. package/common/lib/schema/widgets/map/map-widget-edit.component.d.ts +0 -15
  110. package/common/lib/schema/widgets/map/map-widget-view.component.d.ts +0 -17
  111. package/common/lib/schema/widgets/messenger/messenger-widget-column.component.d.ts +0 -15
  112. package/common/lib/schema/widgets/messenger/messenger-widget-edit.component.d.ts +0 -14
  113. package/common/lib/schema/widgets/messenger/messenger-widget-view.component.d.ts +0 -17
  114. package/common/lib/schema/widgets/number/number-widget-edit.component.d.ts +0 -7
  115. package/common/lib/schema/widgets/number/number-widget-view.component.d.ts +0 -8
  116. package/common/lib/schema/widgets/password/change-password.component.d.ts +0 -16
  117. package/common/lib/schema/widgets/password/password-widget-column.component.d.ts +0 -14
  118. package/common/lib/schema/widgets/password/password-widget-edit.component.d.ts +0 -6
  119. package/common/lib/schema/widgets/password/password-widget-view.component.d.ts +0 -18
  120. package/common/lib/schema/widgets/phone/phone-widget-column.component.d.ts +0 -15
  121. package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +0 -29
  122. package/common/lib/schema/widgets/phone/phone-widget-view.component.d.ts +0 -18
  123. package/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.d.ts +0 -11
  124. package/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.d.ts +0 -33
  125. package/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.d.ts +0 -10
  126. package/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.d.ts +0 -16
  127. package/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.d.ts +0 -12
  128. package/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.d.ts +0 -9
  129. package/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.d.ts +0 -15
  130. package/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +0 -19
  131. package/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.d.ts +0 -8
  132. package/common/lib/schema/widgets/text/largetext-widget-edit.component.d.ts +0 -6
  133. package/common/lib/schema/widgets/text/text-widget-column.component.d.ts +0 -12
  134. package/common/lib/schema/widgets/text/text-widget-edit.component.d.ts +0 -21
  135. package/common/lib/schema/widgets/text/text-widget-view.component.d.ts +0 -11
  136. package/common/lib/schema/widgets/toggle/toggle-widget-column.component.d.ts +0 -11
  137. package/common/lib/schema/widgets/toggle/toggle-widget-edit.component.d.ts +0 -6
  138. package/common/lib/schema/widgets/toggle/toggle-widget-view.component.d.ts +0 -11
  139. package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs +0 -166
  140. package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs.map +0 -1
  141. package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs +0 -64
  142. package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs.map +0 -1
  143. package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs +0 -155
  144. package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs.map +0 -1
  145. package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs +0 -176
  146. package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs.map +0 -1
  147. package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs +0 -55
  148. package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs.map +0 -1
  149. package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs +0 -24
  150. package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs.map +0 -1
  151. package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs +0 -49
  152. package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs.map +0 -1
  153. package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs +0 -46
  154. package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs.map +0 -1
  155. package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs +0 -178
  156. package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs.map +0 -1
  157. package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs +0 -286
  158. package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs.map +0 -1
  159. package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs +0 -73
  160. package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs.map +0 -1
  161. package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs +0 -75
  162. package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs.map +0 -1
  163. package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs +0 -249
  164. package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs.map +0 -1
  165. package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs +0 -109
  166. package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs.map +0 -1
  167. package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs +0 -29
  168. package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs.map +0 -1
  169. package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs +0 -202
  170. package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs.map +0 -1
  171. package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs +0 -29
  172. package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs.map +0 -1
  173. package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs +0 -155
  174. package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs.map +0 -1
  175. package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs +0 -191
  176. package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs.map +0 -1
  177. package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs +0 -29
  178. package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs.map +0 -1
  179. package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs +0 -175
  180. package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs.map +0 -1
  181. package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs +0 -38
  182. package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs.map +0 -1
  183. package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs +0 -45
  184. package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs.map +0 -1
  185. package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs +0 -96
  186. package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs.map +0 -1
  187. package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs +0 -161
  188. package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs.map +0 -1
  189. package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs +0 -56
  190. package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs.map +0 -1
  191. package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs +0 -94
  192. package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs.map +0 -1
  193. package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs +0 -66
  194. package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs.map +0 -1
  195. package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs +0 -73
  196. package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs.map +0 -1
  197. package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs +0 -138
  198. package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs.map +0 -1
  199. package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs +0 -133
  200. package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs.map +0 -1
  201. package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs +0 -48
  202. package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs.map +0 -1
  203. package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs +0 -137
  204. package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs.map +0 -1
  205. package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs +0 -33
  206. package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs.map +0 -1
  207. package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs +0 -68
  208. package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs.map +0 -1
  209. package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs +0 -43
  210. package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs.map +0 -1
  211. package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs +0 -110
  212. package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs.map +0 -1
  213. package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs +0 -93
  214. package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs.map +0 -1
  215. package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs +0 -249
  216. package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs.map +0 -1
  217. package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs +0 -124
  218. package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs.map +0 -1
  219. package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs +0 -63
  220. package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs.map +0 -1
  221. package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CJZJzh1K.mjs +0 -69
  222. package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CJZJzh1K.mjs.map +0 -1
  223. package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs +0 -37
  224. package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs.map +0 -1
  225. package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs +0 -47
  226. package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs.map +0 -1
  227. package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs +0 -55
  228. package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs.map +0 -1
  229. package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs +0 -47
  230. package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs.map +0 -1
  231. package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs +0 -47
  232. package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs.map +0 -1
  233. package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs +0 -130
  234. package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map +0 -1
  235. package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs +0 -43
  236. package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map +0 -1
  237. package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs +0 -127
  238. package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map +0 -1
  239. package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs +0 -49
  240. package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map +0 -1
  241. package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs +0 -162
  242. package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map +0 -1
  243. package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs +0 -69
  244. package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs.map +0 -1
  245. package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs +0 -59
  246. package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs.map +0 -1
  247. package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs +0 -27
  248. package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs.map +0 -1
  249. package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs +0 -51
  250. package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewChild,\n WritableSignal,\n effect,\n signal,\n} from '@angular/core';\nimport SignaturePad from 'signature_pad';\n@Component({\n template: `\n <div class=\"ax-flex ax-gap-3\">\n @if(editMode()){\n <canvas width=\"300\" class=\"ax-border ax-rounded-md\" #padCanvas></canvas>\n <div class=\"ax-flex ax-flex-col ax-col-span-1 ax-gap-3\">\n <ax-button class=\"ax-sm\" (onClick)=\"downloadSVG()\" look=\"outline\" color=\"primary\">\n <ax-icon class=\"fas fa-download\"></ax-icon>\n </ax-button>\n <ax-button class=\"ax-sm\" (onClick)=\"undo()\" look=\"outline\" color=\"primary\">\n <ax-icon class=\"fas fa-rotate-left\"></ax-icon>\n </ax-button>\n <ax-button class=\"ax-sm\" (onClick)=\"clear()\" look=\"outline\" color=\"danger\">\n <ax-icon class=\"fas fa-trash ax-text-danger\"></ax-icon>\n </ax-button>\n </div>\n }@else{\n <div class=\"ax-border ax-rounded\">\n <ax-image [src]=\"value\">\n <ax-overlay class=\"ax-flex ax-justify-center\">\n <ax-button look=\"twotone\" color=\"primary\" (onClick)=\"switchEditMode()\">\n <ax-icon class=\"far fa-edit\"> </ax-icon>\n </ax-button>\n </ax-overlay>\n </ax-image>\n </div>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule],\n inputs: []\n})\nexport class AXPSignaturePadWidgetEditComponent extends AXPWidgetEditBase {\n @ViewChild('padCanvas') padCanvas!: ElementRef<HTMLCanvasElement>;\n protected signaturePad!: SignaturePad;\n protected editMode: WritableSignal<boolean> = signal(false);\n\n private changeModeEffect = effect(() => {\n if (this.editMode()) {\n setTimeout(() => {\n this.initPad();\n }, 100);\n }\n });\n\n async ngOnInit() {\n this.editMode.set(this.value ? false : true);\n }\n\n private getDataURL() {\n return this.signaturePad.toDataURL('image/svg+xml');\n }\n\n async initPad() {\n const pad = await import('signature_pad');\n this.signaturePad = new pad.default(this.padCanvas.nativeElement, {});\n this.signaturePad.addEventListener('afterUpdateStroke', () => {\n this.value = this.getDataURL();\n });\n }\n\n protected clear() {\n this.signaturePad.clear();\n this.value = this.getDataURL();\n }\n\n protected downloadSVG() {\n const link = document.createElement('a');\n link.href = this.getDataURL();\n link.target = '_blank';\n link.download = 'download';\n link.click();\n }\n\n protected async switchEditMode() {\n this.editMode.update((prev) => !prev);\n }\n\n protected undo() {\n let data = this.signaturePad.toData();\n if (data) {\n data.pop();\n this.signaturePad.fromData(data);\n this.value = this.getDataURL();\n }\n }\n}\n"],"names":["i1","i3"],"mappings":";;;;;;;;;;;AAgDM,MAAO,kCAAmC,SAAQ,iBAAiB,CAAA;AAjCzE,IAAA,WAAA,GAAA;;AAoCY,QAAA,IAAA,CAAA,QAAQ,GAA4B,MAAM,CAAC,KAAK,CAAC;AAEnD,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,MAAK;AACrC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;gBACnB,UAAU,CAAC,MAAK;oBACd,IAAI,CAAC,OAAO,EAAE;iBACf,EAAE,GAAG,CAAC;;AAEX,SAAC,CAAC;AA2CH;AAzCC,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;;IAGtC,UAAU,GAAA;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC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AA,KAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAG/D,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAjC9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,CAAC;AACzE,oBAAA,MAAM,EAAE;AACX,iBAAA;8BAEyB,SAAS,EAAA,CAAA;sBAAhC,SAAS;uBAAC,WAAW;;;;;"}
@@ -1,43 +0,0 @@
1
- import * as i2 from '@acorex/components/image';
2
- import { AXImageModule } from '@acorex/components/image';
3
- import { AXPWidgetBase } from './acorex-platform-common.mjs';
4
- import { CommonModule } from '@angular/common';
5
- import * as i0 from '@angular/core';
6
- import { Component, ChangeDetectionStrategy } from '@angular/core';
7
-
8
- class AXPSignaturePadWidgetViewComponent extends AXPWidgetBase {
9
- render() {
10
- const dataURL = this.rawValue;
11
- this.src = dataURL;
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSignaturePadWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSignaturePadWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
15
- <div class="ax-w-72 ax-h-36 ax-border ax-rounded-md ax-flex ax-justify-center ax-items-center">
16
- @if(src){
17
- <ax-image [src]="src"></ax-image>
18
- }@else{
19
- <span>Not Set!</span>
20
- }
21
- </div>
22
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSignaturePadWidgetViewComponent, decorators: [{
25
- type: Component,
26
- args: [{
27
- template: `
28
- <div class="ax-w-72 ax-h-36 ax-border ax-rounded-md ax-flex ax-justify-center ax-items-center">
29
- @if(src){
30
- <ax-image [src]="src"></ax-image>
31
- }@else{
32
- <span>Not Set!</span>
33
- }
34
- </div>
35
- `,
36
- changeDetection: ChangeDetectionStrategy.OnPush,
37
- imports: [CommonModule, AXImageModule],
38
- inputs: []
39
- }]
40
- }] });
41
-
42
- export { AXPSignaturePadWidgetViewComponent };
43
- //# sourceMappingURL=acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.ts"],"sourcesContent":["import { AXImageModule } from '@acorex/components/image';\nimport { AXPWidgetBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n template: `\n <div class=\"ax-w-72 ax-h-36 ax-border ax-rounded-md ax-flex ax-justify-center ax-items-center\">\n @if(src){\n <ax-image [src]=\"src\"></ax-image>\n }@else{\n <span>Not Set!</span>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXImageModule],\n inputs: []\n})\nexport class AXPSignaturePadWidgetViewComponent extends AXPWidgetBase {\n protected src: any;\n\n override render() {\n const dataURL = this.rawValue;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;AACtC,oBAAA,MAAM,EAAE;AACX,iBAAA;;;;;"}
@@ -1,127 +0,0 @@
1
- import * as i2$1 from '@acorex/components/button';
2
- import { AXButtonModule } from '@acorex/components/button';
3
- import * as i5 from '@acorex/components/decorators';
4
- import { AXDecoratorModule } from '@acorex/components/decorators';
5
- import * as i4$1 from '@acorex/components/popover';
6
- import { AXPopoverModule } from '@acorex/components/popover';
7
- import { AXSelectBoxModule } from '@acorex/components/select-box';
8
- import * as i5$1 from '@acorex/components/selection-list';
9
- import { AXSelectionListModule } from '@acorex/components/selection-list';
10
- import * as i4 from '@acorex/components/text-box';
11
- import { AXTextBoxModule } from '@acorex/components/text-box';
12
- import * as i0 from '@angular/core';
13
- import { Component, ChangeDetectionStrategy } from '@angular/core';
14
- import * as i2 from '@angular/forms';
15
- import { FormsModule } from '@angular/forms';
16
- import { AXPWidgetFilterBase } from './acorex-platform-common.mjs';
17
-
18
- class AXPStringWidgetFilterComponent extends AXPWidgetFilterBase {
19
- constructor() {
20
- super(...arguments);
21
- this.operations = [];
22
- }
23
- getOperatorHasValue() {
24
- const operator = this.operations.find((op) => op.name == this.operator);
25
- return !operator || operator.hasValue ? true : false;
26
- }
27
- render() {
28
- this.operations = this.schema.filterOptions.operators;
29
- }
30
- ngOnInit() {
31
- this.clearValue();
32
- }
33
- clearValue() {
34
- if (!this.getOperatorHasValue())
35
- this.value = '';
36
- }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPStringWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPStringWidgetFilterComponent, isStandalone: true, selector: "axp-string-widget-filter", inputs: { value: "value", operator: "operator" }, outputs: { valueChange: "valueChange", operatorChange: "operatorChange" }, usesInheritance: true, ngImport: i0, template: `
39
- <div class="ax-flex ax-items-center">
40
- <ax-text-box class="ax-flex-1" [disabled]="!this.getOperatorHasValue()" [(ngModel)]="value">
41
- <ax-clear-button></ax-clear-button>
42
- </ax-text-box>
43
- @if(operations.length){
44
- <ax-button #changeOperator look="blank" color="default" class="ax-sm">
45
- <ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
46
- </ax-button>
47
- <ax-popover
48
- #operatorsPopover
49
- [target]="changeOperator"
50
- [openOn]="'toggle'"
51
- [closeOn]="'clickOut'"
52
- [adaptivityEnabled]="true"
53
- >
54
- <div
55
- class="ax-max-h-max ax-overflow-auto ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]"
56
- >
57
- <ax-selection-list
58
- class=""
59
- [valueField]="'name'"
60
- [textField]="'title'"
61
- [(ngModel)]="operator"
62
- (ngModelChange)="operatorsPopover.close(); clearValue()"
63
- [direction]="'vertical'"
64
- [items]="operations"
65
- [multiple]="false"
66
- ></ax-selection-list>
67
- </div>
68
- </ax-popover>
69
- }
70
- </div>
71
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.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: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i4$1.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXSelectionListModule }, { kind: "component", type: i5$1.AXSelectionListComponent, selector: "ax-selection-list", inputs: ["id", "name", "disabled", "readonly", "tabIndex", "size", "value", "valueField", "textField", "disabledField", "readonlyField", "multiple", "direction", "customTemplate", "showControl", "items", "look"], outputs: ["onValueChanged", "onBlur", "onFocus"] }, { kind: "ngmodule", type: AXSelectBoxModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
72
- }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPStringWidgetFilterComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- selector: 'axp-string-widget-filter',
77
- template: `
78
- <div class="ax-flex ax-items-center">
79
- <ax-text-box class="ax-flex-1" [disabled]="!this.getOperatorHasValue()" [(ngModel)]="value">
80
- <ax-clear-button></ax-clear-button>
81
- </ax-text-box>
82
- @if(operations.length){
83
- <ax-button #changeOperator look="blank" color="default" class="ax-sm">
84
- <ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
85
- </ax-button>
86
- <ax-popover
87
- #operatorsPopover
88
- [target]="changeOperator"
89
- [openOn]="'toggle'"
90
- [closeOn]="'clickOut'"
91
- [adaptivityEnabled]="true"
92
- >
93
- <div
94
- class="ax-max-h-max ax-overflow-auto ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]"
95
- >
96
- <ax-selection-list
97
- class=""
98
- [valueField]="'name'"
99
- [textField]="'title'"
100
- [(ngModel)]="operator"
101
- (ngModelChange)="operatorsPopover.close(); clearValue()"
102
- [direction]="'vertical'"
103
- [items]="operations"
104
- [multiple]="false"
105
- ></ax-selection-list>
106
- </div>
107
- </ax-popover>
108
- }
109
- </div>
110
- `,
111
- changeDetection: ChangeDetectionStrategy.OnPush,
112
- imports: [
113
- AXTextBoxModule,
114
- FormsModule,
115
- AXDecoratorModule,
116
- AXButtonModule,
117
- AXPopoverModule,
118
- AXSelectionListModule,
119
- AXSelectBoxModule,
120
- ],
121
- outputs: ['valueChange', 'operatorChange'],
122
- inputs: ['value', 'operator']
123
- }]
124
- }] });
125
-
126
- export { AXPStringWidgetFilterComponent };
127
- //# sourceMappingURL=acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/common-widget-filter/string-widget-filter.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXSelectionListModule } from '@acorex/components/selection-list';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPWidgetFilterBase } from '../../widget/widget-base';\nimport { AXPFilterOperator } from '../../../app';\n\n@Component({\n selector: 'axp-string-widget-filter',\n template: `\n <div class=\"ax-flex ax-items-center\">\n <ax-text-box class=\"ax-flex-1\" [disabled]=\"!this.getOperatorHasValue()\" [(ngModel)]=\"value\">\n <ax-clear-button></ax-clear-button>\n </ax-text-box>\n @if(operations.length){\n <ax-button #changeOperator look=\"blank\" color=\"default\" class=\"ax-sm\">\n <ax-icon class=\"fa-solid fa-ellipsis-vertical\"></ax-icon>\n </ax-button>\n <ax-popover\n #operatorsPopover\n [target]=\"changeOperator\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n [adaptivityEnabled]=\"true\"\n >\n <div\n class=\"ax-max-h-max ax-overflow-auto ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]\"\n >\n <ax-selection-list\n class=\"\"\n [valueField]=\"'name'\"\n [textField]=\"'title'\"\n [(ngModel)]=\"operator\"\n (ngModelChange)=\"operatorsPopover.close(); clearValue()\"\n [direction]=\"'vertical'\"\n [items]=\"operations\"\n [multiple]=\"false\"\n ></ax-selection-list>\n </div>\n </ax-popover>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n AXTextBoxModule,\n FormsModule,\n AXDecoratorModule,\n AXButtonModule,\n AXPopoverModule,\n AXSelectionListModule,\n AXSelectBoxModule,\n ],\n outputs: ['valueChange', 'operatorChange'],\n inputs: ['value', 'operator']\n})\nexport class AXPStringWidgetFilterComponent extends AXPWidgetFilterBase<string | boolean> {\n operations: AXPFilterOperator[] = [];\n\n protected getOperatorHasValue(): boolean {\n const operator = this.operations.find((op) => op.name == this.operator);\n return !operator || operator.hasValue ? true : false;\n }\n\n override render() {\n this.operations = this.schema.filterOptions.operators;\n }\n\n ngOnInit(): void {\n this.clearValue();\n }\n\n clearValue() {\n if (!this.getOperatorHasValue()) this.value = '';\n }\n}\n"],"names":["i1","i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AA4DM,MAAO,8BAA+B,SAAQ,mBAAqC,CAAA;AAjDzF,IAAA,WAAA,GAAA;;QAkDE,IAAU,CAAA,UAAA,GAAwB,EAAE;AAkBrC;IAhBW,mBAA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EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKZ,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAjD1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACL,eAAe;wBACf,WAAW;wBACX,iBAAiB;wBACjB,cAAc;wBACd,eAAe;wBACf,qBAAqB;wBACrB,iBAAiB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;AAC1C,oBAAA,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU;AAC/B,iBAAA;;;;;"}
@@ -1,49 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy } from '@angular/core';
3
- import { AXPWidgetBase } from './acorex-platform-common.mjs';
4
-
5
- class AXPTextWidgetColumnComponent extends AXPWidgetBase {
6
- render() {
7
- if (this.rawValue == null) {
8
- this.convertedValue = null;
9
- return;
10
- }
11
- if (this.isArray(this.rawValue)) {
12
- if (this.multiple) {
13
- this.convertedValue = this.rawValue.map((value) => this.formatValue(value)).join(',');
14
- }
15
- else {
16
- this.convertedValue = this.formatValue(this.rawValue[0]);
17
- }
18
- }
19
- else {
20
- this.convertedValue = this.formatValue(this.rawValue);
21
- }
22
- }
23
- formatValue(value) {
24
- if (this.formats?.default) {
25
- return this.formatService.format(this.formats.default, this.schema.dataType, this.context);
26
- }
27
- else {
28
- return new String(value).toString();
29
- }
30
- }
31
- isArray(val) {
32
- return Array.isArray(val);
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPTextWidgetColumnComponent, isStandalone: true, selector: "axp-text-widget-column", inputs: { context: "context", value: "value", multiple: "multiple", width: "width", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: ` <span [title]="convertedValue">{{ convertedValue }}</span> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetColumnComponent, decorators: [{
38
- type: Component,
39
- args: [{
40
- selector: 'axp-text-widget-column',
41
- template: ` <span [title]="convertedValue">{{ convertedValue }}</span> `,
42
- standalone: true,
43
- inputs: ['context', 'value', 'multiple', 'width', 'allowResizing'],
44
- changeDetection: ChangeDetectionStrategy.OnPush,
45
- }]
46
- }] });
47
-
48
- export { AXPTextWidgetColumnComponent };
49
- //# sourceMappingURL=acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/text/text-widget-column.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPWidgetBase } from '../../widget/widget-base';\n\n@Component({\n selector: 'axp-text-widget-column',\n template: ` <span [title]=\"convertedValue\">{{ convertedValue }}</span> `,\n standalone: true,\n inputs: ['context', 'value', 'multiple', 'width', 'allowResizing'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPTextWidgetColumnComponent extends AXPWidgetBase {\n protected convertedValue!: string | string[] | null;\n protected multiple!: boolean;\n protected allowResizing!: boolean;\n\n override render() {\n if (this.rawValue == null) {\n this.convertedValue = null;\n return;\n }\n if (this.isArray(this.rawValue)) {\n if (this.multiple) {\n this.convertedValue = this.rawValue.map((value: string) => this.formatValue(value)).join(',');\n } else {\n this.convertedValue = this.formatValue(this.rawValue[0]);\n }\n } else {\n this.convertedValue = this.formatValue(this.rawValue);\n }\n }\n\n private formatValue(value: string): string {\n if (this.formats?.default) {\n return this.formatService.format(this.formats.default, this.schema.dataType as any, this.context);\n } else {\n return new String(value).toString();\n }\n }\n\n protected isArray(val: any) {\n return Array.isArray(val);\n }\n}\n"],"names":[],"mappings":";;;;AAUM,MAAO,4BAA6B,SAAQ,aAAa,CAAA;IAKpD,MAAM,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;AACzB,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI;YAC1B;;QAEF,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AAC/B,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAa,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;;iBACxF;AACL,gBAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;;;aAErD;YACL,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;;;AAIjD,IAAA,WAAW,CAAC,KAAa,EAAA;AAC/B,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE;YACzB,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAe,EAAE,IAAI,CAAC,OAAO,CAAC;;aAC5F;YACL,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;;;AAI7B,IAAA,OAAO,CAAC,GAAQ,EAAA;AACxB,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;;8GA9BhB,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,+NAL7B,CAA8D,4DAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAK7D,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAPxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,CAA8D,4DAAA,CAAA;AACxE,oBAAA,UAAU,EAAE,IAAI;oBAChB,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,CAAC;oBAClE,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;;;"}
@@ -1,162 +0,0 @@
1
- import * as i2$1 from '@acorex/components/button';
2
- import { AXButtonModule } from '@acorex/components/button';
3
- import * as i5 from '@acorex/components/decorators';
4
- import { AXDecoratorModule } from '@acorex/components/decorators';
5
- import * as i3 from '@acorex/components/form';
6
- import { AXFormModule } from '@acorex/components/form';
7
- import * as i4 from '@acorex/components/text-box';
8
- import { AXTextBoxModule } from '@acorex/components/text-box';
9
- import { AXValidationService, AXValidationModule } from '@acorex/core/validation';
10
- import { AXPWidgetEditBase, AXPDataGenerator } from './acorex-platform-common.mjs';
11
- import * as i1 from '@angular/common';
12
- import { CommonModule } from '@angular/common';
13
- import * as i0 from '@angular/core';
14
- import { inject, signal, effect, Component, ChangeDetectionStrategy } from '@angular/core';
15
- import * as i2 from '@angular/forms';
16
- import { FormsModule } from '@angular/forms';
17
-
18
- class AXPTextWidgetEditComponent extends AXPWidgetEditBase {
19
- constructor() {
20
- super(...arguments);
21
- this.validationService = inject(AXValidationService);
22
- this.convertedValue = signal([]);
23
- this.changeValueEffect = effect(() => {
24
- if (this.multiple) {
25
- this.value = this.convertedValue().map((i) => i.text);
26
- }
27
- else {
28
- this.value = this.convertedValue().map((i) => i.text)[0];
29
- }
30
- });
31
- }
32
- ngOnInit() {
33
- if (!this.value || this.value?.length == 0) {
34
- this.convertedValue.set([{ text: '', id: AXPDataGenerator.uuid() }]);
35
- }
36
- if (Array.isArray(this.value)) {
37
- this.convertedValue.set(this.value.map((item, index) => ({ text: item, id: AXPDataGenerator.uuid() })));
38
- }
39
- else {
40
- this.convertedValue.set([{ text: this.value, id: AXPDataGenerator.uuid() }]);
41
- }
42
- }
43
- handleAddItem() {
44
- this.convertedValue.update((prev) => [...prev, { text: '', id: AXPDataGenerator.uuid() }]);
45
- }
46
- handleRemoveItem(item) {
47
- this.convertedValue.update((prev) => prev.filter((c) => c.id != item.id));
48
- }
49
- handleValueChange(e, id) {
50
- if (e.isUserInteraction) {
51
- this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { text: e.value, id: i.id } : i)));
52
- }
53
- }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
55
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTextWidgetEditComponent, isStandalone: true, selector: "axp-text-widget-edit", usesInheritance: true, ngImport: i0, template: `
56
- <div class="ax-grid ax-grid-cols-12 ax-gap-4">
57
- @if(multiple){ @for(item of convertedValue();track $index){
58
- <ng-container [ngTemplateOutlet]="textBoxTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
59
- } } @else {
60
- <ng-container
61
- [ngTemplateOutlet]="textBoxTemplate"
62
- [ngTemplateOutletContext]="{ $implicit: convertedValue()[0] }"
63
- ></ng-container>
64
- }
65
- <ng-template #textBoxTemplate let-item>
66
- <div [class]="multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'">
67
- <ax-text-box [(ngModel)]="item.text" (onValueChanged)="handleValueChange($event, item.id)">
68
- <ax-clear-button></ax-clear-button>
69
- @for(vl of validations;track $index) {
70
- <ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
71
- }
72
- </ax-text-box>
73
- </div>
74
- @if(multiple){
75
- <ax-button
76
- look="twotone"
77
- color="danger"
78
- (onClick)="handleRemoveItem(item)"
79
- class=" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end"
80
- >
81
- <ax-icon icon="fa-regular fa-xmark"></ax-icon>
82
- </ax-button>
83
- }
84
- </ng-template>
85
- @if(multiple){
86
- <ax-button
87
- [text]="!convertedValue().length ? 'Add New' : 'Add Another'"
88
- look="twotone"
89
- (onClick)="handleAddItem()"
90
- class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
91
- >
92
- <ax-prefix>
93
- <ax-icon class="fa-solid fa-add"></ax-icon>
94
- </ax-prefix>
95
- </ax-button>
96
- }
97
- </div>
98
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
99
- }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetEditComponent, decorators: [{
101
- type: Component,
102
- args: [{
103
- selector: 'axp-text-widget-edit',
104
- template: `
105
- <div class="ax-grid ax-grid-cols-12 ax-gap-4">
106
- @if(multiple){ @for(item of convertedValue();track $index){
107
- <ng-container [ngTemplateOutlet]="textBoxTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
108
- } } @else {
109
- <ng-container
110
- [ngTemplateOutlet]="textBoxTemplate"
111
- [ngTemplateOutletContext]="{ $implicit: convertedValue()[0] }"
112
- ></ng-container>
113
- }
114
- <ng-template #textBoxTemplate let-item>
115
- <div [class]="multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'">
116
- <ax-text-box [(ngModel)]="item.text" (onValueChanged)="handleValueChange($event, item.id)">
117
- <ax-clear-button></ax-clear-button>
118
- @for(vl of validations;track $index) {
119
- <ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
120
- }
121
- </ax-text-box>
122
- </div>
123
- @if(multiple){
124
- <ax-button
125
- look="twotone"
126
- color="danger"
127
- (onClick)="handleRemoveItem(item)"
128
- class=" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end"
129
- >
130
- <ax-icon icon="fa-regular fa-xmark"></ax-icon>
131
- </ax-button>
132
- }
133
- </ng-template>
134
- @if(multiple){
135
- <ax-button
136
- [text]="!convertedValue().length ? 'Add New' : 'Add Another'"
137
- look="twotone"
138
- (onClick)="handleAddItem()"
139
- class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
140
- >
141
- <ax-prefix>
142
- <ax-icon class="fa-solid fa-add"></ax-icon>
143
- </ax-prefix>
144
- </ax-button>
145
- }
146
- </div>
147
- `,
148
- changeDetection: ChangeDetectionStrategy.OnPush,
149
- imports: [
150
- CommonModule,
151
- AXTextBoxModule,
152
- FormsModule,
153
- AXFormModule,
154
- AXDecoratorModule,
155
- AXValidationModule,
156
- AXButtonModule,
157
- ]
158
- }]
159
- }] });
160
-
161
- export { AXPTextWidgetEditComponent };
162
- //# sourceMappingURL=acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/text/text-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXValidationModule, AXValidationService } from '@acorex/core/validation';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, effect, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPDataGenerator } from '../../../utils';\n\n@Component({\n selector: 'axp-text-widget-edit',\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @if(multiple){ @for(item of convertedValue();track $index){\n <ng-container [ngTemplateOutlet]=\"textBoxTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n } } @else {\n <ng-container\n [ngTemplateOutlet]=\"textBoxTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: convertedValue()[0] }\"\n ></ng-container>\n }\n <ng-template #textBoxTemplate let-item>\n <div [class]=\"multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'\">\n <ax-text-box [(ngModel)]=\"item.text\" (onValueChanged)=\"handleValueChange($event, item.id)\">\n <ax-clear-button></ax-clear-button>\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n </ax-text-box>\n </div>\n @if(multiple){\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n }\n </ng-template>\n @if(multiple){\n <ax-button\n [text]=\"!convertedValue().length ? 'Add New' : 'Add Another'\"\n look=\"twotone\"\n (onClick)=\"handleAddItem()\"\n class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXTextBoxModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n AXValidationModule,\n AXButtonModule,\n ]\n})\nexport class AXPTextWidgetEditComponent extends AXPWidgetEditBase {\n protected validationService = inject(AXValidationService);\n\n protected multiple!: boolean;\n protected validationMessage?: string | null;\n protected convertedValue: WritableSignal<{ text: string; id: string }[]> = signal([]);\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n this.value = this.convertedValue().map((i) => i.text);\n } else {\n this.value = this.convertedValue().map((i) => i.text)[0];\n }\n });\n\n ngOnInit(): void {\n if (!this.value || this.value?.length == 0) {\n this.convertedValue.set([{ text: '', id: AXPDataGenerator.uuid() }]);\n }\n if (Array.isArray(this.value)) {\n this.convertedValue.set(this.value.map((item, index) => ({ text: item, id: AXPDataGenerator.uuid() })));\n } else {\n this.convertedValue.set([{ text: this.value, id: AXPDataGenerator.uuid() }]);\n }\n }\n\n protected handleAddItem() {\n this.convertedValue.update((prev) => [...prev, { text: '', id: AXPDataGenerator.uuid() }]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c: any) => c.id != item.id));\n }\n\n protected handleValueChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { text: e.value, id: i.id } : i)));\n }\n }\n}\n"],"names":["i2","i3","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;AAqEM,MAAO,0BAA2B,SAAQ,iBAAiB,CAAA;AAzDjE,IAAA,WAAA,GAAA;;AA0DY,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAI/C,QA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;;;AA2CX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,kBAAkB;wBAClB,cAAc;AACjB;AACJ,iBAAA;;;;;"}
@@ -1,69 +0,0 @@
1
- import { AXPWidgetBase } from './acorex-platform-common.mjs';
2
- import * as i0 from '@angular/core';
3
- import { Component, ChangeDetectionStrategy } from '@angular/core';
4
-
5
- class AXPTextWidgetViewComponent extends AXPWidgetBase {
6
- async render() {
7
- const rawValue = this.rawValue;
8
- if (rawValue == null) {
9
- this.convertedValue = null;
10
- return;
11
- }
12
- if (this.isArray(rawValue)) {
13
- // if (this.multiple) {
14
- this.convertedValue = rawValue.map((value) => this.formatValue(value));
15
- // } else {
16
- // this.convertedValue = this.formatValue(rawValue[0].text);
17
- // }
18
- }
19
- else {
20
- this.convertedValue = this.formatValue(rawValue);
21
- }
22
- }
23
- formatValue(value) {
24
- if (this.formats?.default) {
25
- return this.formatService.format(value, this.schema.dataType, this.formats.default);
26
- }
27
- else {
28
- return new String(value).toString();
29
- }
30
- }
31
- isArray(val) {
32
- return Array.isArray(val);
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTextWidgetViewComponent, isStandalone: true, selector: "axp-text-widget-view", inputs: { context: "context", value: "value", multiple: "multiple" }, usesInheritance: true, ngImport: i0, template: `
36
- @if(multiple && isArray(convertedValue)){
37
- <div class="ax-flex ax-flex-col ax-gap-1">
38
- @for(text of convertedValue; track $index){
39
- <span>{{ text }}</span>
40
- }
41
- </div>
42
- }@else{
43
- <span>{{ convertedValue }}</span>
44
- }
45
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
46
- }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetViewComponent, decorators: [{
48
- type: Component,
49
- args: [{
50
- selector: 'axp-text-widget-view',
51
- template: `
52
- @if(multiple && isArray(convertedValue)){
53
- <div class="ax-flex ax-flex-col ax-gap-1">
54
- @for(text of convertedValue; track $index){
55
- <span>{{ text }}</span>
56
- }
57
- </div>
58
- }@else{
59
- <span>{{ convertedValue }}</span>
60
- }
61
- `,
62
- standalone: true,
63
- inputs: ['context', 'value', 'multiple'],
64
- changeDetection: ChangeDetectionStrategy.OnPush,
65
- }]
66
- }] });
67
-
68
- export { AXPTextWidgetViewComponent };
69
- //# sourceMappingURL=acorex-platform-common-text-widget-view.component-BH0LTD80.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-text-widget-view.component-BH0LTD80.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/text/text-widget-view.component.ts"],"sourcesContent":["import { AXPWidgetBase } from '../../widget/widget-base';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'axp-text-widget-view',\n template: `\n @if(multiple && isArray(convertedValue)){\n <div class=\"ax-flex ax-flex-col ax-gap-1\">\n @for(text of convertedValue; track $index){\n <span>{{ text }}</span>\n }\n </div>\n }@else{\n <span>{{ convertedValue }}</span>\n }\n `,\n standalone: true,\n inputs: ['context', 'value', 'multiple'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPTextWidgetViewComponent extends AXPWidgetBase {\n protected convertedValue!: string | string[] | null;\n protected multiple!: boolean;\n\n override async render() {\n const rawValue = this.rawValue;\n if (rawValue == null) {\n this.convertedValue = null;\n return;\n }\n if (this.isArray(rawValue)) {\n // if (this.multiple) {\n this.convertedValue = rawValue.map((value: string) => this.formatValue(value));\n // } else {\n // this.convertedValue = this.formatValue(rawValue[0].text);\n // }\n } else {\n this.convertedValue = this.formatValue(rawValue);\n }\n }\n\n private formatValue(value: string): string {\n if (this.formats?.default) {\n return this.formatService.format(value, this.schema.dataType as any, this.formats.default);\n } else {\n return new String(value).toString();\n }\n }\n\n protected isArray(val: any) {\n return Array.isArray(val);\n }\n}\n"],"names":[],"mappings":";;;;AAoBM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;AAIlD,IAAA,MAAM,MAAM,GAAA;AACnB,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;AAC9B,QAAA,IAAI,QAAQ,IAAI,IAAI,EAAE;AACpB,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI;YAC1B;;AAEF,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;;AAE1B,YAAA,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAa,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;;aAIzE;YACL,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;;;AAI5C,IAAA,WAAW,CAAC,KAAa,EAAA;AAC/B,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE;YACzB,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,QAAe,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;;aACrF;YACL,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;;;AAI7B,IAAA,OAAO,CAAC,GAAQ,EAAA;AACxB,QAAA,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;;8GA9BhB,0BAA0B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,EAf3B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKU,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAjBtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,QAAQ,EAAE;;;;;;;;;;AAUT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;oBACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;;;"}
@@ -1,59 +0,0 @@
1
- import * as i1 from '@acorex/components/badge';
2
- import { AXBadgeModule } from '@acorex/components/badge';
3
- import * as i5 from '@acorex/components/decorators';
4
- import { AXDecoratorModule } from '@acorex/components/decorators';
5
- import { AXPWidgetBase } from './acorex-platform-common.mjs';
6
- import * as i0 from '@angular/core';
7
- import { Component, ChangeDetectionStrategy } from '@angular/core';
8
-
9
- class AXPToggleWidgetColumnComponent extends AXPWidgetBase {
10
- render() {
11
- this.value = !!this.rawValue;
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPToggleWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPToggleWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", falsyText: "falsyText", trulyText: "trulyText", negative: "negative", width: "width", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: `
15
- <div>
16
- @if(value){ @if(trulyText){
17
- <ax-badge [text]="trulyText" [color]="negative ? 'danger' : 'success'" [look]="'twotone'"></ax-badge>
18
- }@else { @if(negative){
19
- <ax-icon class="fa-solid fa-check ax-text-sanger"> </ax-icon>
20
- }@else {
21
- <ax-icon class="fa-solid fa-check ax-text-success"> </ax-icon>
22
- } } }@else { @if(falsyText){
23
- <ax-badge [text]="falsyText" [color]="negative ? 'success' : 'danger'" [look]="'twotone'"></ax-badge>
24
- }@else { @if(negative){
25
- <ax-icon class="fa-solid fa-xmark ax-text-success"> </ax-icon>
26
- }@else {
27
- <ax-icon class="fa-solid fa-xmark ax-text-danger"> </ax-icon>
28
- } } }
29
- </div>
30
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPToggleWidgetColumnComponent, decorators: [{
33
- type: Component,
34
- args: [{
35
- template: `
36
- <div>
37
- @if(value){ @if(trulyText){
38
- <ax-badge [text]="trulyText" [color]="negative ? 'danger' : 'success'" [look]="'twotone'"></ax-badge>
39
- }@else { @if(negative){
40
- <ax-icon class="fa-solid fa-check ax-text-sanger"> </ax-icon>
41
- }@else {
42
- <ax-icon class="fa-solid fa-check ax-text-success"> </ax-icon>
43
- } } }@else { @if(falsyText){
44
- <ax-badge [text]="falsyText" [color]="negative ? 'success' : 'danger'" [look]="'twotone'"></ax-badge>
45
- }@else { @if(negative){
46
- <ax-icon class="fa-solid fa-xmark ax-text-success"> </ax-icon>
47
- }@else {
48
- <ax-icon class="fa-solid fa-xmark ax-text-danger"> </ax-icon>
49
- } } }
50
- </div>
51
- `,
52
- changeDetection: ChangeDetectionStrategy.OnPush,
53
- imports: [AXBadgeModule, AXDecoratorModule],
54
- inputs: ['context', 'falsyText', 'trulyText', 'negative', 'width', 'allowResizing']
55
- }]
56
- }] });
57
-
58
- export { AXPToggleWidgetColumnComponent };
59
- //# sourceMappingURL=acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/toggle/toggle-widget-column.component.ts"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPWidgetBase } from '../../widget/widget-base';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n template: `\n <div>\n @if(value){ @if(trulyText){\n <ax-badge [text]=\"trulyText\" [color]=\"negative ? 'danger' : 'success'\" [look]=\"'twotone'\"></ax-badge>\n }@else { @if(negative){\n <ax-icon class=\"fa-solid fa-check ax-text-sanger\"> </ax-icon>\n }@else {\n <ax-icon class=\"fa-solid fa-check ax-text-success\"> </ax-icon>\n } } }@else { @if(falsyText){\n <ax-badge [text]=\"falsyText\" [color]=\"negative ? 'success' : 'danger'\" [look]=\"'twotone'\"></ax-badge>\n }@else { @if(negative){\n <ax-icon class=\"fa-solid fa-xmark ax-text-success\"> </ax-icon>\n }@else {\n <ax-icon class=\"fa-solid fa-xmark ax-text-danger\"> </ax-icon>\n } } }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXBadgeModule, AXDecoratorModule],\n inputs: ['context', 'falsyText', 'trulyText', 'negative', 'width', 'allowResizing']\n})\nexport class AXPToggleWidgetColumnComponent extends AXPWidgetBase {\n protected value!: boolean;\n protected negative!: boolean;\n protected falsyText!: string;\n protected trulyText!: string;\n\n protected override render(): void {\n this.value = !!this.rawValue;\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;AA0BM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;IAM5C,MAAM,GAAA;QACvB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ;;8GAPnB,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,EArB7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;;;;;;GAgBX,EAEW,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,aAAa,yIAAE,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGjC,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAtB1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