@creatio-devkit/common 0.833.0 → 0.834.0

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 (262) hide show
  1. package/AI_GUIDES_INDEX.md +38 -0
  2. package/CHANGELOG.md +18 -1
  3. package/DEFERRED_REMOTE_MIGRATION_AI_GUIDE.md +1338 -0
  4. package/ICON_REQUIREMENTS_AI_GUIDE.md +107 -74
  5. package/REMOTE_COMPONENT_RUNTIME_AI_GUIDE.md +357 -4
  6. package/fesm2022/creatio-devkit-common.mjs +616 -89
  7. package/fesm2022/creatio-devkit-common.mjs.map +1 -1
  8. package/index.d.ts +665 -12
  9. package/package.json +2 -4
  10. package/esm2022/creatio-devkit-common.mjs +0 -5
  11. package/esm2022/index.mjs +0 -2
  12. package/esm2022/lib/base-exports.mjs +0 -5
  13. package/esm2022/lib/external/file-viewer/file-viewer-factory.service.mjs +0 -26
  14. package/esm2022/lib/external/file-viewer/file-viewer-instance.model.mjs +0 -51
  15. package/esm2022/lib/external/file-viewer/file-viewer-options.model.mjs +0 -2
  16. package/esm2022/lib/external/file-viewer/index.mjs +0 -4
  17. package/esm2022/lib/external/functions/aggregation-adapter.mjs +0 -72
  18. package/esm2022/lib/external/functions/date-part-type-adapter.mjs +0 -48
  19. package/esm2022/lib/external/functions/function-type-adapter.mjs +0 -28
  20. package/esm2022/lib/external/functions/index.mjs +0 -5
  21. package/esm2022/lib/external/functions/order-direction-adapter.mjs +0 -28
  22. package/esm2022/lib/external/models/attribute-value-config.mjs +0 -2
  23. package/esm2022/lib/external/models/date-time/grouped-date-value.mjs +0 -2
  24. package/esm2022/lib/external/models/date-time/index.mjs +0 -2
  25. package/esm2022/lib/external/models/file-value.model.mjs +0 -2
  26. package/esm2022/lib/external/models/index.mjs +0 -4
  27. package/esm2022/lib/index.mjs +0 -18
  28. package/esm2022/lib/internal/constants/default-size.const.mjs +0 -5
  29. package/esm2022/lib/internal/constants/index.mjs +0 -3
  30. package/esm2022/lib/internal/constants/metadata.const.mjs +0 -17
  31. package/esm2022/lib/internal/decorators/design-time-view-element/design-time-view-element.decorator.mjs +0 -19
  32. package/esm2022/lib/internal/decorators/design-time-view-element/index.mjs +0 -2
  33. package/esm2022/lib/internal/decorators/implement-using-handler-chain/implement-using-handler-chain.decorator.mjs +0 -25
  34. package/esm2022/lib/internal/decorators/implement-using-handler-chain/index.mjs +0 -2
  35. package/esm2022/lib/internal/decorators/index.mjs +0 -4
  36. package/esm2022/lib/internal/decorators/request/index.mjs +0 -2
  37. package/esm2022/lib/internal/decorators/request/request.decorator.mjs +0 -15
  38. package/esm2022/lib/internal/enums/designer-group-type.enum.mjs +0 -16
  39. package/esm2022/lib/internal/enums/handler-source-type.enum.mjs +0 -12
  40. package/esm2022/lib/internal/enums/index.mjs +0 -4
  41. package/esm2022/lib/internal/enums/view-element-group-type.enum.mjs +0 -13
  42. package/esm2022/lib/internal/models/attribute-property-config.interface.mjs +0 -2
  43. package/esm2022/lib/internal/models/converter/converter-registry-item.mjs +0 -2
  44. package/esm2022/lib/internal/models/converter/index.mjs +0 -2
  45. package/esm2022/lib/internal/models/data-source-load-parameters.mjs +0 -2
  46. package/esm2022/lib/internal/models/design-time-view-element-registry-item.mjs +0 -2
  47. package/esm2022/lib/internal/models/handler-chain-service-registry-item.mjs +0 -2
  48. package/esm2022/lib/internal/models/index.mjs +0 -20
  49. package/esm2022/lib/internal/models/injection-context/index.mjs +0 -2
  50. package/esm2022/lib/internal/models/injection-context/injection-context.mjs +0 -2
  51. package/esm2022/lib/internal/models/interface-designer-item/base-interface-designer-item-registration-config.mjs +0 -2
  52. package/esm2022/lib/internal/models/interface-designer-item/index.mjs +0 -4
  53. package/esm2022/lib/internal/models/interface-designer-item/interface-designer-item-registration-config.model.mjs +0 -7
  54. package/esm2022/lib/internal/models/interface-designer-item/toolbar-view-element-config.mjs +0 -2
  55. package/esm2022/lib/internal/models/interface-designer-registry-item.mjs +0 -2
  56. package/esm2022/lib/internal/models/internal-interface-designer-item-registration-config.model.mjs +0 -2
  57. package/esm2022/lib/internal/models/internal-module-definition.mjs +0 -2
  58. package/esm2022/lib/internal/models/lazy-module-metadata.mjs +0 -2
  59. package/esm2022/lib/internal/models/lazy-module-ref.mjs +0 -26
  60. package/esm2022/lib/internal/models/lazy-registry-item.mjs +0 -2
  61. package/esm2022/lib/internal/models/remote-build-info.mjs +0 -9
  62. package/esm2022/lib/internal/models/request/index.mjs +0 -2
  63. package/esm2022/lib/internal/models/request/method-invoke-request.mjs +0 -12
  64. package/esm2022/lib/internal/models/request-handler/contexed-handler-scope-config.mjs +0 -2
  65. package/esm2022/lib/internal/models/request-handler/handler-config.mjs +0 -2
  66. package/esm2022/lib/internal/models/request-handler/handler-source.mjs +0 -2
  67. package/esm2022/lib/internal/models/request-handler/index.mjs +0 -6
  68. package/esm2022/lib/internal/models/request-handler/request-handler-factory.mjs +0 -2
  69. package/esm2022/lib/internal/models/request-handler/request-handler-registration-config.model.mjs +0 -2
  70. package/esm2022/lib/internal/models/transaction/index.mjs +0 -4
  71. package/esm2022/lib/internal/models/transaction/transaction-factory.mjs +0 -2
  72. package/esm2022/lib/internal/models/transaction/transaction-operation.mjs +0 -2
  73. package/esm2022/lib/internal/models/transaction/transaction.mjs +0 -2
  74. package/esm2022/lib/internal/models/validator/index.mjs +0 -4
  75. package/esm2022/lib/internal/models/validator/validator-parameters.mjs +0 -2
  76. package/esm2022/lib/internal/models/validator/validator-registry-item.mjs +0 -2
  77. package/esm2022/lib/internal/models/validator/validator-schema-config.model.mjs +0 -2
  78. package/esm2022/lib/internal/models/view-element/angular-view-element-registration-config.model.mjs +0 -2
  79. package/esm2022/lib/internal/models/view-element/index.mjs +0 -2
  80. package/esm2022/lib/internal/models/view-element-registry-item.mjs +0 -2
  81. package/esm2022/lib/internal/services/base-handler-chain.service.mjs +0 -3
  82. package/esm2022/lib/internal/services/base-registry/base-registry.mjs +0 -31
  83. package/esm2022/lib/internal/services/base-registry/index.mjs +0 -2
  84. package/esm2022/lib/internal/services/bootstrap-notifier/bootstrap-notifier.mjs +0 -28
  85. package/esm2022/lib/internal/services/bootstrap-notifier/index.mjs +0 -2
  86. package/esm2022/lib/internal/services/chat-message-type-registry/chat-message-type-registry.mjs +0 -22
  87. package/esm2022/lib/internal/services/chat-message-type-registry/index.mjs +0 -2
  88. package/esm2022/lib/internal/services/design-time-view-element-registry/design-time-view-element-registry.mjs +0 -32
  89. package/esm2022/lib/internal/services/design-time-view-element-registry/index.mjs +0 -2
  90. package/esm2022/lib/internal/services/element-registration-checker/element-registration-checker.mjs +0 -60
  91. package/esm2022/lib/internal/services/element-registration-checker/index.mjs +0 -2
  92. package/esm2022/lib/internal/services/global-converters-registry/converter-registry.mjs +0 -36
  93. package/esm2022/lib/internal/services/global-converters-registry/index.mjs +0 -2
  94. package/esm2022/lib/internal/services/handler-chain-services-registry/handler-chain-services-registry.mjs +0 -26
  95. package/esm2022/lib/internal/services/handler-chain-services-registry/index.mjs +0 -2
  96. package/esm2022/lib/internal/services/index.mjs +0 -17
  97. package/esm2022/lib/internal/services/interface-designer-item-registry/index.mjs +0 -3
  98. package/esm2022/lib/internal/services/interface-designer-item-registry/interface-designer-item-registry.mjs +0 -53
  99. package/esm2022/lib/internal/services/interface-designer-item-registry/mobile-interface-designer-item-registry.mjs +0 -12
  100. package/esm2022/lib/internal/services/lazy-modules-manager/index.mjs +0 -2
  101. package/esm2022/lib/internal/services/lazy-modules-manager/lazy-modules-manager.mjs +0 -35
  102. package/esm2022/lib/internal/services/pkg-topology-registry/index.mjs +0 -2
  103. package/esm2022/lib/internal/services/pkg-topology-registry/pkg-topology-registry.mjs +0 -18
  104. package/esm2022/lib/internal/services/remote-entries-registry/index.mjs +0 -2
  105. package/esm2022/lib/internal/services/remote-entries-registry/remote-entries-registry.mjs +0 -18
  106. package/esm2022/lib/internal/services/request-handler-registry/index.mjs +0 -2
  107. package/esm2022/lib/internal/services/request-handler-registry/request-handler-registry.service.mjs +0 -131
  108. package/esm2022/lib/internal/services/request-registry/index.mjs +0 -2
  109. package/esm2022/lib/internal/services/request-registry/request-registry.service.mjs +0 -33
  110. package/esm2022/lib/internal/services/request-resolver/base-requests-resolver.mjs +0 -6
  111. package/esm2022/lib/internal/services/request-resolver/index.mjs +0 -3
  112. package/esm2022/lib/internal/services/request-resolver/requests-resolver.mjs +0 -17
  113. package/esm2022/lib/internal/services/validator-registry/index.mjs +0 -2
  114. package/esm2022/lib/internal/services/validator-registry/validator-registry.mjs +0 -45
  115. package/esm2022/lib/internal/services/view-element-registry/base-view-element-registry.mjs +0 -74
  116. package/esm2022/lib/internal/services/view-element-registry/index.mjs +0 -4
  117. package/esm2022/lib/internal/services/view-element-registry/mobile-view-element-registry.mjs +0 -13
  118. package/esm2022/lib/internal/services/view-element-registry/view-element-registry.mjs +0 -12
  119. package/esm2022/lib/internal/types/index.mjs +0 -3
  120. package/esm2022/lib/internal/types/internal-resolve-dependency-fn.type.mjs +0 -2
  121. package/esm2022/lib/internal/types/localizable-values.type.mjs +0 -2
  122. package/esm2022/lib/internal/utils/handlers-order-comparer.mjs +0 -42
  123. package/esm2022/lib/internal/utils/index.mjs +0 -8
  124. package/esm2022/lib/internal/utils/instantiate.mjs +0 -24
  125. package/esm2022/lib/internal/utils/localization-utils.mjs +0 -24
  126. package/esm2022/lib/internal/utils/metadata-utils.mjs +0 -236
  127. package/esm2022/lib/internal/utils/module-utils.mjs +0 -38
  128. package/esm2022/lib/internal/utils/object-deep-keys/index.mjs +0 -2
  129. package/esm2022/lib/internal/utils/object-deep-keys/object-deep-keys.mjs +0 -13
  130. package/esm2022/lib/internal/utils/request-handler-scopes.mjs +0 -10
  131. package/esm2022/lib/public/decorators/chat-message-type/chat-message-type.decorator.mjs +0 -20
  132. package/esm2022/lib/public/decorators/chat-message-type/index.mjs +0 -2
  133. package/esm2022/lib/public/decorators/converter/converter.decorator.mjs +0 -21
  134. package/esm2022/lib/public/decorators/converter/index.mjs +0 -2
  135. package/esm2022/lib/public/decorators/index.mjs +0 -12
  136. package/esm2022/lib/public/decorators/inject/index.mjs +0 -2
  137. package/esm2022/lib/public/decorators/inject/inject.decorator.mjs +0 -19
  138. package/esm2022/lib/public/decorators/input/index.mjs +0 -2
  139. package/esm2022/lib/public/decorators/input/input.decorator.mjs +0 -25
  140. package/esm2022/lib/public/decorators/interface-designer-item/index.mjs +0 -4
  141. package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item-decorator-utils.mjs +0 -29
  142. package/esm2022/lib/public/decorators/interface-designer-item/interface-designer-item.decorator.mjs +0 -10
  143. package/esm2022/lib/public/decorators/interface-designer-item/mobile-interface-designer-item.decorator.mjs +0 -10
  144. package/esm2022/lib/public/decorators/module/index.mjs +0 -2
  145. package/esm2022/lib/public/decorators/module/module.decorator.mjs +0 -9
  146. package/esm2022/lib/public/decorators/output/index.mjs +0 -2
  147. package/esm2022/lib/public/decorators/output/output.decorator.mjs +0 -19
  148. package/esm2022/lib/public/decorators/request-handler/index.mjs +0 -2
  149. package/esm2022/lib/public/decorators/request-handler/request-handler.decorator.mjs +0 -22
  150. package/esm2022/lib/public/decorators/validation-input/index.mjs +0 -2
  151. package/esm2022/lib/public/decorators/validation-input/validation-input.decorator.mjs +0 -27
  152. package/esm2022/lib/public/decorators/validator/index.mjs +0 -2
  153. package/esm2022/lib/public/decorators/validator/validator.decorator.mjs +0 -25
  154. package/esm2022/lib/public/decorators/view-element/index.mjs +0 -4
  155. package/esm2022/lib/public/decorators/view-element/mobile-view-element.decorator.mjs +0 -9
  156. package/esm2022/lib/public/decorators/view-element/view-element-decorator-utils.mjs +0 -33
  157. package/esm2022/lib/public/decorators/view-element/view-element.decorator.mjs +0 -10
  158. package/esm2022/lib/public/enums/data-source-load-type.enum.mjs +0 -10
  159. package/esm2022/lib/public/enums/index.mjs +0 -5
  160. package/esm2022/lib/public/enums/process-status.enum.mjs +0 -28
  161. package/esm2022/lib/public/enums/view-element-property.enum.mjs +0 -9
  162. package/esm2022/lib/public/enums/view-model-collection-action-type.enum.mjs +0 -24
  163. package/esm2022/lib/public/functions/bootstrap-crt-module-handler-chain-services.mjs +0 -32
  164. package/esm2022/lib/public/functions/bootstrap-crt-module.mjs +0 -357
  165. package/esm2022/lib/public/functions/bootstrapped-crt-modules.mjs +0 -8
  166. package/esm2022/lib/public/functions/crt-module-context-hooks.mjs +0 -30
  167. package/esm2022/lib/public/functions/define-render-config.mjs +0 -16
  168. package/esm2022/lib/public/functions/index.mjs +0 -10
  169. package/esm2022/lib/public/functions/localize.mjs +0 -29
  170. package/esm2022/lib/public/functions/register-angular-view-element.mjs +0 -13
  171. package/esm2022/lib/public/functions/register-view-element.mjs +0 -21
  172. package/esm2022/lib/public/functions/reset-globals.mjs +0 -37
  173. package/esm2022/lib/public/handlers/base-request-handler.mjs +0 -37
  174. package/esm2022/lib/public/handlers/index.mjs +0 -2
  175. package/esm2022/lib/public/models/ai-context/ai-context-part.mjs +0 -2
  176. package/esm2022/lib/public/models/ai-context/index.mjs +0 -2
  177. package/esm2022/lib/public/models/base-response.model.mjs +0 -2
  178. package/esm2022/lib/public/models/converter/converter-config.mjs +0 -2
  179. package/esm2022/lib/public/models/converter/index.mjs +0 -2
  180. package/esm2022/lib/public/models/converter.model.mjs +0 -2
  181. package/esm2022/lib/public/models/entity.model.mjs +0 -2
  182. package/esm2022/lib/public/models/error-info.model.mjs +0 -2
  183. package/esm2022/lib/public/models/image-value.model.mjs +0 -2
  184. package/esm2022/lib/public/models/index.mjs +0 -21
  185. package/esm2022/lib/public/models/input/index.mjs +0 -2
  186. package/esm2022/lib/public/models/input/input-registration-config.model.mjs +0 -6
  187. package/esm2022/lib/public/models/interface-designer-item/index.mjs +0 -2
  188. package/esm2022/lib/public/models/interface-designer-item/interface-designer-item-definition.mjs +0 -2
  189. package/esm2022/lib/public/models/item-creation-config.mjs +0 -2
  190. package/esm2022/lib/public/models/license/index.mjs +0 -2
  191. package/esm2022/lib/public/models/license/license-restriction-operation-values.model.mjs +0 -2
  192. package/esm2022/lib/public/models/localizable-value.mjs +0 -20
  193. package/esm2022/lib/public/models/mask-settings.mjs +0 -2
  194. package/esm2022/lib/public/models/module-definition.mjs +0 -2
  195. package/esm2022/lib/public/models/process-engine/index.mjs +0 -4
  196. package/esm2022/lib/public/models/process-engine/process-parameter-value.model.mjs +0 -2
  197. package/esm2022/lib/public/models/process-engine/run-process-request.model.mjs +0 -12
  198. package/esm2022/lib/public/models/process-engine/run-process-response.model.mjs +0 -2
  199. package/esm2022/lib/public/models/request/base-request-config.mjs +0 -8
  200. package/esm2022/lib/public/models/request/data-source-request.mjs +0 -11
  201. package/esm2022/lib/public/models/request/handle-view-model-attribute-change.request.mjs +0 -29
  202. package/esm2022/lib/public/models/request/index.mjs +0 -6
  203. package/esm2022/lib/public/models/request/model-event.model.mjs +0 -2
  204. package/esm2022/lib/public/models/request/view-model-attribute-change-event-options.mjs +0 -2
  205. package/esm2022/lib/public/models/request-handler/index.mjs +0 -2
  206. package/esm2022/lib/public/models/request-handler/request-handler-definition.mjs +0 -2
  207. package/esm2022/lib/public/models/validation/base-validator.mjs +0 -40
  208. package/esm2022/lib/public/models/validation/crt-control-state.mjs +0 -2
  209. package/esm2022/lib/public/models/validation/crt-validation-errors.mjs +0 -2
  210. package/esm2022/lib/public/models/validation/crt-validator-fn.mjs +0 -2
  211. package/esm2022/lib/public/models/validation/index.mjs +0 -8
  212. package/esm2022/lib/public/models/validation/validation-info.mjs +0 -2
  213. package/esm2022/lib/public/models/validation/validator-config.mjs +0 -2
  214. package/esm2022/lib/public/models/validation/validator-parameter-values.mjs +0 -2
  215. package/esm2022/lib/public/models/view-element/base-view-element-registration-config.mjs +0 -2
  216. package/esm2022/lib/public/models/view-element/index.mjs +0 -6
  217. package/esm2022/lib/public/models/view-element/view-element-registration-config.mjs +0 -2
  218. package/esm2022/lib/public/models/view-element/view-element-render-strategy.mjs +0 -18
  219. package/esm2022/lib/public/models/view-element/view-element-reuse-strategy.enum.mjs +0 -15
  220. package/esm2022/lib/public/models/view-element/view-element-slot-definition.mjs +0 -2
  221. package/esm2022/lib/public/models/view-model-collection/index.mjs +0 -3
  222. package/esm2022/lib/public/models/view-model-collection/view-model-collection-change.model.mjs +0 -2
  223. package/esm2022/lib/public/models/view-model-collection/view-model-collection.model.mjs +0 -2
  224. package/esm2022/lib/public/services/ai-context/ai-context.service.mjs +0 -86
  225. package/esm2022/lib/public/services/ai-context/index.mjs +0 -2
  226. package/esm2022/lib/public/services/crt-zone/crt-zone.service.mjs +0 -22
  227. package/esm2022/lib/public/services/crt-zone/index.mjs +0 -2
  228. package/esm2022/lib/public/services/dialog-service/dialog.service.mjs +0 -24
  229. package/esm2022/lib/public/services/dialog-service/index.mjs +0 -2
  230. package/esm2022/lib/public/services/feature/feature.service.mjs +0 -26
  231. package/esm2022/lib/public/services/feature/index.mjs +0 -2
  232. package/esm2022/lib/public/services/handler-chain/handler-chain.service.mjs +0 -71
  233. package/esm2022/lib/public/services/handler-chain/index.mjs +0 -2
  234. package/esm2022/lib/public/services/handler-chain/internal-handler-chain.mjs +0 -195
  235. package/esm2022/lib/public/services/http-client/http-client.service.mjs +0 -83
  236. package/esm2022/lib/public/services/http-client/http-headers.mjs +0 -2
  237. package/esm2022/lib/public/services/http-client/http-response.mjs +0 -2
  238. package/esm2022/lib/public/services/http-client/index.mjs +0 -4
  239. package/esm2022/lib/public/services/index.mjs +0 -17
  240. package/esm2022/lib/public/services/license/index.mjs +0 -2
  241. package/esm2022/lib/public/services/license/license.service.mjs +0 -30
  242. package/esm2022/lib/public/services/mask-service/index.mjs +0 -2
  243. package/esm2022/lib/public/services/mask-service/mask.service.mjs +0 -46
  244. package/esm2022/lib/public/services/message-channel/index.mjs +0 -2
  245. package/esm2022/lib/public/services/message-channel/message-channel.service.mjs +0 -27
  246. package/esm2022/lib/public/services/model/index.mjs +0 -2
  247. package/esm2022/lib/public/services/model/model.mjs +0 -102
  248. package/esm2022/lib/public/services/process-engine/index.mjs +0 -2
  249. package/esm2022/lib/public/services/process-engine/process-engine.service.mjs +0 -27
  250. package/esm2022/lib/public/services/rights/index.mjs +0 -2
  251. package/esm2022/lib/public/services/rights/rights.service.mjs +0 -26
  252. package/esm2022/lib/public/services/schema-modal/index.mjs +0 -3
  253. package/esm2022/lib/public/services/schema-modal/schema-modal-config.model.mjs +0 -2
  254. package/esm2022/lib/public/services/schema-modal/schema-modal.service.mjs +0 -23
  255. package/esm2022/lib/public/services/sys-settings/index.mjs +0 -3
  256. package/esm2022/lib/public/services/sys-settings/sys-setting.model.mjs +0 -24
  257. package/esm2022/lib/public/services/sys-settings/sys-settings.service.mjs +0 -36
  258. package/esm2022/lib/public/services/sys-values/index.mjs +0 -3
  259. package/esm2022/lib/public/services/sys-values/sys-values.mjs +0 -2
  260. package/esm2022/lib/public/services/sys-values/sys-values.service.mjs +0 -23
  261. package/esm2022/lib/public/services/transaction-factory/index.mjs +0 -2
  262. package/esm2022/lib/public/services/transaction-factory/transaction-factory.service.mjs +0 -40
@@ -54,6 +54,9 @@ SESSION_STATE:
54
54
  prefix: null # From angular.json
55
55
  component_name: null # User input (all forms)
56
56
  scope: null # [runtime-only|runtime+designer]
57
+ remote_format: null # [legacy-module|deferred-remote]
58
+ input_shape: null # [scalar|collection]
59
+ input_shape_source: null # [contract-signals|default-scalar]
57
60
  files: [] # Generated files
58
61
  validated: false
59
62
  score: 0 # Confidence 0-100
@@ -72,7 +75,7 @@ TRANSITIONS:
72
75
  **EXECUTE IN ORDER. DO NOT SKIP.**
73
76
 
74
77
  ### ✅ Step 1: Determine Scope [BLOCKING]
75
- **ORDER: 1/3 - Affects which guides to use**
78
+ **ORDER: 1/4 - Affects which guides to use**
76
79
 
77
80
  ```typescript
78
81
  // ASK if unclear:
@@ -118,7 +121,7 @@ if (answer === "Y") {
118
121
  ---
119
122
 
120
123
  ### ✅ Step 2: Extract Prefix [BLOCKING]
121
- **ORDER: 2/3 - Must complete before generation**
124
+ **ORDER: 2/4 - Must complete before generation**
122
125
 
123
126
  ```bash
124
127
  # ACTION:
@@ -141,7 +144,7 @@ assert(SESSION.prefix !== null && SESSION.prefix !== "crt")
141
144
  ---
142
145
 
143
146
  ### ✅ Step 3: Get Component Name [BLOCKING]
144
- **ORDER: 3/3 - Required for placeholders**
147
+ **ORDER: 3/4 - Required for placeholders**
145
148
 
146
149
  ```typescript
147
150
  // ACTION: Extract from user request
@@ -158,9 +161,38 @@ assert(all transformations !== null)
158
161
 
159
162
  ---
160
163
 
164
+ ### ✅ Step 4: Detect Binding Cardinality [BLOCKING]
165
+ **ORDER: 4/4 - Required for correct runtime generation**
166
+
167
+ ```typescript
168
+ const strongCollectionSignals = [
169
+ USER_REQUEST_MENTIONS_ANY(['line items', 'table rows', 'collection list']),
170
+ USER_REQUEST_MENTIONS_ANY(['add column', 'remove column', 'columns list']),
171
+ USER_REQUEST_MENTIONS_ANY(['collection attribute']),
172
+ RUNTIME_TEMPLATE_HAS_ROW_LOOP, // @for row of ...
173
+ DESIGN_TIME_USES_COLLECTION_API, // isCollection: true / bindToAttribute(items)
174
+ ];
175
+
176
+ if (strongCollectionSignals.some(Boolean)) {
177
+ SESSION_STATE.input_shape = 'collection';
178
+ SESSION_STATE.input_shape_source = 'contract-signals';
179
+ } else {
180
+ SESSION_STATE.input_shape = 'scalar';
181
+ SESSION_STATE.input_shape_source = 'default-scalar';
182
+ }
183
+ ```
184
+
185
+ ⚠️ `entitySchema` and `dataSourceName` MUST NOT be used to infer cardinality.
186
+
187
+ **BLOCKING RULES (collection):**
188
+ - Runtime MUST resolve row values asynchronously (`await Promise.resolve(...)`, `Promise.all(...)`).
189
+ - NEVER rely on framework internals (`__zone_symbol__state`, `__zone_symbol__value`).
190
+
191
+ ---
192
+
161
193
  **TRANSITION:**
162
194
  ```typescript
163
- if (Steps 1-3 complete) {
195
+ if (Steps 1-4 complete) {
164
196
  SESSION_STATE.phase = 'generate';
165
197
  PROCEED_TO_TEMPLATES();
166
198
  }
@@ -168,6 +200,76 @@ if (Steps 1-3 complete) {
168
200
 
169
201
  ---
170
202
 
203
+ ## Deferred Remote Decision (NEW FORMAT)
204
+
205
+ **CRITICAL:** This guide supports TWO registration formats. Keep the old instructions unchanged for legacy remotes. Switch to deferred-remote instructions only when the project already follows the new `RemoteEntryDefinition` + feature-based structure.
206
+
207
+ ### Detect the format first
208
+
209
+ ```typescript
210
+ // Check main.ts and potential alternative entry files
211
+ const mainFiles = ['src/main.ts', 'src/index.ts'];
212
+ const hasDeferredEntryDefinition = mainFiles.some((file) =>
213
+ fileExists(file) &&
214
+ (fileContains(file, 'RemoteEntryDefinition') ||
215
+ fileContains(file, 'features: [') ||
216
+ fileContains(file, 'export default') && fileContains(file, 'features'))
217
+ );
218
+
219
+ const hasFeatureFolders =
220
+ dirExists('src/app/features/runtime') &&
221
+ dirExists('src/app/features/design');
222
+
223
+ if (hasDeferredEntryDefinition || hasFeatureFolders) {
224
+ SESSION_STATE.remote_format = 'deferred-remote';
225
+ } else {
226
+ SESSION_STATE.remote_format = 'legacy-module';
227
+ }
228
+ ```
229
+
230
+ ### Routing rule
231
+
232
+ ```yaml
233
+ If SESSION_STATE.remote_format == legacy-module:
234
+ - Keep using all existing instructions in this guide as-is
235
+ - Keep @CrtInterfaceDesignerItem on runtime component when designer support is required
236
+ - Keep module-based registration flow from "Component Registration in Module"
237
+
238
+ If SESSION_STATE.remote_format == deferred-remote:
239
+ - DO NOT use @CrtInterfaceDesignerItem on runtime component
240
+ - Keep @CrtViewElement / @Input / @Output / @CrtInput / @CrtOutput on runtime component
241
+ - Register runtime component through:
242
+ - runtime.feature-definition.ts
243
+ - runtime.feature-activation.ts
244
+ - runtime.designer-definitions.ts
245
+ - If component has a custom properties panel, register that panel separately through:
246
+ - design.feature-definition.ts
247
+ - design.feature-activation.ts
248
+ ```
249
+
250
+ ### Minimal deferred-remote file set for one runtime component
251
+
252
+ ```text
253
+ src/main.ts
254
+ src/app/remote-app-context.ts
255
+ src/app/features/runtime/
256
+ runtime-feature.ids.ts
257
+ runtime-feature.module.ts
258
+ runtime.feature-definition.ts
259
+ runtime.feature-activation.ts
260
+ runtime.designer-definitions.ts
261
+ view-elements/{{COMPONENT_NAME_KEBAB}}/{{COMPONENT_NAME_KEBAB}}.component.ts
262
+
263
+ src/app/features/design/ # only when a custom panel exists
264
+ design-feature.ids.ts
265
+ design-feature.module.ts
266
+ design.feature-definition.ts
267
+ design.feature-activation.ts
268
+ property-panels/{{COMPONENT_NAME_KEBAB}}/{{COMPONENT_NAME_KEBAB}}-panel.component.ts
269
+ ```
270
+
271
+ ---
272
+
171
273
  ## 🚪 Escape Hatches (Edge Cases)
172
274
 
173
275
  ### ESCAPE HATCH #1: Multiple Projects in Monorepo
@@ -448,6 +550,8 @@ Components can be categorized by complexity:
448
550
 
449
551
  ## 📋 EXAMPLE 1: Simple Input Component with Two-Way Binding
450
552
 
553
+ > **⚠️ Format:** This example follows the **legacy-module** format. For deferred-remote projects, see [Component Registration in Deferred Remote Features](#component-registration-in-deferred-remote-features).
554
+
451
555
  **Use case:** Text input field with label and value change event
452
556
 
453
557
  ```typescript
@@ -516,6 +620,8 @@ export class {{COMPONENT_NAME_PASCAL}}Component {
516
620
 
517
621
  ## 📋 EXAMPLE 2: Display Component with Multiple Visual Properties
518
622
 
623
+ > **⚠️ Format:** This example follows the **legacy-module** format. For deferred-remote projects, see [Component Registration in Deferred Remote Features](#component-registration-in-deferred-remote-features).
624
+
519
625
  **Use case:** Label/text display with styling options and click event
520
626
 
521
627
  ```typescript
@@ -729,6 +835,195 @@ bootstrapCrtModule({{MODULE_NAME_PASCAL}}Module);
729
835
 
730
836
  ---
731
837
 
838
+ ## Component Registration in Deferred Remote Features
839
+
840
+ **USE THIS SECTION ONLY WHEN `SESSION_STATE.remote_format === 'deferred-remote'`.**
841
+
842
+ **CRITICAL differences from legacy format:**
843
+ - Runtime component stays a normal `@CrtViewElement`, but MUST NOT use `@CrtInterfaceDesignerItem`
844
+ - Designer metadata moves to `runtime.designer-definitions.ts`
845
+ - Runtime registration moves from eager module bootstrap to `runtime.feature-activation.ts`
846
+ - Property panel registration moves to the separate design feature
847
+
848
+ ### 1. Runtime component stays lightweight
849
+
850
+ ```typescript
851
+ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
852
+ import { CrtInput, CrtViewElement } from '@creatio-devkit/common';
853
+
854
+ @CrtViewElement({
855
+ selector: '{{PREFIX}}-{{COMPONENT_NAME_KEBAB}}',
856
+ type: '{{PREFIX}}.{{COMPONENT_NAME_PASCAL}}',
857
+ })
858
+ @Component({
859
+ selector: '{{PREFIX}}-{{COMPONENT_NAME_KEBAB}}',
860
+ templateUrl: './{{COMPONENT_NAME_KEBAB}}.component.html',
861
+ styleUrls: ['./{{COMPONENT_NAME_KEBAB}}.component.scss'],
862
+ encapsulation: ViewEncapsulation.ShadowDom,
863
+ changeDetection: ChangeDetectionStrategy.OnPush,
864
+ })
865
+ export class {{COMPONENT_NAME_PASCAL}}Component {
866
+ @Input()
867
+ @CrtInput()
868
+ public value = '';
869
+ }
870
+ ```
871
+
872
+ **Deferred-remote rule:** runtime component contains runtime behavior only. Toolbar caption, icon, defaults, and `propertiesPanel` MUST NOT live on the component decorator.
873
+
874
+ ### 2. Publish runtime discovery in `runtime.feature-definition.ts`
875
+
876
+ ```typescript
877
+ import type { RemoteDesignerDefinitionsLoadContext, RemoteFeatureDefinition } from '@creatio-devkit/common';
878
+
879
+ import {
880
+ {{COMPONENT_NAME_UPPER}}_TYPE,
881
+ RUNTIME_FEATURE_ID,
882
+ } from './runtime-feature.ids';
883
+
884
+ export const runtimeFeatureDefinition = {
885
+ id: RUNTIME_FEATURE_ID,
886
+ discovery: {
887
+ viewElements: [{ type: {{COMPONENT_NAME_UPPER}}_TYPE }],
888
+ },
889
+ loadDesignerDefinitions: (context: RemoteDesignerDefinitionsLoadContext) =>
890
+ import('./runtime.designer-definitions').then((m) => m.loadRuntimeDesignerDefinitions(context)),
891
+ activate: () =>
892
+ import('./runtime.feature-activation').then((m) => m.activateRuntimeFeature()),
893
+ } satisfies RemoteFeatureDefinition;
894
+ ```
895
+
896
+ **Rules:**
897
+ - `discovery.viewElements[].type` MUST exactly match `@CrtViewElement({ type })`
898
+ - Keep this file lightweight: IDs only, no icons, no heavy defaults, no runtime side effects
899
+ - If the component exposes handlers/validators/converters, publish them here too
900
+
901
+ ### 3. Return toolbox metadata in `runtime.designer-definitions.ts`
902
+
903
+ ```typescript
904
+ import type {
905
+ RemoteDesignerDefinitionsLoadContext,
906
+ RemoteFeatureDesignerDefinitions,
907
+ } from '@creatio-devkit/common';
908
+
909
+ import { {{COMPONENT_NAME_UPPER}}_ICON } from './runtime.designer-definitions.icons';
910
+ import {
911
+ {{COMPONENT_NAME_UPPER}}_PANEL_TYPE,
912
+ {{COMPONENT_NAME_UPPER}}_TYPE,
913
+ } from './runtime-feature.ids';
914
+
915
+ export function loadRuntimeDesignerDefinitions(
916
+ _context: RemoteDesignerDefinitionsLoadContext,
917
+ ): Promise<RemoteFeatureDesignerDefinitions> {
918
+ return Promise.resolve({
919
+ viewElements: [
920
+ {
921
+ type: {{COMPONENT_NAME_UPPER}}_TYPE,
922
+ toolbarConfig: {
923
+ caption: '{{COMPONENT_NAME_PASCAL}}',
924
+ icon: {{COMPONENT_NAME_UPPER}}_ICON,
925
+ },
926
+ defaultPropertyValues: {
927
+ value: '',
928
+ },
929
+ propertiesPanel: {{COMPONENT_NAME_UPPER}}_PANEL_TYPE,
930
+ },
931
+ ],
932
+ });
933
+ }
934
+ ```
935
+
936
+ **Rules:**
937
+ - `propertiesPanel` is set here, not on the runtime component
938
+ - If there is no custom panel, omit `propertiesPanel`
939
+ - Keep translations/localization here if the remote supports localized toolbox metadata
940
+
941
+ ### 4. Activate the runtime feature in `runtime.feature-activation.ts`
942
+
943
+ ```typescript
944
+ import { ProviderToken, Type } from '@angular/core';
945
+ import { createCustomElement } from '@angular/elements';
946
+ import { bootstrapCrtModule } from '@creatio-devkit/common';
947
+
948
+ import { ensureFeatureModuleRef } from '../../remote-app-context';
949
+ import { {{COMPONENT_NAME_PASCAL}}Component } from './view-elements/{{COMPONENT_NAME_KEBAB}}/{{COMPONENT_NAME_KEBAB}}.component';
950
+ import { RuntimeFeatureModule } from './runtime-feature.module';
951
+ import {
952
+ {{COMPONENT_NAME_UPPER}}_SELECTOR,
953
+ REMOTE_NAME,
954
+ } from './runtime-feature.ids';
955
+
956
+ function defineCustomElement(selector: string, component: Type<unknown>, injector: unknown): void {
957
+ if (!customElements.get(selector)) {
958
+ customElements.define(selector, createCustomElement(component, { injector }));
959
+ }
960
+ }
961
+
962
+ export async function activateRuntimeFeature(): Promise<void> {
963
+ const moduleRef = await ensureFeatureModuleRef(RuntimeFeatureModule);
964
+ const injector = moduleRef.injector;
965
+
966
+ defineCustomElement({{COMPONENT_NAME_UPPER}}_SELECTOR, {{COMPONENT_NAME_PASCAL}}Component, injector);
967
+
968
+ bootstrapCrtModule(REMOTE_NAME, RuntimeFeatureModule, {
969
+ resolveDependency: (token: unknown) => injector.get(token as ProviderToken<unknown>),
970
+ });
971
+ }
972
+ ```
973
+
974
+ **Rules:**
975
+ - Custom element registration happens in `activateRuntimeFeature()`, not in the Angular module constructor
976
+ - Keep `customElements.get(...)` guard
977
+ - Use `ensureFeatureModuleRef(...)` so activation is idempotent
978
+ - Call `bootstrapCrtModule(...)` after custom element registration
979
+
980
+ ### 5. Runtime feature module owns declarations
981
+
982
+ ```typescript
983
+ @CrtModule({
984
+ viewElements: [{{COMPONENT_NAME_PASCAL}}Component],
985
+ })
986
+ @NgModule({
987
+ declarations: [{{COMPONENT_NAME_PASCAL}}Component],
988
+ imports: [CommonModule],
989
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
990
+ })
991
+ export class RuntimeFeatureModule {}
992
+ ```
993
+
994
+ **Rule:** in deferred remotes, this module is bootstrapped from `runtime.feature-activation.ts`, not from `src/main.ts`.
995
+
996
+ ### 6. Wire the entry definition
997
+
998
+ ```typescript
999
+ import type { RemoteEntryDefinition } from '@creatio-devkit/common';
1000
+
1001
+ import { designFeatureDefinition } from './app/features/design/design.feature-definition';
1002
+ import { runtimeFeatureDefinition } from './app/features/runtime/runtime.feature-definition';
1003
+
1004
+ export default {
1005
+ remoteName: '{{PROJECT_NAME}}',
1006
+ features: [runtimeFeatureDefinition, designFeatureDefinition],
1007
+ } satisfies RemoteEntryDefinition;
1008
+ ```
1009
+
1010
+ **Rule:** if the remote has no custom panel, `features` may contain only `runtimeFeatureDefinition`.
1011
+
1012
+ ### Deferred-remote checklist for runtime component
1013
+
1014
+ ```markdown
1015
+ - [ ] Runtime component keeps `@CrtViewElement`, `@Input`, `@Output`, `@CrtInput`, `@CrtOutput`
1016
+ - [ ] Runtime component does NOT use `@CrtInterfaceDesignerItem`
1017
+ - [ ] `runtime.feature-definition.ts` publishes the component type in `discovery.viewElements`
1018
+ - [ ] `runtime.designer-definitions.ts` returns toolbar caption, icon, defaults, and `propertiesPanel` when needed
1019
+ - [ ] `runtime.feature-activation.ts` defines the custom element and calls `bootstrapCrtModule(...)`
1020
+ - [ ] `RuntimeFeatureModule` declares the component and includes it in `@CrtModule({ viewElements })`
1021
+ - [ ] `src/main.ts` exports `RemoteEntryDefinition`
1022
+ - [ ] If custom panel exists, the panel is registered through the separate design feature
1023
+ ```
1024
+
1025
+ ---
1026
+
732
1027
  ## 📋 Generation Checklist (Before Presenting)
733
1028
 
734
1029
  **FINAL VALIDATION:**
@@ -786,6 +1081,7 @@ import { Crt{{ComponentName}}Component } from './{{component-name}}.component';
786
1081
 
787
1082
  // Test host wrapper to test component as it will be used
788
1083
  @Component({
1084
+ standalone: false,
789
1085
  template: `
790
1086
  <crt-{{component-name}}
791
1087
  [propertyOne]="propertyOne"
@@ -1213,3 +1509,60 @@ public readonly myEvent = new EventEmitter<MyType>();
1213
1509
 
1214
1510
  ---
1215
1511
 
1512
+ ## 🗂️ Collection Input — Runtime Components
1513
+
1514
+ When a Creatio page binds a ViewModel collection to a component `@Input`, each item is a `ViewModelContext` — property access returns a **Promise**. Use `await item[col]` to read values.
1515
+
1516
+ ### @Input declarations
1517
+
1518
+ ```typescript
1519
+ import { ViewModelCollection, ViewModelContext } from '@creatio-devkit/common';
1520
+
1521
+ @Input() @CrtInput() public set items(value: ViewModelCollection<ViewModelContext>) { ... }
1522
+
1523
+ // columns is written by panel as string[] constant
1524
+ @Input() @CrtInput() public set columns(value: string[]) { ... }
1525
+ ```
1526
+
1527
+ ### Resolving row values — use signals + Promise.all
1528
+
1529
+ ```typescript
1530
+ export class {{COMPONENT_NAME_PASCAL}}Component {
1531
+ private _itemsCollection: ViewModelCollection<ViewModelContext> | null = null;
1532
+ protected readonly columnsToDisplay = signal<string[]>([]);
1533
+ protected readonly itemsToDisplay = signal<Record<string, string>[]>([]);
1534
+
1535
+ @Input() @CrtInput()
1536
+ public set items(value: ViewModelCollection<ViewModelContext>) {
1537
+ if (!value) return;
1538
+ this._itemsCollection = value;
1539
+ this._updateItemsToDisplay(value);
1540
+ }
1541
+
1542
+ @Input() @CrtInput()
1543
+ public set columns(value: string[]) {
1544
+ // Deduplicate and trim
1545
+ this.columnsToDisplay.set(Array.from(new Set(value.map((c) => c.trim()).filter(Boolean))));
1546
+ if (this._itemsCollection) this._updateItemsToDisplay(this._itemsCollection);
1547
+ }
1548
+
1549
+ private async _updateItemsToDisplay(value: ViewModelCollection<ViewModelContext>): Promise<void> {
1550
+ const columns = this.columnsToDisplay();
1551
+ if (!columns.length) { this.itemsToDisplay.set([]); return; }
1552
+
1553
+ const items = await Promise.all(
1554
+ value.map(async (item) => {
1555
+ const entries = await Promise.all(
1556
+ columns.map(async (col) => {
1557
+ const raw = await item[col];
1558
+ return [col, raw == null ? '' : String(raw)] as const;
1559
+ }),
1560
+ );
1561
+ return Object.fromEntries(entries);
1562
+ }),
1563
+ );
1564
+ this.itemsToDisplay.set(items);
1565
+ }
1566
+ }
1567
+ ```
1568
+