@acorex/platform 1.0.0 → 1.0.1

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 (686) hide show
  1. package/auth/index.d.ts +3 -6
  2. package/auth/lib/application/application.loader.d.ts +2 -3
  3. package/auth/lib/auth.module.d.ts +5 -4
  4. package/auth/lib/auth.strategy.d.ts +17 -6
  5. package/auth/lib/errors.types.d.ts +12 -2
  6. package/auth/lib/feature/feature.directive.d.ts +15 -0
  7. package/auth/lib/feature/feature.guard.d.ts +2 -0
  8. package/auth/lib/feature/feature.loader.d.ts +2 -1
  9. package/auth/lib/feature/index.d.ts +4 -0
  10. package/auth/lib/permission/index.d.ts +4 -0
  11. package/auth/lib/permission/permission.directive.d.ts +5 -6
  12. package/auth/lib/permission/permission.guard.d.ts +1 -1
  13. package/auth/lib/permission/permission.loader.d.ts +2 -1
  14. package/auth/lib/session.service.d.ts +21 -13
  15. package/auth/lib/session.types.d.ts +24 -0
  16. package/auth/lib/tenant/tenant.loader.d.ts +2 -3
  17. package/common/index.d.ts +0 -1
  18. package/common/lib/common.module.d.ts +1 -1
  19. package/common/lib/configs/app.config.d.ts +0 -1
  20. package/common/lib/data/data-provider.types.d.ts +4 -0
  21. package/common/lib/shared/state-persistence/state-persistence.actions.d.ts +1 -1
  22. package/common/lib/store/common.actions.d.ts +3 -3
  23. package/core/README.md +4 -0
  24. package/core/index.d.ts +4 -0
  25. package/core/lib/app/application.types.d.ts +144 -0
  26. package/core/lib/app/operators.d.ts +22 -0
  27. package/core/lib/configs/config.types.d.ts +5 -0
  28. package/core/lib/core.module.d.ts +6 -0
  29. package/esm2022/auth/index.mjs +4 -7
  30. package/esm2022/auth/lib/application/application.loader.mjs +2 -5
  31. package/esm2022/auth/lib/auth-registry.service.mjs +3 -3
  32. package/esm2022/auth/lib/auth.guard.mjs +7 -9
  33. package/esm2022/auth/lib/auth.module.mjs +26 -20
  34. package/esm2022/auth/lib/auth.strategy.mjs +1 -1
  35. package/esm2022/auth/lib/errors.types.mjs +7 -5
  36. package/esm2022/auth/lib/feature/feature.directive.mjs +55 -0
  37. package/esm2022/auth/lib/feature/feature.guard.mjs +19 -0
  38. package/esm2022/auth/lib/feature/feature.loader.mjs +2 -2
  39. package/esm2022/auth/lib/feature/index.mjs +5 -0
  40. package/esm2022/auth/lib/permission/index.mjs +5 -0
  41. package/esm2022/auth/lib/permission/permission.directive.mjs +24 -21
  42. package/esm2022/auth/lib/permission/permission.guard.mjs +12 -9
  43. package/esm2022/auth/lib/permission/permission.loader.mjs +2 -2
  44. package/esm2022/auth/lib/session.service.mjs +116 -121
  45. package/esm2022/auth/lib/session.types.mjs +29 -0
  46. package/esm2022/auth/lib/tenant/tenant.loader.mjs +2 -5
  47. package/esm2022/common/index.mjs +1 -2
  48. package/esm2022/common/lib/common.module.mjs +19 -26
  49. package/esm2022/common/lib/configs/app.config.mjs +2 -3
  50. package/esm2022/common/lib/data/data-provider.types.mjs +1 -1
  51. package/esm2022/common/lib/errors/error-handler-registry.service.mjs +3 -3
  52. package/esm2022/common/lib/errors/global-error-handler.mjs +3 -3
  53. package/esm2022/common/lib/settings/settings.service.mjs +3 -3
  54. package/esm2022/common/lib/shared/state-persistence/state-persistence.module.mjs +4 -4
  55. package/esm2022/common/lib/store/common.effects.mjs +3 -3
  56. package/esm2022/common/lib/utils/clipboard-service.mjs +3 -3
  57. package/esm2022/common/lib/utils/router-util.service.mjs +3 -3
  58. package/esm2022/common/lib/utils/sticky.directive.mjs +3 -3
  59. package/esm2022/core/acorex-platform-core.mjs +5 -0
  60. package/esm2022/core/index.mjs +5 -0
  61. package/esm2022/core/lib/app/application.types.mjs +19 -0
  62. package/esm2022/core/lib/app/operators.mjs +50 -0
  63. package/esm2022/core/lib/configs/config.types.mjs +3 -0
  64. package/esm2022/core/lib/core.module.mjs +16 -0
  65. package/esm2022/layout/acorex-platform-layout.mjs +5 -0
  66. package/esm2022/layout/index.mjs +3 -0
  67. package/esm2022/layout/lib/builder/builder.module.mjs +66 -0
  68. package/esm2022/layout/lib/builder/context.service.mjs +64 -0
  69. package/esm2022/layout/lib/builder/index.mjs +8 -0
  70. package/esm2022/layout/lib/builder/widget-column-renderer.mjs +75 -0
  71. package/esm2022/layout/lib/builder/widget-container.mjs +45 -0
  72. package/esm2022/layout/lib/builder/widget-registery.service.mjs +33 -0
  73. package/esm2022/layout/lib/builder/widget-renderer.mjs +279 -0
  74. package/esm2022/layout/lib/builder/widget.types.mjs +49 -0
  75. package/esm2022/layout/lib/component-slot/component-slot-loader.service.mjs +56 -0
  76. package/esm2022/layout/lib/component-slot/component-slot-registery.service.mjs +28 -0
  77. package/esm2022/layout/lib/component-slot/component-slot.directive.mjs +24 -0
  78. package/esm2022/layout/lib/component-slot/component-slot.module.mjs +72 -0
  79. package/esm2022/layout/lib/component-slot/component-slot.types.mjs +2 -0
  80. package/esm2022/layout/lib/component-slot/index.mjs +6 -0
  81. package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.mjs +3 -3
  82. package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.component.mjs +3 -3
  83. package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.module.mjs +4 -4
  84. package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.component.mjs +6 -6
  85. package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.module.mjs +6 -6
  86. package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.mjs +4 -4
  87. package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.mjs +5 -5
  88. package/esm2022/layouts/lib/admin/admin.module.mjs +18 -10
  89. package/esm2022/layouts/lib/admin/admin.routes.mjs +14 -2
  90. package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +4 -4
  91. package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +3 -3
  92. package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +3 -3
  93. package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +15 -15
  94. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +4 -4
  95. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +3 -3
  96. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +3 -3
  97. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +6 -6
  98. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +3 -3
  99. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +31 -27
  100. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +8 -6
  101. package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +11 -7
  102. package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +4 -4
  103. package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +3 -3
  104. package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +16 -18
  105. package/esm2022/layouts/lib/admin/entity-layout/index.mjs +2 -1
  106. package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +3 -3
  107. package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +7 -22
  108. package/esm2022/layouts/lib/admin/entity-layout/workflows/index.mjs +4 -0
  109. package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +3 -3
  110. package/esm2022/layouts/lib/admin/entity-layout/workflows/show-details.workflow.mjs +10 -0
  111. package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +10 -0
  112. package/esm2022/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.mjs +10 -0
  113. package/esm2022/layouts/lib/admin/entity.resolver.mjs +1 -5
  114. package/esm2022/layouts/lib/admin/store/admin-layout.effects.mjs +3 -3
  115. package/esm2022/layouts/lib/layout.module.mjs +9 -24
  116. package/esm2022/layouts/lib/shared/components/content-view/content-view.page.mjs +4 -4
  117. package/esm2022/layouts/lib/shared/components/error-401/error-401.component.mjs +5 -6
  118. package/esm2022/layouts/lib/shared/components/error-404/error-404.component.mjs +3 -3
  119. package/esm2022/layouts/lib/shared/components/error-offline/error-offline.component.mjs +3 -3
  120. package/esm2022/layouts/lib/shared/components/index.mjs +2 -1
  121. package/esm2022/layouts/lib/shared/components/logo/logo.component.mjs +5 -5
  122. package/esm2022/layouts/lib/shared/components/slots/footer-text-slot.component.mjs +3 -3
  123. package/esm2022/layouts/lib/shared/components/slots/navbar-slot.component.mjs +3 -3
  124. package/esm2022/layouts/lib/shared/components/slots/theme-slot.component.mjs +4 -4
  125. package/esm2022/layouts/lib/shared/entity/entity-registery.service.mjs +3 -3
  126. package/esm2022/layouts/lib/shared/entity/entity.class.mjs +1 -1
  127. package/esm2022/layouts/lib/shared/services/layout.service.mjs +3 -3
  128. package/esm2022/layouts/lib/shared/workflows/common.workflow.mjs +54 -17
  129. package/esm2022/layouts/lib/shared/workflows/error-handler.mjs +3 -3
  130. package/esm2022/layouts/lib/themes/default/entity-layouts/entity-details-view/entity-details-view.component.mjs +73 -0
  131. package/esm2022/layouts/lib/themes/default/entity-layouts/entity-details.viewmodel.mjs +99 -0
  132. package/esm2022/layouts/lib/themes/default/index.mjs +3 -0
  133. package/esm2022/layouts/lib/widgets/avatar/avatar-widget-edit.component.mjs +70 -12
  134. package/esm2022/layouts/lib/widgets/avatar/avatar-widget-view.component.mjs +41 -13
  135. package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-column.component.mjs +6 -6
  136. package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.mjs +3 -3
  137. package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-view.component.mjs +5 -5
  138. package/esm2022/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.mjs +4 -4
  139. package/esm2022/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.mjs +3 -3
  140. package/esm2022/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.mjs +3 -3
  141. package/esm2022/layouts/lib/widgets/common-widgets.module.mjs +32 -7
  142. package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-column.component.mjs +7 -7
  143. package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.mjs +12 -9
  144. package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.mjs +10 -26
  145. package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-view.component.mjs +6 -6
  146. package/esm2022/layouts/lib/widgets/email/email-widget-column.component.mjs +7 -7
  147. package/esm2022/layouts/lib/widgets/email/email-widget-edit.component.mjs +5 -5
  148. package/esm2022/layouts/lib/widgets/email/email-widget-view.component.mjs +5 -5
  149. package/esm2022/layouts/lib/widgets/file/file-widget-column.component.mjs +6 -6
  150. package/esm2022/layouts/lib/widgets/file/file-widget-edit.component.mjs +5 -5
  151. package/esm2022/layouts/lib/widgets/file/file-widget-filter.component.mjs +5 -5
  152. package/esm2022/layouts/lib/widgets/file/file-widget-view.component.mjs +5 -5
  153. package/esm2022/layouts/lib/widgets/gallery/gallery-widget-edit.component.mjs +5 -5
  154. package/esm2022/layouts/lib/widgets/gallery/gallery-widget-filter.component.mjs +5 -5
  155. package/esm2022/layouts/lib/widgets/gallery/gallery-widget-view.component.mjs +6 -6
  156. package/esm2022/layouts/lib/widgets/lookup/lookup-widget-column.component.mjs +6 -6
  157. package/esm2022/layouts/lib/widgets/lookup/lookup-widget-edit.component.mjs +5 -5
  158. package/esm2022/layouts/lib/widgets/lookup/lookup-widget-filter.component.mjs +10 -34
  159. package/esm2022/layouts/lib/widgets/lookup/lookup-widget-view.component.mjs +5 -5
  160. package/esm2022/layouts/lib/widgets/map/map-widget-edit.component.mjs +3 -3
  161. package/esm2022/layouts/lib/widgets/map/map-widget-view.component.mjs +5 -5
  162. package/esm2022/layouts/lib/widgets/messenger/messenger-widget-column.component.mjs +7 -7
  163. package/esm2022/layouts/lib/widgets/messenger/messenger-widget-edit.component.mjs +5 -5
  164. package/esm2022/layouts/lib/widgets/messenger/messenger-widget-view.component.mjs +5 -5
  165. package/esm2022/layouts/lib/widgets/number/number-widget-edit.component.mjs +3 -3
  166. package/esm2022/layouts/lib/widgets/number/number-widget-view.component.mjs +6 -6
  167. package/esm2022/layouts/lib/widgets/password/change-password.component.mjs +5 -5
  168. package/esm2022/layouts/lib/widgets/password/password-widget-column.component.mjs +10 -20
  169. package/esm2022/layouts/lib/widgets/password/password-widget-edit.component.mjs +17 -10
  170. package/esm2022/layouts/lib/widgets/password/password-widget-view.component.mjs +5 -5
  171. package/esm2022/layouts/lib/widgets/phone/phone-widget-column.component.mjs +7 -7
  172. package/esm2022/layouts/lib/widgets/phone/phone-widget-edit.component.mjs +8 -92
  173. package/esm2022/layouts/lib/widgets/phone/phone-widget-view.component.mjs +5 -5
  174. package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-column.component.mjs +9 -17
  175. package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.mjs +3 -3
  176. package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-view.component.mjs +5 -5
  177. package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-column.component.mjs +6 -6
  178. package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.mjs +28 -28
  179. package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.mjs +6 -6
  180. package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-view.component.mjs +6 -6
  181. package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.mjs +5 -5
  182. package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.mjs +5 -5
  183. package/esm2022/layouts/lib/widgets/text/largetext-widget-edit.component.mjs +3 -3
  184. package/esm2022/layouts/lib/widgets/text/text-widget-column.component.mjs +10 -11
  185. package/esm2022/layouts/lib/widgets/text/text-widget-edit.component.mjs +5 -5
  186. package/esm2022/layouts/lib/widgets/text/text-widget-view.component.mjs +5 -5
  187. package/esm2022/layouts/lib/widgets/toggle/toggle-widget-column.component.mjs +6 -6
  188. package/esm2022/layouts/lib/widgets/toggle/toggle-widget-edit.component.mjs +3 -3
  189. package/esm2022/layouts/lib/widgets/toggle/toggle-widget-view.component.mjs +5 -5
  190. package/esm2022/mocks/lib/mocks.module.mjs +4 -4
  191. package/esm2022/mocks/lib/services/mocker.service.mjs +8 -18
  192. package/esm2022/mocks/lib/storage/storage.mock.service.mjs +6 -9
  193. package/esm2022/native/lib/native.module.mjs +4 -4
  194. package/esm2022/native/lib/native.service.mjs +3 -3
  195. package/esm2022/schema/index.mjs +2 -2
  196. package/esm2022/schema/lib/schema-registery.service.mjs +4 -4
  197. package/esm2022/schema/lib/schema.module.mjs +4 -4
  198. package/esm2022/schema/lib/schema.types.mjs +2 -0
  199. package/esm2022/schema/lib/widget/widget-base.mjs +14 -11
  200. package/esm2022/schema/lib/widget/widget-column-renderer.mjs +36 -17
  201. package/esm2022/schema/lib/widget/widget-filter-renderer.mjs +3 -3
  202. package/esm2022/schema/lib/widget/widget-renderer.mjs +7 -7
  203. package/esm2022/schema/lib/widget/widget-token.mjs +1 -1
  204. package/esm2022/widgets/acorex-platform-widgets.mjs +5 -0
  205. package/esm2022/widgets/index.mjs +2 -0
  206. package/esm2022/widgets/lib/editors/checkbox/checkbox-widget-edit.component.mjs +45 -0
  207. package/esm2022/widgets/lib/editors/checkbox/checkbox-widget.config.mjs +9 -0
  208. package/esm2022/widgets/lib/editors/checkbox/index.mjs +3 -0
  209. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.mjs +19 -0
  210. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.mjs +19 -0
  211. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.mjs +113 -0
  212. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-filter.component.mjs +20 -0
  213. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.mjs +19 -0
  214. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.mjs +45 -0
  215. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget.config.mjs +24 -0
  216. package/esm2022/widgets/lib/editors/date-time-box-widget/index.mjs +8 -0
  217. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-column.component.mjs +19 -0
  218. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.mjs +19 -0
  219. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.mjs +196 -0
  220. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.mjs +20 -0
  221. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-print.component.mjs +19 -0
  222. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget-view.component.mjs +111 -0
  223. package/esm2022/widgets/lib/editors/email-box-widget/email-box-widget.config.mjs +24 -0
  224. package/esm2022/widgets/lib/editors/email-box-widget/index.mjs +8 -0
  225. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-column.component.mjs +19 -0
  226. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.mjs +19 -0
  227. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-edit.component.mjs +189 -0
  228. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-filter.component.mjs +20 -0
  229. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-print.component.mjs +19 -0
  230. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget-view.component.mjs +147 -0
  231. package/esm2022/widgets/lib/editors/file-box-widget/file-box-widget.config.mjs +24 -0
  232. package/esm2022/widgets/lib/editors/file-box-widget/index.mjs +8 -0
  233. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-column.component.mjs +19 -0
  234. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.mjs +19 -0
  235. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.mjs +172 -0
  236. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.mjs +20 -0
  237. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-print.component.mjs +19 -0
  238. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-types.mjs +2 -0
  239. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget-view.component.mjs +159 -0
  240. package/esm2022/widgets/lib/editors/gallery-widget/gallery-widget.config.mjs +24 -0
  241. package/esm2022/widgets/lib/editors/gallery-widget/index.mjs +8 -0
  242. package/esm2022/widgets/lib/editors/map-box-widget/index.mjs +8 -0
  243. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-column.component.mjs +19 -0
  244. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.mjs +19 -0
  245. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.mjs +92 -0
  246. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.mjs +20 -0
  247. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-print.component.mjs +19 -0
  248. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget-view.component.mjs +65 -0
  249. package/esm2022/widgets/lib/editors/map-box-widget/map-box-widget.config.mjs +24 -0
  250. package/esm2022/widgets/lib/editors/number-box-widget/index.mjs +8 -0
  251. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-column.component.mjs +19 -0
  252. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.mjs +19 -0
  253. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.mjs +135 -0
  254. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-filter.component.mjs +20 -0
  255. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-print.component.mjs +19 -0
  256. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-view.component.mjs +39 -0
  257. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget.config.mjs +24 -0
  258. package/esm2022/widgets/lib/editors/password-box-widget/index.mjs +8 -0
  259. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-column.component.mjs +19 -0
  260. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.mjs +19 -0
  261. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.mjs +39 -0
  262. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.mjs +20 -0
  263. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-print.component.mjs +19 -0
  264. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget-view.component.mjs +73 -0
  265. package/esm2022/widgets/lib/editors/password-box-widget/password-box-widget.config.mjs +24 -0
  266. package/esm2022/widgets/lib/editors/phone-box-widget/index.mjs +8 -0
  267. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-column.component.mjs +19 -0
  268. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.mjs +19 -0
  269. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.mjs +190 -0
  270. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.mjs +20 -0
  271. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.mjs +19 -0
  272. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.mjs +113 -0
  273. package/esm2022/widgets/lib/editors/phone-box-widget/phone-box-widget.config.mjs +24 -0
  274. package/esm2022/widgets/lib/editors/rich-text-widget/index.mjs +8 -0
  275. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-column.component.mjs +19 -0
  276. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.mjs +19 -0
  277. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.mjs +63 -0
  278. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-filter.component.mjs +20 -0
  279. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.mjs +19 -0
  280. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.mjs +33 -0
  281. package/esm2022/widgets/lib/editors/rich-text-widget/rich-text-widget.config.mjs +24 -0
  282. package/esm2022/widgets/lib/editors/select-box-widget/index.mjs +8 -0
  283. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-column.component.mjs +19 -0
  284. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.mjs +19 -0
  285. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.mjs +80 -0
  286. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.mjs +19 -0
  287. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-print.component.mjs +19 -0
  288. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget-view.component.mjs +54 -0
  289. package/esm2022/widgets/lib/editors/select-box-widget/select-box-widget.config.mjs +24 -0
  290. package/esm2022/widgets/lib/editors/selection-list-widget/index.mjs +8 -0
  291. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-column.component.mjs +19 -0
  292. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.mjs +19 -0
  293. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.mjs +58 -0
  294. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.mjs +20 -0
  295. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.mjs +19 -0
  296. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.mjs +19 -0
  297. package/esm2022/widgets/lib/editors/selection-list-widget/selection-list-widget.config.mjs +24 -0
  298. package/esm2022/widgets/lib/editors/signature-pad-widget/index.mjs +8 -0
  299. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-column.component.mjs +19 -0
  300. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.mjs +19 -0
  301. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.mjs +129 -0
  302. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-filter.component.mjs +20 -0
  303. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.component.mjs +19 -0
  304. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.mjs +41 -0
  305. package/esm2022/widgets/lib/editors/signature-pad-widget/signature-pad-widget.config.mjs +24 -0
  306. package/esm2022/widgets/lib/editors/text-box-widget/index.mjs +8 -0
  307. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-column.component.mjs +19 -0
  308. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.mjs +19 -0
  309. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.mjs +120 -0
  310. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.mjs +20 -0
  311. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-print.component.mjs +19 -0
  312. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget-view.component.mjs +39 -0
  313. package/esm2022/widgets/lib/editors/text-box-widget/text-box-widget.config.mjs +24 -0
  314. package/esm2022/widgets/lib/layout/block-widget/block-widget.component.mjs +39 -0
  315. package/esm2022/widgets/lib/layout/block-widget/block-widget.config.mjs +9 -0
  316. package/esm2022/widgets/lib/layout/block-widget/index.mjs +3 -0
  317. package/esm2022/widgets/lib/widgets.module.mjs +71 -0
  318. package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +3 -3
  319. package/esm2022/workflow/lib/workflow-registery.service.mjs +3 -3
  320. package/esm2022/workflow/lib/workflow.module.mjs +4 -4
  321. package/esm2022/workflow/lib/workflow.service.mjs +3 -3
  322. package/esm2022/workflow/lib/workflow.types.mjs +7 -7
  323. package/fesm2022/acorex-platform-auth.mjs +311 -214
  324. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  325. package/fesm2022/acorex-platform-common.mjs +70 -244
  326. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  327. package/fesm2022/acorex-platform-core.mjs +94 -0
  328. package/fesm2022/acorex-platform-core.mjs.map +1 -0
  329. package/fesm2022/acorex-platform-layout.mjs +756 -0
  330. package/fesm2022/acorex-platform-layout.mjs.map +1 -0
  331. package/fesm2022/{acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs → acorex-platform-layouts-avatar-widget-edit.component-a_eCmVu5.mjs} +72 -14
  332. package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-a_eCmVu5.mjs.map +1 -0
  333. package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-wwI7L0Kc.mjs +64 -0
  334. package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-wwI7L0Kc.mjs.map +1 -0
  335. package/fesm2022/{acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs → acorex-platform-layouts-boolean-widget-filter.component-CHW4rgxA.mjs} +6 -6
  336. package/fesm2022/{acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs.map → acorex-platform-layouts-boolean-widget-filter.component-CHW4rgxA.mjs.map} +1 -1
  337. package/fesm2022/{acorex-platform-layouts-change-password.component-QMAm6dxN.mjs → acorex-platform-layouts-change-password.component-vUZy2W_B.mjs} +7 -7
  338. package/fesm2022/{acorex-platform-layouts-change-password.component-QMAm6dxN.mjs.map → acorex-platform-layouts-change-password.component-vUZy2W_B.mjs.map} +1 -1
  339. package/fesm2022/{acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs → acorex-platform-layouts-checkbox-widget-column.component-BNEtAS7g.mjs} +6 -6
  340. package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-BNEtAS7g.mjs.map +1 -0
  341. package/fesm2022/{acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs → acorex-platform-layouts-checkbox-widget-edit.component-Cqn_QBcv.mjs} +4 -4
  342. package/fesm2022/{acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs.map → acorex-platform-layouts-checkbox-widget-edit.component-Cqn_QBcv.mjs.map} +1 -1
  343. package/fesm2022/{acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs → acorex-platform-layouts-checkbox-widget-view.component-DQLggJ9x.mjs} +5 -5
  344. package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-DQLggJ9x.mjs.map +1 -0
  345. package/fesm2022/{acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs → acorex-platform-layouts-dateTime-widget-column.component-D0eNN66F.mjs} +7 -7
  346. package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-D0eNN66F.mjs.map +1 -0
  347. package/fesm2022/{acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs → acorex-platform-layouts-dateTime-widget-edit.component-BLqAWdRX.mjs} +13 -10
  348. package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-BLqAWdRX.mjs.map +1 -0
  349. package/fesm2022/{acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs → acorex-platform-layouts-dateTime-widget-filter.component-tvc-cTos.mjs} +10 -26
  350. package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-tvc-cTos.mjs.map +1 -0
  351. package/fesm2022/{acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs → acorex-platform-layouts-dateTime-widget-view.component-CjChqiJw.mjs} +6 -6
  352. package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-CjChqiJw.mjs.map +1 -0
  353. package/fesm2022/{acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs → acorex-platform-layouts-email-widget-column.component-CUnxKERe.mjs} +7 -7
  354. package/fesm2022/acorex-platform-layouts-email-widget-column.component-CUnxKERe.mjs.map +1 -0
  355. package/fesm2022/{acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs → acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs} +8 -8
  356. package/fesm2022/{acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs.map → acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs.map} +1 -1
  357. package/fesm2022/{acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs → acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs} +5 -5
  358. package/fesm2022/{acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs.map → acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs.map} +1 -1
  359. package/fesm2022/{acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs → acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs} +6 -6
  360. package/fesm2022/{acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs.map → acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs.map} +1 -1
  361. package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs → acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs} +6 -6
  362. package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs.map → acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs.map} +1 -1
  363. package/fesm2022/{acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs → acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs} +6 -6
  364. package/fesm2022/acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs.map +1 -0
  365. package/fesm2022/{acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs → acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs} +6 -6
  366. package/fesm2022/{acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs.map → acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs.map} +1 -1
  367. package/fesm2022/{acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs → acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs} +5 -5
  368. package/fesm2022/{acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs.map → acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs.map} +1 -1
  369. package/fesm2022/{acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs → acorex-platform-layouts-file-widget-view.component-DVlbi33v.mjs} +7 -7
  370. package/fesm2022/acorex-platform-layouts-file-widget-view.component-DVlbi33v.mjs.map +1 -0
  371. package/fesm2022/{acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs → acorex-platform-layouts-gallery-widget-edit.component-BUlkUU5u.mjs} +6 -6
  372. package/fesm2022/{acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs.map → acorex-platform-layouts-gallery-widget-edit.component-BUlkUU5u.mjs.map} +1 -1
  373. package/fesm2022/{acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs → acorex-platform-layouts-gallery-widget-filter.component-BYFQSXOV.mjs} +5 -5
  374. package/fesm2022/{acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs.map → acorex-platform-layouts-gallery-widget-filter.component-BYFQSXOV.mjs.map} +1 -1
  375. package/fesm2022/{acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs → acorex-platform-layouts-gallery-widget-view.component-BqVO3rDH.mjs} +7 -7
  376. package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-BqVO3rDH.mjs.map +1 -0
  377. package/fesm2022/{acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs → acorex-platform-layouts-largetext-widget-edit.component-CmH9daul.mjs} +4 -4
  378. package/fesm2022/{acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs.map → acorex-platform-layouts-largetext-widget-edit.component-CmH9daul.mjs.map} +1 -1
  379. package/fesm2022/{acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs → acorex-platform-layouts-lookup-widget-column.component-C4Bb5AYW.mjs} +6 -6
  380. package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-C4Bb5AYW.mjs.map +1 -0
  381. package/fesm2022/{acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs → acorex-platform-layouts-lookup-widget-edit.component-B2Qyoi4Q.mjs} +8 -7
  382. package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-B2Qyoi4Q.mjs.map +1 -0
  383. package/fesm2022/{acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs → acorex-platform-layouts-lookup-widget-filter.component-JJzSun3D.mjs} +14 -37
  384. package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-JJzSun3D.mjs.map +1 -0
  385. package/fesm2022/{acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs → acorex-platform-layouts-lookup-widget-view.component-Bmp_zVcQ.mjs} +5 -5
  386. package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-Bmp_zVcQ.mjs.map +1 -0
  387. package/fesm2022/{acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs → acorex-platform-layouts-map-widget-edit.component-EWlgQnx5.mjs} +4 -4
  388. package/fesm2022/{acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs.map → acorex-platform-layouts-map-widget-edit.component-EWlgQnx5.mjs.map} +1 -1
  389. package/fesm2022/{acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs → acorex-platform-layouts-map-widget-view.component-cB5Mq7G7.mjs} +5 -5
  390. package/fesm2022/acorex-platform-layouts-map-widget-view.component-cB5Mq7G7.mjs.map +1 -0
  391. package/fesm2022/{acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs → acorex-platform-layouts-messenger-widget-column.component-DWgWrdmz.mjs} +7 -7
  392. package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-DWgWrdmz.mjs.map +1 -0
  393. package/fesm2022/{acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs → acorex-platform-layouts-messenger-widget-edit.component-C7VOe49a.mjs} +8 -8
  394. package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-C7VOe49a.mjs.map +1 -0
  395. package/fesm2022/{acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs → acorex-platform-layouts-messenger-widget-view.component-uciMJWYn.mjs} +5 -5
  396. package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-uciMJWYn.mjs.map +1 -0
  397. package/fesm2022/{acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs → acorex-platform-layouts-number-widget-edit.component-CXTwKvM4.mjs} +4 -4
  398. package/fesm2022/{acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs.map → acorex-platform-layouts-number-widget-edit.component-CXTwKvM4.mjs.map} +1 -1
  399. package/fesm2022/{acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs → acorex-platform-layouts-number-widget-filter.component-ARH7BdkE.mjs} +6 -6
  400. package/fesm2022/{acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs.map → acorex-platform-layouts-number-widget-filter.component-ARH7BdkE.mjs.map} +1 -1
  401. package/fesm2022/{acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs → acorex-platform-layouts-number-widget-view.component-B0duuEhX.mjs} +6 -6
  402. package/fesm2022/acorex-platform-layouts-number-widget-view.component-B0duuEhX.mjs.map +1 -0
  403. package/fesm2022/{acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs → acorex-platform-layouts-password-widget-column.component-Cav_zCe4.mjs} +10 -20
  404. package/fesm2022/acorex-platform-layouts-password-widget-column.component-Cav_zCe4.mjs.map +1 -0
  405. package/fesm2022/acorex-platform-layouts-password-widget-edit.component-Dm2E5zA_.mjs +44 -0
  406. package/fesm2022/acorex-platform-layouts-password-widget-edit.component-Dm2E5zA_.mjs.map +1 -0
  407. package/fesm2022/{acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs → acorex-platform-layouts-password-widget-view.component-BaipF6fT.mjs} +8 -8
  408. package/fesm2022/{acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs.map → acorex-platform-layouts-password-widget-view.component-BaipF6fT.mjs.map} +1 -1
  409. package/fesm2022/{acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs → acorex-platform-layouts-phone-widget-column.component-BtZ5Qke0.mjs} +7 -7
  410. package/fesm2022/acorex-platform-layouts-phone-widget-column.component-BtZ5Qke0.mjs.map +1 -0
  411. package/fesm2022/{acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs → acorex-platform-layouts-phone-widget-edit.component-BugCYS-l.mjs} +11 -95
  412. package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-BugCYS-l.mjs.map +1 -0
  413. package/fesm2022/{acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs → acorex-platform-layouts-phone-widget-view.component-C7EN8qDk.mjs} +5 -5
  414. package/fesm2022/{acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs.map → acorex-platform-layouts-phone-widget-view.component-C7EN8qDk.mjs.map} +1 -1
  415. package/fesm2022/{acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs → acorex-platform-layouts-rich-text-widget-column.component-B99s2Zhi.mjs} +11 -19
  416. package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-B99s2Zhi.mjs.map +1 -0
  417. package/fesm2022/{acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs → acorex-platform-layouts-rich-text-widget-edit.component-Di1P6EQV.mjs} +4 -4
  418. package/fesm2022/{acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs.map → acorex-platform-layouts-rich-text-widget-edit.component-Di1P6EQV.mjs.map} +1 -1
  419. package/fesm2022/{acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs → acorex-platform-layouts-rich-text-widget-view.component-B_QG0YJc.mjs} +5 -5
  420. package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component-B_QG0YJc.mjs.map +1 -0
  421. package/fesm2022/{acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs → acorex-platform-layouts-selection-list-widget-column.component-Cx9QqR9f.mjs} +6 -6
  422. package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-Cx9QqR9f.mjs.map +1 -0
  423. package/fesm2022/{acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs → acorex-platform-layouts-selection-list-widget-edit.component-DU-U-Af-.mjs} +28 -28
  424. package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-DU-U-Af-.mjs.map +1 -0
  425. package/fesm2022/{acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs → acorex-platform-layouts-selection-list-widget-filter.component-B8y8heXR.mjs} +6 -6
  426. package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-B8y8heXR.mjs.map +1 -0
  427. package/fesm2022/{acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs → acorex-platform-layouts-selection-list-widget-view.component-BDupWZy-.mjs} +6 -6
  428. package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-BDupWZy-.mjs.map +1 -0
  429. package/fesm2022/{acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs → acorex-platform-layouts-signature-pad-widget-edit.component-bEDsl8mg.mjs} +7 -7
  430. package/fesm2022/{acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs.map → acorex-platform-layouts-signature-pad-widget-edit.component-bEDsl8mg.mjs.map} +1 -1
  431. package/fesm2022/{acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs → acorex-platform-layouts-signature-pad-widget-view.component-DB903O2F.mjs} +5 -5
  432. package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-DB903O2F.mjs.map +1 -0
  433. package/fesm2022/{acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs → acorex-platform-layouts-string-widget-filter.component-D3ZxVk6S.mjs} +7 -7
  434. package/fesm2022/{acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs.map → acorex-platform-layouts-string-widget-filter.component-D3ZxVk6S.mjs.map} +1 -1
  435. package/fesm2022/{acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs → acorex-platform-layouts-text-widget-column.component-D8WDAbQB.mjs} +10 -11
  436. package/fesm2022/acorex-platform-layouts-text-widget-column.component-D8WDAbQB.mjs.map +1 -0
  437. package/fesm2022/{acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs → acorex-platform-layouts-text-widget-edit.component-BrDbNXgJ.mjs} +6 -6
  438. package/fesm2022/{acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs.map → acorex-platform-layouts-text-widget-edit.component-BrDbNXgJ.mjs.map} +1 -1
  439. package/fesm2022/{acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs → acorex-platform-layouts-text-widget-view.component-XHN41M3T.mjs} +5 -5
  440. package/fesm2022/acorex-platform-layouts-text-widget-view.component-XHN41M3T.mjs.map +1 -0
  441. package/fesm2022/{acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs → acorex-platform-layouts-toggle-widget-column.component-BjIyTuZj.mjs} +6 -6
  442. package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-BjIyTuZj.mjs.map +1 -0
  443. package/fesm2022/{acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs → acorex-platform-layouts-toggle-widget-edit.component-BKbBile6.mjs} +4 -4
  444. package/fesm2022/{acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs.map → acorex-platform-layouts-toggle-widget-edit.component-BKbBile6.mjs.map} +1 -1
  445. package/fesm2022/{acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs → acorex-platform-layouts-toggle-widget-view.component-CyjhQSiV.mjs} +5 -5
  446. package/fesm2022/{acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs.map → acorex-platform-layouts-toggle-widget-view.component-CyjhQSiV.mjs.map} +1 -1
  447. package/fesm2022/acorex-platform-layouts.mjs +565 -422
  448. package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
  449. package/fesm2022/acorex-platform-mocks.mjs +16 -29
  450. package/fesm2022/acorex-platform-mocks.mjs.map +1 -1
  451. package/fesm2022/acorex-platform-native.mjs +7 -7
  452. package/fesm2022/acorex-platform-schema.mjs +63 -41
  453. package/fesm2022/acorex-platform-schema.mjs.map +1 -1
  454. package/fesm2022/acorex-platform-widgets.mjs +3966 -0
  455. package/fesm2022/acorex-platform-widgets.mjs.map +1 -0
  456. package/fesm2022/acorex-platform-workflow.mjs +19 -19
  457. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  458. package/layout/README.md +4 -0
  459. package/layout/index.d.ts +2 -0
  460. package/layout/lib/builder/builder.module.d.ts +23 -0
  461. package/layout/lib/builder/context.service.d.ts +17 -0
  462. package/layout/lib/builder/index.d.ts +7 -0
  463. package/layout/lib/builder/widget-column-renderer.d.ts +30 -0
  464. package/layout/lib/builder/widget-container.d.ts +13 -0
  465. package/layout/lib/builder/widget-registery.service.d.ts +10 -0
  466. package/layout/lib/builder/widget-renderer.d.ts +41 -0
  467. package/layout/lib/builder/widget.types.d.ts +55 -0
  468. package/layouts/lib/admin/admin-root-layout/admin-root-layout.module.d.ts +1 -1
  469. package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +3 -5
  470. package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +7 -2
  471. package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +2 -0
  472. package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +2 -1
  473. package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +3 -0
  474. package/layouts/lib/admin/entity-layout/index.d.ts +1 -0
  475. package/layouts/lib/admin/entity-layout/workflows/index.d.ts +3 -0
  476. package/layouts/lib/admin/entity-layout/workflows/show-details.workflow.d.ts +2 -0
  477. package/layouts/lib/admin/entity-layout/workflows/show-list.workflow.d.ts +2 -0
  478. package/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.d.ts +2 -0
  479. package/layouts/lib/admin/store/admin-layout.actions.d.ts +8 -8
  480. package/layouts/lib/admin/store/admin-layout.effects.d.ts +1 -1
  481. package/layouts/lib/admin/store/admin-layout.reducers.d.ts +2 -2
  482. package/layouts/lib/layout.module.d.ts +1 -1
  483. package/layouts/lib/shared/components/error-401/error-401.component.d.ts +1 -4
  484. package/layouts/lib/shared/components/index.d.ts +1 -0
  485. package/layouts/lib/shared/components/slots/theme-slot.component.d.ts +1 -1
  486. package/layouts/lib/shared/entity/entity.class.d.ts +10 -2
  487. package/layouts/lib/shared/workflows/common.workflow.d.ts +9 -0
  488. package/layouts/lib/themes/default/entity-layouts/entity-details-view/entity-details-view.component.d.ts +11 -0
  489. package/layouts/lib/themes/default/entity-layouts/entity-details.viewmodel.d.ts +34 -0
  490. package/layouts/lib/themes/default/index.d.ts +2 -0
  491. package/layouts/lib/widgets/avatar/avatar-widget-edit.component.d.ts +8 -2
  492. package/layouts/lib/widgets/avatar/avatar-widget-view.component.d.ts +6 -1
  493. package/layouts/lib/widgets/checkbox/checkbox-widget-column.component.d.ts +1 -1
  494. package/layouts/lib/widgets/dateTime/dateTime-widget-column.component.d.ts +1 -1
  495. package/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.d.ts +4 -2
  496. package/layouts/lib/widgets/email/email-widget-column.component.d.ts +1 -1
  497. package/layouts/lib/widgets/file/file-widget-column.component.d.ts +1 -1
  498. package/layouts/lib/widgets/lookup/lookup-widget-column.component.d.ts +1 -1
  499. package/layouts/lib/widgets/messenger/messenger-widget-column.component.d.ts +1 -1
  500. package/layouts/lib/widgets/number/number-widget-view.component.d.ts +1 -1
  501. package/layouts/lib/widgets/password/password-widget-column.component.d.ts +2 -2
  502. package/layouts/lib/widgets/phone/phone-widget-column.component.d.ts +1 -1
  503. package/layouts/lib/widgets/rich-text/rich-text-widget-column.component.d.ts +1 -1
  504. package/layouts/lib/widgets/selection-list/selection-list-widget-column.component.d.ts +1 -1
  505. package/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.d.ts +2 -0
  506. package/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.d.ts +1 -1
  507. package/layouts/lib/widgets/selection-list/selection-list-widget-view.component.d.ts +1 -1
  508. package/layouts/lib/widgets/text/text-widget-column.component.d.ts +2 -1
  509. package/layouts/lib/widgets/toggle/toggle-widget-column.component.d.ts +1 -1
  510. package/mocks/lib/storage/storage.mock.service.d.ts +1 -1
  511. package/package.json +19 -1
  512. package/schema/index.d.ts +1 -1
  513. package/schema/lib/schema-registery.service.d.ts +1 -1
  514. package/schema/lib/{schema.d.ts → schema.types.d.ts} +1 -6
  515. package/schema/lib/widget/widget-base.d.ts +3 -1
  516. package/schema/lib/widget/widget-column-renderer.d.ts +10 -3
  517. package/schema/lib/widget/widget-token.d.ts +2 -1
  518. package/widgets/README.md +4 -0
  519. package/widgets/index.d.ts +1 -0
  520. package/widgets/lib/editors/checkbox/checkbox-widget-edit.component.d.ts +13 -0
  521. package/widgets/lib/editors/checkbox/checkbox-widget.config.d.ts +2 -0
  522. package/widgets/lib/editors/checkbox/index.d.ts +2 -0
  523. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.d.ts +6 -0
  524. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-designer.component.d.ts +6 -0
  525. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.d.ts +20 -0
  526. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-filter.component.d.ts +6 -0
  527. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-print.component.d.ts +6 -0
  528. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.d.ts +11 -0
  529. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget.config.d.ts +2 -0
  530. package/widgets/lib/editors/date-time-box-widget/index.d.ts +7 -0
  531. package/widgets/lib/editors/email-box-widget/email-box-widget-column.component.d.ts +6 -0
  532. package/widgets/lib/editors/email-box-widget/email-box-widget-designer.component.d.ts +6 -0
  533. package/widgets/lib/editors/email-box-widget/email-box-widget-edit.component.d.ts +25 -0
  534. package/widgets/lib/editors/email-box-widget/email-box-widget-filter.component.d.ts +6 -0
  535. package/widgets/lib/editors/email-box-widget/email-box-widget-print.component.d.ts +6 -0
  536. package/widgets/lib/editors/email-box-widget/email-box-widget-view.component.d.ts +12 -0
  537. package/widgets/lib/editors/email-box-widget/email-box-widget.config.d.ts +2 -0
  538. package/widgets/lib/editors/email-box-widget/index.d.ts +7 -0
  539. package/widgets/lib/editors/file-box-widget/file-box-widget-column.component.d.ts +6 -0
  540. package/widgets/lib/editors/file-box-widget/file-box-widget-designer.component.d.ts +6 -0
  541. package/widgets/lib/editors/file-box-widget/file-box-widget-edit.component.d.ts +18 -0
  542. package/widgets/lib/editors/file-box-widget/file-box-widget-filter.component.d.ts +6 -0
  543. package/widgets/lib/editors/file-box-widget/file-box-widget-print.component.d.ts +6 -0
  544. package/widgets/lib/editors/file-box-widget/file-box-widget-view.component.d.ts +17 -0
  545. package/widgets/lib/editors/file-box-widget/file-box-widget.config.d.ts +2 -0
  546. package/widgets/lib/editors/file-box-widget/index.d.ts +7 -0
  547. package/widgets/lib/editors/gallery-widget/gallery-widget-column.component.d.ts +6 -0
  548. package/widgets/lib/editors/gallery-widget/gallery-widget-designer.component.d.ts +6 -0
  549. package/widgets/lib/editors/gallery-widget/gallery-widget-edit.component.d.ts +15 -0
  550. package/widgets/lib/editors/gallery-widget/gallery-widget-filter.component.d.ts +6 -0
  551. package/widgets/lib/editors/gallery-widget/gallery-widget-print.component.d.ts +6 -0
  552. package/widgets/lib/editors/gallery-widget/gallery-widget-types.d.ts +10 -0
  553. package/widgets/lib/editors/gallery-widget/gallery-widget-view.component.d.ts +15 -0
  554. package/widgets/lib/editors/gallery-widget/gallery-widget.config.d.ts +2 -0
  555. package/widgets/lib/editors/gallery-widget/index.d.ts +7 -0
  556. package/widgets/lib/editors/map-box-widget/index.d.ts +7 -0
  557. package/widgets/lib/editors/map-box-widget/map-box-widget-column.component.d.ts +6 -0
  558. package/widgets/lib/editors/map-box-widget/map-box-widget-designer.component.d.ts +6 -0
  559. package/widgets/lib/editors/map-box-widget/map-box-widget-edit.component.d.ts +15 -0
  560. package/widgets/lib/editors/map-box-widget/map-box-widget-filter.component.d.ts +6 -0
  561. package/widgets/lib/editors/map-box-widget/map-box-widget-print.component.d.ts +6 -0
  562. package/widgets/lib/editors/map-box-widget/map-box-widget-view.component.d.ts +16 -0
  563. package/widgets/lib/editors/map-box-widget/map-box-widget.config.d.ts +2 -0
  564. package/widgets/lib/editors/number-box-widget/index.d.ts +7 -0
  565. package/widgets/lib/editors/number-box-widget/number-box-widget-column.component.d.ts +6 -0
  566. package/widgets/lib/editors/number-box-widget/number-box-widget-designer.component.d.ts +6 -0
  567. package/widgets/lib/editors/number-box-widget/number-box-widget-edit.component.d.ts +25 -0
  568. package/widgets/lib/editors/number-box-widget/number-box-widget-filter.component.d.ts +6 -0
  569. package/widgets/lib/editors/number-box-widget/number-box-widget-print.component.d.ts +6 -0
  570. package/widgets/lib/editors/number-box-widget/number-box-widget-view.component.d.ts +8 -0
  571. package/widgets/lib/editors/number-box-widget/number-box-widget.config.d.ts +2 -0
  572. package/widgets/lib/editors/password-box-widget/index.d.ts +7 -0
  573. package/widgets/lib/editors/password-box-widget/password-box-widget-column.component.d.ts +6 -0
  574. package/widgets/lib/editors/password-box-widget/password-box-widget-designer.component.d.ts +6 -0
  575. package/widgets/lib/editors/password-box-widget/password-box-widget-edit.component.d.ts +8 -0
  576. package/widgets/lib/editors/password-box-widget/password-box-widget-filter.component.d.ts +6 -0
  577. package/widgets/lib/editors/password-box-widget/password-box-widget-print.component.d.ts +6 -0
  578. package/widgets/lib/editors/password-box-widget/password-box-widget-view.component.d.ts +13 -0
  579. package/widgets/lib/editors/password-box-widget/password-box-widget.config.d.ts +2 -0
  580. package/widgets/lib/editors/phone-box-widget/index.d.ts +7 -0
  581. package/widgets/lib/editors/phone-box-widget/phone-box-widget-column.component.d.ts +6 -0
  582. package/widgets/lib/editors/phone-box-widget/phone-box-widget-designer.component.d.ts +6 -0
  583. package/widgets/lib/editors/phone-box-widget/phone-box-widget-edit.component.d.ts +25 -0
  584. package/widgets/lib/editors/phone-box-widget/phone-box-widget-filter.component.d.ts +6 -0
  585. package/widgets/lib/editors/phone-box-widget/phone-box-widget-print.component.d.ts +6 -0
  586. package/widgets/lib/editors/phone-box-widget/phone-box-widget-view.component.d.ts +12 -0
  587. package/widgets/lib/editors/phone-box-widget/phone-box-widget.config.d.ts +2 -0
  588. package/widgets/lib/editors/rich-text-widget/index.d.ts +7 -0
  589. package/widgets/lib/editors/rich-text-widget/rich-text-widget-column.component.d.ts +6 -0
  590. package/widgets/lib/editors/rich-text-widget/rich-text-widget-designer.component.d.ts +6 -0
  591. package/widgets/lib/editors/rich-text-widget/rich-text-widget-edit.component.d.ts +33 -0
  592. package/widgets/lib/editors/rich-text-widget/rich-text-widget-filter.component.d.ts +6 -0
  593. package/widgets/lib/editors/rich-text-widget/rich-text-widget-print.component.d.ts +6 -0
  594. package/widgets/lib/editors/rich-text-widget/rich-text-widget-view.component.d.ts +9 -0
  595. package/widgets/lib/editors/rich-text-widget/rich-text-widget.config.d.ts +2 -0
  596. package/widgets/lib/editors/select-box-widget/index.d.ts +7 -0
  597. package/widgets/lib/editors/select-box-widget/select-box-widget-column.component.d.ts +6 -0
  598. package/widgets/lib/editors/select-box-widget/select-box-widget-designer.component.d.ts +6 -0
  599. package/widgets/lib/editors/select-box-widget/select-box-widget-edit.component.d.ts +15 -0
  600. package/widgets/lib/editors/select-box-widget/select-box-widget-filter.component.d.ts +6 -0
  601. package/widgets/lib/editors/select-box-widget/select-box-widget-print.component.d.ts +6 -0
  602. package/widgets/lib/editors/select-box-widget/select-box-widget-view.component.d.ts +12 -0
  603. package/widgets/lib/editors/select-box-widget/select-box-widget.config.d.ts +2 -0
  604. package/widgets/lib/editors/selection-list-widget/index.d.ts +7 -0
  605. package/widgets/lib/editors/selection-list-widget/selection-list-widget-column.component.d.ts +6 -0
  606. package/widgets/lib/editors/selection-list-widget/selection-list-widget-designer.component.d.ts +6 -0
  607. package/widgets/lib/editors/selection-list-widget/selection-list-widget-edit.component.d.ts +13 -0
  608. package/widgets/lib/editors/selection-list-widget/selection-list-widget-filter.component.d.ts +6 -0
  609. package/widgets/lib/editors/selection-list-widget/selection-list-widget-print.component.d.ts +6 -0
  610. package/widgets/lib/editors/selection-list-widget/selection-list-widget-view.component.d.ts +6 -0
  611. package/widgets/lib/editors/selection-list-widget/selection-list-widget.config.d.ts +2 -0
  612. package/widgets/lib/editors/signature-pad-widget/index.d.ts +7 -0
  613. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-column.component.d.ts +6 -0
  614. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-designer.component.d.ts +6 -0
  615. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-edit.component.d.ts +19 -0
  616. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-filter.component.d.ts +6 -0
  617. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-print.component.d.ts +6 -0
  618. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget-view.component.d.ts +7 -0
  619. package/widgets/lib/editors/signature-pad-widget/signature-pad-widget.config.d.ts +2 -0
  620. package/widgets/lib/editors/text-box-widget/index.d.ts +7 -0
  621. package/widgets/lib/editors/text-box-widget/text-box-widget-column.component.d.ts +6 -0
  622. package/widgets/lib/editors/text-box-widget/text-box-widget-designer.component.d.ts +6 -0
  623. package/widgets/lib/editors/text-box-widget/text-box-widget-edit.component.d.ts +19 -0
  624. package/widgets/lib/editors/text-box-widget/text-box-widget-filter.component.d.ts +6 -0
  625. package/widgets/lib/editors/text-box-widget/text-box-widget-print.component.d.ts +6 -0
  626. package/widgets/lib/editors/text-box-widget/text-box-widget-view.component.d.ts +8 -0
  627. package/widgets/lib/editors/text-box-widget/text-box-widget.config.d.ts +2 -0
  628. package/widgets/lib/layout/block-widget/block-widget.component.d.ts +8 -0
  629. package/widgets/lib/layout/block-widget/block-widget.config.d.ts +2 -0
  630. package/widgets/lib/layout/block-widget/index.d.ts +2 -0
  631. package/widgets/lib/widgets.module.d.ts +7 -0
  632. package/workflow/lib/workflow.types.d.ts +2 -2
  633. package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +0 -56
  634. package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +0 -28
  635. package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +0 -24
  636. package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +0 -72
  637. package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +0 -2
  638. package/esm2022/common/lib/layout/component-slot/index.mjs +0 -6
  639. package/esm2022/layouts/lib/admin/entity-layout/store/entity.actions.mjs +0 -18
  640. package/esm2022/layouts/lib/admin/entity-layout/store/entity.effects.mjs +0 -76
  641. package/esm2022/schema/lib/schema.mjs +0 -2
  642. package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs.map +0 -1
  643. package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs +0 -36
  644. package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs.map +0 -1
  645. package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs.map +0 -1
  646. package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs.map +0 -1
  647. package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs.map +0 -1
  648. package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs.map +0 -1
  649. package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs.map +0 -1
  650. package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs.map +0 -1
  651. package/fesm2022/acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs.map +0 -1
  652. package/fesm2022/acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs.map +0 -1
  653. package/fesm2022/acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs.map +0 -1
  654. package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs.map +0 -1
  655. package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs.map +0 -1
  656. package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs.map +0 -1
  657. package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs.map +0 -1
  658. package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs.map +0 -1
  659. package/fesm2022/acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs.map +0 -1
  660. package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs.map +0 -1
  661. package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs.map +0 -1
  662. package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs.map +0 -1
  663. package/fesm2022/acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs.map +0 -1
  664. package/fesm2022/acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs.map +0 -1
  665. package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs +0 -37
  666. package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs.map +0 -1
  667. package/fesm2022/acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs.map +0 -1
  668. package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs.map +0 -1
  669. package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs.map +0 -1
  670. package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs.map +0 -1
  671. package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs.map +0 -1
  672. package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs.map +0 -1
  673. package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs.map +0 -1
  674. package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs.map +0 -1
  675. package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs.map +0 -1
  676. package/fesm2022/acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs.map +0 -1
  677. package/fesm2022/acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs.map +0 -1
  678. package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs.map +0 -1
  679. package/layouts/lib/admin/entity-layout/store/entity.actions.d.ts +0 -48
  680. package/layouts/lib/admin/entity-layout/store/entity.effects.d.ts +0 -22
  681. /package/{common/lib/layout → layout/lib}/component-slot/component-slot-loader.service.d.ts +0 -0
  682. /package/{common/lib/layout → layout/lib}/component-slot/component-slot-registery.service.d.ts +0 -0
  683. /package/{common/lib/layout → layout/lib}/component-slot/component-slot.directive.d.ts +0 -0
  684. /package/{common/lib/layout → layout/lib}/component-slot/component-slot.module.d.ts +0 -0
  685. /package/{common/lib/layout → layout/lib}/component-slot/component-slot.types.d.ts +0 -0
  686. /package/{common/lib/layout → layout/lib}/component-slot/index.d.ts +0 -0
@@ -1,72 +0,0 @@
1
- import { Inject, NgModule, Optional } from '@angular/core';
2
- import { AXPComponentSlotRegistryService } from './component-slot-registery.service';
3
- import { AXPComponentSlotDirective } from './component-slot.directive';
4
- import * as i0 from "@angular/core";
5
- export class AXPComponentSlotModule {
6
- static forRoot(configs) {
7
- return {
8
- ngModule: AXPComponentSlotModule,
9
- providers: [
10
- {
11
- provide: 'AXPComponentSlotModuleFactory',
12
- useFactory: (registry) => () => {
13
- if (configs) {
14
- for (const [key, value] of Object.entries(configs)) {
15
- value.forEach(v => {
16
- registry.register(key, v);
17
- });
18
- }
19
- }
20
- },
21
- deps: [AXPComponentSlotRegistryService],
22
- multi: true
23
- }
24
- ]
25
- };
26
- }
27
- static forChild(configs) {
28
- return {
29
- ngModule: AXPComponentSlotModule,
30
- providers: [
31
- {
32
- provide: 'AXPComponentSlotModuleFactory',
33
- useFactory: (registry) => () => {
34
- if (configs) {
35
- for (const [key, value] of Object.entries(configs)) {
36
- value.forEach(v => {
37
- registry.register(key, v);
38
- });
39
- }
40
- }
41
- },
42
- deps: [AXPComponentSlotRegistryService],
43
- multi: true
44
- }
45
- ]
46
- };
47
- }
48
- /**
49
- * @ignore
50
- */
51
- constructor(instances) {
52
- instances?.forEach(f => {
53
- f();
54
- });
55
- }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPComponentSlotModule, deps: [{ token: 'AXPComponentSlotModuleFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
57
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: AXPComponentSlotModule, declarations: [AXPComponentSlotDirective], exports: [AXPComponentSlotDirective] }); }
58
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPComponentSlotModule }); }
59
- }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPComponentSlotModule, decorators: [{
61
- type: NgModule,
62
- args: [{
63
- declarations: [AXPComponentSlotDirective],
64
- exports: [AXPComponentSlotDirective]
65
- }]
66
- }], ctorParameters: () => [{ type: undefined, decorators: [{
67
- type: Optional
68
- }, {
69
- type: Inject,
70
- args: ['AXPComponentSlotModuleFactory']
71
- }] }] });
72
-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AgICAgbmdNb2R1bGU6IEFYUENvbXBvbmVudFNsb3RNb2R1bGUsXG4gICAgICAgICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIHByb3ZpZGU6ICdBWFBDb21wb25lbnRTbG90TW9kdWxlRmFjdG9yeScsXG4gICAgICAgICAgICAgICAgICAgIHVzZUZhY3Rvcnk6IChyZWdpc3RyeTogQVhQQ29tcG9uZW50U2xvdFJlZ2lzdHJ5U2VydmljZSkgPT4gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNvbmZpZ3MpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IFtrZXksIHZhbHVlXSBvZiBPYmplY3QuZW50cmllcyhjb25maWdzKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZS5mb3JFYWNoKHYgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoa2V5LCB2KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGRlcHM6IFtBWFBDb21wb25lbnRTbG90UmVnaXN0cnlTZXJ2aWNlXSxcbiAgICAgICAgICAgICAgICAgICAgbXVsdGk6IHRydWVcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdXG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgc3RhdGljIGZvckNoaWxkKGNvbmZpZ3M/OiBBWFBDb21wb25lbnRTbG90TW9kdWxlQ29uZmlncyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8QVhQQ29tcG9uZW50U2xvdE1vZHVsZT4ge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgbmdNb2R1bGU6IEFYUENvbXBvbmVudFNsb3RNb2R1bGUsXG4gICAgICAgICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIHByb3ZpZGU6ICdBWFBDb21wb25lbnRTbG90TW9kdWxlRmFjdG9yeScsXG4gICAgICAgICAgICAgICAgICAgIHVzZUZhY3Rvcnk6IChyZWdpc3RyeTogQVhQQ29tcG9uZW50U2xvdFJlZ2lzdHJ5U2VydmljZSkgPT4gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNvbmZpZ3MpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IFtrZXksIHZhbHVlXSBvZiBPYmplY3QuZW50cmllcyhjb25maWdzKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZS5mb3JFYWNoKHYgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVnaXN0cnkucmVnaXN0ZXIoa2V5LCB2KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGRlcHM6IFtBWFBDb21wb25lbnRTbG90UmVnaXN0cnlTZXJ2aWNlXSxcbiAgICAgICAgICAgICAgICAgICAgbXVsdGk6IHRydWVcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIF1cbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBAaWdub3JlXG4gICAgICovXG4gICAgY29uc3RydWN0b3IoQE9wdGlvbmFsKCkgQEluamVjdCgnQVhQQ29tcG9uZW50U2xvdE1vZHVsZUZhY3RvcnknKSBpbnN0YW5jZXM6IGFueVtdKSB7XG4gICAgICAgIGluc3RhbmNlcz8uZm9yRWFjaChmID0+IHtcbiAgICAgICAgICAgIGYoKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXNsb3QudHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2NvbW1vbi9zcmMvbGliL2xheW91dC9jb21wb25lbnQtc2xvdC9jb21wb25lbnQtc2xvdC50eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHlwZSB9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XG5cblxuZXhwb3J0IGludGVyZmFjZSBBWFBDb21wb25lbnRTbG90Q29uZmlnIHtcbiAgICBuYW1lOiBzdHJpbmcsXG4gICAgY29tcG9uZW50PzogVHlwZTxhbnk+LFxuICAgIGxvYWRDb21wb25lbnQ/OiAoKSA9PiBUeXBlPGFueT4sXG4gICAgb3B0aW9ucz86IHsgW2tleTogc3RyaW5nXTogdW5rbm93biB9IHwgKCgpID0+IHsgW2tleTogc3RyaW5nXTogdW5rbm93biB9KSxcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBWFBDb21wb25lbnRTbG90TW9kdWxlQ29uZmlncyB7XG4gICAgW3Nsb3ROYW1lOiBzdHJpbmddOiBBWFBDb21wb25lbnRTbG90Q29uZmlnW107XG59Il19
@@ -1,6 +0,0 @@
1
- export * from './component-slot.types';
2
- export * from './component-slot.directive';
3
- export * from './component-slot-registery.service';
4
- export * from './component-slot-loader.service';
5
- export * from './component-slot.module';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2NvbW1vbi9zcmMvbGliL2xheW91dC9jb21wb25lbnQtc2xvdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFBO0FBQ3RDLGNBQWMsNEJBQTRCLENBQUE7QUFDMUMsY0FBYyxvQ0FBb0MsQ0FBQTtBQUNsRCxjQUFjLGlDQUFpQyxDQUFBO0FBQy9DLGNBQWMseUJBQXlCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudC1zbG90LnR5cGVzJ1xuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnQtc2xvdC5kaXJlY3RpdmUnXG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudC1zbG90LXJlZ2lzdGVyeS5zZXJ2aWNlJ1xuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnQtc2xvdC1sb2FkZXIuc2VydmljZSdcbmV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50LXNsb3QubW9kdWxlJyJdfQ==
@@ -1,18 +0,0 @@
1
- import { createAction, props } from "@ngrx/store";
2
- export const AXPEntityQuickViewAction = createAction('[Entity] QuickView', props());
3
- //
4
- export const AXPEntityListViewAction = createAction('[Entity] ListView', props());
5
- //
6
- export const AXPEntityDetailViewAction = createAction('[Entity] DetailView', props());
7
- export const AXPEntityReloadAction = createAction('[Entity] Reload', props());
8
- //
9
- //
10
- // export const AXPEntityCreateAction = createAction('[Entity] Create', props<{ payload: { module: string, entity: string } }>());
11
- // export const AXPEntityCreatedAction = createAction('[Entity] Created', props<{ payload: { module: string, entity: string, id: string } }>());
12
- //
13
- // export const AXPEntityDeleteAction = createAction('[Entity] Delete', props<{ payload: { module: string, entity: string, ids: string[] } }>());
14
- // export const AXPEntityDeletedAction = createAction('[Entity] Deleted', props<{ payload: { module: string, entity: string, id: string } }>());
15
- // export const AXPEntityBulkDeletedAction = createAction('[Entity] Bulk Deleted', props<{ payload: { module: string, entity: string } }>());
16
- // export const AXPEntityModifyAction = createAction('[Entity] Modify', props<{ payload: { module: string, entity: string, context:any, properties:any } }>());
17
- // export const AXPEntityModifiedAction = createAction('[Entity] Modified', props<{ payload: { module: string, entity: string, id:string } }>());
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LmFjdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2xheW91dHMvc3JjL2xpYi9hZG1pbi9lbnRpdHktbGF5b3V0L3N0b3JlL2VudGl0eS5hY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ2xELE1BQU0sQ0FBQyxNQUFNLHdCQUF3QixHQUFHLFlBQVksQ0FBQyxvQkFBb0IsRUFBRSxLQUFLLEVBQThELENBQUMsQ0FBQztBQUNoSixFQUFFO0FBQ0YsTUFBTSxDQUFDLE1BQU0sdUJBQXVCLEdBQUcsWUFBWSxDQUFDLG1CQUFtQixFQUFFLEtBQUssRUFBbUQsQ0FBQyxDQUFDO0FBQ25JLEVBQUU7QUFDRixNQUFNLENBQUMsTUFBTSx5QkFBeUIsR0FBRyxZQUFZLENBQUMscUJBQXFCLEVBQUUsS0FBSyxFQUErRCxDQUFDLENBQUM7QUFDbkosTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsWUFBWSxDQUFDLGlCQUFpQixFQUFFLEtBQUssRUFBbUQsQ0FBQyxDQUFDO0FBQy9ILEVBQUU7QUFDRixFQUFFO0FBQ0Ysa0lBQWtJO0FBQ2xJLGdKQUFnSjtBQUNoSixFQUFFO0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Bjb25zdCBBWFBFbnRpdHlNb2RpZmllZEFjdGlvbiA9IGNyZWF0ZUFjdGlvbignW0VudGl0eV0gTW9kaWZpZWQnLCBwcm9wczx7IHBheWxvYWQ6IHsgIG1vZHVsZTogc3RyaW5nLCBlbnRpdHk6IHN0cmluZywgaWQ6c3RyaW5nIH0gfT4oKSk7XG4iXX0=
@@ -1,76 +0,0 @@
1
- import { Injectable, inject } from '@angular/core';
2
- import { AXDialogService } from '@acorex/components/dialog';
3
- import { AXPopupService } from '@acorex/components/popup';
4
- import { AXToastService } from '@acorex/components/toast';
5
- import { AXFormatService } from '@acorex/core/format';
6
- import { AXPlatform } from '@acorex/core/platform';
7
- import { AXPSessionService } from '@acorex/platform/auth';
8
- import { AXPNavigateAction } from '@acorex/platform/common';
9
- import { Actions, createEffect, ofType } from '@ngrx/effects';
10
- import { Store } from '@ngrx/store';
11
- import { of, switchMap } from 'rxjs';
12
- import { AXPEntityRegistryService } from '../../../shared';
13
- import { AXPEntityCreateViewLoaderFactory } from '../entity-create-view/entity-create-view.config';
14
- import { AXPEntityModifyViewLoaderFactory } from '../entity-modify-view/entity-modify-view.config';
15
- import { AXPEntityDetailViewAction, AXPEntityListViewAction, AXPEntityQuickViewAction } from './entity.actions';
16
- import * as i0 from "@angular/core";
17
- import * as i1 from "@ngrx/effects";
18
- import * as i2 from "@ngrx/store";
19
- export class AXPEntityEffects {
20
- constructor(actions$, store) {
21
- this.actions$ = actions$;
22
- this.store = store;
23
- this.sessionService = inject(AXPSessionService);
24
- this.entityRegistery = inject(AXPEntityRegistryService);
25
- this.entityCreateFactory = inject(AXPEntityCreateViewLoaderFactory);
26
- this.entityModifyFactory = inject(AXPEntityModifyViewLoaderFactory);
27
- this.popupService = inject(AXPopupService);
28
- this.dialogService = inject(AXDialogService);
29
- this.toastService = inject(AXToastService);
30
- this.formatService = inject(AXFormatService);
31
- this.platform = inject(AXPlatform);
32
- this.quickView$ = createEffect(() => this.actions$.pipe(ofType(AXPEntityQuickViewAction), switchMap(async (action) => {
33
- const entity = await this.entityRegistery.resolve(action.payload.module, action.payload.entity);
34
- const suggestedProps = entity.properties.find((c) => ['title', 'name', 'code'].includes(c.name));
35
- let suggestedFormat = 'Item #{{id}}';
36
- if (suggestedProps)
37
- suggestedFormat = `{{${suggestedProps.name}}}`;
38
- const title = this.formatService.format(entity.formats?.header ?? entity.formats?.default ?? suggestedFormat, 'string', action.payload.data);
39
- //
40
- const com = await import('../entity-quick-view/entity-quick-view.component');
41
- this.popupService.open(com.AXPEntityQuickViewComponent, {
42
- title: `${title} - Quick View`,
43
- size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
44
- data: {
45
- entity: entity,
46
- data: action.payload.data,
47
- },
48
- });
49
- return of();
50
- })), { dispatch: false });
51
- this.detailView$ = createEffect(() => this.actions$.pipe(ofType(AXPEntityDetailViewAction), switchMap(async (action) => {
52
- const entity = await this.entityRegistery.resolve(action.payload.module, action.payload.entity);
53
- this.store.dispatch(AXPNavigateAction({
54
- payload: {
55
- commands: `/${this.sessionService.application?.name}/${entity.module}/e/${entity.name}/${action.payload.id}/view`,
56
- },
57
- }));
58
- return of();
59
- })), { dispatch: false });
60
- this.listView$ = createEffect(() => this.actions$.pipe(ofType(AXPEntityListViewAction), switchMap(async (action) => {
61
- const entity = await this.entityRegistery.resolve(action.payload.module, action.payload.entity);
62
- this.store.dispatch(AXPNavigateAction({
63
- payload: {
64
- commands: `/${this.sessionService.application?.name}/${entity.module}/e/${entity.name}/list`,
65
- },
66
- }));
67
- return of();
68
- })), { dispatch: false });
69
- }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityEffects, deps: [{ token: i1.Actions }, { token: i2.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
71
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityEffects }); }
72
- }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityEffects, decorators: [{
74
- type: Injectable
75
- }], ctorParameters: () => [{ type: i1.Actions }, { type: i2.Store }] });
76
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LmVmZmVjdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3BsYXRmb3JtL2xheW91dHMvc3JjL2xpYi9hZG1pbi9lbnRpdHktbGF5b3V0L3N0b3JlL2VudGl0eS5lZmZlY3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5ELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUM1RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzFELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDbkQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDNUQsT0FBTyxFQUFFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDcEMsT0FBTyxFQUFFLEVBQUUsRUFBRSxTQUFTLEVBQU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lm5hbWV9LyR7YWN0aW9uLnBheWxvYWQuaWR9L3ZpZXdgLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICApO1xuICAgICAgICAgIHJldHVybiBvZigpO1xuICAgICAgICB9KVxuICAgICAgKSxcbiAgICB7IGRpc3BhdGNoOiBmYWxzZSB9XG4gICk7XG5cbiAgcHJpdmF0ZSBsaXN0VmlldyQgPSBjcmVhdGVFZmZlY3QoXG4gICAgKCkgPT5cbiAgICAgIHRoaXMuYWN0aW9ucyQucGlwZShcbiAgICAgICAgb2ZUeXBlKEFYUEVudGl0eUxpc3RWaWV3QWN0aW9uKSxcbiAgICAgICAgc3dpdGNoTWFwKGFzeW5jIChhY3Rpb24pID0+IHtcbiAgICAgICAgICBjb25zdCBlbnRpdHkgPSBhd2FpdCB0aGlzLmVudGl0eVJlZ2lzdGVyeS5yZXNvbHZlKGFjdGlvbi5wYXlsb2FkLm1vZHVsZSwgYWN0aW9uLnBheWxvYWQuZW50aXR5KTtcbiAgICAgICAgICB0aGlzLnN0b3JlLmRpc3BhdGNoKFxuICAgICAgICAgICAgQVhQTmF2aWdhdGVBY3Rpb24oe1xuICAgICAgICAgICAgICBwYXlsb2FkOiB7XG4gICAgICAgICAgICAgICAgY29tbWFuZHM6IGAvJHt0aGlzLnNlc3Npb25TZXJ2aWNlLmFwcGxpY2F0aW9uPy5uYW1lfS8ke2VudGl0eS5tb2R1bGV9L2UvJHtlbnRpdHkubmFtZX0vbGlzdGAsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG4gICAgICAgICAgcmV0dXJuIG9mKCk7XG4gICAgICAgIH0pXG4gICAgICApLFxuICAgIHsgZGlzcGF0Y2g6IGZhbHNlIH1cbiAgKTtcbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wbGF0Zm9ybS9zY2hlbWEvc3JjL2xpYi9zY2hlbWEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFYUENvbXBvbmVudExvYWRlciB9IGZyb20gJy4vY29tcG9uZW50LWxvYWRlcic7XG5pbXBvcnQgeyBBWFBEaXNwbGF5Rm9ybWF0IH0gZnJvbSAnLi9mb3JtYXRzJztcbmltcG9ydCB7IEFYUEZpbHRlck9wZXJhdG9yIH0gZnJvbSAnLi9vcGVyYXRvcnMnO1xuXG5leHBvcnQgdHlwZSBBWFBWYWxpZGF0aW9uUnVsZSA9IHsgcnVsZTogc3RyaW5nOyBtZXNzYWdlPzogc3RyaW5nOyBvcHRpb25zPzogYW55IH07XG5cbmV4cG9ydCB0eXBlIEFYUFZhbGlkYXRpb25SdWxlcyA9IEFYUFZhbGlkYXRpb25SdWxlW107XG5cbmV4cG9ydCBpbnRlcmZhY2UgQVhQU2NoZW1hQ29uZmlnIHtcbiAgbmFtZTogc3RyaW5nO1xuICBkYXRhVHlwZTogc3RyaW5nO1xuICBjb21wb25lbnQ6IEFYUENvbXBvbmVudExvYWRlcjtcbiAgZm9ybWF0cz86IEFYUERpc3BsYXlGb3JtYXQ7XG4gIHZhbGlkYXRpb25SdWxlcz86IEFYUFZhbGlkYXRpb25SdWxlcztcbiAgZmlsdGVyT3B0aW9uczoge1xuICAgIGRpc2FibGVkPzogYm9vbGVhbjtcbiAgICBvcGVyYXRvcnM6IEFYUEZpbHRlck9wZXJhdG9yW107XG4gICAgZGVmYXVsdDogQVhQRmlsdGVyT3BlcmF0b3I7XG4gIH07XG59XG4iXX0=
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/avatar/avatar-widget-edit.component.ts"],"sourcesContent":["import { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLoadingModule } from '@acorex/components/loading';\n// import { FakePersonService } from '@acorex/platform/mocks';\nimport { AXPWidgetEditBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\n\n@Component({\n selector: 'axp-number-widget-edit',\n template: `\n <div class=\"ax-w-fit ax-flex flex-row ax-border ax-rounded-lg ax-shadow-md ax-overflow-hidden\">\n @if(src){\n <ax-avatar color=\"secondary\" [size]=\"120\" look=\"sharp\">\n <ax-image [src]=\"src\">\n <ax-loading></ax-loading>\n </ax-image>\n </ax-avatar>\n } @else {\n <ax-avatar color=\"secondary\" [size]=\"120\" look=\"sharp\"> </ax-avatar>\n }\n <div class=\"ax-flex ax-w-14 ax-flex-col ax-items-center ax-justify-around ax-cursor-pointer ax-border-l-2\">\n <div\n (click)=\"handleAddItem()\"\n class=\"ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-border-b-2 hover:ax-bg-gray-100 hover:ax-text-blue-700 ax-cursor-pointer\"\n >\n <ax-icon>\n <i class=\"fa-solid fa-camera\"></i>\n </ax-icon>\n </div>\n\n <div\n (click)=\"handleRemoveItem(src)\"\n class=\"ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-cursor-pointer hover:ax-bg-gray-100\"\n >\n <ax-prefix>\n <i class=\"fa-solid fa-trash ax-text-danger\"></i>\n </ax-prefix>\n </div>\n </div>\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXAvatarModule, AXImageModule, AXLoadingModule, AXButtonModule, AXDecoratorModule],\n})\nexport class AXPAvatarWidgetEditComponent extends AXPWidgetEditBase {\n //private fakePerson = inject(FakePersonService);\n\n protected src!: string | null;\n\n override render() {\n const rawValue = this.context[this.prop.name];\n if (rawValue == null) return;\n this.src = rawValue;\n }\n\n protected handleRemoveItem(item: any) {\n this.src = null;\n }\n protected handleAddItem() {\n //this.src = this.fakePerson.avatar();\n }\n}\n"],"names":["i3","i4"],"mappings":";;;;;;;;;;;;;AA+CM,MAAO,4BAA6B,SAAQ,iBAAiB,CAAA;IAKxD,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO;AAC7B,QAAA,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC;KACrB;AAES,IAAA,gBAAgB,CAAC,IAAS,EAAA;AAClC,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;KACjB;IACS,aAAa,GAAA;;KAEtB;8GAhBU,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EApC7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BT,EAGS,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,2IAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,KAAA,EAAA,KAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,eAAe,EAAE,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,8BAAE,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,gJAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAEhF,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAtCxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,CAAC;AAC7F,iBAAA,CAAA;;;;;"}
@@ -1,36 +0,0 @@
1
- import * as i1 from '@acorex/components/avatar';
2
- import { AXAvatarModule } from '@acorex/components/avatar';
3
- import * as i2 from '@acorex/components/image';
4
- import { AXImageModule } from '@acorex/components/image';
5
- import { AXPWidgetBase } from '@acorex/platform/schema';
6
- import * as i0 from '@angular/core';
7
- import { Component, ChangeDetectionStrategy } from '@angular/core';
8
-
9
- class AXPAvatarWidgetViewComponent extends AXPWidgetBase {
10
- render() {
11
- const rawValue = this.context[this.prop.name];
12
- if (rawValue == null)
13
- return;
14
- this.src = rawValue;
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAvatarWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: AXPAvatarWidgetViewComponent, isStandalone: true, selector: "ax-Avatar-widget-view", inputs: { context: "context", value: "value" }, usesInheritance: true, ngImport: i0, template: ` <ax-avatar class="ax-shadow-" color="secondary" [size]="120" look="soft">
18
- <ax-image [src]="src"></ax-image>
19
- </ax-avatar>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i1.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "look"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPAvatarWidgetViewComponent, decorators: [{
22
- type: Component,
23
- args: [{
24
- selector: 'ax-Avatar-widget-view',
25
- template: ` <ax-avatar class="ax-shadow-" color="secondary" [size]="120" look="soft">
26
- <ax-image [src]="src"></ax-image>
27
- </ax-avatar>`,
28
- standalone: true,
29
- changeDetection: ChangeDetectionStrategy.OnPush,
30
- imports: [AXAvatarModule, AXImageModule],
31
- inputs: ['context', 'value'],
32
- }]
33
- }] });
34
-
35
- export { AXPAvatarWidgetViewComponent };
36
- //# sourceMappingURL=acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/avatar/avatar-widget-view.component.ts"],"sourcesContent":["import { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n selector: 'ax-Avatar-widget-view',\n template: ` <ax-avatar class=\"ax-shadow-\" color=\"secondary\" [size]=\"120\" look=\"soft\">\n <ax-image [src]=\"src\"></ax-image>\n </ax-avatar>`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXAvatarModule, AXImageModule],\n inputs: ['context', 'value'],\n})\nexport class AXPAvatarWidgetViewComponent extends AXPWidgetBase {\n protected src!: string;\n\n override render() {\n const rawValue = this.context[this.prop.name];\n if (rawValue == null) return;\n this.src = rawValue;\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAcM,MAAO,4BAA6B,SAAQ,aAAa,CAAA;IAGpD,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO;AAC7B,QAAA,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC;KACrB;8GAPU,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAR7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;eAEG,EAGH,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,2IAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,KAAA,EAAA,KAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAVxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE,CAAA;;AAEG,cAAA,CAAA;AACb,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;AACxC,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;AAC7B,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/checkbox/checkbox-widget-column.component.ts"],"sourcesContent":["import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n template: `<div>\n @if(value){ @if(trulyText){\n <span [class]=\"negative ? 'ax-text-danger' : 'ax-text-success'\">{{ trulyText }}</span>\n }@else { @if(negative){\n <ax-icon class=\"fa-solid fa-check ax-text-danger\"> </ax-icon>\n }@else{\n <ax-icon class=\"fa-solid fa-check ax-text-success\"> </ax-icon>\n\n } } }@else { @if(falsyText){\n <span [class]=\"negative ? 'ax-text-success' : 'ax-text-danger'\">{{ falsyText }}</span>\n }@else { @if(negative){\n <ax-icon class=\"fa-solid fa-xmark ax-text-success\"> </ax-icon>\n }@else{\n <ax-icon class=\"fa-solid fa-xmark ax-text-danger\"> </ax-icon>\n } } }\n </div>`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXDecoratorModule],\n inputs: ['context', 'trulyText', 'falsyText', 'negative', 'width'],\n})\nexport class AXPCheckboxWidgetColumnComponent extends AXPWidgetBase {\n protected value!: boolean;\n protected negative!: boolean;\n protected trulyText!: boolean;\n protected falsyText!: boolean;\n\n protected override render(): void {\n this.value = !!this.context[this.prop.name];\n }\n}\n"],"names":["i1"],"mappings":";;;;;;AAyBM,MAAO,gCAAiC,SAAQ,aAAa,CAAA;IAM9C,MAAM,GAAA;AACvB,QAAA,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7C;8GARU,gCAAgC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gCAAgC,EArBjC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;AAeH,QAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAGG,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhB,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAtB5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;AAeH,QAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC;AACnE,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/checkbox/checkbox-widget-view.component.ts"],"sourcesContent":["import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n template: ` <div>\n @if(value){ @if(trulyText){\n <span [class]=\"negative ? 'ax-text-danger' : 'ax-text-success'\">{{ trulyText }}</span>\n }@else {\n\n <ax-icon class=\"fa-solid fa-check ax-text-success\"> </ax-icon>\n } }@else { @if(falsyText){\n <span [class]=\"negative ? 'ax-text-success' : 'ax-text-danger'\">{{ falsyText }}</span>\n }@else {\n\n <ax-icon class=\"fa-solid fa-xmark ax-text-danger\"> </ax-icon>\n } }\n </div>`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXDecoratorModule],\n inputs: ['trulyText', 'falsyText', 'negative'],\n})\nexport class AXPCheckboxWidgetViewComponent extends AXPWidgetBase {\n protected value!: boolean;\n protected negative!: boolean;\n protected trulyText!: boolean;\n protected falsyText!: boolean;\n\n protected override render(): void {\n this.value = !!this.context[this.prop.name];\n }\n}\n"],"names":["i1"],"mappings":";;;;;;AAsBM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;IAM5C,MAAM,GAAA;AACvB,QAAA,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7C;8GARU,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,EAlB/B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;AAYH,QAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAGG,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAnB1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;AAYH,QAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC5B,oBAAA,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,UAAU,CAAC;AAC/C,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/dateTime/dateTime-widget-column.component.ts"],"sourcesContent":["import { AXDateTimeModule } from '@acorex/core/dateTime';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n template: ` <span [title]=\"convertedValue\">{{ convertedValue }}</span> `,\n standalone: true,\n imports: [AXFormatModule, AXDateTimeModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['context', 'value', 'multiple', 'width'],\n})\nexport class AXPDateTimeWidgetColumnComponent extends AXPWidgetBase {\n protected convertedValue!: string | null;\n protected multiple!: boolean;\n\n override render() {\n const rawValue = this.context[this.prop.name];\n if (rawValue == null) {\n this.convertedValue = null;\n return;\n }\n if (this.isArray(rawValue)) {\n this.convertedValue = rawValue.map((item: Date) => this.formatValue(new Date(item))).join(', ');\n } else {\n this.convertedValue = this.formatValue(new Date(rawValue));\n }\n }\n\n protected formatValue(value: Date) {\n if (this.formats?.default) {\n return this.formatService.format(value, 'datetime', { format: this.formats.default });\n } else {\n return value.toISOString();\n }\n }\n\n protected isArray(val: any) {\n return Array.isArray(val);\n }\n}\n"],"names":[],"mappings":";;;;;;AAYM,MAAO,gCAAiC,SAAQ,aAAa,CAAA;IAIxD,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAI,QAAQ,IAAI,IAAI,EAAE;AACpB,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAC3B,OAAO;SACR;AACD,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;AAC1B,YAAA,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAU,KAAK,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACjG;aAAM;AACL,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC5D;KACF;AAES,IAAA,WAAW,CAAC,KAAW,EAAA;AAC/B,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE;YACzB,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;SACvF;aAAM;AACL,YAAA,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;SAC5B;KACF;AAES,IAAA,OAAO,CAAC,GAAQ,EAAA;AACxB,QAAA,OAAO,KAAK,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/dateTime-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDateTimeBoxModule } from '@acorex/components/datetime-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { MockDataService } from '@acorex/platform/mocks';\nimport { AXPWidgetEditBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, effect, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axp-datetime-widget-edit',\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @if(multiple){ @for(item of convertedValue();track $index){\n <ng-container [ngTemplateOutlet]=\"textBoxTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n } } @else {\n <ng-container\n [ngTemplateOutlet]=\"textBoxTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: convertedValue()[0] }\"\n ></ng-container>\n }\n <ng-template #textBoxTemplate let-item>\n <ax-datetime-box\n [(ngModel)]=\"item.value\"\n (onValueChanged)=\"handleValueChange($event, item.id)\"\n [format]=\"calendarFormat\"\n [minValue]=\"minValue\"\n [maxValue]=\"maxValue\"\n [placeholder]=\"prop.description\"\n [class]=\"multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n <ax-clear-button></ax-clear-button>\n </ax-datetime-box>\n @if(multiple){\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n }\n </ng-template>\n @if(multiple){\n <ax-button\n [text]=\"!convertedValue().length ? 'Add New' : 'Add Another'\"\n look=\"twotone\"\n (onClick)=\"handleAddItem()\"\n class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, FormsModule, AXFormatModule, AXDateTimeBoxModule, AXDecoratorModule, AXButtonModule, AXFormModule],\n inputs: ['multiple'],\n})\nexport class AXPDateTimeWidgetEditComponent extends AXPWidgetEditBase {\n protected mockerService = inject(MockDataService);\n\n protected multiple!: boolean;\n protected minValue: any;\n protected maxValue: any;\n protected format: string = 'dateTime';\n protected calendarFormat!: string;\n protected convertedValue: WritableSignal<{ value: Date; id: string }[]> = signal([]);\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n this.value = this.convertedValue().map((i) => i.value);\n } else {\n this.value = this.convertedValue().map((i) => i.value)[0];\n }\n });\n\n ngOnInit(): void {\n // ****** Set Format ******\n if (this.format === 'date') this.calendarFormat = 'dd/MM/yyyy';\n else if (this.format === 'time') this.calendarFormat = 'HH:mm';\n else this.calendarFormat = 'dd/MM/yyyy HH:mm';\n\n // ****** Set Value ******\n if (!this.value || this.value?.length == 0) {\n this.convertedValue.set([{ value: new Date(), id: this.mockerService.uid() }]);\n } else if (Array.isArray(this.value)) {\n this.convertedValue.set(this.value.map((item) => ({ value: new Date(item), id: this.mockerService.uid() })));\n } else {\n this.convertedValue.set([{ value: new Date(this.value), id: this.mockerService.uid() }]);\n }\n }\n\n protected handleAddItem() {\n this.convertedValue.update((prev) => [...prev, { value: new Date(), id: this.mockerService.uid() }]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c: any) => c != item));\n }\n protected handleValueChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { value: e.value, id: i.id } : i)));\n }\n }\n}\n"],"names":["i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;AAsEM,MAAO,8BAA+B,SAAQ,iBAAiB,CAAA;AAzDrE,IAAA,WAAA,GAAA;;AA0DY,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;QAKxC,IAAM,CAAA,MAAA,GAAW,UAAU,CAAC;AAE5B,QAAA,IAAA,CAAA,cAAc,GAAkD,MAAM,CAAC,EAAE,CAAC,CAAC;AAE7E,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;AACtC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,gBAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;aACxD;iBAAM;gBACL,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3D;AACH,SAAC,CAAC,CAAC;AA8BJ,KAAA;IA5BC,QAAQ,GAAA;;AAEN,QAAA,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;AAAE,YAAA,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC;AAC1D,aAAA,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;AAAE,YAAA,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;;AAC1D,YAAA,IAAI,CAAC,cAAc,GAAG,kBAAkB,CAAC;;AAG9C,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,EAAE;YAC1C,IAAI,CAAC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iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,YAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,yBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG9G,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAzD1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,CAAC;oBAC1H,MAAM,EAAE,CAAC,UAAU,CAAC;AACrB,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/dateTime/dateTime-widget-filter.component.ts"],"sourcesContent":["import { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDateTimeBoxModule } from '@acorex/components/datetime-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXCalendarService } from '@acorex/core/dateTime';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXPWidgetFilterBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, effect, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axp-datetime-widget-filter',\n template: `\n <div class=\"ax-flex-1\">\n <ax-select-box\n [ngModel]=\"selectedItem()\"\n placeholder=\"Select ...\"\n (onValueChanged)=\"changeSelectedItem($event)\"\n [dataSource]=\"dataSource\"\n >\n </ax-select-box>\n @if(selectedItem()==\"Between\"){\n <div class=\"ax-flex ax-gap-2 ax-mt-2\">\n <ax-datetime-box\n placeholder=\"From\"\n [(ngModel)]=\"value.from\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-datetime-box>\n <ax-datetime-box\n placeholder=\"To\"\n [(ngModel)]=\"value.to\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-datetime-box>\n </div>\n } @if(selectedItem()==\"Greater Than\" || selectedItem()==\"Less Than\"){\n <div class=\"ax-mt-2\">\n <ax-datetime-box\n [(ngModel)]=\"value\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-datetime-box>\n </div>\n }\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, FormsModule, AXFormatModule, AXDateTimeBoxModule, AXDecoratorModule, AXSelectBoxModule],\n outputs: ['valueChange', 'operatorChange'],\n inputs: ['value', 'operator'],\n})\nexport class AXPDateTimeWidgetFilterComponent extends AXPWidgetFilterBase {\n protected selectedItem: WritableSignal<string> = signal('');\n dataSource: string[] = [];\n\n private calendarService = inject(AXCalendarService);\n private changeValueEffect = effect(() => {\n console.log(this.selectedItem());\n this.getSelectedItemValue(this.selectedItem());\n });\n\n ngOnInit(): void {\n if (this.operator == 'greaterThan' || this.operator == 'lessThan') {\n this.selectedItem.set(this.convertToTitleCase(this.operator));\n } else {\n this.selectedItem.set(this.convertToTitleCase(this.value));\n }\n this.dataSource = [\n 'Today',\n 'This Week',\n 'This Month',\n 'Yesterday',\n 'Last Week',\n 'Last Month',\n 'Tomorrow',\n 'Next Week',\n 'Next Month',\n 'Between',\n 'Greater Than',\n 'Less Than',\n ];\n }\n\n protected changeSelectedItem(e: AXValueChangedEvent) {\n if (e.isUserInteraction) {\n this.selectedItem.set(e.value);\n }\n }\n\n protected getSelectedItemValue(itemTitle: string): void {\n this.operator = 'between';\n const currentDate = this.calendarService.now().date;\n const calendar = this.calendarService.calendar;\n switch (itemTitle) {\n case 'Today':\n this.value = {\n from: calendar.startOf(currentDate, 'day').date,\n to: calendar.endOf(currentDate, 'day').date,\n };\n break;\n case 'This Week':\n this.value = {\n from: calendar.startOf(currentDate, 'week').date,\n to: calendar.endOf(currentDate, 'week').date,\n };\n break;\n case 'This Month':\n this.value = {\n from: calendar.startOf(currentDate, 'month').date,\n to: calendar.endOf(currentDate, 'month').date,\n };\n break;\n case 'Yesterday':\n const yesterDay = calendar.add(currentDate, 'day', -1);\n this.value = {\n from: yesterDay.startOf('day').date,\n to: yesterDay.endOf('day').date,\n };\n break;\n case 'Last Week':\n const lastWeek = calendar.add(currentDate, 'week', -1);\n this.value = {\n from: lastWeek.startOf('week').date,\n to: lastWeek.endOf('week').date,\n };\n break;\n case 'Last Month':\n const lastMonth = calendar.add(currentDate, 'month', -1);\n this.value = {\n from: lastMonth.startOf('month').date,\n to: lastMonth.endOf('month').date,\n };\n break;\n case 'Tomorrow':\n const tomorrow = calendar.add(currentDate, 'day', 1);\n this.value = {\n from: tomorrow.startOf('day').date,\n to: tomorrow.endOf('day').date,\n };\n break;\n case 'Next Week':\n const nextWeek = calendar.add(currentDate, 'week', 1);\n this.value = {\n from: nextWeek.startOf('week').date,\n to: nextWeek.endOf('week').date,\n };\n break;\n case 'Next Month':\n const nextMonth = calendar.add(currentDate, 'month', -1);\n this.value = {\n from: nextMonth.startOf('month').date,\n to: nextMonth.endOf('month').date,\n };\n break;\n case 'Between':\n this.value = {\n from: '',\n to: '',\n };\n break;\n case 'Greater Than':\n this.operator = 'greaterThan';\n break;\n case 'Less Than':\n this.operator = 'lessThan';\n break;\n default:\n break;\n }\n }\n protected convertToTitleCase(str: string) {\n return str\n .replace(/[A-Z]/g, (match) => ` ${match}`)\n .trim()\n .replace(/^\\w/, (match) => match.toUpperCase())\n .replace(/\\b\\w/g, (match) => match.toUpperCase());\n }\n}\n"],"names":["i1","i2","i3","i4"],"mappings":";;;;;;;;;;;;;;;AAyDM,MAAO,gCAAiC,SAAQ,mBAAmB,CAAA;AA9CzE,IAAA,WAAA,GAAA;;AA+CY,QAAA,IAAA,CAAA,YAAY,GAA2B,MAAM,CAAC,EAAE,CAAC,CAAC;QAC5D,IAAU,CAAA,UAAA,GAAa,EAAE,CAAC;AAElB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;YACtC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;AACjD,SAAC,CAAC,CAAC;AAsHJ,KAAA;IApHC,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,aAAa,I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AAA,EAAA,UAAA,EAAA,UAAA,EAAA,aAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,OAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,UAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,cAAA,EAAA,eAAA,EAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAInG,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBA9C5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;AAC/G,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;AAC1C,oBAAA,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;AAC9B,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/dateTime/dateTime-widget-view.component.ts"],"sourcesContent":["import { AXDateTimeModule } from '@acorex/core/dateTime';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n template: `\n @if(multiple && isArray(convertedValue)){\n <div class=\"ax-flex ax-flex-col ax-gap-1\">\n @for(value of convertedValue; track $index){\n <span>{{ value }}</span>\n }\n </div>\n }@else{\n <span>{{ convertedValue }}</span>\n }\n `,\n standalone: true,\n imports: [AXFormatModule, AXDateTimeModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['context', 'value', 'multiple'],\n})\nexport class AXPDateTimeWidgetViewComponent extends AXPWidgetBase {\n protected convertedValue!: string | null;\n protected multiple!: boolean;\n\n override render() {\n const rawValue = this.context[this.prop.name];\n if (rawValue == null) {\n this.convertedValue = null;\n return;\n }\n if (this.isArray(rawValue)) {\n // if (this.multiple) {\n console.log(rawValue);\n this.convertedValue = rawValue.map((item: Date) => this.formatValue(new Date(item)));\n // } else {\n // this.convertedValue = this.formatValue(rawValue[0]);\n // }\n } else {\n this.convertedValue = this.formatValue(new Date(rawValue));\n }\n\n // const value = new Date(rawValue);\n // this.formatValue(value);\n }\n\n protected formatValue(value: Date) {\n if (this.formats?.default) {\n return this.formatService.format(new Date(value), 'datetime', { format: this.formats.default });\n } else {\n return value.toISOString();\n }\n }\n\n protected isArray(val: any) {\n return Array.isArray(val);\n }\n}\n"],"names":[],"mappings":";;;;;;AAsBM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;IAItD,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAI,QAAQ,IAAI,IAAI,EAAE;AACpB,YAAA,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;YAC3B,OAAO;SACR;AACD,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;;AAE1B,YAAA,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACtB,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,CAA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c,8BAAE,gBAAgB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI/B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAjB1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;AAUT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;oBAC3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;AACzC,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/email/email-widget-column.component.ts"],"sourcesContent":["import { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n selector: 'axp-email-widget-column',\n template: `<div>\n @if(multiple && list.length>1){\n <div [title]=\"text\">{{ dot3(text) }}</div>\n }@else {\n <div>\n @if(list && list.length){\n {{ list[0].value }}\n }@else { - }\n </div>\n\n }\n </div>`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXTooltipModule],\n inputs: ['context', 'multiple', 'width', 'hasLabel'],\n})\nexport class AXPEmailWidgetColumnComponent extends AXPWidgetBase {\n protected list: { value: string; label: string }[] = [];\n protected text: string = '';\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n\n protected dot3(text: string) {\n if (this.multiple) return text.split('\\n')[0] + '...';\n else return text.split('\\n')[0];\n }\n\n protected override render(): void {\n if (this.context[this.prop.name]) {\n const rawValue = this.context[this.prop.name];\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n this.text = this.list.map((item) => item.value).join('\\n');\n }\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n value: item.value ?? '-',\n type: item.type ?? 'primary',\n label: item.label,\n }\n : {\n value: item,\n type: 'primary',\n label: null,\n };\n }\n}\n"],"names":[],"mappings":";;;;;AAsBM,MAAO,6BAA8B,SAAQ,aAAa,CAAA;AAnBhE,IAAA,WAAA,GAAA;;QAoBY,IAAI,CAAA,IAAA,GAAuC,EAAE,CAAC;QAC9C,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;AA8B7B,KAAA;AA1BW,IAAA,IAAI,CAAC,IAAY,EAAA;QACzB,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;;YACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KACjC;IAEkB,MAAM,GAAA;QACvB,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;AAChC,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,YAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC9G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC5D;KACF;AAEO,IAAA,WAAW,CAAC,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AAA;AACP,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC;AACrD,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/file/file-widget-column.component.ts"],"sourcesContent":["import { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { isEmpty } from 'lodash-es';\n\n@Component({\n template: ` <i class=\"fa-regular fa-paperclip-vertical fa-xl ax-cursor-pointer\"></i> `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule],\n inputs: ['context', 'multiple', 'width'],\n})\nexport class AXPFileWidgetColumnComponent extends AXPWidgetBase {\n protected hasFile: boolean = false;\n\n override render() {\n this.hasFile = !isEmpty(this.context[this.prop.name]);\n }\n}\n"],"names":[],"mappings":";;;;;;AAYM,MAAO,4BAA6B,SAAQ,aAAa,CAAA;AAP/D,IAAA,WAAA,GAAA;;QAQY,IAAO,CAAA,OAAA,GAAY,KAAK,CAAC;AAKpC,KAAA;IAHU,MAAM,GAAA;AACb,QAAA,IAAI,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACvD;8GALU,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAN7B,CAA4E,0EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAG5E,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAPxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAA4E,0EAAA,CAAA;AACtF,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC;AACzC,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/file/file-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\n @if(multiple){ @for(item of list;let first=$first;track item.name) {\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" ] [ngTemplateOutletContext]=\"{ data: item }\" ]></ng-template>\n } }@else {\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" ] [ngTemplateOutletContext]=\"{ data: list[0] }\" ]></ng-template>\n }\n <ng-template #itemTemplate let-item=\"data\">\n <div\n *ngIf=\"item\"\n class=\"ax-flex ax-items-center ax-justify-between ax-p-2 ax-border ax-rounded-lg ax-bg-surface ax-col-start-1 ax-col-end-13 lg:ax-col-end-7 2xl:ax-col-end-5\"\n >\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n <ng-container *ngIf=\"getFileInfo(item.name) as fileInfo\">\n <div\n class=\"ax-w-10 ax-h-10 ax-rounded-lg ax-flex ax-items-center ax-justify-center\"\n [ngClass]=\"[fileInfo.color]\"\n >\n <i [ngClass]=\"['fa-solid', 'ax-text-xl', fileInfo.icon]\"></i>\n </div>\n </ng-container>\n <div>\n <div class=\"ax-leading-6\">{{ item.name }}</div>\n <p class=\"ax-text-sm ax-text-neutral-400\">250 KB</p>\n </div>\n </div>\n <ax-button look=\"blank\" color=\"ghost\" class=\"!ax-text-neutral-400 hover:!ax-text-neutral-600\">\n <ax-icon>\n <i class=\"fa-solid fa-download\"></i>\n </ax-icon>\n </ax-button>\n </div>\n </ng-template>\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule],\n inputs: ['context', 'value', 'multiple'],\n})\nexport class AXPFileWidgetViewComponent extends AXPWidgetBase {\n protected list: { name: string; type: string }[] = [];\n protected multiple!: boolean;\n\n override render() {\n const rawValue = this.context[this.prop.name];\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n }\n\n protected getFileInfo(fileName: string): { icon: string; color: string } {\n const extension = fileName.split('.').pop()?.toLowerCase();\n\n switch (extension) {\n case 'txt':\n return { icon: 'fa-file-alt', color: 'ax-bg-blue-100 ax-text-blue-500' };\n\n case 'pdf':\n return { icon: 'fa-file-pdf', color: 'ax-bg-red-100 ax-text-red-500' };\n\n case 'doc':\n case 'docx':\n return { icon: 'fa-file-word', color: 'ax-bg-blue-200 ax-text-blue-600' };\n\n case 'xls':\n case 'xlsx':\n return { icon: 'fa-file-excel', color: 'ax-bg-green-100 ax-text-green-500' };\n\n case 'ppt':\n case 'pptx':\n return { icon: 'fa-file-powerpoint', color: 'ax-bg-orange-100 ax-text-orange-500' };\n\n case 'jpg':\n case 'jpeg':\n case 'png':\n case 'gif':\n case 'bmp':\n return { icon: 'fa-file-image', color: 'ax-bg-purple-100 ax-text-purple-500' };\n\n case 'zip':\n case 'rar':\n case '7z':\n return { icon: 'fa-file-archive', color: 'ax-bg-yellow-100 ax-text-yellow-500' };\n\n case 'mp3':\n case 'wav':\n case 'ogg':\n return { icon: 'fa-file-audio', color: 'ax-bg-pink-100 ax-text-pink-500' };\n\n case 'mp4':\n case 'avi':\n case 'mkv':\n case 'mov':\n return { icon: 'fa-file-video', color: 'ax-bg-blue-100 ax-text-blue-500' };\n\n case 'js':\n case 'jsx':\n case 'ts':\n case 'tsx':\n return { icon: 'fa-file-code', color: 'ax-bg-yellow-100 ax-text-yellow-500' };\n\n // Add more cases as needed for other file types\n\n default:\n return { icon: 'fa-file', color: 'ax-bg-gray-100 ax-text-gray-500' };\n }\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n name: item.name,\n type: item.type ?? 'Unknown',\n }\n : null;\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;AA+CM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;AAzC7D,IAAA,WAAA,GAAA;;QA0CY,IAAI,CAAA,IAAA,GAAqC,EAAE,CAAC;AA0EvD,KAAA;IAvEU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,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EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG9C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAzCtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAC;AAC1D,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;AACzC,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/gallery/gallery-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Signal, WritableSignal, computed, signal } from '@angular/core';\nimport { AXPMediaInfo, AXPMediaItem } from './gallery-widget-types';\n\n@Component({\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\n @if(list().length){\n <div class=\"ax-flex ax-items-center ax-justify-between ax-rounded-lg ax-bg-surface ax-col-start-1 ax-col-end-13\">\n <div class=\"ax-flex ax-items-center md:ax-justify-start ax-justify-center ax-w-full ax-gap-3\">\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-4\">\n @switch (getMediaInfo(activeMedia()?.name||'').format) { @case ('video') {\n <video\n class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto ax-shadow-md\"\n controls\n [src]=\"activeMedia()?.url\"\n ></video>\n } @case ('image') {\n <ax-image class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto\" [src]=\"activeMedia()?.url\">\n <ax-loading></ax-loading>\n <ax-placeholder>\n <div\n class=\"ax-w-96 ax-h-72 ax-gap-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-rounded-lg\"\n >\n <ax-icon class=\"fa-solid fa-circle-exclamation ax-text-3xl\"> </ax-icon>\n <span>Connection Error!</span>\n </div>\n </ax-placeholder>\n </ax-image>\n } @case ('audio') {\n <audio controls class=\"ax-rounded-lg\">\n <source [src]=\"activeMedia()?.url\" type=\"audio/mp3\" />\n </audio>\n } }\n <div class=\"ax-flex ax-gap-4 ax-overflow-x-auto ax-max-w-[320px] lg:ax-max-w-[480px] ax-pb-2\">\n @for (media of thumbnails(); track $index) {\n <div\n *ngIf=\"getMediaInfo(media.name) as mediaInfo\"\n class=\"hover:ax-opacity-75 ax-transition-all ax-relative ax-cursor-pointer ax-flex ax-justify-center ax-items-center\"\n (click)=\"changeMediaSelected(media)\"\n >\n <ax-image\n class=\"ax-w-16 ax-brightness-50 ax-h-16 ax-rounded-lg ax-shadow-md ax-filter\"\n [src]=\"mediaInfo.format == 'image' ? media.url : media.posterUrl\"\n ></ax-image>\n <div class=\"ax-absolute ax-text-neutral-300 ax-text-xl\">\n <ax-icon [class]=\"mediaInfo.icon\"> </ax-icon>\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n } @else {\n <!-- ask for empty state: -->\n <small>No Media!</small>\n }\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule, AXLoadingModule],\n inputs: ['context', 'multiple'],\n})\nexport class AXPGalleryWidgetViewComponent extends AXPWidgetBase {\n protected multiple!: boolean;\n protected list: WritableSignal<AXPMediaItem[]> = signal([]);\n protected thumbnails: Signal<AXPMediaItem[]> = computed(() =>\n this.list().filter((i) => i.id !== this.activeMedia()?.id)\n );\n protected activeMedia: WritableSignal<AXPMediaItem | undefined> = signal(undefined);\n\n override render() {\n const rawValue: AXPMediaItem[] = this.context[this.prop.name] ? JSON.parse(this.context[this.prop.name]) : [];\n this.list.set(Array.isArray(rawValue) ? rawValue.map((c) => c) : [rawValue]);\n }\n\n ngOnInit(): void {\n this.activeMedia.set(this.list()[0]);\n }\n\n changeMediaSelected(media: AXPMediaItem) {\n this.activeMedia.set(media);\n }\n\n protected getMediaInfo(mediaName: string): AXPMediaInfo {\n const extension = mediaName.split('.').pop()?.toLowerCase();\n\n switch (extension) {\n case 'jpg':\n case 'jpeg':\n case 'png':\n case 'gif':\n case 'bmp':\n return { icon: '', format: 'image' };\n\n case 'mp4':\n case 'avi':\n case 'mkv':\n case 'mov':\n return { icon: 'fa-regular fa-play', format: 'video' };\n\n case 'mp3':\n case 'wav':\n case 'ogg':\n return { icon: 'fa-regular fa-volume-high', format: 'audio' };\n\n default:\n return { icon: '', format: 'image' };\n }\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;AAsEM,MAAO,6BAA8B,SAAQ,aAAa,CAAA;AA7DhE,IAAA,WAAA,GAAA;;AA+DY,QAAA,IAAA,CAAA,IAAI,GAAmC,MAAM,CAAC,EAAE,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,UAAU,GAA2B,QAAQ,CAAC,MACtD,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,CAAC,CAC3D,CAAC;AACQ,QAAA,IAAA,CAAA,WAAW,GAA6C,MAAM,CAAC,SAAS,CAAC,CAAC;AAyCrF,KAAA;IAvCU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAmB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAA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AAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG9E,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBA7DzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,CAAC;AAC1F,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAChC,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/lookup/lookup-widget-column.component.ts"],"sourcesContent":["import { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n selector: 'axp-lookup-widget-column',\n template: '{{text}}',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule],\n inputs: ['context', 'multiple', 'width', 'textField', 'valueField', 'reference', 'referenceField'],\n})\nexport class AXPLookupWidgetColumnComponent extends AXPWidgetBase {\n protected multiple!: boolean;\n protected list: { id: string; text: string }[] = [];\n protected text!: string;\n protected textField: string = 'title';\n protected valueField: string = 'id';\n\n override render() {\n const rawValue = this.context[this.prop.name];\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n //\n this.text = this.list.map((c) => c.text).join(', ');\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object' && item\n ? {\n id: item[this.valueField],\n text: item[this.textField],\n }\n : {\n id: item,\n text: '',\n };\n }\n}\n"],"names":[],"mappings":";;;;;AAWM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;AARjE,IAAA,WAAA,GAAA;;QAUY,IAAI,CAAA,IAAA,GAAmC,EAAE,CAAC;QAE1C,IAAS,CAAA,SAAA,GAAW,OAAO,CAAC;QAC5B,IAAU,CAAA,UAAA,GAAW,IAAI,CAAC;AAoBrC,KAAA;IAlBU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;;QAE9G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACrD;AAEO,IAAA,WAAW,CAAC,IAAS,EAAA;AAC3B,QAAA,OAAO,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI;AACpC,cAAE;AACE,gBAAA,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;AACzB,gBAAA,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;AAC3B,aAAA;AACH,cAAE;AACE,gBAAA,EAAE,EAAE,IAAI;AACR,gBAAA,IAAI,EAAE,EAAE;aACT,CAAC;KACP;8GAxBU,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA9B,8BAA8B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAN/B,UAAU,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAGV,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGX,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAR1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,CAAC;AACnG,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/lookup/lookup-widget-edit.component.ts"],"sourcesContent":["import { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXPWidgetEditBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPEntityRegistryService } from '../../shared';\n@Component({\n selector: 'axp-lookup-widget-edit',\n template: `\n <ax-select-box\n [valueField]=\"valueField\"\n [textField]=\"textField\"\n [ngModel]=\"value\"\n [multiple]=\"multiple\"\n (onValueChanged)=\"handleChange($event)\"\n [dataSource]=\"dataSource || []\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n </ax-select-box>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, FormsModule, AXSelectBoxModule, AXFormModule],\n inputs: ['value', 'reference', 'valueField', 'textField', 'multiple', 'referenceField'],\n})\nexport class AXPLookupWidgetEditComponent extends AXPWidgetEditBase {\n protected reference!: string;\n protected multiple!: boolean;\n protected valueField: string = 'value';\n protected textField: string = 'text';\n private entityRegistery = inject(AXPEntityRegistryService);\n protected dataSource!: AXDataSource;\n\n async ngOnInit() {\n const entity = await this.entityRegistery.resolve(this.reference, this.reference);\n this.dataSource = new AXDataSource(entity.dataSource);\n }\n\n protected handleChange(e: AXValueChangedEvent) {\n if (e.isUserInteraction) {\n if (this.multiple) {\n this.value = e.component.selectedItems;\n } else {\n this.value = e.component.selectedItems[0];\n }\n }\n }\n}\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BM,MAAO,4BAA6B,SAAQ,iBAAiB,CAAA;AArBnE,IAAA,WAAA,GAAA;;QAwBY,IAAU,CAAA,UAAA,GAAW,OAAO,CAAC;QAC7B,IAAS,CAAA,SAAA,GAAW,MAAM,CAAC;AAC7B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC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ex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/lookup/lookup-widget-filter.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXSelectionListModule } from '@acorex/components/selection-list';\nimport { AXPFilterOperator, AXPWidgetFilterBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPEntityRegistryService } from '../../shared';\n@Component({\n selector: 'axp-lookup-widget-filter',\n template: `\n <div class=\"ax-flex ax-items-center\">\n <ax-select-box\n [textField]=\"'title'\"\n [placeholder]=\"'Select...'\"\n [dataSource]=\"dataSource || []\"\n (onValueChanged)=\"handleChange($event)\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [valueField]=\"valueField\"\n [textField]=\"textField\"\n >\n </ax-select-box>\n @if(operations.length){\n <ax-button #changeOperator look=\"blank\" color=\"default\" class=\"ax-sm\">\n <ax-icon class=\"fa-solid fa-ellipsis-vertical\"></ax-icon>\n </ax-button>\n <ax-popover\n #operatorsPopover\n [target]=\"changeOperator\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n [adaptivityEnabled]=\"true\"\n >\n <div\n class=\"ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]\"\n >\n <ax-selection-list\n [valueField]=\"'name'\"\n [textField]=\"'title'\"\n [(ngModel)]=\"operator\"\n (ngModelChange)=\"operatorsPopover.close()\"\n [direction]=\"'vertical'\"\n [items]=\"operations\"\n [multiple]=\"false\"\n ></ax-selection-list>\n </div>\n </ax-popover>\n }\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXSelectBoxModule,\n FormsModule,\n AXPopoverModule,\n AXSelectionListModule,\n AXButtonModule,\n AXDecoratorModule,\n ],\n outputs: ['valueChange', 'operatorChange'],\n inputs: ['value', 'operator', 'refrence', 'multiple', 'textField', 'valueField'],\n})\nexport class AXPLookupWidgetFilterComponent extends AXPWidgetFilterBase {\n reference!: string;\n valueField!: string;\n textField!: string;\n multiple: boolean = false;\n operations: AXPFilterOperator[] = [];\n private entityRegistery = inject(AXPEntityRegistryService);\n protected dataSource!: AXDataSource;\n\n protected handleChange(e: AXValueChangedEvent) {\n if (e.isUserInteraction) {\n this.value = e.component.selectedItems[0];\n }\n }\n\n async ngOnInit() {\n const entity = await this.entityRegistery.resolve(this.reference, this.reference);\n this.dataSource = new AXDataSource(entity.dataSource);\n this.operations = this.schema.filterOptions.operators;\n }\n}\n"],"names":["i1","i3","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEM,MAAO,8BAA+B,SAAQ,mBAAmB,CAAA;AAzDvE,IAAA,WAAA,GAAA;;QA6DE,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;QAC1B,IAAU,CAAA,UAAA,GAAwB,EAAE,CAAC;AAC7B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAc5D,KAAA;AAXW,IAAA,YAAY,CAAC,CAAsB,EAAA;AAC3C,QAAA,IAAI,CAAC,CAAC,iBAAiB,EAAE;YACvB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;SAC3C;KACF;AAED,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC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,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,WAAW;wBACX,eAAe;wBACf,qBAAqB;wBACrB,cAAc;wBACd,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;AAC1C,oBAAA,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC;AACjF,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/lookup/lookup-widget-view.component.ts"],"sourcesContent":["import { AXTagModule } from '@acorex/components/tag';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n selector: 'axp-lookup-widget-view',\n template: '{{text}}',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXTagModule],\n inputs: ['valueField', 'textField', 'multiple'],\n})\nexport class AXPLookupWidgetViewComponent extends AXPWidgetBase {\n protected list: { id: string; text: string }[] = [];\n protected text: string | null = null;\n protected multiple: boolean = false;\n protected textField: string = 'title';\n protected valueField: string = 'id';\n\n override render() {\n const rawValue = this.context[this.prop.name];\n if (rawValue) {\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n this.text = this.list.map((c) => c.text).join(', ');\n } else {\n this.list = [];\n this.text = null;\n }\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n id: item[this.valueField],\n text: item[this.textField],\n }\n : {\n id: item,\n text: item,\n };\n }\n\n ngOnInit() {\n this.render();\n }\n}\n"],"names":[],"mappings":";;;;;;AAYM,MAAO,4BAA6B,SAAQ,aAAa,CAAA;A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MAAM,EAAE,CAAC;KACf;8GAhCU,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAN7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,UAAU,EAGV,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,8BAAE,WAAW,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGxB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBARxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;AACpC,oBAAA,MAAM,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,UAAU,CAAC;AAChD,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/map/map-widget-view.component.ts"],"sourcesContent":["import { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';\n@Component({\n selector: 'axp-map-widget-view',\n template: `<div class=\"ax-w-full ax-h-72\">\n <div class=\"ax-h-full\" #mapEl></div>\n </div>`,\n standalone: true,\n styleUrl: './map-widget.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule],\n encapsulation: ViewEncapsulation.None,\n inputs: ['context'],\n})\nexport class AXPMapWidgetViewComponent extends AXPWidgetBase {\n leaflet!: any;\n @ViewChild('mapEl') mapEl!: ElementRef<HTMLElement>;\n protected map: any;\n protected value: any;\n protected featuresGroup: any;\n\n async ngAfterViewInit() {\n await this.initMap();\n }\n\n addMarker(location: any, leaflet: any) {\n const marker = leaflet.marker(location);\n if (location.title) {\n marker.bindPopup(location.title);\n }\n this.featuresGroup.addLayer(marker);\n }\n\n updateMarkers() {\n if (this.value) {\n this.featuresGroup.clearLayers();\n this.value.forEach((location: any) => {\n this.addMarker(location, this.leaflet);\n });\n this.map.fitBounds(this.featuresGroup.getBounds(), { padding: [50, 50] });\n }\n }\n\n async initMap() {\n const leaflet = await import('leaflet');\n this.leaflet = leaflet;\n this.featuresGroup = new leaflet.FeatureGroup();\n\n this.map = leaflet.map(this.mapEl.nativeElement, {\n center: [20, 0],\n zoom: 2,\n minZoom: 1,\n maxZoom: 10,\n worldCopyJump: true,\n });\n leaflet\n .tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n maxZoom: 10,\n attribution: '© acorex platform',\n })\n .addTo(this.map);\n this.updateMarkers();\n this.map.addLayer(this.featuresGroup);\n }\n\n protected override render(): void {\n this.value = this.context[this.prop.name];\n this.updateMarkers();\n }\n}\n"],"names":[],"mappings":";;;;;AAeM,MAAO,yBAA0B,SAAQ,aAAa,CAAA;AAO1D,IAAA,MAAM,eAAe,GAAA;AACnB,QAAA,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;KACtB;I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A,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAIX,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAZrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,EACrB,QAAA,EAAA,CAAA;;AAEH,QAAA,CAAA,EAAA,UAAA,EACK,IAAI,EAEC,eAAA,EAAA,uBAAuB,CAAC,MAAM,WACtC,CAAC,YAAY,CAAC,EAAA,aAAA,EACR,iBAAiB,CAAC,IAAI,EAC7B,MAAA,EAAA,CAAC,SAAS,CAAC,EAAA,MAAA,EAAA,CAAA,qmvCAAA,CAAA,EAAA,CAAA;8BAIC,KAAK,EAAA,CAAA;sBAAxB,SAAS;uBAAC,OAAO,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/messenger/messenger-widget-column.component.ts"],"sourcesContent":["import { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n selector: 'axp-messenger-widget-column',\n template: `<div>\n @if(multiple && list.length>1){\n <div [title]=\"text\">{{ dot3(text) }}</div>\n }@else {\n <div>\n @if(list && list.length){\n {{ list[0].value }}\n }@else { - }\n </div>\n\n }\n </div>`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXTooltipModule],\n inputs: ['context', 'multiple', 'width'],\n})\nexport class AXPMessengerWidgetColumnComponent extends AXPWidgetBase {\n protected list: { value: string; label: string }[] = [];\n protected text: string = '';\n protected multiple!: boolean;\n\n protected dot3(text: string) {\n if (this.multiple) return text.split('\\n')[0] + '...';\n else return text.split('\\n')[0];\n }\n\n protected override render(): void {\n if (this.context[this.prop.name]) {\n const rawValue = this.context[this.prop.name];\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n this.text = this.list.map((item) => item.value).join('\\n');\n }\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n value: item.value ?? '-',\n label: item.type ?? 'Telegram',\n }\n : {\n value: item,\n label: 'Telegram',\n };\n }\n}\n"],"names":[],"mappings":";;;;;AAsBM,MAAO,iCAAkC,SAAQ,aAAa,CAAA;AAnBpE,IAAA,WAAA,GAAA;;QAoBY,IAAI,CAAA,IAAA,GAAuC,EAAE,CAAC;QAC9C,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;AA2B7B,KAAA;AAxBW,IAAA,IAAI,CAAC,IAAY,EAAA;QACzB,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;;YACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KACjC;IAEkB,MAAM,GAAA;QACvB,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;AAChC,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,YAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC9G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC5D;KACF;AAEO,IAAA,WAAW,CAAC,IA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,CAAC,eAAe,CAAC;AAC1B,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC;AACzC,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/messenger/messenger-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXPWidgetEditBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n <ng-container *ngIf=\"multiple\">\n @for(item of value;track item?.value) {\n <ax-text-box [(ngModel)]=\"item.value\" class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"> </ax-text-box>\n <ax-select-box\n [dataSource]=\"labels\"\n [(ngModel)]=\"item.label\"\n class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12\"\n >\n </ax-select-box>\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\"ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n }\n </ng-container>\n <ng-container *ngIf=\"!multiple\">\n <ax-text-box [(ngModel)]=\"value[0].value\" class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"> </ax-text-box>\n <ax-select-box\n [dataSource]=\"labels\"\n [(ngModel)]=\"value[0].label\"\n class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13\"\n >\n </ax-select-box>\n </ng-container>\n\n <ax-button\n *ngIf=\"multiple\"\n [text]=\"value.length == 0 ? 'Add New' : 'Add Another'\"\n look=\"twotone\"\n (onClick)=\"handleAddItem()\"\n class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule],\n inputs: ['multiple'],\n})\nexport class AXPMessengerWidgetEditComponent extends AXPWidgetEditBase<\n { value?: string | null; label?: string | undefined }[]\n> {\n protected multiple!: boolean;\n protected labels = ['Telegram', 'Whatsapp'];\n\n protected handleAddItem() {\n this.value.push({ label: 'Telegram', value: undefined });\n }\n\n protected handleRemoveItem(item: any) {\n this.value = this.value.filter((c) => c != item);\n }\n\n ngOnInit(): void {\n if (!this.value || this.value?.length == 0) {\n this.value = [\n {\n label: 'Telegram',\n value: '',\n },\n ];\n }\n }\n}\n"],"names":["i2","i4","i5"],"mappings":";;;;;;;;;;;;;;;;AA2DM,MAAO,+BAAgC,SAAQ,iBAEpD,CAAA;AApDD,IAAA,WAAA,GAAA;;AAsDY,QAAA,IAAA,CAAA,MAAM,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;AAoB7C,KAAA;IAlBW,aAAa,GAAA;AACrB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;KAC1D;AAES,IAAA,gBAAgB,CAAC,IAAS,EAAA;AAClC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC;KAClD;IAED,QAAQ,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AAA,OAAA,EAAA,OAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,UAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,cAAA,EAAA,eAAA,EAAA,iBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG/F,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAlD3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;oBAC3G,MAAM,EAAE,CAAC,UAAU,CAAC;AACrB,iBAAA,CAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/messenger/messenger-widget-view.component.ts"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { AXPClipBoardService } from '@acorex/platform/common';\n@Component({\n template: `<div class=\"ax-grid ax-grid-cols-12 ax-gap-2 \">\n <ng-container *ngIf=\"multiple\">\n @for(item of list;track item?.value) {\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{ data: item }\"></ng-template>\n }\n </ng-container>\n <ng-container *ngIf=\"!multiple\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{ data: list[0] }\"></ng-template>\n </ng-container>\n <ng-template #itemTemplate let-item=\"data\">\n <ng-container *ngIf=\"item\">\n <div class=\"ax-col-start-1 ax-col-end-10 lg:ax-col-end-7\">\n <div class=\"ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-center ax-w-max\">\n <div class=\"ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center\">\n <i class=\"fa-solid ax-text-neutral-400 fa-envelope\"></i>\n </div>\n <a\n class=\"hover:ax-text-primary-500 ax-cursor-pointer\"\n target=\"_blank\"\n [href]=\"generateLink(item.label, item.value)\"\n >{{ item.value }}</a\n >\n <span\n class=\"ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500\"\n (click)=\"clipboard.copy('Messenger Id ', item.value)\"\n >\n <i class=\"fa-solid fa-copy \"></i>\n </span>\n <ax-badge [color]=\"generateBadgeColor(item.label)\" [look]=\"'twotone'\" [text]=\"item.label\"></ax-badge>\n </div>\n </div>\n </ng-container>\n </ng-template>\n </div>`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXBadgeModule],\n inputs: ['context', 'multiple'],\n})\nexport class AXPMessengerWidgetViewComponent extends AXPWidgetBase {\n protected clipboard = inject(AXPClipBoardService);\n protected list!: { value: string; label: string }[];\n protected multiple!: boolean;\n\n protected override render(): void {\n const rawValue = this.context[this.prop.name];\n if (rawValue == null) return;\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n value: item.value ?? '-',\n label: item.label ?? 'Telegram',\n }\n : {\n value: item,\n label: 'Telegram',\n };\n }\n\n protected generateLink(label: string, value: string): string {\n const labelLowerCase = label.toLowerCase();\n switch (labelLowerCase) {\n case 'telegram':\n return `https://t.me/${value}`;\n case 'whatsapp':\n return `https://wa.me/${value}`;\n default:\n return value;\n }\n }\n protected generateBadgeColor(label: string): string {\n const labelLowerCase = label.toLowerCase();\n switch (labelLowerCase) {\n case 'telegram':\n return 'primary';\n case 'whatsapp':\n return 'success';\n default:\n return 'primary';\n }\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;AA6CM,MAAO,+BAAgC,SAAQ,aAAa,CAAA;AAxClE,IAAA,WAAA,GAAA;;AAyCY,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AA4CnD,KAAA;IAxCoB,MAAM,GAAA;AACvB,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO;AAC7B,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC/G;AAEO,IAAA,WAAW,CAAC,IAAS,EAAA;QAC3B,OAAO,OAAO,IAAI,IAAI,QAAQ;AAC5B,cAAE;AACA,gBAAA,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,GAAG;AACxB,gBAAA,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,UAAU;AAChC,aAAA;AACD,cAAE;AACA,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,KAAK,EAAE,UAAU;aAClB,CAAC;KACL;IAES,YAAY,CAAC,KAAa,EAAE,KAAa,EAAA;AACjD,QAAA,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;QAC3C,QAAQ,cAA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