@acorex/platform 18.0.15 → 18.1.0

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 (256) hide show
  1. package/common/lib/schema/entity/entity.class.d.ts +2 -1
  2. package/core/index.d.ts +1 -0
  3. package/core/utils/data-conditioner.d.ts +6 -0
  4. package/esm2022/common/lib/schema/entity/entity.class.mjs +1 -1
  5. package/esm2022/common/lib/schema/widget/widget-renderer.mjs +3 -3
  6. package/esm2022/common/lib/workflows/common.workflow.mjs +1 -1
  7. package/esm2022/core/index.mjs +2 -1
  8. package/esm2022/core/utils/data-conditioner.mjs +138 -0
  9. package/esm2022/layout/builder/lib/builder/widget-registery.service.mjs +2 -2
  10. package/esm2022/layout/builder/lib/builder/widget-renderer.component.mjs +3 -3
  11. package/esm2022/layout/builder/lib/builder/widget.types.mjs +10 -8
  12. package/esm2022/layout/designer/index.mjs +2 -7
  13. package/esm2022/layout/designer/lib/{helpers → designer/components}/add-widget-button/add-widget-button.component.mjs +2 -2
  14. package/esm2022/layout/designer/lib/designer/components/board/board.component.mjs +112 -0
  15. package/esm2022/layout/designer/lib/designer/components/breadcrumbs/breadcrumbs.component.mjs +64 -0
  16. package/esm2022/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.mjs +32 -0
  17. package/esm2022/layout/designer/lib/designer/components/drawers/history/history.component.mjs +30 -0
  18. package/esm2022/layout/designer/lib/designer/components/drawers/outline/outline.component.mjs +61 -0
  19. package/esm2022/layout/designer/lib/designer/components/drawers/pages/pages.component.mjs +28 -0
  20. package/esm2022/layout/designer/lib/designer/components/grid-drawer/grid-drawer.component.mjs +82 -0
  21. package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +24 -0
  22. package/esm2022/layout/designer/lib/{widget-picker → designer/components/widget-picker}/widget-picker.component.mjs +1 -1
  23. package/esm2022/layout/designer/lib/designer/designer.component.mjs +28 -17
  24. package/esm2022/layout/designer/lib/designer/index.mjs +8 -0
  25. package/esm2022/layout/designer/lib/designer/shared/command.mjs +185 -0
  26. package/esm2022/layout/designer/lib/designer/shared/designer-connector.service.mjs +10 -0
  27. package/esm2022/layout/designer/lib/designer/shared/designer.service.mjs +488 -0
  28. package/esm2022/layout/designer/lib/designer/shared/designer.typs.mjs +2 -0
  29. package/esm2022/layout/designer/lib/designer/shared/drawer-content/drawer-content.component.mjs +16 -0
  30. package/esm2022/layout/designer/lib/designer/shared/widget-designer-renderer.directive.mjs +224 -0
  31. package/esm2022/layout/designer/lib/property-viewer/widget-property-viewer.component.mjs +17 -5
  32. package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +2 -5
  33. package/esm2022/layout/entity/lib/entity-registery.service.mjs +3 -3
  34. package/esm2022/layout/entity/lib/entity.module.mjs +4 -2
  35. package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.mjs +7 -4
  36. package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.mjs +2 -1
  37. package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +4 -3
  38. package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +10 -11
  39. package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +3 -2
  40. package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +2 -3
  41. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +3 -3
  42. package/esm2022/layouts/lib/admin/entity-layout/index.mjs +2 -2
  43. package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +2 -2
  44. package/esm2022/themes/default/index.mjs +3 -2
  45. package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +2 -4
  46. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +41 -18
  47. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +4 -4
  48. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-list-view.component.mjs +123 -0
  49. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.service.mjs +3 -0
  50. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +22 -23
  51. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +68 -0
  52. package/esm2022/themes/default/lib/layouts/entity-layouts/index.mjs +2 -0
  53. package/esm2022/widgets/lib/properties/data-source.props.mjs +21 -0
  54. package/esm2022/widgets/lib/properties/editors.props.mjs +76 -3
  55. package/esm2022/widgets/lib/properties/general.props.mjs +31 -3
  56. package/esm2022/widgets/lib/properties/index.mjs +2 -1
  57. package/esm2022/widgets/lib/properties/table-column.props.mjs +18 -3
  58. package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +23 -7
  59. package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +24 -8
  60. package/esm2022/widgets/lib/widgets/actions/button/button-widget.config.mjs +5 -2
  61. package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-column.component.mjs +3 -3
  62. package/esm2022/widgets/lib/widgets/advance/file/file-box-widget.config.mjs +2 -1
  63. package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-column.component.mjs +3 -3
  64. package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget.config.mjs +2 -1
  65. package/esm2022/widgets/lib/widgets/advance/map/index.mjs +1 -4
  66. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-edit.component.mjs +50 -158
  67. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-view.component.mjs +40 -53
  68. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget.config.mjs +95 -11
  69. package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.mjs +11 -11
  70. package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget.config.mjs +8 -7
  71. package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-column.component.mjs +3 -3
  72. package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget.config.mjs +4 -6
  73. package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-column.component.mjs +6 -6
  74. package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget.config.mjs +2 -2
  75. package/esm2022/widgets/lib/widgets/editors/color/color-box-widget.config.mjs +2 -1
  76. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +23 -14
  77. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +58 -58
  78. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget.config.mjs +4 -3
  79. package/esm2022/widgets/lib/widgets/editors/contact/index.mjs +3 -4
  80. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.mjs +1 -1
  81. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.mjs +63 -41
  82. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.mjs +14 -20
  83. package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget.config.mjs +2 -1
  84. package/esm2022/widgets/lib/widgets/editors/email/email-box-widget.config.mjs +2 -1
  85. package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-column.component.mjs +1 -1
  86. package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.mjs +1 -1
  87. package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-view.component.mjs +1 -1
  88. package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget.config.mjs +6 -4
  89. package/esm2022/widgets/lib/widgets/editors/link/link-widget.config.mjs +2 -1
  90. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-edit.component.mjs +49 -57
  91. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-view.component.mjs +11 -17
  92. package/esm2022/widgets/lib/widgets/editors/number/number-box-widget.config.mjs +4 -2
  93. package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-column.component.mjs +44 -7
  94. package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-edit.component.mjs +1 -1
  95. package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-view.component.mjs +11 -5
  96. package/esm2022/widgets/lib/widgets/editors/password/password-box-widget.config.mjs +2 -1
  97. package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget.config.mjs +2 -1
  98. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.mjs +33 -15
  99. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget.config.mjs +5 -4
  100. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-edit.component.mjs +14 -2
  101. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget.config.mjs +2 -1
  102. package/esm2022/widgets/lib/widgets/editors/selection-list/index.mjs +2 -1
  103. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.mjs +20 -6
  104. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.mjs +75 -0
  105. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.mjs +13 -10
  106. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-view.component.mjs +2 -3
  107. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget.config.mjs +15 -2
  108. package/esm2022/widgets/lib/widgets/editors/text/text-box-widget.config.mjs +5 -4
  109. package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget.config.mjs +2 -1
  110. package/esm2022/widgets/lib/widgets/layout/block/block-widget.config.mjs +2 -2
  111. package/esm2022/widgets/lib/widgets/layout/document/document-widget.config.mjs +2 -2
  112. package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget.config.mjs +2 -2
  113. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget.config.mjs +2 -2
  114. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget.config.mjs +2 -2
  115. package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget.config.mjs +2 -2
  116. package/esm2022/widgets/lib/widgets/layout/page/page-widget.config.mjs +7 -3
  117. package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget.config.mjs +2 -2
  118. package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget.config.mjs +2 -1
  119. package/esm2022/widgets/lib/widgets.module.mjs +16 -10
  120. package/fesm2022/acorex-platform-common.mjs +1 -1
  121. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  122. package/fesm2022/acorex-platform-core.mjs +139 -1
  123. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  124. package/fesm2022/acorex-platform-layout-builder.mjs +12 -10
  125. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  126. package/fesm2022/{acorex-platform-layout-designer-preview.component-9dJh_ulU.mjs → acorex-platform-layout-designer-preview.component-CaRHf4x_.mjs} +3 -3
  127. package/fesm2022/{acorex-platform-layout-designer-preview.component-9dJh_ulU.mjs.map → acorex-platform-layout-designer-preview.component-CaRHf4x_.mjs.map} +1 -1
  128. package/fesm2022/{acorex-platform-layout-designer-widget-picker.component-DXgcm-fP.mjs → acorex-platform-layout-designer-widget-picker.component-BZryrCyh.mjs} +4 -4
  129. package/fesm2022/acorex-platform-layout-designer-widget-picker.component-BZryrCyh.mjs.map +1 -0
  130. package/fesm2022/acorex-platform-layout-designer.mjs +438 -282
  131. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  132. package/fesm2022/acorex-platform-layout-entity.mjs +20 -17
  133. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  134. package/fesm2022/{acorex-platform-layouts-entity-create-view.component-C2pYReAo.mjs → acorex-platform-layouts-entity-create-view.component-CPGbLM4C.mjs} +3 -2
  135. package/fesm2022/acorex-platform-layouts-entity-create-view.component-CPGbLM4C.mjs.map +1 -0
  136. package/fesm2022/acorex-platform-layouts.mjs +1633 -1633
  137. package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
  138. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-BGT0puX_.mjs → acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs} +7 -7
  139. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-BGT0puX_.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs.map} +1 -1
  140. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CWXJxLS0.mjs +281 -0
  141. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CWXJxLS0.mjs.map +1 -0
  142. package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-BHo31YVi.mjs → acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs} +7 -7
  143. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs.map +1 -0
  144. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs +357 -0
  145. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs.map +1 -0
  146. package/fesm2022/{acorex-platform-themes-default-error-401.component-zyAGwz2j.mjs → acorex-platform-themes-default-error-401.component-D5QQ2HAv.mjs} +3 -3
  147. package/fesm2022/{acorex-platform-themes-default-error-401.component-zyAGwz2j.mjs.map → acorex-platform-themes-default-error-401.component-D5QQ2HAv.mjs.map} +1 -1
  148. package/fesm2022/{acorex-platform-themes-default-error-404.component-DcxQ89LL.mjs → acorex-platform-themes-default-error-404.component-DSY_D3Iq.mjs} +3 -3
  149. package/fesm2022/{acorex-platform-themes-default-error-404.component-DcxQ89LL.mjs.map → acorex-platform-themes-default-error-404.component-DSY_D3Iq.mjs.map} +1 -1
  150. package/fesm2022/{acorex-platform-themes-default-error-offline.component-BMB6D5Cx.mjs → acorex-platform-themes-default-error-offline.component-B6wSkMdd.mjs} +3 -3
  151. package/fesm2022/{acorex-platform-themes-default-error-offline.component-BMB6D5Cx.mjs.map → acorex-platform-themes-default-error-offline.component-B6wSkMdd.mjs.map} +1 -1
  152. package/fesm2022/acorex-platform-themes-default.mjs +37 -434
  153. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  154. package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-C0S_HJkl.mjs → acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs} +23 -7
  155. package/fesm2022/acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs.map +1 -0
  156. package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-BzNhzB9y.mjs → acorex-platform-widgets-checkbox-widget-column.component-j1jG8pCr.mjs} +6 -6
  157. package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-j1jG8pCr.mjs.map +1 -0
  158. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-DfUr_DMU.mjs → acorex-platform-widgets-checkbox-widget-designer.component-DAGbdSTk.mjs} +4 -4
  159. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-DfUr_DMU.mjs.map → acorex-platform-widgets-checkbox-widget-designer.component-DAGbdSTk.mjs.map} +1 -1
  160. package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-BF24k3Y-.mjs → acorex-platform-widgets-color-box-widget-designer.component-Bb3aXCNZ.mjs} +4 -4
  161. package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-Bb3aXCNZ.mjs.map +1 -0
  162. package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-GTwK51nJ.mjs +23 -0
  163. package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-GTwK51nJ.mjs.map +1 -0
  164. package/fesm2022/acorex-platform-widgets.mjs +1139 -907
  165. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  166. package/layout/builder/lib/builder/widget.types.d.ts +13 -4
  167. package/layout/designer/index.d.ts +1 -6
  168. package/layout/designer/lib/{board → designer/components/board}/board.component.d.ts +1 -1
  169. package/layout/designer/lib/{breadcrumbs → designer/components/breadcrumbs}/breadcrumbs.component.d.ts +1 -1
  170. package/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.d.ts +12 -0
  171. package/layout/designer/lib/{history → designer/components/drawers/history}/history.component.d.ts +1 -1
  172. package/layout/designer/lib/{outline → designer/components/drawers/outline}/outline.component.d.ts +1 -1
  173. package/layout/designer/lib/{pages → designer/components/drawers/pages}/pages.component.d.ts +1 -1
  174. package/layout/designer/lib/{header-menu → designer/components/header-menu}/header-menu.component.d.ts +1 -1
  175. package/layout/designer/lib/designer/designer.component.d.ts +1 -1
  176. package/layout/designer/lib/designer/index.d.ts +7 -0
  177. package/layout/designer/lib/designer/shared/designer-connector.service.d.ts +11 -0
  178. package/layout/designer/lib/{designer.service.d.ts → designer/shared/designer.service.d.ts} +9 -12
  179. package/layout/designer/lib/designer/shared/designer.typs.d.ts +4 -0
  180. package/layout/designer/lib/designer/shared/drawer-content/drawer-content.component.d.ts +8 -0
  181. package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +8 -0
  182. package/layout/entity/lib/entity-registery.service.d.ts +1 -1
  183. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.d.ts +1 -1
  184. package/layout/entity/lib/workflows/create-entity.workflow.d.ts +2 -0
  185. package/layout/entity/lib/workflows/delete-entity.workflow.d.ts +2 -0
  186. package/layouts/lib/admin/entity-layout/index.d.ts +1 -1
  187. package/package.json +18 -18
  188. package/themes/default/index.d.ts +2 -1
  189. package/themes/default/lib/entity-reuse.strategy.d.ts +1 -1
  190. package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +10 -3
  191. package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-list-view.component.d.ts +33 -0
  192. package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.service.d.ts +11 -0
  193. package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +3 -2
  194. package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.d.ts +11 -0
  195. package/themes/default/lib/layouts/entity-layouts/index.d.ts +1 -0
  196. package/widgets/lib/properties/data-source.props.d.ts +2 -0
  197. package/widgets/lib/properties/editors.props.d.ts +5 -0
  198. package/widgets/lib/properties/general.props.d.ts +2 -1
  199. package/widgets/lib/properties/index.d.ts +1 -0
  200. package/widgets/lib/properties/table-column.props.d.ts +1 -0
  201. package/widgets/lib/widgets/actions/button/button-widget-designer.component.d.ts +2 -1
  202. package/widgets/lib/widgets/actions/button/button-widget-view.component.d.ts +2 -1
  203. package/widgets/lib/widgets/advance/file/file-box-widget-column.component.d.ts +1 -1
  204. package/widgets/lib/widgets/advance/gallery/gallery-widget-column.component.d.ts +1 -1
  205. package/widgets/lib/widgets/advance/map/index.d.ts +0 -3
  206. package/widgets/lib/widgets/advance/map/map-box-widget-edit.component.d.ts +11 -32
  207. package/widgets/lib/widgets/advance/map/map-box-widget-view.component.d.ts +6 -11
  208. package/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.d.ts +4 -4
  209. package/widgets/lib/widgets/advance/signature/signature-pad-widget-column.component.d.ts +1 -1
  210. package/widgets/lib/widgets/editors/checkbox/checkbox-widget-column.component.d.ts +1 -1
  211. package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -0
  212. package/widgets/lib/widgets/editors/contact/contact-widget-view.component.d.ts +2 -2
  213. package/widgets/lib/widgets/editors/contact/index.d.ts +2 -3
  214. package/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.d.ts +1 -1
  215. package/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.d.ts +2 -1
  216. package/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.d.ts +2 -2
  217. package/widgets/lib/widgets/editors/large-text/large-text-widget-column.component.d.ts +1 -1
  218. package/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.d.ts +1 -1
  219. package/widgets/lib/widgets/editors/large-text/large-text-widget-view.component.d.ts +1 -1
  220. package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -1
  221. package/widgets/lib/widgets/editors/password/password-box-widget-column.component.d.ts +7 -3
  222. package/widgets/lib/widgets/editors/password/password-box-widget-edit.component.d.ts +1 -1
  223. package/widgets/lib/widgets/editors/password/password-box-widget-view.component.d.ts +1 -1
  224. package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +2 -0
  225. package/widgets/lib/widgets/editors/selection-list/index.d.ts +1 -0
  226. package/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.d.ts +1 -1
  227. package/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.d.ts +16 -0
  228. package/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.d.ts +3 -2
  229. package/widgets/lib/widgets/editors/selection-list/selection-list-widget-view.component.d.ts +1 -1
  230. package/esm2022/layout/designer/lib/board/board.component.mjs +0 -112
  231. package/esm2022/layout/designer/lib/breadcrumbs/breadcrumbs.component.mjs +0 -64
  232. package/esm2022/layout/designer/lib/command.mjs +0 -185
  233. package/esm2022/layout/designer/lib/designer.service.mjs +0 -399
  234. package/esm2022/layout/designer/lib/header-menu/header-menu.component.mjs +0 -24
  235. package/esm2022/layout/designer/lib/helpers/grid-drawer/grid-drawer.component.mjs +0 -82
  236. package/esm2022/layout/designer/lib/history/history.component.mjs +0 -28
  237. package/esm2022/layout/designer/lib/outline/outline.component.mjs +0 -56
  238. package/esm2022/layout/designer/lib/pages/pages.component.mjs +0 -28
  239. package/esm2022/layout/designer/lib/widget-designer-renderer.directive.mjs +0 -224
  240. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-column.component.mjs +0 -19
  241. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-filter.component.mjs +0 -20
  242. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-print.component.mjs +0 -19
  243. package/fesm2022/acorex-platform-layout-designer-widget-picker.component-DXgcm-fP.mjs.map +0 -1
  244. package/fesm2022/acorex-platform-layouts-entity-create-view.component-C2pYReAo.mjs.map +0 -1
  245. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BHo31YVi.mjs.map +0 -1
  246. package/fesm2022/acorex-platform-widgets-button-widget-designer.component-C0S_HJkl.mjs.map +0 -1
  247. package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-BzNhzB9y.mjs.map +0 -1
  248. package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-BF24k3Y-.mjs.map +0 -1
  249. package/widgets/lib/widgets/advance/map/map-box-widget-column.component.d.ts +0 -6
  250. package/widgets/lib/widgets/advance/map/map-box-widget-filter.component.d.ts +0 -6
  251. package/widgets/lib/widgets/advance/map/map-box-widget-print.component.d.ts +0 -6
  252. /package/layout/designer/lib/{helpers → designer/components}/add-widget-button/add-widget-button.component.d.ts +0 -0
  253. /package/layout/designer/lib/{helpers → designer/components}/grid-drawer/grid-drawer.component.d.ts +0 -0
  254. /package/layout/designer/lib/{widget-picker → designer/components/widget-picker}/widget-picker.component.d.ts +0 -0
  255. /package/layout/designer/lib/{command.d.ts → designer/shared/command.d.ts} +0 -0
  256. /package/layout/designer/lib/{widget-designer-renderer.directive.d.ts → designer/shared/widget-designer-renderer.directive.d.ts} +0 -0
@@ -1,38 +1,17 @@
1
+ import { AXMapLocation } from '@acorex/components/map';
1
2
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
- import { ElementRef, OnDestroy, WritableSignal } from '@angular/core';
3
- import 'leaflet-draw';
4
- import 'leaflet.locatecontrol';
3
+ import { ChangeDetectorRef } from '@angular/core';
5
4
  import * as i0 from "@angular/core";
6
- interface AXPMapMarker {
7
- latitude: number;
8
- longitude: number;
9
- tooltip?: string;
10
- }
11
- export declare class AXPMapBoxWidgetEditComponent extends AXPWidgetComponent<any> implements OnDestroy {
12
- mapEl: ElementRef<HTMLElement>;
13
- private map?;
14
- private drawnItems;
15
- private markerLayer;
16
- protected markersList: WritableSignal<AXPMapMarker[]>;
17
- protected multiple: import("@angular/core").Signal<boolean>;
18
- protected zoomLevel: import("@angular/core").Signal<number>;
19
- protected markers: import("@angular/core").Signal<AXPMapMarker | AXPMapMarker[] | undefined>;
20
- ngAfterViewInit(): Promise<void>;
21
- initMap(): Promise<void>;
22
- ngOnDestroy(): void;
23
- initializingCenter(): [number, number];
24
- private onMarkerCreated;
25
- private addMarker;
26
- private replaceMarker;
27
- private initializeExistingMarkers;
28
- flyToMarker(marker: AXPMapMarker): void;
5
+ export declare class AXPMapBoxWidgetEditComponent extends AXPWidgetComponent<AXMapLocation[]> {
6
+ cdr: ChangeDetectorRef;
7
+ markers: import("@angular/core").Signal<any>;
8
+ hasDraw: import("@angular/core").Signal<boolean>;
9
+ hasLocate: import("@angular/core").Signal<boolean>;
10
+ maxMarker: import("@angular/core").Signal<number>;
11
+ zoomLevel: import("@angular/core").Signal<number>;
12
+ height: import("@angular/core").Signal<number>;
13
+ initialLocation: import("@angular/core").Signal<AXMapLocation>;
29
14
  private get __class();
30
15
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPMapBoxWidgetEditComponent, never>;
31
16
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPMapBoxWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
32
17
  }
33
- interface AXPMapMarker {
34
- latitude: number;
35
- longitude: number;
36
- tooltip?: string;
37
- }
38
- export {};
@@ -1,16 +1,11 @@
1
+ import { AXMapLocation } from '@acorex/components/map';
1
2
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
- import { ElementRef } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class AXPMapBoxWidgetViewComponent extends AXPWidgetComponent<any> {
5
- mapEl: ElementRef<HTMLElement>;
6
- leaflet: any;
7
- private map;
8
- private featuresGroup;
9
- private valueChangeEffect;
10
- ngAfterViewInit(): Promise<void>;
11
- addMarker(location: any, leaflet: any): void;
12
- updateMarkers(): void;
13
- initMap(): Promise<void>;
4
+ export declare class AXPMapBoxWidgetViewComponent extends AXPWidgetComponent<AXMapLocation[]> {
5
+ markers: import("@angular/core").Signal<T_1>;
6
+ height: import("@angular/core").Signal<number>;
7
+ zoomLevel: import("@angular/core").Signal<number>;
8
+ initialLocation: import("@angular/core").Signal<AXMapLocation>;
14
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPMapBoxWidgetViewComponent, never>;
15
10
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPMapBoxWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
16
11
  }
@@ -2,11 +2,11 @@ import { AXQrcodeLevel, AXQrcodeOutputType } from '@acorex/components/qrcode';
2
2
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AXPQrcodeWidgetViewComponent extends AXPWidgetComponent<string> {
5
- content: import("@angular/core").Signal<T_1>;
6
- protected size: import("@angular/core").Signal<number | undefined>;
7
- protected level: import("@angular/core").Signal<AXQrcodeLevel | undefined>;
5
+ protected content: import("@angular/core").Signal<string>;
6
+ protected size: import("@angular/core").Signal<number>;
7
+ protected level: import("@angular/core").Signal<AXQrcodeLevel>;
8
8
  protected color: import("@angular/core").Signal<string>;
9
- protected outputType: import("@angular/core").Signal<AXQrcodeOutputType | undefined>;
9
+ protected outputType: import("@angular/core").Signal<AXQrcodeOutputType>;
10
10
  private get __class();
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPQrcodeWidgetViewComponent, never>;
12
12
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPQrcodeWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
@@ -2,5 +2,5 @@ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class AXPSignatureWidgetColumnComponent extends AXPWidgetComponent<any> {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPSignatureWidgetColumnComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPSignatureWidgetColumnComponent, "ng-component", never, {}, {}, never, never, true, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPSignatureWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; }, {}, never, never, true, never>;
6
6
  }
@@ -5,5 +5,5 @@ export declare class AXPCheckBoxWidgetColumnComponent extends AXPColumnWidgetCom
5
5
  protected trulyText: string;
6
6
  protected falsyText: string;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPCheckBoxWidgetColumnComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPCheckBoxWidgetColumnComponent, "ng-component", never, {}, {}, never, never, true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPCheckBoxWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; }, {}, never, never, true, never>;
9
9
  }
@@ -12,6 +12,7 @@ export declare class AXPContactWidgetEditComponent extends AXPWidgetComponent<an
12
12
  protected multiple: Signal<boolean>;
13
13
  protected hasIcon: Signal<boolean>;
14
14
  protected disabled: Signal<boolean>;
15
+ constructor();
15
16
  private popup;
16
17
  protected dataSource: AXDataSource<string | undefined>;
17
18
  protected internalValue: Signal<AXPContactDataType[]>;
@@ -3,7 +3,7 @@ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
3
  import { Signal } from '@angular/core';
4
4
  import { AXPContactDataType } from './contact.type';
5
5
  import * as i0 from "@angular/core";
6
- export declare class AXPContactWidgetViewComponent extends AXPWidgetComponent<any> {
6
+ export declare class AXPContactWidgetViewComponent extends AXPWidgetComponent<AXPContactDataType | string> {
7
7
  protected type: Signal<"email" | "link" | "phone">;
8
8
  protected labelList: Signal<string[]>;
9
9
  protected hasLabel: Signal<boolean>;
@@ -12,8 +12,8 @@ export declare class AXPContactWidgetViewComponent extends AXPWidgetComponent<an
12
12
  protected internalValue: Signal<AXPContactDataType[]>;
13
13
  protected clipboard: AXPClipBoardService;
14
14
  protected chooseIcon: () => string;
15
- private valueToArray;
16
15
  private itemToArray;
16
+ private correctItems;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPContactWidgetViewComponent, never>;
18
18
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPContactWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
19
19
  }
@@ -1,6 +1,5 @@
1
- export * from './contact-widget-view.component';
2
- export * from './contact-widget-edit.component';
3
- export * from './contact-widget-filter.component';
4
1
  export * from './contact-widget-column.component';
2
+ export * from './contact-widget-edit.component';
5
3
  export * from './contact-widget-print.component';
4
+ export * from './contact-widget-view.component';
6
5
  export * from './contact-widget.config';
@@ -1,7 +1,7 @@
1
1
  import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import { Signal } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class AXPDateTimeBoxWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
4
+ export declare class AXPDateTimeBoxWidgetColumnComponent extends AXPColumnWidgetComponent<string | string[]> {
5
5
  private formatter;
6
6
  protected convertedValue: Signal<string | null>;
7
7
  protected multiple: boolean;
@@ -4,13 +4,14 @@ import { AXPValidationRules } from '@acorex/platform/core';
4
4
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
5
5
  import { Signal } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
- export declare class AXPDateTimeBoxWidgetEditComponent extends AXPWidgetComponent<any> {
7
+ export declare class AXPDateTimeBoxWidgetEditComponent extends AXPWidgetComponent<string | string[]> {
8
8
  protected validationService: AXValidationService;
9
9
  protected validationMessage?: string | null;
10
10
  protected multiple: Signal<boolean>;
11
11
  protected clearButton: Signal<boolean>;
12
12
  protected format: Signal<"date" | "datetime" | "time">;
13
13
  protected disabled: Signal<boolean>;
14
+ protected placeholder: Signal<string>;
14
15
  protected internalValue: Signal<string[]>;
15
16
  private _validationRules;
16
17
  get validationRules(): AXPValidationRules;
@@ -1,10 +1,10 @@
1
1
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import * as i0 from "@angular/core";
3
- export declare class AXPDateTimeBoxWidgetViewComponent extends AXPWidgetComponent<any> {
3
+ export declare class AXPDateTimeBoxWidgetViewComponent extends AXPWidgetComponent<string | string[]> {
4
4
  private formatter;
5
5
  protected multiple: import("@angular/core").Signal<boolean>;
6
6
  protected format: import("@angular/core").Signal<"date" | "datetime" | "time">;
7
- protected internalValue: import("@angular/core").Signal<any>;
7
+ protected internalValue: import("@angular/core").Signal<string[]>;
8
8
  protected handleFormat(value: string): string;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPDateTimeBoxWidgetViewComponent, never>;
10
10
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPDateTimeBoxWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
@@ -1,6 +1,6 @@
1
1
  import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import * as i0 from "@angular/core";
3
- export declare class AXPLargeTextWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
3
+ export declare class AXPLargeTextWidgetColumnComponent extends AXPColumnWidgetComponent<string> {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPLargeTextWidgetColumnComponent, never>;
5
5
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPLargeTextWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; }, {}, never, never, true, never>;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { AXPValidationRules } from '@acorex/platform/core';
2
2
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
3
  import * as i0 from "@angular/core";
4
- export declare class AXPLargeTextWidgetEditComponent extends AXPWidgetComponent<any> {
4
+ export declare class AXPLargeTextWidgetEditComponent extends AXPWidgetComponent<string> {
5
5
  protected multiple: import("@angular/core").Signal<boolean>;
6
6
  protected disabled: import("@angular/core").Signal<boolean>;
7
7
  protected clearButton: import("@angular/core").Signal<boolean>;
@@ -1,6 +1,6 @@
1
1
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import * as i0 from "@angular/core";
3
- export declare class AXPLargeTextWidgetViewComponent extends AXPWidgetComponent<any> {
3
+ export declare class AXPLargeTextWidgetViewComponent extends AXPWidgetComponent<string> {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPLargeTextWidgetViewComponent, never>;
5
5
  static ɵcmp: i0.ɵɵComponentDeclaration<AXPLargeTextWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
6
  }
@@ -4,7 +4,7 @@ import { AXPValidationRules } from '@acorex/platform/core';
4
4
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
5
5
  import { Signal } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
- export declare class AXPNumberBoxWidgetEditComponent extends AXPWidgetComponent<any> {
7
+ export declare class AXPNumberBoxWidgetEditComponent extends AXPWidgetComponent<number | number[]> {
8
8
  protected disabled: Signal<boolean>;
9
9
  protected multiple: Signal<boolean>;
10
10
  protected clearButton: Signal<boolean>;
@@ -1,6 +1,10 @@
1
- import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
1
+ import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import * as i0 from "@angular/core";
3
- export declare class AXPPasswordBoxWidgetColumnComponent extends AXPWidgetComponent<any> {
3
+ export declare class AXPPasswordBoxWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
4
+ protected hasEyeIcon: any;
5
+ protected showPassword: any;
6
+ protected show: import("@angular/core").WritableSignal<boolean>;
7
+ toggleEye(): void;
4
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPPasswordBoxWidgetColumnComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPPasswordBoxWidgetColumnComponent, "ng-component", never, {}, {}, never, never, true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPPasswordBoxWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; }, {}, never, never, true, never>;
6
10
  }
@@ -1,6 +1,6 @@
1
1
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
2
2
  import * as i0 from "@angular/core";
3
- export declare class AXPPasswordBoxWidgetEditComponent extends AXPWidgetComponent<any> {
3
+ export declare class AXPPasswordBoxWidgetEditComponent extends AXPWidgetComponent<string> {
4
4
  protected disabled: import("@angular/core").Signal<boolean>;
5
5
  protected hasClearButton: import("@angular/core").Signal<boolean>;
6
6
  private get __class();
@@ -1,7 +1,7 @@
1
1
  import { AXPClipBoardService } from '@acorex/platform/common';
2
2
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
3
  import * as i0 from "@angular/core";
4
- export declare class AXPPasswordBoxWidgetViewComponent extends AXPWidgetComponent<any> {
4
+ export declare class AXPPasswordBoxWidgetViewComponent extends AXPWidgetComponent<string> {
5
5
  protected internalValue: import("@angular/core").Signal<T_1>;
6
6
  protected hasCopyIcon: import("@angular/core").Signal<boolean>;
7
7
  protected hasEyeIcon: import("@angular/core").Signal<boolean>;
@@ -2,7 +2,9 @@ import { AXPValidationRules } from '@acorex/platform/core';
2
2
  import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AXPRichTextWidgetEditComponent extends AXPWidgetComponent<any> {
5
+ protected placeholder: import("@angular/core").Signal<string>;
5
6
  protected setNgModel(event: string): void;
7
+ constructor();
6
8
  private _validationRules;
7
9
  get validationRules(): AXPValidationRules;
8
10
  set validationRules(v: AXPValidationRules);
@@ -1,4 +1,5 @@
1
1
  export * from './selection-list-widget-view.component';
2
+ export * from './selection-list-widget-designer.component';
2
3
  export * from './selection-list-widget-edit.component';
3
4
  export * from './selection-list-widget-filter.component';
4
5
  export * from './selection-list-widget-column.component';
@@ -6,7 +6,7 @@ export declare class AXPSelectionListWidgetColumnComponent extends AXPColumnWidg
6
6
  protected textField: string;
7
7
  protected items: any[];
8
8
  protected multiple: boolean;
9
- protected selectedItemIds: Signal<number[]>;
9
+ protected selectedItemIds: Signal<string[]>;
10
10
  protected selectedItems: Signal<any[]>;
11
11
  protected firstItem: Signal<any>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPSelectionListWidgetColumnComponent, never>;
@@ -0,0 +1,16 @@
1
+ import { AXDirection } from '@acorex/components/common';
2
+ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXPSelectionListWidgetDesignerComponent extends AXPWidgetComponent<any> {
5
+ private samples;
6
+ protected multiple: import("@angular/core").Signal<boolean>;
7
+ protected items: import("@angular/core").Signal<any[]>;
8
+ protected valueField: import("@angular/core").Signal<string>;
9
+ protected textField: import("@angular/core").Signal<string>;
10
+ protected direction: import("@angular/core").Signal<AXDirection>;
11
+ protected disabled: import("@angular/core").Signal<boolean>;
12
+ protected readonly: import("@angular/core").Signal<boolean>;
13
+ private get __class();
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSelectionListWidgetDesignerComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPSelectionListWidgetDesignerComponent, "ng-component", never, {}, {}, never, never, true, never>;
16
+ }
@@ -8,8 +8,9 @@ export declare class AXPSelectionListWidgetEditComponent extends AXPWidgetCompon
8
8
  protected valueField: import("@angular/core").Signal<string>;
9
9
  protected textField: import("@angular/core").Signal<string>;
10
10
  protected direction: import("@angular/core").Signal<AXDirection>;
11
- private _validationRules;
12
- get validationRules(): AXPValidationRules;
11
+ protected disabled: import("@angular/core").Signal<boolean>;
12
+ protected readonly: import("@angular/core").Signal<boolean>;
13
+ protected validationRules: import("@angular/core").Signal<AXPValidationRules>;
13
14
  protected handleValueChange(e: AXValueChangedEvent): void;
14
15
  private get __class();
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPSelectionListWidgetEditComponent, never>;
@@ -7,5 +7,5 @@ export declare class AXPSelectionListWidgetViewComponent extends AXPWidgetCompon
7
7
  protected valueField: import("@angular/core").Signal<string>;
8
8
  protected textField: import("@angular/core").Signal<string>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPSelectionListWidgetViewComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPSelectionListWidgetViewComponent, "ng-component", never, { "items": { "alias": "items"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, true, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPSelectionListWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
11
11
  }
@@ -1,112 +0,0 @@
1
- import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
2
- import { CommonModule } from '@angular/common';
3
- import { Component, inject, ViewEncapsulation, ChangeDetectionStrategy, computed, effect, ElementRef, HostBinding } from '@angular/core';
4
- import { AXPDesignerService } from '../designer.service';
5
- import { get } from 'lodash-es';
6
- import { AXPWidgetDesignerRendererDirective } from '../widget-designer-renderer.directive';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@acorex/platform/layout/builder";
9
- export class AXPDesignerBoardComponent {
10
- constructor() {
11
- this.context = {};
12
- this.elementRef = inject((ElementRef));
13
- this.breakpointMap = {
14
- 'sm': 640,
15
- 'md': 768,
16
- 'lg': 1024,
17
- 'xl': 1280,
18
- 'xxl': 1536
19
- };
20
- this.service = inject(AXPDesignerService);
21
- this.width = computed(() => {
22
- switch (this.service.size()) {
23
- case 'sm':
24
- return '340px';
25
- case 'md':
26
- case 'lg':
27
- return '768px';
28
- default:
29
- return '100%';
30
- }
31
- });
32
- this.ef = effect(() => {
33
- this.removeCustomClass();
34
- if (this.service.size() != 'xl') {
35
- this.applyResponsiveStyles(this.service.size());
36
- }
37
- });
38
- }
39
- // Unified method to extract media queries and create a custom class
40
- applyResponsiveStyles(breakpoint) {
41
- const minWidth = get(this.breakpointMap, breakpoint);
42
- const mediaRules = [];
43
- // Loop through all the stylesheets
44
- for (let sheet of Array.from(document.styleSheets)) {
45
- try {
46
- // Loop through CSS rules
47
- for (let rule of Array.from(sheet.cssRules)) {
48
- // Check if the rule is a CSSMediaRule
49
- if (rule instanceof CSSMediaRule && rule.media.mediaText.includes(`min-width: ${minWidth}px`)) {
50
- // Loop through the media rule's CSS rules
51
- for (let subRule of Array.from(rule.cssRules)) {
52
- mediaRules.push(subRule.cssText);
53
- }
54
- }
55
- }
56
- }
57
- catch (e) {
58
- console.error('Error accessing stylesheet:', e);
59
- }
60
- }
61
- // Create a dynamic class for the media queries
62
- this.createCustomClass(`axp-preview-${breakpoint}`, mediaRules, breakpoint);
63
- }
64
- createCustomClass(className, styles, breakpoint) {
65
- const styleSheet = document.createElement('style');
66
- styleSheet.setAttribute("data-screen", breakpoint);
67
- // Construct a pure CSS string, dynamically replacing the breakpoint prefix
68
- let styleString = "";
69
- styles.forEach(style => {
70
- // Replace any prefixed classes like 'lg:' or 'md:' dynamically
71
- const dynamicPrefix = new RegExp(`\\.${breakpoint}\\\\:`, 'g');
72
- styleString += `.${className} ${style.replace(dynamicPrefix, '.')}`; // Replace the breakpoint prefix
73
- });
74
- styleSheet.innerText = styleString;
75
- this.removeCustomClass();
76
- this.elementRef.nativeElement.appendChild(styleSheet);
77
- }
78
- removeCustomClass() {
79
- this.elementRef.nativeElement.querySelectorAll('style').forEach(s => s.remove());
80
- }
81
- get __style() {
82
- const cls = {};
83
- cls[`width`] = this.width();
84
- return cls;
85
- }
86
- get __class() {
87
- const cls = {};
88
- cls[`axp-designer-board`] = true;
89
- cls[`axp-state-design`] = true;
90
- cls['ax-h-full'] = true;
91
- cls['ax-overflow-auto'] = true;
92
- cls[`axp-preview-${this.service.size()}`] = true;
93
- return cls;
94
- }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDesignerBoardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
96
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPDesignerBoardComponent, isStandalone: true, selector: "axp-designer-board", host: { properties: { "style": "this.__style", "class": "this.__class" } }, ngImport: i0, template: "<axp-widgets-container [(context)]=\"context\">\n <ng-container axp-widget-designer-renderer [node]=\"service.currentPage()\" [mode]=\"service.mode()\"></ng-container>\n</axp-widgets-container>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["onChanged", "contextChange"] }, { kind: "directive", type: AXPWidgetDesignerRendererDirective, selector: "[axp-widget-designer-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
97
- }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDesignerBoardComponent, decorators: [{
99
- type: Component,
100
- args: [{ selector: 'axp-designer-board', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
101
- CommonModule,
102
- AXPLayoutBuilderModule,
103
- AXPWidgetDesignerRendererDirective
104
- ], template: "<axp-widgets-container [(context)]=\"context\">\n <ng-container axp-widget-designer-renderer [node]=\"service.currentPage()\" [mode]=\"service.mode()\"></ng-container>\n</axp-widgets-container>" }]
105
- }], propDecorators: { __style: [{
106
- type: HostBinding,
107
- args: ['style']
108
- }], __class: [{
109
- type: HostBinding,
110
- args: ['class']
111
- }] } });
112
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9hcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS9sYXlvdXQvZGVzaWduZXIvc3JjL2xpYi9ib2FyZC9ib2FyZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi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c3QgbWluV2lkdGggPSBnZXQodGhpcy5icmVha3BvaW50TWFwLCBicmVha3BvaW50KSBhcyBudW1iZXI7XG4gICAgICAgIGNvbnN0IG1lZGlhUnVsZXMgPSBbXTtcblxuICAgICAgICAvLyBMb29wIHRocm91Z2ggYWxsIHRoZSBzdHlsZXNoZWV0c1xuICAgICAgICBmb3IgKGxldCBzaGVldCBvZiBBcnJheS5mcm9tKGRvY3VtZW50LnN0eWxlU2hlZXRzKSkge1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAvLyBMb29wIHRocm91Z2ggQ1NTIHJ1bGVzXG4gICAgICAgICAgICAgICAgZm9yIChsZXQgcnVsZSBvZiBBcnJheS5mcm9tKHNoZWV0LmNzc1J1bGVzKSkge1xuICAgICAgICAgICAgICAgICAgICAvLyBDaGVjayBpZiB0aGUgcnVsZSBpcyBhIENTU01lZGlhUnVsZVxuICAgICAgICAgICAgICAgICAgICBpZiAocnVsZSBpbnN0YW5jZW9mIENTU01lZGlhUnVsZSAmJiBydWxlLm1lZGlhLm1lZGlhVGV4dC5pbmNsdWRlcyhgbWluLXdpZHRoOiAke21pbldpZHRofXB4YCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIExvb3AgdGhyb3VnaCB0aGUgbWVkaWEgcnVsZSdzIENTUyBydWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgc3ViUnVsZSBvZiBBcnJheS5mcm9tKHJ1bGUuY3NzUnVsZXMpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVkaWFSdWxlcy5wdXNoKHN1YlJ1bGUuY3NzVGV4dCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcignRXJyb3IgYWNjZXNzaW5nIHN0eWxlc2hl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ICAgICAgICB9XG4gICAgfSk7XG5cblxuICAgIEBIb3N0QmluZGluZygnc3R5bGUnKVxuICAgIHByaXZhdGUgZ2V0IF9fc3R5bGUoKTogc3RyaW5nIHtcbiAgICAgICAgY29uc3QgY2xzOiBhbnkgPSB7fTtcbiAgICAgICAgY2xzW2B3aWR0aGBdID0gdGhpcy53aWR0aCgpO1xuICAgICAgICByZXR1cm4gY2xzO1xuICAgIH1cblxuICAgIEBIb3N0QmluZGluZygnY2xhc3MnKVxuICAgIHByaXZhdGUgZ2V0IF9fY2xhc3MoKTogc3RyaW5nIHtcbiAgICAgICAgY29uc3QgY2xzOiBhbnkgPSB7fTtcbiAgICAgICAgY2xzW2BheHAtZGVzaWduZXItYm9hcmRgXSA9IHRydWU7XG4gICAgICAgIGNsc1tgYXhwLXN0YXRlLWRlc2lnbmBdID0gdHJ1ZTtcbiAgICAgICAgY2xzWydheC1oLWZ1bGwnXSA9IHRydWU7XG4gICAgICAgIGNsc1snYXgtb3ZlcmZsb3ctYXV0byddID0gdHJ1ZTtcbiAgICAgICAgY2xzW2BheHAtcHJldmlldy0ke3RoaXMuc2VydmljZS5zaXplKCl9YF0gPSB0cnVlO1xuICAgICAgICByZXR1cm4gY2xzO1xuICAgIH1cblxufVxuIiwiPGF4cC13aWRnZXRzLWNvbnRhaW5lciBbKGNvbnRleHQpXT1cImNvbnRleHRcIj5cbiAgICA8bmctY29udGFpbmVyIGF4cC13aWRnZXQtZGVzaWduZXItcmVuZGVyZXIgW25vZGVdPVwic2VydmljZS5jdXJyZW50UGFnZSgpXCIgW21vZGVdPVwic2VydmljZS5tb2RlKClcIj48L25nLWNvbnRhaW5lcj5cbjwvYXhwLXdpZGdldHMtY29udGFpbmVyPiJdfQ==
@@ -1,64 +0,0 @@
1
- import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
2
- import { CommonModule } from '@angular/common';
3
- import { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';
4
- import { AXPDesignerService } from '../designer.service';
5
- import { get } from 'lodash-es';
6
- import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
7
- import { AXDecoratorModule } from '@acorex/components/decorators';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@acorex/components/breadcrumbs";
10
- export class AXPDesignerBreadcrumbsComponent {
11
- constructor() {
12
- this.service = inject(AXPDesignerService);
13
- }
14
- getTitle(node) {
15
- return get(node, "__meta__.config.title");
16
- }
17
- handleClick(node) {
18
- this.service.select({ widget: node });
19
- }
20
- handleMouseOver(node) {
21
- this.service.focus({ widget: node });
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDesignerBreadcrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPDesignerBreadcrumbsComponent, isStandalone: true, selector: "axp-designer-breadcrumbs", ngImport: i0, template: `
25
- <ax-breadcrumbs class="ax-text-white">
26
- @for( b of service.breadcrumbs();track $index){
27
- <ax-breadcrumbs-item>
28
- <a (click)="handleClick(b)" (mouseover)="handleMouseOver(b)"> {{getTitle(b)}}</a>
29
- </ax-breadcrumbs-item>
30
- }
31
- <ng-template #divider>
32
- <i class="ax-icon ax-icon-chevron-right"></i>
33
- </ng-template>
34
- </ax-breadcrumbs>
35
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: i1.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i1.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type: AXDecoratorModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDesignerBreadcrumbsComponent, decorators: [{
38
- type: Component,
39
- args: [{
40
- selector: 'axp-designer-breadcrumbs',
41
- template: `
42
- <ax-breadcrumbs class="ax-text-white">
43
- @for( b of service.breadcrumbs();track $index){
44
- <ax-breadcrumbs-item>
45
- <a (click)="handleClick(b)" (mouseover)="handleMouseOver(b)"> {{getTitle(b)}}</a>
46
- </ax-breadcrumbs-item>
47
- }
48
- <ng-template #divider>
49
- <i class="ax-icon ax-icon-chevron-right"></i>
50
- </ng-template>
51
- </ax-breadcrumbs>
52
- `,
53
- encapsulation: ViewEncapsulation.None,
54
- changeDetection: ChangeDetectionStrategy.OnPush,
55
- standalone: true,
56
- imports: [
57
- CommonModule,
58
- AXPLayoutBuilderModule,
59
- AXBreadcrumbsModule,
60
- AXDecoratorModule
61
- ],
62
- }]
63
- }] });
64
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYnMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS9sYXlvdXQvZGVzaWduZXIvc3JjL2xpYi9icmVhZGNydW1icy9icmVhZGNydW1icy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHNCQUFzQixFQUFpQixNQUFNLGlDQUFpQyxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBVSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN6RCxPQUF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