@acorex/platform 18.0.12 → 18.0.14

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 (548) hide show
  1. package/common/lib/app/application.types.d.ts +3 -2
  2. package/common/lib/layout/sticky.directive.d.ts +1 -1
  3. package/common/lib/schema/widget/widget-renderer.d.ts +1 -0
  4. package/esm2022/common/lib/app/application.types.mjs +1 -1
  5. package/esm2022/common/lib/layout/sticky.directive.mjs +2 -2
  6. package/esm2022/common/lib/schema/widget/widget-renderer.mjs +20 -16
  7. package/esm2022/common/lib/schema/widgets/text/text-widget-column.component.mjs +3 -3
  8. package/esm2022/layout/builder/lib/builder/builder.service.mjs +15 -12
  9. package/esm2022/layout/builder/lib/builder/index.mjs +7 -6
  10. package/esm2022/layout/builder/lib/builder/widget-catalog.mjs +34 -0
  11. package/esm2022/layout/builder/lib/builder/widget-groups.mjs +27 -0
  12. package/esm2022/layout/builder/lib/builder/widget-registery.service.mjs +3 -3
  13. package/esm2022/layout/builder/lib/builder/widget.types.mjs +6 -5
  14. package/esm2022/layout/designer/index.mjs +3 -3
  15. package/esm2022/layout/designer/lib/board/board.component.mjs +5 -40
  16. package/esm2022/layout/designer/lib/command.mjs +185 -0
  17. package/esm2022/layout/designer/lib/designer/designer.component.mjs +55 -5
  18. package/esm2022/layout/designer/lib/designer.service.mjs +139 -96
  19. package/esm2022/layout/designer/lib/header-menu/header-menu.component.mjs +1 -1
  20. package/esm2022/layout/designer/lib/{buttons → helpers}/add-widget-button/add-widget-button.component.mjs +7 -7
  21. package/esm2022/layout/designer/lib/helpers/grid-drawer/grid-drawer.component.mjs +82 -0
  22. package/esm2022/layout/designer/lib/history/history.component.mjs +11 -4
  23. package/esm2022/layout/designer/lib/outline/outline.component.mjs +16 -15
  24. package/esm2022/layout/designer/lib/pages/pages.component.mjs +28 -0
  25. package/esm2022/layout/designer/lib/preview/preview.component.mjs +20 -0
  26. package/esm2022/layout/designer/lib/property-viewer/widget-property-viewer.component.mjs +5 -2
  27. package/esm2022/layout/designer/lib/widget-designer-renderer.component.mjs +16 -8
  28. package/esm2022/layout/designer/lib/widget-picker/widget-picker.component.mjs +80 -6
  29. package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.mjs +6 -4
  30. package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +17 -7
  31. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +1 -1
  32. package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +10 -5
  33. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +1 -2
  34. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +2 -2
  35. package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +1 -1
  36. package/esm2022/widgets/lib/properties/editors.props.mjs +81 -45
  37. package/esm2022/widgets/lib/properties/layout.props.mjs +165 -0
  38. package/esm2022/widgets/lib/properties/table-column.props.mjs +3 -2
  39. package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +52 -0
  40. package/esm2022/widgets/lib/widgets/actions/button/button-widget.config.mjs +27 -0
  41. package/esm2022/widgets/lib/widgets/actions/button/index.mjs +3 -0
  42. package/esm2022/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-column.component.mjs +1 -1
  43. package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-edit.component.mjs +122 -0
  44. package/esm2022/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-filter.component.mjs +1 -1
  45. package/esm2022/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-print.component.mjs +1 -1
  46. package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-view.component.mjs +215 -0
  47. package/esm2022/widgets/lib/widgets/advance/file/file-box-widget.config.mjs +51 -0
  48. package/esm2022/widgets/lib/widgets/advance/file/file-box-widget.service.mjs +3 -0
  49. package/esm2022/widgets/lib/widgets/advance/file/index.mjs +8 -0
  50. package/esm2022/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-column.component.mjs +1 -1
  51. package/esm2022/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-edit.component.mjs +1 -1
  52. package/esm2022/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-filter.component.mjs +1 -1
  53. package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-print.component.mjs +19 -0
  54. package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-types.mjs +2 -0
  55. package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-view.component.mjs +160 -0
  56. package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget.config.mjs +29 -0
  57. package/esm2022/widgets/lib/widgets/advance/gallery/index.mjs +7 -0
  58. package/esm2022/widgets/lib/widgets/advance/map/index.mjs +7 -0
  59. package/esm2022/widgets/lib/widgets/{editors/link-widget/link-widget-print.component.mjs → advance/map/map-box-widget-column.component.mjs} +5 -5
  60. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-edit.component.mjs +171 -0
  61. package/esm2022/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-filter.component.mjs +1 -1
  62. package/esm2022/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-print.component.mjs +1 -1
  63. package/esm2022/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-view.component.mjs +3 -3
  64. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget.config.mjs +31 -0
  65. package/esm2022/widgets/lib/widgets/advance/qrcode/index.mjs +3 -0
  66. package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.mjs +51 -0
  67. package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget.config.mjs +62 -0
  68. package/esm2022/widgets/lib/widgets/advance/signature/index.mjs +7 -0
  69. package/esm2022/widgets/lib/widgets/{editors/select-box-widget/select-box-widget-print.component.mjs → advance/signature/signature-pad-widget-column.component.mjs} +5 -5
  70. package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-edit.component.mjs +142 -0
  71. package/esm2022/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-filter.component.mjs +1 -1
  72. package/esm2022/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-print.component.mjs +1 -1
  73. package/esm2022/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-view.component.mjs +1 -1
  74. package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget.config.mjs +31 -0
  75. package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget.config.mjs +9 -12
  76. package/esm2022/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-column.component.mjs +1 -1
  77. package/esm2022/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-edit.component.mjs +1 -1
  78. package/esm2022/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-filter.component.mjs +1 -1
  79. package/esm2022/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-print.component.mjs +1 -1
  80. package/esm2022/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-view.component.mjs +1 -1
  81. package/esm2022/widgets/lib/widgets/editors/color/color-box-widget.config.mjs +31 -0
  82. package/esm2022/widgets/lib/widgets/editors/color/index.mjs +7 -0
  83. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-column.component.mjs +36 -0
  84. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +297 -0
  85. package/esm2022/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-filter.component.mjs +1 -1
  86. package/esm2022/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-print.component.mjs +1 -1
  87. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +122 -0
  88. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget.config.mjs +81 -0
  89. package/esm2022/widgets/lib/widgets/editors/contact/contact.type.mjs +2 -0
  90. package/esm2022/widgets/lib/widgets/editors/contact/index.mjs +7 -0
  91. package/esm2022/widgets/lib/widgets/editors/{contact-widget → contact}/popup-component.mjs +1 -1
  92. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.mjs +44 -0
  93. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.mjs +133 -0
  94. package/esm2022/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-filter.component.mjs +1 -1
  95. package/esm2022/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-print.component.mjs +1 -1
  96. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.mjs +54 -0
  97. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget.config.mjs +40 -0
  98. package/esm2022/widgets/lib/widgets/editors/date-time/index.mjs +7 -0
  99. package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-column.component.mjs +66 -0
  100. package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-edit.component.mjs +249 -0
  101. package/esm2022/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-filter.component.mjs +1 -1
  102. package/esm2022/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-print.component.mjs +1 -1
  103. package/esm2022/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-view.component.mjs +1 -1
  104. package/esm2022/widgets/lib/widgets/editors/email/email-box-widget.config.mjs +39 -0
  105. package/esm2022/widgets/lib/widgets/editors/email/index.mjs +7 -0
  106. package/esm2022/widgets/lib/widgets/editors/large-text/index.mjs +7 -0
  107. package/esm2022/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-column.component.mjs +1 -1
  108. package/esm2022/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-edit.component.mjs +1 -1
  109. package/esm2022/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-filter.component.mjs +1 -1
  110. package/esm2022/widgets/lib/widgets/editors/{map-box-widget/map-box-widget-column.component.mjs → large-text/large-text-widget-print.component.mjs} +5 -5
  111. package/esm2022/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-view.component.mjs +1 -1
  112. package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget.config.mjs +39 -0
  113. package/esm2022/widgets/lib/widgets/editors/link/index.mjs +7 -0
  114. package/esm2022/widgets/lib/widgets/editors/{link-widget → link}/link-widget-column.component.mjs +1 -1
  115. package/esm2022/widgets/lib/widgets/editors/link/link-widget-edit.component.mjs +391 -0
  116. package/esm2022/widgets/lib/widgets/editors/link/link-widget-filter.component.mjs +20 -0
  117. package/esm2022/widgets/lib/widgets/editors/link/link-widget-print.component.mjs +19 -0
  118. package/esm2022/widgets/lib/widgets/editors/{link-widget → link}/link-widget-view.component.mjs +1 -1
  119. package/esm2022/widgets/lib/widgets/editors/link/link-widget.config.mjs +29 -0
  120. package/esm2022/widgets/lib/widgets/editors/number/index.mjs +7 -0
  121. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-column.component.mjs +38 -0
  122. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-edit.component.mjs +157 -0
  123. package/esm2022/widgets/lib/widgets/{layout/repeater-widget/repeater-widget-edit.component.mjs → editors/number/number-box-widget-filter.component.mjs} +5 -5
  124. package/esm2022/widgets/lib/widgets/editors/{number-box-widget → number}/number-box-widget-print.component.mjs +1 -1
  125. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-view.component.mjs +56 -0
  126. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget.config.mjs +39 -0
  127. package/esm2022/widgets/lib/widgets/editors/password/index.mjs +7 -0
  128. package/esm2022/widgets/lib/widgets/editors/{phone-box-widget/phone-box-widget-print.component.mjs → password/password-box-widget-column.component.mjs} +5 -5
  129. package/esm2022/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-edit.component.mjs +1 -1
  130. package/esm2022/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-filter.component.mjs +1 -1
  131. package/esm2022/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-print.component.mjs +1 -1
  132. package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-view.component.mjs +76 -0
  133. package/esm2022/widgets/lib/widgets/editors/password/password-box-widget.config.mjs +38 -0
  134. package/esm2022/widgets/lib/widgets/editors/phone/index.mjs +7 -0
  135. package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-column.component.mjs +66 -0
  136. package/esm2022/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-edit.component.mjs +1 -1
  137. package/esm2022/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-filter.component.mjs +1 -1
  138. package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-print.component.mjs +19 -0
  139. package/esm2022/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-view.component.mjs +1 -1
  140. package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget.config.mjs +32 -0
  141. package/esm2022/widgets/lib/widgets/editors/rich-text/index.mjs +7 -0
  142. package/esm2022/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-popup.component.mjs +1 -1
  143. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-column.component.mjs +46 -0
  144. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.mjs +67 -0
  145. package/esm2022/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-filter.component.mjs +1 -1
  146. package/esm2022/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-print.component.mjs +1 -1
  147. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-view.component.mjs +45 -0
  148. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget.config.mjs +39 -0
  149. package/esm2022/widgets/lib/widgets/editors/select/index.mjs +7 -0
  150. package/esm2022/widgets/lib/widgets/editors/{select-box-widget → select}/select-box-widget-column.component.mjs +1 -1
  151. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-edit.component.mjs +85 -0
  152. package/esm2022/widgets/lib/widgets/editors/{gallery-widget/gallery-widget-print.component.mjs → select/select-box-widget-filter.component.mjs} +5 -5
  153. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-print.component.mjs +19 -0
  154. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-view.component.mjs +60 -0
  155. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget.config.mjs +38 -0
  156. package/esm2022/widgets/lib/widgets/editors/selection-list/index.mjs +7 -0
  157. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.mjs +41 -0
  158. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.mjs +72 -0
  159. package/esm2022/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-filter.component.mjs +1 -1
  160. package/esm2022/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-print.component.mjs +1 -1
  161. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-view.component.mjs +44 -0
  162. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget.config.mjs +29 -0
  163. package/esm2022/widgets/lib/widgets/editors/text/index.mjs +7 -0
  164. package/esm2022/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-column.component.mjs +1 -1
  165. package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-edit.component.mjs +121 -0
  166. package/esm2022/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-filter.component.mjs +1 -1
  167. package/esm2022/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-print.component.mjs +1 -1
  168. package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-view.component.mjs +47 -0
  169. package/esm2022/widgets/lib/widgets/editors/text/text-box-widget.config.mjs +41 -0
  170. package/esm2022/widgets/lib/widgets/editors/toggle/index.mjs +7 -0
  171. package/esm2022/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-column.component.mjs +1 -1
  172. package/esm2022/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-edit.component.mjs +1 -1
  173. package/esm2022/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-filter.component.mjs +1 -1
  174. package/esm2022/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-print.component.mjs +1 -1
  175. package/esm2022/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-view.component.mjs +1 -1
  176. package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget.config.mjs +40 -0
  177. package/esm2022/widgets/lib/widgets/index.mjs +23 -22
  178. package/esm2022/widgets/lib/widgets/layout/block/block-widget-designer.component.mjs +65 -0
  179. package/esm2022/widgets/lib/widgets/layout/{block-widget → block}/block-widget-view.component.mjs +1 -1
  180. package/esm2022/widgets/lib/widgets/layout/block/block-widget.config.mjs +26 -0
  181. package/esm2022/widgets/lib/widgets/layout/block/index.mjs +4 -0
  182. package/esm2022/widgets/lib/widgets/layout/document/document-widget.config.mjs +13 -0
  183. package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-designer.component.mjs +56 -0
  184. package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.mjs +41 -0
  185. package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget.config.mjs +25 -0
  186. package/esm2022/widgets/lib/widgets/layout/form-field/index.mjs +4 -0
  187. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-designer.component.mjs +95 -0
  188. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-print.component.mjs +19 -0
  189. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-view.component.mjs +18 -0
  190. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget.config.mjs +26 -0
  191. package/esm2022/widgets/lib/widgets/layout/grid/index.mjs +5 -0
  192. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.mjs +97 -0
  193. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-print.component.mjs +19 -0
  194. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.mjs +18 -0
  195. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget.config.mjs +34 -0
  196. package/esm2022/widgets/lib/widgets/layout/grid-item/index.mjs +5 -0
  197. package/esm2022/widgets/lib/widgets/layout/page/index.mjs +3 -0
  198. package/esm2022/widgets/lib/widgets/layout/page/page-widget-designer.component.mjs +65 -0
  199. package/esm2022/widgets/lib/widgets/layout/{page-widget → page}/page-widget-view.component.mjs +1 -1
  200. package/esm2022/widgets/lib/widgets/layout/page/page-widget.config.mjs +27 -0
  201. package/esm2022/widgets/lib/widgets/layout/repeater/index.mjs +6 -0
  202. package/esm2022/widgets/lib/widgets/layout/{repeater-widget → repeater}/repeater-widget-designer.component.mjs +1 -1
  203. package/esm2022/widgets/lib/widgets/{editors/link-widget/link-widget-filter.component.mjs → layout/repeater/repeater-widget-edit.component.mjs} +5 -5
  204. package/esm2022/widgets/lib/widgets/layout/{repeater-widget → repeater}/repeater-widget-print.component.mjs +1 -1
  205. package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-view.component.mjs +52 -0
  206. package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget.config.mjs +24 -0
  207. package/esm2022/widgets/lib/widgets/layout/text-block/index.mjs +3 -0
  208. package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget-view.component.mjs +29 -0
  209. package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget.config.mjs +42 -0
  210. package/esm2022/widgets/lib/widgets.module.mjs +20 -3
  211. package/fesm2022/{acorex-platform-common-text-widget-column.component-D-mLfzKJ.mjs → acorex-platform-common-text-widget-column.component-ytX4OqZX.mjs} +3 -3
  212. package/fesm2022/acorex-platform-common-text-widget-column.component-ytX4OqZX.mjs.map +1 -0
  213. package/fesm2022/acorex-platform-common.mjs +21 -17
  214. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  215. package/fesm2022/acorex-platform-layout-builder.mjs +164 -129
  216. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  217. package/fesm2022/acorex-platform-layout-designer-preview.component-xkvSLydm.mjs +23 -0
  218. package/fesm2022/acorex-platform-layout-designer-preview.component-xkvSLydm.mjs.map +1 -0
  219. package/fesm2022/acorex-platform-layout-designer-widget-picker.component-DXgcm-fP.mjs +100 -0
  220. package/fesm2022/acorex-platform-layout-designer-widget-picker.component-DXgcm-fP.mjs.map +1 -0
  221. package/fesm2022/acorex-platform-layout-designer.mjs +501 -278
  222. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  223. package/fesm2022/acorex-platform-layout-entity.mjs +5 -4
  224. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  225. package/fesm2022/{acorex-platform-layouts-entity-create-view.component-B2XtNJo1.mjs → acorex-platform-layouts-entity-create-view.component-C2pYReAo.mjs} +17 -7
  226. package/fesm2022/acorex-platform-layouts-entity-create-view.component-C2pYReAo.mjs.map +1 -0
  227. package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-C9L8cyBm.mjs → acorex-platform-layouts-entity-modify-view.component-Bt4MLEou.mjs} +10 -5
  228. package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Bt4MLEou.mjs.map +1 -0
  229. package/fesm2022/acorex-platform-layouts.mjs +4 -4
  230. package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
  231. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cv0mt0pU.mjs → acorex-platform-themes-default-entity-master-create-view.component-DKNRxpQk.mjs} +1 -2
  232. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-DKNRxpQk.mjs.map +1 -0
  233. package/fesm2022/acorex-platform-themes-default.mjs +4 -4
  234. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  235. package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DlfG4EP1.mjs.map +1 -1
  236. package/fesm2022/acorex-platform-widgets-rich-text-popup.component-RCdFIz45.mjs.map +1 -1
  237. package/fesm2022/acorex-platform-widgets.mjs +4186 -3318
  238. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  239. package/layout/builder/lib/builder/builder.service.d.ts +1 -1
  240. package/layout/builder/lib/builder/index.d.ts +6 -5
  241. package/layout/builder/lib/builder/widget-catalog.d.ts +3 -0
  242. package/layout/builder/lib/builder/widget-groups.d.ts +6 -0
  243. package/layout/builder/lib/builder/widget-registery.service.d.ts +1 -1
  244. package/layout/builder/lib/builder/widget.types.d.ts +49 -9
  245. package/layout/designer/index.d.ts +2 -2
  246. package/layout/designer/lib/board/board.component.d.ts +0 -1
  247. package/layout/designer/lib/command.d.ts +70 -0
  248. package/layout/designer/lib/designer/designer.component.d.ts +3 -0
  249. package/layout/designer/lib/designer.service.d.ts +21 -10
  250. package/layout/designer/lib/helpers/grid-drawer/grid-drawer.component.d.ts +19 -0
  251. package/layout/designer/lib/outline/outline.component.d.ts +1 -0
  252. package/layout/designer/lib/pages/pages.component.d.ts +7 -0
  253. package/layout/designer/lib/preview/preview.component.d.ts +8 -0
  254. package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +1 -0
  255. package/layout/designer/lib/widget-designer-renderer.component.d.ts +1 -0
  256. package/layout/designer/lib/widget-picker/widget-picker.component.d.ts +22 -4
  257. package/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.d.ts +5 -0
  258. package/package.json +14 -13
  259. package/widgets/lib/properties/editors.props.d.ts +4 -1
  260. package/widgets/lib/properties/layout.props.d.ts +9 -0
  261. package/widgets/lib/widgets/actions/button/button-widget.config.d.ts +7 -0
  262. package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget.config.d.ts +5 -0
  263. package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget.config.d.ts +5 -0
  264. package/widgets/lib/widgets/advance/map/map-box-widget-edit.component.d.ts +37 -0
  265. package/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget.config.d.ts +5 -0
  266. package/widgets/lib/widgets/advance/qrcode/index.d.ts +2 -0
  267. package/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.d.ts +12 -0
  268. package/widgets/lib/widgets/advance/qrcode/qrcode-widget.config.d.ts +7 -0
  269. package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget.config.d.ts +5 -0
  270. package/widgets/lib/widgets/editors/checkbox/checkbox-widget.config.d.ts +5 -0
  271. package/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget.config.d.ts +5 -0
  272. package/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-edit.component.d.ts +1 -1
  273. package/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-view.component.d.ts +1 -1
  274. package/widgets/lib/widgets/editors/contact/contact-widget.config.d.ts +7 -0
  275. package/widgets/lib/widgets/editors/date-time/date-time-box-widget.config.d.ts +7 -0
  276. package/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget.config.d.ts +5 -0
  277. package/widgets/lib/widgets/editors/large-text/large-text-widget.config.d.ts +7 -0
  278. package/widgets/lib/widgets/editors/link/link-widget.config.d.ts +7 -0
  279. package/widgets/lib/widgets/editors/{number-box-widget → number}/number-box-widget-edit.component.d.ts +2 -0
  280. package/widgets/lib/widgets/editors/number/number-box-widget.config.d.ts +7 -0
  281. package/widgets/lib/widgets/editors/password/password-box-widget.config.d.ts +7 -0
  282. package/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget.config.d.ts +5 -0
  283. package/widgets/lib/widgets/editors/rich-text/rich-text-widget.config.d.ts +7 -0
  284. package/widgets/lib/widgets/editors/select/select-box-widget.config.d.ts +7 -0
  285. package/widgets/lib/widgets/editors/selection-list/selection-list-widget.config.d.ts +7 -0
  286. package/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget.config.d.ts +5 -0
  287. package/widgets/lib/widgets/editors/toggle/toggle-widget.config.d.ts +7 -0
  288. package/widgets/lib/widgets/index.d.ts +21 -21
  289. package/widgets/lib/widgets/layout/block/block-widget.config.d.ts +7 -0
  290. package/widgets/lib/widgets/layout/document/document-widget.config.d.ts +7 -0
  291. package/widgets/lib/widgets/layout/form-field/form-field-widget-designer.component.d.ts +7 -0
  292. package/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.d.ts +7 -0
  293. package/widgets/lib/widgets/layout/form-field/form-field-widget.config.d.ts +7 -0
  294. package/widgets/lib/widgets/layout/form-field/index.d.ts +3 -0
  295. package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +16 -0
  296. package/widgets/lib/widgets/layout/grid/grid-widget-print.component.d.ts +6 -0
  297. package/widgets/lib/widgets/layout/grid/grid-widget-view.component.d.ts +6 -0
  298. package/widgets/lib/widgets/layout/grid/grid-widget.config.d.ts +7 -0
  299. package/widgets/lib/widgets/layout/grid/index.d.ts +4 -0
  300. package/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.d.ts +15 -0
  301. package/widgets/lib/widgets/layout/grid-item/grid-item-widget-print.component.d.ts +6 -0
  302. package/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.d.ts +6 -0
  303. package/widgets/lib/widgets/layout/grid-item/grid-item-widget.config.d.ts +7 -0
  304. package/widgets/lib/widgets/layout/grid-item/index.d.ts +4 -0
  305. package/widgets/lib/widgets/layout/page/page-widget.config.d.ts +7 -0
  306. package/widgets/lib/widgets/layout/repeater/repeater-widget.config.d.ts +7 -0
  307. package/widgets/lib/widgets/layout/text-block/text-block-widget.config.d.ts +7 -0
  308. package/esm2022/layout/builder/lib/builder/layout.types.mjs +0 -30
  309. package/esm2022/layout/designer/lib/designer.module.mjs +0 -16
  310. package/esm2022/layout/designer/lib/history-manager.service.mjs +0 -117
  311. package/esm2022/widgets/lib/widgets/actions/button-widget/button-widget-view.component.mjs +0 -52
  312. package/esm2022/widgets/lib/widgets/actions/button-widget/button-widget.config.mjs +0 -25
  313. package/esm2022/widgets/lib/widgets/actions/button-widget/index.mjs +0 -3
  314. package/esm2022/widgets/lib/widgets/editors/color-box-widget/color-box-widget.config.mjs +0 -34
  315. package/esm2022/widgets/lib/widgets/editors/color-box-widget/index.mjs +0 -7
  316. package/esm2022/widgets/lib/widgets/editors/contact-widget/contact-widget-column.component.mjs +0 -36
  317. package/esm2022/widgets/lib/widgets/editors/contact-widget/contact-widget-edit.component.mjs +0 -297
  318. package/esm2022/widgets/lib/widgets/editors/contact-widget/contact-widget-view.component.mjs +0 -122
  319. package/esm2022/widgets/lib/widgets/editors/contact-widget/contact-widget.config.mjs +0 -78
  320. package/esm2022/widgets/lib/widgets/editors/contact-widget/contact.type.mjs +0 -2
  321. package/esm2022/widgets/lib/widgets/editors/contact-widget/index.mjs +0 -7
  322. package/esm2022/widgets/lib/widgets/editors/date-time-box-widget/date-time-box-widget-column.component.mjs +0 -44
  323. package/esm2022/widgets/lib/widgets/editors/date-time-box-widget/date-time-box-widget-edit.component.mjs +0 -133
  324. package/esm2022/widgets/lib/widgets/editors/date-time-box-widget/date-time-box-widget-view.component.mjs +0 -54
  325. package/esm2022/widgets/lib/widgets/editors/date-time-box-widget/date-time-box-widget.config.mjs +0 -38
  326. package/esm2022/widgets/lib/widgets/editors/date-time-box-widget/index.mjs +0 -7
  327. package/esm2022/widgets/lib/widgets/editors/email-box-widget/email-box-widget-column.component.mjs +0 -66
  328. package/esm2022/widgets/lib/widgets/editors/email-box-widget/email-box-widget-edit.component.mjs +0 -249
  329. package/esm2022/widgets/lib/widgets/editors/email-box-widget/email-box-widget.config.mjs +0 -36
  330. package/esm2022/widgets/lib/widgets/editors/email-box-widget/index.mjs +0 -7
  331. package/esm2022/widgets/lib/widgets/editors/file-box-widget/file-box-widget-edit.component.mjs +0 -122
  332. package/esm2022/widgets/lib/widgets/editors/file-box-widget/file-box-widget-view.component.mjs +0 -215
  333. package/esm2022/widgets/lib/widgets/editors/file-box-widget/file-box-widget.config.mjs +0 -48
  334. package/esm2022/widgets/lib/widgets/editors/file-box-widget/file-box-widget.service.mjs +0 -3
  335. package/esm2022/widgets/lib/widgets/editors/file-box-widget/index.mjs +0 -8
  336. package/esm2022/widgets/lib/widgets/editors/gallery-widget/gallery-widget-types.mjs +0 -2
  337. package/esm2022/widgets/lib/widgets/editors/gallery-widget/gallery-widget-view.component.mjs +0 -160
  338. package/esm2022/widgets/lib/widgets/editors/gallery-widget/gallery-widget.config.mjs +0 -26
  339. package/esm2022/widgets/lib/widgets/editors/gallery-widget/index.mjs +0 -7
  340. package/esm2022/widgets/lib/widgets/editors/large-text-widget/index.mjs +0 -7
  341. package/esm2022/widgets/lib/widgets/editors/large-text-widget/large-text-widget-print.component.mjs +0 -19
  342. package/esm2022/widgets/lib/widgets/editors/large-text-widget/large-text-widget.config.mjs +0 -37
  343. package/esm2022/widgets/lib/widgets/editors/link-widget/index.mjs +0 -7
  344. package/esm2022/widgets/lib/widgets/editors/link-widget/link-widget-edit.component.mjs +0 -391
  345. package/esm2022/widgets/lib/widgets/editors/link-widget/link-widget.config.mjs +0 -26
  346. package/esm2022/widgets/lib/widgets/editors/map-box-widget/index.mjs +0 -7
  347. package/esm2022/widgets/lib/widgets/editors/map-box-widget/map-box-widget-edit.component.mjs +0 -96
  348. package/esm2022/widgets/lib/widgets/editors/map-box-widget/map-box-widget.config.mjs +0 -28
  349. package/esm2022/widgets/lib/widgets/editors/number-box-widget/index.mjs +0 -7
  350. package/esm2022/widgets/lib/widgets/editors/number-box-widget/number-box-widget-column.component.mjs +0 -38
  351. package/esm2022/widgets/lib/widgets/editors/number-box-widget/number-box-widget-edit.component.mjs +0 -151
  352. package/esm2022/widgets/lib/widgets/editors/number-box-widget/number-box-widget-filter.component.mjs +0 -20
  353. package/esm2022/widgets/lib/widgets/editors/number-box-widget/number-box-widget-view.component.mjs +0 -56
  354. package/esm2022/widgets/lib/widgets/editors/number-box-widget/number-box-widget.config.mjs +0 -37
  355. package/esm2022/widgets/lib/widgets/editors/password-box-widget/index.mjs +0 -7
  356. package/esm2022/widgets/lib/widgets/editors/password-box-widget/password-box-widget-column.component.mjs +0 -19
  357. package/esm2022/widgets/lib/widgets/editors/password-box-widget/password-box-widget-view.component.mjs +0 -76
  358. package/esm2022/widgets/lib/widgets/editors/password-box-widget/password-box-widget.config.mjs +0 -35
  359. package/esm2022/widgets/lib/widgets/editors/phone-box-widget/index.mjs +0 -7
  360. package/esm2022/widgets/lib/widgets/editors/phone-box-widget/phone-box-widget-column.component.mjs +0 -66
  361. package/esm2022/widgets/lib/widgets/editors/phone-box-widget/phone-box-widget.config.mjs +0 -29
  362. package/esm2022/widgets/lib/widgets/editors/rich-text-widget/index.mjs +0 -7
  363. package/esm2022/widgets/lib/widgets/editors/rich-text-widget/rich-text-widget-column.component.mjs +0 -46
  364. package/esm2022/widgets/lib/widgets/editors/rich-text-widget/rich-text-widget-edit.component.mjs +0 -67
  365. package/esm2022/widgets/lib/widgets/editors/rich-text-widget/rich-text-widget-view.component.mjs +0 -45
  366. package/esm2022/widgets/lib/widgets/editors/rich-text-widget/rich-text-widget.config.mjs +0 -37
  367. package/esm2022/widgets/lib/widgets/editors/select-box-widget/index.mjs +0 -7
  368. package/esm2022/widgets/lib/widgets/editors/select-box-widget/select-box-widget-edit.component.mjs +0 -85
  369. package/esm2022/widgets/lib/widgets/editors/select-box-widget/select-box-widget-filter.component.mjs +0 -19
  370. package/esm2022/widgets/lib/widgets/editors/select-box-widget/select-box-widget-view.component.mjs +0 -60
  371. package/esm2022/widgets/lib/widgets/editors/select-box-widget/select-box-widget.config.mjs +0 -35
  372. package/esm2022/widgets/lib/widgets/editors/selection-list-widget/index.mjs +0 -7
  373. package/esm2022/widgets/lib/widgets/editors/selection-list-widget/selection-list-widget-column.component.mjs +0 -41
  374. package/esm2022/widgets/lib/widgets/editors/selection-list-widget/selection-list-widget-edit.component.mjs +0 -72
  375. package/esm2022/widgets/lib/widgets/editors/selection-list-widget/selection-list-widget-view.component.mjs +0 -44
  376. package/esm2022/widgets/lib/widgets/editors/selection-list-widget/selection-list-widget.config.mjs +0 -26
  377. package/esm2022/widgets/lib/widgets/editors/signature-pad-widget/index.mjs +0 -7
  378. package/esm2022/widgets/lib/widgets/editors/signature-pad-widget/signature-pad-widget-column.component.mjs +0 -19
  379. package/esm2022/widgets/lib/widgets/editors/signature-pad-widget/signature-pad-widget-edit.component.mjs +0 -142
  380. package/esm2022/widgets/lib/widgets/editors/signature-pad-widget/signature-pad-widget.config.mjs +0 -34
  381. package/esm2022/widgets/lib/widgets/editors/text-box-widget/index.mjs +0 -7
  382. package/esm2022/widgets/lib/widgets/editors/text-box-widget/text-box-widget-edit.component.mjs +0 -119
  383. package/esm2022/widgets/lib/widgets/editors/text-box-widget/text-box-widget-view.component.mjs +0 -47
  384. package/esm2022/widgets/lib/widgets/editors/text-box-widget/text-box-widget.config.mjs +0 -39
  385. package/esm2022/widgets/lib/widgets/editors/toggle-widget/index.mjs +0 -7
  386. package/esm2022/widgets/lib/widgets/editors/toggle-widget/toggle-widget.config.mjs +0 -37
  387. package/esm2022/widgets/lib/widgets/layout/block-widget/block-widget-designer.component.mjs +0 -65
  388. package/esm2022/widgets/lib/widgets/layout/block-widget/block-widget.config.mjs +0 -27
  389. package/esm2022/widgets/lib/widgets/layout/block-widget/index.mjs +0 -4
  390. package/esm2022/widgets/lib/widgets/layout/page-widget/index.mjs +0 -3
  391. package/esm2022/widgets/lib/widgets/layout/page-widget/page-widget-designer.component.mjs +0 -65
  392. package/esm2022/widgets/lib/widgets/layout/page-widget/page-widget.config.mjs +0 -28
  393. package/esm2022/widgets/lib/widgets/layout/repeater-widget/index.mjs +0 -6
  394. package/esm2022/widgets/lib/widgets/layout/repeater-widget/repeater-widget-view.component.mjs +0 -52
  395. package/esm2022/widgets/lib/widgets/layout/repeater-widget/repeater-widget.config.mjs +0 -21
  396. package/esm2022/widgets/lib/widgets/layout/text-block-widget/index.mjs +0 -3
  397. package/esm2022/widgets/lib/widgets/layout/text-block-widget/text-block-widget-view.component.mjs +0 -29
  398. package/esm2022/widgets/lib/widgets/layout/text-block-widget/text-block-widget.config.mjs +0 -39
  399. package/fesm2022/acorex-platform-common-text-widget-column.component-D-mLfzKJ.mjs.map +0 -1
  400. package/fesm2022/acorex-platform-layout-designer-widget-picker.component-DkZGbnkz.mjs +0 -26
  401. package/fesm2022/acorex-platform-layout-designer-widget-picker.component-DkZGbnkz.mjs.map +0 -1
  402. package/fesm2022/acorex-platform-layouts-entity-create-view.component-B2XtNJo1.mjs.map +0 -1
  403. package/fesm2022/acorex-platform-layouts-entity-modify-view.component-C9L8cyBm.mjs.map +0 -1
  404. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cv0mt0pU.mjs.map +0 -1
  405. package/layout/builder/lib/builder/layout.types.d.ts +0 -1
  406. package/layout/designer/lib/designer.module.d.ts +0 -6
  407. package/layout/designer/lib/history-manager.service.d.ts +0 -31
  408. package/widgets/lib/widgets/actions/button-widget/button-widget.config.d.ts +0 -2
  409. package/widgets/lib/widgets/editors/contact-widget/contact-widget.config.d.ts +0 -2
  410. package/widgets/lib/widgets/editors/date-time-box-widget/date-time-box-widget.config.d.ts +0 -2
  411. package/widgets/lib/widgets/editors/large-text-widget/large-text-widget.config.d.ts +0 -2
  412. package/widgets/lib/widgets/editors/link-widget/link-widget.config.d.ts +0 -2
  413. package/widgets/lib/widgets/editors/map-box-widget/map-box-widget-edit.component.d.ts +0 -15
  414. package/widgets/lib/widgets/editors/number-box-widget/number-box-widget.config.d.ts +0 -2
  415. package/widgets/lib/widgets/editors/password-box-widget/password-box-widget.config.d.ts +0 -2
  416. package/widgets/lib/widgets/editors/rich-text-widget/rich-text-widget.config.d.ts +0 -2
  417. package/widgets/lib/widgets/editors/select-box-widget/select-box-widget.config.d.ts +0 -2
  418. package/widgets/lib/widgets/editors/selection-list-widget/selection-list-widget.config.d.ts +0 -2
  419. package/widgets/lib/widgets/editors/toggle-widget/toggle-widget.config.d.ts +0 -2
  420. package/widgets/lib/widgets/layout/block-widget/block-widget.config.d.ts +0 -2
  421. package/widgets/lib/widgets/layout/page-widget/page-widget.config.d.ts +0 -2
  422. package/widgets/lib/widgets/layout/repeater-widget/repeater-widget.config.d.ts +0 -2
  423. package/widgets/lib/widgets/layout/text-block-widget/text-block-widget.config.d.ts +0 -2
  424. /package/layout/designer/lib/{buttons → helpers}/add-widget-button/add-widget-button.component.d.ts +0 -0
  425. /package/widgets/lib/widgets/actions/{button-widget → button}/button-widget-view.component.d.ts +0 -0
  426. /package/widgets/lib/widgets/actions/{button-widget → button}/index.d.ts +0 -0
  427. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-column.component.d.ts +0 -0
  428. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-edit.component.d.ts +0 -0
  429. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-filter.component.d.ts +0 -0
  430. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-print.component.d.ts +0 -0
  431. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget-view.component.d.ts +0 -0
  432. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/file-box-widget.service.d.ts +0 -0
  433. /package/widgets/lib/widgets/{editors/file-box-widget → advance/file}/index.d.ts +0 -0
  434. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-column.component.d.ts +0 -0
  435. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-edit.component.d.ts +0 -0
  436. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-filter.component.d.ts +0 -0
  437. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-print.component.d.ts +0 -0
  438. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-types.d.ts +0 -0
  439. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/gallery-widget-view.component.d.ts +0 -0
  440. /package/widgets/lib/widgets/{editors/gallery-widget → advance/gallery}/index.d.ts +0 -0
  441. /package/widgets/lib/widgets/{editors/map-box-widget → advance/map}/index.d.ts +0 -0
  442. /package/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-column.component.d.ts +0 -0
  443. /package/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-filter.component.d.ts +0 -0
  444. /package/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-print.component.d.ts +0 -0
  445. /package/widgets/lib/widgets/{editors/map-box-widget → advance/map}/map-box-widget-view.component.d.ts +0 -0
  446. /package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/index.d.ts +0 -0
  447. /package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-column.component.d.ts +0 -0
  448. /package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-edit.component.d.ts +0 -0
  449. /package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-filter.component.d.ts +0 -0
  450. /package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-print.component.d.ts +0 -0
  451. /package/widgets/lib/widgets/{editors/signature-pad-widget → advance/signature}/signature-pad-widget-view.component.d.ts +0 -0
  452. /package/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-column.component.d.ts +0 -0
  453. /package/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-edit.component.d.ts +0 -0
  454. /package/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-filter.component.d.ts +0 -0
  455. /package/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-print.component.d.ts +0 -0
  456. /package/widgets/lib/widgets/editors/{color-box-widget → color}/color-box-widget-view.component.d.ts +0 -0
  457. /package/widgets/lib/widgets/editors/{color-box-widget → color}/index.d.ts +0 -0
  458. /package/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-column.component.d.ts +0 -0
  459. /package/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-filter.component.d.ts +0 -0
  460. /package/widgets/lib/widgets/editors/{contact-widget → contact}/contact-widget-print.component.d.ts +0 -0
  461. /package/widgets/lib/widgets/editors/{contact-widget → contact}/contact.type.d.ts +0 -0
  462. /package/widgets/lib/widgets/editors/{contact-widget → contact}/index.d.ts +0 -0
  463. /package/widgets/lib/widgets/editors/{contact-widget → contact}/popup-component.d.ts +0 -0
  464. /package/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-column.component.d.ts +0 -0
  465. /package/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-edit.component.d.ts +0 -0
  466. /package/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-filter.component.d.ts +0 -0
  467. /package/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-print.component.d.ts +0 -0
  468. /package/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/date-time-box-widget-view.component.d.ts +0 -0
  469. /package/widgets/lib/widgets/editors/{date-time-box-widget → date-time}/index.d.ts +0 -0
  470. /package/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-column.component.d.ts +0 -0
  471. /package/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-edit.component.d.ts +0 -0
  472. /package/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-filter.component.d.ts +0 -0
  473. /package/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-print.component.d.ts +0 -0
  474. /package/widgets/lib/widgets/editors/{email-box-widget → email}/email-box-widget-view.component.d.ts +0 -0
  475. /package/widgets/lib/widgets/editors/{email-box-widget → email}/index.d.ts +0 -0
  476. /package/widgets/lib/widgets/editors/{large-text-widget → large-text}/index.d.ts +0 -0
  477. /package/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-column.component.d.ts +0 -0
  478. /package/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-edit.component.d.ts +0 -0
  479. /package/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-filter.component.d.ts +0 -0
  480. /package/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-print.component.d.ts +0 -0
  481. /package/widgets/lib/widgets/editors/{large-text-widget → large-text}/large-text-widget-view.component.d.ts +0 -0
  482. /package/widgets/lib/widgets/editors/{link-widget → link}/index.d.ts +0 -0
  483. /package/widgets/lib/widgets/editors/{link-widget → link}/link-widget-column.component.d.ts +0 -0
  484. /package/widgets/lib/widgets/editors/{link-widget → link}/link-widget-edit.component.d.ts +0 -0
  485. /package/widgets/lib/widgets/editors/{link-widget → link}/link-widget-filter.component.d.ts +0 -0
  486. /package/widgets/lib/widgets/editors/{link-widget → link}/link-widget-print.component.d.ts +0 -0
  487. /package/widgets/lib/widgets/editors/{link-widget → link}/link-widget-view.component.d.ts +0 -0
  488. /package/widgets/lib/widgets/editors/{number-box-widget → number}/index.d.ts +0 -0
  489. /package/widgets/lib/widgets/editors/{number-box-widget → number}/number-box-widget-column.component.d.ts +0 -0
  490. /package/widgets/lib/widgets/editors/{number-box-widget → number}/number-box-widget-filter.component.d.ts +0 -0
  491. /package/widgets/lib/widgets/editors/{number-box-widget → number}/number-box-widget-print.component.d.ts +0 -0
  492. /package/widgets/lib/widgets/editors/{number-box-widget → number}/number-box-widget-view.component.d.ts +0 -0
  493. /package/widgets/lib/widgets/editors/{password-box-widget → password}/index.d.ts +0 -0
  494. /package/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-column.component.d.ts +0 -0
  495. /package/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-edit.component.d.ts +0 -0
  496. /package/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-filter.component.d.ts +0 -0
  497. /package/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-print.component.d.ts +0 -0
  498. /package/widgets/lib/widgets/editors/{password-box-widget → password}/password-box-widget-view.component.d.ts +0 -0
  499. /package/widgets/lib/widgets/editors/{phone-box-widget → phone}/index.d.ts +0 -0
  500. /package/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-column.component.d.ts +0 -0
  501. /package/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-edit.component.d.ts +0 -0
  502. /package/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-filter.component.d.ts +0 -0
  503. /package/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-print.component.d.ts +0 -0
  504. /package/widgets/lib/widgets/editors/{phone-box-widget → phone}/phone-box-widget-view.component.d.ts +0 -0
  505. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/index.d.ts +0 -0
  506. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-popup.component.d.ts +0 -0
  507. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-column.component.d.ts +0 -0
  508. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-edit.component.d.ts +0 -0
  509. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-filter.component.d.ts +0 -0
  510. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-print.component.d.ts +0 -0
  511. /package/widgets/lib/widgets/editors/{rich-text-widget → rich-text}/rich-text-widget-view.component.d.ts +0 -0
  512. /package/widgets/lib/widgets/editors/{select-box-widget → select}/index.d.ts +0 -0
  513. /package/widgets/lib/widgets/editors/{select-box-widget → select}/select-box-widget-column.component.d.ts +0 -0
  514. /package/widgets/lib/widgets/editors/{select-box-widget → select}/select-box-widget-edit.component.d.ts +0 -0
  515. /package/widgets/lib/widgets/editors/{select-box-widget → select}/select-box-widget-filter.component.d.ts +0 -0
  516. /package/widgets/lib/widgets/editors/{select-box-widget → select}/select-box-widget-print.component.d.ts +0 -0
  517. /package/widgets/lib/widgets/editors/{select-box-widget → select}/select-box-widget-view.component.d.ts +0 -0
  518. /package/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/index.d.ts +0 -0
  519. /package/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-column.component.d.ts +0 -0
  520. /package/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-edit.component.d.ts +0 -0
  521. /package/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-filter.component.d.ts +0 -0
  522. /package/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-print.component.d.ts +0 -0
  523. /package/widgets/lib/widgets/editors/{selection-list-widget → selection-list}/selection-list-widget-view.component.d.ts +0 -0
  524. /package/widgets/lib/widgets/editors/{text-box-widget → text}/index.d.ts +0 -0
  525. /package/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-column.component.d.ts +0 -0
  526. /package/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-edit.component.d.ts +0 -0
  527. /package/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-filter.component.d.ts +0 -0
  528. /package/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-print.component.d.ts +0 -0
  529. /package/widgets/lib/widgets/editors/{text-box-widget → text}/text-box-widget-view.component.d.ts +0 -0
  530. /package/widgets/lib/widgets/editors/{toggle-widget → toggle}/index.d.ts +0 -0
  531. /package/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-column.component.d.ts +0 -0
  532. /package/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-edit.component.d.ts +0 -0
  533. /package/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-filter.component.d.ts +0 -0
  534. /package/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-print.component.d.ts +0 -0
  535. /package/widgets/lib/widgets/editors/{toggle-widget → toggle}/toggle-widget-view.component.d.ts +0 -0
  536. /package/widgets/lib/widgets/layout/{block-widget → block}/block-widget-designer.component.d.ts +0 -0
  537. /package/widgets/lib/widgets/layout/{block-widget → block}/block-widget-view.component.d.ts +0 -0
  538. /package/widgets/lib/widgets/layout/{block-widget → block}/index.d.ts +0 -0
  539. /package/widgets/lib/widgets/layout/{page-widget → page}/index.d.ts +0 -0
  540. /package/widgets/lib/widgets/layout/{page-widget → page}/page-widget-designer.component.d.ts +0 -0
  541. /package/widgets/lib/widgets/layout/{page-widget → page}/page-widget-view.component.d.ts +0 -0
  542. /package/widgets/lib/widgets/layout/{repeater-widget → repeater}/index.d.ts +0 -0
  543. /package/widgets/lib/widgets/layout/{repeater-widget → repeater}/repeater-widget-designer.component.d.ts +0 -0
  544. /package/widgets/lib/widgets/layout/{repeater-widget → repeater}/repeater-widget-edit.component.d.ts +0 -0
  545. /package/widgets/lib/widgets/layout/{repeater-widget → repeater}/repeater-widget-print.component.d.ts +0 -0
  546. /package/widgets/lib/widgets/layout/{repeater-widget → repeater}/repeater-widget-view.component.d.ts +0 -0
  547. /package/widgets/lib/widgets/layout/{text-block-widget → text-block}/index.d.ts +0 -0
  548. /package/widgets/lib/widgets/layout/{text-block-widget → text-block}/text-block-widget-view.component.d.ts +0 -0
@@ -0,0 +1,44 @@
1
+ import { AXDateTimeFormatter } from '@acorex/core/date-time';
2
+ import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
3
+ import { CommonModule } from '@angular/common';
4
+ import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export class AXPDateTimeBoxWidgetColumnComponent extends AXPColumnWidgetComponent {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.formatter = inject(AXDateTimeFormatter);
10
+ this.convertedValue = computed(() => this.updateValue());
11
+ this.format = 'datetime';
12
+ this.updateValue = () => {
13
+ const rawValue = this.rawValue;
14
+ if (rawValue == null) {
15
+ return null;
16
+ }
17
+ if (this.isArray(rawValue)) {
18
+ return rawValue.map((item) => this.handleFormat(item)).join(', ');
19
+ }
20
+ else {
21
+ return this.handleFormat(rawValue);
22
+ }
23
+ };
24
+ }
25
+ handleFormat(value) {
26
+ return value ? this.formatter.format(new Date(value), { format: this.format }) : '---';
27
+ }
28
+ isArray(val) {
29
+ return Array.isArray(val);
30
+ }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPDateTimeBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `<span [title]="convertedValue()">{{ convertedValue() }}</span>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetColumnComponent, decorators: [{
35
+ type: Component,
36
+ args: [{
37
+ template: `<span [title]="convertedValue()">{{ convertedValue() }}</span>`,
38
+ standalone: true,
39
+ changeDetection: ChangeDetectionStrategy.OnPush,
40
+ imports: [CommonModule],
41
+ inputs: ['rawValue'],
42
+ }]
43
+ }] });
44
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWJveC13aWRnZXQtY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vd2lkZ2V0cy9zcmMvbGliL3dpZGdldHMvZWRpdG9ycy9kYXRlLXRpbWUvZGF0ZS10aW1lLWJveC13aWRnZXQtY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEV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KSkuam9pbignLCAnKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIHRoaXMuaGFuZGxlRm9ybWF0KHJhd1ZhbHVlKTtcbiAgICB9XG4gIH07XG5cbiAgcHJvdGVjdGVkIGhhbmRsZUZvcm1hdCh2YWx1ZTogc3RyaW5nKSB7XG4gICAgcmV0dXJuIHZhbHVlID8gdGhpcy5mb3JtYXR0ZXIuZm9ybWF0KG5ldyBEYXRlKHZhbHVlKSwgeyBmb3JtYXQ6IHRoaXMuZm9ybWF0IH0pIDogJy0tLSc7XG4gIH1cblxuICBwcm90ZWN0ZWQgaXNBcnJheSh2YWw6IGFueSkge1xuICAgIHJldHVybiBBcnJheS5pc0FycmF5KHZhbCk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,133 @@
1
+ import { AXButtonModule } from '@acorex/components/button';
2
+ import { AXDateTimeBoxModule } from '@acorex/components/datetime-box';
3
+ import { AXDecoratorModule } from '@acorex/components/decorators';
4
+ import { AXFormModule } from '@acorex/components/form';
5
+ import { AXValidationModule, AXValidationService } from '@acorex/core/validation';
6
+ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
7
+ import { CommonModule } from '@angular/common';
8
+ import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
9
+ import { FormsModule } from '@angular/forms';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "@angular/forms";
12
+ import * as i2 from "@acorex/components/form";
13
+ import * as i3 from "@acorex/components/datetime-box";
14
+ import * as i4 from "@acorex/components/button";
15
+ import * as i5 from "@acorex/components/decorators";
16
+ export class AXPDateTimeBoxWidgetEditComponent extends AXPWidgetComponent {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.validationService = inject(AXValidationService);
20
+ this.multiple = computed(() => this.options()["multiple"]);
21
+ this.clearButton = computed(() => this.options()["clearButton"]);
22
+ this.format = computed(() => this.options()["format"]?.['id']);
23
+ this.disabled = computed(() => this.options()["disabled"]);
24
+ this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]));
25
+ this._validationRules = [];
26
+ this.calendarFormat = computed(() => {
27
+ if (this.format() === 'date')
28
+ return 'dd/MM/yyyy';
29
+ else if (this.format() === 'time')
30
+ return 'HH:mm';
31
+ else
32
+ return 'dd/MM/yyyy HH:mm';
33
+ });
34
+ }
35
+ get validationRules() {
36
+ return this._validationRules;
37
+ }
38
+ set validationRules(v) {
39
+ this._validationRules = v;
40
+ }
41
+ handleValueChange(e, i) {
42
+ if (e.isUserInteraction) {
43
+ const newValues = this.internalValue().map((item, index) => (i === index ? e.value : item));
44
+ if (this.multiple())
45
+ this.setValue(newValues);
46
+ else
47
+ this.setValue(newValues[0]);
48
+ }
49
+ }
50
+ addItem() {
51
+ const newValues = [...this.internalValue(), ''];
52
+ this.setValue(newValues);
53
+ }
54
+ deleteItem(i) {
55
+ const newValues = this.internalValue().filter((_, index) => index != i);
56
+ this.setValue(newValues);
57
+ }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPDateTimeBoxWidgetEditComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
60
+ <div class="ax-grid ax-grid-cols-12 ax-gap-4">
61
+ @for (datetime of internalValue(); track $index) {
62
+ <ax-datetime-box
63
+ class="ax-col-span-12"
64
+ [ngModel]="datetime"
65
+ (onValueChanged)="handleValueChange($event, $index)"
66
+ [disabled]="disabled()"
67
+ [format]="calendarFormat()"
68
+ >
69
+ @for (validation of validationRules; track $index)
70
+ {
71
+ <ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
72
+ }
73
+ @if(clearButton()){
74
+ <ax-clear-button></ax-clear-button>
75
+ }
76
+ @if(multiple())
77
+ {
78
+ <ax-suffix>
79
+ <ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
80
+ <ax-icon class="far fa-trash"> </ax-icon>
81
+ </ax-button>
82
+ </ax-suffix>
83
+ }
84
+ </ax-datetime-box>
85
+ }
86
+ @if(multiple()){
87
+ <ax-button class="ax-col-span-2" [text]="!internalValue().length ? 'Add New' : 'Add Another'" look="twotone" (onClick)="addItem()" [disabled]="disabled()"></ax-button>
88
+ }
89
+ </div>
90
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXDateTimeBoxModule }, { kind: "component", type: i3.AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "depth", "id", "type", "look", "holidayDates", "allowTyping", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onOpened", "onClosed", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.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: 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
91
+ }
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetEditComponent, decorators: [{
93
+ type: Component,
94
+ args: [{
95
+ template: `
96
+ <div class="ax-grid ax-grid-cols-12 ax-gap-4">
97
+ @for (datetime of internalValue(); track $index) {
98
+ <ax-datetime-box
99
+ class="ax-col-span-12"
100
+ [ngModel]="datetime"
101
+ (onValueChanged)="handleValueChange($event, $index)"
102
+ [disabled]="disabled()"
103
+ [format]="calendarFormat()"
104
+ >
105
+ @for (validation of validationRules; track $index)
106
+ {
107
+ <ax-validation-rule [rule]="validation.rule" [message]="validation.options?.message" [options]="validation.options"></ax-validation-rule>
108
+ }
109
+ @if(clearButton()){
110
+ <ax-clear-button></ax-clear-button>
111
+ }
112
+ @if(multiple())
113
+ {
114
+ <ax-suffix>
115
+ <ax-button class="ax-border-s" (onClick)="deleteItem($index)" look="blank" color="danger">
116
+ <ax-icon class="far fa-trash"> </ax-icon>
117
+ </ax-button>
118
+ </ax-suffix>
119
+ }
120
+ </ax-datetime-box>
121
+ }
122
+ @if(multiple()){
123
+ <ax-button class="ax-col-span-2" [text]="!internalValue().length ? 'Add New' : 'Add Another'" look="twotone" (onClick)="addItem()" [disabled]="disabled()"></ax-button>
124
+ }
125
+ </div>
126
+ `,
127
+ standalone: true,
128
+ changeDetection: ChangeDetectionStrategy.OnPush,
129
+ imports: [CommonModule, FormsModule, AXFormModule, AXValidationModule, AXDateTimeBoxModule, AXButtonModule, AXDecoratorModule, AXValidationModule],
130
+ inputs: [],
131
+ }]
132
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cbiAgICAgIGVsc2UgdGhpcy5zZXRWYWx1ZShuZXdWYWx1ZXNbMF0pO1xuICAgIH1cbiAgfVxuXG4gIHByb3RlY3RlZCBjYWxlbmRhckZvcm1hdCA9IGNvbXB1dGVkKCgpID0+IHtcbiAgICBpZiAodGhpcy5mb3JtYXQoKSA9PT0gJ2RhdGUnKSByZXR1cm4gJ2RkL01NL3l5eXknO1xuICAgIGVsc2UgaWYgKHRoaXMuZm9ybWF0KCkgPT09ICd0aW1lJykgcmV0dXJuICdISDptbSc7XG4gICAgZWxzZSByZXR1cm4gJ2RkL01NL3l5eXkgSEg6bW0nO1xuICB9KVxuXG4gIHByb3RlY3RlZCBhZGRJdGVtKCkge1xuICAgIGNvbnN0IG5ld1ZhbHVlcyA9IFsuLi50aGlzLmludGVybmFsVmFsdWUoKSwgJyddO1xuICAgIHRoaXMuc2V0VmFsdWUobmV3VmFsdWVzKTtcbiAgfVxuXG4gIHByb3RlY3RlZCBkZWxldGVJdGVtKGk6IG51bWJlcikge1xuICAgIGNvbnN0IG5ld1ZhbHVlcyA9IHRoaXMuaW50ZXJuYWxWYWx1ZSgpLmZpbHRlcigoXywgaW5kZXgpID0+IGluZGV4ICE9IGkpO1xuICAgIHRoaXMuc2V0VmFsdWUobmV3VmFsdWVzKTtcbiAgfVxufVxuIl19
@@ -17,4 +17,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
17
17
  inputs: []
18
18
  }]
19
19
  }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWJveC13aWRnZXQtZmlsdGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcGxhdGZvcm0vd2lkZ2V0cy9zcmMvbGliL3dpZGdldHMvZWRpdG9ycy9kYXRlLXRpbWUtYm94L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FBZ0IsMkRBR2hCLFlBQVk7OzJGQUdYLGtDQUFrQztrQkFQOUMsU0FBUzttQkFBQztvQkFDVCxRQUFRLEVBQUUsZ0JBQWdCO29CQUMxQixVQUFVLEVBQUUsSUFBSTtvQkFDaEIsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07b0JBQy9DLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztvQkFDdkIsTUFBTSxFQUFFLEVBQUU7aUJBQ1giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBWFBXaWRnZXRDb21wb25lbnQgfSBmcm9tICdAYWNvcmV4L3BsYXRmb3JtL2xheW91dC9idWlsZGVyJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSwgQ29tcG9uZW50LCBpbmplY3QgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbkBDb21wb25lbnQoe1xuICB0ZW1wbGF0ZTogYHt7cmF3VmFsdWUoKX19YCxcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGVdLFxuICBpbnB1dHM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIEFYUERhdGVUaW1lQm94V2lkZ2V0UHJpbnRDb21wb25lbnQgZXh0ZW5kcyBBWFBXaWRnZXRDb21wb25lbnQ8YW55PiB7IH0iXX0=
@@ -0,0 +1,54 @@
1
+ import { AXDateTimeFormatter } from '@acorex/core/date-time';
2
+ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
+ import { CommonModule } from '@angular/common';
4
+ import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export class AXPDateTimeBoxWidgetViewComponent extends AXPWidgetComponent {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.formatter = inject(AXDateTimeFormatter);
10
+ this.multiple = computed(() => this.options()["multiple"]);
11
+ this.format = computed(() => this.options()["format"]['id']);
12
+ this.internalValue = computed(() => Array.isArray(this.getValue()) ? this.getValue().map((v) => this.handleFormat(v)) : [this.handleFormat(this.getValue())]);
13
+ }
14
+ handleFormat(value) {
15
+ return value ? this.formatter.format(new Date(value), { format: this.format() }) : '---';
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPDateTimeBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
19
+ <div>
20
+ @if(multiple()){
21
+ @for (item of internalValue(); track $index) {
22
+ <p>{{ item }}</p>
23
+ }
24
+ }
25
+ @else
26
+ {
27
+ <p>{{ internalValue()[0] }}</p>
28
+ }
29
+ </div>
30
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
+ }
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDateTimeBoxWidgetViewComponent, decorators: [{
33
+ type: Component,
34
+ args: [{
35
+ template: `
36
+ <div>
37
+ @if(multiple()){
38
+ @for (item of internalValue(); track $index) {
39
+ <p>{{ item }}</p>
40
+ }
41
+ }
42
+ @else
43
+ {
44
+ <p>{{ internalValue()[0] }}</p>
45
+ }
46
+ </div>
47
+ `,
48
+ standalone: true,
49
+ changeDetection: ChangeDetectionStrategy.OnPush,
50
+ imports: [CommonModule],
51
+ inputs: [],
52
+ }]
53
+ }] });
54
+ //# sourceMappingURL=data:application/json;base64,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8J2RhdGUnIHwgJ3RpbWUnIHwgJ2RhdGV0aW1lJz4oKCkgPT4gdGhpcy5vcHRpb25zKClbXCJmb3JtYXRcIl1bJ2lkJ10gYXMgYW55KTtcblxuXG4gIHByb3RlY3RlZCBpbnRlcm5hbFZhbHVlID0gY29tcHV0ZWQoKCkgPT5cbiAgICBBcnJheS5pc0FycmF5KHRoaXMuZ2V0VmFsdWUoKSkgPyB0aGlzLmdldFZhbHVlKCkubWFwKCh2OiBzdHJpbmcpID0+IHRoaXMuaGFuZGxlRm9ybWF0KHYpKSA6IFt0aGlzLmhhbmRsZUZvcm1hdCh0aGlzLmdldFZhbHVlKCkpXVxuICApO1xuXG4gIHByb3RlY3RlZCBoYW5kbGVGb3JtYXQodmFsdWU6IHN0cmluZykge1xuICAgIHJldHVybiB2YWx1ZSA/IHRoaXMuZm9ybWF0dGVyLmZvcm1hdChuZXcgRGF0ZSh2YWx1ZSksIHsgZm9ybWF0OiB0aGlzLmZvcm1hdCgpIH0pIDogJy0tLSc7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,40 @@
1
+ import { AXP_WIDGETS_EDITOR_GROUP, cloneProperty } from '@acorex/platform/layout/builder';
2
+ import { AXP_ALLOW_MULTIPLE_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DATE_FROMAT_PROPERTY, AXP_DISABLED_PROPERTY, AXP_NAME_PROPERTY, AXP_PLACEHOLDER_PROPERTY, AXP_TABLE_COLUMN_WIDTH_PROPERTY, AXP_VALIDATION_PROPERTY, } from '../../../properties';
3
+ export const AXPDateTimeBoxWidget = {
4
+ name: 'date-time-editor',
5
+ title: 'Date Time Box',
6
+ description: 'Selects date and time',
7
+ icon: 'fa-solid fa-calendar',
8
+ group: AXP_WIDGETS_EDITOR_GROUP,
9
+ properties: [
10
+ AXP_NAME_PROPERTY,
11
+ AXP_DATA_PATH_PROPERTY,
12
+ AXP_ALLOW_MULTIPLE_PROPERTY,
13
+ AXP_DATE_FROMAT_PROPERTY,
14
+ AXP_DISABLED_PROPERTY,
15
+ AXP_VALIDATION_PROPERTY,
16
+ AXP_PLACEHOLDER_PROPERTY,
17
+ cloneProperty(AXP_TABLE_COLUMN_WIDTH_PROPERTY, { schema: { defaultValue: '200px' } }),
18
+ ],
19
+ components: {
20
+ view: {
21
+ component: () => import('./date-time-box-widget-view.component').then((c) => c.AXPDateTimeBoxWidgetViewComponent),
22
+ },
23
+ edit: {
24
+ component: () => import('./date-time-box-widget-edit.component').then((c) => c.AXPDateTimeBoxWidgetEditComponent),
25
+ },
26
+ filter: {
27
+ component: () => import('./date-time-box-widget-filter.component').then((c) => c.AXPDateTimeBoxWidgetFilterComponent),
28
+ },
29
+ column: {
30
+ component: () => import('./date-time-box-widget-column.component').then((c) => c.AXPDateTimeBoxWidgetColumnComponent),
31
+ },
32
+ print: {
33
+ component: () => import('./date-time-box-widget-print.component').then((c) => c.AXPDateTimeBoxWidgetPrintComponent),
34
+ },
35
+ designer: {
36
+ component: () => import('./date-time-box-widget-edit.component').then((c) => c.AXPDateTimeBoxWidgetEditComponent),
37
+ },
38
+ },
39
+ };
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWJveC13aWRnZXQuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS93aWRnZXRzL3NyYy9saWIvd2lkZ2V0cy9lZGl0b3JzL2RhdGUtdGltZS9kYXRlLXRpbWUtYm94LXdpZGdldC5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFtQixhQUFhLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUMzRyxPQUFPLEVBQ0wsMkJBQTJCLEVBQzNCLHNCQUFzQixFQUN0Qix3QkFBd0IsRUFDeEIscUJBQXFCLEV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lZGl0b3InO1xuICB9XG59XG4iXX0=
@@ -0,0 +1,7 @@
1
+ export * from './date-time-box-widget-view.component';
2
+ export * from './date-time-box-widget-edit.component';
3
+ export * from './date-time-box-widget-filter.component';
4
+ export * from './date-time-box-widget-column.component';
5
+ export * from './date-time-box-widget-print.component';
6
+ export * from './date-time-box-widget.config';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL3dpZGdldHMvc3JjL2xpYi93aWRnZXRzL2VkaXRvcnMvZGF0ZS10aW1lL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLHlDQUF5QyxDQUFDO0FBQ3hELGNBQWMseUNBQXlDLENBQUM7QUFDeEQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9kYXRlLXRpbWUtYm94LXdpZGdldC12aWV3LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2RhdGUtdGltZS1ib3gtd2lkZ2V0LWVkaXQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZGF0ZS10aW1lLWJveC13aWRnZXQtZmlsdGVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2RhdGUtdGltZS1ib3gtd2lkZ2V0LWNvbHVtbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9kYXRlLXRpbWUtYm94LXdpZGdldC1wcmludC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9kYXRlLXRpbWUtYm94LXdpZGdldC5jb25maWcnOyJdfQ==
@@ -0,0 +1,66 @@
1
+ import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
2
+ import { CommonModule } from '@angular/common';
3
+ import { ChangeDetectionStrategy, Component, computed } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ export class AXPEmailBoxWidgetColumnComponent extends AXPColumnWidgetComponent {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.list = computed(() => Array.isArray(this.rawValue) ? this.rawValue.map((c) => this.extractItem(c)) : [this.extractItem(this.rawValue)]);
9
+ this.text = computed(() => this.list()
10
+ .map((item) => item.value)
11
+ .join('\n'));
12
+ }
13
+ dot3(text) {
14
+ console.log(text);
15
+ if (this.multiple)
16
+ return text.split('\n')[0] + '...';
17
+ else
18
+ return text.split('\n')[0];
19
+ }
20
+ extractItem(item) {
21
+ return typeof item == 'object'
22
+ ? {
23
+ value: item.value ?? '-',
24
+ type: item.type ?? 'primary',
25
+ label: item.label,
26
+ }
27
+ : {
28
+ value: item,
29
+ type: 'primary',
30
+ label: null,
31
+ };
32
+ }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEmailBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPEmailBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `<div>
35
+ @if(multiple && list.length>1){
36
+ <div [title]="text()">{{ dot3(text()) }}</div>
37
+ }@else {
38
+ <div>
39
+ @if(list() && list().length){
40
+ {{ list()[0].value }}
41
+ }@else { - }
42
+ </div>
43
+ }
44
+ </div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
+ }
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEmailBoxWidgetColumnComponent, decorators: [{
47
+ type: Component,
48
+ args: [{
49
+ template: `<div>
50
+ @if(multiple && list.length>1){
51
+ <div [title]="text()">{{ dot3(text()) }}</div>
52
+ }@else {
53
+ <div>
54
+ @if(list() && list().length){
55
+ {{ list()[0].value }}
56
+ }@else { - }
57
+ </div>
58
+ }
59
+ </div>`,
60
+ standalone: true,
61
+ changeDetection: ChangeDetectionStrategy.OnPush,
62
+ imports: [CommonModule],
63
+ inputs: ['rawValue'],
64
+ }]
65
+ }] });
66
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwtYm94LXdpZGdldC1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS93aWRnZXRzL3NyYy9saWIvd2lkZ2V0cy9lZGl0b3JzL2VtYWlsL2VtYWlsLWJveC13aWRnZXQtY29sdW1uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUMzRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBVSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBa0JyRixNQUFNLE9BQU8sZ0NBQWlDLFNBQVEsd0JBQTZCO0lBakJuRjs7UUFrQlksU0FBSSxHQUErQyxRQUFRLENBQUMsR0FBRyxFQUFFLENBQ3pFLEtBQUssQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUF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