@acorex/modules 20.2.0-next.1 → 20.2.0-next.3

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 (240) hide show
  1. package/auth/index.d.ts +59 -4
  2. package/common/index.d.ts +1 -8
  3. package/contact-management/index.d.ts +69 -2
  4. package/conversation/README.md +2 -2
  5. package/conversation/index.d.ts +219 -114
  6. package/data-management/index.d.ts +5 -12
  7. package/document-management/index.d.ts +51 -4
  8. package/fesm2022/{acorex-modules-application-management-module-designer.component-udoks-Ef.mjs → acorex-modules-application-management-module-designer.component-CsZjqUAj.mjs} +7 -7
  9. package/fesm2022/{acorex-modules-application-management-module-designer.component-udoks-Ef.mjs.map → acorex-modules-application-management-module-designer.component-CsZjqUAj.mjs.map} +1 -1
  10. package/fesm2022/acorex-modules-application-management.mjs +41 -41
  11. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  12. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-y6rICHrT.mjs → acorex-modules-auth-acorex-modules-auth-tDyQQDnk.mjs} +254 -105
  13. package/fesm2022/acorex-modules-auth-acorex-modules-auth-tDyQQDnk.mjs.map +1 -0
  14. package/fesm2022/{acorex-modules-auth-app-chooser.component-Cpy0VN6n.mjs → acorex-modules-auth-app-chooser.component-yu1DJZKN.mjs} +8 -6
  15. package/fesm2022/acorex-modules-auth-app-chooser.component-yu1DJZKN.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-auth-blank.layout-C8NsXB9K.mjs → acorex-modules-auth-blank.layout-ZjroQcdq.mjs} +4 -4
  17. package/fesm2022/{acorex-modules-auth-blank.layout-C8NsXB9K.mjs.map → acorex-modules-auth-blank.layout-ZjroQcdq.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-auth-login.module-ZEX4NMuJ.mjs → acorex-modules-auth-login.module-D1aa1F6G.mjs} +8 -8
  19. package/fesm2022/{acorex-modules-auth-login.module-ZEX4NMuJ.mjs.map → acorex-modules-auth-login.module-D1aa1F6G.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-auth-master.layout-D-lIn4Pl.mjs → acorex-modules-auth-master.layout-CGQmSlGQ.mjs} +5 -5
  21. package/fesm2022/{acorex-modules-auth-master.layout-D-lIn4Pl.mjs.map → acorex-modules-auth-master.layout-CGQmSlGQ.mjs.map} +1 -1
  22. package/fesm2022/acorex-modules-auth-oauth-callback.component-m9YiJ4e9.mjs +97 -0
  23. package/fesm2022/acorex-modules-auth-oauth-callback.component-m9YiJ4e9.mjs.map +1 -0
  24. package/fesm2022/{acorex-modules-auth-password.component-CafZfqKe.mjs → acorex-modules-auth-password.component-Cb3FJ1DZ.mjs} +9 -9
  25. package/fesm2022/{acorex-modules-auth-password.component-CafZfqKe.mjs.map → acorex-modules-auth-password.component-Cb3FJ1DZ.mjs.map} +1 -1
  26. package/fesm2022/acorex-modules-auth-password.component-CiWdX7f_.mjs +226 -0
  27. package/fesm2022/acorex-modules-auth-password.component-CiWdX7f_.mjs.map +1 -0
  28. package/fesm2022/{acorex-modules-auth-routes-D9-qfC3V.mjs → acorex-modules-auth-routes-pae8qpX9.mjs} +2 -2
  29. package/fesm2022/{acorex-modules-auth-routes-D9-qfC3V.mjs.map → acorex-modules-auth-routes-pae8qpX9.mjs.map} +1 -1
  30. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-B1aE-TOD.mjs → acorex-modules-auth-tenant-chooser.component-Bk0l3XoV.mjs} +21 -12
  31. package/fesm2022/acorex-modules-auth-tenant-chooser.component-Bk0l3XoV.mjs.map +1 -0
  32. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BglerlU-.mjs → acorex-modules-auth-two-factor-code.component-DDEIajiI.mjs} +8 -8
  33. package/fesm2022/{acorex-modules-auth-two-factor-code.component-BglerlU-.mjs.map → acorex-modules-auth-two-factor-code.component-DDEIajiI.mjs.map} +1 -1
  34. package/fesm2022/{acorex-modules-auth-two-factor.module-D3N2XyOH.mjs → acorex-modules-auth-two-factor.module-DtcoHPH4.mjs} +7 -7
  35. package/fesm2022/{acorex-modules-auth-two-factor.module-D3N2XyOH.mjs.map → acorex-modules-auth-two-factor.module-DtcoHPH4.mjs.map} +1 -1
  36. package/fesm2022/acorex-modules-auth-user-sessions.component-sI6P2joA.mjs +135 -0
  37. package/fesm2022/acorex-modules-auth-user-sessions.component-sI6P2joA.mjs.map +1 -0
  38. package/fesm2022/acorex-modules-auth.mjs +1 -1
  39. package/fesm2022/acorex-modules-calendar-management.mjs +22 -22
  40. package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
  41. package/fesm2022/{acorex-modules-common-search-popup.component-DbTj01Wz.mjs → acorex-modules-common-search-popup.component-D7Y4T3Rp.mjs} +8 -8
  42. package/fesm2022/{acorex-modules-common-search-popup.component-DbTj01Wz.mjs.map → acorex-modules-common-search-popup.component-D7Y4T3Rp.mjs.map} +1 -1
  43. package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs → acorex-modules-common-timeline-version-history-popup.component-ceEtE6qB.mjs} +7 -7
  44. package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs.map → acorex-modules-common-timeline-version-history-popup.component-ceEtE6qB.mjs.map} +1 -1
  45. package/fesm2022/acorex-modules-common.mjs +1222 -1
  46. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  47. package/fesm2022/{acorex-modules-contact-management-acorex-modules-contact-management-CM72FkGM.mjs → acorex-modules-contact-management-acorex-modules-contact-management-Co0tt3cj.mjs} +281 -54
  48. package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-Co0tt3cj.mjs.map +1 -0
  49. package/fesm2022/{acorex-modules-contact-management-address-type.entity-CW0fx3v8.mjs → acorex-modules-contact-management-address-type.entity-DQZwgXki.mjs} +2 -2
  50. package/fesm2022/{acorex-modules-contact-management-address-type.entity-CW0fx3v8.mjs.map → acorex-modules-contact-management-address-type.entity-DQZwgXki.mjs.map} +1 -1
  51. package/fesm2022/{acorex-modules-contact-management-contact-address.entity-D5OGWsSx.mjs → acorex-modules-contact-management-contact-address.entity-CFfRywsB.mjs} +2 -2
  52. package/fesm2022/{acorex-modules-contact-management-contact-address.entity-D5OGWsSx.mjs.map → acorex-modules-contact-management-contact-address.entity-CFfRywsB.mjs.map} +1 -1
  53. package/fesm2022/{acorex-modules-contact-management-contact-method.entity-Cpdd-Xwb.mjs → acorex-modules-contact-management-contact-method.entity-Ci93_mb9.mjs} +2 -2
  54. package/fesm2022/{acorex-modules-contact-management-contact-method.entity-Cpdd-Xwb.mjs.map → acorex-modules-contact-management-contact-method.entity-Ci93_mb9.mjs.map} +1 -1
  55. package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-B_gQ7mEo.mjs → acorex-modules-contact-management-contact-relationship.entity-CqdXpqLN.mjs} +2 -2
  56. package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-B_gQ7mEo.mjs.map → acorex-modules-contact-management-contact-relationship.entity-CqdXpqLN.mjs.map} +1 -1
  57. package/fesm2022/{acorex-modules-contact-management-contact-source.entity-BwYBaS8B.mjs → acorex-modules-contact-management-contact-source.entity-BsF9p0GK.mjs} +2 -2
  58. package/fesm2022/{acorex-modules-contact-management-contact-source.entity-BwYBaS8B.mjs.map → acorex-modules-contact-management-contact-source.entity-BsF9p0GK.mjs.map} +1 -1
  59. package/fesm2022/{acorex-modules-contact-management-emergency-contact-category.entity-CDbm4Rq3.mjs → acorex-modules-contact-management-emergency-contact-category.entity-DjOm8qQb.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-contact-management-emergency-contact-category.entity-CDbm4Rq3.mjs.map → acorex-modules-contact-management-emergency-contact-category.entity-DjOm8qQb.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-BpNDJPVs.mjs → acorex-modules-contact-management-emergency-contact.entity-BQyjzPR8.mjs} +2 -2
  62. package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-BpNDJPVs.mjs.map → acorex-modules-contact-management-emergency-contact.entity-BQyjzPR8.mjs.map} +1 -1
  63. package/fesm2022/acorex-modules-contact-management.mjs +1 -1
  64. package/fesm2022/acorex-modules-content-management.mjs +14 -36
  65. package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
  66. package/fesm2022/acorex-modules-conversation.mjs +1611 -1308
  67. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  68. package/fesm2022/acorex-modules-dashboard-management.mjs +76 -75
  69. package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
  70. package/fesm2022/acorex-modules-data-management.mjs +140 -126
  71. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  72. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-C7ot6PfT.mjs → acorex-modules-document-management-acorex-modules-document-management-DXGX-riG.mjs} +1402 -389
  73. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-DXGX-riG.mjs.map +1 -0
  74. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-C6pop0RM.mjs → acorex-modules-document-management-attachment-widget.component-NaY7Mn95.mjs} +5 -5
  75. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-C6pop0RM.mjs.map → acorex-modules-document-management-attachment-widget.component-NaY7Mn95.mjs.map} +1 -1
  76. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-ga7fuY4H.mjs → acorex-modules-document-management-create-folder-dialog.component-epxEuBU5.mjs} +5 -5
  77. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-ga7fuY4H.mjs.map → acorex-modules-document-management-create-folder-dialog.component-epxEuBU5.mjs.map} +1 -1
  78. package/fesm2022/{acorex-modules-document-management-details-view.component-CzTg3hha.mjs → acorex-modules-document-management-details-view.component-CMI2Eokj.mjs} +5 -5
  79. package/fesm2022/{acorex-modules-document-management-details-view.component-CzTg3hha.mjs.map → acorex-modules-document-management-details-view.component-CMI2Eokj.mjs.map} +1 -1
  80. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BB5d32EI.mjs → acorex-modules-document-management-drive-choose.component-DBKgwm70.mjs} +5 -5
  81. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BB5d32EI.mjs.map → acorex-modules-document-management-drive-choose.component-DBKgwm70.mjs.map} +1 -1
  82. package/fesm2022/{acorex-modules-document-management-drive.component-TzRLr7rb.mjs → acorex-modules-document-management-drive.component-DoGdTL3n.mjs} +11 -10
  83. package/fesm2022/acorex-modules-document-management-drive.component-DoGdTL3n.mjs.map +1 -0
  84. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BeKFvgYU.mjs → acorex-modules-document-management-large-icons-view.component-BRsTSoln.mjs} +5 -5
  85. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BeKFvgYU.mjs.map → acorex-modules-document-management-large-icons-view.component-BRsTSoln.mjs.map} +1 -1
  86. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CQyiGE99.mjs → acorex-modules-document-management-large-tiles-view.component-CpYeYyR5.mjs} +5 -5
  87. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CQyiGE99.mjs.map → acorex-modules-document-management-large-tiles-view.component-CpYeYyR5.mjs.map} +1 -1
  88. package/fesm2022/{acorex-modules-document-management-link-dialog.component-CPuOuvu-.mjs → acorex-modules-document-management-link-dialog.component-ZteosW8O.mjs} +4 -4
  89. package/fesm2022/{acorex-modules-document-management-link-dialog.component-CPuOuvu-.mjs.map → acorex-modules-document-management-link-dialog.component-ZteosW8O.mjs.map} +1 -1
  90. package/fesm2022/{acorex-modules-document-management-list-view.component-CWGGArxw.mjs → acorex-modules-document-management-list-view.component-C4VFnACA.mjs} +5 -5
  91. package/fesm2022/{acorex-modules-document-management-list-view.component-CWGGArxw.mjs.map → acorex-modules-document-management-list-view.component-C4VFnACA.mjs.map} +1 -1
  92. package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-C7ounW6N.mjs → acorex-modules-document-management-meta-choose-popup.component-D5Csi3A3.mjs} +4 -4
  93. package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-C7ounW6N.mjs.map → acorex-modules-document-management-meta-choose-popup.component-D5Csi3A3.mjs.map} +1 -1
  94. package/fesm2022/{acorex-modules-document-management-meta-selector-widget-column.component-C_J1rPak.mjs → acorex-modules-document-management-meta-selector-widget-column.component-OXeS0kW8.mjs} +4 -4
  95. package/fesm2022/{acorex-modules-document-management-meta-selector-widget-column.component-C_J1rPak.mjs.map → acorex-modules-document-management-meta-selector-widget-column.component-OXeS0kW8.mjs.map} +1 -1
  96. package/fesm2022/{acorex-modules-document-management-meta-selector-widget-designer.component-By_NgUX6.mjs → acorex-modules-document-management-meta-selector-widget-designer.component-BdVSGb3M.mjs} +4 -4
  97. package/fesm2022/{acorex-modules-document-management-meta-selector-widget-designer.component-By_NgUX6.mjs.map → acorex-modules-document-management-meta-selector-widget-designer.component-BdVSGb3M.mjs.map} +1 -1
  98. package/fesm2022/{acorex-modules-document-management-meta-selector-widget-view.component-zwCw3v1w.mjs → acorex-modules-document-management-meta-selector-widget-view.component-B-Vos30P.mjs} +4 -4
  99. package/fesm2022/{acorex-modules-document-management-meta-selector-widget-view.component-zwCw3v1w.mjs.map → acorex-modules-document-management-meta-selector-widget-view.component-B-Vos30P.mjs.map} +1 -1
  100. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-s0P0M8p2.mjs → acorex-modules-document-management-permission-definition.provider-Bc7rbWwN.mjs} +10 -2
  101. package/fesm2022/acorex-modules-document-management-permission-definition.provider-Bc7rbWwN.mjs.map +1 -0
  102. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-MPkYZl2p.mjs → acorex-modules-document-management-rename-node-dialog.component-DWUVMrVt.mjs} +5 -5
  103. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-MPkYZl2p.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DWUVMrVt.mjs.map} +1 -1
  104. package/fesm2022/{acorex-modules-document-management-share-dialog.component-CLF6b1Io.mjs → acorex-modules-document-management-share-dialog.component-CkyuEAwV.mjs} +4 -4
  105. package/fesm2022/{acorex-modules-document-management-share-dialog.component-CLF6b1Io.mjs.map → acorex-modules-document-management-share-dialog.component-CkyuEAwV.mjs.map} +1 -1
  106. package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-B8zNvOUv.mjs → acorex-modules-document-management-share-email-dialog.component-DXjcTOny.mjs} +4 -4
  107. package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-B8zNvOUv.mjs.map → acorex-modules-document-management-share-email-dialog.component-DXjcTOny.mjs.map} +1 -1
  108. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DRVLlW1e.mjs → acorex-modules-document-management-small-icons-view.component-CCirsfoz.mjs} +5 -5
  109. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DRVLlW1e.mjs.map → acorex-modules-document-management-small-icons-view.component-CCirsfoz.mjs.map} +1 -1
  110. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C1E8RKYM.mjs → acorex-modules-document-management-small-tiles-view.component-58KZSQC4.mjs} +5 -5
  111. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C1E8RKYM.mjs.map → acorex-modules-document-management-small-tiles-view.component-58KZSQC4.mjs.map} +1 -1
  112. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  113. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-zz8KU2BM.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-DxSYInAR.mjs} +65 -67
  114. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-DxSYInAR.mjs.map +1 -0
  115. package/fesm2022/{acorex-modules-form-template-management-category.entity-g5YGQjj3.mjs → acorex-modules-form-template-management-category.entity-DeCfvNqF.mjs} +2 -2
  116. package/fesm2022/{acorex-modules-form-template-management-category.entity-g5YGQjj3.mjs.map → acorex-modules-form-template-management-category.entity-DeCfvNqF.mjs.map} +1 -1
  117. package/fesm2022/{acorex-modules-form-template-management-designer.page-DQorNK3f.mjs → acorex-modules-form-template-management-designer.page-BsjFGFOD.mjs} +4 -4
  118. package/fesm2022/{acorex-modules-form-template-management-designer.page-DQorNK3f.mjs.map → acorex-modules-form-template-management-designer.page-BsjFGFOD.mjs.map} +1 -1
  119. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BFPqDVO3.mjs → acorex-modules-form-template-management-permission-definition.provider-CsjgxSgC.mjs} +2 -2
  120. package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BFPqDVO3.mjs.map → acorex-modules-form-template-management-permission-definition.provider-CsjgxSgC.mjs.map} +1 -1
  121. package/fesm2022/{acorex-modules-form-template-management-settings.provider-DYbrgJI7.mjs → acorex-modules-form-template-management-settings.provider-_BIGyRt8.mjs} +2 -2
  122. package/fesm2022/{acorex-modules-form-template-management-settings.provider-DYbrgJI7.mjs.map → acorex-modules-form-template-management-settings.provider-_BIGyRt8.mjs.map} +1 -1
  123. package/fesm2022/acorex-modules-form-template-management-template-picker.component-BCg756yD.mjs +224 -0
  124. package/fesm2022/acorex-modules-form-template-management-template-picker.component-BCg756yD.mjs.map +1 -0
  125. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CCL7xNSm.mjs → acorex-modules-form-template-management-template-widget-edit.component-DkqRsXMq.mjs} +5 -5
  126. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CCL7xNSm.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-DkqRsXMq.mjs.map} +1 -1
  127. package/fesm2022/{acorex-modules-form-template-management-template.entity-XNBsmQZY.mjs → acorex-modules-form-template-management-template.entity-CQm29n5v.mjs} +2 -2
  128. package/fesm2022/{acorex-modules-form-template-management-template.entity-XNBsmQZY.mjs.map → acorex-modules-form-template-management-template.entity-CQm29n5v.mjs.map} +1 -1
  129. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-Bw9VbGx7.mjs → acorex-modules-form-template-management-viewer-popup.component-DW2Z5EcJ.mjs} +12 -19
  130. package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-DW2Z5EcJ.mjs.map +1 -0
  131. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  132. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-ITP4K-tZ.mjs → acorex-modules-issue-management-acorex-modules-issue-management-a_wcGVPh.mjs} +31 -35
  133. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-a_wcGVPh.mjs.map +1 -0
  134. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-C1USFJeP.mjs → acorex-modules-issue-management-capture-screen.component-CsahsE-E.mjs} +5 -5
  135. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-C1USFJeP.mjs.map → acorex-modules-issue-management-capture-screen.component-CsahsE-E.mjs.map} +1 -1
  136. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  137. package/fesm2022/acorex-modules-locale-management-acorex-modules-locale-management-CfaOC6U5.mjs +1975 -0
  138. package/fesm2022/acorex-modules-locale-management-acorex-modules-locale-management-CfaOC6U5.mjs.map +1 -0
  139. package/fesm2022/acorex-modules-locale-management-profiles-MJ9xFTtp.mjs +19 -0
  140. package/fesm2022/acorex-modules-locale-management-profiles-MJ9xFTtp.mjs.map +1 -0
  141. package/fesm2022/{acorex-modules-common-settings.provider-DPVsF4c9.mjs → acorex-modules-locale-management-settings.provider-PKnqTses.mjs} +6 -6
  142. package/fesm2022/acorex-modules-locale-management-settings.provider-PKnqTses.mjs.map +1 -0
  143. package/fesm2022/acorex-modules-locale-management.mjs +2 -0
  144. package/fesm2022/acorex-modules-locale-management.mjs.map +1 -0
  145. package/fesm2022/acorex-modules-location-management.mjs +3139 -0
  146. package/fesm2022/acorex-modules-location-management.mjs.map +1 -0
  147. package/fesm2022/acorex-modules-log-management.mjs +160 -35
  148. package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
  149. package/fesm2022/acorex-modules-notification-management.mjs +180 -73
  150. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  151. package/fesm2022/{acorex-modules-organization-management-add-item.component-Dr-bwC4K.mjs → acorex-modules-organization-management-add-item.component-CzIIXsRJ.mjs} +4 -4
  152. package/fesm2022/{acorex-modules-organization-management-add-item.component-Dr-bwC4K.mjs.map → acorex-modules-organization-management-add-item.component-CzIIXsRJ.mjs.map} +1 -1
  153. package/fesm2022/acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs.map +1 -1
  154. package/fesm2022/acorex-modules-organization-management-department.entity-BxCyXNtv.mjs.map +1 -1
  155. package/fesm2022/acorex-modules-organization-management-division.entity-DzQT2jpz.mjs.map +1 -1
  156. package/fesm2022/acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs.map +1 -1
  157. package/fesm2022/acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs.map +1 -1
  158. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-a2JPiCy9.mjs → acorex-modules-organization-management-org-chart-configuration.page-XXAEpYNo.mjs} +5 -5
  159. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-a2JPiCy9.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-XXAEpYNo.mjs.map} +1 -1
  160. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-BkfSow3s.mjs → acorex-modules-organization-management-org-chart-configuration.service-CIveMQUH.mjs} +4 -4
  161. package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-BkfSow3s.mjs.map → acorex-modules-organization-management-org-chart-configuration.service-CIveMQUH.mjs.map} +1 -1
  162. package/fesm2022/{acorex-modules-organization-management-org-chart.page-CXhtYrCS.mjs → acorex-modules-organization-management-org-chart.page-UqJ1VOJ-.mjs} +15 -14
  163. package/fesm2022/acorex-modules-organization-management-org-chart.page-UqJ1VOJ-.mjs.map +1 -0
  164. package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs.map +1 -1
  165. package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs.map +1 -1
  166. package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs.map +1 -1
  167. package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs.map +1 -1
  168. package/fesm2022/acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs.map +1 -1
  169. package/fesm2022/{acorex-modules-organization-management-settings.provider-hlbUXugb.mjs → acorex-modules-organization-management-settings.provider-feVwZnkw.mjs} +6 -30
  170. package/fesm2022/acorex-modules-organization-management-settings.provider-feVwZnkw.mjs.map +1 -0
  171. package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs.map +1 -1
  172. package/fesm2022/acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs.map +1 -1
  173. package/fesm2022/acorex-modules-organization-management-team.entity-DMCfAZsr.mjs.map +1 -1
  174. package/fesm2022/acorex-modules-organization-management.mjs +128 -124
  175. package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
  176. package/fesm2022/{acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs → acorex-modules-platform-management-list-version.component-wqhq6ek4.mjs} +4 -4
  177. package/fesm2022/{acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs.map → acorex-modules-platform-management-list-version.component-wqhq6ek4.mjs.map} +1 -1
  178. package/fesm2022/acorex-modules-platform-management.mjs +91 -303
  179. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  180. package/fesm2022/acorex-modules-project-management.mjs +232 -453
  181. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  182. package/fesm2022/{acorex-modules-report-management-report-create-root.component-Cv88TDx7.mjs → acorex-modules-report-management-report-create-root.component-CFNtnshF.mjs} +4 -4
  183. package/fesm2022/{acorex-modules-report-management-report-create-root.component-Cv88TDx7.mjs.map → acorex-modules-report-management-report-create-root.component-CFNtnshF.mjs.map} +1 -1
  184. package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-DHu-kyCd.mjs → acorex-modules-report-management-report-runner-root-page.component-CbfJ_7Da.mjs} +7 -7
  185. package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-DHu-kyCd.mjs.map → acorex-modules-report-management-report-runner-root-page.component-CbfJ_7Da.mjs.map} +1 -1
  186. package/fesm2022/acorex-modules-report-management.mjs +24 -24
  187. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  188. package/fesm2022/acorex-modules-scheduler-job-management.mjs +14 -14
  189. package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
  190. package/fesm2022/acorex-modules-security-management.mjs +830 -258
  191. package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
  192. package/fesm2022/{acorex-modules-settings-management-setting-page.component-cG4ykm2g.mjs → acorex-modules-settings-management-setting-page.component-BhF5x-8D.mjs} +12 -6
  193. package/fesm2022/acorex-modules-settings-management-setting-page.component-BhF5x-8D.mjs.map +1 -0
  194. package/fesm2022/{acorex-modules-settings-management-setting-view.component-CrEK2N1U.mjs → acorex-modules-settings-management-setting-view.component-Do_gNJ2t.mjs} +4 -4
  195. package/fesm2022/{acorex-modules-settings-management-setting-view.component-CrEK2N1U.mjs.map → acorex-modules-settings-management-setting-view.component-Do_gNJ2t.mjs.map} +1 -1
  196. package/fesm2022/acorex-modules-settings-management.mjs +9 -7
  197. package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
  198. package/fesm2022/acorex-modules-task-management.mjs +5937 -0
  199. package/fesm2022/acorex-modules-task-management.mjs.map +1 -0
  200. package/fesm2022/acorex-modules-text-template-management.mjs +24 -24
  201. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  202. package/fesm2022/acorex-modules-training-management.mjs +43 -43
  203. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  204. package/fesm2022/{acorex-modules-workflow-management-acorex-modules-workflow-management-enYapFRb.mjs → acorex-modules-workflow-management-acorex-modules-workflow-management-DC7jdoqZ.mjs} +64 -33
  205. package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-DC7jdoqZ.mjs.map +1 -0
  206. package/fesm2022/{acorex-modules-workflow-management-task-board.page-CPL7HwN4.mjs → acorex-modules-workflow-management-task-board.page-Bv2GAPaN.mjs} +197 -183
  207. package/fesm2022/acorex-modules-workflow-management-task-board.page-Bv2GAPaN.mjs.map +1 -0
  208. package/fesm2022/acorex-modules-workflow-management.mjs +1 -1
  209. package/locale-management/README.md +3 -0
  210. package/locale-management/index.d.ts +182 -0
  211. package/location-management/README.md +3 -0
  212. package/location-management/index.d.ts +166 -0
  213. package/notification-management/index.d.ts +79 -60
  214. package/package.json +20 -8
  215. package/security-management/index.d.ts +13 -4
  216. package/task-management/README.md +189 -0
  217. package/task-management/index.d.ts +320 -0
  218. package/workflow-management/index.d.ts +10 -5
  219. package/fesm2022/acorex-modules-auth-acorex-modules-auth-y6rICHrT.mjs.map +0 -1
  220. package/fesm2022/acorex-modules-auth-app-chooser.component-Cpy0VN6n.mjs.map +0 -1
  221. package/fesm2022/acorex-modules-auth-password.component-DLCb0_6e.mjs +0 -134
  222. package/fesm2022/acorex-modules-auth-password.component-DLCb0_6e.mjs.map +0 -1
  223. package/fesm2022/acorex-modules-auth-tenant-chooser.component-B1aE-TOD.mjs.map +0 -1
  224. package/fesm2022/acorex-modules-common-acorex-modules-common-D06CT4CO.mjs +0 -1657
  225. package/fesm2022/acorex-modules-common-acorex-modules-common-D06CT4CO.mjs.map +0 -1
  226. package/fesm2022/acorex-modules-common-settings.provider-DPVsF4c9.mjs.map +0 -1
  227. package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-CM72FkGM.mjs.map +0 -1
  228. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C7ot6PfT.mjs.map +0 -1
  229. package/fesm2022/acorex-modules-document-management-drive.component-TzRLr7rb.mjs.map +0 -1
  230. package/fesm2022/acorex-modules-document-management-permission-definition.provider-s0P0M8p2.mjs.map +0 -1
  231. package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-zz8KU2BM.mjs.map +0 -1
  232. package/fesm2022/acorex-modules-form-template-management-template-picker.component-DgH_DUIB.mjs +0 -196
  233. package/fesm2022/acorex-modules-form-template-management-template-picker.component-DgH_DUIB.mjs.map +0 -1
  234. package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-Bw9VbGx7.mjs.map +0 -1
  235. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-ITP4K-tZ.mjs.map +0 -1
  236. package/fesm2022/acorex-modules-organization-management-org-chart.page-CXhtYrCS.mjs.map +0 -1
  237. package/fesm2022/acorex-modules-organization-management-settings.provider-hlbUXugb.mjs.map +0 -1
  238. package/fesm2022/acorex-modules-settings-management-setting-page.component-cG4ykm2g.mjs.map +0 -1
  239. package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-enYapFRb.mjs.map +0 -1
  240. package/fesm2022/acorex-modules-workflow-management-task-board.page-CPL7HwN4.mjs.map +0 -1
@@ -0,0 +1,3139 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injectable, Injector, NgModule } from '@angular/core';
3
+ import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
4
+ import { AXPSearchCommandProvider, createAllQueryView, AXPEntityQueryType, AXPEntityCommandScope, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
5
+ import { AXPSystemActionType, AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
6
+ import { AXPEntityService, AXMEntityCrudServiceImpl, entityMasterCrudActions, entityMasterRecordActions, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
7
+ import { AXTranslationService } from '@acorex/core/translation';
8
+ import { CommonModule } from '@angular/common';
9
+ import { AXDataSource } from '@acorex/cdk/common';
10
+ import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
11
+
12
+ const config = {
13
+ i18n: 'location-management',
14
+ };
15
+ const RootConfig = {
16
+ config,
17
+ module: {
18
+ name: 'LocationManagement',
19
+ title: '@location-management:module-name',
20
+ icon: 'fa-light fa-map-marker-alt',
21
+ },
22
+ entities: {
23
+ location: {
24
+ name: 'Location',
25
+ title: '@location-management:location.individual-title',
26
+ titlePlural: '@location-management:location.plural-title',
27
+ icon: 'fa-light fa-map-marker-alt',
28
+ },
29
+ locationType: {
30
+ name: 'LocationType',
31
+ title: '@location-management:location-type.individual-title',
32
+ titlePlural: '@location-management:location-type.plural-title',
33
+ icon: 'fa-light fa-tags',
34
+ },
35
+ geographicRegion: {
36
+ name: 'GeographicRegion',
37
+ title: '@location-management:geographic-region.individual-title',
38
+ titlePlural: '@location-management:geographic-region.plural-title',
39
+ icon: 'fa-light fa-globe',
40
+ },
41
+ },
42
+ };
43
+
44
+ class AXMLocationManagementMenuProvider {
45
+ constructor() {
46
+ this.entityService = inject(AXPEntityService);
47
+ }
48
+ async provide(context) {
49
+ const module = RootConfig.module;
50
+ context.addItems([
51
+ {
52
+ priority: 9003,
53
+ text: '@location-management:root-menu',
54
+ icon: module.icon,
55
+ children: [
56
+ {
57
+ text: '@location-management:location.plural-title',
58
+ path: this.entityService.createPath(module.name, RootConfig.entities.location.name),
59
+ icon: RootConfig.entities.location.icon,
60
+ priority: 1,
61
+ },
62
+ {
63
+ text: ``,
64
+ type: 'break',
65
+ priority: 5,
66
+ },
67
+ {
68
+ text: '@location-management:location-type.plural-title',
69
+ path: this.entityService.createPath(module.name, RootConfig.entities.locationType.name),
70
+ icon: RootConfig.entities.locationType.icon,
71
+ priority: 6,
72
+ },
73
+ {
74
+ text: '@location-management:geographic-region.plural-title',
75
+ path: this.entityService.createPath(module.name, RootConfig.entities.geographicRegion.name),
76
+ icon: RootConfig.entities.geographicRegion.icon,
77
+ priority: 7,
78
+ },
79
+ ],
80
+ },
81
+ ]);
82
+ }
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementMenuProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
84
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementMenuProvider }); }
85
+ }
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementMenuProvider, decorators: [{
87
+ type: Injectable
88
+ }] });
89
+
90
+ class AXMLocationManagementEntityProvider {
91
+ constructor() {
92
+ this.injector = inject(Injector);
93
+ }
94
+ preload() {
95
+ const module = RootConfig.module.name;
96
+ return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
97
+ module: module,
98
+ entity: entity.name,
99
+ }));
100
+ }
101
+ async get(moduleName, entityName) {
102
+ if (moduleName == RootConfig.module.name) {
103
+ switch (entityName) {
104
+ case RootConfig.entities.location.name:
105
+ return (await Promise.resolve().then(function () { return location_entity; })).locationFactory(this.injector);
106
+ case RootConfig.entities.locationType.name:
107
+ return (await Promise.resolve().then(function () { return locationType_entity; })).locationTypeFactory(this.injector);
108
+ case RootConfig.entities.geographicRegion.name:
109
+ return (await Promise.resolve().then(function () { return geographicRegion_entity; })).geographicRegionFactory(this.injector);
110
+ }
111
+ }
112
+ return null;
113
+ }
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
115
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementEntityProvider }); }
116
+ }
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementEntityProvider, decorators: [{
118
+ type: Injectable
119
+ }] });
120
+
121
+ const moduleKey = RootConfig.module.name;
122
+ const entitiesKey = RootConfig.entities;
123
+ const manageKey = AXPSystemActionType.Manage;
124
+ const viewKey = AXPSystemActionType.View;
125
+ const updateKey = AXPSystemActionType.Update;
126
+ const deleteKey = AXPSystemActionType.Delete;
127
+ const createKey = AXPSystemActionType.Create;
128
+ const AXMLocationManagementPermissionsKeys = {
129
+ LocationManagement: {
130
+ Management: `${moduleKey}:${manageKey}`,
131
+ Locations: {
132
+ Management: `${moduleKey}:${entitiesKey.location.name}:${manageKey}`,
133
+ View: `${moduleKey}:${entitiesKey.location.name}:${viewKey}`,
134
+ Edit: `${moduleKey}:${entitiesKey.location.name}:${updateKey}`,
135
+ Delete: `${moduleKey}:${entitiesKey.location.name}:${deleteKey}`,
136
+ Create: `${moduleKey}:${entitiesKey.location.name}:${createKey}`,
137
+ },
138
+ LocationTypes: {
139
+ Management: `${moduleKey}:${entitiesKey.locationType.name}:${manageKey}`,
140
+ View: `${moduleKey}:${entitiesKey.locationType.name}:${viewKey}`,
141
+ Edit: `${moduleKey}:${entitiesKey.locationType.name}:${updateKey}`,
142
+ Delete: `${moduleKey}:${entitiesKey.locationType.name}:${deleteKey}`,
143
+ Create: `${moduleKey}:${entitiesKey.locationType.name}:${createKey}`,
144
+ },
145
+ },
146
+ };
147
+
148
+ class AXMLocationManagementPermissionDefinitionProvider {
149
+ constructor(injector) {
150
+ this.injector = injector;
151
+ this.translateService = this.injector.get(AXTranslationService);
152
+ }
153
+ async define(context) {
154
+ const trans = async (key) => await this.translateService.translateAsync(key);
155
+ const keys = AXMLocationManagementPermissionsKeys.LocationManagement;
156
+ context.addGroup(keys.Management, await trans(RootConfig.module.title))
157
+ // Locations Management
158
+ .addPermission(keys.Locations.Management, await trans(RootConfig.entities.location.title))
159
+ .addChild(keys.Locations.View, await trans('@general:actions.view.permission'))
160
+ .addChild(keys.Locations.Edit, await trans('@general:actions.edit.permission'))
161
+ .addChild(keys.Locations.Delete, await trans('@general:actions.delete.permission'))
162
+ .addChild(keys.Locations.Create, await trans('@general:actions.create.permission'))
163
+ .endPermission()
164
+ // Location Types Management
165
+ .addPermission(keys.LocationTypes.Management, await trans(RootConfig.entities.locationType.title))
166
+ .addChild(keys.LocationTypes.View, await trans('@general:actions.view.permission'))
167
+ .addChild(keys.LocationTypes.Edit, await trans('@general:actions.edit.permission'))
168
+ .addChild(keys.LocationTypes.Delete, await trans('@general:actions.delete.permission'))
169
+ .addChild(keys.LocationTypes.Create, await trans('@general:actions.create.permission'))
170
+ .endPermission()
171
+ .endGroup();
172
+ }
173
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementPermissionDefinitionProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
174
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementPermissionDefinitionProvider }); }
175
+ }
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementPermissionDefinitionProvider, decorators: [{
177
+ type: Injectable
178
+ }], ctorParameters: () => [{ type: i0.Injector }] });
179
+
180
+ class AXMSettingProvider {
181
+ async provide(context) {
182
+ // context
183
+ // // Add Form Template Group
184
+ // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)
185
+ // // Start Interface Section
186
+ // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
187
+ // .addSetting({
188
+ // key: 'history-panel',
189
+ // title: 'Show History Panel',
190
+ // scope: 'U',
191
+ // isInherited: true,
192
+ // defaultValue: false,
193
+ // widget: {
194
+ // type: AXPWidgetsCatalog.toggle,
195
+ // },
196
+ // description: 'Enable or disable the history panel for forms.',
197
+ // validationRules: [
198
+ // {
199
+ // rule: 'required',
200
+ // },
201
+ // ],
202
+ // })
203
+ // .endSection()
204
+ // .endGroup();
205
+ }
206
+ }
207
+
208
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
209
+ constructor() {
210
+ super(...arguments);
211
+ this.commands = [
212
+ // {
213
+ // group: 'command',
214
+ // title: 'New Form Template',
215
+ // icon: RootConfig.entities.template.icon,
216
+ // description: 'Create a new form template for designing reusable forms.', // Added description
217
+ // commands: {
218
+ // 'create-entity': {
219
+ // entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
220
+ // },
221
+ // },
222
+ // }
223
+ ];
224
+ }
225
+ }
226
+
227
+ class AXMLocationService extends AXMEntityCrudServiceImpl {
228
+ }
229
+ class AXMLocationServiceImpl extends AXMLocationService {
230
+ constructor() {
231
+ super(`${RootConfig.module.name}.${RootConfig.entities.location.name}`);
232
+ }
233
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
234
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationServiceImpl }); }
235
+ }
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationServiceImpl, decorators: [{
237
+ type: Injectable
238
+ }], ctorParameters: () => [] });
239
+
240
+ class AXMLocationTypeService extends AXMEntityCrudServiceImpl {
241
+ }
242
+ class AXMLocationTypeServiceImpl extends AXMLocationTypeService {
243
+ constructor() {
244
+ super(`${RootConfig.module.name}.${RootConfig.entities.locationType.name}`);
245
+ }
246
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationTypeServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
247
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationTypeServiceImpl }); }
248
+ }
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationTypeServiceImpl, decorators: [{
250
+ type: Injectable
251
+ }], ctorParameters: () => [] });
252
+
253
+ class AXMGeographicRegionService extends AXMEntityCrudServiceImpl {
254
+ }
255
+ class AXMGeographicRegionServiceImpl extends AXMGeographicRegionService {
256
+ constructor() {
257
+ super(`${RootConfig.module.name}.${RootConfig.entities.geographicRegion.name}`);
258
+ }
259
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMGeographicRegionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
260
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMGeographicRegionServiceImpl }); }
261
+ }
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMGeographicRegionServiceImpl, decorators: [{
263
+ type: Injectable
264
+ }], ctorParameters: () => [] });
265
+
266
+ async function locationFactory(injector) {
267
+ const dataService = injector.get(AXMLocationService);
268
+ const i18n = RootConfig.config.i18n;
269
+ const entityDef = {
270
+ module: RootConfig.module.name,
271
+ name: RootConfig.entities.location.name,
272
+ source: '',
273
+ title: RootConfig.entities.location.title,
274
+ formats: {
275
+ individual: RootConfig.entities.location.title,
276
+ plural: RootConfig.entities.location.titlePlural,
277
+ searchResult: {
278
+ title: '{{ title }}',
279
+ description: '{{ street1 }}, {{ city.title }}, {{ state.title }}',
280
+ },
281
+ },
282
+ groups: [
283
+ {
284
+ id: 'basic-info',
285
+ title: '@general:terms.basic-info',
286
+ },
287
+ {
288
+ id: 'address',
289
+ title: '@location-management:location.address-details',
290
+ },
291
+ {
292
+ id: 'geographic',
293
+ title: '@location-management:location.geographic-details',
294
+ },
295
+ {
296
+ id: 'additional',
297
+ title: '@general:terms.additional-info',
298
+ },
299
+ {
300
+ id: 'validity',
301
+ title: '@general:terms.validity',
302
+ },
303
+ {
304
+ id: 'settings',
305
+ title: '@general:terms.settings',
306
+ },
307
+ ],
308
+ properties: [
309
+ {
310
+ name: 'title',
311
+ title: '@general:terms.title',
312
+ groupId: 'basic-info',
313
+ options: {
314
+ sort: {
315
+ enabled: true,
316
+ },
317
+ filter: {
318
+ advance: {
319
+ enabled: true,
320
+ },
321
+ inline: {
322
+ enabled: true,
323
+ },
324
+ },
325
+ },
326
+ schema: {
327
+ dataType: 'string',
328
+ interface: {
329
+ type: AXPWidgetsCatalog.text,
330
+ options: {
331
+ placeholder: 'Enter location name',
332
+ },
333
+ },
334
+ },
335
+ validations: [
336
+ {
337
+ rule: 'required',
338
+ },
339
+ ],
340
+ },
341
+ {
342
+ name: 'code',
343
+ title: '@location-management:location.code',
344
+ groupId: 'basic-info',
345
+ options: {
346
+ sort: {
347
+ enabled: true,
348
+ },
349
+ filter: {
350
+ advance: {
351
+ enabled: true,
352
+ },
353
+ inline: {
354
+ enabled: true,
355
+ },
356
+ },
357
+ },
358
+ schema: {
359
+ dataType: 'string',
360
+ interface: {
361
+ type: AXPWidgetsCatalog.text,
362
+ options: {
363
+ placeholder: 'Optional location code',
364
+ },
365
+ },
366
+ },
367
+ },
368
+ {
369
+ name: 'locationTypeId',
370
+ title: '@location-management:location.location-type',
371
+ groupId: 'basic-info',
372
+ options: {
373
+ sort: {
374
+ enabled: true,
375
+ },
376
+ filter: {
377
+ advance: {
378
+ enabled: true,
379
+ },
380
+ inline: {
381
+ enabled: true,
382
+ },
383
+ },
384
+ },
385
+ schema: {
386
+ dataType: 'object',
387
+ interface: {
388
+ type: AXPWidgetsCatalog.lookup,
389
+ options: {
390
+ entity: `${RootConfig.module.name}.${RootConfig.entities.locationType.name}`,
391
+ look: 'select',
392
+ expose: [
393
+ { source: 'id', target: 'locationType.id' },
394
+ { source: 'title', target: 'locationType.title' },
395
+ ],
396
+ },
397
+ },
398
+ },
399
+ validations: [
400
+ {
401
+ rule: 'required',
402
+ },
403
+ ],
404
+ },
405
+ {
406
+ name: 'isPrimary',
407
+ title: '@general:terms.is-primary',
408
+ groupId: 'settings',
409
+ options: {
410
+ filter: {
411
+ advance: {
412
+ enabled: true,
413
+ },
414
+ inline: {
415
+ enabled: true,
416
+ },
417
+ },
418
+ },
419
+ schema: {
420
+ dataType: 'boolean',
421
+ interface: {
422
+ type: AXPWidgetsCatalog.toggle,
423
+ },
424
+ },
425
+ },
426
+ {
427
+ name: 'validFrom',
428
+ title: '@location-management:location.valid-from',
429
+ groupId: 'validity',
430
+ options: {
431
+ filter: {
432
+ advance: {
433
+ enabled: true,
434
+ },
435
+ },
436
+ },
437
+ schema: {
438
+ dataType: 'date',
439
+ interface: {
440
+ type: AXPWidgetsCatalog.dateTime,
441
+ options: {
442
+ showTime: false,
443
+ },
444
+ },
445
+ },
446
+ },
447
+ {
448
+ name: 'validTo',
449
+ title: '@location-management:location.valid-to',
450
+ groupId: 'validity',
451
+ options: {
452
+ filter: {
453
+ advance: {
454
+ enabled: true,
455
+ },
456
+ },
457
+ },
458
+ schema: {
459
+ dataType: 'date',
460
+ interface: {
461
+ type: AXPWidgetsCatalog.dateTime,
462
+ options: {
463
+ showTime: false,
464
+ },
465
+ },
466
+ },
467
+ },
468
+ {
469
+ name: 'street1',
470
+ title: '@location-management:location.street1',
471
+ groupId: 'address',
472
+ options: {
473
+ sort: {
474
+ enabled: true,
475
+ },
476
+ filter: {
477
+ advance: {
478
+ enabled: true,
479
+ },
480
+ inline: {
481
+ enabled: true,
482
+ },
483
+ },
484
+ },
485
+ schema: {
486
+ dataType: 'string',
487
+ interface: {
488
+ type: AXPWidgetsCatalog.text,
489
+ options: {
490
+ placeholder: 'Enter street address',
491
+ },
492
+ },
493
+ },
494
+ validations: [
495
+ {
496
+ rule: 'required',
497
+ },
498
+ ],
499
+ },
500
+ {
501
+ name: 'street2',
502
+ title: '@location-management:location.street2',
503
+ groupId: 'address',
504
+ options: {
505
+ filter: {
506
+ advance: {
507
+ enabled: true,
508
+ },
509
+ },
510
+ },
511
+ schema: {
512
+ dataType: 'string',
513
+ interface: {
514
+ type: AXPWidgetsCatalog.text,
515
+ options: {
516
+ placeholder: 'Apartment, suite, etc.',
517
+ },
518
+ },
519
+ },
520
+ },
521
+ {
522
+ name: 'countryId',
523
+ title: '@location-management:location.country',
524
+ groupId: 'address',
525
+ options: {
526
+ sort: {
527
+ enabled: true,
528
+ },
529
+ filter: {
530
+ advance: {
531
+ enabled: true,
532
+ },
533
+ inline: {
534
+ enabled: true,
535
+ },
536
+ },
537
+ },
538
+ schema: {
539
+ dataType: 'object',
540
+ interface: {
541
+ type: AXPWidgetsCatalog.lookup,
542
+ options: {
543
+ entity: `${RootConfig.module.name}.${RootConfig.entities.geographicRegion.name}`,
544
+ look: 'select',
545
+ expose: [
546
+ { source: 'id', target: 'country.id' },
547
+ { source: 'title', target: 'country.title' },
548
+ ],
549
+ },
550
+ },
551
+ },
552
+ },
553
+ {
554
+ name: 'stateId',
555
+ title: '@location-management:location.state',
556
+ groupId: 'address',
557
+ options: {
558
+ filter: {
559
+ advance: {
560
+ enabled: true,
561
+ },
562
+ inline: {
563
+ enabled: true,
564
+ },
565
+ },
566
+ },
567
+ schema: {
568
+ dataType: 'object',
569
+ interface: {
570
+ type: AXPWidgetsCatalog.lookup,
571
+ options: {
572
+ look: 'select',
573
+ entity: `${RootConfig.module.name}.${RootConfig.entities.geographicRegion.name}`,
574
+ expose: [
575
+ { source: 'id', target: 'state.id' },
576
+ { source: 'title', target: 'state.title' },
577
+ ],
578
+ filter: {
579
+ logic: 'and',
580
+ filters: [
581
+ {
582
+ field: 'parentId',
583
+ operator: {
584
+ type: 'equal',
585
+ },
586
+ value: '{{ context.eval("countryId") }}',
587
+ },
588
+ {
589
+ field: 'type.code',
590
+ operator: {
591
+ type: 'equal',
592
+ },
593
+ value: 'state',
594
+ },
595
+ ],
596
+ },
597
+ },
598
+ triggers: [
599
+ {
600
+ event: "{{ events.context('countryId') }}",
601
+ action: `{{ widget.refresh() }}`,
602
+ },
603
+ ],
604
+ },
605
+ },
606
+ },
607
+ {
608
+ name: 'cityId',
609
+ title: '@location-management:location.city',
610
+ groupId: 'address',
611
+ options: {
612
+ filter: {
613
+ advance: {
614
+ enabled: true,
615
+ },
616
+ inline: {
617
+ enabled: true,
618
+ },
619
+ },
620
+ },
621
+ schema: {
622
+ dataType: 'object',
623
+ interface: {
624
+ type: AXPWidgetsCatalog.lookup,
625
+ options: {
626
+ look: 'select',
627
+ entity: `${RootConfig.module.name}.${RootConfig.entities.geographicRegion.name}`,
628
+ expose: [
629
+ { source: 'id', target: 'city.id' },
630
+ { source: 'title', target: 'city.title' },
631
+ ],
632
+ filter: {
633
+ logic: 'and',
634
+ filters: [
635
+ {
636
+ field: 'parentId',
637
+ operator: {
638
+ type: 'equal',
639
+ },
640
+ value: '{{ context.eval("stateId") }}',
641
+ },
642
+ {
643
+ field: 'type.code',
644
+ operator: {
645
+ type: 'equal',
646
+ },
647
+ value: 'city',
648
+ },
649
+ ],
650
+ },
651
+ },
652
+ triggers: [
653
+ {
654
+ event: "{{ events.context('stateId') }}",
655
+ action: `{{ widget.refresh() }}`,
656
+ },
657
+ ],
658
+ },
659
+ },
660
+ },
661
+ {
662
+ name: 'postalCode',
663
+ title: '@location-management:location.postal-code',
664
+ groupId: 'address',
665
+ options: {
666
+ filter: {
667
+ advance: {
668
+ enabled: true,
669
+ },
670
+ inline: {
671
+ enabled: true,
672
+ },
673
+ },
674
+ },
675
+ schema: {
676
+ dataType: 'string',
677
+ interface: {
678
+ type: AXPWidgetsCatalog.text,
679
+ options: {
680
+ placeholder: 'Postal/ZIP code',
681
+ },
682
+ },
683
+ },
684
+ validations: [
685
+ {
686
+ rule: 'required',
687
+ },
688
+ ],
689
+ },
690
+ {
691
+ name: 'hasCoordinates',
692
+ title: '@location-management:location.coordinates',
693
+ groupId: 'address',
694
+ schema: {
695
+ dataType: 'boolean',
696
+ defaultValue: '{{ context.eval("coordinates") !== null }}',
697
+ interface: {
698
+ type: AXPWidgetsCatalog.toggle,
699
+ },
700
+ },
701
+ },
702
+ {
703
+ name: 'coordinates',
704
+ title: '@location-management:location.coordinates',
705
+ groupId: 'address',
706
+ schema: {
707
+ dataType: 'string',
708
+ interface: {
709
+ type: AXPWidgetsCatalog.map,
710
+ options: {
711
+ hasDraw: true,
712
+ maxPolygon: 0,
713
+ fitToDraw: true,
714
+ visibility: '{{ context.eval("hasCoordinates") == true }}',
715
+ },
716
+ triggers: [
717
+ {
718
+ event: "{{ events.context('hasCoordinates') }}",
719
+ action: `{{ widget.clear() }}`,
720
+ },
721
+ ],
722
+ },
723
+ },
724
+ },
725
+ {
726
+ name: 'parentLocationId',
727
+ title: '@location-management:location.parent-location',
728
+ groupId: 'basic-info',
729
+ options: {
730
+ filter: {
731
+ advance: {
732
+ enabled: true,
733
+ },
734
+ inline: {
735
+ enabled: true,
736
+ },
737
+ },
738
+ },
739
+ schema: {
740
+ dataType: 'object',
741
+ interface: {
742
+ type: AXPWidgetsCatalog.lookup,
743
+ options: {
744
+ entity: `${RootConfig.module.name}.${RootConfig.entities.location.name}`,
745
+ expose: [
746
+ { source: 'id', target: 'parentLocation.id' },
747
+ { source: 'title', target: 'parentLocation.title' },
748
+ ],
749
+ },
750
+ },
751
+ },
752
+ },
753
+ {
754
+ name: 'isActive',
755
+ title: '@general:terms.is-active',
756
+ groupId: 'settings',
757
+ options: {
758
+ filter: {
759
+ advance: {
760
+ enabled: true,
761
+ },
762
+ inline: {
763
+ enabled: true,
764
+ },
765
+ },
766
+ },
767
+ schema: {
768
+ dataType: 'boolean',
769
+ interface: {
770
+ type: AXPWidgetsCatalog.toggle,
771
+ },
772
+ },
773
+ validations: [
774
+ {
775
+ rule: 'required',
776
+ },
777
+ ],
778
+ },
779
+ {
780
+ name: 'timezone',
781
+ title: '@location-management:location.timezone',
782
+ groupId: 'additional',
783
+ options: {
784
+ filter: {
785
+ advance: {
786
+ enabled: true,
787
+ },
788
+ },
789
+ },
790
+ schema: {
791
+ dataType: 'string',
792
+ interface: {
793
+ type: AXPWidgetsCatalog.select,
794
+ options: {
795
+ allowSearch: true,
796
+ valueField: 'code',
797
+ placeholder: 'e.g., America/New_York',
798
+ dataSource: "timezones",
799
+ },
800
+ },
801
+ },
802
+ },
803
+ {
804
+ name: 'description',
805
+ title: '@general:terms.description',
806
+ groupId: 'basic-info',
807
+ options: {
808
+ filter: {
809
+ advance: {
810
+ enabled: true,
811
+ },
812
+ },
813
+ },
814
+ schema: {
815
+ dataType: 'string',
816
+ interface: {
817
+ type: AXPWidgetsCatalog.largeText,
818
+ options: {
819
+ rows: 3,
820
+ },
821
+ },
822
+ },
823
+ },
824
+ ],
825
+ columns: [
826
+ { name: 'title' },
827
+ { name: 'code' },
828
+ { name: 'locationTypeId', options: { dataPath: 'locationType.title' } },
829
+ { name: 'street1' },
830
+ { name: 'cityId', options: { dataPath: 'city.title' } },
831
+ { name: 'stateId', options: { dataPath: 'state.title' } },
832
+ { name: 'countryId', options: { dataPath: 'country.title' } },
833
+ { name: 'isPrimary' },
834
+ { name: 'isActive' },
835
+ { name: 'validFrom' },
836
+ { name: 'validTo' },
837
+ ],
838
+ commands: {
839
+ create: {
840
+ execute: async (data) => {
841
+ const res = await dataService.insertOne(data);
842
+ return { id: res };
843
+ },
844
+ },
845
+ delete: {
846
+ execute: async (id) => {
847
+ return await dataService.deleteOne(id);
848
+ },
849
+ },
850
+ update: {
851
+ execute: async (data) => {
852
+ return await dataService.updateOne(data.id, data);
853
+ },
854
+ },
855
+ },
856
+ queries: {
857
+ byKey: {
858
+ execute: async (id) => {
859
+ return await dataService.getOne(id);
860
+ },
861
+ type: AXPEntityQueryType.Single,
862
+ },
863
+ list: {
864
+ execute: async (e) => {
865
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
866
+ },
867
+ type: AXPEntityQueryType.List,
868
+ },
869
+ },
870
+ interfaces: {
871
+ master: {
872
+ create: {
873
+ sections: [
874
+ {
875
+ id: 'basic-info',
876
+ },
877
+ {
878
+ id: 'address',
879
+ },
880
+ {
881
+ id: 'validity',
882
+ },
883
+ {
884
+ id: 'settings',
885
+ },
886
+ {
887
+ id: 'additional',
888
+ },
889
+ ],
890
+ properties: [
891
+ {
892
+ name: 'title',
893
+ layout: {
894
+ positions: {
895
+ default: {
896
+ colSpan: 12,
897
+ },
898
+ md: {
899
+ colSpan: 6,
900
+ },
901
+ },
902
+ },
903
+ },
904
+ {
905
+ name: 'code',
906
+ layout: {
907
+ positions: {
908
+ default: {
909
+ colSpan: 12,
910
+ },
911
+ md: {
912
+ colSpan: 6,
913
+ },
914
+ },
915
+ },
916
+ },
917
+ {
918
+ name: 'locationTypeId',
919
+ layout: {
920
+ positions: {
921
+ default: {
922
+ colSpan: 12,
923
+ },
924
+ md: {
925
+ colSpan: 6,
926
+ },
927
+ },
928
+ },
929
+ },
930
+ {
931
+ name: 'street1',
932
+ layout: {
933
+ positions: {
934
+ default: {
935
+ colSpan: 12,
936
+ },
937
+ },
938
+ },
939
+ },
940
+ {
941
+ name: 'street2',
942
+ layout: {
943
+ positions: {
944
+ default: {
945
+ colSpan: 12,
946
+ },
947
+ },
948
+ },
949
+ },
950
+ {
951
+ name: 'cityId',
952
+ layout: {
953
+ positions: {
954
+ default: {
955
+ colSpan: 12,
956
+ },
957
+ md: {
958
+ colSpan: 4,
959
+ },
960
+ },
961
+ },
962
+ },
963
+ {
964
+ name: 'stateId',
965
+ layout: {
966
+ positions: {
967
+ default: {
968
+ colSpan: 12,
969
+ },
970
+ md: {
971
+ colSpan: 4,
972
+ },
973
+ },
974
+ },
975
+ },
976
+ {
977
+ name: 'countryId',
978
+ layout: {
979
+ positions: {
980
+ default: {
981
+ colSpan: 12,
982
+ },
983
+ md: {
984
+ colSpan: 4,
985
+ },
986
+ },
987
+ },
988
+ },
989
+ {
990
+ name: 'postalCode',
991
+ layout: {
992
+ positions: {
993
+ default: {
994
+ colSpan: 12,
995
+ },
996
+ md: {
997
+ colSpan: 6,
998
+ },
999
+ },
1000
+ },
1001
+ },
1002
+ {
1003
+ name: 'hasCoordinates',
1004
+ layout: {
1005
+ positions: {
1006
+ default: {
1007
+ colSpan: 6,
1008
+ },
1009
+ },
1010
+ },
1011
+ },
1012
+ {
1013
+ name: 'coordinates',
1014
+ layout: {
1015
+ label: {
1016
+ visible: false,
1017
+ },
1018
+ positions: {
1019
+ default: {
1020
+ colSpan: 12,
1021
+ },
1022
+ },
1023
+ },
1024
+ },
1025
+ {
1026
+ name: 'parentLocationId',
1027
+ layout: {
1028
+ positions: {
1029
+ default: {
1030
+ colSpan: 12,
1031
+ },
1032
+ md: {
1033
+ colSpan: 6,
1034
+ },
1035
+ },
1036
+ },
1037
+ },
1038
+ {
1039
+ name: 'isActive',
1040
+ layout: {
1041
+ positions: {
1042
+ default: {
1043
+ colSpan: 12,
1044
+ },
1045
+ md: {
1046
+ colSpan: 6,
1047
+ },
1048
+ },
1049
+ },
1050
+ },
1051
+ {
1052
+ name: 'timezone',
1053
+ layout: {
1054
+ positions: {
1055
+ default: {
1056
+ colSpan: 12,
1057
+ },
1058
+ md: {
1059
+ colSpan: 6,
1060
+ },
1061
+ },
1062
+ },
1063
+ },
1064
+ {
1065
+ name: 'description',
1066
+ layout: {
1067
+ positions: {
1068
+ default: {
1069
+ colSpan: 12,
1070
+ },
1071
+ },
1072
+ },
1073
+ },
1074
+ {
1075
+ name: 'isPrimary',
1076
+ layout: {
1077
+ positions: {
1078
+ default: {
1079
+ colSpan: 12,
1080
+ },
1081
+ md: {
1082
+ colSpan: 6,
1083
+ },
1084
+ },
1085
+ },
1086
+ },
1087
+ {
1088
+ name: 'validFrom',
1089
+ layout: {
1090
+ positions: {
1091
+ default: {
1092
+ colSpan: 12,
1093
+ },
1094
+ md: {
1095
+ colSpan: 6,
1096
+ },
1097
+ },
1098
+ },
1099
+ },
1100
+ {
1101
+ name: 'validTo',
1102
+ layout: {
1103
+ positions: {
1104
+ default: {
1105
+ colSpan: 12,
1106
+ },
1107
+ md: {
1108
+ colSpan: 6,
1109
+ },
1110
+ },
1111
+ },
1112
+ },
1113
+ ],
1114
+ },
1115
+ update: {
1116
+ sections: [
1117
+ {
1118
+ id: 'basic-info',
1119
+ },
1120
+ {
1121
+ id: 'address',
1122
+ },
1123
+ {
1124
+ id: 'validity',
1125
+ },
1126
+ {
1127
+ id: 'additional',
1128
+ },
1129
+ {
1130
+ id: 'settings',
1131
+ },
1132
+ ],
1133
+ properties: [
1134
+ {
1135
+ name: 'title',
1136
+ layout: {
1137
+ positions: {
1138
+ default: {
1139
+ colSpan: 12,
1140
+ },
1141
+ md: {
1142
+ colSpan: 6,
1143
+ },
1144
+ },
1145
+ },
1146
+ },
1147
+ {
1148
+ name: 'code',
1149
+ layout: {
1150
+ positions: {
1151
+ default: {
1152
+ colSpan: 12,
1153
+ },
1154
+ md: {
1155
+ colSpan: 6,
1156
+ },
1157
+ },
1158
+ },
1159
+ },
1160
+ {
1161
+ name: 'locationTypeId',
1162
+ layout: {
1163
+ positions: {
1164
+ default: {
1165
+ colSpan: 12,
1166
+ },
1167
+ md: {
1168
+ colSpan: 6,
1169
+ },
1170
+ },
1171
+ },
1172
+ },
1173
+ {
1174
+ name: 'description',
1175
+ layout: {
1176
+ positions: {
1177
+ default: {
1178
+ colSpan: 12,
1179
+ },
1180
+ md: {
1181
+ colSpan: 12,
1182
+ },
1183
+ },
1184
+ },
1185
+ },
1186
+ {
1187
+ name: 'parentLocationId',
1188
+ layout: {
1189
+ positions: {
1190
+ default: {
1191
+ colSpan: 12,
1192
+ },
1193
+ md: {
1194
+ colSpan: 6,
1195
+ },
1196
+ },
1197
+ },
1198
+ },
1199
+ {
1200
+ name: 'street1',
1201
+ layout: {
1202
+ positions: {
1203
+ default: {
1204
+ colSpan: 12,
1205
+ },
1206
+ },
1207
+ },
1208
+ },
1209
+ {
1210
+ name: 'street2',
1211
+ layout: {
1212
+ positions: {
1213
+ default: {
1214
+ colSpan: 12,
1215
+ },
1216
+ },
1217
+ },
1218
+ },
1219
+ {
1220
+ name: 'cityId',
1221
+ layout: {
1222
+ positions: {
1223
+ default: {
1224
+ colSpan: 12,
1225
+ },
1226
+ md: {
1227
+ colSpan: 4,
1228
+ },
1229
+ },
1230
+ },
1231
+ },
1232
+ {
1233
+ name: 'stateId',
1234
+ layout: {
1235
+ positions: {
1236
+ default: {
1237
+ colSpan: 12,
1238
+ },
1239
+ md: {
1240
+ colSpan: 4,
1241
+ },
1242
+ },
1243
+ },
1244
+ },
1245
+ {
1246
+ name: 'countryId',
1247
+ layout: {
1248
+ positions: {
1249
+ default: {
1250
+ colSpan: 12,
1251
+ },
1252
+ md: {
1253
+ colSpan: 4,
1254
+ },
1255
+ },
1256
+ },
1257
+ },
1258
+ {
1259
+ name: 'postalCode',
1260
+ layout: {
1261
+ positions: {
1262
+ default: {
1263
+ colSpan: 12,
1264
+ },
1265
+ md: {
1266
+ colSpan: 6,
1267
+ },
1268
+ },
1269
+ },
1270
+ },
1271
+ {
1272
+ name: 'hasCoordinates',
1273
+ layout: {
1274
+ positions: {
1275
+ default: {
1276
+ colSpan: 6,
1277
+ },
1278
+ },
1279
+ },
1280
+ },
1281
+ {
1282
+ name: 'coordinates',
1283
+ layout: {
1284
+ label: {
1285
+ visible: false,
1286
+ },
1287
+ positions: {
1288
+ default: {
1289
+ colSpan: 12,
1290
+ },
1291
+ },
1292
+ },
1293
+ },
1294
+ {
1295
+ name: 'isActive',
1296
+ layout: {
1297
+ positions: {
1298
+ default: {
1299
+ colSpan: 12,
1300
+ },
1301
+ md: {
1302
+ colSpan: 6,
1303
+ },
1304
+ },
1305
+ },
1306
+ },
1307
+ {
1308
+ name: 'timezone',
1309
+ layout: {
1310
+ positions: {
1311
+ default: {
1312
+ colSpan: 12,
1313
+ },
1314
+ md: {
1315
+ colSpan: 6,
1316
+ },
1317
+ },
1318
+ },
1319
+ },
1320
+ ],
1321
+ },
1322
+ single: {
1323
+ title: '{{title}}',
1324
+ sections: [
1325
+ {
1326
+ id: 'basic-info',
1327
+ layout: {
1328
+ positions: {
1329
+ lg: {
1330
+ colSpan: 12,
1331
+ },
1332
+ },
1333
+ },
1334
+ },
1335
+ {
1336
+ id: 'address',
1337
+ layout: {
1338
+ positions: {
1339
+ lg: {
1340
+ colSpan: 12,
1341
+ },
1342
+ },
1343
+ },
1344
+ },
1345
+ {
1346
+ id: 'geographic',
1347
+ layout: {
1348
+ positions: {
1349
+ lg: {
1350
+ colSpan: 12,
1351
+ },
1352
+ },
1353
+ },
1354
+ },
1355
+ {
1356
+ id: 'validity',
1357
+ layout: {
1358
+ positions: {
1359
+ lg: {
1360
+ colSpan: 12,
1361
+ },
1362
+ },
1363
+ },
1364
+ },
1365
+ {
1366
+ id: 'additional',
1367
+ layout: {
1368
+ positions: {
1369
+ lg: {
1370
+ colSpan: 12,
1371
+ },
1372
+ },
1373
+ },
1374
+ },
1375
+ {
1376
+ id: 'settings',
1377
+ layout: {
1378
+ positions: {
1379
+ lg: {
1380
+ colSpan: 12,
1381
+ },
1382
+ },
1383
+ },
1384
+ },
1385
+ ],
1386
+ properties: [
1387
+ {
1388
+ name: 'title',
1389
+ layout: {
1390
+ positions: {
1391
+ lg: {
1392
+ colSpan: 6,
1393
+ order: 1,
1394
+ },
1395
+ },
1396
+ },
1397
+ },
1398
+ {
1399
+ name: 'code',
1400
+ layout: {
1401
+ positions: {
1402
+ lg: {
1403
+ colSpan: 6,
1404
+ order: 2,
1405
+ },
1406
+ },
1407
+ },
1408
+ },
1409
+ {
1410
+ name: 'locationTypeId',
1411
+ layout: {
1412
+ positions: {
1413
+ lg: {
1414
+ colSpan: 6,
1415
+ order: 3,
1416
+ },
1417
+ },
1418
+ },
1419
+ },
1420
+ {
1421
+ name: 'description',
1422
+ layout: {
1423
+ positions: {
1424
+ lg: {
1425
+ colSpan: 12,
1426
+ order: 3,
1427
+ },
1428
+ },
1429
+ },
1430
+ },
1431
+ {
1432
+ name: 'parentLocationId',
1433
+ layout: {
1434
+ positions: {
1435
+ lg: {
1436
+ colSpan: 6,
1437
+ order: 11,
1438
+ },
1439
+ },
1440
+ },
1441
+ },
1442
+ {
1443
+ name: 'street1',
1444
+ layout: {
1445
+ positions: {
1446
+ lg: {
1447
+ colSpan: 12,
1448
+ order: 4,
1449
+ },
1450
+ },
1451
+ },
1452
+ },
1453
+ {
1454
+ name: 'street2',
1455
+ layout: {
1456
+ positions: {
1457
+ lg: {
1458
+ colSpan: 12,
1459
+ order: 5,
1460
+ },
1461
+ },
1462
+ },
1463
+ },
1464
+ {
1465
+ name: 'cityId',
1466
+ layout: {
1467
+ positions: {
1468
+ lg: {
1469
+ colSpan: 4,
1470
+ order: 6,
1471
+ },
1472
+ },
1473
+ },
1474
+ },
1475
+ {
1476
+ name: 'stateId',
1477
+ layout: {
1478
+ positions: {
1479
+ lg: {
1480
+ colSpan: 4,
1481
+ order: 7,
1482
+ },
1483
+ },
1484
+ },
1485
+ },
1486
+ {
1487
+ name: 'countryId',
1488
+ layout: {
1489
+ positions: {
1490
+ lg: {
1491
+ colSpan: 4,
1492
+ order: 8,
1493
+ },
1494
+ },
1495
+ },
1496
+ },
1497
+ {
1498
+ name: 'postalCode',
1499
+ layout: {
1500
+ positions: {
1501
+ lg: {
1502
+ colSpan: 6,
1503
+ order: 9,
1504
+ },
1505
+ },
1506
+ },
1507
+ },
1508
+ {
1509
+ name: 'coordinates',
1510
+ layout: {
1511
+ positions: {
1512
+ lg: {
1513
+ colSpan: 12,
1514
+ order: 10,
1515
+ },
1516
+ },
1517
+ },
1518
+ },
1519
+ {
1520
+ name: 'isPrimary',
1521
+ layout: {
1522
+ positions: {
1523
+ lg: {
1524
+ colSpan: 6,
1525
+ order: 12,
1526
+ },
1527
+ },
1528
+ },
1529
+ },
1530
+ {
1531
+ name: 'validFrom',
1532
+ layout: {
1533
+ positions: {
1534
+ lg: {
1535
+ colSpan: 6,
1536
+ order: 13,
1537
+ },
1538
+ },
1539
+ },
1540
+ },
1541
+ {
1542
+ name: 'validTo',
1543
+ layout: {
1544
+ positions: {
1545
+ lg: {
1546
+ colSpan: 6,
1547
+ order: 14,
1548
+ },
1549
+ },
1550
+ },
1551
+ },
1552
+ {
1553
+ name: 'isActive',
1554
+ layout: {
1555
+ positions: {
1556
+ lg: {
1557
+ colSpan: 6,
1558
+ order: 15,
1559
+ },
1560
+ },
1561
+ },
1562
+ },
1563
+ {
1564
+ name: 'timezone',
1565
+ layout: {
1566
+ positions: {
1567
+ lg: {
1568
+ colSpan: 6,
1569
+ order: 16,
1570
+ },
1571
+ },
1572
+ },
1573
+ },
1574
+ ],
1575
+ actions: [
1576
+ ...entityMasterRecordActions()
1577
+ ],
1578
+ },
1579
+ list: {
1580
+ actions: [
1581
+ ...entityMasterCrudActions(),
1582
+ ],
1583
+ views: [
1584
+ createAllQueryView({
1585
+ sorts: [{ name: 'title', dir: 'asc' }]
1586
+ }),
1587
+ ],
1588
+ },
1589
+ },
1590
+ },
1591
+ };
1592
+ return entityDef;
1593
+ }
1594
+
1595
+ var location_entity = /*#__PURE__*/Object.freeze({
1596
+ __proto__: null,
1597
+ locationFactory: locationFactory
1598
+ });
1599
+
1600
+ async function locationTypeFactory(injector) {
1601
+ const dataService = injector.get(AXMLocationTypeService);
1602
+ const i18n = RootConfig.config.i18n;
1603
+ const entityDef = {
1604
+ module: RootConfig.module.name,
1605
+ name: RootConfig.entities.locationType.name,
1606
+ source: '',
1607
+ title: RootConfig.entities.locationType.title,
1608
+ formats: {
1609
+ individual: RootConfig.entities.locationType.title,
1610
+ plural: RootConfig.entities.locationType.titlePlural,
1611
+ searchResult: {
1612
+ title: '{{ title }}',
1613
+ description: '{{ description }}',
1614
+ },
1615
+ },
1616
+ groups: [
1617
+ {
1618
+ id: 'basic-info',
1619
+ title: '@general:terms.basic-info',
1620
+ },
1621
+ {
1622
+ id: 'appearance',
1623
+ title: '@general:terms.appearance',
1624
+ },
1625
+ {
1626
+ id: 'settings',
1627
+ title: '@general:terms.settings',
1628
+ },
1629
+ ],
1630
+ properties: [
1631
+ {
1632
+ name: 'title',
1633
+ title: '@general:terms.title',
1634
+ groupId: 'basic-info',
1635
+ options: {
1636
+ sort: {
1637
+ enabled: true,
1638
+ },
1639
+ filter: {
1640
+ advance: {
1641
+ enabled: true,
1642
+ },
1643
+ inline: {
1644
+ enabled: true,
1645
+ },
1646
+ },
1647
+ },
1648
+ schema: {
1649
+ dataType: 'string',
1650
+ interface: {
1651
+ type: AXPWidgetsCatalog.text,
1652
+ options: {
1653
+ placeholder: 'Enter location type name',
1654
+ },
1655
+ },
1656
+ },
1657
+ validations: [
1658
+ {
1659
+ rule: 'required',
1660
+ },
1661
+ ],
1662
+ },
1663
+ {
1664
+ name: 'description',
1665
+ title: '@general:terms.description',
1666
+ groupId: 'basic-info',
1667
+ options: {
1668
+ filter: {
1669
+ advance: {
1670
+ enabled: true,
1671
+ },
1672
+ },
1673
+ },
1674
+ schema: {
1675
+ dataType: 'string',
1676
+ interface: {
1677
+ type: AXPWidgetsCatalog.largeText,
1678
+ options: {
1679
+ rows: 3,
1680
+ },
1681
+ },
1682
+ },
1683
+ },
1684
+ {
1685
+ name: 'icon',
1686
+ title: '@general:terms.icon',
1687
+ groupId: 'appearance',
1688
+ options: {
1689
+ filter: {
1690
+ advance: {
1691
+ enabled: true,
1692
+ },
1693
+ },
1694
+ },
1695
+ schema: {
1696
+ dataType: 'string',
1697
+ interface: {
1698
+ type: AXPWidgetsCatalog.text,
1699
+ options: {
1700
+ placeholder: 'e.g., fa-light fa-building',
1701
+ },
1702
+ },
1703
+ },
1704
+ },
1705
+ {
1706
+ name: 'color',
1707
+ title: '@general:terms.color',
1708
+ groupId: 'appearance',
1709
+ options: {
1710
+ filter: {
1711
+ advance: {
1712
+ enabled: true,
1713
+ },
1714
+ },
1715
+ },
1716
+ schema: {
1717
+ dataType: 'string',
1718
+ interface: {
1719
+ type: AXPWidgetsCatalog.color,
1720
+ options: {
1721
+ format: 'hex',
1722
+ },
1723
+ },
1724
+ },
1725
+ },
1726
+ {
1727
+ name: 'isActive',
1728
+ title: '@general:terms.is-active',
1729
+ groupId: 'settings',
1730
+ options: {
1731
+ filter: {
1732
+ advance: {
1733
+ enabled: true,
1734
+ },
1735
+ inline: {
1736
+ enabled: true,
1737
+ },
1738
+ },
1739
+ },
1740
+ schema: {
1741
+ dataType: 'boolean',
1742
+ interface: {
1743
+ type: AXPWidgetsCatalog.toggle,
1744
+ },
1745
+ },
1746
+ validations: [
1747
+ {
1748
+ rule: 'required',
1749
+ },
1750
+ ],
1751
+ },
1752
+ ],
1753
+ columns: [
1754
+ { name: 'title' },
1755
+ { name: 'description' },
1756
+ { name: 'icon' },
1757
+ { name: 'color' },
1758
+ { name: 'isActive' },
1759
+ ],
1760
+ commands: {
1761
+ create: {
1762
+ execute: async (data) => {
1763
+ const res = await dataService.insertOne(data);
1764
+ return { id: res };
1765
+ },
1766
+ },
1767
+ delete: {
1768
+ execute: async (id) => {
1769
+ return await dataService.deleteOne(id);
1770
+ },
1771
+ },
1772
+ update: {
1773
+ execute: async (data) => {
1774
+ return await dataService.updateOne(data.id, data);
1775
+ },
1776
+ },
1777
+ },
1778
+ queries: {
1779
+ byKey: {
1780
+ execute: async (id) => {
1781
+ return await dataService.getOne(id);
1782
+ },
1783
+ type: AXPEntityQueryType.Single,
1784
+ },
1785
+ list: {
1786
+ execute: async (e) => {
1787
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
1788
+ },
1789
+ type: AXPEntityQueryType.List,
1790
+ },
1791
+ },
1792
+ interfaces: {
1793
+ master: {
1794
+ create: {
1795
+ sections: [
1796
+ {
1797
+ id: 'basic-info',
1798
+ },
1799
+ {
1800
+ id: 'appearance',
1801
+ },
1802
+ {
1803
+ id: 'settings',
1804
+ },
1805
+ ],
1806
+ properties: [
1807
+ {
1808
+ name: 'title',
1809
+ layout: {
1810
+ positions: {
1811
+ default: {
1812
+ colSpan: 12,
1813
+ },
1814
+ },
1815
+ },
1816
+ },
1817
+ {
1818
+ name: 'description',
1819
+ layout: {
1820
+ positions: {
1821
+ default: {
1822
+ colSpan: 12,
1823
+ },
1824
+ },
1825
+ },
1826
+ },
1827
+ {
1828
+ name: 'icon',
1829
+ layout: {
1830
+ positions: {
1831
+ default: {
1832
+ colSpan: 12,
1833
+ },
1834
+ md: {
1835
+ colSpan: 6,
1836
+ },
1837
+ },
1838
+ },
1839
+ },
1840
+ {
1841
+ name: 'color',
1842
+ layout: {
1843
+ positions: {
1844
+ default: {
1845
+ colSpan: 12,
1846
+ },
1847
+ md: {
1848
+ colSpan: 6,
1849
+ },
1850
+ },
1851
+ },
1852
+ },
1853
+ {
1854
+ name: 'isActive',
1855
+ layout: {
1856
+ positions: {
1857
+ default: {
1858
+ colSpan: 12,
1859
+ },
1860
+ },
1861
+ },
1862
+ },
1863
+ ],
1864
+ },
1865
+ update: {
1866
+ sections: [
1867
+ {
1868
+ id: 'basic-info',
1869
+ },
1870
+ {
1871
+ id: 'appearance',
1872
+ },
1873
+ {
1874
+ id: 'settings',
1875
+ },
1876
+ ],
1877
+ properties: [
1878
+ {
1879
+ name: 'title',
1880
+ layout: {
1881
+ positions: {
1882
+ default: {
1883
+ colSpan: 12,
1884
+ },
1885
+ },
1886
+ },
1887
+ },
1888
+ {
1889
+ name: 'description',
1890
+ layout: {
1891
+ positions: {
1892
+ default: {
1893
+ colSpan: 12,
1894
+ },
1895
+ },
1896
+ },
1897
+ },
1898
+ {
1899
+ name: 'icon',
1900
+ layout: {
1901
+ positions: {
1902
+ default: {
1903
+ colSpan: 12,
1904
+ },
1905
+ md: {
1906
+ colSpan: 6,
1907
+ },
1908
+ },
1909
+ },
1910
+ },
1911
+ {
1912
+ name: 'color',
1913
+ layout: {
1914
+ positions: {
1915
+ default: {
1916
+ colSpan: 12,
1917
+ },
1918
+ md: {
1919
+ colSpan: 6,
1920
+ },
1921
+ },
1922
+ },
1923
+ },
1924
+ {
1925
+ name: 'isActive',
1926
+ layout: {
1927
+ positions: {
1928
+ default: {
1929
+ colSpan: 12,
1930
+ },
1931
+ },
1932
+ },
1933
+ },
1934
+ ],
1935
+ },
1936
+ single: {
1937
+ title: '{{title}}',
1938
+ sections: [
1939
+ {
1940
+ id: 'basic-info',
1941
+ layout: {
1942
+ positions: {
1943
+ lg: {
1944
+ colSpan: 12,
1945
+ },
1946
+ },
1947
+ },
1948
+ },
1949
+ {
1950
+ id: 'appearance',
1951
+ layout: {
1952
+ positions: {
1953
+ lg: {
1954
+ colSpan: 12,
1955
+ },
1956
+ },
1957
+ },
1958
+ },
1959
+ {
1960
+ id: 'settings',
1961
+ layout: {
1962
+ positions: {
1963
+ lg: {
1964
+ colSpan: 12,
1965
+ },
1966
+ },
1967
+ },
1968
+ },
1969
+ ],
1970
+ properties: [
1971
+ {
1972
+ name: 'title',
1973
+ layout: {
1974
+ positions: {
1975
+ lg: {
1976
+ colSpan: 12,
1977
+ order: 1,
1978
+ },
1979
+ },
1980
+ },
1981
+ },
1982
+ {
1983
+ name: 'description',
1984
+ layout: {
1985
+ positions: {
1986
+ lg: {
1987
+ colSpan: 12,
1988
+ order: 2,
1989
+ },
1990
+ },
1991
+ },
1992
+ },
1993
+ {
1994
+ name: 'icon',
1995
+ layout: {
1996
+ positions: {
1997
+ lg: {
1998
+ colSpan: 6,
1999
+ order: 3,
2000
+ },
2001
+ },
2002
+ },
2003
+ },
2004
+ {
2005
+ name: 'color',
2006
+ layout: {
2007
+ positions: {
2008
+ lg: {
2009
+ colSpan: 6,
2010
+ order: 4,
2011
+ },
2012
+ },
2013
+ },
2014
+ },
2015
+ {
2016
+ name: 'isActive',
2017
+ layout: {
2018
+ positions: {
2019
+ lg: {
2020
+ colSpan: 12,
2021
+ order: 5,
2022
+ },
2023
+ },
2024
+ },
2025
+ },
2026
+ ],
2027
+ actions: [
2028
+ {
2029
+ title: '@general:actions.delete.title',
2030
+ command: 'delete-entity',
2031
+ priority: 'secondary',
2032
+ type: 'delete',
2033
+ scope: AXPEntityCommandScope.Individual,
2034
+ },
2035
+ ],
2036
+ },
2037
+ list: {
2038
+ actions: [
2039
+ {
2040
+ title: '@general:actions.create.title',
2041
+ command: 'create-entity',
2042
+ priority: 'primary',
2043
+ type: 'create',
2044
+ scope: AXPEntityCommandScope.TypeLevel,
2045
+ },
2046
+ {
2047
+ title: '@general:actions.delete-items.title',
2048
+ command: 'delete-entity',
2049
+ priority: 'primary',
2050
+ type: 'delete',
2051
+ scope: AXPEntityCommandScope.Selected,
2052
+ },
2053
+ {
2054
+ title: '@general:actions.detail.title',
2055
+ command: 'open-entity',
2056
+ priority: 'secondary',
2057
+ type: 'view',
2058
+ scope: AXPEntityCommandScope.Individual,
2059
+ },
2060
+ {
2061
+ title: '@general:actions.delete.title',
2062
+ command: 'delete-entity',
2063
+ priority: 'secondary',
2064
+ type: 'delete',
2065
+ scope: AXPEntityCommandScope.Individual,
2066
+ },
2067
+ ],
2068
+ views: [
2069
+ createAllQueryView({
2070
+ sorts: [{ name: 'title', dir: 'asc' }]
2071
+ }),
2072
+ ],
2073
+ },
2074
+ },
2075
+ },
2076
+ };
2077
+ return entityDef;
2078
+ }
2079
+
2080
+ var locationType_entity = /*#__PURE__*/Object.freeze({
2081
+ __proto__: null,
2082
+ locationTypeFactory: locationTypeFactory
2083
+ });
2084
+
2085
+ async function geographicRegionFactory(injector) {
2086
+ const dataService = injector.get(AXMGeographicRegionService);
2087
+ const i18n = RootConfig.config.i18n;
2088
+ const entityDef = {
2089
+ module: RootConfig.module.name,
2090
+ name: RootConfig.entities.geographicRegion.name,
2091
+ source: '',
2092
+ parentKey: 'parentId',
2093
+ title: RootConfig.entities.geographicRegion.title,
2094
+ formats: {
2095
+ individual: RootConfig.entities.geographicRegion.title,
2096
+ plural: RootConfig.entities.geographicRegion.titlePlural,
2097
+ searchResult: {
2098
+ title: '{{ name }}',
2099
+ description: '{{ type }}{{ parentId ? " (Child)" : "" }}',
2100
+ },
2101
+ },
2102
+ groups: [
2103
+ {
2104
+ id: 'basic-info',
2105
+ title: '@general:terms.basic-info',
2106
+ },
2107
+ {
2108
+ id: 'hierarchy',
2109
+ title: '@location-management:geographic-region.hierarchy',
2110
+ },
2111
+ {
2112
+ id: 'geographic-data',
2113
+ title: '@location-management:geographic-region.geographic-data',
2114
+ },
2115
+ {
2116
+ id: 'metadata',
2117
+ title: '@general:terms.metadata',
2118
+ },
2119
+ {
2120
+ id: 'settings',
2121
+ title: '@general:terms.settings',
2122
+ },
2123
+ ],
2124
+ properties: [
2125
+ {
2126
+ name: 'title',
2127
+ title: '@general:terms.title',
2128
+ groupId: 'basic-info',
2129
+ options: {
2130
+ sort: {
2131
+ enabled: true,
2132
+ },
2133
+ filter: {
2134
+ advance: {
2135
+ enabled: true,
2136
+ },
2137
+ inline: {
2138
+ enabled: true,
2139
+ },
2140
+ },
2141
+ },
2142
+ schema: {
2143
+ dataType: 'string',
2144
+ interface: {
2145
+ type: AXPWidgetsCatalog.text,
2146
+ options: {
2147
+ placeholder: 'Enter region title',
2148
+ },
2149
+ },
2150
+ },
2151
+ validations: [
2152
+ {
2153
+ rule: 'required',
2154
+ },
2155
+ ],
2156
+ },
2157
+ {
2158
+ name: 'code',
2159
+ title: '@general:terms.code',
2160
+ groupId: 'basic-info',
2161
+ options: {
2162
+ sort: {
2163
+ enabled: true,
2164
+ },
2165
+ filter: {
2166
+ advance: {
2167
+ enabled: true,
2168
+ },
2169
+ inline: {
2170
+ enabled: true,
2171
+ },
2172
+ },
2173
+ },
2174
+ schema: {
2175
+ dataType: 'string',
2176
+ interface: {
2177
+ type: AXPWidgetsCatalog.text,
2178
+ options: {
2179
+ placeholder: 'Region code (e.g., CA, US)',
2180
+ },
2181
+ },
2182
+ },
2183
+ },
2184
+ {
2185
+ name: 'type',
2186
+ title: '@location-management:geographic-region.type',
2187
+ groupId: 'basic-info',
2188
+ options: {
2189
+ sort: {
2190
+ enabled: true,
2191
+ },
2192
+ filter: {
2193
+ advance: {
2194
+ enabled: true,
2195
+ },
2196
+ inline: {
2197
+ enabled: true,
2198
+ },
2199
+ },
2200
+ },
2201
+ schema: {
2202
+ dataType: 'string',
2203
+ interface: {
2204
+ type: AXPWidgetsCatalog.select,
2205
+ options: {
2206
+ valueField: 'code',
2207
+ textField: 'title',
2208
+ dataSource: [
2209
+ { code: 'country', title: 'Country' },
2210
+ { code: 'state', text: 'State/Province' },
2211
+ { code: 'city', text: 'City' },
2212
+ { code: 'district', text: 'District' },
2213
+ ],
2214
+ },
2215
+ },
2216
+ },
2217
+ validations: [
2218
+ {
2219
+ rule: 'required',
2220
+ },
2221
+ ],
2222
+ },
2223
+ {
2224
+ name: 'parentId',
2225
+ title: '@location-management:geographic-region.parent-region',
2226
+ groupId: 'hierarchy',
2227
+ options: {
2228
+ filter: {
2229
+ advance: {
2230
+ enabled: true,
2231
+ },
2232
+ inline: {
2233
+ enabled: true,
2234
+ },
2235
+ },
2236
+ },
2237
+ schema: {
2238
+ dataType: 'object',
2239
+ interface: {
2240
+ type: AXPWidgetsCatalog.lookup,
2241
+ options: {
2242
+ entity: `${RootConfig.module.name}.${RootConfig.entities.geographicRegion.name}`,
2243
+ expose: [
2244
+ { source: 'id', target: 'parentRegion.id' },
2245
+ { source: 'name', target: 'parentRegion.name' },
2246
+ { source: 'type', target: 'parentRegion.type' },
2247
+ ],
2248
+ },
2249
+ },
2250
+ },
2251
+ },
2252
+ {
2253
+ name: 'coordinates',
2254
+ title: '@location-management:geographic-region.coordinates',
2255
+ groupId: 'geographic-data',
2256
+ options: {
2257
+ filter: {
2258
+ advance: {
2259
+ enabled: false,
2260
+ },
2261
+ },
2262
+ },
2263
+ schema: {
2264
+ dataType: 'string',
2265
+ interface: {
2266
+ type: AXPWidgetsCatalog.map,
2267
+ options: {
2268
+ hasDraw: true,
2269
+ maxPolygon: 0,
2270
+ fitToDraw: true
2271
+ },
2272
+ },
2273
+ },
2274
+ },
2275
+ {
2276
+ name: 'timezone',
2277
+ title: '@location-management:geographic-region.timezone',
2278
+ groupId: 'geographic-data',
2279
+ options: {
2280
+ filter: {
2281
+ advance: {
2282
+ enabled: true,
2283
+ },
2284
+ },
2285
+ },
2286
+ schema: {
2287
+ dataType: 'string',
2288
+ interface: {
2289
+ type: AXPWidgetsCatalog.select,
2290
+ options: {
2291
+ allowSearch: true,
2292
+ valueField: 'code',
2293
+ placeholder: 'e.g., America/New_York',
2294
+ dataSource: "timezones",
2295
+ },
2296
+ },
2297
+ },
2298
+ },
2299
+ {
2300
+ name: 'population',
2301
+ title: '@location-management:geographic-region.population',
2302
+ groupId: 'metadata',
2303
+ options: {
2304
+ filter: {
2305
+ advance: {
2306
+ enabled: true,
2307
+ },
2308
+ },
2309
+ },
2310
+ schema: {
2311
+ dataType: 'number',
2312
+ interface: {
2313
+ type: AXPWidgetsCatalog.number,
2314
+ options: {
2315
+ minValue: 0,
2316
+ },
2317
+ },
2318
+ },
2319
+ },
2320
+ {
2321
+ name: 'area',
2322
+ title: '@location-management:geographic-region.area',
2323
+ groupId: 'metadata',
2324
+ options: {
2325
+ filter: {
2326
+ advance: {
2327
+ enabled: true,
2328
+ },
2329
+ },
2330
+ },
2331
+ schema: {
2332
+ dataType: 'number',
2333
+ interface: {
2334
+ type: AXPWidgetsCatalog.number,
2335
+ options: {
2336
+ minValue: 0,
2337
+ placeholder: 'Area in square kilometers',
2338
+ },
2339
+ },
2340
+ },
2341
+ },
2342
+ {
2343
+ name: 'currency',
2344
+ title: '@location-management:geographic-region.currency',
2345
+ groupId: 'metadata',
2346
+ options: {
2347
+ filter: {
2348
+ advance: {
2349
+ enabled: true,
2350
+ },
2351
+ },
2352
+ },
2353
+ schema: {
2354
+ dataType: 'string',
2355
+ interface: {
2356
+ type: AXPWidgetsCatalog.select,
2357
+ options: {
2358
+ allowSearch: true,
2359
+ valueField: 'code',
2360
+ dataSource: "currencies",
2361
+ placeholder: 'e.g., USD, EUR, IRR',
2362
+ },
2363
+ },
2364
+ },
2365
+ },
2366
+ {
2367
+ name: 'isActive',
2368
+ title: '@general:terms.is-active',
2369
+ groupId: 'settings',
2370
+ options: {
2371
+ filter: {
2372
+ advance: {
2373
+ enabled: true,
2374
+ },
2375
+ inline: {
2376
+ enabled: true,
2377
+ },
2378
+ },
2379
+ },
2380
+ schema: {
2381
+ dataType: 'boolean',
2382
+ interface: {
2383
+ type: AXPWidgetsCatalog.toggle,
2384
+ },
2385
+ },
2386
+ validations: [
2387
+ {
2388
+ rule: 'required',
2389
+ },
2390
+ ],
2391
+ },
2392
+ ],
2393
+ columns: [
2394
+ { name: 'title', options: { width: '400px', order: 1 } },
2395
+ { name: 'code', options: { width: '150px', order: 2 } },
2396
+ { name: 'type', options: { width: '150px', dataPath: 'type.title', order: 3 } },
2397
+ { name: 'currency', options: { width: '150px', dataPath: 'currency.title', order: 4 } },
2398
+ { name: 'isActive', options: { width: '100px', order: 5 } },
2399
+ ],
2400
+ commands: {
2401
+ create: {
2402
+ execute: async (data) => {
2403
+ const res = await dataService.insertOne(data);
2404
+ return { id: res };
2405
+ },
2406
+ },
2407
+ delete: {
2408
+ execute: async (id) => {
2409
+ return await dataService.deleteOne(id);
2410
+ },
2411
+ },
2412
+ update: {
2413
+ execute: async (data) => {
2414
+ return await dataService.updateOne(data.id, data);
2415
+ },
2416
+ },
2417
+ },
2418
+ queries: {
2419
+ byKey: {
2420
+ execute: async (id) => {
2421
+ return await dataService.getOne(id);
2422
+ },
2423
+ type: AXPEntityQueryType.Single,
2424
+ },
2425
+ list: {
2426
+ execute: async (e) => {
2427
+ return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
2428
+ },
2429
+ type: AXPEntityQueryType.List,
2430
+ },
2431
+ },
2432
+ interfaces: {
2433
+ master: {
2434
+ create: {
2435
+ sections: [
2436
+ {
2437
+ id: 'basic-info',
2438
+ },
2439
+ {
2440
+ id: 'hierarchy',
2441
+ },
2442
+ {
2443
+ id: 'geographic-data',
2444
+ },
2445
+ {
2446
+ id: 'metadata',
2447
+ },
2448
+ {
2449
+ id: 'settings',
2450
+ },
2451
+ ],
2452
+ properties: [
2453
+ {
2454
+ name: 'title',
2455
+ layout: {
2456
+ positions: {
2457
+ default: {
2458
+ colSpan: 12,
2459
+ },
2460
+ md: {
2461
+ colSpan: 6,
2462
+ },
2463
+ },
2464
+ },
2465
+ },
2466
+ {
2467
+ name: 'code',
2468
+ layout: {
2469
+ positions: {
2470
+ default: {
2471
+ colSpan: 12,
2472
+ },
2473
+ md: {
2474
+ colSpan: 6,
2475
+ },
2476
+ },
2477
+ },
2478
+ },
2479
+ {
2480
+ name: 'type',
2481
+ layout: {
2482
+ positions: {
2483
+ default: {
2484
+ colSpan: 12,
2485
+ },
2486
+ md: {
2487
+ colSpan: 6,
2488
+ },
2489
+ },
2490
+ },
2491
+ },
2492
+ {
2493
+ name: 'parentId',
2494
+ layout: {
2495
+ positions: {
2496
+ default: {
2497
+ colSpan: 12,
2498
+ },
2499
+ },
2500
+ },
2501
+ },
2502
+ {
2503
+ name: 'coordinates',
2504
+ layout: {
2505
+ positions: {
2506
+ default: {
2507
+ colSpan: 12,
2508
+ },
2509
+ },
2510
+ },
2511
+ },
2512
+ {
2513
+ name: 'timezone',
2514
+ layout: {
2515
+ positions: {
2516
+ default: {
2517
+ colSpan: 12,
2518
+ },
2519
+ md: {
2520
+ colSpan: 12,
2521
+ },
2522
+ },
2523
+ },
2524
+ },
2525
+ {
2526
+ name: 'population',
2527
+ layout: {
2528
+ positions: {
2529
+ default: {
2530
+ colSpan: 12,
2531
+ },
2532
+ md: {
2533
+ colSpan: 4,
2534
+ },
2535
+ },
2536
+ },
2537
+ },
2538
+ {
2539
+ name: 'area',
2540
+ layout: {
2541
+ positions: {
2542
+ default: {
2543
+ colSpan: 12,
2544
+ },
2545
+ md: {
2546
+ colSpan: 4,
2547
+ },
2548
+ },
2549
+ },
2550
+ },
2551
+ {
2552
+ name: 'currency',
2553
+ layout: {
2554
+ positions: {
2555
+ default: {
2556
+ colSpan: 12,
2557
+ },
2558
+ md: {
2559
+ colSpan: 4,
2560
+ },
2561
+ },
2562
+ },
2563
+ },
2564
+ {
2565
+ name: 'isActive',
2566
+ layout: {
2567
+ positions: {
2568
+ default: {
2569
+ colSpan: 12,
2570
+ },
2571
+ },
2572
+ },
2573
+ },
2574
+ ],
2575
+ },
2576
+ update: {
2577
+ sections: [
2578
+ {
2579
+ id: 'basic-info',
2580
+ },
2581
+ {
2582
+ id: 'hierarchy',
2583
+ },
2584
+ {
2585
+ id: 'geographic-data',
2586
+ },
2587
+ {
2588
+ id: 'metadata',
2589
+ },
2590
+ {
2591
+ id: 'settings',
2592
+ },
2593
+ ],
2594
+ properties: [
2595
+ {
2596
+ name: 'title',
2597
+ layout: {
2598
+ positions: {
2599
+ default: {
2600
+ colSpan: 12,
2601
+ },
2602
+ md: {
2603
+ colSpan: 6,
2604
+ },
2605
+ },
2606
+ },
2607
+ },
2608
+ {
2609
+ name: 'code',
2610
+ layout: {
2611
+ positions: {
2612
+ default: {
2613
+ colSpan: 12,
2614
+ },
2615
+ md: {
2616
+ colSpan: 6,
2617
+ },
2618
+ },
2619
+ },
2620
+ },
2621
+ {
2622
+ name: 'type',
2623
+ layout: {
2624
+ positions: {
2625
+ default: {
2626
+ colSpan: 12,
2627
+ },
2628
+ md: {
2629
+ colSpan: 6,
2630
+ },
2631
+ },
2632
+ },
2633
+ },
2634
+ {
2635
+ name: 'parentId',
2636
+ layout: {
2637
+ positions: {
2638
+ default: {
2639
+ colSpan: 12,
2640
+ },
2641
+ },
2642
+ },
2643
+ },
2644
+ {
2645
+ name: 'coordinates',
2646
+ layout: {
2647
+ positions: {
2648
+ default: {
2649
+ colSpan: 12,
2650
+ },
2651
+ },
2652
+ },
2653
+ },
2654
+ {
2655
+ name: 'timezone',
2656
+ layout: {
2657
+ positions: {
2658
+ default: {
2659
+ colSpan: 12,
2660
+ },
2661
+ md: {
2662
+ colSpan: 12,
2663
+ },
2664
+ },
2665
+ },
2666
+ },
2667
+ {
2668
+ name: 'population',
2669
+ layout: {
2670
+ positions: {
2671
+ default: {
2672
+ colSpan: 12,
2673
+ },
2674
+ md: {
2675
+ colSpan: 4,
2676
+ },
2677
+ },
2678
+ },
2679
+ },
2680
+ {
2681
+ name: 'area',
2682
+ layout: {
2683
+ positions: {
2684
+ default: {
2685
+ colSpan: 12,
2686
+ },
2687
+ md: {
2688
+ colSpan: 4,
2689
+ },
2690
+ },
2691
+ },
2692
+ },
2693
+ {
2694
+ name: 'currency',
2695
+ layout: {
2696
+ positions: {
2697
+ default: {
2698
+ colSpan: 12,
2699
+ },
2700
+ md: {
2701
+ colSpan: 4,
2702
+ },
2703
+ },
2704
+ },
2705
+ },
2706
+ {
2707
+ name: 'isActive',
2708
+ layout: {
2709
+ positions: {
2710
+ default: {
2711
+ colSpan: 12,
2712
+ },
2713
+ },
2714
+ },
2715
+ },
2716
+ ],
2717
+ },
2718
+ single: {
2719
+ title: '{{title}}',
2720
+ sections: [
2721
+ {
2722
+ id: 'basic-info',
2723
+ layout: {
2724
+ positions: {
2725
+ lg: {
2726
+ colSpan: 12,
2727
+ },
2728
+ },
2729
+ },
2730
+ },
2731
+ {
2732
+ id: 'hierarchy',
2733
+ layout: {
2734
+ positions: {
2735
+ lg: {
2736
+ colSpan: 12,
2737
+ },
2738
+ },
2739
+ },
2740
+ },
2741
+ {
2742
+ id: 'geographic-data',
2743
+ layout: {
2744
+ positions: {
2745
+ lg: {
2746
+ colSpan: 12,
2747
+ },
2748
+ },
2749
+ },
2750
+ },
2751
+ {
2752
+ id: 'metadata',
2753
+ layout: {
2754
+ positions: {
2755
+ lg: {
2756
+ colSpan: 6,
2757
+ },
2758
+ },
2759
+ },
2760
+ },
2761
+ {
2762
+ id: 'settings',
2763
+ layout: {
2764
+ positions: {
2765
+ lg: {
2766
+ colSpan: 6,
2767
+ },
2768
+ },
2769
+ },
2770
+ },
2771
+ ],
2772
+ properties: [
2773
+ {
2774
+ name: 'title',
2775
+ layout: {
2776
+ positions: {
2777
+ lg: {
2778
+ colSpan: 4,
2779
+ order: 1,
2780
+ },
2781
+ },
2782
+ },
2783
+ },
2784
+ {
2785
+ name: 'code',
2786
+ layout: {
2787
+ positions: {
2788
+ lg: {
2789
+ colSpan: 4,
2790
+ order: 2,
2791
+ },
2792
+ },
2793
+ },
2794
+ },
2795
+ {
2796
+ name: 'type',
2797
+ layout: {
2798
+ positions: {
2799
+ lg: {
2800
+ colSpan: 4,
2801
+ order: 3,
2802
+ },
2803
+ },
2804
+ },
2805
+ },
2806
+ {
2807
+ name: 'parentId',
2808
+ layout: {
2809
+ positions: {
2810
+ lg: {
2811
+ colSpan: 12,
2812
+ order: 5,
2813
+ },
2814
+ },
2815
+ },
2816
+ },
2817
+ {
2818
+ name: 'coordinates',
2819
+ layout: {
2820
+ positions: {
2821
+ lg: {
2822
+ colSpan: 12,
2823
+ order: 6,
2824
+ },
2825
+ },
2826
+ },
2827
+ },
2828
+ {
2829
+ name: 'timezone',
2830
+ layout: {
2831
+ positions: {
2832
+ lg: {
2833
+ colSpan: 12,
2834
+ order: 7,
2835
+ },
2836
+ },
2837
+ },
2838
+ },
2839
+ {
2840
+ name: 'population',
2841
+ layout: {
2842
+ positions: {
2843
+ lg: {
2844
+ colSpan: 4,
2845
+ order: 8,
2846
+ },
2847
+ },
2848
+ },
2849
+ },
2850
+ {
2851
+ name: 'area',
2852
+ layout: {
2853
+ positions: {
2854
+ lg: {
2855
+ colSpan: 4,
2856
+ order: 9,
2857
+ },
2858
+ },
2859
+ },
2860
+ },
2861
+ {
2862
+ name: 'currency',
2863
+ layout: {
2864
+ positions: {
2865
+ lg: {
2866
+ colSpan: 4,
2867
+ order: 10,
2868
+ },
2869
+ },
2870
+ },
2871
+ },
2872
+ {
2873
+ name: 'isActive',
2874
+ layout: {
2875
+ positions: {
2876
+ lg: {
2877
+ colSpan: 12,
2878
+ order: 11,
2879
+ },
2880
+ },
2881
+ },
2882
+ },
2883
+ ],
2884
+ actions: [
2885
+ ...entityMasterRecordActions()
2886
+ ],
2887
+ },
2888
+ list: {
2889
+ actions: [
2890
+ ...entityMasterCrudActions(),
2891
+ ],
2892
+ views: [
2893
+ createAllQueryView({
2894
+ sorts: [{ name: 'title', dir: 'asc' }]
2895
+ }),
2896
+ ],
2897
+ },
2898
+ },
2899
+ },
2900
+ };
2901
+ return entityDef;
2902
+ }
2903
+
2904
+ var geographicRegion_entity = /*#__PURE__*/Object.freeze({
2905
+ __proto__: null,
2906
+ geographicRegionFactory: geographicRegionFactory
2907
+ });
2908
+
2909
+ class AXMGeographicRegionDataSourceDefinition {
2910
+ constructor() {
2911
+ this.geographicRegionService = inject(AXMGeographicRegionService);
2912
+ //#region Country
2913
+ this.countries = {
2914
+ name: 'countries',
2915
+ title: 'Countries',
2916
+ columns: [
2917
+ {
2918
+ name: 'code',
2919
+ title: 'Code',
2920
+ type: 'string',
2921
+ datatype: 'string',
2922
+ },
2923
+ {
2924
+ name: 'title',
2925
+ title: 'Title',
2926
+ type: 'string',
2927
+ datatype: 'string',
2928
+ },
2929
+ ],
2930
+ filters: [],
2931
+ textField: { name: 'title', title: 'Title' },
2932
+ valueField: { name: 'id', title: 'Id' },
2933
+ samples: [
2934
+ { id: 'US', title: 'United States' },
2935
+ { id: 'CA', title: 'Canada' },
2936
+ { id: 'GB', title: 'United Kingdom' },
2937
+ { id: 'AU', title: 'Australia' },
2938
+ { id: 'NZ', title: 'New Zealand' },
2939
+ { id: 'ZA', title: 'South Africa' },
2940
+ { id: 'IN', title: 'India' },
2941
+ ],
2942
+ source: () => {
2943
+ return new AXDataSource({
2944
+ pageSize: 50,
2945
+ key: 'id',
2946
+ load: async (e) => {
2947
+ const result = await this.geographicRegionService.query({
2948
+ ...e,
2949
+ filter: { field: 'type', operator: { type: 'equal' }, value: 'country' },
2950
+ sort: [{ field: 'title', dir: 'asc' }],
2951
+ });
2952
+ return {
2953
+ items: result.items,
2954
+ total: result.total,
2955
+ };
2956
+ },
2957
+ byKey: async (key) => {
2958
+ const item = await this.geographicRegionService.getOne(key);
2959
+ return item;
2960
+ },
2961
+ });
2962
+ },
2963
+ };
2964
+ }
2965
+ //#endregion
2966
+ async items() {
2967
+ return [
2968
+ this.countries,
2969
+ ];
2970
+ }
2971
+ }
2972
+
2973
+ class AXMLocationManagementModule {
2974
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2975
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementModule, imports: [CommonModule] }); }
2976
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementModule, providers: [
2977
+ {
2978
+ provide: AXP_MENU_PROVIDER,
2979
+ useClass: AXMLocationManagementMenuProvider,
2980
+ multi: true,
2981
+ },
2982
+ {
2983
+ provide: AXP_ENTITY_DEFINITION_LOADER,
2984
+ useClass: AXMLocationManagementEntityProvider,
2985
+ multi: true,
2986
+ },
2987
+ {
2988
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
2989
+ useClass: AXMSettingProvider,
2990
+ multi: true,
2991
+ },
2992
+ {
2993
+ provide: AXP_SEARCH_PROVIDER,
2994
+ useClass: AXMSearchCommandProvider,
2995
+ multi: true,
2996
+ },
2997
+ {
2998
+ provide: AXP_PERMISSION_DEFINITION_PROVIDER,
2999
+ useClass: AXMLocationManagementPermissionDefinitionProvider,
3000
+ multi: true,
3001
+ },
3002
+ // Entity Services
3003
+ {
3004
+ provide: AXMLocationService,
3005
+ useClass: AXMLocationServiceImpl,
3006
+ },
3007
+ {
3008
+ provide: AXMLocationTypeService,
3009
+ useClass: AXMLocationTypeServiceImpl,
3010
+ },
3011
+ {
3012
+ provide: AXMGeographicRegionService,
3013
+ useClass: AXMGeographicRegionServiceImpl,
3014
+ },
3015
+ // Data Source Definitions
3016
+ {
3017
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
3018
+ useClass: AXMGeographicRegionDataSourceDefinition,
3019
+ multi: true,
3020
+ },
3021
+ ], imports: [CommonModule] }); }
3022
+ }
3023
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementModule, decorators: [{
3024
+ type: NgModule,
3025
+ args: [{
3026
+ imports: [CommonModule],
3027
+ exports: [],
3028
+ declarations: [],
3029
+ providers: [
3030
+ {
3031
+ provide: AXP_MENU_PROVIDER,
3032
+ useClass: AXMLocationManagementMenuProvider,
3033
+ multi: true,
3034
+ },
3035
+ {
3036
+ provide: AXP_ENTITY_DEFINITION_LOADER,
3037
+ useClass: AXMLocationManagementEntityProvider,
3038
+ multi: true,
3039
+ },
3040
+ {
3041
+ provide: AXP_SETTING_DEFINITION_PROVIDER,
3042
+ useClass: AXMSettingProvider,
3043
+ multi: true,
3044
+ },
3045
+ {
3046
+ provide: AXP_SEARCH_PROVIDER,
3047
+ useClass: AXMSearchCommandProvider,
3048
+ multi: true,
3049
+ },
3050
+ {
3051
+ provide: AXP_PERMISSION_DEFINITION_PROVIDER,
3052
+ useClass: AXMLocationManagementPermissionDefinitionProvider,
3053
+ multi: true,
3054
+ },
3055
+ // Entity Services
3056
+ {
3057
+ provide: AXMLocationService,
3058
+ useClass: AXMLocationServiceImpl,
3059
+ },
3060
+ {
3061
+ provide: AXMLocationTypeService,
3062
+ useClass: AXMLocationTypeServiceImpl,
3063
+ },
3064
+ {
3065
+ provide: AXMGeographicRegionService,
3066
+ useClass: AXMGeographicRegionServiceImpl,
3067
+ },
3068
+ // Data Source Definitions
3069
+ {
3070
+ provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
3071
+ useClass: AXMGeographicRegionDataSourceDefinition,
3072
+ multi: true,
3073
+ },
3074
+ ]
3075
+ }]
3076
+ }] });
3077
+
3078
+ class AXMLocationManagementService {
3079
+ constructor() {
3080
+ this.geographicRegionService = inject(AXMGeographicRegionService);
3081
+ }
3082
+ async getCountries() {
3083
+ const result = await this.geographicRegionService.query({
3084
+ skip: 0,
3085
+ take: 1000,
3086
+ filter: { field: 'type', operator: { type: 'equal' }, value: 'country' },
3087
+ sort: [{ field: 'title', dir: 'asc' }],
3088
+ });
3089
+ return result.items.map(m => ({
3090
+ code: m.code,
3091
+ title: m.title,
3092
+ id: m.id,
3093
+ timezone: m.timezone,
3094
+ }));
3095
+ }
3096
+ async getProvinces(countryId) {
3097
+ const result = await this.geographicRegionService.query({
3098
+ skip: 0,
3099
+ take: 1000,
3100
+ filter: { field: 'type', operator: { type: 'equal' }, value: 'state' },
3101
+ sort: [{ field: 'title', dir: 'asc' }],
3102
+ });
3103
+ return result.items.map(m => ({
3104
+ code: m.code,
3105
+ title: m.title,
3106
+ id: m.id,
3107
+ timezone: m.timezone,
3108
+ }));
3109
+ }
3110
+ async getCities(filter) {
3111
+ const result = await this.geographicRegionService.query({
3112
+ skip: 0,
3113
+ take: 1000,
3114
+ filter: { field: 'type', operator: { type: 'equal' }, value: 'city' },
3115
+ sort: [{ field: 'title', dir: 'asc' }],
3116
+ });
3117
+ return result.items.map(m => ({
3118
+ code: m.code,
3119
+ title: m.title,
3120
+ id: m.id,
3121
+ timezone: m.timezone,
3122
+ }));
3123
+ }
3124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3125
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementService, providedIn: 'root' }); }
3126
+ }
3127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocationManagementService, decorators: [{
3128
+ type: Injectable,
3129
+ args: [{
3130
+ providedIn: 'root'
3131
+ }]
3132
+ }] });
3133
+
3134
+ /**
3135
+ * Generated bundle index. Do not edit.
3136
+ */
3137
+
3138
+ export { AXMGeographicRegionService, AXMGeographicRegionServiceImpl, AXMLocationManagementEntityProvider, AXMLocationManagementMenuProvider, AXMLocationManagementModule, AXMLocationManagementService, AXMLocationServiceImpl as AXMLocationService, AXMLocationTypeServiceImpl as AXMLocationTypeService, AXMSearchCommandProvider, AXMSettingProvider, RootConfig, geographicRegionFactory, locationFactory, locationTypeFactory };
3139
+ //# sourceMappingURL=acorex-modules-location-management.mjs.map