@acorex/platform 18.0.2 → 18.0.4

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 (232) hide show
  1. package/common/lib/app/application.types.d.ts +43 -26
  2. package/common/lib/common.module.d.ts +6 -5
  3. package/common/lib/data/data-provider.types.d.ts +1 -1
  4. package/common/lib/data/dexie-storage.service.d.ts +15 -0
  5. package/common/lib/data/entity-data-provider.d.ts +14 -0
  6. package/common/lib/data/index.d.ts +3 -0
  7. package/common/lib/data/storage-service.d.ts +22 -0
  8. package/common/lib/schema/entity/entity.class.d.ts +3 -0
  9. package/common/lib/utils/data-generator.d.ts +2 -0
  10. package/esm2022/common/lib/app/application.types.mjs +1 -1
  11. package/esm2022/common/lib/common.module.mjs +19 -2
  12. package/esm2022/common/lib/data/data-provider.types.mjs +1 -1
  13. package/esm2022/common/lib/data/dexie-storage.service.mjs +36 -0
  14. package/esm2022/common/lib/data/entity-data-provider.mjs +26 -0
  15. package/esm2022/common/lib/data/index.mjs +4 -1
  16. package/esm2022/common/lib/data/storage-service.mjs +5 -0
  17. package/esm2022/common/lib/schema/entity/entity-registery.service.mjs +2 -2
  18. package/esm2022/common/lib/schema/entity/entity.class.mjs +1 -1
  19. package/esm2022/common/lib/utils/data-generator.mjs +22 -1
  20. package/esm2022/common/lib/workflows/common.workflow.mjs +3 -3
  21. package/esm2022/layout/builder/lib/builder/builder.service.mjs +7 -2
  22. package/esm2022/layout/builder/lib/builder/widget.types.mjs +5 -1
  23. package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +9 -8
  24. package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +34 -21
  25. package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +23 -15
  26. package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +46 -49
  27. package/esm2022/layout/entity/lib/entity-master-update.viewmodel.mjs +9 -7
  28. package/esm2022/layout/entity/lib/entity-registery.service.mjs +2 -2
  29. package/esm2022/layout/entity/lib/entity.module.mjs +13 -4
  30. package/esm2022/layout/entity/lib/entity.viewmodel.mjs +7 -6
  31. package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.mjs +127 -39
  32. package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.mjs +83 -37
  33. package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +34 -23
  34. package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +17 -20
  35. package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +17 -15
  36. package/esm2022/layout/entity/lib/workflows/modify-section.workflow.mjs +11 -23
  37. package/esm2022/layout/entity/lib/workflows/show-details.workflow.mjs +3 -3
  38. package/esm2022/layout/entity/lib/workflows/show-list.workflow.mjs +35 -0
  39. package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +3 -3
  40. package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +2 -2
  41. package/esm2022/layouts/lib/layout.module.mjs +3 -3
  42. package/esm2022/themes/default/lib/default.module.mjs +3 -3
  43. package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +2 -2
  44. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +2 -2
  45. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/{entity-list-view.component.mjs → entity-master-list-view.component.mjs} +8 -2
  46. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.mjs +2 -1
  47. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +1 -1
  48. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-column.component.mjs +2 -2
  49. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.mjs +21 -12
  50. package/esm2022/widgets/lib/editors/date-time-box-widget/date-time-box-widget-view.component.mjs +3 -2
  51. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-column.component.mjs +2 -2
  52. package/esm2022/widgets/lib/editors/number-box-widget/number-box-widget-view.component.mjs +2 -2
  53. package/esm2022/workflow/lib/actions/start-workflow.action.mjs +28 -0
  54. package/esm2022/workflow/lib/workflow.module.mjs +7 -2
  55. package/esm2022/workflow/lib/workflow.service.mjs +53 -6
  56. package/esm2022/workflow/lib/workflow.types.mjs +12 -6
  57. package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-DAmNXjDm.mjs → acorex-platform-common-avatar-widget-edit.component-B-of5ssU.mjs} +3 -2
  58. package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-DAmNXjDm.mjs.map → acorex-platform-common-avatar-widget-edit.component-B-of5ssU.mjs.map} +1 -1
  59. package/fesm2022/{acorex-platform-common-avatar-widget-view.component-BlA_cFkP.mjs → acorex-platform-common-avatar-widget-view.component-CJvrSkTv.mjs} +4 -3
  60. package/fesm2022/acorex-platform-common-avatar-widget-view.component-CJvrSkTv.mjs.map +1 -0
  61. package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-CEqibiML.mjs → acorex-platform-common-boolean-widget-filter.component-BTcOjuUm.mjs} +4 -3
  62. package/fesm2022/acorex-platform-common-boolean-widget-filter.component-BTcOjuUm.mjs.map +1 -0
  63. package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-BiUHPDqV.mjs → acorex-platform-common-checkbox-widget-column.component-X9d1iY_F.mjs} +4 -3
  64. package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-BiUHPDqV.mjs.map → acorex-platform-common-checkbox-widget-column.component-X9d1iY_F.mjs.map} +1 -1
  65. package/fesm2022/{acorex-platform-common-checkbox-widget-edit.component-BVG9_XXh.mjs → acorex-platform-common-checkbox-widget-edit.component-_jtT03Vn.mjs} +4 -3
  66. package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-_jtT03Vn.mjs.map +1 -0
  67. package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-CfGkMcDi.mjs → acorex-platform-common-checkbox-widget-view.component-nYmtb8bK.mjs} +4 -3
  68. package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-CfGkMcDi.mjs.map → acorex-platform-common-checkbox-widget-view.component-nYmtb8bK.mjs.map} +1 -1
  69. package/fesm2022/{acorex-platform-common-dateTime-widget-column.component-BlXTU887.mjs → acorex-platform-common-dateTime-widget-column.component-5ljYmtHI.mjs} +4 -3
  70. package/fesm2022/acorex-platform-common-dateTime-widget-column.component-5ljYmtHI.mjs.map +1 -0
  71. package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-B0s6FN-g.mjs → acorex-platform-common-dateTime-widget-edit.component-D8FSiqAo.mjs} +4 -3
  72. package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-B0s6FN-g.mjs.map → acorex-platform-common-dateTime-widget-edit.component-D8FSiqAo.mjs.map} +1 -1
  73. package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-B7KBCsUt.mjs → acorex-platform-common-dateTime-widget-filter.component-Df0DuDtw.mjs} +4 -3
  74. package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-B7KBCsUt.mjs.map → acorex-platform-common-dateTime-widget-filter.component-Df0DuDtw.mjs.map} +1 -1
  75. package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-Dy7pAkGG.mjs → acorex-platform-common-dateTime-widget-view.component-CjVjQkPh.mjs} +4 -3
  76. package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-Dy7pAkGG.mjs.map → acorex-platform-common-dateTime-widget-view.component-CjVjQkPh.mjs.map} +1 -1
  77. package/fesm2022/{acorex-platform-common-email-widget-column.component-D_UNn2dW.mjs → acorex-platform-common-email-widget-column.component-BgNdL62k.mjs} +4 -3
  78. package/fesm2022/acorex-platform-common-email-widget-column.component-BgNdL62k.mjs.map +1 -0
  79. package/fesm2022/{acorex-platform-common-email-widget-edit.component-DWT24mCM.mjs → acorex-platform-common-email-widget-edit.component-CgHPGccx.mjs} +4 -3
  80. package/fesm2022/{acorex-platform-common-email-widget-edit.component-DWT24mCM.mjs.map → acorex-platform-common-email-widget-edit.component-CgHPGccx.mjs.map} +1 -1
  81. package/fesm2022/{acorex-platform-common-email-widget-view.component-B6puyycL.mjs → acorex-platform-common-email-widget-view.component-C2aQ14k-.mjs} +4 -3
  82. package/fesm2022/{acorex-platform-common-email-widget-view.component-B6puyycL.mjs.map → acorex-platform-common-email-widget-view.component-C2aQ14k-.mjs.map} +1 -1
  83. package/fesm2022/{acorex-platform-common-file-widget-column.component-C1faGR4K.mjs → acorex-platform-common-file-widget-column.component-CwFzLLHt.mjs} +4 -3
  84. package/fesm2022/acorex-platform-common-file-widget-column.component-CwFzLLHt.mjs.map +1 -0
  85. package/fesm2022/{acorex-platform-common-file-widget-edit.component-CTvS9ls8.mjs → acorex-platform-common-file-widget-edit.component-DxoQR4CU.mjs} +4 -3
  86. package/fesm2022/{acorex-platform-common-file-widget-edit.component-CTvS9ls8.mjs.map → acorex-platform-common-file-widget-edit.component-DxoQR4CU.mjs.map} +1 -1
  87. package/fesm2022/{acorex-platform-common-file-widget-filter.component-D4AMg5M0.mjs → acorex-platform-common-file-widget-filter.component-BvG0iaKU.mjs} +4 -3
  88. package/fesm2022/acorex-platform-common-file-widget-filter.component-BvG0iaKU.mjs.map +1 -0
  89. package/fesm2022/{acorex-platform-common-file-widget-view.component-CHI4VCvt.mjs → acorex-platform-common-file-widget-view.component-BC9l3YrO.mjs} +4 -3
  90. package/fesm2022/{acorex-platform-common-file-widget-view.component-CHI4VCvt.mjs.map → acorex-platform-common-file-widget-view.component-BC9l3YrO.mjs.map} +1 -1
  91. package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-CAOctYzV.mjs → acorex-platform-common-gallery-widget-edit.component-BihOIJ9T.mjs} +4 -3
  92. package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-CAOctYzV.mjs.map → acorex-platform-common-gallery-widget-edit.component-BihOIJ9T.mjs.map} +1 -1
  93. package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-lgaYDZeD.mjs → acorex-platform-common-gallery-widget-filter.component-DS1PCIJp.mjs} +4 -3
  94. package/fesm2022/acorex-platform-common-gallery-widget-filter.component-DS1PCIJp.mjs.map +1 -0
  95. package/fesm2022/{acorex-platform-common-gallery-widget-view.component-Ci50jeO5.mjs → acorex-platform-common-gallery-widget-view.component-CnQONVdg.mjs} +4 -3
  96. package/fesm2022/{acorex-platform-common-gallery-widget-view.component-Ci50jeO5.mjs.map → acorex-platform-common-gallery-widget-view.component-CnQONVdg.mjs.map} +1 -1
  97. package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-DFKG-kum.mjs → acorex-platform-common-largetext-widget-edit.component-BCtGkz1a.mjs} +4 -3
  98. package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BCtGkz1a.mjs.map +1 -0
  99. package/fesm2022/{acorex-platform-common-lookup-widget-column.component-CFzCGcqA.mjs → acorex-platform-common-lookup-widget-column.component-Cl-vO5XW.mjs} +4 -3
  100. package/fesm2022/acorex-platform-common-lookup-widget-column.component-Cl-vO5XW.mjs.map +1 -0
  101. package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-CYTSeEOq.mjs → acorex-platform-common-lookup-widget-edit.component-D9UhViUG.mjs} +4 -3
  102. package/fesm2022/acorex-platform-common-lookup-widget-edit.component-D9UhViUG.mjs.map +1 -0
  103. package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-BkxT9_Hh.mjs → acorex-platform-common-lookup-widget-filter.component-RWweQQaO.mjs} +4 -3
  104. package/fesm2022/acorex-platform-common-lookup-widget-filter.component-RWweQQaO.mjs.map +1 -0
  105. package/fesm2022/{acorex-platform-common-lookup-widget-view.component-5YeixMp7.mjs → acorex-platform-common-lookup-widget-view.component-mXo8VADX.mjs} +4 -3
  106. package/fesm2022/acorex-platform-common-lookup-widget-view.component-mXo8VADX.mjs.map +1 -0
  107. package/fesm2022/{acorex-platform-common-map-widget-edit.component-CE3QQBmX.mjs → acorex-platform-common-map-widget-edit.component-SSrR3xxv.mjs} +4 -3
  108. package/fesm2022/acorex-platform-common-map-widget-edit.component-SSrR3xxv.mjs.map +1 -0
  109. package/fesm2022/{acorex-platform-common-map-widget-view.component-Cv4OCTxz.mjs → acorex-platform-common-map-widget-view.component-DrGG3gzg.mjs} +4 -3
  110. package/fesm2022/acorex-platform-common-map-widget-view.component-DrGG3gzg.mjs.map +1 -0
  111. package/fesm2022/{acorex-platform-common-messenger-widget-column.component-CJdh6TKb.mjs → acorex-platform-common-messenger-widget-column.component-BJ_XzNKc.mjs} +4 -3
  112. package/fesm2022/acorex-platform-common-messenger-widget-column.component-BJ_XzNKc.mjs.map +1 -0
  113. package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-kiEHxJia.mjs → acorex-platform-common-messenger-widget-edit.component-B_FG_n0O.mjs} +4 -3
  114. package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-kiEHxJia.mjs.map → acorex-platform-common-messenger-widget-edit.component-B_FG_n0O.mjs.map} +1 -1
  115. package/fesm2022/{acorex-platform-common-messenger-widget-view.component-DzbjgZA7.mjs → acorex-platform-common-messenger-widget-view.component-EBiPO9ds.mjs} +4 -3
  116. package/fesm2022/{acorex-platform-common-messenger-widget-view.component-DzbjgZA7.mjs.map → acorex-platform-common-messenger-widget-view.component-EBiPO9ds.mjs.map} +1 -1
  117. package/fesm2022/{acorex-platform-common-number-widget-edit.component-BRuIP96Y.mjs → acorex-platform-common-number-widget-edit.component-B1XXga-9.mjs} +4 -3
  118. package/fesm2022/acorex-platform-common-number-widget-edit.component-B1XXga-9.mjs.map +1 -0
  119. package/fesm2022/{acorex-platform-common-number-widget-filter.component-jQ4DaFQH.mjs → acorex-platform-common-number-widget-filter.component-B2JCpDjU.mjs} +4 -3
  120. package/fesm2022/{acorex-platform-common-number-widget-filter.component-jQ4DaFQH.mjs.map → acorex-platform-common-number-widget-filter.component-B2JCpDjU.mjs.map} +1 -1
  121. package/fesm2022/{acorex-platform-common-number-widget-view.component-BzUWjT8m.mjs → acorex-platform-common-number-widget-view.component-DD0tkoc4.mjs} +4 -3
  122. package/fesm2022/acorex-platform-common-number-widget-view.component-DD0tkoc4.mjs.map +1 -0
  123. package/fesm2022/{acorex-platform-common-password-widget-column.component-BRzyuK5c.mjs → acorex-platform-common-password-widget-column.component-eyqgQlAt.mjs} +4 -3
  124. package/fesm2022/{acorex-platform-common-password-widget-column.component-BRzyuK5c.mjs.map → acorex-platform-common-password-widget-column.component-eyqgQlAt.mjs.map} +1 -1
  125. package/fesm2022/{acorex-platform-common-password-widget-edit.component-q6R2dw5k.mjs → acorex-platform-common-password-widget-edit.component-C2yNb9Pl.mjs} +4 -3
  126. package/fesm2022/acorex-platform-common-password-widget-edit.component-C2yNb9Pl.mjs.map +1 -0
  127. package/fesm2022/{acorex-platform-common-password-widget-view.component-CKaQItON.mjs → acorex-platform-common-password-widget-view.component-o9S7pwJW.mjs} +4 -3
  128. package/fesm2022/{acorex-platform-common-password-widget-view.component-CKaQItON.mjs.map → acorex-platform-common-password-widget-view.component-o9S7pwJW.mjs.map} +1 -1
  129. package/fesm2022/{acorex-platform-common-phone-widget-column.component-BD7BScjW.mjs → acorex-platform-common-phone-widget-column.component-BL9Xl2XH.mjs} +4 -3
  130. package/fesm2022/{acorex-platform-common-phone-widget-column.component-BD7BScjW.mjs.map → acorex-platform-common-phone-widget-column.component-BL9Xl2XH.mjs.map} +1 -1
  131. package/fesm2022/{acorex-platform-common-phone-widget-edit.component-D8tGKfNj.mjs → acorex-platform-common-phone-widget-edit.component-DSh9zoZj.mjs} +4 -3
  132. package/fesm2022/{acorex-platform-common-phone-widget-edit.component-D8tGKfNj.mjs.map → acorex-platform-common-phone-widget-edit.component-DSh9zoZj.mjs.map} +1 -1
  133. package/fesm2022/{acorex-platform-common-phone-widget-view.component-CFiMsGOB.mjs → acorex-platform-common-phone-widget-view.component-Br3xbaDd.mjs} +4 -3
  134. package/fesm2022/{acorex-platform-common-phone-widget-view.component-CFiMsGOB.mjs.map → acorex-platform-common-phone-widget-view.component-Br3xbaDd.mjs.map} +1 -1
  135. package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-BPzwY_8L.mjs → acorex-platform-common-rich-text-widget-column.component-DDT58tca.mjs} +4 -3
  136. package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-BPzwY_8L.mjs.map → acorex-platform-common-rich-text-widget-column.component-DDT58tca.mjs.map} +1 -1
  137. package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-CA2xRfVg.mjs → acorex-platform-common-rich-text-widget-edit.component-Dz1toc21.mjs} +4 -3
  138. package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-Dz1toc21.mjs.map +1 -0
  139. package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-DYfTZ64H.mjs → acorex-platform-common-rich-text-widget-view.component-CxTPcEIQ.mjs} +4 -3
  140. package/fesm2022/acorex-platform-common-rich-text-widget-view.component-CxTPcEIQ.mjs.map +1 -0
  141. package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-_MglaOmo.mjs → acorex-platform-common-selection-list-widget-column.component-BCCmg8MI.mjs} +4 -3
  142. package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-_MglaOmo.mjs.map → acorex-platform-common-selection-list-widget-column.component-BCCmg8MI.mjs.map} +1 -1
  143. package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-QKw_tyOd.mjs → acorex-platform-common-selection-list-widget-edit.component-B5eUdN2R.mjs} +4 -3
  144. package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B5eUdN2R.mjs.map +1 -0
  145. package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-DRToTnHQ.mjs → acorex-platform-common-selection-list-widget-filter.component-DPpZq1TB.mjs} +4 -3
  146. package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-DPpZq1TB.mjs.map +1 -0
  147. package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-CjDiuUdj.mjs → acorex-platform-common-selection-list-widget-view.component-Bxvd_AKZ.mjs} +4 -3
  148. package/fesm2022/acorex-platform-common-selection-list-widget-view.component-Bxvd_AKZ.mjs.map +1 -0
  149. package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-DF29uWl2.mjs → acorex-platform-common-signature-pad-widget-edit.component-CNjYCEi6.mjs} +4 -3
  150. package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-DF29uWl2.mjs.map → acorex-platform-common-signature-pad-widget-edit.component-CNjYCEi6.mjs.map} +1 -1
  151. package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-BWzoR4HM.mjs → acorex-platform-common-signature-pad-widget-view.component-CsiBv_7i.mjs} +4 -3
  152. package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-CsiBv_7i.mjs.map +1 -0
  153. package/fesm2022/{acorex-platform-common-string-widget-filter.component-Di_GFHme.mjs → acorex-platform-common-string-widget-filter.component-CrGt6Bov.mjs} +4 -3
  154. package/fesm2022/acorex-platform-common-string-widget-filter.component-CrGt6Bov.mjs.map +1 -0
  155. package/fesm2022/{acorex-platform-common-text-widget-column.component-BSYd1CbC.mjs → acorex-platform-common-text-widget-column.component-qXusAevm.mjs} +4 -3
  156. package/fesm2022/{acorex-platform-common-text-widget-column.component-BSYd1CbC.mjs.map → acorex-platform-common-text-widget-column.component-qXusAevm.mjs.map} +1 -1
  157. package/fesm2022/{acorex-platform-common-text-widget-edit.component-K9z9N1qw.mjs → acorex-platform-common-text-widget-edit.component-ed0MUYnD.mjs} +4 -3
  158. package/fesm2022/{acorex-platform-common-text-widget-edit.component-K9z9N1qw.mjs.map → acorex-platform-common-text-widget-edit.component-ed0MUYnD.mjs.map} +1 -1
  159. package/fesm2022/{acorex-platform-common-text-widget-view.component-WbZtm_bf.mjs → acorex-platform-common-text-widget-view.component-BpxTaeQW.mjs} +4 -3
  160. package/fesm2022/{acorex-platform-common-text-widget-view.component-WbZtm_bf.mjs.map → acorex-platform-common-text-widget-view.component-BpxTaeQW.mjs.map} +1 -1
  161. package/fesm2022/{acorex-platform-common-toggle-widget-column.component-ZCBSYMuz.mjs → acorex-platform-common-toggle-widget-column.component-BqiUQrmV.mjs} +4 -3
  162. package/fesm2022/{acorex-platform-common-toggle-widget-column.component-ZCBSYMuz.mjs.map → acorex-platform-common-toggle-widget-column.component-BqiUQrmV.mjs.map} +1 -1
  163. package/fesm2022/{acorex-platform-common-toggle-widget-edit.component-rkDfLA-J.mjs → acorex-platform-common-toggle-widget-edit.component-CDG62BJN.mjs} +4 -3
  164. package/fesm2022/acorex-platform-common-toggle-widget-edit.component-CDG62BJN.mjs.map +1 -0
  165. package/fesm2022/{acorex-platform-common-toggle-widget-view.component-DLDIrci1.mjs → acorex-platform-common-toggle-widget-view.component-DWYcIPTd.mjs} +4 -3
  166. package/fesm2022/{acorex-platform-common-toggle-widget-view.component-DLDIrci1.mjs.map → acorex-platform-common-toggle-widget-view.component-DWYcIPTd.mjs.map} +1 -1
  167. package/fesm2022/acorex-platform-common.mjs +252 -149
  168. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  169. package/fesm2022/acorex-platform-layout-builder.mjs +10 -1
  170. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  171. package/fesm2022/acorex-platform-layout-entity.mjs +445 -261
  172. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  173. package/fesm2022/{acorex-platform-layouts-entity-create-view.component-BmSMt95H.mjs → acorex-platform-layouts-entity-create-view.component-fkKPKxlb.mjs} +3 -3
  174. package/fesm2022/acorex-platform-layouts-entity-create-view.component-fkKPKxlb.mjs.map +1 -0
  175. package/fesm2022/acorex-platform-layouts.mjs +4 -4
  176. package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
  177. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs → acorex-platform-themes-default-entity-master-create-view.component-BxYT9KhH.mjs} +2 -2
  178. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BxYT9KhH.mjs.map +1 -0
  179. package/fesm2022/acorex-platform-themes-default.mjs +13 -6
  180. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  181. package/fesm2022/acorex-platform-widgets.mjs +50 -42
  182. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  183. package/fesm2022/acorex-platform-workflow.mjs +184 -104
  184. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  185. package/layout/builder/lib/builder/widget.types.d.ts +3 -0
  186. package/layout/entity/lib/entity-master-create.viewmodel.d.ts +6 -5
  187. package/layout/entity/lib/entity-master-list.viewmodel.d.ts +4 -0
  188. package/layout/entity/lib/entity-master-single.viewmodel.d.ts +10 -5
  189. package/layout/entity/lib/entity-master-update.viewmodel.d.ts +0 -1
  190. package/layout/entity/lib/entity.viewmodel.d.ts +3 -3
  191. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +18 -3
  192. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.d.ts +8 -1
  193. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.d.ts +10 -3
  194. package/layout/entity/lib/workflows/create-entity.workflow.d.ts +0 -2
  195. package/layout/entity/lib/workflows/delete-entity.workflow.d.ts +2 -4
  196. package/layout/entity/lib/workflows/modify-section.workflow.d.ts +2 -5
  197. package/layout/entity/lib/workflows/show-list.workflow.d.ts +10 -0
  198. package/package.json +1 -1
  199. package/widgets/lib/editors/date-time-box-widget/date-time-box-widget-edit.component.d.ts +4 -0
  200. package/workflow/lib/actions/start-workflow.action.d.ts +10 -0
  201. package/workflow/lib/workflow.service.d.ts +4 -2
  202. package/workflow/lib/workflow.types.d.ts +3 -1
  203. package/fesm2022/acorex-platform-common-avatar-widget-view.component-BlA_cFkP.mjs.map +0 -1
  204. package/fesm2022/acorex-platform-common-boolean-widget-filter.component-CEqibiML.mjs.map +0 -1
  205. package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-BVG9_XXh.mjs.map +0 -1
  206. package/fesm2022/acorex-platform-common-dateTime-widget-column.component-BlXTU887.mjs.map +0 -1
  207. package/fesm2022/acorex-platform-common-email-widget-column.component-D_UNn2dW.mjs.map +0 -1
  208. package/fesm2022/acorex-platform-common-file-widget-column.component-C1faGR4K.mjs.map +0 -1
  209. package/fesm2022/acorex-platform-common-file-widget-filter.component-D4AMg5M0.mjs.map +0 -1
  210. package/fesm2022/acorex-platform-common-gallery-widget-filter.component-lgaYDZeD.mjs.map +0 -1
  211. package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DFKG-kum.mjs.map +0 -1
  212. package/fesm2022/acorex-platform-common-lookup-widget-column.component-CFzCGcqA.mjs.map +0 -1
  213. package/fesm2022/acorex-platform-common-lookup-widget-edit.component-CYTSeEOq.mjs.map +0 -1
  214. package/fesm2022/acorex-platform-common-lookup-widget-filter.component-BkxT9_Hh.mjs.map +0 -1
  215. package/fesm2022/acorex-platform-common-lookup-widget-view.component-5YeixMp7.mjs.map +0 -1
  216. package/fesm2022/acorex-platform-common-map-widget-edit.component-CE3QQBmX.mjs.map +0 -1
  217. package/fesm2022/acorex-platform-common-map-widget-view.component-Cv4OCTxz.mjs.map +0 -1
  218. package/fesm2022/acorex-platform-common-messenger-widget-column.component-CJdh6TKb.mjs.map +0 -1
  219. package/fesm2022/acorex-platform-common-number-widget-edit.component-BRuIP96Y.mjs.map +0 -1
  220. package/fesm2022/acorex-platform-common-number-widget-view.component-BzUWjT8m.mjs.map +0 -1
  221. package/fesm2022/acorex-platform-common-password-widget-edit.component-q6R2dw5k.mjs.map +0 -1
  222. package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CA2xRfVg.mjs.map +0 -1
  223. package/fesm2022/acorex-platform-common-rich-text-widget-view.component-DYfTZ64H.mjs.map +0 -1
  224. package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-QKw_tyOd.mjs.map +0 -1
  225. package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-DRToTnHQ.mjs.map +0 -1
  226. package/fesm2022/acorex-platform-common-selection-list-widget-view.component-CjDiuUdj.mjs.map +0 -1
  227. package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-BWzoR4HM.mjs.map +0 -1
  228. package/fesm2022/acorex-platform-common-string-widget-filter.component-Di_GFHme.mjs.map +0 -1
  229. package/fesm2022/acorex-platform-common-toggle-widget-edit.component-rkDfLA-J.mjs.map +0 -1
  230. package/fesm2022/acorex-platform-layouts-entity-create-view.component-BmSMt95H.mjs.map +0 -1
  231. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Buanq4is.mjs.map +0 -1
  232. /package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/{entity-list-view.component.d.ts → entity-master-list-view.component.d.ts} +0 -0
@@ -17,15 +17,16 @@ import '@angular/common';
17
17
  import '@acorex/components/button';
18
18
  import '@acorex/core/platform';
19
19
  import '@acorex/components/toast';
20
+ import '@acorex/platform/workflow';
21
+ import '@acorex/components/dialog';
20
22
  import 'lodash-es';
23
+ import 'dexie';
21
24
  import '@acorex/components/skeleton';
22
25
  import '@angular/cdk/portal';
23
26
  import '@acorex/components/data-table';
24
27
  import '@acorex/core/utils';
25
28
  import '@acorex/core/format';
26
29
  import 'rxjs/operators';
27
- import '@acorex/components/dialog';
28
- import '@acorex/platform/workflow';
29
30
 
30
31
  class AXPFileWidgetFilterComponent extends AXPWidgetFilterBase {
31
32
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPFileWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
@@ -48,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
48
49
  }] });
49
50
 
50
51
  export { AXPFileWidgetFilterComponent };
51
- //# sourceMappingURL=acorex-platform-common-file-widget-filter.component-D4AMg5M0.mjs.map
52
+ //# sourceMappingURL=acorex-platform-common-file-widget-filter.component-BvG0iaKU.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-file-widget-filter.component-BvG0iaKU.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/file/file-widget-filter.component.ts"],"sourcesContent":["import { AXSelectBoxModule } from '@acorex/components/select-box';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { AXPWidgetFilterBase } from '../../widget/widget-base';\r\n@Component({\r\n template: `\r\n <ax-select-box [(ngModel)]=\"value\" [placeholder]=\"'Has file'\" [dataSource]=\"['Yes', 'No']\"></ax-select-box>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [AXSelectBoxModule, FormsModule],\r\n outputs: ['valueChange', 'operatorChange'],\r\n inputs: ['value', 'operator'],\r\n})\r\nexport class AXPFileWidgetFilterComponent extends AXPWidgetFilterBase { }\r\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,yhBAAE,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;;;;;"}
@@ -16,15 +16,16 @@ import 'rxjs';
16
16
  import '@acorex/components/image';
17
17
  import '@acorex/core/platform';
18
18
  import '@acorex/components/toast';
19
+ import '@acorex/platform/workflow';
20
+ import '@acorex/components/dialog';
19
21
  import 'lodash-es';
22
+ import 'dexie';
20
23
  import '@acorex/components/skeleton';
21
24
  import '@angular/cdk/portal';
22
25
  import '@acorex/components/data-table';
23
26
  import '@acorex/core/utils';
24
27
  import '@acorex/core/format';
25
28
  import 'rxjs/operators';
26
- import '@acorex/components/dialog';
27
- import '@acorex/platform/workflow';
28
29
 
29
30
  class AXPFileWidgetViewComponent extends AXPWidgetBase {
30
31
  constructor() {
@@ -171,4 +172,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
171
172
  }] });
172
173
 
173
174
  export { AXPFileWidgetViewComponent };
174
- //# sourceMappingURL=acorex-platform-common-file-widget-view.component-CHI4VCvt.mjs.map
175
+ //# sourceMappingURL=acorex-platform-common-file-widget-view.component-BC9l3YrO.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-common-file-widget-view.component-CHI4VCvt.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/file/file-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { AXPWidgetBase } from '../../widget/widget-base';\r\n\r\n@Component({\r\n template: `\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\r\n @if(multiple){ @for(item of list;let first=$first;track item.name) {\r\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" ] [ngTemplateOutletContext]=\"{ data: item }\" ]></ng-template>\r\n } }@else {\r\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" ] [ngTemplateOutletContext]=\"{ data: list[0] }\" ]></ng-template>\r\n }\r\n <ng-template #itemTemplate let-item=\"data\">\r\n <div\r\n *ngIf=\"item\"\r\n class=\"ax-flex ax-items-center ax-justify-between ax-p-2 ax-border ax-rounded-lg ax-bg-surface ax-col-start-1 ax-col-end-13 lg:ax-col-end-7 2xl:ax-col-end-5\"\r\n >\r\n <div class=\"ax-flex ax-items-center ax-gap-3\">\r\n <ng-container *ngIf=\"getFileInfo(item.name) as fileInfo\">\r\n <div\r\n class=\"ax-w-10 ax-h-10 ax-rounded-lg ax-flex ax-items-center ax-justify-center\"\r\n [ngClass]=\"[fileInfo.color]\"\r\n >\r\n <i [ngClass]=\"['fa-solid', 'ax-text-xl', fileInfo.icon]\"></i>\r\n </div>\r\n </ng-container>\r\n <div>\r\n <div class=\"ax-leading-6\">{{ item.name }}</div>\r\n <p class=\"ax-text-sm ax-text-neutral-400\">250 KB</p>\r\n </div>\r\n </div>\r\n <ax-button look=\"blank\" color=\"ghost\" class=\"!ax-text-neutral-400 hover:!ax-text-neutral-600\">\r\n <ax-icon>\r\n <i class=\"fa-solid fa-download\"></i>\r\n </ax-icon>\r\n </ax-button>\r\n </div>\r\n </ng-template>\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXButtonModule, AXDecoratorModule],\r\n inputs: ['context', 'value', 'multiple'],\r\n})\r\nexport class AXPFileWidgetViewComponent extends AXPWidgetBase {\r\n protected list: { name: string; type: string }[] = [];\r\n protected multiple!: boolean;\r\n\r\n override render() {\r\n const rawValue = this.rawValue;\r\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\r\n }\r\n\r\n protected getFileInfo(fileName: string): { icon: string; color: string } {\r\n const extension = fileName.split('.').pop()?.toLowerCase();\r\n\r\n switch (extension) {\r\n case 'txt':\r\n return { icon: 'fa-file-alt', color: 'ax-bg-blue-100 ax-text-blue-500' };\r\n\r\n case 'pdf':\r\n return { icon: 'fa-file-pdf', color: 'ax-bg-red-100 ax-text-red-500' };\r\n\r\n case 'doc':\r\n case 'docx':\r\n return { icon: 'fa-file-word', color: 'ax-bg-blue-200 ax-text-blue-600' };\r\n\r\n case 'xls':\r\n case 'xlsx':\r\n return { icon: 'fa-file-excel', color: 'ax-bg-green-100 ax-text-green-500' };\r\n\r\n case 'ppt':\r\n case 'pptx':\r\n return { icon: 'fa-file-powerpoint', color: 'ax-bg-orange-100 ax-text-orange-500' };\r\n\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'png':\r\n case 'gif':\r\n case 'bmp':\r\n return { icon: 'fa-file-image', color: 'ax-bg-purple-100 ax-text-purple-500' };\r\n\r\n case 'zip':\r\n case 'rar':\r\n case '7z':\r\n return { icon: 'fa-file-archive', color: 'ax-bg-yellow-100 ax-text-yellow-500' };\r\n\r\n case 'mp3':\r\n case 'wav':\r\n case 'ogg':\r\n return { icon: 'fa-file-audio', color: 'ax-bg-pink-100 ax-text-pink-500' };\r\n\r\n case 'mp4':\r\n case 'avi':\r\n case 'mkv':\r\n case 'mov':\r\n return { icon: 'fa-file-video', color: 'ax-bg-blue-100 ax-text-blue-500' };\r\n\r\n case 'js':\r\n case 'jsx':\r\n case 'ts':\r\n case 'tsx':\r\n return { icon: 'fa-file-code', color: 'ax-bg-yellow-100 ax-text-yellow-500' };\r\n\r\n // Add more cases as needed for other file types\r\n\r\n default:\r\n return { icon: 'fa-file', color: 'ax-bg-gray-100 ax-text-gray-500' };\r\n }\r\n }\r\n\r\n private extractItem(item: any): any {\r\n return typeof item == 'object'\r\n ? {\r\n name: item.name,\r\n type: item.type ?? 'Unknown',\r\n }\r\n : null;\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;AAzC7D,IAAA,WAAA,GAAA;;QA0CY,IAAI,CAAA,IAAA,GAAqC,EAAE,CAAC;AA0EvD,KAAA;IAvEU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC/B,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;AAES,IAAA,WAAW,CAAC,QAAgB,EAAA;AACpC,QAAA,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,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,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAC;AAC1D,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;AACzC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-common-file-widget-view.component-BC9l3YrO.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/file/file-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { AXPWidgetBase } from '../../widget/widget-base';\r\n\r\n@Component({\r\n template: `\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\r\n @if(multiple){ @for(item of list;let first=$first;track item.name) {\r\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" ] [ngTemplateOutletContext]=\"{ data: item }\" ]></ng-template>\r\n } }@else {\r\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" ] [ngTemplateOutletContext]=\"{ data: list[0] }\" ]></ng-template>\r\n }\r\n <ng-template #itemTemplate let-item=\"data\">\r\n <div\r\n *ngIf=\"item\"\r\n class=\"ax-flex ax-items-center ax-justify-between ax-p-2 ax-border ax-rounded-lg ax-bg-surface ax-col-start-1 ax-col-end-13 lg:ax-col-end-7 2xl:ax-col-end-5\"\r\n >\r\n <div class=\"ax-flex ax-items-center ax-gap-3\">\r\n <ng-container *ngIf=\"getFileInfo(item.name) as fileInfo\">\r\n <div\r\n class=\"ax-w-10 ax-h-10 ax-rounded-lg ax-flex ax-items-center ax-justify-center\"\r\n [ngClass]=\"[fileInfo.color]\"\r\n >\r\n <i [ngClass]=\"['fa-solid', 'ax-text-xl', fileInfo.icon]\"></i>\r\n </div>\r\n </ng-container>\r\n <div>\r\n <div class=\"ax-leading-6\">{{ item.name }}</div>\r\n <p class=\"ax-text-sm ax-text-neutral-400\">250 KB</p>\r\n </div>\r\n </div>\r\n <ax-button look=\"blank\" color=\"ghost\" class=\"!ax-text-neutral-400 hover:!ax-text-neutral-600\">\r\n <ax-icon>\r\n <i class=\"fa-solid fa-download\"></i>\r\n </ax-icon>\r\n </ax-button>\r\n </div>\r\n </ng-template>\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXButtonModule, AXDecoratorModule],\r\n inputs: ['context', 'value', 'multiple'],\r\n})\r\nexport class AXPFileWidgetViewComponent extends AXPWidgetBase {\r\n protected list: { name: string; type: string }[] = [];\r\n protected multiple!: boolean;\r\n\r\n override render() {\r\n const rawValue = this.rawValue;\r\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\r\n }\r\n\r\n protected getFileInfo(fileName: string): { icon: string; color: string } {\r\n const extension = fileName.split('.').pop()?.toLowerCase();\r\n\r\n switch (extension) {\r\n case 'txt':\r\n return { icon: 'fa-file-alt', color: 'ax-bg-blue-100 ax-text-blue-500' };\r\n\r\n case 'pdf':\r\n return { icon: 'fa-file-pdf', color: 'ax-bg-red-100 ax-text-red-500' };\r\n\r\n case 'doc':\r\n case 'docx':\r\n return { icon: 'fa-file-word', color: 'ax-bg-blue-200 ax-text-blue-600' };\r\n\r\n case 'xls':\r\n case 'xlsx':\r\n return { icon: 'fa-file-excel', color: 'ax-bg-green-100 ax-text-green-500' };\r\n\r\n case 'ppt':\r\n case 'pptx':\r\n return { icon: 'fa-file-powerpoint', color: 'ax-bg-orange-100 ax-text-orange-500' };\r\n\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'png':\r\n case 'gif':\r\n case 'bmp':\r\n return { icon: 'fa-file-image', color: 'ax-bg-purple-100 ax-text-purple-500' };\r\n\r\n case 'zip':\r\n case 'rar':\r\n case '7z':\r\n return { icon: 'fa-file-archive', color: 'ax-bg-yellow-100 ax-text-yellow-500' };\r\n\r\n case 'mp3':\r\n case 'wav':\r\n case 'ogg':\r\n return { icon: 'fa-file-audio', color: 'ax-bg-pink-100 ax-text-pink-500' };\r\n\r\n case 'mp4':\r\n case 'avi':\r\n case 'mkv':\r\n case 'mov':\r\n return { icon: 'fa-file-video', color: 'ax-bg-blue-100 ax-text-blue-500' };\r\n\r\n case 'js':\r\n case 'jsx':\r\n case 'ts':\r\n case 'tsx':\r\n return { icon: 'fa-file-code', color: 'ax-bg-yellow-100 ax-text-yellow-500' };\r\n\r\n // Add more cases as needed for other file types\r\n\r\n default:\r\n return { icon: 'fa-file', color: 'ax-bg-gray-100 ax-text-gray-500' };\r\n }\r\n }\r\n\r\n private extractItem(item: any): any {\r\n return typeof item == 'object'\r\n ? {\r\n name: item.name,\r\n type: item.type ?? 'Unknown',\r\n }\r\n : null;\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CM,MAAO,0BAA2B,SAAQ,aAAa,CAAA;AAzC7D,IAAA,WAAA,GAAA;;QA0CY,IAAI,CAAA,IAAA,GAAqC,EAAE,CAAC;AA0EvD,KAAA;IAvEU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC/B,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;AAES,IAAA,WAAW,CAAC,QAAgB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CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG9C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAzCtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,CAAC;AAC1D,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;AACzC,iBAAA,CAAA;;;;;"}
@@ -20,15 +20,16 @@ import '@ngrx/store';
20
20
  import 'rxjs';
21
21
  import '@acorex/core/platform';
22
22
  import '@acorex/components/toast';
23
+ import '@acorex/platform/workflow';
24
+ import '@acorex/components/dialog';
23
25
  import 'lodash-es';
26
+ import 'dexie';
24
27
  import '@acorex/components/skeleton';
25
28
  import '@angular/cdk/portal';
26
29
  import '@acorex/components/data-table';
27
30
  import '@acorex/core/utils';
28
31
  import '@acorex/core/format';
29
32
  import 'rxjs/operators';
30
- import '@acorex/components/dialog';
31
- import '@acorex/platform/workflow';
32
33
 
33
34
  class AXPGalleryWidgetEditComponent extends AXPWidgetEditBase {
34
35
  constructor() {
@@ -206,4 +207,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
206
207
  }] });
207
208
 
208
209
  export { AXPGalleryWidgetEditComponent };
209
- //# sourceMappingURL=acorex-platform-common-gallery-widget-edit.component-CAOctYzV.mjs.map
210
+ //# sourceMappingURL=acorex-platform-common-gallery-widget-edit.component-BihOIJ9T.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-common-gallery-widget-edit.component-CAOctYzV.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/gallery/gallery-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXImageModule } from '@acorex/components/image';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXUploaderModule } from '@acorex/components/uploader';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Signal, WritableSignal, computed, signal } from '@angular/core';\r\nimport { AXPMediaInfo, AXPMediaItem } from './gallery-widget-types';\r\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\r\n\r\n\r\n@Component({\r\n template: `\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\r\n @if(list().length){\r\n <div class=\"ax-col-start-1 ax-col-end-13 ax-flex ax-items-center lg:ax-justify-start ax-justify-center \">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-4 ax-w-full\">\r\n @switch (getMediaInfo(activeMedia()?.name||'').format) { @case ('video') {\r\n <video\r\n class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto ax-shadow-md\"\r\n controls\r\n [src]=\"activeMedia()?.url\"\r\n ></video>\r\n } @case ('image') {\r\n <ax-image class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto\" [src]=\"activeMedia()?.url\">\r\n <ax-loading></ax-loading>\r\n <ax-placeholder>\r\n <div\r\n class=\"ax-w-96 ax-h-72 ax-gap-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-rounded-lg\"\r\n >\r\n <ax-icon class=\"fa-solid fa-circle-exclamation ax-text-3xl\"> </ax-icon>\r\n <span>Connection Error!</span>\r\n </div>\r\n </ax-placeholder>\r\n </ax-image>\r\n } @case ('audio') {\r\n <audio controls class=\"ax-rounded-lg\">\r\n <source [src]=\"activeMedia()?.url\" type=\"audio/mp3\" />\r\n </audio>\r\n } }\r\n <div class=\"ax-flex ax-gap-4 ax-overflow-x-auto ax-max-w-[320px] lg:ax-max-w-[480px] ax-pb-2\">\r\n @for (media of thumbnails(); track $index) {\r\n <div\r\n *ngIf=\"getMediaInfo(media.name) as mediaInfo\"\r\n class=\"hover:ax-opacity-75 ax-transition-all ax-relative ax-cursor-pointer ax-flex ax-justify-center ax-items-center\"\r\n (click)=\"changeMediaSelected(media)\"\r\n >\r\n <ax-image\r\n class=\"ax-w-16 ax-brightness-50 ax-h-16 ax-rounded-lg ax-shadow-md ax-filter\"\r\n [src]=\"mediaInfo.format == 'image' ? media.url : media.posterUrl\"\r\n ></ax-image>\r\n <div class=\"ax-absolute ax-text-neutral-300 ax-text-xl\">\r\n <ax-icon [class]=\"mediaInfo.icon\"> </ax-icon>\r\n </div>\r\n </div>\r\n }\r\n <div axUploaderZone>\r\n <div\r\n axUploaderBrowseHandle\r\n class=\"ax-flex ax-justify-center ax-items-center ax-w-16 ax-h-16 ax-border ax-rounded-lg ax-cursor-pointer\"\r\n >\r\n <ax-icon class=\"fa-solid fa-plus ax-text-neutral-500\"> </ax-icon>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n } @else {\r\n <div class=\" ax-col-start-1 ax-col-end-13\">\r\n <ax-uploader-drop-zone></ax-uploader-drop-zone>\r\n </div>\r\n\r\n }\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule, AXLoadingModule, AXUploaderModule],\r\n inputs: ['multiple'],\r\n})\r\nexport class AXPGalleryWidgetEditComponent extends AXPWidgetEditBase {\r\n protected multiple!: boolean;\r\n protected activeMedia: WritableSignal<AXPMediaItem | null> = signal(null);\r\n protected list: WritableSignal<AXPMediaItem[]> = signal([]);\r\n protected thumbnails: Signal<AXPMediaItem[]> = computed(() =>\r\n this.list().filter((i) => i.id !== this.activeMedia()?.id)\r\n );\r\n\r\n ngAfterViewInit(): void {\r\n const parsedValue = this.value ? JSON.parse(this.value) : [];\r\n this.list.set(Array.isArray(parsedValue) ? parsedValue.map((c) => c) : [parsedValue]);\r\n this.activeMedia.set(this.list()[0]);\r\n }\r\n\r\n changeMediaSelected(media: AXPMediaItem) {\r\n this.activeMedia.set(media);\r\n }\r\n\r\n protected getMediaInfo(mediaName: string): AXPMediaInfo {\r\n const extension = mediaName.split('.').pop()?.toLowerCase();\r\n\r\n switch (extension) {\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'png':\r\n case 'gif':\r\n case 'bmp':\r\n return { icon: '', format: 'image' };\r\n\r\n case 'mp4':\r\n case 'avi':\r\n case 'mkv':\r\n case 'mov':\r\n return { icon: 'fa-regular fa-play', format: 'video' };\r\n\r\n case 'mp3':\r\n case 'wav':\r\n case 'ogg':\r\n return { icon: 'fa-regular fa-volume-high', format: 'audio' };\r\n\r\n default:\r\n return { icon: '', format: 'image' };\r\n }\r\n }\r\n}\r\n"],"names":["i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFM,MAAO,6BAA8B,SAAQ,iBAAiB,CAAA;AArEpE,IAAA,WAAA,GAAA;;AAuEY,QAAA,IAAA,CAAA,WAAW,GAAwC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,QAAA,IAAA,CAAA,IAAI,GAAmC,MAAM,CAAC,EAAE,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,UAAU,GAA2B,QAAQ,CAAC,MACtD,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,CAAC,CAC3D,CAAC;AAsCH,KAAA;IApCC,eAAe,GAAA;QACb,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAC7D,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAA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AAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,yBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhG,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBArEzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,CAAC;oBAC5G,MAAM,EAAE,CAAC,UAAU,CAAC;AACrB,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-common-gallery-widget-edit.component-BihOIJ9T.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/gallery/gallery-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXImageModule } from '@acorex/components/image';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXUploaderModule } from '@acorex/components/uploader';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Signal, WritableSignal, computed, signal } from '@angular/core';\r\nimport { AXPMediaInfo, AXPMediaItem } from './gallery-widget-types';\r\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\r\n\r\n\r\n@Component({\r\n template: `\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\r\n @if(list().length){\r\n <div class=\"ax-col-start-1 ax-col-end-13 ax-flex ax-items-center lg:ax-justify-start ax-justify-center \">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-4 ax-w-full\">\r\n @switch (getMediaInfo(activeMedia()?.name||'').format) { @case ('video') {\r\n <video\r\n class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto ax-shadow-md\"\r\n controls\r\n [src]=\"activeMedia()?.url\"\r\n ></video>\r\n } @case ('image') {\r\n <ax-image class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto\" [src]=\"activeMedia()?.url\">\r\n <ax-loading></ax-loading>\r\n <ax-placeholder>\r\n <div\r\n class=\"ax-w-96 ax-h-72 ax-gap-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-rounded-lg\"\r\n >\r\n <ax-icon class=\"fa-solid fa-circle-exclamation ax-text-3xl\"> </ax-icon>\r\n <span>Connection Error!</span>\r\n </div>\r\n </ax-placeholder>\r\n </ax-image>\r\n } @case ('audio') {\r\n <audio controls class=\"ax-rounded-lg\">\r\n <source [src]=\"activeMedia()?.url\" type=\"audio/mp3\" />\r\n </audio>\r\n } }\r\n <div class=\"ax-flex ax-gap-4 ax-overflow-x-auto ax-max-w-[320px] lg:ax-max-w-[480px] ax-pb-2\">\r\n @for (media of thumbnails(); track $index) {\r\n <div\r\n *ngIf=\"getMediaInfo(media.name) as mediaInfo\"\r\n class=\"hover:ax-opacity-75 ax-transition-all ax-relative ax-cursor-pointer ax-flex ax-justify-center ax-items-center\"\r\n (click)=\"changeMediaSelected(media)\"\r\n >\r\n <ax-image\r\n class=\"ax-w-16 ax-brightness-50 ax-h-16 ax-rounded-lg ax-shadow-md ax-filter\"\r\n [src]=\"mediaInfo.format == 'image' ? media.url : media.posterUrl\"\r\n ></ax-image>\r\n <div class=\"ax-absolute ax-text-neutral-300 ax-text-xl\">\r\n <ax-icon [class]=\"mediaInfo.icon\"> </ax-icon>\r\n </div>\r\n </div>\r\n }\r\n <div axUploaderZone>\r\n <div\r\n axUploaderBrowseHandle\r\n class=\"ax-flex ax-justify-center ax-items-center ax-w-16 ax-h-16 ax-border ax-rounded-lg ax-cursor-pointer\"\r\n >\r\n <ax-icon class=\"fa-solid fa-plus ax-text-neutral-500\"> </ax-icon>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n } @else {\r\n <div class=\" ax-col-start-1 ax-col-end-13\">\r\n <ax-uploader-drop-zone></ax-uploader-drop-zone>\r\n </div>\r\n\r\n }\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule, AXLoadingModule, AXUploaderModule],\r\n inputs: ['multiple'],\r\n})\r\nexport class AXPGalleryWidgetEditComponent extends AXPWidgetEditBase {\r\n protected multiple!: boolean;\r\n protected activeMedia: WritableSignal<AXPMediaItem | null> = signal(null);\r\n protected list: WritableSignal<AXPMediaItem[]> = signal([]);\r\n protected thumbnails: Signal<AXPMediaItem[]> = computed(() =>\r\n this.list().filter((i) => i.id !== this.activeMedia()?.id)\r\n );\r\n\r\n ngAfterViewInit(): void {\r\n const parsedValue = this.value ? JSON.parse(this.value) : [];\r\n this.list.set(Array.isArray(parsedValue) ? parsedValue.map((c) => c) : [parsedValue]);\r\n this.activeMedia.set(this.list()[0]);\r\n }\r\n\r\n changeMediaSelected(media: AXPMediaItem) {\r\n this.activeMedia.set(media);\r\n }\r\n\r\n protected getMediaInfo(mediaName: string): AXPMediaInfo {\r\n const extension = mediaName.split('.').pop()?.toLowerCase();\r\n\r\n switch (extension) {\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'png':\r\n case 'gif':\r\n case 'bmp':\r\n return { icon: '', format: 'image' };\r\n\r\n case 'mp4':\r\n case 'avi':\r\n case 'mkv':\r\n case 'mov':\r\n return { icon: 'fa-regular fa-play', format: 'video' };\r\n\r\n case 'mp3':\r\n case 'wav':\r\n case 'ogg':\r\n return { icon: 'fa-regular fa-volume-high', format: 'audio' };\r\n\r\n default:\r\n return { icon: '', format: 'image' };\r\n }\r\n }\r\n}\r\n"],"names":["i3","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFM,MAAO,6BAA8B,SAAQ,iBAAiB,CAAA;AArEpE,IAAA,WAAA,GAAA;;AAuEY,QAAA,IAAA,CAAA,WAAW,GAAwC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,QAAA,IAAA,CAAA,IAAI,GAAmC,MAAM,CAAC,EAAE,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,UAAU,GAA2B,QAAQ,CAAC,MACtD,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,CAAC,CAC3D,CAAC;AAsCH,KAAA;IApCC,eAAe,GAAA;QACb,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAC7D,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;AACtF,QAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC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,EAAA,uBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,yBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGhG,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBArEzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,CAAC;oBAC5G,MAAM,EAAE,CAAC,UAAU,CAAC;AACrB,iBAAA,CAAA;;;;;"}
@@ -17,15 +17,16 @@ import '@acorex/components/image';
17
17
  import '@acorex/components/button';
18
18
  import '@acorex/core/platform';
19
19
  import '@acorex/components/toast';
20
+ import '@acorex/platform/workflow';
21
+ import '@acorex/components/dialog';
20
22
  import 'lodash-es';
23
+ import 'dexie';
21
24
  import '@acorex/components/skeleton';
22
25
  import '@angular/cdk/portal';
23
26
  import '@acorex/components/data-table';
24
27
  import '@acorex/core/utils';
25
28
  import '@acorex/core/format';
26
29
  import 'rxjs/operators';
27
- import '@acorex/components/dialog';
28
- import '@acorex/platform/workflow';
29
30
 
30
31
  class AXPGalleryWidgetFilterComponent extends AXPWidgetFilterBase {
31
32
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPGalleryWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
@@ -47,4 +48,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
47
48
  }] });
48
49
 
49
50
  export { AXPGalleryWidgetFilterComponent };
50
- //# sourceMappingURL=acorex-platform-common-gallery-widget-filter.component-lgaYDZeD.mjs.map
51
+ //# sourceMappingURL=acorex-platform-common-gallery-widget-filter.component-DS1PCIJp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-gallery-widget-filter.component-DS1PCIJp.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/gallery/gallery-widget-filter.component.ts"],"sourcesContent":["import { AXSelectBoxModule } from '@acorex/components/select-box';\r\nimport { AXPWidgetFilterBase } from '../../widget/widget-base';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n@Component({\r\n template: `\r\n <ax-select-box [(ngModel)]=\"value\" [placeholder]=\"'Has media'\" [dataSource]=\"['Yes', 'No']\"></ax-select-box>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXSelectBoxModule, FormsModule],\r\n inputs: [],\r\n})\r\nexport class AXPGalleryWidgetFilterComponent extends AXPWidgetFilterBase { }\r\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;8GAA3D,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,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CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG3C,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAT3C,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,YAAY,EAAE,iBAAiB,EAAE,WAAW,CAAC;AACvD,oBAAA,MAAM,EAAE,EAAE;AACX,iBAAA,CAAA;;;;;"}
@@ -18,15 +18,16 @@ import '@ngrx/store';
18
18
  import 'rxjs';
19
19
  import '@acorex/core/platform';
20
20
  import '@acorex/components/toast';
21
+ import '@acorex/platform/workflow';
22
+ import '@acorex/components/dialog';
21
23
  import 'lodash-es';
24
+ import 'dexie';
22
25
  import '@acorex/components/skeleton';
23
26
  import '@angular/cdk/portal';
24
27
  import '@acorex/components/data-table';
25
28
  import '@acorex/core/utils';
26
29
  import '@acorex/core/format';
27
30
  import 'rxjs/operators';
28
- import '@acorex/components/dialog';
29
- import '@acorex/platform/workflow';
30
31
 
31
32
  class AXPGalleryWidgetViewComponent extends AXPWidgetBase {
32
33
  constructor() {
@@ -190,4 +191,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
190
191
  }] });
191
192
 
192
193
  export { AXPGalleryWidgetViewComponent };
193
- //# sourceMappingURL=acorex-platform-common-gallery-widget-view.component-Ci50jeO5.mjs.map
194
+ //# sourceMappingURL=acorex-platform-common-gallery-widget-view.component-CnQONVdg.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-common-gallery-widget-view.component-Ci50jeO5.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/gallery/gallery-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXImageModule } from '@acorex/components/image';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXPWidgetBase } from '../../widget/widget-base';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Signal, WritableSignal, computed, signal } from '@angular/core';\r\nimport { AXPMediaInfo, AXPMediaItem } from './gallery-widget-types';\r\n\r\n@Component({\r\n template: `\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\r\n @if(list().length){\r\n <div class=\"ax-flex ax-items-center ax-justify-between ax-rounded-lg ax-bg-surface ax-col-start-1 ax-col-end-13\">\r\n <div class=\"ax-flex ax-items-center md:ax-justify-start ax-justify-center ax-w-full ax-gap-3\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-4\">\r\n @switch (getMediaInfo(activeMedia()?.name||'').format) { @case ('video') {\r\n <video\r\n class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto ax-shadow-md\"\r\n controls\r\n [src]=\"activeMedia()?.url\"\r\n ></video>\r\n } @case ('image') {\r\n <ax-image class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto\" [src]=\"activeMedia()?.url\">\r\n <ax-loading></ax-loading>\r\n <ax-placeholder>\r\n <div\r\n class=\"ax-w-96 ax-h-72 ax-gap-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-rounded-lg\"\r\n >\r\n <ax-icon class=\"fa-solid fa-circle-exclamation ax-text-3xl\"> </ax-icon>\r\n <span>Connection Error!</span>\r\n </div>\r\n </ax-placeholder>\r\n </ax-image>\r\n } @case ('audio') {\r\n <audio controls class=\"ax-rounded-lg\">\r\n <source [src]=\"activeMedia()?.url\" type=\"audio/mp3\" />\r\n </audio>\r\n } }\r\n <div class=\"ax-flex ax-gap-4 ax-overflow-x-auto ax-max-w-[320px] lg:ax-max-w-[480px] ax-pb-2\">\r\n @for (media of thumbnails(); track $index) {\r\n <div\r\n *ngIf=\"getMediaInfo(media.name) as mediaInfo\"\r\n class=\"hover:ax-opacity-75 ax-transition-all ax-relative ax-cursor-pointer ax-flex ax-justify-center ax-items-center\"\r\n (click)=\"changeMediaSelected(media)\"\r\n >\r\n <ax-image\r\n class=\"ax-w-16 ax-brightness-50 ax-h-16 ax-rounded-lg ax-shadow-md ax-filter\"\r\n [src]=\"mediaInfo.format == 'image' ? media.url : media.posterUrl\"\r\n ></ax-image>\r\n <div class=\"ax-absolute ax-text-neutral-300 ax-text-xl\">\r\n <ax-icon [class]=\"mediaInfo.icon\"> </ax-icon>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n } @else {\r\n <!-- ask for empty state: -->\r\n <small>No Media!</small>\r\n }\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule, AXLoadingModule],\r\n inputs: ['context', 'multiple'],\r\n})\r\nexport class AXPGalleryWidgetViewComponent extends AXPWidgetBase {\r\n protected multiple!: boolean;\r\n protected list: WritableSignal<AXPMediaItem[]> = signal([]);\r\n protected thumbnails: Signal<AXPMediaItem[]> = computed(() =>\r\n this.list().filter((i) => i.id !== this.activeMedia()?.id)\r\n );\r\n protected activeMedia: WritableSignal<AXPMediaItem | undefined> = signal(undefined);\r\n\r\n override render() {\r\n const rawValue: AXPMediaItem[] = this.rawValue ? JSON.parse(this.rawValue) : [];\r\n this.list.set(Array.isArray(rawValue) ? rawValue.map((c) => c) : [rawValue]);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.activeMedia.set(this.list()[0]);\r\n }\r\n\r\n changeMediaSelected(media: AXPMediaItem) {\r\n this.activeMedia.set(media);\r\n }\r\n\r\n protected getMediaInfo(mediaName: string): AXPMediaInfo {\r\n const extension = mediaName.split('.').pop()?.toLowerCase();\r\n\r\n switch (extension) {\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'png':\r\n case 'gif':\r\n case 'bmp':\r\n return { icon: '', format: 'image' };\r\n\r\n case 'mp4':\r\n case 'avi':\r\n case 'mkv':\r\n case 'mov':\r\n return { icon: 'fa-regular fa-play', format: 'video' };\r\n\r\n case 'mp3':\r\n case 'wav':\r\n case 'ogg':\r\n return { icon: 'fa-regular fa-volume-high', format: 'audio' };\r\n\r\n default:\r\n return { icon: '', format: 'image' };\r\n }\r\n }\r\n}\r\n"],"names":["i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEM,MAAO,6BAA8B,SAAQ,aAAa,CAAA;AA7DhE,IAAA,WAAA,GAAA;;AA+DY,QAAA,IAAA,CAAA,IAAI,GAAmC,MAAM,CAAC,EAAE,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,UAAU,GAA2B,QAAQ,CAAC,MACtD,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,CAAC,CAC3D,CAAC;AACQ,QAAA,IAAA,CAAA,WAAW,GAA6C,MAAM,CAAC,SAAS,CAAC,CAAC;AAyCrF,KAAA;IAvCU,MAAM,GAAA;QACb,MAAM,QAAQ,GAAmB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;AAChF,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC9E;IAED,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;KACtC;AAED,IA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CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,CAAC;AAC1F,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAChC,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"acorex-platform-common-gallery-widget-view.component-CnQONVdg.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/gallery/gallery-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXImageModule } from '@acorex/components/image';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXPWidgetBase } from '../../widget/widget-base';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Signal, WritableSignal, computed, signal } from '@angular/core';\r\nimport { AXPMediaInfo, AXPMediaItem } from './gallery-widget-types';\r\n\r\n@Component({\r\n template: `\r\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2\">\r\n @if(list().length){\r\n <div class=\"ax-flex ax-items-center ax-justify-between ax-rounded-lg ax-bg-surface ax-col-start-1 ax-col-end-13\">\r\n <div class=\"ax-flex ax-items-center md:ax-justify-start ax-justify-center ax-w-full ax-gap-3\">\r\n <div class=\"ax-flex ax-flex-col ax-items-center ax-gap-4\">\r\n @switch (getMediaInfo(activeMedia()?.name||'').format) { @case ('video') {\r\n <video\r\n class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto ax-shadow-md\"\r\n controls\r\n [src]=\"activeMedia()?.url\"\r\n ></video>\r\n } @case ('image') {\r\n <ax-image class=\"ax-rounded-lg ax-h-48 md:ax-h-72 ax-w-auto\" [src]=\"activeMedia()?.url\">\r\n <ax-loading></ax-loading>\r\n <ax-placeholder>\r\n <div\r\n class=\"ax-w-96 ax-h-72 ax-gap-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-border ax-rounded-lg\"\r\n >\r\n <ax-icon class=\"fa-solid fa-circle-exclamation ax-text-3xl\"> </ax-icon>\r\n <span>Connection Error!</span>\r\n </div>\r\n </ax-placeholder>\r\n </ax-image>\r\n } @case ('audio') {\r\n <audio controls class=\"ax-rounded-lg\">\r\n <source [src]=\"activeMedia()?.url\" type=\"audio/mp3\" />\r\n </audio>\r\n } }\r\n <div class=\"ax-flex ax-gap-4 ax-overflow-x-auto ax-max-w-[320px] lg:ax-max-w-[480px] ax-pb-2\">\r\n @for (media of thumbnails(); track $index) {\r\n <div\r\n *ngIf=\"getMediaInfo(media.name) as mediaInfo\"\r\n class=\"hover:ax-opacity-75 ax-transition-all ax-relative ax-cursor-pointer ax-flex ax-justify-center ax-items-center\"\r\n (click)=\"changeMediaSelected(media)\"\r\n >\r\n <ax-image\r\n class=\"ax-w-16 ax-brightness-50 ax-h-16 ax-rounded-lg ax-shadow-md ax-filter\"\r\n [src]=\"mediaInfo.format == 'image' ? media.url : media.posterUrl\"\r\n ></ax-image>\r\n <div class=\"ax-absolute ax-text-neutral-300 ax-text-xl\">\r\n <ax-icon [class]=\"mediaInfo.icon\"> </ax-icon>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n } @else {\r\n <!-- ask for empty state: -->\r\n <small>No Media!</small>\r\n }\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule, AXLoadingModule],\r\n inputs: ['context', 'multiple'],\r\n})\r\nexport class AXPGalleryWidgetViewComponent extends AXPWidgetBase {\r\n protected multiple!: boolean;\r\n protected list: WritableSignal<AXPMediaItem[]> = signal([]);\r\n protected thumbnails: Signal<AXPMediaItem[]> = computed(() =>\r\n this.list().filter((i) => i.id !== this.activeMedia()?.id)\r\n );\r\n protected activeMedia: WritableSignal<AXPMediaItem | undefined> = signal(undefined);\r\n\r\n override render() {\r\n const rawValue: AXPMediaItem[] = this.rawValue ? JSON.parse(this.rawValue) : [];\r\n this.list.set(Array.isArray(rawValue) ? rawValue.map((c) => c) : [rawValue]);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.activeMedia.set(this.list()[0]);\r\n }\r\n\r\n changeMediaSelected(media: AXPMediaItem) {\r\n this.activeMedia.set(media);\r\n }\r\n\r\n protected getMediaInfo(mediaName: string): AXPMediaInfo {\r\n const extension = mediaName.split('.').pop()?.toLowerCase();\r\n\r\n switch (extension) {\r\n case 'jpg':\r\n case 'jpeg':\r\n case 'png':\r\n case 'gif':\r\n case 'bmp':\r\n return { icon: '', format: 'image' };\r\n\r\n case 'mp4':\r\n case 'avi':\r\n case 'mkv':\r\n case 'mov':\r\n return { icon: 'fa-regular fa-play', format: 'video' };\r\n\r\n case 'mp3':\r\n case 'wav':\r\n case 'ogg':\r\n return { icon: 'fa-regular fa-volume-high', format: 'audio' };\r\n\r\n default:\r\n return { icon: '', format: 'image' };\r\n }\r\n }\r\n}\r\n"],"names":["i2","i4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEM,MAAO,6BAA8B,SAAQ,aAAa,CAAA;AA7DhE,IAAA,WAAA,GAAA;;AA+DY,QAAA,IAAA,CAAA,IAAI,GAAmC,MAAM,CAAC,EAAE,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,UAAU,GAA2B,QAAQ,CAAC,MACtD,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,CAAC,CAC3D,CAAC;AACQ,QAAA,IAAA,CAAA,WAAW,GAA6C,MAAM,CAAC,SAAS,CAAC,CAAC;AAyCrF,KAAA;IAvCU,MAAM,GAAA;QACb,MAAM,QAAQ,GAAmB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;AAChF,Q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,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAG9E,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBA7DzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,CAAC;AAC1F,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAChC,iBAAA,CAAA;;;;;"}
@@ -19,15 +19,16 @@ import '@angular/common';
19
19
  import '@acorex/components/button';
20
20
  import '@acorex/core/platform';
21
21
  import '@acorex/components/toast';
22
+ import '@acorex/platform/workflow';
23
+ import '@acorex/components/dialog';
22
24
  import 'lodash-es';
25
+ import 'dexie';
23
26
  import '@acorex/components/skeleton';
24
27
  import '@angular/cdk/portal';
25
28
  import '@acorex/components/data-table';
26
29
  import '@acorex/core/utils';
27
30
  import '@acorex/core/format';
28
31
  import 'rxjs/operators';
29
- import '@acorex/components/dialog';
30
- import '@acorex/platform/workflow';
31
32
 
32
33
  class AXPLargeTextWidgetEditComponent extends AXPWidgetEditBase {
33
34
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AXPLargeTextWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
@@ -57,4 +58,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
57
58
  }] });
58
59
 
59
60
  export { AXPLargeTextWidgetEditComponent };
60
- //# sourceMappingURL=acorex-platform-common-largetext-widget-edit.component-DFKG-kum.mjs.map
61
+ //# sourceMappingURL=acorex-platform-common-largetext-widget-edit.component-BCtGkz1a.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-largetext-widget-edit.component-BCtGkz1a.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/text/largetext-widget-edit.component.ts"],"sourcesContent":["import { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXFormModule } from '@acorex/components/form';\r\nimport { AXTextAreaModule } from '@acorex/components/text-area';\r\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\r\nimport { Component } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@Component({\r\n selector: 'axp-largetext-widget-edit',\r\n template: `\r\n <ax-text-area [(ngModel)]=\"value\">\r\n @for(vl of validations;track $index) {\r\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\r\n }\r\n </ax-text-area>\r\n `,\r\n standalone: true,\r\n imports: [AXTextAreaModule, FormsModule, AXDecoratorModule, AXFormModule],\r\n inputs: ['width']\r\n})\r\nexport class AXPLargeTextWidgetEditComponent extends AXPWidgetEditBase<string> {\r\n\r\n}"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBM,MAAO,+BAAgC,SAAQ,iBAAyB,CAAA;8GAAjE,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,EAX9B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;AA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A,CAAA;kBAb3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,CAAA;;;;;;AAMT,IAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY,CAAC;oBACzE,MAAM,EAAE,CAAC,OAAO,CAAC;AACpB,iBAAA,CAAA;;;;;"}
@@ -13,15 +13,16 @@ import '@acorex/components/image';
13
13
  import '@acorex/components/button';
14
14
  import '@acorex/core/platform';
15
15
  import '@acorex/components/toast';
16
+ import '@acorex/platform/workflow';
17
+ import '@acorex/components/dialog';
16
18
  import 'lodash-es';
19
+ import 'dexie';
17
20
  import '@acorex/components/skeleton';
18
21
  import '@angular/cdk/portal';
19
22
  import '@acorex/components/data-table';
20
23
  import '@acorex/core/utils';
21
24
  import '@acorex/core/format';
22
25
  import 'rxjs/operators';
23
- import '@acorex/components/dialog';
24
- import '@acorex/platform/workflow';
25
26
 
26
27
  class AXPLookupWidgetColumnComponent extends AXPWidgetBase {
27
28
  constructor() {
@@ -63,4 +64,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
63
64
  }] });
64
65
 
65
66
  export { AXPLookupWidgetColumnComponent };
66
- //# sourceMappingURL=acorex-platform-common-lookup-widget-column.component-CFzCGcqA.mjs.map
67
+ //# sourceMappingURL=acorex-platform-common-lookup-widget-column.component-Cl-vO5XW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-lookup-widget-column.component-Cl-vO5XW.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/lookup/lookup-widget-column.component.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\nimport { AXPWidgetBase } from '../../widget/widget-base';\r\n@Component({\r\n selector: 'axp-lookup-widget-column',\r\n template: '{{text}}',\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule],\r\n inputs: ['context', 'multiple', 'width', 'textField', 'valueField', 'reference', 'referenceField', 'allowResizing', 'template'],\r\n})\r\nexport class AXPLookupWidgetColumnComponent extends AXPWidgetBase {\r\n protected multiple!: boolean;\r\n protected list: { id: string; text: string }[] = [];\r\n protected text!: string;\r\n protected template!: string;\r\n protected textField: string = 'title';\r\n protected valueField: string = 'id';\r\n\r\n override render() {\r\n const rawValue = this.rawValue;\r\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\r\n //\r\n this.text = this.list.map((c) => c.text).join(', ');\r\n }\r\n\r\n private extractItem(item: any): any {\r\n return typeof item == 'object' && item\r\n ? {\r\n id: item[this.valueField],\r\n text: this.template ? this.formatService.format(this.template, 'string', item) : item[this.textField],\r\n }\r\n : {\r\n id: item,\r\n text: '',\r\n };\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;AARjE,IAAA,WAAA,GAAA;;QAUY,IAAI,CAAA,IAAA,GAAmC,EAAE,CAAC;QAG1C,IAAS,CAAA,SAAA,GAAW,OAAO,CAAC;QAC5B,IAAU,CAAA,UAAA,GAAW,IAAI,CAAC;AAoBrC,KAAA;IAlBU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC/B,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;;QAE9G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,I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X,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAR1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,CAAC;AAChI,iBAAA,CAAA;;;;;"}
@@ -20,15 +20,16 @@ import '@acorex/components/image';
20
20
  import '@acorex/components/button';
21
21
  import '@acorex/core/platform';
22
22
  import '@acorex/components/toast';
23
+ import '@acorex/platform/workflow';
24
+ import '@acorex/components/dialog';
23
25
  import 'lodash-es';
26
+ import 'dexie';
24
27
  import '@acorex/components/skeleton';
25
28
  import '@angular/cdk/portal';
26
29
  import '@acorex/components/data-table';
27
30
  import '@acorex/core/utils';
28
31
  import '@acorex/core/format';
29
32
  import 'rxjs/operators';
30
- import '@acorex/components/dialog';
31
- import '@acorex/platform/workflow';
32
33
 
33
34
  class AXPLookupWidgetEditComponent extends AXPWidgetEditBase {
34
35
  constructor() {
@@ -93,4 +94,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
93
94
  }] });
94
95
 
95
96
  export { AXPLookupWidgetEditComponent };
96
- //# sourceMappingURL=acorex-platform-common-lookup-widget-edit.component-CYTSeEOq.mjs.map
97
+ //# sourceMappingURL=acorex-platform-common-lookup-widget-edit.component-D9UhViUG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-lookup-widget-edit.component-D9UhViUG.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/lookup/lookup-widget-edit.component.ts"],"sourcesContent":["import { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';\r\nimport { AXFormModule } from '@acorex/components/form';\r\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\r\nimport { AXPEntityRegistryService } from '../../entity';\r\n@Component({\r\n selector: 'axp-lookup-widget-edit',\r\n template: `\r\n <ax-select-box\r\n [valueField]=\"valueField\"\r\n [textField]=\"textField\"\r\n [ngModel]=\"value\"\r\n [multiple]=\"multiple\"\r\n (onValueChanged)=\"handleChange($event)\"\r\n [dataSource]=\"dataSource || []\"\r\n >\r\n @for(vl of validations;track $index) {\r\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\r\n }\r\n </ax-select-box>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, FormsModule, AXSelectBoxModule, AXFormModule],\r\n inputs: ['value', 'reference', 'valueField', 'textField', 'multiple', 'referenceField'],\r\n})\r\nexport class AXPLookupWidgetEditComponent extends AXPWidgetEditBase {\r\n protected reference!: string;\r\n protected multiple!: boolean;\r\n protected valueField: string = 'value';\r\n protected textField: string = 'text';\r\n private entityRegistery = inject(AXPEntityRegistryService);\r\n protected dataSource!: AXDataSource;\r\n\r\n async ngOnInit() {\r\n const entity = await this.entityRegistery.resolve(this.reference, this.reference);\r\n this.dataSource = new AXDataSource(entity.dataSource);\r\n }\r\n\r\n protected handleChange(e: AXValueChangedEvent) {\r\n if (e.isUserInteraction) {\r\n if (this.multiple) {\r\n this.value = e.component.selectedItems;\r\n } else {\r\n this.value = e.component.selectedItems[0];\r\n }\r\n }\r\n }\r\n}\r\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BM,MAAO,4BAA6B,SAAQ,iBAAiB,CAAA;A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E,YAAY,CAAC;AACrE,oBAAA,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,CAAC;AACxF,iBAAA,CAAA;;;;;"}
@@ -24,15 +24,16 @@ import 'rxjs';
24
24
  import '@acorex/components/image';
25
25
  import '@acorex/core/platform';
26
26
  import '@acorex/components/toast';
27
+ import '@acorex/platform/workflow';
28
+ import '@acorex/components/dialog';
27
29
  import 'lodash-es';
30
+ import 'dexie';
28
31
  import '@acorex/components/skeleton';
29
32
  import '@angular/cdk/portal';
30
33
  import '@acorex/components/data-table';
31
34
  import '@acorex/core/utils';
32
35
  import '@acorex/core/format';
33
36
  import 'rxjs/operators';
34
- import '@acorex/components/dialog';
35
- import '@acorex/platform/workflow';
36
37
 
37
38
  class AXPLookupWidgetFilterComponent extends AXPWidgetFilterBase {
38
39
  constructor() {
@@ -132,4 +133,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
132
133
  }] });
133
134
 
134
135
  export { AXPLookupWidgetFilterComponent };
135
- //# sourceMappingURL=acorex-platform-common-lookup-widget-filter.component-BkxT9_Hh.mjs.map
136
+ //# sourceMappingURL=acorex-platform-common-lookup-widget-filter.component-RWweQQaO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-lookup-widget-filter.component-RWweQQaO.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/lookup/lookup-widget-filter.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXPopoverModule } from '@acorex/components/popover';\r\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\r\nimport { AXSelectionListModule } from '@acorex/components/selection-list';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { AXPWidgetFilterBase } from '../../widget/widget-base';\r\nimport { AXPEntityRegistryService } from '../../entity';\r\nimport { AXPFilterOperator } from '../../../app';\r\n@Component({\r\n selector: 'axp-lookup-widget-filter',\r\n template: `\r\n <div class=\"ax-flex ax-items-center\">\r\n <ax-select-box\r\n [textField]=\"'title'\"\r\n [placeholder]=\"'Select...'\"\r\n [dataSource]=\"dataSource || []\"\r\n (onValueChanged)=\"handleChange($event)\"\r\n [(ngModel)]=\"value\"\r\n [multiple]=\"multiple\"\r\n [valueField]=\"valueField\"\r\n [textField]=\"textField\"\r\n >\r\n </ax-select-box>\r\n @if(operations.length){\r\n <ax-button #changeOperator look=\"blank\" color=\"default\" class=\"ax-sm\">\r\n <ax-icon class=\"fa-solid fa-ellipsis-vertical\"></ax-icon>\r\n </ax-button>\r\n <ax-popover #operatorsPopover [target]=\"changeOperator\" [openOn]=\"'toggle'\" [closeOn]=\"'clickOut'\" [adaptivityEnabled]=\"true\">\r\n <div class=\"ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]\">\r\n <ax-selection-list\r\n [valueField]=\"'name'\"\r\n [textField]=\"'title'\"\r\n [(ngModel)]=\"operator\"\r\n (ngModelChange)=\"operatorsPopover.close()\"\r\n [direction]=\"'vertical'\"\r\n [items]=\"operations\"\r\n [multiple]=\"false\"\r\n ></ax-selection-list>\r\n </div>\r\n </ax-popover>\r\n }\r\n </div>\r\n `,\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXSelectBoxModule, FormsModule, AXPopoverModule, AXSelectionListModule, AXButtonModule, AXDecoratorModule],\r\n outputs: ['valueChange', 'operatorChange'],\r\n inputs: ['value', 'operator', 'refrence', 'multiple', 'textField', 'valueField'],\r\n})\r\nexport class AXPLookupWidgetFilterComponent extends AXPWidgetFilterBase {\r\n reference!: string;\r\n valueField!: string;\r\n textField!: string;\r\n multiple: boolean = false;\r\n operations: AXPFilterOperator[] = [];\r\n private entityRegistery = inject(AXPEntityRegistryService);\r\n protected dataSource!: AXDataSource;\r\n\r\n protected handleChange(e: AXValueChangedEvent) {\r\n if (e.isUserInteraction) {\r\n this.value = e.component.selectedItems[0];\r\n }\r\n }\r\n\r\n async ngOnInit() {\r\n const entity = await this.entityRegistery.resolve(this.reference, this.reference);\r\n this.dataSource = new AXDataSource(entity.dataSource);\r\n this.operations = this.schema.filterOptions.operators;\r\n }\r\n}\r\n"],"names":["i1","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDM,MAAO,8BAA+B,SAAQ,mBAAmB,CAAA;AAzCvE,IAAA,WAAA,GAAA;;QA6CE,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;QAC1B,IAAU,CAAA,UAAA,GAAwB,EAAE,CAAC;AAC7B,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAc5D,KAAA;AAXW,IAAA,YAAY,CAAC,CAAsB,EAAA;AAC3C,QAAA,IAAI,CAAC,CAAC,iBAAiB,EAAE;YACvB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;SAC3C;KACF;AAED,IAAA,MAAM,QAAQ,GAAA;AACZ,QAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAClF,IAAI,CAAC,UAAU,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC;KACvD;8GAnBU,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,E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E,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC;AACjF,iBAAA,CAAA;;;;;"}
@@ -14,15 +14,16 @@ import '@acorex/components/image';
14
14
  import '@acorex/components/button';
15
15
  import '@acorex/core/platform';
16
16
  import '@acorex/components/toast';
17
+ import '@acorex/platform/workflow';
18
+ import '@acorex/components/dialog';
17
19
  import 'lodash-es';
20
+ import 'dexie';
18
21
  import '@acorex/components/skeleton';
19
22
  import '@angular/cdk/portal';
20
23
  import '@acorex/components/data-table';
21
24
  import '@acorex/core/utils';
22
25
  import '@acorex/core/format';
23
26
  import 'rxjs/operators';
24
- import '@acorex/components/dialog';
25
- import '@acorex/platform/workflow';
26
27
 
27
28
  class AXPLookupWidgetViewComponent extends AXPWidgetBase {
28
29
  constructor() {
@@ -74,4 +75,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
74
75
  }] });
75
76
 
76
77
  export { AXPLookupWidgetViewComponent };
77
- //# sourceMappingURL=acorex-platform-common-lookup-widget-view.component-5YeixMp7.mjs.map
78
+ //# sourceMappingURL=acorex-platform-common-lookup-widget-view.component-mXo8VADX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-lookup-widget-view.component-mXo8VADX.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/lookup/lookup-widget-view.component.ts"],"sourcesContent":["import { AXTagModule } from '@acorex/components/tag';\r\nimport { AXPWidgetBase } from '../../widget/widget-base';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\r\n@Component({\r\n selector: 'axp-lookup-widget-view',\r\n template: '{{text}}',\r\n standalone: true,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule, AXTagModule],\r\n inputs: ['valueField', 'textField', 'multiple'],\r\n})\r\nexport class AXPLookupWidgetViewComponent extends AXPWidgetBase {\r\n protected list: { id: string; text: string }[] = [];\r\n protected text: string | null = null;\r\n protected multiple: boolean = false;\r\n protected textField: string = 'title';\r\n protected valueField: string = 'id';\r\n\r\n override render() {\r\n const rawValue = this.rawValue;\r\n if (rawValue) {\r\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\r\n this.text = this.list.map((c) => c.text).join(', ');\r\n } else {\r\n this.list = [];\r\n this.text = null;\r\n }\r\n }\r\n\r\n private extractItem(item: any): any {\r\n return typeof item == 'object'\r\n ? {\r\n id: item[this.valueField],\r\n text: item[this.textField],\r\n }\r\n : {\r\n id: item,\r\n text: item,\r\n };\r\n }\r\n\r\n ngOnInit() {\r\n this.render();\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYM,MAAO,4BAA6B,SAAQ,aAAa,CAAA;AAR/D,IAAA,WAAA,GAAA;;QASY,IAAI,CAAA,IAAA,GAAmC,EAAE,CAAC;QAC1C,IAAI,CAAA,IAAA,GAAkB,IAAI,CAAC;QAC3B,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;QAC1B,IAAS,CAAA,SAAA,GAAW,OAAO,CAAC;QAC5B,IAAU,CAAA,UAAA,GAAW,IAAI,CAAC;AA4BrC,KAAA;IA1BU,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,QAAQ,EAAE;AACZ,YAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC9G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,C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AAA;kBARxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;AACpC,oBAAA,MAAM,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,UAAU,CAAC;AAChD,iBAAA,CAAA;;;;;"}
@@ -13,15 +13,16 @@ import '@acorex/components/image';
13
13
  import '@acorex/components/button';
14
14
  import '@acorex/core/platform';
15
15
  import '@acorex/components/toast';
16
+ import '@acorex/platform/workflow';
17
+ import '@acorex/components/dialog';
16
18
  import 'lodash-es';
19
+ import 'dexie';
17
20
  import '@acorex/components/skeleton';
18
21
  import '@angular/cdk/portal';
19
22
  import '@acorex/components/data-table';
20
23
  import '@acorex/core/utils';
21
24
  import '@acorex/core/format';
22
25
  import 'rxjs/operators';
23
- import '@acorex/components/dialog';
24
- import '@acorex/platform/workflow';
25
26
 
26
27
  class AXPMapWidgetEditComponent extends AXPWidgetEditBase {
27
28
  async ngAfterViewInit() {
@@ -111,4 +112,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
111
112
  }] } });
112
113
 
113
114
  export { AXPMapWidgetEditComponent };
114
- //# sourceMappingURL=acorex-platform-common-map-widget-edit.component-CE3QQBmX.mjs.map
115
+ //# sourceMappingURL=acorex-platform-common-map-widget-edit.component-SSrR3xxv.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-map-widget-edit.component-SSrR3xxv.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/map/map-widget-edit.component.ts"],"sourcesContent":["import { AXPWidgetEditBase } from '../../widget/widget-base';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';\r\n@Component({\r\n selector: 'axp-map-widget-edit',\r\n template: `<div class=\"ax-w-full ax-h-96\">\r\n <div class=\"ax-h-full\" #mapEl></div>\r\n </div>`,\r\n standalone: true,\r\n styleUrl: './map-widget.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule],\r\n inputs: ['multiple'],\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXPMapWidgetEditComponent extends AXPWidgetEditBase {\r\n @ViewChild('mapEl') mapEl!: ElementRef<HTMLElement>;\r\n protected map: any;\r\n protected multiple!: boolean;\r\n protected featuresGroup: any;\r\n\r\n async ngAfterViewInit() {\r\n await this.initMap();\r\n }\r\n updateValue() {\r\n const markers = Object.values(this.featuresGroup._layers).map((layer: any) => {\r\n return layer._latlng;\r\n });\r\n this.value = markers;\r\n }\r\n\r\n addMarker(location: any, leaflet: any) {\r\n const marker = leaflet.marker(location);\r\n if (location.title) {\r\n marker.bindPopup(location.title);\r\n }\r\n this.featuresGroup.addLayer(marker);\r\n }\r\n\r\n async initMap() {\r\n const leaflet = await import('leaflet');\r\n await import('leaflet-draw');\r\n this.featuresGroup = new leaflet.FeatureGroup();\r\n\r\n this.map = leaflet.map(this.mapEl.nativeElement, {\r\n center: [20, 0],\r\n zoom: 2,\r\n minZoom: 1,\r\n maxZoom: 10,\r\n worldCopyJump: true,\r\n });\r\n leaflet\r\n .tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n maxZoom: 10,\r\n attribution: '© acorex platform',\r\n })\r\n .addTo(this.map);\r\n\r\n this.map.addLayer(this.featuresGroup);\r\n const drawControl = new leaflet.Control.Draw({\r\n draw: {\r\n circle: false,\r\n polygon: false,\r\n circlemarker: false,\r\n polyline: false,\r\n rectangle: false,\r\n },\r\n edit: {\r\n featureGroup: this.featuresGroup,\r\n remove: true,\r\n edit: false,\r\n },\r\n });\r\n this.map.addControl(drawControl);\r\n\r\n this.map.on('draw:created', (e: any) => {\r\n const { layer, layerType } = e;\r\n if ((!this.multiple && this.featuresGroup.getLayers().length < 1) || this.multiple) {\r\n this.featuresGroup.addLayer(layer);\r\n if (layerType === 'marker') this.updateValue();\r\n }\r\n });\r\n this.map.on('draw:deleted', (e: any) => {\r\n const { layers } = e;\r\n Object.values(layers._layers).map((layer: any) => {\r\n this.featuresGroup.removeLayer(layer);\r\n });\r\n this.updateValue();\r\n });\r\n\r\n if (this.value) {\r\n this.value.forEach((location: any) => {\r\n this.addMarker(location, leaflet);\r\n });\r\n this.map.fitBounds(this.featuresGroup.getBounds(), { padding: [50, 50] });\r\n }\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAeM,MAAO,yBAA0B,SAAQ,iBAAiB,CAAA;AAM9D,IAAA,MAAM,eAAe,GAAA;AACnB,QAAA,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;KACtB;IACD,WAAW,GAAA;AACT,QAAA,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,KAAU,KAAI;YAC3E,OAAO,KAAK,CAAC,OAAO,CAAC;AACvB,SAAC,CAAC,CAAC;AACH,QAAA,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;KACtB;IAED,SAAS,CAAC,QAAa,EAAE,OAAY,EAAA;QACnC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACxC,QAAA,IAAI,QAAQ,CAAC,KAAK,EAAE;AAClB,YAAA,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SAClC;AACD,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;KACrC;AAED,IAAA,MAAM,OAAO,GAAA;AACX,QAAA,MAAM,OAAO,GAAG,MAAM,OAAO,SAAS,CAAC,CAAC;AACxC,QAAA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AAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,EAV1B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,OAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,OAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;AAEH,QAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qmvCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAIG,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAIX,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAZrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,EACrB,QAAA,EAAA,CAAA;;AAEH,QAAA,CAAA,EAAA,UAAA,EACK,IAAI,EAEC,eAAA,EAAA,uBAAuB,CAAC,MAAM,WACtC,CAAC,YAAY,CAAC,EAAA,MAAA,EACf,CAAC,UAAU,CAAC,EACL,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,MAAA,EAAA,CAAA,qmvCAAA,CAAA,EAAA,CAAA;8BAGjB,KAAK,EAAA,CAAA;sBAAxB,SAAS;uBAAC,OAAO,CAAA;;;;;"}
@@ -13,15 +13,16 @@ import '@acorex/components/image';
13
13
  import '@acorex/components/button';
14
14
  import '@acorex/core/platform';
15
15
  import '@acorex/components/toast';
16
+ import '@acorex/platform/workflow';
17
+ import '@acorex/components/dialog';
16
18
  import 'lodash-es';
19
+ import 'dexie';
17
20
  import '@acorex/components/skeleton';
18
21
  import '@angular/cdk/portal';
19
22
  import '@acorex/components/data-table';
20
23
  import '@acorex/core/utils';
21
24
  import '@acorex/core/format';
22
25
  import 'rxjs/operators';
23
- import '@acorex/components/dialog';
24
- import '@acorex/platform/workflow';
25
26
 
26
27
  class AXPMapWidgetViewComponent extends AXPWidgetBase {
27
28
  async ngAfterViewInit() {
@@ -83,4 +84,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
83
84
  }] } });
84
85
 
85
86
  export { AXPMapWidgetViewComponent };
86
- //# sourceMappingURL=acorex-platform-common-map-widget-view.component-Cv4OCTxz.mjs.map
87
+ //# sourceMappingURL=acorex-platform-common-map-widget-view.component-DrGG3gzg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-common-map-widget-view.component-DrGG3gzg.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/map/map-widget-view.component.ts"],"sourcesContent":["import { AXPWidgetBase } from '../../widget/widget-base';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';\r\n@Component({\r\n selector: 'axp-map-widget-view',\r\n template: `<div class=\"ax-w-full ax-h-72\">\r\n <div class=\"ax-h-full\" #mapEl></div>\r\n </div>`,\r\n standalone: true,\r\n styleUrl: './map-widget.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n imports: [CommonModule],\r\n encapsulation: ViewEncapsulation.None,\r\n inputs: ['context'],\r\n})\r\nexport class AXPMapWidgetViewComponent extends AXPWidgetBase {\r\n leaflet!: any;\r\n @ViewChild('mapEl') mapEl!: ElementRef<HTMLElement>;\r\n protected map: any;\r\n protected value: any;\r\n protected featuresGroup: any;\r\n\r\n async ngAfterViewInit() {\r\n await this.initMap();\r\n }\r\n\r\n addMarker(location: any, leaflet: any) {\r\n const marker = leaflet.marker(location);\r\n if (location.title) {\r\n marker.bindPopup(location.title);\r\n }\r\n this.featuresGroup.addLayer(marker);\r\n }\r\n\r\n updateMarkers() {\r\n if (this.value) {\r\n this.featuresGroup.clearLayers();\r\n this.value.forEach((location: any) => {\r\n this.addMarker(location, this.leaflet);\r\n });\r\n this.map.fitBounds(this.featuresGroup.getBounds(), { padding: [50, 50] });\r\n }\r\n }\r\n\r\n async initMap() {\r\n const leaflet = await import('leaflet');\r\n this.leaflet = leaflet;\r\n this.featuresGroup = new leaflet.FeatureGroup();\r\n\r\n this.map = leaflet.map(this.mapEl.nativeElement, {\r\n center: [20, 0],\r\n zoom: 2,\r\n minZoom: 1,\r\n maxZoom: 10,\r\n worldCopyJump: true,\r\n });\r\n leaflet\r\n .tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\r\n maxZoom: 10,\r\n attribution: '© acorex platform',\r\n })\r\n .addTo(this.map);\r\n this.updateMarkers();\r\n this.map.addLayer(this.featuresGroup);\r\n }\r\n\r\n protected override render(): void {\r\n this.value = this.rawValue;\r\n this.updateMarkers();\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAeM,MAAO,yBAA0B,SAAQ,aAAa,CAAA;AAO1D,IAAA,MAAM,eAAe,GAAA;AACnB,QAAA,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;KACtB;IAED,SAAS,CAAC,QAAa,EAAE,OAAY,EAAA;QACnC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACxC,QAAA,IAAI,QAAQ,CAAC,KAAK,EAAE;AAClB,YAAA,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SAClC;AACD,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;KACrC;IAED,aAAa,GAAA;AACX,QAAA,IAAI,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,SAAS,CAAC,EAAA,MAAA,EAAA,CAAA,qmvCAAA,CAAA,EAAA,CAAA;8BAIC,KAAK,EAAA,CAAA;sBAAxB,SAAS;uBAAC,OAAO,CAAA;;;;;"}
@@ -14,15 +14,16 @@ import '@angular/common';
14
14
  import '@acorex/components/button';
15
15
  import '@acorex/core/platform';
16
16
  import '@acorex/components/toast';
17
+ import '@acorex/platform/workflow';
18
+ import '@acorex/components/dialog';
17
19
  import 'lodash-es';
20
+ import 'dexie';
18
21
  import '@acorex/components/skeleton';
19
22
  import '@angular/cdk/portal';
20
23
  import '@acorex/components/data-table';
21
24
  import '@acorex/core/utils';
22
25
  import '@acorex/core/format';
23
26
  import 'rxjs/operators';
24
- import '@acorex/components/dialog';
25
- import '@acorex/platform/workflow';
26
27
 
27
28
  class AXPMessengerWidgetColumnComponent extends AXPWidgetBase {
28
29
  constructor() {
@@ -92,4 +93,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
92
93
  }] });
93
94
 
94
95
  export { AXPMessengerWidgetColumnComponent };
95
- //# sourceMappingURL=acorex-platform-common-messenger-widget-column.component-CJdh6TKb.mjs.map
96
+ //# sourceMappingURL=acorex-platform-common-messenger-widget-column.component-BJ_XzNKc.mjs.map