@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 +1 @@
1
- {"version":3,"file":"acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/email/email-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXPlatform } from '@acorex/core/platform';\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 template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n <ng-container *ngIf=\"multiple\">\n @for(item of convertedValue();track item?.value) {\n <ax-text-box\n [(ngModel)]=\"item.value\"\n (onValueChanged)=\"handleEmailChange($event, item.id)\"\n type=\"email\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"\n [class.lg:!ax-col-end-12]=\"!hasLabel\"\n >\n </ax-text-box>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"['Primary', 'Secondary']\"\n [(ngModel)]=\"item.label\"\n (onValueChanged)=\"handleLabelChange($event, item.id)\"\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 }\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 <div class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\" [class.lg:!ax-col-end-13]=\"!hasLabel\">\n <ax-text-box\n [(ngModel)]=\"convertedValue()[0].value\"\n (onValueChanged)=\"handleEmailChange($event, convertedValue()[0].id)\"\n type=\"email\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n </ax-text-box>\n </div>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"['Primary', 'Secondary']\"\n [(ngModel)]=\"convertedValue()[0].label\"\n (onValueChanged)=\"handleLabelChange($event, convertedValue()[0].id)\"\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 }\n </ng-container>\n\n <ax-button\n *ngIf=\"multiple\"\n [text]=\"convertedValue().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: [\n CommonModule,\n AXButtonModule,\n FormsModule,\n AXTextBoxModule,\n AXDecoratorModule,\n AXSelectBoxModule,\n AXFormModule,\n ],\n inputs: ['multiple', 'hasLabel'],\n})\nexport class AXPEmailWidgetEditComponent extends AXPWidgetEditBase<any> {\n protected mockerService = inject(MockDataService);\n\n protected platform = inject(AXPlatform);\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n protected convertedValue: WritableSignal<{ value: string; label?: string; id: string }[]> = signal([]);\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }));\n else this.value = this.convertedValue().map((i) => i.value);\n } else {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }))[0];\n else this.value = this.convertedValue().map((i) => i.value)[0];\n }\n });\n\n protected handleEmailChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, value: e.value } : i)));\n }\n }\n protected handleLabelChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, label: e.value } : i)));\n }\n }\n\n protected handleAddItem() {\n // this.value.push({ label: 'Primary', value: undefined });\n this.convertedValue.update((prev) => [\n ...prev,\n { label: this.hasLabel ? 'Primary' : '', value: '', id: this.mockerService.uid() },\n ]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c) => c != item));\n }\n\n ngOnInit(): void {\n // Initialize with an empty array if there's no value or it's empty\n if (!this.value || this.value.length === 0) {\n this.initializeEmptyValue();\n return;\n }\n\n // Process the input based on `multiple` and `hasLabel`\n if (this.multiple) {\n this.handleMultipleValue();\n } else {\n this.handleSingleValue();\n }\n }\n\n private initializeEmptyValue(): void {\n this.convertedValue.set([{ value: '', label: '', id: this.mockerService.uid() }]);\n }\n\n private handleMultipleValue(): void {\n const newValue = this.value.map((item: any) => ({\n value: this.hasLabel ? item.value : item,\n label: this.hasLabel ? item.label : null,\n id: this.mockerService.uid(),\n }));\n this.convertedValue.set(newValue);\n }\n\n private handleSingleValue(): void {\n const newValue = [\n {\n value: this.hasLabel ? this.value.value : this.value,\n label: this.hasLabel ? this.value.label : null,\n id: this.mockerService.uid(),\n },\n ];\n this.convertedValue.set(newValue);\n }\n}\n"],"names":["i2","i3","i4","i5","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;AA8FM,MAAO,2BAA4B,SAAQ,iBAAsB,CAAA;AAjFvE,IAAA,WAAA,GAAA;;AAkFY,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAExC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAG9B,QAAA,IAAA,CAAA,cAAc,GAAoE,MAAM,CAAC,EAAE,CAAC,CAAC;AAE/F,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;AACtC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,IAAI,IAAI,CAAC,QAAQ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BAAA,EAAA,QAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACjB,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;;2FAIH,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAjFvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkET,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,WAAW;wBACX,eAAe;wBACf,iBAAiB;wBACjB,iBAAiB;wBACjB,YAAY;AACb,qBAAA;AACD,oBAAA,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;AACjC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-layouts-email-widget-edit.component-DqnNien2.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/email/email-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXPlatform } from '@acorex/core/platform';\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 template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n <ng-container *ngIf=\"multiple\">\n @for(item of convertedValue();track item?.value) {\n <ax-text-box\n [(ngModel)]=\"item.value\"\n (onValueChanged)=\"handleEmailChange($event, item.id)\"\n type=\"email\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"\n [class.lg:!ax-col-end-12]=\"!hasLabel\"\n >\n </ax-text-box>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"['Primary', 'Secondary']\"\n [(ngModel)]=\"item.label\"\n (onValueChanged)=\"handleLabelChange($event, item.id)\"\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 }\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 <div class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\" [class.lg:!ax-col-end-13]=\"!hasLabel\">\n <ax-text-box\n [(ngModel)]=\"convertedValue()[0].value\"\n (onValueChanged)=\"handleEmailChange($event, convertedValue()[0].id)\"\n type=\"email\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n </ax-text-box>\n </div>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"['Primary', 'Secondary']\"\n [(ngModel)]=\"convertedValue()[0].label\"\n (onValueChanged)=\"handleLabelChange($event, convertedValue()[0].id)\"\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 }\n </ng-container>\n\n <ax-button\n *ngIf=\"multiple\"\n [text]=\"convertedValue().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: [\n CommonModule,\n AXButtonModule,\n FormsModule,\n AXTextBoxModule,\n AXDecoratorModule,\n AXSelectBoxModule,\n AXFormModule,\n ],\n inputs: ['multiple', 'hasLabel'],\n})\nexport class AXPEmailWidgetEditComponent extends AXPWidgetEditBase<any> {\n protected mockerService = inject(MockDataService);\n\n protected platform = inject(AXPlatform);\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n protected convertedValue: WritableSignal<{ value: string; label?: string; id: string }[]> = signal([]);\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }));\n else this.value = this.convertedValue().map((i) => i.value);\n } else {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }))[0];\n else this.value = this.convertedValue().map((i) => i.value)[0];\n }\n });\n\n protected handleEmailChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, value: e.value } : i)));\n }\n }\n protected handleLabelChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, label: e.value } : i)));\n }\n }\n\n protected handleAddItem() {\n // this.value.push({ label: 'Primary', value: undefined });\n this.convertedValue.update((prev) => [\n ...prev,\n { label: this.hasLabel ? 'Primary' : '', value: '', id: this.mockerService.uid() },\n ]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c) => c != item));\n }\n\n ngOnInit(): void {\n // Initialize with an empty array if there's no value or it's empty\n if (!this.value || this.value.length === 0) {\n this.initializeEmptyValue();\n return;\n }\n\n // Process the input based on `multiple` and `hasLabel`\n if (this.multiple) {\n this.handleMultipleValue();\n } else {\n this.handleSingleValue();\n }\n }\n\n private initializeEmptyValue(): void {\n this.convertedValue.set([{ value: '', label: '', id: this.mockerService.uid() }]);\n }\n\n private handleMultipleValue(): void {\n const newValue = this.value.map((item: any) => ({\n value: this.hasLabel ? item.value : item,\n label: this.hasLabel ? item.label : null,\n id: this.mockerService.uid(),\n }));\n this.convertedValue.set(newValue);\n }\n\n private handleSingleValue(): void {\n const newValue = [\n {\n value: this.hasLabel ? this.value.value : this.value,\n label: this.hasLabel ? this.value.label : null,\n id: this.mockerService.uid(),\n },\n ];\n this.convertedValue.set(newValue);\n }\n}\n"],"names":["i3","i5","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;AA8FM,MAAO,2BAA4B,SAAQ,iBAAsB,CAAA;AAjFvE,IAAA,WAAA,GAAA;;AAkFY,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAExC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAG9B,QAAA,IAAA,CAAA,cAAc,GAAoE,MAAM,CAAC,EAAE,CAAC,CAAC;AAE/F,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;AACtC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,IAAI,IAAI,CAAC,QAAQ;AAAE,oBAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE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AAA,EAAA,IAAA,EACjB,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;;2FAIH,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAjFvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkET,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,cAAc;wBACd,WAAW;wBACX,eAAe;wBACf,iBAAiB;wBACjB,iBAAiB;wBACjB,YAAY;AACb,qBAAA;AACD,oBAAA,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;AACjC,iBAAA,CAAA;;;;;"}
@@ -14,7 +14,7 @@ class AXPEmailWidgetViewComponent extends AXPWidgetBase {
14
14
  this.list = [];
15
15
  }
16
16
  render() {
17
- const rawValue = this.context[this.prop.name];
17
+ const rawValue = this.rawValue;
18
18
  if (rawValue == null)
19
19
  return;
20
20
  this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];
@@ -30,8 +30,8 @@ class AXPEmailWidgetViewComponent extends AXPWidgetBase {
30
30
  label: 'Primary',
31
31
  };
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEmailWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPEmailWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", value: "value", multiple: "multiple", hasLabel: "hasLabel" }, usesInheritance: true, ngImport: i0, template: `
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEmailWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPEmailWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", value: "value", multiple: "multiple", hasLabel: "hasLabel" }, usesInheritance: true, ngImport: i0, template: `
35
35
  <div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
36
36
  <ng-container *ngIf="multiple">
37
37
  @for(item of list;track item?.value) {
@@ -65,7 +65,7 @@ class AXPEmailWidgetViewComponent extends AXPWidgetBase {
65
65
  </div>
66
66
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }] }); }
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEmailWidgetViewComponent, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEmailWidgetViewComponent, decorators: [{
69
69
  type: Component,
70
70
  args: [{
71
71
  template: `
@@ -108,4 +108,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
108
108
  }] });
109
109
 
110
110
  export { AXPEmailWidgetViewComponent };
111
- //# sourceMappingURL=acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs.map
111
+ //# sourceMappingURL=acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/email/email-widget-view.component.ts"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXPClipBoardService } from '@acorex/platform/common';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject } from '@angular/core';\n\n@Component({\n template: `\n <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-1 lg: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 class=\"group-hover:!ax-text-primary-500\" href=\"tel:{{ item.value }}\">{{ item.value }}</a>\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('Email', item.value)\"\n >\n <i class=\"fa-solid fa-copy \"></i>\n </span>\n @if(hasLabel){\n <ax-badge color=\"primary\" [look]=\"'twotone'\" [text]=\"item.label\"></ax-badge>\n }\n </div>\n </div>\n </ng-container>\n </ng-template>\n </div>\n `,\n standalone: true,\n imports: [CommonModule, AXBadgeModule],\n inputs: ['context', 'value', 'multiple', 'hasLabel'],\n})\nexport class AXPEmailWidgetViewComponent extends AXPWidgetBase {\n protected clipboard = inject(AXPClipBoardService);\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n\n protected list: { value: string; label: string }[] = [];\n\n override render() {\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 ?? 'Primary',\n }\n : {\n value: item,\n label: 'Primary',\n };\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;AA4CM,MAAO,2BAA4B,SAAQ,aAAa,CAAA;AAtC9D,IAAA,WAAA,GAAA;;AAuCY,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAIxC,IAAI,CAAA,IAAA,GAAuC,EAAE,CAAC;AAmBzD,KAAA;IAjBU,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,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,IA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;;;;AAgCT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;oBACtC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;AACrD,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-layouts-email-widget-view.component-BZsLYW2w.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/email/email-widget-view.component.ts"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXPClipBoardService } from '@acorex/platform/common';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { Component, inject } from '@angular/core';\n\n@Component({\n template: `\n <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-1 lg: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 class=\"group-hover:!ax-text-primary-500\" href=\"tel:{{ item.value }}\">{{ item.value }}</a>\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('Email', item.value)\"\n >\n <i class=\"fa-solid fa-copy \"></i>\n </span>\n @if(hasLabel){\n <ax-badge color=\"primary\" [look]=\"'twotone'\" [text]=\"item.label\"></ax-badge>\n }\n </div>\n </div>\n </ng-container>\n </ng-template>\n </div>\n `,\n standalone: true,\n imports: [CommonModule, AXBadgeModule],\n inputs: ['context', 'value', 'multiple', 'hasLabel'],\n})\nexport class AXPEmailWidgetViewComponent extends AXPWidgetBase {\n protected clipboard = inject(AXPClipBoardService);\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n\n protected list: { value: string; label: string }[] = [];\n\n override render() {\n const rawValue = this.rawValue;\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 ?? 'Primary',\n }\n : {\n value: item,\n label: 'Primary',\n };\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;AA4CM,MAAO,2BAA4B,SAAQ,aAAa,CAAA;AAtC9D,IAAA,WAAA,GAAA;;AAuCY,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAIxC,IAAI,CAAA,IAAA,GAAuC,EAAE,CAAC;AAmBzD,KAAA;IAjBU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,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,E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AAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;oBACtC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;AACrD,iBAAA,CAAA;;;;;"}
@@ -1,4 +1,4 @@
1
- import * as i4 from '@acorex/components/button';
1
+ import * as i2 from '@acorex/components/button';
2
2
  import { AXButtonModule } from '@acorex/components/button';
3
3
  import * as i3$1 from '@acorex/components/decorators';
4
4
  import { AXDecoratorModule } from '@acorex/components/decorators';
@@ -9,7 +9,7 @@ import * as i3 from '@acorex/components/form';
9
9
  import { AXFormModule } from '@acorex/components/form';
10
10
  import * as i7 from '@acorex/components/label';
11
11
  import { AXLabelModule } from '@acorex/components/label';
12
- import * as i4$1 from '@acorex/components/loading';
12
+ import * as i3$2 from '@acorex/components/loading';
13
13
  import { AXLoadingModule } from '@acorex/components/loading';
14
14
  import { AXBasePageComponent } from '@acorex/components/page';
15
15
  import { AXTabsModule } from '@acorex/components/tabs';
@@ -76,12 +76,12 @@ class AXPEntityCreateViewComponent extends AXBasePageComponent {
76
76
  });
77
77
  }
78
78
  }
79
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityCreateViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
80
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPEntityCreateViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-min-h-[25vh]\">\n @if((loader.hasSections$ | async)) {\n <ol\n class=\"ax-flex ax-items-center ax-w-full ax-space-x-2 ax-text-sm ax-font-medium ax-text-center ax-text-gray-500 ax-bg-white dark:ax-text-gray-400 sm:ax-text-base ax-p-4 sm:ax-space-x-4 rtl:ax-space-x-reverse ax-sticky ax-top-0 ax-z-10\"\n [axpSticky]=\"'ax-bg-surface ax-drop-shadow-lg'\" [stickyParent]=\"'.ax-popup-body-container'\">\n @for(section of (loader.sections$ | async); track section.name;let index = $index;let last = $last;let count=\n $count) {\n <li class=\"ax-flex ax-items-center\">\n <span\n class=\"ax-flex ax-items-center ax-justify-center ax-w-5 ax-h-5 ax-me-2 ax-text-xs ax-text-white ax-bg-neutral-500 ax-rounded-full ax-shrink-0\"\n [class.!ax-bg-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-bg-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\">\n {{ index + 1 }}\n </span>\n <p class=\"ax-font-normal\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n [class.!ax-font-semibold]=\"(loader.section$ | async) == section\">\n {{ section.title }}\n </p>\n\n <i *ngIf=\"!last\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n class=\"ax-text-xs ax-text-neutral-500 fa-solid fa-chevrons-right ax-ms-2 sm:ax-ms-4 rtl:ax-rotate-180\"></i>\n </li>\n }\n </ol>\n }\n\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n @for(section of (loader.section$ | async)?.sections; track section.name;) {\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n @if(((loader.section$ | async)?.sections?.length ?? 0) > 1) {\n <div class=\"ax-pb-4\">\n <span class=\"ax-font-bold ax-text-2xl\">{{ section.title }}</span>\n @if(section.description) {\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description }}</p>\n }\n </div>\n }\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n @for(name of section.properties; track name) {\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <ax-form-field class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col\">\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"loader.isRequired(name)\">{{ prop.title\n }}</ax-label>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"loader.data\"></axp-widget-renderer>\n </ax-form-field>\n </ng-container>\n }\n </div>\n </div>\n }\n </ax-form>\n <ax-footer>\n <ax-prefix> </ax-prefix>\n <ax-suffix>\n @if((loader.hasSections$| async) && !(loader.isFirst$| async)) {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Back\" (onClick)=\"handleBackClick()\"> </ax-button>\n } @else {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\n } @if((loader.isLast$ | async)) {\n <ax-dropdown-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save\" look=\"solid\"\n (onClick)=\"handleSaveClick(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n <ax-button-item-list>\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n\n } @else {\n <ax-button look=\"solid\" color=\"primary\" text=\"Continue\" (onClick)=\"handleNextClick(form)\"> </ax-button>\n }\n </ax-suffix>\n </ax-footer>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field" }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXPSchemaModule }, { kind: "component", type: i1$1.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["context", "prop", "mode", "schema"] }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i7.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i14.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "directive", type:
79
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreateViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
80
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPEntityCreateViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-min-h-[25vh]\">\n @if((loader.hasSections$ | async)) {\n <ol\n class=\"ax-flex ax-items-center ax-w-full ax-space-x-2 ax-text-sm ax-font-medium ax-text-center ax-text-gray-500 ax-bg-white dark:ax-text-gray-400 sm:ax-text-base ax-p-4 sm:ax-space-x-4 rtl:ax-space-x-reverse ax-sticky ax-top-0 ax-z-10\"\n [axpSticky]=\"'ax-bg-surface ax-drop-shadow-lg'\" [stickyParent]=\"'.ax-popup-body-container'\">\n @for(section of (loader.sections$ | async); track section.name;let index = $index;let last = $last;let count=\n $count) {\n <li class=\"ax-flex ax-items-center\">\n <span\n class=\"ax-flex ax-items-center ax-justify-center ax-w-5 ax-h-5 ax-me-2 ax-text-xs ax-text-white ax-bg-neutral-500 ax-rounded-full ax-shrink-0\"\n [class.!ax-bg-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-bg-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\">\n {{ index + 1 }}\n </span>\n <p class=\"ax-font-normal\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n [class.!ax-font-semibold]=\"(loader.section$ | async) == section\">\n {{ section.title }}\n </p>\n\n <i *ngIf=\"!last\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n class=\"ax-text-xs ax-text-neutral-500 fa-solid fa-chevrons-right ax-ms-2 sm:ax-ms-4 rtl:ax-rotate-180\"></i>\n </li>\n }\n </ol>\n }\n\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n @for(section of (loader.section$ | async)?.sections; track section.name;) {\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n @if(((loader.section$ | async)?.sections?.length ?? 0) > 1) {\n <div class=\"ax-pb-4\">\n <span class=\"ax-font-bold ax-text-2xl\">{{ section.title }}</span>\n @if(section.description) {\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description }}</p>\n }\n </div>\n }\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n @for(name of section.properties; track name) {\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <ax-form-field class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col\">\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"loader.isRequired(name)\">{{ prop.title\n }}</ax-label>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"loader.data\"></axp-widget-renderer>\n </ax-form-field>\n </ng-container>\n }\n </div>\n </div>\n }\n </ax-form>\n <ax-footer>\n <ax-prefix> </ax-prefix>\n <ax-suffix>\n @if((loader.hasSections$| async) && !(loader.isFirst$| async)) {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Back\" (onClick)=\"handleBackClick()\"> </ax-button>\n } @else {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\n } @if((loader.isLast$ | async)) {\n <ax-dropdown-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save\" look=\"solid\"\n (onClick)=\"handleSaveClick(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n <ax-button-item-list>\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n\n } @else {\n <ax-button look=\"solid\" color=\"primary\" text=\"Continue\" (onClick)=\"handleNextClick(form)\"> </ax-button>\n }\n </ax-suffix>\n </ax-footer>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3$2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXPSchemaModule }, { kind: "component", type: i1$1.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["context", "prop", "mode", "schema"] }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i7.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i14.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "directive", type:
81
81
  //
82
82
  AXPStickyDirective, selector: "[axpSticky]", inputs: ["axpSticky", "stickyParent", "stickyTarget"], outputs: ["isStickyChange"], exportAs: ["axpSticky"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityCreateViewComponent, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityCreateViewComponent, decorators: [{
85
85
  type: Component,
86
86
  args: [{ imports: [
87
87
  CommonModule,
@@ -105,4 +105,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
105
105
  }] });
106
106
 
107
107
  export { AXPEntityCreateViewComponent };
108
- //# sourceMappingURL=acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs.map
108
+ //# sourceMappingURL=acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs","sources":["../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-create-view/entity-create-view.component.ts","../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-create-view/entity-create-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPSchemaModule } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPEntityCreateViewLoader } from './entity-create-view.config';\n\nimport { AXValidationModule } from '@acorex/core/validation';\n\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\nimport { AXPEntityConfig } from '../../../shared';\n\n@Component({\n templateUrl: './entity-create-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXPSchemaModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownModule,\n AXDropdownButtonModule,\n //\n AXPStickyDirective,\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityCreateViewComponent extends AXBasePageComponent {\n protected loader!: AXPEntityCreateViewLoader;\n protected entity!: AXPEntityConfig;\n protected workflow = inject(AXPWorkflowService);\n protected submitLoading: WritableSignal<boolean> = signal(false);\n\n protected handleCloseClick() {\n this.close();\n }\n\n protected async handleBackClick() {\n await this.loader.back();\n }\n\n protected async handleNextClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n await this.loader.next();\n }\n }\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n if (this.entity.commands?.create) {\n this.submitLoading.set(true);\n const record = await this.entity.commands.create(this.loader.data);\n if (record) {\n this.submitLoading.set(false);\n this.close({ save: true, recordId: record.id, redirect: true });\n }\n }\n }\n }\n\n protected async handleSaveAndNewClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n if (this.entity.commands?.create) {\n this.submitLoading.set(true);\n const record = await this.entity.commands.create(this.loader.data);\n if (record) {\n this.submitLoading.set(false);\n this.close({ save: true, recordId: record.id, redirect: false });\n }\n }\n this.workflow.execute('create-entity', {\n payload: {\n module: this.loader.entity.module,\n entity: this.loader.entity.name,\n },\n });\n }\n }\n}\n","<div class=\"ax-min-h-[25vh]\">\n @if((loader.hasSections$ | async)) {\n <ol\n class=\"ax-flex ax-items-center ax-w-full ax-space-x-2 ax-text-sm ax-font-medium ax-text-center ax-text-gray-500 ax-bg-white dark:ax-text-gray-400 sm:ax-text-base ax-p-4 sm:ax-space-x-4 rtl:ax-space-x-reverse ax-sticky ax-top-0 ax-z-10\"\n [axpSticky]=\"'ax-bg-surface ax-drop-shadow-lg'\" [stickyParent]=\"'.ax-popup-body-container'\">\n @for(section of (loader.sections$ | async); track section.name;let index = $index;let last = $last;let count=\n $count) {\n <li class=\"ax-flex ax-items-center\">\n <span\n class=\"ax-flex ax-items-center ax-justify-center ax-w-5 ax-h-5 ax-me-2 ax-text-xs ax-text-white ax-bg-neutral-500 ax-rounded-full ax-shrink-0\"\n [class.!ax-bg-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-bg-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\">\n {{ index + 1 }}\n </span>\n <p class=\"ax-font-normal\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n [class.!ax-font-semibold]=\"(loader.section$ | async) == section\">\n {{ section.title }}\n </p>\n\n <i *ngIf=\"!last\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n class=\"ax-text-xs ax-text-neutral-500 fa-solid fa-chevrons-right ax-ms-2 sm:ax-ms-4 rtl:ax-rotate-180\"></i>\n </li>\n }\n </ol>\n }\n\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n @for(section of (loader.section$ | async)?.sections; track section.name;) {\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n @if(((loader.section$ | async)?.sections?.length ?? 0) > 1) {\n <div class=\"ax-pb-4\">\n <span class=\"ax-font-bold ax-text-2xl\">{{ section.title }}</span>\n @if(section.description) {\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description }}</p>\n }\n </div>\n }\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n @for(name of section.properties; track name) {\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <ax-form-field class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col\">\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"loader.isRequired(name)\">{{ prop.title\n }}</ax-label>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"loader.data\"></axp-widget-renderer>\n </ax-form-field>\n </ng-container>\n }\n </div>\n </div>\n }\n </ax-form>\n <ax-footer>\n <ax-prefix> </ax-prefix>\n <ax-suffix>\n @if((loader.hasSections$| async) && !(loader.isFirst$| async)) {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Back\" (onClick)=\"handleBackClick()\"> </ax-button>\n } @else {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\n } @if((loader.isLast$ | async)) {\n <ax-dropdown-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save\" look=\"solid\"\n (onClick)=\"handleSaveClick(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n <ax-button-item-list>\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n\n } @else {\n <ax-button look=\"solid\" color=\"primary\" text=\"Continue\" (onClick)=\"handleNextClick(form)\"> </ax-button>\n }\n </ax-suffix>\n </ax-footer>\n</div>"],"names":["i2","i3","i5","i6","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;AAxBrE,IAAA,WAAA,GAAA;;AA2BY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,aAAa,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;AAkDlE,KAAA;IAhDW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,EAAE,CAAC;KACd;AAES,IAAA,MAAM,eAAe,GAAA;AAC7B,QAAA,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KAC1B;IAES,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;AACrB,YAAA,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAC1B;KACF;IAES,MAAM,eAAe,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MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA;;gBAEtB,kBAAkB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,cAAA,EAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAKT,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAxBxC,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,kBAAkB;wBAClB,aAAa;wBACb,gBAAgB;wBAChB,sBAAsB;;wBAEtB,kBAAkB;AACnB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4jIAAA,EAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-layouts-entity-create-view.component-C3TUCnB2.mjs","sources":["../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-create-view/entity-create-view.component.ts","../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-create-view/entity-create-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPSchemaModule } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPEntityCreateViewLoader } from './entity-create-view.config';\n\nimport { AXValidationModule } from '@acorex/core/validation';\n\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPWorkflowService } from '@acorex/platform/workflow';\nimport { AXPEntityConfig } from '../../../shared';\n\n@Component({\n templateUrl: './entity-create-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXPSchemaModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownModule,\n AXDropdownButtonModule,\n //\n AXPStickyDirective,\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityCreateViewComponent extends AXBasePageComponent {\n protected loader!: AXPEntityCreateViewLoader;\n protected entity!: AXPEntityConfig;\n protected workflow = inject(AXPWorkflowService);\n protected submitLoading: WritableSignal<boolean> = signal(false);\n\n protected handleCloseClick() {\n this.close();\n }\n\n protected async handleBackClick() {\n await this.loader.back();\n }\n\n protected async handleNextClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n await this.loader.next();\n }\n }\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n if (this.entity.commands?.create) {\n this.submitLoading.set(true);\n const record = await this.entity.commands.create(this.loader.data);\n if (record) {\n this.submitLoading.set(false);\n this.close({ save: true, recordId: record.id, redirect: true });\n }\n }\n }\n }\n\n protected async handleSaveAndNewClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n if (this.entity.commands?.create) {\n this.submitLoading.set(true);\n const record = await this.entity.commands.create(this.loader.data);\n if (record) {\n this.submitLoading.set(false);\n this.close({ save: true, recordId: record.id, redirect: false });\n }\n }\n this.workflow.execute('create-entity', {\n payload: {\n module: this.loader.entity.module,\n entity: this.loader.entity.name,\n },\n });\n }\n }\n}\n","<div class=\"ax-min-h-[25vh]\">\n @if((loader.hasSections$ | async)) {\n <ol\n class=\"ax-flex ax-items-center ax-w-full ax-space-x-2 ax-text-sm ax-font-medium ax-text-center ax-text-gray-500 ax-bg-white dark:ax-text-gray-400 sm:ax-text-base ax-p-4 sm:ax-space-x-4 rtl:ax-space-x-reverse ax-sticky ax-top-0 ax-z-10\"\n [axpSticky]=\"'ax-bg-surface ax-drop-shadow-lg'\" [stickyParent]=\"'.ax-popup-body-container'\">\n @for(section of (loader.sections$ | async); track section.name;let index = $index;let last = $last;let count=\n $count) {\n <li class=\"ax-flex ax-items-center\">\n <span\n class=\"ax-flex ax-items-center ax-justify-center ax-w-5 ax-h-5 ax-me-2 ax-text-xs ax-text-white ax-bg-neutral-500 ax-rounded-full ax-shrink-0\"\n [class.!ax-bg-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-bg-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\">\n {{ index + 1 }}\n </span>\n <p class=\"ax-font-normal\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n [class.!ax-font-semibold]=\"(loader.section$ | async) == section\">\n {{ section.title }}\n </p>\n\n <i *ngIf=\"!last\" [class.!ax-text-primary-500]=\"(loader.section$ | async) == section\"\n [class.!ax-text-success-500]=\"index < ((loader.currentIndex$ | async) || 0)\"\n class=\"ax-text-xs ax-text-neutral-500 fa-solid fa-chevrons-right ax-ms-2 sm:ax-ms-4 rtl:ax-rotate-180\"></i>\n </li>\n }\n </ol>\n }\n\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n @for(section of (loader.section$ | async)?.sections; track section.name;) {\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n @if(((loader.section$ | async)?.sections?.length ?? 0) > 1) {\n <div class=\"ax-pb-4\">\n <span class=\"ax-font-bold ax-text-2xl\">{{ section.title }}</span>\n @if(section.description) {\n <p class=\"ax-text-sm ax-text-gray-500\">{{ section.description }}</p>\n }\n </div>\n }\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n @for(name of section.properties; track name) {\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <ax-form-field class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col\">\n <ax-label class=\"ax-font-semibold ax-text-sm\" [required]=\"loader.isRequired(name)\">{{ prop.title\n }}</ax-label>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"loader.data\"></axp-widget-renderer>\n </ax-form-field>\n </ng-container>\n }\n </div>\n </div>\n }\n </ax-form>\n <ax-footer>\n <ax-prefix> </ax-prefix>\n <ax-suffix>\n @if((loader.hasSections$| async) && !(loader.isFirst$| async)) {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Back\" (onClick)=\"handleBackClick()\"> </ax-button>\n } @else {\n <ax-button look=\"solid\" color=\"ghost\" text=\"Cancel\" (onClick)=\"handleCloseClick()\"> </ax-button>\n } @if((loader.isLast$ | async)) {\n <ax-dropdown-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save\" look=\"solid\"\n (onClick)=\"handleSaveClick(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n <ax-button-item-list>\n <ax-button-item text=\"Save & Create New\" (onClick)=\"handleSaveAndNewClick(form)\"> </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n\n } @else {\n <ax-button look=\"solid\" color=\"primary\" text=\"Continue\" (onClick)=\"handleNextClick(form)\"> </ax-button>\n }\n </ax-suffix>\n </ax-footer>\n</div>"],"names":["i2","i3","i4","i5","i6","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;AAxBrE,IAAA,WAAA,GAAA;;AA2BY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,aAAa,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;AAkDlE,KAAA;IAhDW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,EAAE,CAAC;KACd;AAES,IAAA,MAAM,eAAe,GAAA;AAC7B,QAAA,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KAC1B;IAES,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;AACrB,YAAA,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAC1B;KACF;IAES,MAAM,eAAe,CAAC,IAAqB,EAAA;AACnD,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACzC,QAAA,IAAI,UAAU,CAAC,MAAM,EAAE;YACrB,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE;AAChC,gBAAA,IAAI,CAAC,aAAa,CAAC,GA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AAA,EAAA,WAAA,EAAA,IAAA;;gBAEtB,kBAAkB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,cAAA,EAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAKT,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAxBxC,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,kBAAkB;wBAClB,aAAa;wBACb,gBAAgB;wBAChB,sBAAsB;;wBAEtB,kBAAkB;AACnB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4jIAAA,EAAA,CAAA;;;;;"}
@@ -1,4 +1,4 @@
1
- import * as i4 from '@acorex/components/button';
1
+ import * as i2 from '@acorex/components/button';
2
2
  import { AXButtonModule } from '@acorex/components/button';
3
3
  import * as i3$1 from '@acorex/components/decorators';
4
4
  import { AXDecoratorModule } from '@acorex/components/decorators';
@@ -8,7 +8,7 @@ import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
8
8
  import * as i3 from '@acorex/components/form';
9
9
  import { AXFormModule } from '@acorex/components/form';
10
10
  import { AXLabelModule } from '@acorex/components/label';
11
- import * as i4$1 from '@acorex/components/loading';
11
+ import * as i3$2 from '@acorex/components/loading';
12
12
  import { AXLoadingModule } from '@acorex/components/loading';
13
13
  import { AXBasePageComponent } from '@acorex/components/page';
14
14
  import { AXTabsModule } from '@acorex/components/tabs';
@@ -60,10 +60,10 @@ class AXPEntityModifyViewComponent extends AXBasePageComponent {
60
60
  this.editForm.context = null;
61
61
  this.editForm.previousContext = null;
62
62
  }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityModifyViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: AXPEntityModifyViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-min-h-[25vh]\">\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n <ax-form-field class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n <ng-container *ngFor=\"let name of properties\">\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <div *ngIf=\"prop.canEdit\" class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col ax-gap-1\">\n <span class=\"ax-font-semibold ax-text-sm\">{{ prop.title }}</span>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"editForm.context\"></axp-widget-renderer>\n </div>\n </ng-container>\n </ng-container>\n </ax-form-field>\n </div>\n </ax-form>\n <ax-footer>\n <ax-suffix>\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\n <ax-button-item-list>\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n <ax-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save Changes\" (onClick)=\"handleSectionSubmit(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field" }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4$1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXPSchemaModule }, { kind: "component", type: i1$1.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["context", "prop", "mode", "schema"] }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i14.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifyViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPEntityModifyViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-min-h-[25vh]\">\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n <ax-form-field class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n <ng-container *ngFor=\"let name of properties\">\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <div *ngIf=\"prop.canEdit\" class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col ax-gap-1\">\n <span class=\"ax-font-semibold ax-text-sm\">{{ prop.title }}</span>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"editForm.context\"></axp-widget-renderer>\n </div>\n </ng-container>\n </ng-container>\n </ax-form-field>\n </div>\n </ax-form>\n <ax-footer>\n <ax-suffix>\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\n <ax-button-item-list>\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n <ax-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save Changes\" (onClick)=\"handleSectionSubmit(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i2.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3$2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXPSchemaModule }, { kind: "component", type: i1$1.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["context", "prop", "mode", "schema"] }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i14.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
65
65
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPEntityModifyViewComponent, decorators: [{
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPEntityModifyViewComponent, decorators: [{
67
67
  type: Component,
68
68
  args: [{ imports: [
69
69
  CommonModule,
@@ -86,4 +86,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
86
86
  }] });
87
87
 
88
88
  export { AXPEntityModifyViewComponent };
89
- //# sourceMappingURL=acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs.map
89
+ //# sourceMappingURL=acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs","sources":["../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.ts","../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPSchemaModule } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { cloneDeep } from 'lodash-es';\nimport { AXPEntityConfig } from '../../../shared';\nimport { AXPEntityModifyViewLoader } from './entity-modify-view.config';\n\n@Component({\n templateUrl: './entity-modify-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXPSchemaModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownButtonModule,\n //\n AXPStickyDirective,\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityModifyViewComponent extends AXBasePageComponent {\n protected loader!: AXPEntityModifyViewLoader;\n context: any;\n entity!: AXPEntityConfig;\n properties: string[] = [];\n submitLoading: WritableSignal<boolean> = signal(false);\n\n protected editForm: {\n context?: any;\n previousContext?: any;\n } = {};\n\n protected handleCloseClick() {\n this.close({ result: false });\n }\n\n protected override ngOnInit(): void {\n this.editForm.context = cloneDeep(this.context);\n this.editForm.previousContext = cloneDeep(this.context);\n }\n\n protected async handleSectionDiscard(form: AXFormComponent) {\n this.close({ result: false });\n }\n\n protected async handleSectionReset(form: AXFormComponent) {\n this.editForm.context = cloneDeep(this.editForm.previousContext);\n }\n\n protected async handleSectionSubmit(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n if (this.entity.commands?.update) {\n this.submitLoading.set(true);\n await this.entity.commands.update(this.editForm.context.id, this.editForm.context);\n this.submitLoading.set(false);\n this.close({ result: true, context: this.editForm.context });\n }\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.editForm.context = null;\n this.editForm.previousContext = null;\n }\n\n // override onClosing(e: AXComponentClosing): void | Promise<void> {\n // if (e.data?.save || isEmpty(this.loader.data))\n // e.cancel = false;\n // else {\n // e.cancel = true;\n // }\n // }\n}\n","<div class=\"ax-min-h-[25vh]\">\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n <ax-form-field class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n <ng-container *ngFor=\"let name of properties\">\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <div *ngIf=\"prop.canEdit\" class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col ax-gap-1\">\n <span class=\"ax-font-semibold ax-text-sm\">{{ prop.title }}</span>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"editForm.context\"></axp-widget-renderer>\n </div>\n </ng-container>\n </ng-container>\n </ax-form-field>\n </div>\n </ax-form>\n <ax-footer>\n <ax-suffix>\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\n <ax-button-item-list>\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n <ax-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save Changes\" (onClick)=\"handleSectionSubmit(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>"],"names":["i2","i3","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2CM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;AAvBrE,IAAA,WAAA,GAAA;;QA2BE,IAAU,CAAA,UAAA,GAAa,EAAE,CAAC;AAC1B,QAAA,IAAA,CAAA,aAAa,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;QAE7C,IAAQ,CAAA,QAAA,GAGd,EAAE,CAAC;AA4CR,KAAA;IA1CW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;KAC/B;IAEkB,QAAQ,GAAA;QACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ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sBAAsB;;wBAEtB,kBAAkB;AACnB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,k0DAAA,EAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-layouts-entity-modify-view.component-BnSfJlc5.mjs","sources":["../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.ts","../../../../libs/platform/layouts/src/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXValidationModule } from '@acorex/core/validation';\nimport { AXPStickyDirective } from '@acorex/platform/common';\nimport { AXPSchemaModule } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { cloneDeep } from 'lodash-es';\nimport { AXPEntityConfig } from '../../../shared';\nimport { AXPEntityModifyViewLoader } from './entity-modify-view.config';\n\n@Component({\n templateUrl: './entity-modify-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXPSchemaModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownButtonModule,\n //\n AXPStickyDirective,\n ],\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPEntityModifyViewComponent extends AXBasePageComponent {\n protected loader!: AXPEntityModifyViewLoader;\n context: any;\n entity!: AXPEntityConfig;\n properties: string[] = [];\n submitLoading: WritableSignal<boolean> = signal(false);\n\n protected editForm: {\n context?: any;\n previousContext?: any;\n } = {};\n\n protected handleCloseClick() {\n this.close({ result: false });\n }\n\n protected override ngOnInit(): void {\n this.editForm.context = cloneDeep(this.context);\n this.editForm.previousContext = cloneDeep(this.context);\n }\n\n protected async handleSectionDiscard(form: AXFormComponent) {\n this.close({ result: false });\n }\n\n protected async handleSectionReset(form: AXFormComponent) {\n this.editForm.context = cloneDeep(this.editForm.previousContext);\n }\n\n protected async handleSectionSubmit(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n if (this.entity.commands?.update) {\n this.submitLoading.set(true);\n await this.entity.commands.update(this.editForm.context.id, this.editForm.context);\n this.submitLoading.set(false);\n this.close({ result: true, context: this.editForm.context });\n }\n }\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.editForm.context = null;\n this.editForm.previousContext = null;\n }\n\n // override onClosing(e: AXComponentClosing): void | Promise<void> {\n // if (e.data?.save || isEmpty(this.loader.data))\n // e.cancel = false;\n // else {\n // e.cancel = true;\n // }\n // }\n}\n","<div class=\"ax-min-h-[25vh]\">\n <ax-form class=\"ax-flex ax-flex-col ax-gap-6 ax-p-4\" #form [messageStyle]=\"'bottom'\" [updateOn]=\"'blur'\">\n <div class=\"ax-flex ax-flex-col ax-pb-4\">\n <ax-form-field class=\"ax-grid ax-grid-cols-12 ax-gap-4 ax-py-2 first:ax-pt-0 last:ax-pb-0\">\n <ng-container *ngFor=\"let name of properties\">\n <ng-container *ngIf=\"loader.getProp(name) as prop\">\n <!-- lg:ax-col-span-6 -->\n <!-- lg:ax-col-start-1 -->\n <div *ngIf=\"prop.canEdit\" class=\"ax-col-span-12 ax-col-start-1 lg:ax-col-span-{{\n prop.layout?.positions?.default?.span || 12\n }} lg:ax-col-start-{{ prop.layout?.positions?.default?.start || 1 }} ax-flex ax-flex-col ax-gap-1\">\n <span class=\"ax-font-semibold ax-text-sm\">{{ prop.title }}</span>\n <axp-widget-renderer [schema]=\"prop.schema\" [prop]=\"prop\" [mode]=\"'edit'\"\n [context]=\"editForm.context\"></axp-widget-renderer>\n </div>\n </ng-container>\n </ng-container>\n </ax-form-field>\n </div>\n </ax-form>\n <ax-footer>\n <ax-suffix>\n <ax-dropdown-button text=\"Discard\" (onClick)=\"handleSectionDiscard(form)\">\n <ax-button-item-list>\n <ax-button-item text=\"Reset\" (onClick)=\"handleSectionReset(form)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-rotate-left fa-flip-horizontal\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n <ax-button [disabled]=\"submitLoading()\" color=\"primary\" text=\"Save Changes\" (onClick)=\"handleSectionSubmit(form)\">\n <ax-loading *ngIf=\"submitLoading()\"></ax-loading>\n </ax-button>\n </ax-suffix>\n </ax-footer>\n</div>"],"names":["i2","i3","i4","i5","i6","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2CM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;AAvBrE,IAAA,WAAA,GAAA;;QA2BE,IAAU,CAAA,UAAA,GAAa,EAAE,CAAC;AAC1B,QAAA,IAAA,CAAA,aAAa,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;QAE7C,IAAQ,CAAA,QAAA,GAGd,EAAE,CAAC;AA4CR,KAAA;IA1CW,gBAAgB,GAAA;QACxB,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;KAC/B;IAEkB,QAAQ,GAAA;QACzB,IAAI,CAAC,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,QAAQ,CAAC,eAAe,GAAG,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC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AsB;;wBAEtB,kBAAkB;AACnB,qBAAA,EAAA,UAAA,EACW,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,k0DAAA,EAAA,CAAA;;;;;"}
@@ -10,21 +10,21 @@ class AXPFileWidgetColumnComponent extends AXPWidgetBase {
10
10
  this.hasFile = false;
11
11
  }
12
12
  render() {
13
- this.hasFile = !isEmpty(this.context[this.prop.name]);
13
+ this.hasFile = !isEmpty(this.rawValue);
14
14
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPFileWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: AXPFileWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", multiple: "multiple", width: "width" }, usesInheritance: true, ngImport: i0, template: ` <i class="fa-regular fa-paperclip-vertical fa-xl ax-cursor-pointer"></i> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPFileWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", multiple: "multiple", width: "width", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: ` <i class="fa-regular fa-paperclip-vertical fa-xl ax-cursor-pointer"></i> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPFileWidgetColumnComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetColumnComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{
21
21
  template: ` <i class="fa-regular fa-paperclip-vertical fa-xl ax-cursor-pointer"></i> `,
22
22
  standalone: true,
23
23
  changeDetection: ChangeDetectionStrategy.OnPush,
24
24
  imports: [CommonModule],
25
- inputs: ['context', 'multiple', 'width'],
25
+ inputs: ['context', 'multiple', 'width', 'allowResizing'],
26
26
  }]
27
27
  }] });
28
28
 
29
29
  export { AXPFileWidgetColumnComponent };
30
- //# sourceMappingURL=acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs.map
30
+ //# sourceMappingURL=acorex-platform-layouts-file-widget-column.component-f54Z9E5C.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-layouts-file-widget-column.component-f54Z9E5C.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', 'allowResizing'],\n})\nexport class AXPFileWidgetColumnComponent extends AXPWidgetBase {\n protected hasFile: boolean = false;\n\n override render() {\n this.hasFile = !isEmpty(this.rawValue);\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;QACb,IAAI,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACxC;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,aAAA,EAAA,eAAA,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;oBACvB,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,CAAC;AAC1D,iBAAA,CAAA;;;;;"}
@@ -1,4 +1,4 @@
1
- import * as i4 from '@acorex/components/button';
1
+ import * as i2 from '@acorex/components/button';
2
2
  import { AXButtonModule } from '@acorex/components/button';
3
3
  import * as i3 from '@acorex/components/decorators';
4
4
  import { AXDecoratorModule } from '@acorex/components/decorators';
@@ -71,8 +71,8 @@ class AXPFileWidgetEditComponent extends AXPWidgetEditBase {
71
71
  ];
72
72
  }
73
73
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPFileWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
75
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPFileWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { multiple: "multiple" }, usesInheritance: true, ngImport: i0, template: `
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
75
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.2", type: AXPFileWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { multiple: "multiple" }, usesInheritance: true, ngImport: i0, template: `
76
76
  <div class="ax-grid ax-grid-cols-12 ax-gap-4">
77
77
  <ng-container *ngIf="multiple">
78
78
  @for(item of value;track item?.value) {
@@ -129,9 +129,9 @@ class AXPFileWidgetEditComponent extends AXPWidgetEditBase {
129
129
  </ax-prefix>
130
130
  </ax-button>
131
131
  </div>
132
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXSelectBoxModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
132
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXSelectBoxModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
133
133
  }
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPFileWidgetEditComponent, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetEditComponent, decorators: [{
135
135
  type: Component,
136
136
  args: [{
137
137
  template: `
@@ -200,4 +200,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
200
200
  }] });
201
201
 
202
202
  export { AXPFileWidgetEditComponent };
203
- //# sourceMappingURL=acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs.map
203
+ //# sourceMappingURL=acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/file/file-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 <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: value[0] }\" ]></ng-template>\n </ng-container>\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-11 lg:ax-col-end-12\"\n >\n <div class=\"ax-flex ax-items-center ax-justify-between 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 <ax-button\n *ngIf=\"multiple\"\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 ax-justify-self-end ax-items ax-self-center\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n </ng-template>\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 AXPFileWidgetEditComponent extends AXPWidgetEditBase<\n { value?: string | null; label?: string | undefined }[]\n> {\n protected multiple!: boolean;\n\n protected handleAddItem() {}\n\n protected handleRemoveItem(item: any) {\n this.value = this.value.filter((c) => c != item);\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 ngOnInit(): void {\n if (!this.value || this.value?.length == 0) {\n this.value = [\n {\n label: 'Mobile',\n value: '',\n },\n ];\n }\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;AAyEM,MAAO,0BAA2B,SAAQ,iBAE/C,CAAA;AAGW,IAAA,aAAa,MAAK;AAElB,IAAA,gBAAgB,CAAC,IAAS,EAAA;AAClC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAA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EAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,gJAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG/F,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAhEtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDT,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
+ {"version":3,"file":"acorex-platform-layouts-file-widget-edit.component-CW9ESi46.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/file/file-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 <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: value[0] }\" ]></ng-template>\n </ng-container>\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-11 lg:ax-col-end-12\"\n >\n <div class=\"ax-flex ax-items-center ax-justify-between 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 <ax-button\n *ngIf=\"multiple\"\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 ax-justify-self-end ax-items ax-self-center\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n </ng-template>\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 AXPFileWidgetEditComponent extends AXPWidgetEditBase<\n { value?: string | null; label?: string | undefined }[]\n> {\n protected multiple!: boolean;\n\n protected handleAddItem() {}\n\n protected handleRemoveItem(item: any) {\n this.value = this.value.filter((c) => c != item);\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 ngOnInit(): void {\n if (!this.value || this.value?.length == 0) {\n this.value = [\n {\n label: 'Mobile',\n value: '',\n },\n ];\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAyEM,MAAO,0BAA2B,SAAQ,iBAE/C,CAAA;AAGW,IAAA,aAAa,MAAK;AAElB,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;AAES,IAAA,WAAW,CAAC,QAAgB,EAAA;AACpC,QAAA,MAAM,SAAS,GAAG,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,CAAC;QAE7D,QAAQ,SAAS;AACf,YAAA,KAAK,KAAK;gBACR,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,iCAAiC,EAAE,CAAC;AAE3E,YAAA,KAAK,KAAK;gBACR,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC;AAEzE,YAAA,KAAK,KAAK,CAAC;AACX,YAAA,KAAK,MAAM;gBACT,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,iCAAiC,EAAE,CAAC;AAE5E,YAAA,KAAK,KAAK,CAAC;AACX,YAAA,KAAK,MAAM;gBACT,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;AAE/E,YAAA,KAAK,KAAK,CAAC;AACX,YAAA,KAAK,MAAM;gBACT,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAEtF,YAAA,KAAK,KAAK,CAA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 from '@angular/forms';
7
7
  import { FormsModule } from '@angular/forms';
8
8
 
9
9
  class AXPFileWidgetFilterComponent extends AXPWidgetFilterBase {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPFileWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: AXPFileWidgetFilterComponent, isStandalone: true, selector: "ng-component", inputs: { value: "value", operator: "operator" }, outputs: { valueChange: "valueChange", operatorChange: "operatorChange" }, usesInheritance: true, ngImport: i0, template: `
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: AXPFileWidgetFilterComponent, isStandalone: true, selector: "ng-component", inputs: { value: "value", operator: "operator" }, outputs: { valueChange: "valueChange", operatorChange: "operatorChange" }, usesInheritance: true, ngImport: i0, template: `
12
12
  <ax-select-box [(ngModel)]="value" [placeholder]="'Has file'" [dataSource]="['Yes', 'No']"></ax-select-box>
13
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i6.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "dataSource", "itemTemplate", "emptyTemplate", "loadingTemplate"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i6.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPFileWidgetFilterComponent, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetFilterComponent, decorators: [{
16
16
  type: Component,
17
17
  args: [{
18
18
  template: `
@@ -27,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
27
27
  }] });
28
28
 
29
29
  export { AXPFileWidgetFilterComponent };
30
- //# sourceMappingURL=acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs.map
30
+ //# sourceMappingURL=acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/file/file-widget-filter.component.ts"],"sourcesContent":["import { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXPWidgetFilterBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n@Component({\n template: `\n <ax-select-box [(ngModel)]=\"value\" [placeholder]=\"'Has file'\" [dataSource]=\"['Yes', 'No']\"></ax-select-box>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXSelectBoxModule, FormsModule],\n outputs: ['valueChange', 'operatorChange'],\n inputs: ['value', 'operator'],\n})\nexport class AXPFileWidgetFilterComponent extends AXPWidgetFilterBase { }\n"],"names":[],"mappings":";;;;;;;;AAcM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;8GAAxD,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,EAT7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;GAET,EAGS,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,idAAE,WAAW,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAI7B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAVxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;AAET,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,WAAW,CAAC;AACzC,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;AAC1C,oBAAA,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;AAC9B,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-layouts-file-widget-filter.component-K3mC1xLX.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/file/file-widget-filter.component.ts"],"sourcesContent":["import { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXPWidgetFilterBase } from '@acorex/platform/schema';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n@Component({\n template: `\n <ax-select-box [(ngModel)]=\"value\" [placeholder]=\"'Has file'\" [dataSource]=\"['Yes', 'No']\"></ax-select-box>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXSelectBoxModule, FormsModule],\n outputs: ['valueChange', 'operatorChange'],\n inputs: ['value', 'operator'],\n})\nexport class AXPFileWidgetFilterComponent extends A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