@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,149 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveEntityPropertyInlineFilterField = void 0;
4
+ exports.collectQuickSearchPathsFromSingleEntityDefinition = collectQuickSearchPathsFromSingleEntityDefinition;
5
+ exports.collectNestedFieldPathsFromEntityColumns = collectNestedFieldPathsFromEntityColumns;
6
+ exports.collectEntityQuickSearchFieldPaths = collectEntityQuickSearchFieldPaths;
7
+ const tslib_1 = require("tslib");
8
+ const entity_property_display_path_util_1 = require("./entity-property-display-path.util");
9
+ //#endregion
10
+ //#region ---- Quick search: schema-driven field paths ----
11
+ const NON_TEXT_DATATYPES = new Set([
12
+ 'number',
13
+ 'integer',
14
+ 'int',
15
+ 'long',
16
+ 'float',
17
+ 'double',
18
+ 'decimal',
19
+ 'money',
20
+ 'currency',
21
+ 'boolean',
22
+ 'bool',
23
+ 'date',
24
+ 'datetime',
25
+ 'time',
26
+ 'object',
27
+ 'array',
28
+ 'json',
29
+ 'image',
30
+ 'file',
31
+ 'binary',
32
+ ]);
33
+ /**
34
+ * Whether an entity property likely stores free text worth a `contains` quick-search clause.
35
+ */
36
+ function isTextLikeDataType(dataType) {
37
+ const dt = (dataType !== null && dataType !== void 0 ? dataType : 'string').toLowerCase().trim();
38
+ if (!dt || NON_TEXT_DATATYPES.has(dt)) {
39
+ return false;
40
+ }
41
+ return true;
42
+ }
43
+ /**
44
+ * Lodash-get paths for quick search from a single entity definition: string-like property names
45
+ * plus lookup `expose[].target` paths (e.g. `brand.title`).
46
+ */
47
+ function collectQuickSearchPathsFromSingleEntityDefinition(entity) {
48
+ var _a, _b;
49
+ if (!((_a = entity === null || entity === void 0 ? void 0 : entity.properties) === null || _a === void 0 ? void 0 : _a.length)) {
50
+ return [];
51
+ }
52
+ const paths = new Set();
53
+ for (const property of entity.properties) {
54
+ if (isTextLikeDataType((_b = property.schema) === null || _b === void 0 ? void 0 : _b.dataType)) {
55
+ paths.add(property.name);
56
+ }
57
+ for (const target of (0, entity_property_display_path_util_1.collectPropertyExposeTargetPaths)(property)) {
58
+ paths.add(target);
59
+ }
60
+ }
61
+ return [...paths];
62
+ }
63
+ //#endregion
64
+ //#region ---- Column-derived nested paths ----
65
+ /**
66
+ * Adds dotted paths from master columns (`name` or `options.dataPath`), e.g. `person.fullName`, `jobDefinition.title`.
67
+ */
68
+ function collectNestedFieldPathsFromEntityColumns(entity) {
69
+ var _a, _b;
70
+ if (!((_a = entity === null || entity === void 0 ? void 0 : entity.columns) === null || _a === void 0 ? void 0 : _a.length)) {
71
+ return [];
72
+ }
73
+ const paths = new Set();
74
+ for (const col of entity.columns) {
75
+ const name = col.name.trim();
76
+ if (name.includes('.')) {
77
+ paths.add(name);
78
+ }
79
+ const rawDp = (_b = col.options) === null || _b === void 0 ? void 0 : _b['dataPath'];
80
+ if (typeof rawDp === 'string') {
81
+ const dp = rawDp.trim();
82
+ if (dp.includes('.')) {
83
+ paths.add(dp);
84
+ }
85
+ }
86
+ }
87
+ return [...paths];
88
+ }
89
+ //#endregion
90
+ //#region ---- Related merge-detail paths ----
91
+ function parseRelatedEntityFullName(fullName) {
92
+ const t = fullName.trim();
93
+ const idx = t.indexOf('.');
94
+ if (idx <= 0 || idx >= t.length - 1) {
95
+ return null;
96
+ }
97
+ return {
98
+ moduleName: t.slice(0, idx),
99
+ entityName: t.slice(idx + 1),
100
+ };
101
+ }
102
+ //#endregion
103
+ //#region ---- Public API ----
104
+ /**
105
+ * Collects lodash-get field paths used for mock/API quick search (`contains` / OR filters):
106
+ * host properties and lookup expose targets, dotted column paths, and merge-detail related entities
107
+ * prefixed with the related entity merge `persistence.dataPath` (e.g. `person.firstName`).
108
+ */
109
+ function collectEntityQuickSearchFieldPaths(entity, resolveRelatedDefinition) {
110
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
111
+ var _a, _b, _c, _d;
112
+ if (!entity) {
113
+ return [];
114
+ }
115
+ const paths = new Set();
116
+ for (const p of collectQuickSearchPathsFromSingleEntityDefinition(entity)) {
117
+ paths.add(p);
118
+ }
119
+ for (const p of collectNestedFieldPathsFromEntityColumns(entity)) {
120
+ paths.add(p);
121
+ }
122
+ const related = (_a = entity.relatedEntities) !== null && _a !== void 0 ? _a : [];
123
+ for (const rel of related) {
124
+ const dataPath = (_c = (_b = rel.persistence) === null || _b === void 0 ? void 0 : _b.dataPath) === null || _c === void 0 ? void 0 : _c.trim();
125
+ if (!dataPath || ((_d = rel.layout) === null || _d === void 0 ? void 0 : _d.type) !== 'merge-detail') {
126
+ continue;
127
+ }
128
+ const parsed = rel.entity ? parseRelatedEntityFullName(rel.entity) : null;
129
+ if (!parsed) {
130
+ continue;
131
+ }
132
+ const relatedDef = yield resolveRelatedDefinition(parsed.moduleName, parsed.entityName);
133
+ if (!relatedDef) {
134
+ continue;
135
+ }
136
+ for (const p of collectQuickSearchPathsFromSingleEntityDefinition(relatedDef)) {
137
+ paths.add(`${dataPath}.${p}`);
138
+ }
139
+ for (const p of collectNestedFieldPathsFromEntityColumns(relatedDef)) {
140
+ paths.add(`${dataPath}.${p}`);
141
+ }
142
+ }
143
+ return [...paths];
144
+ });
145
+ }
146
+ var entity_property_display_path_util_2 = require("./entity-property-display-path.util");
147
+ Object.defineProperty(exports, "resolveEntityPropertyInlineFilterField", { enumerable: true, get: function () { return entity_property_display_path_util_2.resolveEntityPropertyInlineFilterField; } });
148
+ //#endregion
149
+ //# sourceMappingURL=entity-quick-search-paths.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-quick-search-paths.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-quick-search-paths.util.ts"],"names":[],"mappings":";;;AAqDA,8GAkBC;AASD,4FAuBC;AA2BD,gFA6CC;;AA7KD,2FAAuF;AASvF,YAAY;AAEZ,2DAA2D;AAE3D,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,QAAQ;IACR,SAAS;IACT,KAAK;IACL,M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ED,KAAK,MAAM,CAAC,IAAI,iDAAiD,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC9E,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC,EAAE,CAAC,CAAC;YAChC,CAAC;YAED,KAAK,MAAM,CAAC,IAAI,wCAAwC,CAAC,UAAU,CAAC,EAAE,CAAC;gBACrE,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC,EAAE,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;QAED,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;IACpB,CAAC;CAAA;AAED,yFAA6F;AAApF,2JAAA,sCAAsC,OAAA;AAE/C,YAAY"}
@@ -0,0 +1,21 @@
1
+ import type { AXPEntity } from '../types/entity-definition.types';
2
+ export interface AXPEntitySearchTitleContext {
3
+ /** Templates tried after the primary `searchResult.title` fails (`single.title`, lookup, individual). */
4
+ fallbackTemplates: string[];
5
+ /** Entity property paths tried when templates do not resolve (`lookup`, identifier, common fields). */
6
+ fallbackFields: string[];
7
+ }
8
+ /**
9
+ * Builds entity-scoped fallback metadata for global search (registered on each entity search definition).
10
+ */
11
+ export declare function buildEntitySearchTitleContext(entity: AXPEntity, primaryTemplate?: string): AXPEntitySearchTitleContext;
12
+ /**
13
+ * Row title template chain aligned with entity layouts.
14
+ * Priority: `interfaces.master.single.title` → `formats.searchResult.title` → `formats.individual`.
15
+ */
16
+ export declare function resolveEntityRowTitleTemplate(entity: AXPEntity | null | undefined): string | undefined;
17
+ /**
18
+ * Record title template for modify popups: `interfaces.master.update.title` → `single.title`.
19
+ */
20
+ export declare function resolveEntityModifyRecordTitleTemplate(entity: AXPEntity | null | undefined): string | undefined;
21
+ //# sourceMappingURL=entity-search-title-context.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-search-title-context.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-search-title-context.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AASlE,MAAM,WAAW,2BAA2B;IAC1C,yGAAyG;IACzG,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,uGAAuG;IACvG,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AA0DD;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,SAAS,EACjB,eAAe,CAAC,EAAE,MAAM,GACvB,2BAA2B,CA0B7B;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CA0BtG;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CAgBpB"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildEntitySearchTitleContext = buildEntitySearchTitleContext;
4
+ exports.resolveEntityRowTitleTemplate = resolveEntityRowTitleTemplate;
5
+ exports.resolveEntityModifyRecordTitleTemplate = resolveEntityModifyRecordTitleTemplate;
6
+ const entity_display_template_util_1 = require("./entity-display-template.util");
7
+ //#endregion
8
+ //#region ---- Entity metadata ----
9
+ const DEFAULT_DISPLAY_FIELD_CANDIDATES = [
10
+ 'title',
11
+ 'name',
12
+ 'code',
13
+ 'fullName',
14
+ 'displayName',
15
+ 'subject',
16
+ 'description',
17
+ ];
18
+ function entityHasProperty(entity, path) {
19
+ var _a, _b;
20
+ const root = path.split('.')[0];
21
+ return (_b = (_a = entity.properties) === null || _a === void 0 ? void 0 : _a.some((property) => property.name === root)) !== null && _b !== void 0 ? _b : false;
22
+ }
23
+ function resolveEntityDisplayPropertyPaths(entity) {
24
+ var _a, _b, _c, _d, _e;
25
+ const paths = [];
26
+ const add = (path) => {
27
+ const trimmed = path === null || path === void 0 ? void 0 : path.trim();
28
+ if (!trimmed || trimmed.includes('{') || paths.includes(trimmed)) {
29
+ return;
30
+ }
31
+ if (entityHasProperty(entity, trimmed)) {
32
+ paths.push(trimmed);
33
+ }
34
+ };
35
+ const lookupFormat = (_b = (_a = entity.formats) === null || _a === void 0 ? void 0 : _a.lookup) === null || _b === void 0 ? void 0 : _b.trim();
36
+ if (lookupFormat && !lookupFormat.includes('{')) {
37
+ add(lookupFormat);
38
+ }
39
+ for (const candidate of DEFAULT_DISPLAY_FIELD_CANDIDATES) {
40
+ add(candidate);
41
+ }
42
+ const identifierPlugin = (_c = entity.plugins) === null || _c === void 0 ? void 0 : _c.find((plugin) => plugin.name === 'identifier');
43
+ const identifierField = (_d = identifierPlugin === null || identifierPlugin === void 0 ? void 0 : identifierPlugin.options) === null || _d === void 0 ? void 0 : _d['field'];
44
+ if (typeof identifierField === 'string') {
45
+ add(identifierField);
46
+ }
47
+ if (paths.length === 0) {
48
+ const firstStringProperty = (_e = entity.properties) === null || _e === void 0 ? void 0 : _e.find((property) => { var _a; return ((_a = property.schema) === null || _a === void 0 ? void 0 : _a.dataType) === 'string' && property.name !== 'id'; });
49
+ add(firstStringProperty === null || firstStringProperty === void 0 ? void 0 : firstStringProperty.name);
50
+ }
51
+ return paths;
52
+ }
53
+ /**
54
+ * Builds entity-scoped fallback metadata for global search (registered on each entity search definition).
55
+ */
56
+ function buildEntitySearchTitleContext(entity, primaryTemplate) {
57
+ var _a, _b, _c, _d, _e;
58
+ const fallbackTemplates = [];
59
+ const normalizedPrimary = (primaryTemplate === null || primaryTemplate === void 0 ? void 0 : primaryTemplate.trim())
60
+ ? (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(primaryTemplate.trim())
61
+ : undefined;
62
+ const addTemplate = (raw) => {
63
+ const trimmed = raw === null || raw === void 0 ? void 0 : raw.trim();
64
+ if (!trimmed || !(0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(trimmed)) {
65
+ return;
66
+ }
67
+ const normalized = (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(trimmed);
68
+ if (!normalized || normalized === normalizedPrimary || fallbackTemplates.includes(normalized)) {
69
+ return;
70
+ }
71
+ fallbackTemplates.push(normalized);
72
+ };
73
+ addTemplate((_c = (_b = (_a = entity.interfaces) === null || _a === void 0 ? void 0 : _a.master) === null || _b === void 0 ? void 0 : _b.single) === null || _c === void 0 ? void 0 : _c.title);
74
+ addTemplate((_d = entity.formats) === null || _d === void 0 ? void 0 : _d.lookup);
75
+ addTemplate((_e = entity.formats) === null || _e === void 0 ? void 0 : _e.individual);
76
+ return {
77
+ fallbackTemplates,
78
+ fallbackFields: resolveEntityDisplayPropertyPaths(entity),
79
+ };
80
+ }
81
+ /**
82
+ * Row title template chain aligned with entity layouts.
83
+ * Priority: `interfaces.master.single.title` → `formats.searchResult.title` → `formats.individual`.
84
+ */
85
+ function resolveEntityRowTitleTemplate(entity) {
86
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
87
+ if (!entity) {
88
+ return undefined;
89
+ }
90
+ const singleTitle = (_d = (_c = (_b = (_a = entity.interfaces) === null || _a === void 0 ? void 0 : _a.master) === null || _b === void 0 ? void 0 : _b.single) === null || _c === void 0 ? void 0 : _c.title) === null || _d === void 0 ? void 0 : _d.trim();
91
+ if (singleTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(singleTitle)) {
92
+ return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(singleTitle);
93
+ }
94
+ const searchTitle = (_g = (_f = (_e = entity.formats) === null || _e === void 0 ? void 0 : _e.searchResult) === null || _f === void 0 ? void 0 : _f.title) === null || _g === void 0 ? void 0 : _g.trim();
95
+ if (searchTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(searchTitle)) {
96
+ return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(searchTitle);
97
+ }
98
+ const lookupFormat = (_j = (_h = entity.formats) === null || _h === void 0 ? void 0 : _h.lookup) === null || _j === void 0 ? void 0 : _j.trim();
99
+ if (lookupFormat && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(lookupFormat)) {
100
+ return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(lookupFormat);
101
+ }
102
+ const individual = (_l = (_k = entity.formats) === null || _k === void 0 ? void 0 : _k.individual) === null || _l === void 0 ? void 0 : _l.trim();
103
+ if (individual && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(individual)) {
104
+ return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(individual);
105
+ }
106
+ return undefined;
107
+ }
108
+ /**
109
+ * Record title template for modify popups: `interfaces.master.update.title` → `single.title`.
110
+ */
111
+ function resolveEntityModifyRecordTitleTemplate(entity) {
112
+ var _a, _b, _c, _d, _e, _f, _g, _h;
113
+ if (!entity) {
114
+ return undefined;
115
+ }
116
+ const updateTitle = (_d = (_c = (_b = (_a = entity.interfaces) === null || _a === void 0 ? void 0 : _a.master) === null || _b === void 0 ? void 0 : _b.update) === null || _c === void 0 ? void 0 : _c.title) === null || _d === void 0 ? void 0 : _d.trim();
117
+ if (updateTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(updateTitle)) {
118
+ return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(updateTitle);
119
+ }
120
+ const singleTitle = (_h = (_g = (_f = (_e = entity.interfaces) === null || _e === void 0 ? void 0 : _e.master) === null || _f === void 0 ? void 0 : _f.single) === null || _g === void 0 ? void 0 : _g.title) === null || _h === void 0 ? void 0 : _h.trim();
121
+ if (singleTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(singleTitle)) {
122
+ return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(singleTitle);
123
+ }
124
+ return undefined;
125
+ }
126
+ //#endregion
127
+ //# sourceMappingURL=entity-search-title-context.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-search-title-context.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils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,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,YAAY"}
@@ -0,0 +1,23 @@
1
+ import type { AXPRecordWorkflowInfo } from '../types/entity-model.types';
2
+ /** Entity query filter field for {@link AXPRecordWorkflowInfo.instanceId}. */
3
+ export declare const AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD: "workflowInfo.instanceId";
4
+ /** Entity query filter field for {@link AXPRecordWorkflowInfo.correlationId}. */
5
+ export declare const AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD: "workflowInfo.correlationId";
6
+ /** Entity query filter field for {@link AXPRecordWorkflowInfo.definitionId}. */
7
+ export declare const AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD: "workflowInfo.definitionId";
8
+ /** Returns a trimmed workflow instance id from a record, if present. */
9
+ export declare function getRecordWorkflowInstanceId(record: {
10
+ workflowInfo?: AXPRecordWorkflowInfo | null;
11
+ } | null | undefined): string | null;
12
+ /** Returns a trimmed workflow correlation id from a record, if present. */
13
+ export declare function getRecordWorkflowCorrelationId(record: {
14
+ workflowInfo?: AXPRecordWorkflowInfo | null;
15
+ } | null | undefined): string | null;
16
+ /** Builds canonical workflow metadata for a domain record (engine / middleware). */
17
+ export declare function buildAXPRecordWorkflowInfo(params: {
18
+ instanceId: string;
19
+ definitionId?: string | null;
20
+ correlationId?: string | null;
21
+ pinnedVersion?: number | null;
22
+ }): AXPRecordWorkflowInfo;
23
+ //# sourceMappingURL=entity-workflow-record.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-workflow-record.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-workflow-record.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,8EAA8E;AAC9E,eAAO,MAAM,0CAA0C,EAAG,yBAAkC,CAAC;AAE7F,iFAAiF;AACjF,eAAO,MAAM,6CAA6C,EAAG,4BAAqC,CAAC;AAEnG,gFAAgF;AAChF,eAAO,MAAM,4CAA4C,EAAG,2BAAoC,CAAC;AAEjG,wEAAwE;AACxE,wBAAgB,2BAA2B,CACzC,MAAM,EAAE;IAAE,YAAY,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACzE,MAAM,GAAG,IAAI,CAGf;AAED,2EAA2E;AAC3E,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE;IAAE,YAAY,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACzE,MAAM,GAAG,IAAI,CAGf;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,GAAG,qBAAqB,CAaxB"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ //#region ---- Workflow record helpers ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD = exports.AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD = exports.AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD = void 0;
5
+ exports.getRecordWorkflowInstanceId = getRecordWorkflowInstanceId;
6
+ exports.getRecordWorkflowCorrelationId = getRecordWorkflowCorrelationId;
7
+ exports.buildAXPRecordWorkflowInfo = buildAXPRecordWorkflowInfo;
8
+ /** Entity query filter field for {@link AXPRecordWorkflowInfo.instanceId}. */
9
+ exports.AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD = 'workflowInfo.instanceId';
10
+ /** Entity query filter field for {@link AXPRecordWorkflowInfo.correlationId}. */
11
+ exports.AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD = 'workflowInfo.correlationId';
12
+ /** Entity query filter field for {@link AXPRecordWorkflowInfo.definitionId}. */
13
+ exports.AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD = 'workflowInfo.definitionId';
14
+ /** Returns a trimmed workflow instance id from a record, if present. */
15
+ function getRecordWorkflowInstanceId(record) {
16
+ var _a, _b;
17
+ const id = (_b = (_a = record === null || record === void 0 ? void 0 : record.workflowInfo) === null || _a === void 0 ? void 0 : _a.instanceId) === null || _b === void 0 ? void 0 : _b.trim();
18
+ return id && id.length > 0 ? id : null;
19
+ }
20
+ /** Returns a trimmed workflow correlation id from a record, if present. */
21
+ function getRecordWorkflowCorrelationId(record) {
22
+ var _a, _b;
23
+ const id = (_b = (_a = record === null || record === void 0 ? void 0 : record.workflowInfo) === null || _a === void 0 ? void 0 : _a.correlationId) === null || _b === void 0 ? void 0 : _b.trim();
24
+ return id && id.length > 0 ? id : null;
25
+ }
26
+ /** Builds canonical workflow metadata for a domain record (engine / middleware). */
27
+ function buildAXPRecordWorkflowInfo(params) {
28
+ var _a, _b, _c;
29
+ const instanceId = (_a = params.instanceId) === null || _a === void 0 ? void 0 : _a.trim();
30
+ if (!instanceId) {
31
+ return {};
32
+ }
33
+ const definitionId = (_b = params.definitionId) === null || _b === void 0 ? void 0 : _b.trim();
34
+ const correlationId = (_c = params.correlationId) === null || _c === void 0 ? void 0 : _c.trim();
35
+ return Object.assign(Object.assign(Object.assign({ instanceId }, (definitionId ? { definitionId } : { definitionId: null })), (correlationId ? { correlationId } : { correlationId: null })), (params.pinnedVersion != null ? { pinnedVersion: params.pinnedVersion } : {}));
36
+ }
37
+ //#endregion
38
+ //# sourceMappingURL=entity-workflow-record.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-workflow-record.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-workflow-record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YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,GAC1D,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,GAC7D,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAChF;AACJ,CAAC;AAED,YAAY"}
@@ -0,0 +1,10 @@
1
+ export * from './entity-display-template.util';
2
+ export * from './entity-property-display-path.util';
3
+ export * from './entity-search-title-context.util';
4
+ export * from './entity-quick-search-paths.util';
5
+ export * from './entity-list-filter-definitions.util';
6
+ export * from './entity-list-sortable-fields.util';
7
+ export * from './entity-merge-detail-list-properties.util';
8
+ export * from './entity-workflow-record.util';
9
+ export * from './lookup-create-options.util';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/index.ts"],"names":[],"mappings":"AAEA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ //#region ---- Utils barrel ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./entity-display-template.util"), exports);
6
+ tslib_1.__exportStar(require("./entity-property-display-path.util"), exports);
7
+ tslib_1.__exportStar(require("./entity-search-title-context.util"), exports);
8
+ tslib_1.__exportStar(require("./entity-quick-search-paths.util"), exports);
9
+ tslib_1.__exportStar(require("./entity-list-filter-definitions.util"), exports);
10
+ tslib_1.__exportStar(require("./entity-list-sortable-fields.util"), exports);
11
+ tslib_1.__exportStar(require("./entity-merge-detail-list-properties.util"), exports);
12
+ tslib_1.__exportStar(require("./entity-workflow-record.util"), exports);
13
+ tslib_1.__exportStar(require("./lookup-create-options.util"), exports);
14
+ //#endregion
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/index.ts"],"names":[],"mappings":";AAAA,gCAAgC;;;AAEhC,yEAA+C;AAC/C,8EAAoD;AACpD,6EAAmD;AACnD,2EAAiD;AACjD,gFAAsD;AACtD,6EAAmD;AACnD,qFAA2D;AAC3D,wEAA8C;AAC9C,uEAA6C;AAE7C,YAAY"}
@@ -0,0 +1,10 @@
1
+ import type { AXPLookupWidgetCreateOptions, ResolvedLookupCreateOptions } from '../types/lookup-widget.types';
2
+ /**
3
+ * Resolves lookup create options from `create` and legacy `allowCreate` (mode).
4
+ */
5
+ export declare function resolveLookupWidgetCreateOptions(options: {
6
+ create?: AXPLookupWidgetCreateOptions;
7
+ /** @deprecated Use create.enable; still supported for create mode (quick/full). */
8
+ allowCreate?: 'none' | 'full' | 'quick';
9
+ }): ResolvedLookupCreateOptions;
10
+ //# sourceMappingURL=lookup-create-options.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup-create-options.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/lookup-create-options.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAI9G;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE;IACxD,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACzC,GAAG,2BAA2B,CAoB9B"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveLookupWidgetCreateOptions = resolveLookupWidgetCreateOptions;
4
+ //#region ---- Resolution ----
5
+ /**
6
+ * Resolves lookup create options from `create` and legacy `allowCreate` (mode).
7
+ */
8
+ function resolveLookupWidgetCreateOptions(options) {
9
+ const create = options.create;
10
+ const legacyMode = options.allowCreate;
11
+ const context = create === null || create === void 0 ? void 0 : create.context;
12
+ if ((create === null || create === void 0 ? void 0 : create.enable) !== undefined) {
13
+ if (!create.enable) {
14
+ return { enabled: false, mode: 'none', context };
15
+ }
16
+ const mode = legacyMode && legacyMode !== 'none' ? legacyMode : 'quick';
17
+ return { enabled: true, mode, context };
18
+ }
19
+ const mode = legacyMode !== null && legacyMode !== void 0 ? legacyMode : 'none';
20
+ return {
21
+ enabled: mode !== 'none',
22
+ mode,
23
+ context,
24
+ };
25
+ }
26
+ //#endregion
27
+ //# sourceMappingURL=lookup-create-options.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup-create-options.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/lookup-create-options.util.ts"],"names":[],"mappings":";;AAOA,4EAwBC;AA7BD,8BAA8B;AAE9B;;GAEG;AACH,SAAgB,gCAAgC,CAAC,OAIhD;IACC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IACvC,MAAM,OAAO,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC;IAEhC,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACnB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,GAAG,UAAU,IAAI,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC;QACxE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,IAAI,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,MAAM,CAAC;IAClC,OAAO;QACL,OAAO,EAAE,IAAI,KAAK,MAAM;QACxB,IAAI;QACJ,OAAO;KACR,CAAC;AACJ,CAAC;AAED,YAAY"}
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/framework/shared/index.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
4
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/framework/shared/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@acorex-platform/framework-shared",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "type": "commonjs",
6
+ "sideEffects": false,
7
+ "exports": {
8
+ "./core": {
9
+ "types": "./core/src/index.d.ts",
10
+ "default": "./core/src/index.js"
11
+ },
12
+ "./domain": {
13
+ "types": "./domain/src/index.d.ts",
14
+ "default": "./domain/src/index.js"
15
+ },
16
+ "./entity": {
17
+ "types": "./entity/src/index.d.ts",
18
+ "default": "./entity/src/index.js"
19
+ }
20
+ }
21
+ }