@supersoniks/concorde 4.9.94 → 4.9.96

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 (636) hide show
  1. package/README.md +16 -30
  2. package/build-infos.json +1 -1
  3. package/concorde-core.bundle.js +1 -1
  4. package/concorde-core.es.js +1 -1
  5. package/dist/concorde-core.bundle.js +1 -1
  6. package/dist/concorde-core.es.js +1 -1
  7. package/docs/assets/{index-D2Q3JyQ6.css → index-BZiZXMU-.css} +1 -1
  8. package/docs/assets/index-FmK4JaIM.js +11992 -0
  9. package/docs/crawl/core/components/functional/jsonata/jsonata.html +79 -0
  10. package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +1 -1
  11. package/docs/crawl/docs/_core-concept/dataFlow.html +12 -1
  12. package/docs/crawl/docs/_misc/docs-mock-api.html +12 -0
  13. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +138 -0
  14. package/docs/crawl/docs/_misc/html-integration.html +3 -2
  15. package/docs/crawl/hubs/remote-data.html +3 -5
  16. package/docs/crawl/index.html +2 -0
  17. package/docs/docs-mock-api-sw.js +110 -0
  18. package/docs/docs-mock-api-sw.js.map +3 -3
  19. package/docs/index.html +2 -2
  20. package/docs/llms-full.txt +193 -2
  21. package/docs/llms.txt +2 -0
  22. package/docs/sitemap.xml +6 -0
  23. package/docs/src/core/components/functional/jsonata/jsonata.md +56 -0
  24. package/docs/src/core/components/ui/form/checkbox/checkbox.md +1 -1
  25. package/docs/src/docs/_core-concept/dataFlow.md +10 -1
  26. package/docs/src/docs/_misc/docs-mock-api.md +3 -0
  27. package/docs/src/docs/_misc/formelement-subscriber-removal.md +115 -0
  28. package/docs/src/docs/_misc/html-integration.md +2 -0
  29. package/docs/src/docs/search/docs-search.json +180 -0
  30. package/docs/src/tsconfig.json +18 -0
  31. package/package.json +379 -1102
  32. package/scripts/post-build.mjs +0 -43
  33. package/scripts/pre-build.mjs +4 -33
  34. package/scripts/pre-publish.mjs +0 -2
  35. package/src/core/components/functional/sdui/sdui.md +0 -0
  36. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  37. package/src/core/components/ui/form/input/input.ts +0 -0
  38. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
  39. package/src/core/components/ui/form/select/select.ts +0 -0
  40. package/src/core/components/ui/form/textarea/textarea.ts +0 -0
  41. package/src/core/mixins/Fetcher.ts +1 -1
  42. package/src/docs/_getting-started/create-a-component.md +0 -0
  43. package/src/docs/search/docs-search.json +2128 -713
  44. package/src/tsconfig.json +309 -0
  45. package/vite/config.js +23 -35
  46. package/dist/js/components.js +0 -12
  47. package/dist/js/components.js.map +0 -1
  48. package/dist/js/concorde-loaded.js +0 -5
  49. package/dist/js/concorde-loaded.js.map +0 -1
  50. package/dist/js/core/_types/endpoint.js +0 -5
  51. package/dist/js/core/_types/endpoint.js.map +0 -1
  52. package/dist/js/core/_types/key.js +0 -2
  53. package/dist/js/core/_types/key.js.map +0 -1
  54. package/dist/js/core/_types/types.js +0 -3
  55. package/dist/js/core/_types/types.js.map +0 -1
  56. package/dist/js/core/components/functional/date/date.js +0 -272
  57. package/dist/js/core/components/functional/date/date.js.map +0 -1
  58. package/dist/js/core/components/functional/example/example.js +0 -44
  59. package/dist/js/core/components/functional/example/example.js.map +0 -1
  60. package/dist/js/core/components/functional/fetch/fetch.js +0 -79
  61. package/dist/js/core/components/functional/fetch/fetch.js.map +0 -1
  62. package/dist/js/core/components/functional/functional.js +0 -18
  63. package/dist/js/core/components/functional/functional.js.map +0 -1
  64. package/dist/js/core/components/functional/if/if.js +0 -39
  65. package/dist/js/core/components/functional/if/if.js.map +0 -1
  66. package/dist/js/core/components/functional/jsonata/jsonata.js +0 -119
  67. package/dist/js/core/components/functional/jsonata/jsonata.js.map +0 -1
  68. package/dist/js/core/components/functional/list/list.js +0 -341
  69. package/dist/js/core/components/functional/list/list.js.map +0 -1
  70. package/dist/js/core/components/functional/mix/mix.js +0 -103
  71. package/dist/js/core/components/functional/mix/mix.js.map +0 -1
  72. package/dist/js/core/components/functional/queue/queue.js +0 -450
  73. package/dist/js/core/components/functional/queue/queue.js.map +0 -1
  74. package/dist/js/core/components/functional/router/redirect.js +0 -54
  75. package/dist/js/core/components/functional/router/redirect.js.map +0 -1
  76. package/dist/js/core/components/functional/router/router.js +0 -179
  77. package/dist/js/core/components/functional/router/router.js.map +0 -1
  78. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +0 -216
  79. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +0 -1
  80. package/dist/js/core/components/functional/sdui/default-library.json +0 -108
  81. package/dist/js/core/components/functional/sdui/sdui-utils.js +0 -64
  82. package/dist/js/core/components/functional/sdui/sdui-utils.js.map +0 -1
  83. package/dist/js/core/components/functional/sdui/sdui.js +0 -266
  84. package/dist/js/core/components/functional/sdui/sdui.js.map +0 -1
  85. package/dist/js/core/components/functional/sdui/types.js +0 -2
  86. package/dist/js/core/components/functional/sdui/types.js.map +0 -1
  87. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +0 -22
  88. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +0 -1
  89. package/dist/js/core/components/functional/states/states.js +0 -172
  90. package/dist/js/core/components/functional/states/states.js.map +0 -1
  91. package/dist/js/core/components/functional/submit/submit.js +0 -284
  92. package/dist/js/core/components/functional/submit/submit.js.map +0 -1
  93. package/dist/js/core/components/functional/subscriber/subscriber.js +0 -39
  94. package/dist/js/core/components/functional/subscriber/subscriber.js.map +0 -1
  95. package/dist/js/core/components/functional/translation/translation.js +0 -28
  96. package/dist/js/core/components/functional/translation/translation.js.map +0 -1
  97. package/dist/js/core/components/functional/value/value.js +0 -28
  98. package/dist/js/core/components/functional/value/value.js.map +0 -1
  99. package/dist/js/core/components/ui/_css/scroll.js +0 -27
  100. package/dist/js/core/components/ui/_css/scroll.js.map +0 -1
  101. package/dist/js/core/components/ui/_css/shadow.js +0 -22
  102. package/dist/js/core/components/ui/_css/shadow.js.map +0 -1
  103. package/dist/js/core/components/ui/_css/size.js +0 -36
  104. package/dist/js/core/components/ui/_css/size.js.map +0 -1
  105. package/dist/js/core/components/ui/_css/type.js +0 -92
  106. package/dist/js/core/components/ui/_css/type.js.map +0 -1
  107. package/dist/js/core/components/ui/alert/alert.js +0 -213
  108. package/dist/js/core/components/ui/alert/alert.js.map +0 -1
  109. package/dist/js/core/components/ui/alert-messages/alert-messages.js +0 -68
  110. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +0 -1
  111. package/dist/js/core/components/ui/badge/badge.js +0 -199
  112. package/dist/js/core/components/ui/badge/badge.js.map +0 -1
  113. package/dist/js/core/components/ui/button/button.js +0 -697
  114. package/dist/js/core/components/ui/button/button.js.map +0 -1
  115. package/dist/js/core/components/ui/captcha/altchaStyles.js +0 -226
  116. package/dist/js/core/components/ui/captcha/altchaStyles.js.map +0 -1
  117. package/dist/js/core/components/ui/captcha/captcha.js +0 -167
  118. package/dist/js/core/components/ui/captcha/captcha.js.map +0 -1
  119. package/dist/js/core/components/ui/card/card-footer.js +0 -26
  120. package/dist/js/core/components/ui/card/card-footer.js.map +0 -1
  121. package/dist/js/core/components/ui/card/card-header-descripton.js +0 -30
  122. package/dist/js/core/components/ui/card/card-header-descripton.js.map +0 -1
  123. package/dist/js/core/components/ui/card/card-header.js +0 -79
  124. package/dist/js/core/components/ui/card/card-header.js.map +0 -1
  125. package/dist/js/core/components/ui/card/card-main.js +0 -26
  126. package/dist/js/core/components/ui/card/card-main.js.map +0 -1
  127. package/dist/js/core/components/ui/card/card.js +0 -67
  128. package/dist/js/core/components/ui/card/card.js.map +0 -1
  129. package/dist/js/core/components/ui/divider/divider.js +0 -200
  130. package/dist/js/core/components/ui/divider/divider.js.map +0 -1
  131. package/dist/js/core/components/ui/form/checkbox/checkbox.js +0 -257
  132. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +0 -1
  133. package/dist/js/core/components/ui/form/css/form-control.js +0 -393
  134. package/dist/js/core/components/ui/form/css/form-control.js.map +0 -1
  135. package/dist/js/core/components/ui/form/fieldset/fieldset.js +0 -124
  136. package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +0 -1
  137. package/dist/js/core/components/ui/form/fieldset/legend-description.js +0 -38
  138. package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +0 -1
  139. package/dist/js/core/components/ui/form/fieldset/legend.js +0 -130
  140. package/dist/js/core/components/ui/form/fieldset/legend.js.map +0 -1
  141. package/dist/js/core/components/ui/form/form-actions/form-actions.js +0 -47
  142. package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +0 -1
  143. package/dist/js/core/components/ui/form/form-layout/form-layout.js +0 -84
  144. package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +0 -1
  145. package/dist/js/core/components/ui/form/input/input.js +0 -316
  146. package/dist/js/core/components/ui/form/input/input.js.map +0 -1
  147. package/dist/js/core/components/ui/form/input/password-helper.js +0 -134
  148. package/dist/js/core/components/ui/form/input/password-helper.js.map +0 -1
  149. package/dist/js/core/components/ui/form/input/same-value-helper.js +0 -85
  150. package/dist/js/core/components/ui/form/input/same-value-helper.js.map +0 -1
  151. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +0 -405
  152. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +0 -1
  153. package/dist/js/core/components/ui/form/radio/radio.js +0 -63
  154. package/dist/js/core/components/ui/form/radio/radio.js.map +0 -1
  155. package/dist/js/core/components/ui/form/select/select.js +0 -323
  156. package/dist/js/core/components/ui/form/select/select.js.map +0 -1
  157. package/dist/js/core/components/ui/form/switch/switch.js +0 -90
  158. package/dist/js/core/components/ui/form/switch/switch.js.map +0 -1
  159. package/dist/js/core/components/ui/form/textarea/textarea.js +0 -162
  160. package/dist/js/core/components/ui/form/textarea/textarea.js.map +0 -1
  161. package/dist/js/core/components/ui/group/group.js +0 -128
  162. package/dist/js/core/components/ui/group/group.js.map +0 -1
  163. package/dist/js/core/components/ui/icon/icon.js +0 -145
  164. package/dist/js/core/components/ui/icon/icon.js.map +0 -1
  165. package/dist/js/core/components/ui/icon/icons.js +0 -184
  166. package/dist/js/core/components/ui/icon/icons.js.map +0 -1
  167. package/dist/js/core/components/ui/icon/icons.json +0 -1
  168. package/dist/js/core/components/ui/image/image.js +0 -160
  169. package/dist/js/core/components/ui/image/image.js.map +0 -1
  170. package/dist/js/core/components/ui/link/link.js +0 -125
  171. package/dist/js/core/components/ui/link/link.js.map +0 -1
  172. package/dist/js/core/components/ui/loader/loader.js +0 -106
  173. package/dist/js/core/components/ui/loader/loader.js.map +0 -1
  174. package/dist/js/core/components/ui/loader/styles/fixed.js +0 -56
  175. package/dist/js/core/components/ui/loader/styles/fixed.js.map +0 -1
  176. package/dist/js/core/components/ui/loader/styles/inline.js +0 -70
  177. package/dist/js/core/components/ui/loader/styles/inline.js.map +0 -1
  178. package/dist/js/core/components/ui/menu/menu-item.js +0 -35
  179. package/dist/js/core/components/ui/menu/menu-item.js.map +0 -1
  180. package/dist/js/core/components/ui/menu/menu.js +0 -436
  181. package/dist/js/core/components/ui/menu/menu.js.map +0 -1
  182. package/dist/js/core/components/ui/modal/modal-actions.js +0 -44
  183. package/dist/js/core/components/ui/modal/modal-actions.js.map +0 -1
  184. package/dist/js/core/components/ui/modal/modal-close.js +0 -56
  185. package/dist/js/core/components/ui/modal/modal-close.js.map +0 -1
  186. package/dist/js/core/components/ui/modal/modal-content.js +0 -27
  187. package/dist/js/core/components/ui/modal/modal-content.js.map +0 -1
  188. package/dist/js/core/components/ui/modal/modal-subtitle.js +0 -34
  189. package/dist/js/core/components/ui/modal/modal-subtitle.js.map +0 -1
  190. package/dist/js/core/components/ui/modal/modal-title.js +0 -35
  191. package/dist/js/core/components/ui/modal/modal-title.js.map +0 -1
  192. package/dist/js/core/components/ui/modal/modal-utils.js +0 -32
  193. package/dist/js/core/components/ui/modal/modal-utils.js.map +0 -1
  194. package/dist/js/core/components/ui/modal/modal.js +0 -568
  195. package/dist/js/core/components/ui/modal/modal.js.map +0 -1
  196. package/dist/js/core/components/ui/pop/pop.js +0 -337
  197. package/dist/js/core/components/ui/pop/pop.js.map +0 -1
  198. package/dist/js/core/components/ui/progress/progress.js +0 -164
  199. package/dist/js/core/components/ui/progress/progress.js.map +0 -1
  200. package/dist/js/core/components/ui/table/table-caption.js +0 -29
  201. package/dist/js/core/components/ui/table/table-caption.js.map +0 -1
  202. package/dist/js/core/components/ui/table/table-tbody.js +0 -41
  203. package/dist/js/core/components/ui/table/table-tbody.js.map +0 -1
  204. package/dist/js/core/components/ui/table/table-td.js +0 -69
  205. package/dist/js/core/components/ui/table/table-td.js.map +0 -1
  206. package/dist/js/core/components/ui/table/table-tfoot.js +0 -28
  207. package/dist/js/core/components/ui/table/table-tfoot.js.map +0 -1
  208. package/dist/js/core/components/ui/table/table-th.js +0 -80
  209. package/dist/js/core/components/ui/table/table-th.js.map +0 -1
  210. package/dist/js/core/components/ui/table/table-thead.js +0 -26
  211. package/dist/js/core/components/ui/table/table-thead.js.map +0 -1
  212. package/dist/js/core/components/ui/table/table-tr.js +0 -67
  213. package/dist/js/core/components/ui/table/table-tr.js.map +0 -1
  214. package/dist/js/core/components/ui/table/table.js +0 -106
  215. package/dist/js/core/components/ui/table/table.js.map +0 -1
  216. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +0 -74
  217. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +0 -1
  218. package/dist/js/core/components/ui/theme/theme-collection/dark.js +0 -39
  219. package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +0 -1
  220. package/dist/js/core/components/ui/theme/theme-collection/light.js +0 -32
  221. package/dist/js/core/components/ui/theme/theme-collection/light.js.map +0 -1
  222. package/dist/js/core/components/ui/theme/theme.js +0 -150
  223. package/dist/js/core/components/ui/theme/theme.js.map +0 -1
  224. package/dist/js/core/components/ui/toast/message-subscriber.js +0 -41
  225. package/dist/js/core/components/ui/toast/message-subscriber.js.map +0 -1
  226. package/dist/js/core/components/ui/toast/toast-item.js +0 -379
  227. package/dist/js/core/components/ui/toast/toast-item.js.map +0 -1
  228. package/dist/js/core/components/ui/toast/toast.js +0 -269
  229. package/dist/js/core/components/ui/toast/toast.js.map +0 -1
  230. package/dist/js/core/components/ui/toast/types.js +0 -2
  231. package/dist/js/core/components/ui/toast/types.js.map +0 -1
  232. package/dist/js/core/components/ui/tooltip/tooltip.js +0 -219
  233. package/dist/js/core/components/ui/tooltip/tooltip.js.map +0 -1
  234. package/dist/js/core/components/ui/ui.js +0 -41
  235. package/dist/js/core/components/ui/ui.js.map +0 -1
  236. package/dist/js/core/core.js +0 -14
  237. package/dist/js/core/core.js.map +0 -1
  238. package/dist/js/core/decorators/Subscriber.js +0 -10
  239. package/dist/js/core/decorators/Subscriber.js.map +0 -1
  240. package/dist/js/core/decorators/api.js +0 -806
  241. package/dist/js/core/decorators/api.js.map +0 -1
  242. package/dist/js/core/decorators/lifecycle.js +0 -67
  243. package/dist/js/core/decorators/lifecycle.js.map +0 -1
  244. package/dist/js/core/decorators/subscriber/ancestorAttribute.js +0 -27
  245. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +0 -1
  246. package/dist/js/core/decorators/subscriber/autoFill.js +0 -26
  247. package/dist/js/core/decorators/subscriber/autoFill.js.map +0 -1
  248. package/dist/js/core/decorators/subscriber/autoSubscribe.js +0 -46
  249. package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +0 -1
  250. package/dist/js/core/decorators/subscriber/bind.js +0 -150
  251. package/dist/js/core/decorators/subscriber/bind.js.map +0 -1
  252. package/dist/js/core/decorators/subscriber/common.js +0 -44
  253. package/dist/js/core/decorators/subscriber/common.js.map +0 -1
  254. package/dist/js/core/decorators/subscriber/derive.js +0 -60
  255. package/dist/js/core/decorators/subscriber/derive.js.map +0 -1
  256. package/dist/js/core/decorators/subscriber/dynamicPath.js +0 -75
  257. package/dist/js/core/decorators/subscriber/dynamicPath.js.map +0 -1
  258. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +0 -138
  259. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +0 -1
  260. package/dist/js/core/decorators/subscriber/handle.js +0 -22
  261. package/dist/js/core/decorators/subscriber/handle.js.map +0 -1
  262. package/dist/js/core/decorators/subscriber/onAssign.js +0 -199
  263. package/dist/js/core/decorators/subscriber/onAssign.js.map +0 -1
  264. package/dist/js/core/decorators/subscriber/publish.js +0 -108
  265. package/dist/js/core/decorators/subscriber/publish.js.map +0 -1
  266. package/dist/js/core/decorators/subscriber/publisherPath.js +0 -16
  267. package/dist/js/core/decorators/subscriber/publisherPath.js.map +0 -1
  268. package/dist/js/core/decorators/subscriber/subscribe.js +0 -20
  269. package/dist/js/core/decorators/subscriber/subscribe.js.map +0 -1
  270. package/dist/js/core/directives/DataProvider.js +0 -127
  271. package/dist/js/core/directives/DataProvider.js.map +0 -1
  272. package/dist/js/core/directives/Wording.js +0 -221
  273. package/dist/js/core/directives/Wording.js.map +0 -1
  274. package/dist/js/core/mixins/Fetcher.js +0 -325
  275. package/dist/js/core/mixins/Fetcher.js.map +0 -1
  276. package/dist/js/core/mixins/FormCheckable.js +0 -313
  277. package/dist/js/core/mixins/FormCheckable.js.map +0 -1
  278. package/dist/js/core/mixins/FormElement.js +0 -304
  279. package/dist/js/core/mixins/FormElement.js.map +0 -1
  280. package/dist/js/core/mixins/FormInput.js +0 -82
  281. package/dist/js/core/mixins/FormInput.js.map +0 -1
  282. package/dist/js/core/mixins/Subscriber.js +0 -354
  283. package/dist/js/core/mixins/Subscriber.js.map +0 -1
  284. package/dist/js/core/mixins/TemplatesContainer.js +0 -70
  285. package/dist/js/core/mixins/TemplatesContainer.js.map +0 -1
  286. package/dist/js/core/mixins/mixins.js +0 -7
  287. package/dist/js/core/mixins/mixins.js.map +0 -1
  288. package/dist/js/core/utils/AncestorAttributeObserver.js +0 -140
  289. package/dist/js/core/utils/AncestorAttributeObserver.js.map +0 -1
  290. package/dist/js/core/utils/Arrays.js +0 -141
  291. package/dist/js/core/utils/Arrays.js.map +0 -1
  292. package/dist/js/core/utils/DataBindObserver.js +0 -265
  293. package/dist/js/core/utils/DataBindObserver.js.map +0 -1
  294. package/dist/js/core/utils/Electron.js +0 -14
  295. package/dist/js/core/utils/Electron.js.map +0 -1
  296. package/dist/js/core/utils/Format.js +0 -43
  297. package/dist/js/core/utils/Format.js.map +0 -1
  298. package/dist/js/core/utils/HTML.js +0 -272
  299. package/dist/js/core/utils/HTML.js.map +0 -1
  300. package/dist/js/core/utils/LocationHandler.js +0 -143
  301. package/dist/js/core/utils/LocationHandler.js.map +0 -1
  302. package/dist/js/core/utils/Objects.js +0 -111
  303. package/dist/js/core/utils/Objects.js.map +0 -1
  304. package/dist/js/core/utils/PublisherProxy.js +0 -946
  305. package/dist/js/core/utils/PublisherProxy.js.map +0 -1
  306. package/dist/js/core/utils/SafariScrollGuard.js +0 -384
  307. package/dist/js/core/utils/SafariScrollGuard.js.map +0 -1
  308. package/dist/js/core/utils/Utils.js +0 -19
  309. package/dist/js/core/utils/Utils.js.map +0 -1
  310. package/dist/js/core/utils/aesCrypto.js +0 -98
  311. package/dist/js/core/utils/aesCrypto.js.map +0 -1
  312. package/dist/js/core/utils/api.js +0 -595
  313. package/dist/js/core/utils/api.js.map +0 -1
  314. package/dist/js/core/utils/dataProviderKey.js +0 -64
  315. package/dist/js/core/utils/dataProviderKey.js.map +0 -1
  316. package/dist/js/core/utils/derive.js +0 -246
  317. package/dist/js/core/utils/derive.js.map +0 -1
  318. package/dist/js/core/utils/endpoint.js +0 -74
  319. package/dist/js/core/utils/endpoint.js.map +0 -1
  320. package/dist/js/core/utils/jsonataHelpers.js +0 -69
  321. package/dist/js/core/utils/jsonataHelpers.js.map +0 -1
  322. package/dist/js/core/utils/jsonataRuntime.js +0 -75
  323. package/dist/js/core/utils/jsonataRuntime.js.map +0 -1
  324. package/dist/js/core/utils/route.js +0 -149
  325. package/dist/js/core/utils/route.js.map +0 -1
  326. package/dist/js/core/utils/url-pattern.js +0 -3
  327. package/dist/js/core/utils/url-pattern.js.map +0 -1
  328. package/dist/js/dataprovider.js +0 -2
  329. package/dist/js/dataprovider.js.map +0 -1
  330. package/dist/js/decorators.js +0 -43
  331. package/dist/js/decorators.js.map +0 -1
  332. package/dist/js/directives.js +0 -30
  333. package/dist/js/directives.js.map +0 -1
  334. package/dist/js/index.js +0 -8
  335. package/dist/js/index.js.map +0 -1
  336. package/dist/js/mixins.js +0 -23
  337. package/dist/js/mixins.js.map +0 -1
  338. package/dist/js/test-utils/TestUtils.js +0 -10
  339. package/dist/js/test-utils/TestUtils.js.map +0 -1
  340. package/dist/js/utils.js +0 -46
  341. package/dist/js/utils.js.map +0 -1
  342. package/dist/types/components.d.ts +0 -5
  343. package/dist/types/components.d.ts.map +0 -1
  344. package/dist/types/concorde-loaded.d.ts +0 -2
  345. package/dist/types/concorde-loaded.d.ts.map +0 -1
  346. package/dist/types/core/_types/endpoint.d.ts +0 -5
  347. package/dist/types/core/_types/endpoint.d.ts.map +0 -1
  348. package/dist/types/core/_types/key.d.ts +0 -2
  349. package/dist/types/core/_types/key.d.ts.map +0 -1
  350. package/dist/types/core/_types/types.d.ts +0 -28
  351. package/dist/types/core/_types/types.d.ts.map +0 -1
  352. package/dist/types/core/components/functional/date/date.d.ts +0 -52
  353. package/dist/types/core/components/functional/date/date.d.ts.map +0 -1
  354. package/dist/types/core/components/functional/example/example.d.ts +0 -15
  355. package/dist/types/core/components/functional/example/example.d.ts.map +0 -1
  356. package/dist/types/core/components/functional/fetch/fetch.d.ts +0 -102
  357. package/dist/types/core/components/functional/fetch/fetch.d.ts.map +0 -1
  358. package/dist/types/core/components/functional/functional.d.ts +0 -18
  359. package/dist/types/core/components/functional/functional.d.ts.map +0 -1
  360. package/dist/types/core/components/functional/if/if.d.ts +0 -13
  361. package/dist/types/core/components/functional/if/if.d.ts.map +0 -1
  362. package/dist/types/core/components/functional/jsonata/jsonata.d.ts +0 -29
  363. package/dist/types/core/components/functional/jsonata/jsonata.d.ts.map +0 -1
  364. package/dist/types/core/components/functional/list/list.d.ts +0 -149
  365. package/dist/types/core/components/functional/list/list.d.ts.map +0 -1
  366. package/dist/types/core/components/functional/mix/mix.d.ts +0 -23
  367. package/dist/types/core/components/functional/mix/mix.d.ts.map +0 -1
  368. package/dist/types/core/components/functional/queue/queue.d.ts +0 -93
  369. package/dist/types/core/components/functional/queue/queue.d.ts.map +0 -1
  370. package/dist/types/core/components/functional/router/redirect.d.ts +0 -19
  371. package/dist/types/core/components/functional/router/redirect.d.ts.map +0 -1
  372. package/dist/types/core/components/functional/router/router.d.ts +0 -46
  373. package/dist/types/core/components/functional/router/router.d.ts.map +0 -1
  374. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -59
  375. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +0 -1
  376. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +0 -6
  377. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +0 -1
  378. package/dist/types/core/components/functional/sdui/sdui.d.ts +0 -145
  379. package/dist/types/core/components/functional/sdui/sdui.d.ts.map +0 -1
  380. package/dist/types/core/components/functional/sdui/types.d.ts +0 -38
  381. package/dist/types/core/components/functional/sdui/types.d.ts.map +0 -1
  382. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -6
  383. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +0 -1
  384. package/dist/types/core/components/functional/states/states.d.ts +0 -42
  385. package/dist/types/core/components/functional/states/states.d.ts.map +0 -1
  386. package/dist/types/core/components/functional/submit/submit.d.ts +0 -37
  387. package/dist/types/core/components/functional/submit/submit.d.ts.map +0 -1
  388. package/dist/types/core/components/functional/subscriber/subscriber.d.ts +0 -13
  389. package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +0 -1
  390. package/dist/types/core/components/functional/translation/translation.d.ts +0 -7
  391. package/dist/types/core/components/functional/translation/translation.d.ts.map +0 -1
  392. package/dist/types/core/components/functional/value/value.d.ts +0 -8
  393. package/dist/types/core/components/functional/value/value.d.ts.map +0 -1
  394. package/dist/types/core/components/ui/_css/scroll.d.ts +0 -2
  395. package/dist/types/core/components/ui/_css/scroll.d.ts.map +0 -1
  396. package/dist/types/core/components/ui/_css/shadow.d.ts +0 -3
  397. package/dist/types/core/components/ui/_css/shadow.d.ts.map +0 -1
  398. package/dist/types/core/components/ui/_css/size.d.ts +0 -3
  399. package/dist/types/core/components/ui/_css/size.d.ts.map +0 -1
  400. package/dist/types/core/components/ui/_css/type.d.ts +0 -3
  401. package/dist/types/core/components/ui/_css/type.d.ts.map +0 -1
  402. package/dist/types/core/components/ui/alert/alert.d.ts +0 -37
  403. package/dist/types/core/components/ui/alert/alert.d.ts.map +0 -1
  404. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +0 -15
  405. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +0 -1
  406. package/dist/types/core/components/ui/badge/badge.d.ts +0 -27
  407. package/dist/types/core/components/ui/badge/badge.d.ts.map +0 -1
  408. package/dist/types/core/components/ui/button/button.d.ts +0 -180
  409. package/dist/types/core/components/ui/button/button.d.ts.map +0 -1
  410. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +0 -2
  411. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +0 -1
  412. package/dist/types/core/components/ui/captcha/captcha.d.ts +0 -30
  413. package/dist/types/core/components/ui/captcha/captcha.d.ts.map +0 -1
  414. package/dist/types/core/components/ui/card/card-footer.d.ts +0 -6
  415. package/dist/types/core/components/ui/card/card-footer.d.ts.map +0 -1
  416. package/dist/types/core/components/ui/card/card-header-descripton.d.ts +0 -6
  417. package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +0 -1
  418. package/dist/types/core/components/ui/card/card-header.d.ts +0 -9
  419. package/dist/types/core/components/ui/card/card-header.d.ts.map +0 -1
  420. package/dist/types/core/components/ui/card/card-main.d.ts +0 -6
  421. package/dist/types/core/components/ui/card/card-main.d.ts.map +0 -1
  422. package/dist/types/core/components/ui/card/card.d.ts +0 -13
  423. package/dist/types/core/components/ui/card/card.d.ts.map +0 -1
  424. package/dist/types/core/components/ui/divider/divider.d.ts +0 -16
  425. package/dist/types/core/components/ui/divider/divider.d.ts.map +0 -1
  426. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +0 -176
  427. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +0 -1
  428. package/dist/types/core/components/ui/form/css/form-control.d.ts +0 -5
  429. package/dist/types/core/components/ui/form/css/form-control.d.ts.map +0 -1
  430. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +0 -24
  431. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +0 -1
  432. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +0 -6
  433. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +0 -1
  434. package/dist/types/core/components/ui/form/fieldset/legend.d.ts +0 -17
  435. package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +0 -1
  436. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +0 -8
  437. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +0 -1
  438. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +0 -13
  439. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +0 -1
  440. package/dist/types/core/components/ui/form/input/input.d.ts +0 -123
  441. package/dist/types/core/components/ui/form/input/input.d.ts.map +0 -1
  442. package/dist/types/core/components/ui/form/input/password-helper.d.ts +0 -26
  443. package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +0 -1
  444. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +0 -17
  445. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +0 -1
  446. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +0 -155
  447. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +0 -1
  448. package/dist/types/core/components/ui/form/radio/radio.d.ts +0 -15
  449. package/dist/types/core/components/ui/form/radio/radio.d.ts.map +0 -1
  450. package/dist/types/core/components/ui/form/select/select.d.ts +0 -59
  451. package/dist/types/core/components/ui/form/select/select.d.ts.map +0 -1
  452. package/dist/types/core/components/ui/form/switch/switch.d.ts +0 -6
  453. package/dist/types/core/components/ui/form/switch/switch.d.ts.map +0 -1
  454. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +0 -94
  455. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +0 -1
  456. package/dist/types/core/components/ui/group/group.d.ts +0 -17
  457. package/dist/types/core/components/ui/group/group.d.ts.map +0 -1
  458. package/dist/types/core/components/ui/icon/icon.d.ts +0 -30
  459. package/dist/types/core/components/ui/icon/icon.d.ts.map +0 -1
  460. package/dist/types/core/components/ui/icon/icons.d.ts +0 -13
  461. package/dist/types/core/components/ui/icon/icons.d.ts.map +0 -1
  462. package/dist/types/core/components/ui/image/image.d.ts +0 -16
  463. package/dist/types/core/components/ui/image/image.d.ts.map +0 -1
  464. package/dist/types/core/components/ui/link/link.d.ts +0 -30
  465. package/dist/types/core/components/ui/link/link.d.ts.map +0 -1
  466. package/dist/types/core/components/ui/loader/loader.d.ts +0 -24
  467. package/dist/types/core/components/ui/loader/loader.d.ts.map +0 -1
  468. package/dist/types/core/components/ui/loader/styles/fixed.d.ts +0 -2
  469. package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +0 -1
  470. package/dist/types/core/components/ui/loader/styles/inline.d.ts +0 -2
  471. package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +0 -1
  472. package/dist/types/core/components/ui/menu/menu-item.d.ts +0 -6
  473. package/dist/types/core/components/ui/menu/menu-item.d.ts.map +0 -1
  474. package/dist/types/core/components/ui/menu/menu.d.ts +0 -52
  475. package/dist/types/core/components/ui/menu/menu.d.ts.map +0 -1
  476. package/dist/types/core/components/ui/modal/modal-actions.d.ts +0 -9
  477. package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +0 -1
  478. package/dist/types/core/components/ui/modal/modal-close.d.ts +0 -11
  479. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +0 -1
  480. package/dist/types/core/components/ui/modal/modal-content.d.ts +0 -6
  481. package/dist/types/core/components/ui/modal/modal-content.d.ts.map +0 -1
  482. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +0 -6
  483. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +0 -1
  484. package/dist/types/core/components/ui/modal/modal-title.d.ts +0 -6
  485. package/dist/types/core/components/ui/modal/modal-title.d.ts.map +0 -1
  486. package/dist/types/core/components/ui/modal/modal-utils.d.ts +0 -4
  487. package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +0 -1
  488. package/dist/types/core/components/ui/modal/modal.d.ts +0 -79
  489. package/dist/types/core/components/ui/modal/modal.d.ts.map +0 -1
  490. package/dist/types/core/components/ui/pop/pop.d.ts +0 -42
  491. package/dist/types/core/components/ui/pop/pop.d.ts.map +0 -1
  492. package/dist/types/core/components/ui/progress/progress.d.ts +0 -12
  493. package/dist/types/core/components/ui/progress/progress.d.ts.map +0 -1
  494. package/dist/types/core/components/ui/table/table-caption.d.ts +0 -6
  495. package/dist/types/core/components/ui/table/table-caption.d.ts.map +0 -1
  496. package/dist/types/core/components/ui/table/table-tbody.d.ts +0 -6
  497. package/dist/types/core/components/ui/table/table-tbody.d.ts.map +0 -1
  498. package/dist/types/core/components/ui/table/table-td.d.ts +0 -13
  499. package/dist/types/core/components/ui/table/table-td.d.ts.map +0 -1
  500. package/dist/types/core/components/ui/table/table-tfoot.d.ts +0 -6
  501. package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +0 -1
  502. package/dist/types/core/components/ui/table/table-th.d.ts +0 -12
  503. package/dist/types/core/components/ui/table/table-th.d.ts.map +0 -1
  504. package/dist/types/core/components/ui/table/table-thead.d.ts +0 -6
  505. package/dist/types/core/components/ui/table/table-thead.d.ts.map +0 -1
  506. package/dist/types/core/components/ui/table/table-tr.d.ts +0 -14
  507. package/dist/types/core/components/ui/table/table-tr.d.ts.map +0 -1
  508. package/dist/types/core/components/ui/table/table.d.ts +0 -18
  509. package/dist/types/core/components/ui/table/table.d.ts.map +0 -1
  510. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -2
  511. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +0 -1
  512. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +0 -2
  513. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +0 -1
  514. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +0 -2
  515. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +0 -1
  516. package/dist/types/core/components/ui/theme/theme.d.ts +0 -20
  517. package/dist/types/core/components/ui/theme/theme.d.ts.map +0 -1
  518. package/dist/types/core/components/ui/toast/message-subscriber.d.ts +0 -19
  519. package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +0 -1
  520. package/dist/types/core/components/ui/toast/toast-item.d.ts +0 -41
  521. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +0 -1
  522. package/dist/types/core/components/ui/toast/toast.d.ts +0 -28
  523. package/dist/types/core/components/ui/toast/toast.d.ts.map +0 -1
  524. package/dist/types/core/components/ui/toast/types.d.ts +0 -12
  525. package/dist/types/core/components/ui/toast/types.d.ts.map +0 -1
  526. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +0 -21
  527. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +0 -1
  528. package/dist/types/core/components/ui/ui.d.ts +0 -35
  529. package/dist/types/core/components/ui/ui.d.ts.map +0 -1
  530. package/dist/types/core/core.d.ts +0 -5
  531. package/dist/types/core/core.d.ts.map +0 -1
  532. package/dist/types/core/decorators/Subscriber.d.ts +0 -13
  533. package/dist/types/core/decorators/Subscriber.d.ts.map +0 -1
  534. package/dist/types/core/decorators/api.d.ts +0 -155
  535. package/dist/types/core/decorators/api.d.ts.map +0 -1
  536. package/dist/types/core/decorators/lifecycle.d.ts +0 -19
  537. package/dist/types/core/decorators/lifecycle.d.ts.map +0 -1
  538. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +0 -11
  539. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +0 -1
  540. package/dist/types/core/decorators/subscriber/autoFill.d.ts +0 -2
  541. package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +0 -1
  542. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +0 -2
  543. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +0 -1
  544. package/dist/types/core/decorators/subscriber/bind.d.ts +0 -28
  545. package/dist/types/core/decorators/subscriber/bind.d.ts.map +0 -1
  546. package/dist/types/core/decorators/subscriber/common.d.ts +0 -14
  547. package/dist/types/core/decorators/subscriber/common.d.ts.map +0 -1
  548. package/dist/types/core/decorators/subscriber/derive.d.ts +0 -30
  549. package/dist/types/core/decorators/subscriber/derive.d.ts.map +0 -1
  550. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +0 -23
  551. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +0 -1
  552. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +0 -42
  553. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +0 -1
  554. package/dist/types/core/decorators/subscriber/handle.d.ts +0 -74
  555. package/dist/types/core/decorators/subscriber/handle.d.ts.map +0 -1
  556. package/dist/types/core/decorators/subscriber/onAssign.d.ts +0 -53
  557. package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +0 -1
  558. package/dist/types/core/decorators/subscriber/publish.d.ts +0 -23
  559. package/dist/types/core/decorators/subscriber/publish.d.ts.map +0 -1
  560. package/dist/types/core/decorators/subscriber/publisherPath.d.ts +0 -3
  561. package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +0 -1
  562. package/dist/types/core/decorators/subscriber/subscribe.d.ts +0 -20
  563. package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +0 -1
  564. package/dist/types/core/directives/DataProvider.d.ts +0 -45
  565. package/dist/types/core/directives/DataProvider.d.ts.map +0 -1
  566. package/dist/types/core/directives/Wording.d.ts +0 -44
  567. package/dist/types/core/directives/Wording.d.ts.map +0 -1
  568. package/dist/types/core/mixins/Fetcher.d.ts +0 -108
  569. package/dist/types/core/mixins/Fetcher.d.ts.map +0 -1
  570. package/dist/types/core/mixins/FormCheckable.d.ts +0 -95
  571. package/dist/types/core/mixins/FormCheckable.d.ts.map +0 -1
  572. package/dist/types/core/mixins/FormElement.d.ts +0 -37
  573. package/dist/types/core/mixins/FormElement.d.ts.map +0 -1
  574. package/dist/types/core/mixins/FormInput.d.ts +0 -79
  575. package/dist/types/core/mixins/FormInput.d.ts.map +0 -1
  576. package/dist/types/core/mixins/Subscriber.d.ts +0 -38
  577. package/dist/types/core/mixins/Subscriber.d.ts.map +0 -1
  578. package/dist/types/core/mixins/TemplatesContainer.d.ts +0 -14
  579. package/dist/types/core/mixins/TemplatesContainer.d.ts.map +0 -1
  580. package/dist/types/core/mixins/mixins.d.ts +0 -7
  581. package/dist/types/core/mixins/mixins.d.ts.map +0 -1
  582. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +0 -38
  583. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +0 -1
  584. package/dist/types/core/utils/Arrays.d.ts +0 -98
  585. package/dist/types/core/utils/Arrays.d.ts.map +0 -1
  586. package/dist/types/core/utils/DataBindObserver.d.ts +0 -84
  587. package/dist/types/core/utils/DataBindObserver.d.ts.map +0 -1
  588. package/dist/types/core/utils/Electron.d.ts +0 -8
  589. package/dist/types/core/utils/Electron.d.ts.map +0 -1
  590. package/dist/types/core/utils/Format.d.ts +0 -13
  591. package/dist/types/core/utils/Format.d.ts.map +0 -1
  592. package/dist/types/core/utils/HTML.d.ts +0 -79
  593. package/dist/types/core/utils/HTML.d.ts.map +0 -1
  594. package/dist/types/core/utils/LocationHandler.d.ts +0 -48
  595. package/dist/types/core/utils/LocationHandler.d.ts.map +0 -1
  596. package/dist/types/core/utils/Objects.d.ts +0 -31
  597. package/dist/types/core/utils/Objects.d.ts.map +0 -1
  598. package/dist/types/core/utils/PublisherProxy.d.ts +0 -230
  599. package/dist/types/core/utils/PublisherProxy.d.ts.map +0 -1
  600. package/dist/types/core/utils/SafariScrollGuard.d.ts +0 -36
  601. package/dist/types/core/utils/SafariScrollGuard.d.ts.map +0 -1
  602. package/dist/types/core/utils/Utils.d.ts +0 -6
  603. package/dist/types/core/utils/Utils.d.ts.map +0 -1
  604. package/dist/types/core/utils/aesCrypto.d.ts +0 -53
  605. package/dist/types/core/utils/aesCrypto.d.ts.map +0 -1
  606. package/dist/types/core/utils/api.d.ts +0 -173
  607. package/dist/types/core/utils/api.d.ts.map +0 -1
  608. package/dist/types/core/utils/dataProviderKey.d.ts +0 -56
  609. package/dist/types/core/utils/dataProviderKey.d.ts.map +0 -1
  610. package/dist/types/core/utils/derive.d.ts +0 -40
  611. package/dist/types/core/utils/derive.d.ts.map +0 -1
  612. package/dist/types/core/utils/endpoint.d.ts +0 -37
  613. package/dist/types/core/utils/endpoint.d.ts.map +0 -1
  614. package/dist/types/core/utils/jsonataHelpers.d.ts +0 -15
  615. package/dist/types/core/utils/jsonataHelpers.d.ts.map +0 -1
  616. package/dist/types/core/utils/jsonataRuntime.d.ts +0 -13
  617. package/dist/types/core/utils/jsonataRuntime.d.ts.map +0 -1
  618. package/dist/types/core/utils/route.d.ts +0 -41
  619. package/dist/types/core/utils/route.d.ts.map +0 -1
  620. package/dist/types/core/utils/url-pattern.d.ts +0 -3
  621. package/dist/types/core/utils/url-pattern.d.ts.map +0 -1
  622. package/dist/types/dataprovider.d.ts +0 -2
  623. package/dist/types/dataprovider.d.ts.map +0 -1
  624. package/dist/types/decorators.d.ts +0 -30
  625. package/dist/types/decorators.d.ts.map +0 -1
  626. package/dist/types/directives.d.ts +0 -21
  627. package/dist/types/directives.d.ts.map +0 -1
  628. package/dist/types/index.d.ts +0 -8
  629. package/dist/types/index.d.ts.map +0 -1
  630. package/dist/types/mixins.d.ts +0 -204
  631. package/dist/types/mixins.d.ts.map +0 -1
  632. package/dist/types/test-utils/TestUtils.d.ts +0 -4
  633. package/dist/types/test-utils/TestUtils.d.ts.map +0 -1
  634. package/dist/types/utils.d.ts +0 -20
  635. package/dist/types/utils.d.ts.map +0 -1
  636. package/docs/assets/index-DpIkksht.js +0 -11626
@@ -1,64 +0,0 @@
1
- /**
2
- * Type-safe navigation through composite data structures (publisher paths).
3
- * Each property or index access extends the path. Retrieve the final path via toString() or path.
4
- * Supports dynamic paths: use placeholders like "users.${userIndex}" in the constructor.
5
- *
6
- * @example
7
- * const myKey = new DataProviderKey<Data>("data").items[0];
8
- * myKey.toString(); // "data.items.0"
9
- * myKey.path; // same
10
- *
11
- * @example
12
- * // U = dépendances dynamiques sur l’hôte (voir DataProviderKeyHost) — propagé sur .foo.bar
13
- * new DataProviderKey<User, { userIndex: number }>("demoUsers.${userIndex}");
14
- */
15
- class DataProviderKeyImpl {
16
- constructor(path) {
17
- this.path = path;
18
- }
19
- toString() {
20
- return this.path;
21
- }
22
- }
23
- function createDataProviderKeyProxy(key) {
24
- return new Proxy(key, {
25
- get(target, prop) {
26
- if (prop === "path")
27
- return target.path;
28
- if (prop === "toString")
29
- return target.toString.bind(target);
30
- if (prop === Symbol.toStringTag)
31
- return "DataProviderKey";
32
- if (typeof prop === "symbol")
33
- return target[prop];
34
- const newPath = target.path
35
- ? `${target.path}.${String(prop)}`
36
- : String(prop);
37
- return createDataProviderKeyProxy(new DataProviderKeyImpl(newPath));
38
- },
39
- });
40
- }
41
- /** Placeholders `${…}` / `{$…}` — resolved only by decorators (@subscribe, @publish, …). */
42
- const DYNAMIC_PUBLISHER_PATH = /\$\{|\{\$/;
43
- export function isDynamicPublisherPath(path) {
44
- return DYNAMIC_PUBLISHER_PATH.test(path);
45
- }
46
- /**
47
- * Resolves a static publisher path for get / set / dp.
48
- * Rejects DataProviderKey templates with dynamic placeholders.
49
- */
50
- export function resolveStaticPublisherPath(input) {
51
- const path = typeof input === "string" ? input : input.path;
52
- if (isDynamicPublisherPath(path)) {
53
- throw new Error("Static publisher path required for get/set/dp. Use @subscribe, @publish, or @handle for dynamic DataProviderKey paths.");
54
- }
55
- return path;
56
- }
57
- /* eslint-disable @typescript-eslint/no-explicit-any */
58
- export const DataProviderKey = function (path) {
59
- if (!(this instanceof DataProviderKey)) {
60
- return new DataProviderKey(path);
61
- }
62
- return createDataProviderKeyProxy(new DataProviderKeyImpl(path));
63
- };
64
- //# sourceMappingURL=dataProviderKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataProviderKey.js","sourceRoot":"","sources":["../../../../src/core/utils/dataProviderKey.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA+CH,MAAM,mBAAmB;IAIvB,YAA4B,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;IAAG,CAAC;IAE5C,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF;AAED,SAAS,0BAA0B,CACjC,GAA8B;IAE9B,OAAO,IAAI,KAAK,CAAC,GAAG,EAAE;QACpB,GAAG,CAAC,MAAM,EAAE,IAAqB;YAC/B,IAAI,IAAI,KAAK,MAAM;gBAAE,OAAO,MAAM,CAAC,IAAI,CAAC;YACxC,IAAI,IAAI,KAAK,UAAU;gBAAE,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC7D,IAAI,IAAI,KAAK,MAAM,CAAC,WAAW;gBAAE,OAAO,iBAAiB,CAAC;YAC1D,IAAI,OAAO,IAAI,KAAK,QAAQ;gBAC1B,OAAQ,MAA6C,CAAC,IAAI,CAAC,CAAC;YAC9D,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI;gBACzB,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE;gBAClC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACjB,OAAO,0BAA0B,CAC/B,IAAI,mBAAmB,CAAa,OAAO,CAAC,CAC7C,CAAC;QACJ,CAAC;KACF,CAA0B,CAAC;AAC9B,CAAC;AAMD,4FAA4F;AAC5F,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAE3C,MAAM,UAAU,sBAAsB,CAAC,IAAY;IACjD,OAAO,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAID;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAyB;IAClE,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5D,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CACb,wHAAwH,CACzH,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,uDAAuD;AACvD,MAAM,CAAC,MAAM,eAAe,GAA+B,UAEzD,IAAY;IAEZ,IAAI,CAAC,CAAC,IAAI,YAAY,eAAe,CAAC,EAAE,CAAC;QACvC,OAAO,IAAK,eAA8C,CAAC,IAAI,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,0BAA0B,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;AACnE,CAAQ,CAAC"}
@@ -1,246 +0,0 @@
1
- import { resolveStaticPublisherPath, } from "@supersoniks/concorde/core/utils/dataProviderKey";
2
- import { PublisherManager, } from "@supersoniks/concorde/core/utils/PublisherProxy";
3
- import Objects from "@supersoniks/concorde/core/utils/Objects";
4
- const DEFAULT_DEBOUNCE_MS = 50;
5
- const DEFAULT_MAX_INPUT_ITEMS = 10_000;
6
- const SLOW_EVAL_MS = 100;
7
- /** Graphe derivation : outputPath → set(inputRootIds) pour détection de cycles. */
8
- const deriveEdges = new Map();
9
- function pathOf(input) {
10
- return resolveStaticPublisherPath(input);
11
- }
12
- function rootOf(path) {
13
- return path.split(".")[0] ?? path;
14
- }
15
- function resolvePublisher(path) {
16
- const parts = path.split(".");
17
- const root = parts.shift();
18
- let pub = PublisherManager.get(root);
19
- if (parts.length) {
20
- pub = Objects.traverse(pub, parts);
21
- }
22
- return pub;
23
- }
24
- function defaultIsEmpty(value) {
25
- if (value == null)
26
- return true;
27
- if (Array.isArray(value))
28
- return value.length === 0;
29
- if (typeof value === "object")
30
- return Object.keys(value).length === 0;
31
- if (typeof value === "string")
32
- return value.length === 0;
33
- return false;
34
- }
35
- function countItems(value) {
36
- if (Array.isArray(value))
37
- return value.length;
38
- return 0;
39
- }
40
- /**
41
- * Détecte un cycle si `output` chevauche une entrée, ou si une chaîne de
42
- * dérivations (output → inputs) revient sur elle-même.
43
- */
44
- function assertNoCycle(outputPath, inputPaths) {
45
- for (const inputPath of inputPaths) {
46
- if (inputPath === outputPath ||
47
- outputPath.startsWith(inputPath + ".") ||
48
- inputPath.startsWith(outputPath + ".")) {
49
- throw new Error(`[derive] Cycle détecté : la sortie "${outputPath}" chevauche l'entrée "${inputPath}".`);
50
- }
51
- }
52
- const outputRoot = rootOf(outputPath);
53
- const deps = new Map();
54
- for (const [out, inputs] of deriveEdges) {
55
- deps.set(rootOf(out), new Set(inputs));
56
- }
57
- deps.set(outputRoot, new Set(inputPaths.map(rootOf)));
58
- const stack = new Set();
59
- const visit = (node) => {
60
- if (stack.has(node))
61
- return true;
62
- stack.add(node);
63
- for (const d of deps.get(node) ?? []) {
64
- if (visit(d))
65
- return true;
66
- }
67
- stack.delete(node);
68
- return false;
69
- };
70
- if (visit(outputRoot)) {
71
- throw new Error(`[derive] Cycle détecté (chaîne) : la sortie "${outputPath}" dépend indirectement d'elle-même.`);
72
- }
73
- }
74
- function registerEdges(outputPath, inputPaths) {
75
- deriveEdges.set(outputPath, new Set(inputPaths.map((p) => rootOf(p))));
76
- }
77
- function unregisterEdges(outputPath) {
78
- deriveEdges.delete(outputPath);
79
- }
80
- /**
81
- * État de dérivation publié sur `{outputRoot}/_state_` pour `sonic-states`.
82
- */
83
- export function deriveStateKey(output) {
84
- return `${rootOf(pathOf(output))}/_state_`;
85
- }
86
- function publishState(outputPath, state) {
87
- const statePath = deriveStateKey(outputPath);
88
- PublisherManager.get(statePath).set(state);
89
- }
90
- export function derive(inputsOrOptions, compute, output, variables) {
91
- const opts = typeof inputsOrOptions.compute === "function"
92
- ? inputsOrOptions
93
- : {
94
- inputs: inputsOrOptions,
95
- compute: compute,
96
- output: output,
97
- variables,
98
- };
99
- const debounceMs = opts.debounceMs ?? DEFAULT_DEBOUNCE_MS;
100
- const maxItems = opts.maxInputItems ?? DEFAULT_MAX_INPUT_ITEMS;
101
- const isEmpty = opts.isEmpty ?? defaultIsEmpty;
102
- const outputPath = pathOf(opts.output);
103
- const inputEntries = Object.entries(opts.inputs).map(([alias, key]) => ({
104
- alias,
105
- path: pathOf(key),
106
- }));
107
- const inputPaths = inputEntries.map((e) => e.path);
108
- const variablesPath = opts.variables
109
- ? pathOf(opts.variables)
110
- : null;
111
- assertNoCycle(outputPath, inputPaths);
112
- registerEdges(outputPath, inputPaths);
113
- const outputPub = resolvePublisher(outputPath);
114
- let lastValue;
115
- let writing = false;
116
- let generation = 0;
117
- let timer = null;
118
- let stopped = false;
119
- let lastMemoKey = "";
120
- const setOutput = (value) => {
121
- writing = true;
122
- lastValue = value;
123
- outputPub.set(value);
124
- writing = false;
125
- };
126
- const onExternalWrite = () => {
127
- if (writing || stopped)
128
- return;
129
- if (typeof console !== "undefined" && console.warn) {
130
- console.warn(`[derive] Écriture ignorée sur la sortie readonly "${outputPath}".`);
131
- }
132
- if (lastValue !== undefined) {
133
- writing = true;
134
- outputPub.set(lastValue);
135
- writing = false;
136
- }
137
- };
138
- outputPub.onAssign(onExternalWrite, false);
139
- const collectInputs = () => {
140
- const result = {};
141
- for (const { alias, path } of inputEntries) {
142
- const value = resolvePublisher(path).get();
143
- const n = countItems(value);
144
- if (n > maxItems && typeof console !== "undefined" && console.warn) {
145
- console.warn(`[derive] Entrée "${path}" : ${n} éléments (> ${maxItems}). Agrégation lourde — envisager un plafond côté fetch.`);
146
- }
147
- result[alias] = value;
148
- }
149
- return result;
150
- };
151
- const collectVars = () => {
152
- if (!variablesPath)
153
- return {};
154
- return (resolvePublisher(variablesPath).get() ?? {});
155
- };
156
- const run = async () => {
157
- if (stopped)
158
- return;
159
- const gen = ++generation;
160
- publishState(outputPath, { status: "loading", error: null });
161
- const inputs = collectInputs();
162
- const vars = collectVars();
163
- const memoKey = JSON.stringify({ inputs, vars });
164
- if (memoKey === lastMemoKey && lastValue !== undefined) {
165
- publishState(outputPath, {
166
- status: isEmpty(lastValue) ? "empty" : "ready",
167
- error: null,
168
- });
169
- return;
170
- }
171
- const t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
172
- try {
173
- const result = await Promise.resolve(opts.compute(inputs, vars));
174
- if (stopped || gen !== generation)
175
- return;
176
- const elapsed = (typeof performance !== "undefined" ? performance.now() : Date.now()) -
177
- t0;
178
- if (elapsed > SLOW_EVAL_MS && typeof console !== "undefined" && console.warn) {
179
- console.warn(`[derive] Évaluation longue (${Math.round(elapsed)} ms) → "${outputPath}".`);
180
- }
181
- lastMemoKey = memoKey;
182
- setOutput(result);
183
- publishState(outputPath, {
184
- status: isEmpty(result) ? "empty" : "ready",
185
- error: null,
186
- });
187
- }
188
- catch (err) {
189
- if (stopped || gen !== generation)
190
- return;
191
- const message = err instanceof Error ? err.message : String(err);
192
- if (typeof console !== "undefined" && console.error) {
193
- console.error(`[derive] Erreur sur "${outputPath}" :`, message);
194
- }
195
- publishState(outputPath, { status: "error", error: message });
196
- }
197
- };
198
- const schedule = () => {
199
- if (stopped)
200
- return;
201
- if (timer)
202
- clearTimeout(timer);
203
- timer = setTimeout(() => {
204
- timer = null;
205
- void run();
206
- }, debounceMs);
207
- };
208
- const listeners = [];
209
- /**
210
- * Écoute les mutations profondes : les champs form (`name="top"`) écrivent sur
211
- * un sous-proxy (`form.top.set`), qui ne déclenche pas `onAssign` sur la racine.
212
- * `onInternalMutation` remonte bien parent ← enfant.
213
- */
214
- const watch = (path) => {
215
- const pub = resolvePublisher(path);
216
- const handler = () => schedule();
217
- pub.onInternalMutation(handler);
218
- listeners.push({ pub, handler });
219
- };
220
- for (const { path } of inputEntries)
221
- watch(path);
222
- if (variablesPath)
223
- watch(variablesPath);
224
- // Premier calcul (onInternalMutation a déjà appelé schedule à l’abonnement,
225
- // mais on force un passage après init complète).
226
- schedule();
227
- return {
228
- stop() {
229
- if (stopped)
230
- return;
231
- stopped = true;
232
- if (timer)
233
- clearTimeout(timer);
234
- for (const { pub, handler } of listeners) {
235
- pub.offInternalMutation(handler);
236
- }
237
- outputPub.offAssign(onExternalWrite);
238
- unregisterEdges(outputPath);
239
- },
240
- recompute() {
241
- lastMemoKey = "";
242
- void run();
243
- },
244
- };
245
- }
246
- //# sourceMappingURL=derive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"derive.js","sourceRoot":"","sources":["../../../../src/core/utils/derive.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,GAE3B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,gBAAgB,GAEjB,MAAM,iDAAiD,CAAC;AACzD,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAoC/D,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,uBAAuB,GAAG,MAAM,CAAC;AACvC,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB,mFAAmF;AACnF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAuB,CAAC;AAEnD,SAAS,MAAM,CAAC,KAAyB;IACvC,OAAO,0BAA0B,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;AACpC,CAAC;AAED,SAAS,gBAAgB,CAAC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Q,EAAE,CAAC;IAEX,OAAO;QACL,IAAI;YACF,IAAI,OAAO;gBAAE,OAAO;YACpB,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,KAAK;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;YAC/B,KAAK,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,SAAS,EAAE,CAAC;gBACzC,GAAG,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YACnC,CAAC;YACD,SAAS,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YACrC,eAAe,CAAC,UAAU,CAAC,CAAC;QAC9B,CAAC;QACD,SAAS;YACP,WAAW,GAAG,EAAE,CAAC;YACjB,KAAK,GAAG,EAAE,CAAC;QACb,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,74 +0,0 @@
1
- import { DataProviderKey } from "./dataProviderKey";
2
- /**
3
- * Représente un chemin d’endpoint HTTP (ou path accepté par `API.get`),
4
- * typé par la forme de la réponse attendue `T`.
5
- *
6
- * **`U` (optionnel, défaut `any`)** : propriétés minimales sur le composant pour résoudre les
7
- * segments dynamiques du path (`${…}` / `{$…}`), comme pour `DataProviderKey<T, U>`. Utilisé par `@get`.
8
- *
9
- * Contrairement à `DataProviderKey`, il n’y a **pas** de navigation par propriétés
10
- * (pas de dot-syntax) : le path est une seule chaîne.
11
- *
12
- * @example
13
- * new Endpoint<User, { userId: string }>("users/${userId}");
14
- */
15
- export class Endpoint {
16
- constructor(path) {
17
- this.path = Endpoint.normalizePath(path);
18
- }
19
- /** Même path qu’`Endpoint` ; le 2ᵉ générique `U` est propagé sur la clé publisher. */
20
- getDataProviderKey() {
21
- return new DataProviderKey(this.path);
22
- }
23
- /**
24
- * Trim, refuse le path vide, enlève les `/` en tête (path relatif au `serviceURL`),
25
- * et fusionne les `/` successifs en un seul.
26
- * Pour une URL absolue (`http://` / `https://`), normalise surtout le pathname (pas de `//` redondants).
27
- */
28
- static normalizePath(path) {
29
- const t = String(path).trim();
30
- if (!t) {
31
- throw new RangeError("Endpoint: path cannot be empty");
32
- }
33
- if (/^https?:\/\//i.test(t)) {
34
- let u;
35
- try {
36
- u = new URL(t);
37
- }
38
- catch {
39
- throw new RangeError("Endpoint: invalid absolute URL");
40
- }
41
- u.pathname = u.pathname.replace(/\/+/g, "/");
42
- return u.href;
43
- }
44
- const q = t.indexOf("?");
45
- const hash = t.indexOf("#");
46
- let end = t.length;
47
- if (q >= 0)
48
- end = Math.min(end, q);
49
- if (hash >= 0)
50
- end = Math.min(end, hash);
51
- let base = t.slice(0, end);
52
- const tail = t.slice(end);
53
- base = base.replace(/^\/+/, "");
54
- base = base.replace(/\/+/g, "/");
55
- if (!base && tail) {
56
- throw new RangeError("Endpoint: path cannot be empty");
57
- }
58
- return base + tail;
59
- }
60
- /** Utile avant construction dynamique. */
61
- static isNonEmpty(path) {
62
- return String(path).trim().length > 0;
63
- }
64
- /**
65
- * Indique un path local du type `dataProvider(id)…` reconnu par `API.get`.
66
- */
67
- static looksLikeDataProviderPath(path) {
68
- return /^\s*dataProvider\s*\(/i.test(String(path));
69
- }
70
- toString() {
71
- return this.path;
72
- }
73
- }
74
- //# sourceMappingURL=endpoint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../src/core/utils/endpoint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,QAAQ;IAMnB,YAAY,IAAY;QACtB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,sFAAsF;IACtF,kBAAkB;QAChB,OAAO,IAAI,eAAe,CAAkB,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,IAAY;QAC/B,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,C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AI,EAAE,CAAC;YAClB,MAAM,IAAI,UAAU,CAAC,gCAAgC,CAAC,CAAC;QACzD,CAAC;QAED,OAAO,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,0CAA0C;IAC1C,MAAM,CAAC,UAAU,CAAC,IAAY;QAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,yBAAyB,CAAC,IAAY;QAC3C,OAAO,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
@@ -1,69 +0,0 @@
1
- import Format from "@supersoniks/concorde/core/utils/Format";
2
- /**
3
- * Enregistre les helpers whitelistés sur une expression JSONata compilée.
4
- * Pas de DOM, pas de réseau, pas d’eval.
5
- */
6
- export function registerJsonataHelpers(expression) {
7
- expression.registerFunction("ucFirst", (value) => Format.ucFirst(String(value ?? "")));
8
- expression.registerFunction("currency", (value, locale = "fr-FR", currency = "EUR") => {
9
- const n = Number(value);
10
- if (Number.isNaN(n))
11
- return String(value ?? "");
12
- return new Intl.NumberFormat(String(locale), {
13
- style: "currency",
14
- currency: String(currency),
15
- }).format(n);
16
- });
17
- expression.registerFunction("percent", (value, locale = "fr-FR", digits = 0) => {
18
- const n = Number(value);
19
- if (Number.isNaN(n))
20
- return String(value ?? "");
21
- return new Intl.NumberFormat(String(locale), {
22
- style: "percent",
23
- maximumFractionDigits: Number(digits) || 0,
24
- }).format(n);
25
- });
26
- expression.registerFunction("date", (value, locale = "fr-FR", optionsJson) => {
27
- const d = value instanceof Date ? value : new Date(String(value));
28
- if (Number.isNaN(d.getTime()))
29
- return String(value ?? "");
30
- let options = {
31
- dateStyle: "medium",
32
- };
33
- if (optionsJson) {
34
- try {
35
- options = JSON.parse(String(optionsJson));
36
- }
37
- catch {
38
- /* keep default */
39
- }
40
- }
41
- return new Intl.DateTimeFormat(String(locale), options).format(d);
42
- });
43
- /**
44
- * Convertit un tableau d’objets `{ label, value }` (ou clés custom) en forme chart.
45
- * Usage : `$toChart(items, 'titre', 'ca')`
46
- */
47
- expression.registerFunction("toChart", (items, labelKey = "label", valueKey = "value", datasetLabel = "") => {
48
- const rows = Array.isArray(items) ? items : [];
49
- const labels = [];
50
- const data = [];
51
- for (const row of rows) {
52
- if (!row || typeof row !== "object")
53
- continue;
54
- const rec = row;
55
- labels.push(String(rec[String(labelKey)] ?? ""));
56
- data.push(Number(rec[String(valueKey)] ?? 0));
57
- }
58
- return {
59
- labels,
60
- datasets: [
61
- {
62
- label: String(datasetLabel || ""),
63
- data,
64
- },
65
- ],
66
- };
67
- });
68
- }
69
- //# sourceMappingURL=jsonataHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonataHelpers.js","sourceRoot":"","sources":["../../../../src/core/utils/jsonataHelpers.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,yCAAyC,CAAC;AAY7D;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,UAAsB;IAC3D,UAAU,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,KAAc,EAAE,EAAE,CACxD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CACpC,CAAC;IAEF,UAAU,CAAC,gBAAgB,CACzB,UAAU,EACV,CAAC,KAAc,EAAE,MAAM,GAAG,OAAO,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE;QACrD,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QACxB,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAAE,OAAO,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAChD,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE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kB;YACpB,CAAC;QACH,CAAC;QACD,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACpE,CAAC,CACF,CAAC;IAEF;;;OAGG;IACH,UAAU,CAAC,gBAAgB,CACzB,SAAS,EACT,CACE,KAAc,EACd,QAAQ,GAAG,OAAO,EAClB,QAAQ,GAAG,OAAO,EAClB,YAAY,GAAG,EAAE,EACL,EAAE;QACd,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/C,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAa,EAAE,CAAC;QAC1B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;gBAAE,SAAS;YAC9C,MAAM,GAAG,GAAG,GAA8B,CAAC;YAC3C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACjD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,OAAO;YACL,MAAM;YACN,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;oBACjC,IAAI;iBACL;aACF;SACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1,75 +0,0 @@
1
- import jsonata from "jsonata";
2
- import { registerJsonataHelpers } from "@supersoniks/concorde/core/utils/jsonataHelpers";
3
- const expressionCache = new Map();
4
- const MAX_EXPRESSION_LENGTH = 8_000;
5
- /**
6
- * Compile (avec cache) une expression JSONata + helpers Concorde.
7
- */
8
- export function compileJsonata(source) {
9
- if (!source || !source.trim()) {
10
- throw new Error("[sonic-jsonata] expression vide.");
11
- }
12
- if (source.length > MAX_EXPRESSION_LENGTH) {
13
- throw new Error(`[sonic-jsonata] expression trop longue (${source.length} > ${MAX_EXPRESSION_LENGTH}).`);
14
- }
15
- const cached = expressionCache.get(source);
16
- if (cached)
17
- return cached;
18
- try {
19
- const expr = jsonata(source);
20
- registerJsonataHelpers(expr);
21
- expressionCache.set(source, expr);
22
- return expr;
23
- }
24
- catch (err) {
25
- const message = err instanceof Error
26
- ? err.message
27
- : typeof err === "object" && err && "message" in err
28
- ? String(err.message)
29
- : String(err);
30
- throw new Error(`[sonic-jsonata] Syntaxe JSONata invalide : ${message}`);
31
- }
32
- }
33
- /**
34
- * Validation runtime légère (sous-ensemble JSON Schema).
35
- * Vérifie `type` et `required` ; ignore le reste.
36
- */
37
- export function validateOutputSchema(value, schema) {
38
- if (!schema || typeof schema !== "object")
39
- return;
40
- const type = schema.type;
41
- if (typeof type === "string") {
42
- const ok = (type === "array" && Array.isArray(value)) ||
43
- (type === "object" &&
44
- value !== null &&
45
- typeof value === "object" &&
46
- !Array.isArray(value)) ||
47
- (type === "string" && typeof value === "string") ||
48
- (type === "number" && typeof value === "number") ||
49
- (type === "boolean" && typeof value === "boolean") ||
50
- (type === "null" && value === null);
51
- if (!ok) {
52
- throw new Error(`[sonic-jsonata] outputSchema : type attendu "${type}", reçu ${describeType(value)}.`);
53
- }
54
- }
55
- if (Array.isArray(schema.required) && value && typeof value === "object") {
56
- const obj = value;
57
- for (const key of schema.required) {
58
- if (typeof key === "string" && !(key in obj)) {
59
- throw new Error(`[sonic-jsonata] outputSchema : propriété requise manquante "${key}".`);
60
- }
61
- }
62
- }
63
- }
64
- function describeType(value) {
65
- if (value === null)
66
- return "null";
67
- if (Array.isArray(value))
68
- return "array";
69
- return typeof value;
70
- }
71
- /** Vide le cache (tests). */
72
- export function clearJsonataCache() {
73
- expressionCache.clear();
74
- }
75
- //# sourceMappingURL=jsonataRuntime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonataRuntime.js","sourceRoot":"","sources":["../../../../src/core/utils/jsonataRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,OAA4B,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAEzF,MAAM,eAAe,GAAG,IAAI,GAAG,EAAsB,CAAC;AAEtD,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,qBAAqB,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CACb,2CAA2C,MAAM,CAAC,MAAM,MAAM,qBAAqB,IAAI,CACxF,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3C,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC7B,eAAe,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GACX,GAAG,YAAY,KAAK;YAClB,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG;gBAClD,CAAC,CAAC,MAAM,CAAE,GAA4B,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