@acorex-platform/framework-shared 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/acorex-platform-framework-shared-0.0.1.tgz +0 -0
  2. package/core/src/index.d.ts +2 -0
  3. package/core/src/index.d.ts.map +1 -0
  4. package/core/src/index.js +5 -0
  5. package/core/src/index.js.map +1 -0
  6. package/core/src/lib/core/actions.types.d.ts +724 -0
  7. package/core/src/lib/core/actions.types.d.ts.map +1 -0
  8. package/core/src/lib/core/actions.types.js +851 -0
  9. package/core/src/lib/core/actions.types.js.map +1 -0
  10. package/core/src/lib/core/context.types.d.ts +23 -0
  11. package/core/src/lib/core/context.types.d.ts.map +1 -0
  12. package/core/src/lib/core/context.types.js +9 -0
  13. package/core/src/lib/core/context.types.js.map +1 -0
  14. package/core/src/lib/core/core.types.d.ts +193 -0
  15. package/core/src/lib/core/core.types.d.ts.map +1 -0
  16. package/core/src/lib/core/core.types.js +90 -0
  17. package/core/src/lib/core/core.types.js.map +1 -0
  18. package/core/src/lib/core/index.d.ts +8 -0
  19. package/core/src/lib/core/index.d.ts.map +1 -0
  20. package/core/src/lib/core/index.js +13 -0
  21. package/core/src/lib/core/index.js.map +1 -0
  22. package/core/src/lib/core/logo.types.d.ts +13 -0
  23. package/core/src/lib/core/logo.types.d.ts.map +1 -0
  24. package/core/src/lib/core/logo.types.js +5 -0
  25. package/core/src/lib/core/logo.types.js.map +1 -0
  26. package/core/src/lib/core/response.types.d.ts +10 -0
  27. package/core/src/lib/core/response.types.d.ts.map +1 -0
  28. package/core/src/lib/core/response.types.js +5 -0
  29. package/core/src/lib/core/response.types.js.map +1 -0
  30. package/core/src/lib/core/scope.types.d.ts +9 -0
  31. package/core/src/lib/core/scope.types.d.ts.map +1 -0
  32. package/core/src/lib/core/scope.types.js +32 -0
  33. package/core/src/lib/core/scope.types.js.map +1 -0
  34. package/core/src/lib/core/shims.types.d.ts +20 -0
  35. package/core/src/lib/core/shims.types.d.ts.map +1 -0
  36. package/core/src/lib/core/shims.types.js +5 -0
  37. package/core/src/lib/core/shims.types.js.map +1 -0
  38. package/core/src/lib/data/column.types.d.ts +6 -0
  39. package/core/src/lib/data/column.types.d.ts.map +1 -0
  40. package/core/src/lib/data/column.types.js +5 -0
  41. package/core/src/lib/data/column.types.js.map +1 -0
  42. package/core/src/lib/data/data.types.d.ts +40 -0
  43. package/core/src/lib/data/data.types.d.ts.map +1 -0
  44. package/core/src/lib/data/data.types.js +5 -0
  45. package/core/src/lib/data/data.types.js.map +1 -0
  46. package/core/src/lib/data/export.types.d.ts +64 -0
  47. package/core/src/lib/data/export.types.d.ts.map +1 -0
  48. package/core/src/lib/data/export.types.js +14 -0
  49. package/core/src/lib/data/export.types.js.map +1 -0
  50. package/core/src/lib/data/filter.types.d.ts +42 -0
  51. package/core/src/lib/data/filter.types.d.ts.map +1 -0
  52. package/core/src/lib/data/filter.types.js +5 -0
  53. package/core/src/lib/data/filter.types.js.map +1 -0
  54. package/core/src/lib/data/index.d.ts +7 -0
  55. package/core/src/lib/data/index.d.ts.map +1 -0
  56. package/core/src/lib/data/index.js +12 -0
  57. package/core/src/lib/data/index.js.map +1 -0
  58. package/core/src/lib/data/multi-source.types.d.ts +8 -0
  59. package/core/src/lib/data/multi-source.types.d.ts.map +1 -0
  60. package/core/src/lib/data/multi-source.types.js +5 -0
  61. package/core/src/lib/data/multi-source.types.js.map +1 -0
  62. package/core/src/lib/data/sort.types.d.ts +8 -0
  63. package/core/src/lib/data/sort.types.d.ts.map +1 -0
  64. package/core/src/lib/data/sort.types.js +5 -0
  65. package/core/src/lib/data/sort.types.js.map +1 -0
  66. package/core/src/lib/domain/address.types.d.ts +38 -0
  67. package/core/src/lib/domain/address.types.d.ts.map +1 -0
  68. package/core/src/lib/domain/address.types.js +5 -0
  69. package/core/src/lib/domain/address.types.js.map +1 -0
  70. package/core/src/lib/domain/ai-output.types.d.ts +5 -0
  71. package/core/src/lib/domain/ai-output.types.d.ts.map +1 -0
  72. package/core/src/lib/domain/ai-output.types.js +5 -0
  73. package/core/src/lib/domain/ai-output.types.js.map +1 -0
  74. package/core/src/lib/domain/file-storage.types.d.ts +203 -0
  75. package/core/src/lib/domain/file-storage.types.d.ts.map +1 -0
  76. package/core/src/lib/domain/file-storage.types.js +12 -0
  77. package/core/src/lib/domain/file-storage.types.js.map +1 -0
  78. package/core/src/lib/domain/index.d.ts +6 -0
  79. package/core/src/lib/domain/index.d.ts.map +1 -0
  80. package/core/src/lib/domain/index.js +11 -0
  81. package/core/src/lib/domain/index.js.map +1 -0
  82. package/core/src/lib/domain/metadata.types.d.ts +25 -0
  83. package/core/src/lib/domain/metadata.types.d.ts.map +1 -0
  84. package/core/src/lib/domain/metadata.types.js +3 -0
  85. package/core/src/lib/domain/metadata.types.js.map +1 -0
  86. package/core/src/lib/domain/spreadsheet.types.d.ts +4 -0
  87. package/core/src/lib/domain/spreadsheet.types.d.ts.map +1 -0
  88. package/core/src/lib/domain/spreadsheet.types.js +5 -0
  89. package/core/src/lib/domain/spreadsheet.types.js.map +1 -0
  90. package/core/src/lib/index.d.ts +14 -0
  91. package/core/src/lib/index.d.ts.map +1 -0
  92. package/core/src/lib/index.js +19 -0
  93. package/core/src/lib/index.js.map +1 -0
  94. package/core/src/lib/integration/index.d.ts +4 -0
  95. package/core/src/lib/integration/index.d.ts.map +1 -0
  96. package/core/src/lib/integration/index.js +9 -0
  97. package/core/src/lib/integration/index.js.map +1 -0
  98. package/core/src/lib/integration/integration-connection.safe-types.d.ts +54 -0
  99. package/core/src/lib/integration/integration-connection.safe-types.d.ts.map +1 -0
  100. package/core/src/lib/integration/integration-connection.safe-types.js +4 -0
  101. package/core/src/lib/integration/integration-connection.safe-types.js.map +1 -0
  102. package/core/src/lib/integration/integration-status.constants.d.ts +49 -0
  103. package/core/src/lib/integration/integration-status.constants.d.ts.map +1 -0
  104. package/core/src/lib/integration/integration-status.constants.js +57 -0
  105. package/core/src/lib/integration/integration-status.constants.js.map +1 -0
  106. package/core/src/lib/integration/integration.types.d.ts +120 -0
  107. package/core/src/lib/integration/integration.types.d.ts.map +1 -0
  108. package/core/src/lib/integration/integration.types.js +33 -0
  109. package/core/src/lib/integration/integration.types.js.map +1 -0
  110. package/core/src/lib/interaction/index.d.ts +4 -0
  111. package/core/src/lib/interaction/index.d.ts.map +1 -0
  112. package/core/src/lib/interaction/index.js +9 -0
  113. package/core/src/lib/interaction/index.js.map +1 -0
  114. package/core/src/lib/interaction/interactive.types.d.ts +65 -0
  115. package/core/src/lib/interaction/interactive.types.d.ts.map +1 -0
  116. package/core/src/lib/interaction/interactive.types.js +5 -0
  117. package/core/src/lib/interaction/interactive.types.js.map +1 -0
  118. package/core/src/lib/interaction/view-query.types.d.ts +11 -0
  119. package/core/src/lib/interaction/view-query.types.d.ts.map +1 -0
  120. package/core/src/lib/interaction/view-query.types.js +5 -0
  121. package/core/src/lib/interaction/view-query.types.js.map +1 -0
  122. package/core/src/lib/interaction/view.types.d.ts +34 -0
  123. package/core/src/lib/interaction/view.types.d.ts.map +1 -0
  124. package/core/src/lib/interaction/view.types.js +5 -0
  125. package/core/src/lib/interaction/view.types.js.map +1 -0
  126. package/core/src/lib/keys/index.d.ts +4 -0
  127. package/core/src/lib/keys/index.d.ts.map +1 -0
  128. package/core/src/lib/keys/index.js +9 -0
  129. package/core/src/lib/keys/index.js.map +1 -0
  130. package/core/src/lib/keys/platform-core-datasource.keys.d.ts +6 -0
  131. package/core/src/lib/keys/platform-core-datasource.keys.d.ts.map +1 -0
  132. package/core/src/lib/keys/platform-core-datasource.keys.js +11 -0
  133. package/core/src/lib/keys/platform-core-datasource.keys.js.map +1 -0
  134. package/core/src/lib/keys/preview-widget-field.command.key.d.ts +3 -0
  135. package/core/src/lib/keys/preview-widget-field.command.key.d.ts.map +1 -0
  136. package/core/src/lib/keys/preview-widget-field.command.key.js +6 -0
  137. package/core/src/lib/keys/preview-widget-field.command.key.js.map +1 -0
  138. package/core/src/lib/keys/regional-settings.keys.d.ts +31 -0
  139. package/core/src/lib/keys/regional-settings.keys.d.ts.map +1 -0
  140. package/core/src/lib/keys/regional-settings.keys.js +37 -0
  141. package/core/src/lib/keys/regional-settings.keys.js.map +1 -0
  142. package/core/src/lib/mock/index.d.ts +2 -0
  143. package/core/src/lib/mock/index.d.ts.map +1 -0
  144. package/core/src/lib/mock/index.js +7 -0
  145. package/core/src/lib/mock/index.js.map +1 -0
  146. package/core/src/lib/mock/mock-data.shims.d.ts +39 -0
  147. package/core/src/lib/mock/mock-data.shims.d.ts.map +1 -0
  148. package/core/src/lib/mock/mock-data.shims.js +191 -0
  149. package/core/src/lib/mock/mock-data.shims.js.map +1 -0
  150. package/core/src/lib/multi-language-string/compare-axp-multi-language-string.d.ts +16 -0
  151. package/core/src/lib/multi-language-string/compare-axp-multi-language-string.d.ts.map +1 -0
  152. package/core/src/lib/multi-language-string/compare-axp-multi-language-string.js +39 -0
  153. package/core/src/lib/multi-language-string/compare-axp-multi-language-string.js.map +1 -0
  154. package/core/src/lib/multi-language-string/index.d.ts +4 -0
  155. package/core/src/lib/multi-language-string/index.d.ts.map +1 -0
  156. package/core/src/lib/multi-language-string/index.js +9 -0
  157. package/core/src/lib/multi-language-string/index.js.map +1 -0
  158. package/core/src/lib/multi-language-string/locale-map-value.util.d.ts +10 -0
  159. package/core/src/lib/multi-language-string/locale-map-value.util.d.ts.map +1 -0
  160. package/core/src/lib/multi-language-string/locale-map-value.util.js +41 -0
  161. package/core/src/lib/multi-language-string/locale-map-value.util.js.map +1 -0
  162. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts +6 -0
  163. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts.map +1 -0
  164. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js +33 -0
  165. package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js.map +1 -0
  166. package/core/src/lib/property/element.types.d.ts +2 -0
  167. package/core/src/lib/property/element.types.d.ts.map +1 -0
  168. package/core/src/lib/property/element.types.js +5 -0
  169. package/core/src/lib/property/element.types.js.map +1 -0
  170. package/core/src/lib/property/file.types.d.ts +2 -0
  171. package/core/src/lib/property/file.types.d.ts.map +1 -0
  172. package/core/src/lib/property/file.types.js +5 -0
  173. package/core/src/lib/property/file.types.js.map +1 -0
  174. package/core/src/lib/property/index.d.ts +5 -0
  175. package/core/src/lib/property/index.d.ts.map +1 -0
  176. package/core/src/lib/property/index.js +10 -0
  177. package/core/src/lib/property/index.js.map +1 -0
  178. package/core/src/lib/property/property.types.d.ts +24 -0
  179. package/core/src/lib/property/property.types.d.ts.map +1 -0
  180. package/core/src/lib/property/property.types.js +5 -0
  181. package/core/src/lib/property/property.types.js.map +1 -0
  182. package/core/src/lib/property/validation.types.d.ts +31 -0
  183. package/core/src/lib/property/validation.types.d.ts.map +1 -0
  184. package/core/src/lib/property/validation.types.js +5 -0
  185. package/core/src/lib/property/validation.types.js.map +1 -0
  186. package/core/src/lib/status/index.d.ts +4 -0
  187. package/core/src/lib/status/index.d.ts.map +1 -0
  188. package/core/src/lib/status/index.js +9 -0
  189. package/core/src/lib/status/index.js.map +1 -0
  190. package/core/src/lib/status/status-definition.types.d.ts +110 -0
  191. package/core/src/lib/status/status-definition.types.d.ts.map +1 -0
  192. package/core/src/lib/status/status-definition.types.js +16 -0
  193. package/core/src/lib/status/status-definition.types.js.map +1 -0
  194. package/core/src/lib/status/status.types.d.ts +28 -0
  195. package/core/src/lib/status/status.types.d.ts.map +1 -0
  196. package/core/src/lib/status/status.types.js +34 -0
  197. package/core/src/lib/status/status.types.js.map +1 -0
  198. package/core/src/lib/status/statuses.types.d.ts +279 -0
  199. package/core/src/lib/status/statuses.types.d.ts.map +1 -0
  200. package/core/src/lib/status/statuses.types.js +320 -0
  201. package/core/src/lib/status/statuses.types.js.map +1 -0
  202. package/core/src/lib/utils/index.d.ts +4 -0
  203. package/core/src/lib/utils/index.d.ts.map +1 -0
  204. package/core/src/lib/utils/index.js +9 -0
  205. package/core/src/lib/utils/index.js.map +1 -0
  206. package/core/src/lib/utils/object-util.d.ts +57 -0
  207. package/core/src/lib/utils/object-util.d.ts.map +1 -0
  208. package/core/src/lib/utils/object-util.js +679 -0
  209. package/core/src/lib/utils/object-util.js.map +1 -0
  210. package/core/src/lib/utils/scalar-coercion.d.ts +17 -0
  211. package/core/src/lib/utils/scalar-coercion.d.ts.map +1 -0
  212. package/core/src/lib/utils/scalar-coercion.js +95 -0
  213. package/core/src/lib/utils/scalar-coercion.js.map +1 -0
  214. package/core/src/lib/utils/string.util.d.ts +11 -0
  215. package/core/src/lib/utils/string.util.d.ts.map +1 -0
  216. package/core/src/lib/utils/string.util.js +37 -0
  217. package/core/src/lib/utils/string.util.js.map +1 -0
  218. package/core/src/lib/widgets/index.d.ts +4 -0
  219. package/core/src/lib/widgets/index.d.ts.map +1 -0
  220. package/core/src/lib/widgets/index.js +9 -0
  221. package/core/src/lib/widgets/index.js.map +1 -0
  222. package/core/src/lib/widgets/widget-node.types.d.ts +16 -0
  223. package/core/src/lib/widgets/widget-node.types.d.ts.map +1 -0
  224. package/core/src/lib/widgets/widget-node.types.js +5 -0
  225. package/core/src/lib/widgets/widget-node.types.js.map +1 -0
  226. package/core/src/lib/widgets/widgets-catalog.d.ts +100 -0
  227. package/core/src/lib/widgets/widgets-catalog.d.ts.map +1 -0
  228. package/core/src/lib/widgets/widgets-catalog.js +105 -0
  229. package/core/src/lib/widgets/widgets-catalog.js.map +1 -0
  230. package/core/src/lib/widgets/widgets-list.d.ts +116 -0
  231. package/core/src/lib/widgets/widgets-list.d.ts.map +1 -0
  232. package/core/src/lib/widgets/widgets-list.js +154 -0
  233. package/core/src/lib/widgets/widgets-list.js.map +1 -0
  234. package/core/src/lib/workflow/activity.types.d.ts +133 -0
  235. package/core/src/lib/workflow/activity.types.d.ts.map +1 -0
  236. package/core/src/lib/workflow/activity.types.js +8 -0
  237. package/core/src/lib/workflow/activity.types.js.map +1 -0
  238. package/core/src/lib/workflow/index.d.ts +4 -0
  239. package/core/src/lib/workflow/index.d.ts.map +1 -0
  240. package/core/src/lib/workflow/index.js +9 -0
  241. package/core/src/lib/workflow/index.js.map +1 -0
  242. package/core/src/lib/workflow/workflow-definition.types.d.ts +182 -0
  243. package/core/src/lib/workflow/workflow-definition.types.d.ts.map +1 -0
  244. package/core/src/lib/workflow/workflow-definition.types.js +4 -0
  245. package/core/src/lib/workflow/workflow-definition.types.js.map +1 -0
  246. package/core/src/lib/workflow/workflow-instance.types.d.ts +375 -0
  247. package/core/src/lib/workflow/workflow-instance.types.d.ts.map +1 -0
  248. package/core/src/lib/workflow/workflow-instance.types.js +8 -0
  249. package/core/src/lib/workflow/workflow-instance.types.js.map +1 -0
  250. package/domain/src/index.d.ts +2 -0
  251. package/domain/src/index.d.ts.map +1 -0
  252. package/domain/src/index.js +5 -0
  253. package/domain/src/index.js.map +1 -0
  254. package/domain/src/lib/definitions/aggregate-definition.types.d.ts +18 -0
  255. package/domain/src/lib/definitions/aggregate-definition.types.d.ts.map +1 -0
  256. package/domain/src/lib/definitions/aggregate-definition.types.js +4 -0
  257. package/domain/src/lib/definitions/aggregate-definition.types.js.map +1 -0
  258. package/domain/src/lib/definitions/base.types.d.ts +36 -0
  259. package/domain/src/lib/definitions/base.types.d.ts.map +1 -0
  260. package/domain/src/lib/definitions/base.types.js +17 -0
  261. package/domain/src/lib/definitions/base.types.js.map +1 -0
  262. package/domain/src/lib/definitions/command-registry.types.d.ts +34 -0
  263. package/domain/src/lib/definitions/command-registry.types.d.ts.map +1 -0
  264. package/domain/src/lib/definitions/command-registry.types.js +4 -0
  265. package/domain/src/lib/definitions/command-registry.types.js.map +1 -0
  266. package/domain/src/lib/definitions/entity-definition.types.d.ts +50 -0
  267. package/domain/src/lib/definitions/entity-definition.types.d.ts.map +1 -0
  268. package/domain/src/lib/definitions/entity-definition.types.js +10 -0
  269. package/domain/src/lib/definitions/entity-definition.types.js.map +1 -0
  270. package/domain/src/lib/definitions/interface-definition.types.d.ts +31 -0
  271. package/domain/src/lib/definitions/interface-definition.types.d.ts.map +1 -0
  272. package/domain/src/lib/definitions/interface-definition.types.js +3 -0
  273. package/domain/src/lib/definitions/interface-definition.types.js.map +1 -0
  274. package/domain/src/lib/definitions/menu-definition.types.d.ts +57 -0
  275. package/domain/src/lib/definitions/menu-definition.types.d.ts.map +1 -0
  276. package/domain/src/lib/definitions/menu-definition.types.js +5 -0
  277. package/domain/src/lib/definitions/menu-definition.types.js.map +1 -0
  278. package/domain/src/lib/definitions/module-definition.types.d.ts +7 -0
  279. package/domain/src/lib/definitions/module-definition.types.d.ts.map +1 -0
  280. package/domain/src/lib/definitions/module-definition.types.js +3 -0
  281. package/domain/src/lib/definitions/module-definition.types.js.map +1 -0
  282. package/domain/src/lib/definitions/permission-definition.types.d.ts +41 -0
  283. package/domain/src/lib/definitions/permission-definition.types.d.ts.map +1 -0
  284. package/domain/src/lib/definitions/permission-definition.types.js +5 -0
  285. package/domain/src/lib/definitions/permission-definition.types.js.map +1 -0
  286. package/domain/src/lib/definitions/plugin-definition.types.d.ts +23 -0
  287. package/domain/src/lib/definitions/plugin-definition.types.d.ts.map +1 -0
  288. package/domain/src/lib/definitions/plugin-definition.types.js +3 -0
  289. package/domain/src/lib/definitions/plugin-definition.types.js.map +1 -0
  290. package/domain/src/lib/definitions/property-definition.types.d.ts +33 -0
  291. package/domain/src/lib/definitions/property-definition.types.d.ts.map +1 -0
  292. package/domain/src/lib/definitions/property-definition.types.js +3 -0
  293. package/domain/src/lib/definitions/property-definition.types.js.map +1 -0
  294. package/domain/src/lib/definitions/query-registry.types.d.ts +32 -0
  295. package/domain/src/lib/definitions/query-registry.types.d.ts.map +1 -0
  296. package/domain/src/lib/definitions/query-registry.types.js +4 -0
  297. package/domain/src/lib/definitions/query-registry.types.js.map +1 -0
  298. package/domain/src/lib/definitions/relation-definition.types.d.ts +31 -0
  299. package/domain/src/lib/definitions/relation-definition.types.d.ts.map +1 -0
  300. package/domain/src/lib/definitions/relation-definition.types.js +16 -0
  301. package/domain/src/lib/definitions/relation-definition.types.js.map +1 -0
  302. package/domain/src/lib/definitions/validation-definition.types.d.ts +29 -0
  303. package/domain/src/lib/definitions/validation-definition.types.d.ts.map +1 -0
  304. package/domain/src/lib/definitions/validation-definition.types.js +3 -0
  305. package/domain/src/lib/definitions/validation-definition.types.js.map +1 -0
  306. package/domain/src/lib/definitions/widget-catalog.types.d.ts +14 -0
  307. package/domain/src/lib/definitions/widget-catalog.types.d.ts.map +1 -0
  308. package/domain/src/lib/definitions/widget-catalog.types.js +5 -0
  309. package/domain/src/lib/definitions/widget-catalog.types.js.map +1 -0
  310. package/domain/src/lib/index.d.ts +15 -0
  311. package/domain/src/lib/index.d.ts.map +1 -0
  312. package/domain/src/lib/index.js +20 -0
  313. package/domain/src/lib/index.js.map +1 -0
  314. package/entity/src/index.d.ts +2 -0
  315. package/entity/src/index.d.ts.map +1 -0
  316. package/entity/src/index.js +5 -0
  317. package/entity/src/index.js.map +1 -0
  318. package/entity/src/lib/constants/entity-datasource.keys.d.ts +5 -0
  319. package/entity/src/lib/constants/entity-datasource.keys.d.ts.map +1 -0
  320. package/entity/src/lib/constants/entity-datasource.keys.js +10 -0
  321. package/entity/src/lib/constants/entity-datasource.keys.js.map +1 -0
  322. package/entity/src/lib/constants/entity-display.constants.d.ts +7 -0
  323. package/entity/src/lib/constants/entity-display.constants.d.ts.map +1 -0
  324. package/entity/src/lib/constants/entity-display.constants.js +12 -0
  325. package/entity/src/lib/constants/entity-display.constants.js.map +1 -0
  326. package/entity/src/lib/constants/entity-events.keys.d.ts +5 -0
  327. package/entity/src/lib/constants/entity-events.keys.d.ts.map +1 -0
  328. package/entity/src/lib/constants/entity-events.keys.js +10 -0
  329. package/entity/src/lib/constants/entity-events.keys.js.map +1 -0
  330. package/entity/src/lib/constants/index.d.ts +4 -0
  331. package/entity/src/lib/constants/index.d.ts.map +1 -0
  332. package/entity/src/lib/constants/index.js +9 -0
  333. package/entity/src/lib/constants/index.js.map +1 -0
  334. package/entity/src/lib/helpers/entity-action.helpers.d.ts +31 -0
  335. package/entity/src/lib/helpers/entity-action.helpers.d.ts.map +1 -0
  336. package/entity/src/lib/helpers/entity-action.helpers.js +270 -0
  337. package/entity/src/lib/helpers/entity-action.helpers.js.map +1 -0
  338. package/entity/src/lib/helpers/index.d.ts +2 -0
  339. package/entity/src/lib/helpers/index.d.ts.map +1 -0
  340. package/entity/src/lib/helpers/index.js +7 -0
  341. package/entity/src/lib/helpers/index.js.map +1 -0
  342. package/entity/src/lib/index.d.ts +5 -0
  343. package/entity/src/lib/index.d.ts.map +1 -0
  344. package/entity/src/lib/index.js +10 -0
  345. package/entity/src/lib/index.js.map +1 -0
  346. package/entity/src/lib/types/entity-action.types.d.ts +69 -0
  347. package/entity/src/lib/types/entity-action.types.d.ts.map +1 -0
  348. package/entity/src/lib/types/entity-action.types.js +18 -0
  349. package/entity/src/lib/types/entity-action.types.js.map +1 -0
  350. package/entity/src/lib/types/entity-card-field.types.d.ts +38 -0
  351. package/entity/src/lib/types/entity-card-field.types.d.ts.map +1 -0
  352. package/entity/src/lib/types/entity-card-field.types.js +25 -0
  353. package/entity/src/lib/types/entity-card-field.types.js.map +1 -0
  354. package/entity/src/lib/types/entity-definition.types.d.ts +182 -0
  355. package/entity/src/lib/types/entity-definition.types.d.ts.map +1 -0
  356. package/entity/src/lib/types/entity-definition.types.js +44 -0
  357. package/entity/src/lib/types/entity-definition.types.js.map +1 -0
  358. package/entity/src/lib/types/entity-detail-list.types.d.ts +9 -0
  359. package/entity/src/lib/types/entity-detail-list.types.d.ts.map +1 -0
  360. package/entity/src/lib/types/entity-detail-list.types.js +5 -0
  361. package/entity/src/lib/types/entity-detail-list.types.js.map +1 -0
  362. package/entity/src/lib/types/entity-display-field.types.d.ts +35 -0
  363. package/entity/src/lib/types/entity-display-field.types.d.ts.map +1 -0
  364. package/entity/src/lib/types/entity-display-field.types.js +5 -0
  365. package/entity/src/lib/types/entity-display-field.types.js.map +1 -0
  366. package/entity/src/lib/types/entity-formats.types.d.ts +12 -0
  367. package/entity/src/lib/types/entity-formats.types.d.ts.map +1 -0
  368. package/entity/src/lib/types/entity-formats.types.js +5 -0
  369. package/entity/src/lib/types/entity-formats.types.js.map +1 -0
  370. package/entity/src/lib/types/entity-layout-view.types.d.ts +34 -0
  371. package/entity/src/lib/types/entity-layout-view.types.d.ts.map +1 -0
  372. package/entity/src/lib/types/entity-layout-view.types.js +5 -0
  373. package/entity/src/lib/types/entity-layout-view.types.js.map +1 -0
  374. package/entity/src/lib/types/entity-list-filter.types.d.ts +27 -0
  375. package/entity/src/lib/types/entity-list-filter.types.d.ts.map +1 -0
  376. package/entity/src/lib/types/entity-list-filter.types.js +39 -0
  377. package/entity/src/lib/types/entity-list-filter.types.js.map +1 -0
  378. package/entity/src/lib/types/entity-master-list.types.d.ts +44 -0
  379. package/entity/src/lib/types/entity-master-list.types.d.ts.map +1 -0
  380. package/entity/src/lib/types/entity-master-list.types.js +26 -0
  381. package/entity/src/lib/types/entity-master-list.types.js.map +1 -0
  382. package/entity/src/lib/types/entity-model.types.d.ts +52 -0
  383. package/entity/src/lib/types/entity-model.types.d.ts.map +1 -0
  384. package/entity/src/lib/types/entity-model.types.js +5 -0
  385. package/entity/src/lib/types/entity-model.types.js.map +1 -0
  386. package/entity/src/lib/types/entity-property-list.types.d.ts +21 -0
  387. package/entity/src/lib/types/entity-property-list.types.d.ts.map +1 -0
  388. package/entity/src/lib/types/entity-property-list.types.js +5 -0
  389. package/entity/src/lib/types/entity-property-list.types.js.map +1 -0
  390. package/entity/src/lib/types/entity-property.types.d.ts +67 -0
  391. package/entity/src/lib/types/entity-property.types.d.ts.map +1 -0
  392. package/entity/src/lib/types/entity-property.types.js +5 -0
  393. package/entity/src/lib/types/entity-property.types.js.map +1 -0
  394. package/entity/src/lib/types/entity-query-view.types.d.ts +32 -0
  395. package/entity/src/lib/types/entity-query-view.types.d.ts.map +1 -0
  396. package/entity/src/lib/types/entity-query-view.types.js +36 -0
  397. package/entity/src/lib/types/entity-query-view.types.js.map +1 -0
  398. package/entity/src/lib/types/entity-related-layout.types.d.ts +65 -0
  399. package/entity/src/lib/types/entity-related-layout.types.d.ts.map +1 -0
  400. package/entity/src/lib/types/entity-related-layout.types.js +5 -0
  401. package/entity/src/lib/types/entity-related-layout.types.js.map +1 -0
  402. package/entity/src/lib/types/entity-storage.types.d.ts +43 -0
  403. package/entity/src/lib/types/entity-storage.types.d.ts.map +1 -0
  404. package/entity/src/lib/types/entity-storage.types.js +4 -0
  405. package/entity/src/lib/types/entity-storage.types.js.map +1 -0
  406. package/entity/src/lib/types/index.d.ts +17 -0
  407. package/entity/src/lib/types/index.d.ts.map +1 -0
  408. package/entity/src/lib/types/index.js +22 -0
  409. package/entity/src/lib/types/index.js.map +1 -0
  410. package/entity/src/lib/types/lookup-widget.types.d.ts +79 -0
  411. package/entity/src/lib/types/lookup-widget.types.d.ts.map +1 -0
  412. package/entity/src/lib/types/lookup-widget.types.js +4 -0
  413. package/entity/src/lib/types/lookup-widget.types.js.map +1 -0
  414. package/entity/src/lib/utils/entity-display-template.util.d.ts +17 -0
  415. package/entity/src/lib/utils/entity-display-template.util.d.ts.map +1 -0
  416. package/entity/src/lib/utils/entity-display-template.util.js +57 -0
  417. package/entity/src/lib/utils/entity-display-template.util.js.map +1 -0
  418. package/entity/src/lib/utils/entity-list-filter-definitions.util.d.ts +17 -0
  419. package/entity/src/lib/utils/entity-list-filter-definitions.util.d.ts.map +1 -0
  420. package/entity/src/lib/utils/entity-list-filter-definitions.util.js +144 -0
  421. package/entity/src/lib/utils/entity-list-filter-definitions.util.js.map +1 -0
  422. package/entity/src/lib/utils/entity-list-sortable-fields.util.d.ts +14 -0
  423. package/entity/src/lib/utils/entity-list-sortable-fields.util.d.ts.map +1 -0
  424. package/entity/src/lib/utils/entity-list-sortable-fields.util.js +95 -0
  425. package/entity/src/lib/utils/entity-list-sortable-fields.util.js.map +1 -0
  426. package/entity/src/lib/utils/entity-merge-detail-list-properties.util.d.ts +16 -0
  427. package/entity/src/lib/utils/entity-merge-detail-list-properties.util.d.ts.map +1 -0
  428. package/entity/src/lib/utils/entity-merge-detail-list-properties.util.js +75 -0
  429. package/entity/src/lib/utils/entity-merge-detail-list-properties.util.js.map +1 -0
  430. package/entity/src/lib/utils/entity-property-display-path.util.d.ts +36 -0
  431. package/entity/src/lib/utils/entity-property-display-path.util.d.ts.map +1 -0
  432. package/entity/src/lib/utils/entity-property-display-path.util.js +97 -0
  433. package/entity/src/lib/utils/entity-property-display-path.util.js.map +1 -0
  434. package/entity/src/lib/utils/entity-quick-search-paths.util.d.ts +19 -0
  435. package/entity/src/lib/utils/entity-quick-search-paths.util.d.ts.map +1 -0
  436. package/entity/src/lib/utils/entity-quick-search-paths.util.js +149 -0
  437. package/entity/src/lib/utils/entity-quick-search-paths.util.js.map +1 -0
  438. package/entity/src/lib/utils/entity-search-title-context.util.d.ts +21 -0
  439. package/entity/src/lib/utils/entity-search-title-context.util.d.ts.map +1 -0
  440. package/entity/src/lib/utils/entity-search-title-context.util.js +127 -0
  441. package/entity/src/lib/utils/entity-search-title-context.util.js.map +1 -0
  442. package/entity/src/lib/utils/entity-workflow-record.util.d.ts +23 -0
  443. package/entity/src/lib/utils/entity-workflow-record.util.d.ts.map +1 -0
  444. package/entity/src/lib/utils/entity-workflow-record.util.js +38 -0
  445. package/entity/src/lib/utils/entity-workflow-record.util.js.map +1 -0
  446. package/entity/src/lib/utils/index.d.ts +10 -0
  447. package/entity/src/lib/utils/index.d.ts.map +1 -0
  448. package/entity/src/lib/utils/index.js +15 -0
  449. package/entity/src/lib/utils/index.js.map +1 -0
  450. package/entity/src/lib/utils/lookup-create-options.util.d.ts +10 -0
  451. package/entity/src/lib/utils/lookup-create-options.util.d.ts.map +1 -0
  452. package/entity/src/lib/utils/lookup-create-options.util.js +27 -0
  453. package/entity/src/lib/utils/lookup-create-options.util.js.map +1 -0
  454. package/index.d.ts +3 -0
  455. package/index.d.ts.map +1 -0
  456. package/index.js +4 -0
  457. package/index.js.map +1 -0
  458. package/package.json +21 -0
@@ -0,0 +1,31 @@
1
+ import type { AXPEntityAction } from '../types/entity-action.types';
2
+ import type { AXPQueryFilter, AXPRelatedEntity } from '../types';
3
+ export declare function entityMasterCreateAction(): AXPEntityAction;
4
+ export declare function entityMasterEditAction(): AXPEntityAction;
5
+ export declare function entityMasterBulkDeleteAction(): AXPEntityAction;
6
+ export declare function entityMasterViewAction(): AXPEntityAction;
7
+ export declare function entityMasterDeleteAction(): AXPEntityAction;
8
+ export declare function entityMasterCrudActions(options?: {
9
+ create?: boolean;
10
+ delete?: boolean;
11
+ view?: boolean;
12
+ edit?: boolean;
13
+ }): AXPEntityAction[];
14
+ export declare function entityMasterRecordActions(): AXPEntityAction[];
15
+ export declare function entityDetailsCreateActions(parentId: string): AXPEntityAction;
16
+ export declare function entityDetailsCreateActionsDeferredParent(): AXPEntityAction;
17
+ export declare function mergeForeignKeyFieldIntoCreateActions(foreignKeyField: string | undefined, actions: AXPEntityAction[] | undefined): AXPEntityAction[];
18
+ export declare function collectNestedCreateHiddenProperties(relatedEntity: AXPRelatedEntity): string[] | undefined;
19
+ export declare function entityDetailsSimpleCondition(fk: string): AXPQueryFilter;
20
+ export declare function entityDetailsReferenceCondition(type: string): AXPQueryFilter[];
21
+ export declare function entityDetailsEditAction(): AXPEntityAction;
22
+ export declare function entityDetailsNewEditAction(): AXPEntityAction;
23
+ export declare function entityOverrideDetailsViewAction(): AXPEntityAction;
24
+ export declare function entityDetailsCrudActions(parentId?: string, options?: {
25
+ create?: boolean;
26
+ delete?: boolean;
27
+ view?: boolean;
28
+ edit?: boolean;
29
+ }): AXPEntityAction[];
30
+ export declare function entityDetailsReferenceCreateActions(type: string): AXPEntityAction[];
31
+ //# sourceMappingURL=entity-action.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-action.helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/entity-action.helpers.ts"],"names":[],"mappings":"A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B,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GACA,eAAe,EAAE,CAuBnB;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,EAAE,CA0BnF"}
@@ -0,0 +1,270 @@
1
+ "use strict";
2
+ //#region ---- Entity action helpers (pure data, no Angular) ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.entityMasterCreateAction = entityMasterCreateAction;
5
+ exports.entityMasterEditAction = entityMasterEditAction;
6
+ exports.entityMasterBulkDeleteAction = entityMasterBulkDeleteAction;
7
+ exports.entityMasterViewAction = entityMasterViewAction;
8
+ exports.entityMasterDeleteAction = entityMasterDeleteAction;
9
+ exports.entityMasterCrudActions = entityMasterCrudActions;
10
+ exports.entityMasterRecordActions = entityMasterRecordActions;
11
+ exports.entityDetailsCreateActions = entityDetailsCreateActions;
12
+ exports.entityDetailsCreateActionsDeferredParent = entityDetailsCreateActionsDeferredParent;
13
+ exports.mergeForeignKeyFieldIntoCreateActions = mergeForeignKeyFieldIntoCreateActions;
14
+ exports.collectNestedCreateHiddenProperties = collectNestedCreateHiddenProperties;
15
+ exports.entityDetailsSimpleCondition = entityDetailsSimpleCondition;
16
+ exports.entityDetailsReferenceCondition = entityDetailsReferenceCondition;
17
+ exports.entityDetailsEditAction = entityDetailsEditAction;
18
+ exports.entityDetailsNewEditAction = entityDetailsNewEditAction;
19
+ exports.entityOverrideDetailsViewAction = entityOverrideDetailsViewAction;
20
+ exports.entityDetailsCrudActions = entityDetailsCrudActions;
21
+ exports.entityDetailsReferenceCreateActions = entityDetailsReferenceCreateActions;
22
+ const entity_action_types_1 = require("../types/entity-action.types");
23
+ const core_1 = require("@acorex-platform/framework-shared/core");
24
+ //#region Master
25
+ function entityMasterCreateAction() {
26
+ return {
27
+ title: '@general:actions.create.title',
28
+ command: {
29
+ name: 'Entity:Create',
30
+ },
31
+ priority: 'primary',
32
+ type: core_1.AXPSystemActionType.Create,
33
+ scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
34
+ };
35
+ }
36
+ function entityMasterEditAction() {
37
+ return {
38
+ title: '@general:actions.edit.title',
39
+ command: 'Entity:Update',
40
+ priority: 'secondary',
41
+ type: core_1.AXPSystemActionType.Update,
42
+ scope: entity_action_types_1.AXPEntityCommandScope.Individual,
43
+ default: true,
44
+ };
45
+ }
46
+ function entityMasterBulkDeleteAction() {
47
+ return {
48
+ title: '@general:actions.delete-items.title',
49
+ command: 'delete-entity',
50
+ priority: 'primary',
51
+ type: core_1.AXPSystemActionType.Delete,
52
+ scope: entity_action_types_1.AXPEntityCommandScope.Selected,
53
+ order: 100,
54
+ };
55
+ }
56
+ function entityMasterViewAction() {
57
+ return {
58
+ title: '@general:actions.view.title',
59
+ command: 'open-entity',
60
+ priority: 'secondary',
61
+ type: core_1.AXPSystemActionType.View,
62
+ scope: entity_action_types_1.AXPEntityCommandScope.Individual,
63
+ default: true,
64
+ };
65
+ }
66
+ function entityMasterDeleteAction() {
67
+ return {
68
+ title: '@general:actions.delete.title',
69
+ command: 'delete-entity',
70
+ priority: 'secondary',
71
+ type: core_1.AXPSystemActionType.Delete,
72
+ scope: entity_action_types_1.AXPEntityCommandScope.Individual,
73
+ order: 100,
74
+ shortcuts: ['ctrl+shift+delete'],
75
+ };
76
+ }
77
+ function entityMasterCrudActions(options) {
78
+ const opts = Object.assign({ create: true, delete: true, view: true, edit: false }, options);
79
+ const actions = [];
80
+ if (opts.create) {
81
+ actions.push(entityMasterCreateAction());
82
+ }
83
+ if (opts.delete) {
84
+ actions.push(entityMasterBulkDeleteAction());
85
+ actions.push(entityMasterDeleteAction());
86
+ }
87
+ if (opts.view) {
88
+ actions.push(entityMasterViewAction());
89
+ }
90
+ if (opts.edit) {
91
+ actions.push(entityMasterEditAction());
92
+ }
93
+ return actions;
94
+ }
95
+ function entityMasterRecordActions() {
96
+ return [entityMasterDeleteAction()];
97
+ }
98
+ //#endregion
99
+ //#region Details
100
+ function entityDetailsCreateActions(parentId) {
101
+ return {
102
+ title: '@general:actions.create.title',
103
+ command: {
104
+ name: 'Entity:Create',
105
+ options: {
106
+ process: {
107
+ redirect: false,
108
+ canCreateNewOne: true,
109
+ data: {
110
+ [parentId]: '{{context.eval("id")}}',
111
+ },
112
+ },
113
+ },
114
+ },
115
+ priority: 'primary',
116
+ type: core_1.AXPSystemActionType.Create,
117
+ scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
118
+ };
119
+ }
120
+ function entityDetailsCreateActionsDeferredParent() {
121
+ return {
122
+ title: '@general:actions.create.title',
123
+ command: {
124
+ name: 'Entity:Create',
125
+ options: {
126
+ process: {
127
+ redirect: false,
128
+ canCreateNewOne: true,
129
+ data: {},
130
+ },
131
+ },
132
+ },
133
+ priority: 'primary',
134
+ type: core_1.AXPSystemActionType.Create,
135
+ scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
136
+ };
137
+ }
138
+ function mergeForeignKeyFieldIntoCreateActions(foreignKeyField, actions) {
139
+ if (!foreignKeyField || !(actions === null || actions === void 0 ? void 0 : actions.length)) {
140
+ return actions !== null && actions !== void 0 ? actions : [];
141
+ }
142
+ return actions.map((a) => {
143
+ var _a, _b, _c;
144
+ const cmd = a.command;
145
+ if (typeof cmd !== 'object' ||
146
+ !cmd ||
147
+ cmd.name !== 'Entity:Create' ||
148
+ a.scope !== entity_action_types_1.AXPEntityCommandScope.TypeLevel) {
149
+ return a;
150
+ }
151
+ const opts = ((_a = cmd.options) !== null && _a !== void 0 ? _a : {});
152
+ const proc = ((_b = opts['process']) !== null && _b !== void 0 ? _b : {});
153
+ const data = Object.assign({}, ((_c = proc['data']) !== null && _c !== void 0 ? _c : {}));
154
+ if (data[foreignKeyField] === undefined || data[foreignKeyField] === null || data[foreignKeyField] === '') {
155
+ data[foreignKeyField] = '{{ context.eval("id") }}';
156
+ }
157
+ return Object.assign(Object.assign({}, a), { command: Object.assign(Object.assign({}, cmd), { options: Object.assign(Object.assign({}, opts), { process: Object.assign(Object.assign({}, proc), { data }) }) }) });
158
+ });
159
+ }
160
+ function collectNestedCreateHiddenProperties(relatedEntity) {
161
+ var _a, _b;
162
+ const fk = (_a = relatedEntity.persistence) === null || _a === void 0 ? void 0 : _a.foreignKeyField;
163
+ const merged = [...((_b = relatedEntity.excludeProperties) !== null && _b !== void 0 ? _b : [])];
164
+ if (fk) {
165
+ merged.push(fk);
166
+ }
167
+ const unique = [...new Set(merged)];
168
+ return unique.length ? unique : undefined;
169
+ }
170
+ function entityDetailsSimpleCondition(fk) {
171
+ return {
172
+ name: fk,
173
+ operator: { type: 'equal' },
174
+ value: '{{context.eval("id")}}',
175
+ };
176
+ }
177
+ function entityDetailsReferenceCondition(type) {
178
+ return [
179
+ {
180
+ name: 'reference.id',
181
+ operator: { type: 'equal' },
182
+ value: '{{context.eval("id")}}',
183
+ },
184
+ {
185
+ name: 'reference.type',
186
+ operator: { type: 'equal' },
187
+ value: type,
188
+ },
189
+ ];
190
+ }
191
+ function entityDetailsEditAction() {
192
+ return {
193
+ title: '@general:actions.edit.title',
194
+ command: 'Entity:Update',
195
+ priority: 'secondary',
196
+ type: core_1.AXPSystemActionType.Update,
197
+ default: true,
198
+ scope: entity_action_types_1.AXPEntityCommandScope.Individual,
199
+ };
200
+ }
201
+ function entityDetailsNewEditAction() {
202
+ return {
203
+ title: 'New Edit',
204
+ command: {
205
+ name: 'Entity:Update',
206
+ },
207
+ priority: 'secondary',
208
+ type: core_1.AXPSystemActionType.Update,
209
+ default: true,
210
+ scope: entity_action_types_1.AXPEntityCommandScope.Individual,
211
+ };
212
+ }
213
+ function entityOverrideDetailsViewAction() {
214
+ return {
215
+ title: '@general:actions.view.title',
216
+ command: 'open-entity',
217
+ priority: 'secondary',
218
+ hidden: true,
219
+ type: core_1.AXPSystemActionType.View,
220
+ scope: entity_action_types_1.AXPEntityCommandScope.Individual,
221
+ };
222
+ }
223
+ function entityDetailsCrudActions(parentId, options) {
224
+ const opts = Object.assign({ create: true, delete: true, view: true, edit: true }, options);
225
+ const actions = [];
226
+ if (opts.create) {
227
+ if (parentId) {
228
+ actions.push(entityDetailsCreateActions(parentId));
229
+ }
230
+ else {
231
+ actions.push(entityDetailsCreateActionsDeferredParent());
232
+ }
233
+ }
234
+ if (opts.edit) {
235
+ actions.push(entityDetailsEditAction());
236
+ }
237
+ if (opts.view) {
238
+ actions.push(entityOverrideDetailsViewAction());
239
+ }
240
+ return actions;
241
+ }
242
+ function entityDetailsReferenceCreateActions(type) {
243
+ return [
244
+ {
245
+ title: '@general:actions.create.title',
246
+ command: {
247
+ name: 'Entity:Create',
248
+ options: {
249
+ process: {
250
+ redirect: false,
251
+ canCreateNewOne: true,
252
+ data: {
253
+ reference: {
254
+ id: '{{context.eval("id")}}',
255
+ type: type,
256
+ },
257
+ },
258
+ },
259
+ },
260
+ },
261
+ priority: 'primary',
262
+ type: core_1.AXPSystemActionType.Create,
263
+ scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
264
+ },
265
+ entityDetailsEditAction(),
266
+ entityOverrideDetailsViewAction(),
267
+ ];
268
+ }
269
+ //#endregion
270
+ //# sourceMappingURL=entity-action.helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-action.helpers.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/entity-action.helpers.ts"],"names":[],"mappings":";AAAA,iEAAiE;;AASjE,4DAUC;AAED,wDASC;AAED,oEASC;AAED,wDASC;AAED,4DAUC;AAED,0DA+BC;AAED,8DAEC;AAMD,gEAmBC;AAED,4FAiBC;AAED,sFA+BC;AAED,kFAQC;AAED,oEAMC;AAED,0EAaC;AAED,0DASC;AAED,gEAWC;AAED,0EASC;AAED,4DA+BC;AAED,kFA0BC;AA/SD,sEAAqE;AACrE,iEAA6E;AAE7E,gBAAgB;AAE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I,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAY;IAC9D,OAAO;QACL;YACE,KAAK,EAAE,+BAA+B;YACtC,OAAO,EAAE;gBACP,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,QAAQ,EAAE,KAAK;wBACf,eAAe,EAAE,IAAI;wBACrB,IAAI,EAAE;4BACJ,SAAS,EAAE;gCACT,EAAE,EAAE,wBAAwB;gCAC5B,IAAI,EAAE,IAAI;6BACX;yBACF;qBACF;iBACF;aACF;YACD,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;YAChC,KAAK,EAAE,2CAAqB,CAAC,SAAS;SACvC;QACD,uBAAuB,EAAE;QACzB,+BAA+B,EAAE;KAClC,CAAC;AACJ,CAAC;AAED,YAAY"}
@@ -0,0 +1,2 @@
1
+ export * from './entity-action.helpers';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ //#region ---- Helpers barrel ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./entity-action.helpers"), exports);
6
+ //#endregion
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAElC,kEAAwC;AAExC,YAAY"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export * from './helpers';
3
+ export * from './utils';
4
+ export * from './constants';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/entity/src/lib/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ //#region ---- Barrel ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./types"), exports);
6
+ tslib_1.__exportStar(require("./helpers"), exports);
7
+ tslib_1.__exportStar(require("./utils"), exports);
8
+ tslib_1.__exportStar(require("./constants"), exports);
9
+ //#endregion
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/entity/src/lib/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B,kDAAwB;AACxB,oDAA0B;AAC1B,kDAAwB;AACxB,sDAA4B;AAE5B,YAAY"}
@@ -0,0 +1,69 @@
1
+ import { type AXPMetaData, AXPSystemActionType } from '@acorex-platform/framework-shared/core';
2
+ import type { AXPopupSizeType, AXStyleColorType } from '@acorex-platform/framework-shared/core';
3
+ export declare enum AXPEntityCommandScope {
4
+ TypeLevel = "typeLevel",
5
+ Selected = "selected",
6
+ Individual = "individual",
7
+ Section = "section"
8
+ }
9
+ export declare enum AXPEntityQueryType {
10
+ Single = "single",
11
+ List = "list"
12
+ }
13
+ export interface AXPEntityCommand {
14
+ execute: string | Function;
15
+ permissions?: string[];
16
+ }
17
+ export interface AXPEntityQuery {
18
+ execute: string | Function;
19
+ type: AXPEntityQueryType;
20
+ }
21
+ export type AXPCommandActionType = AXPSystemActionType;
22
+ export interface AXPCommandActionLook {
23
+ color: AXStyleColorType;
24
+ icon: string;
25
+ }
26
+ export type AXPCommandActionPriority = 'primary' | 'secondary';
27
+ export type AXPCommandActionCallback = string | {
28
+ name: string;
29
+ options?: {
30
+ decoration?: {
31
+ header?: {
32
+ title?: string;
33
+ };
34
+ };
35
+ process?: {
36
+ data?: any;
37
+ [name: string]: any;
38
+ };
39
+ layout?: {
40
+ size?: AXPopupSizeType;
41
+ };
42
+ [name: string]: any;
43
+ };
44
+ metadata?: AXPMetaData;
45
+ };
46
+ export interface AXPCommandActionDisplay extends Partial<AXPCommandActionLook> {
47
+ name?: string;
48
+ command: AXPCommandActionCallback;
49
+ title: string;
50
+ type: AXPSystemActionType | string;
51
+ priority: 'primary' | 'secondary' | 'none';
52
+ separated?: boolean;
53
+ permissions?: string[];
54
+ hidden?: boolean | string;
55
+ disabled?: boolean | string;
56
+ default?: boolean;
57
+ order?: number;
58
+ /**
59
+ * Keyboard chords for this action (e.g. `'ctrl+shift+a'`).
60
+ * Pass `[]` to disable shortcuts. When omitted, platform defaults may apply for known commands.
61
+ */
62
+ shortcuts?: string[];
63
+ }
64
+ export interface AXPEntityAction extends AXPCommandActionDisplay {
65
+ scope: AXPEntityCommandScope;
66
+ /** Child actions for dropdown submenu */
67
+ items?: AXPEntityAction[];
68
+ }
69
+ //# sourceMappingURL=entity-action.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-action.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-action.types.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,WAAW,EAChB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAEhG,oBAAY,qBAAqB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB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ACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,uBAAuB;IAC9D,KAAK,EAAE,qBAAqB,CAAC;IAC7B,yCAAyC;IACzC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ //#region ---- Entity actions ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AXPEntityQueryType = exports.AXPEntityCommandScope = void 0;
5
+ var AXPEntityCommandScope;
6
+ (function (AXPEntityCommandScope) {
7
+ AXPEntityCommandScope["TypeLevel"] = "typeLevel";
8
+ AXPEntityCommandScope["Selected"] = "selected";
9
+ AXPEntityCommandScope["Individual"] = "individual";
10
+ AXPEntityCommandScope["Section"] = "section";
11
+ })(AXPEntityCommandScope || (exports.AXPEntityCommandScope = AXPEntityCommandScope = {}));
12
+ var AXPEntityQueryType;
13
+ (function (AXPEntityQueryType) {
14
+ AXPEntityQueryType["Single"] = "single";
15
+ AXPEntityQueryType["List"] = "list";
16
+ })(AXPEntityQueryType || (exports.AXPEntityQueryType = AXPEntityQueryType = {}));
17
+ //#endregion
18
+ //# sourceMappingURL=entity-action.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-action.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-action.types.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAQlC,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,kDAAyB,CAAA;IACzB,4CAAmB,CAAA;AACrB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAqED,YAAY"}
@@ -0,0 +1,38 @@
1
+ import type { AXPExpression } from '@acorex-platform/framework-shared/core';
2
+ import type { AXStyleColorType } from '@acorex-platform/framework-shared/core';
3
+ import type { AXPEntityPropertyLayoutConfig } from './entity-property.types';
4
+ import type { AXPEntityDisplayField } from './entity-display-field.types';
5
+ /** Card layout field presentation in master list card view. */
6
+ export type AXPCardFieldDisplay = 'simple' | 'badge';
7
+ /** Badge color: semantic token or per-row expression (`{{ context.eval(...) }}`). */
8
+ export type AXPCardBadgeColor = AXStyleColorType | AXPExpression;
9
+ export interface AXPCardBadgeDisplayOptions {
10
+ /** Semantic color or expression evaluated against row context. */
11
+ color?: AXPCardBadgeColor;
12
+ }
13
+ export interface AXPCardBadgeDisplay {
14
+ type: 'badge';
15
+ options?: AXPCardBadgeDisplayOptions;
16
+ }
17
+ /** Shorthand (`badge` / `simple`) or structured badge config with optional per-row color. */
18
+ export type AXPCardFieldDisplayConfig = AXPCardFieldDisplay | AXPCardBadgeDisplay;
19
+ /** Card layout field in master list view. */
20
+ export type AXPCardField = AXPEntityDisplayField & {
21
+ layout?: AXPEntityPropertyLayoutConfig;
22
+ /**
23
+ * Field presentation. Default: `simple` (card body).
24
+ * Use `badge` or `{ type: 'badge', options: { color } }` for header chips beside title.
25
+ */
26
+ display?: AXPCardFieldDisplayConfig;
27
+ /**
28
+ * Badge color when presentation is badge-shaped.
29
+ * Prefer `display: { type: 'badge', options: { color } }` for new definitions.
30
+ * Omit for status fields — color is resolved from the status definition per row.
31
+ */
32
+ badgeColor?: AXPCardBadgeColor;
33
+ };
34
+ /** Whether the card field is shown as a header badge (not in the card body). */
35
+ export declare function isCardFieldBadgeDisplay(display: AXPCardFieldDisplayConfig | undefined): display is 'badge' | AXPCardBadgeDisplay;
36
+ /** Resolves static badge color config from {@link AXPCardField.display} and legacy {@link AXPCardField.badgeColor}. */
37
+ export declare function resolveCardFieldBadgeColor(field: Pick<AXPCardField, 'display' | 'badgeColor'>): AXPCardBadgeColor | undefined;
38
+ //# sourceMappingURL=entity-card-field.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-card-field.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-card-field.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E,+DAA+D;AAC/D,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,qFAAqF;AACrF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAEjE,MAAM,WAAW,0BAA0B;IACzC,kEAAkE;IAClE,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACtC;AAED,6FAA6F;AAC7F,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAElF,6CAA6C;AAC7C,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG;IACjD,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,gFAAgF;AAChF,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,yBAAyB,GAAG,SAAS,GAC7C,OAAO,IAAI,OAAO,GAAG,mBAAmB,CAK1C;AAED,uHAAuH;AACvH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,YAAY,CAAC,GAClD,iBAAiB,GAAG,SAAS,CAQ/B"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ //#region ---- Entity card fields ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.isCardFieldBadgeDisplay = isCardFieldBadgeDisplay;
5
+ exports.resolveCardFieldBadgeColor = resolveCardFieldBadgeColor;
6
+ /** Whether the card field is shown as a header badge (not in the card body). */
7
+ function isCardFieldBadgeDisplay(display) {
8
+ if (display === 'badge') {
9
+ return true;
10
+ }
11
+ return typeof display === 'object' && display !== null && display.type === 'badge';
12
+ }
13
+ /** Resolves static badge color config from {@link AXPCardField.display} and legacy {@link AXPCardField.badgeColor}. */
14
+ function resolveCardFieldBadgeColor(field) {
15
+ var _a, _b;
16
+ if (typeof field.display === 'object' && field.display.type === 'badge') {
17
+ return (_b = (_a = field.display.options) === null || _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : field.badgeColor;
18
+ }
19
+ if (field.display === 'badge') {
20
+ return field.badgeColor;
21
+ }
22
+ return undefined;
23
+ }
24
+ //#endregion
25
+ //# sourceMappingURL=entity-card-field.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-card-field.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-card-field.types.ts"],"names":[],"mappings":";AAAA,sCAAsC;;AA6CtC,0DAOC;AAGD,gEAUC;AArBD,gFAAgF;AAChF,SAAgB,uBAAuB,CACrC,OAA8C;IAE9C,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC;AACrF,CAAC;AAED,uHAAuH;AACvH,SAAgB,0BAA0B,CACxC,KAAmD;;IAEnD,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QACxE,OAAO,MAAA,MAAA,KAAK,CAAC,OAAO,CAAC,OAAO,0CAAE,KAAK,mCAAI,KAAK,CAAC,UAAU,CAAC;IAC1D,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,UAAU,CAAC;IAC1B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,YAAY"}