@supersoniks/concorde 4.8.0 → 4.9.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 (689) hide show
  1. package/.github/workflows/ci.yml +21 -0
  2. package/.github-export-ignore +30 -0
  3. package/.gitlab-ci.yml +13 -0
  4. package/CONTRIBUTING.md +59 -0
  5. package/DEV.md +54 -0
  6. package/LICENSE +21 -0
  7. package/OPEN_SOURCE_CHECKPOINT.md +133 -0
  8. package/README.md +29 -15
  9. package/build-infos.json +1 -1
  10. package/concorde-core.bundle.js +249 -249
  11. package/concorde-core.es.js +3692 -3601
  12. package/dist/concorde-core.bundle.js +249 -249
  13. package/dist/concorde-core.es.js +3692 -3601
  14. package/dist/js/components.js +12 -0
  15. package/dist/js/components.js.map +1 -0
  16. package/dist/js/concorde-loaded.js +5 -0
  17. package/dist/js/concorde-loaded.js.map +1 -0
  18. package/dist/js/core/_types/endpoint.js +5 -0
  19. package/dist/js/core/_types/endpoint.js.map +1 -0
  20. package/dist/js/core/_types/key.js +2 -0
  21. package/dist/js/core/_types/key.js.map +1 -0
  22. package/dist/js/core/_types/types.js +3 -0
  23. package/dist/js/core/_types/types.js.map +1 -0
  24. package/dist/js/core/components/functional/date/date.js +272 -0
  25. package/dist/js/core/components/functional/date/date.js.map +1 -0
  26. package/dist/js/core/components/functional/example/example.js +44 -0
  27. package/dist/js/core/components/functional/example/example.js.map +1 -0
  28. package/dist/js/core/components/functional/fetch/fetch.js +79 -0
  29. package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
  30. package/dist/js/core/components/functional/functional.js +17 -0
  31. package/dist/js/core/components/functional/functional.js.map +1 -0
  32. package/dist/js/core/components/functional/if/if.js +39 -0
  33. package/dist/js/core/components/functional/if/if.js.map +1 -0
  34. package/dist/js/core/components/functional/list/list.js +341 -0
  35. package/dist/js/core/components/functional/list/list.js.map +1 -0
  36. package/dist/js/core/components/functional/mix/mix.js +103 -0
  37. package/dist/js/core/components/functional/mix/mix.js.map +1 -0
  38. package/dist/js/core/components/functional/queue/queue.js +386 -0
  39. package/dist/js/core/components/functional/queue/queue.js.map +1 -0
  40. package/dist/js/core/components/functional/router/redirect.js +54 -0
  41. package/dist/js/core/components/functional/router/redirect.js.map +1 -0
  42. package/dist/js/core/components/functional/router/router.js +179 -0
  43. package/dist/js/core/components/functional/router/router.js.map +1 -0
  44. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
  45. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
  46. package/dist/js/core/components/functional/sdui/default-library.json +108 -0
  47. package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
  48. package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
  49. package/dist/js/core/components/functional/sdui/sdui.js +266 -0
  50. package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
  51. package/dist/js/core/components/functional/sdui/types.js +2 -0
  52. package/dist/js/core/components/functional/sdui/types.js.map +1 -0
  53. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
  54. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
  55. package/dist/js/core/components/functional/states/states.js +172 -0
  56. package/dist/js/core/components/functional/states/states.js.map +1 -0
  57. package/dist/js/core/components/functional/submit/submit.js +284 -0
  58. package/dist/js/core/components/functional/submit/submit.js.map +1 -0
  59. package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
  60. package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
  61. package/dist/js/core/components/functional/translation/translation.js +28 -0
  62. package/dist/js/core/components/functional/translation/translation.js.map +1 -0
  63. package/dist/js/core/components/functional/value/value.js +28 -0
  64. package/dist/js/core/components/functional/value/value.js.map +1 -0
  65. package/dist/js/core/components/ui/_css/scroll.js +25 -0
  66. package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
  67. package/dist/js/core/components/ui/_css/shadow.js +22 -0
  68. package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
  69. package/dist/js/core/components/ui/_css/size.js +36 -0
  70. package/dist/js/core/components/ui/_css/size.js.map +1 -0
  71. package/dist/js/core/components/ui/_css/type.js +92 -0
  72. package/dist/js/core/components/ui/_css/type.js.map +1 -0
  73. package/dist/js/core/components/ui/alert/alert.js +213 -0
  74. package/dist/js/core/components/ui/alert/alert.js.map +1 -0
  75. package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
  76. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
  77. package/dist/js/core/components/ui/badge/badge.js +199 -0
  78. package/dist/js/core/components/ui/badge/badge.js.map +1 -0
  79. package/dist/js/core/components/ui/button/button.js +697 -0
  80. package/dist/js/core/components/ui/button/button.js.map +1 -0
  81. package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
  82. package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
  83. package/dist/js/core/components/ui/captcha/captcha.js +167 -0
  84. package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
  85. package/dist/js/core/components/ui/card/card-footer.js +26 -0
  86. package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
  87. package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
  88. package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
  89. package/dist/js/core/components/ui/card/card-header.js +79 -0
  90. package/dist/js/core/components/ui/card/card-header.js.map +1 -0
  91. package/dist/js/core/components/ui/card/card-main.js +26 -0
  92. package/dist/js/core/components/ui/card/card-main.js.map +1 -0
  93. package/dist/js/core/components/ui/card/card.js +67 -0
  94. package/dist/js/core/components/ui/card/card.js.map +1 -0
  95. package/dist/js/core/components/ui/divider/divider.js +200 -0
  96. package/dist/js/core/components/ui/divider/divider.js.map +1 -0
  97. package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
  98. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
  99. package/dist/js/core/components/ui/form/css/form-control.js +393 -0
  100. package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
  101. package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
  102. package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
  103. package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
  104. package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
  105. package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
  106. package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
  107. package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
  108. package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
  109. package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
  110. package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
  111. package/dist/js/core/components/ui/form/input/input.js +316 -0
  112. package/dist/js/core/components/ui/form/input/input.js.map +1 -0
  113. package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
  114. package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
  115. package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
  116. package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
  117. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
  118. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
  119. package/dist/js/core/components/ui/form/radio/radio.js +63 -0
  120. package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
  121. package/dist/js/core/components/ui/form/select/select.js +323 -0
  122. package/dist/js/core/components/ui/form/select/select.js.map +1 -0
  123. package/dist/js/core/components/ui/form/switch/switch.js +90 -0
  124. package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
  125. package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
  126. package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
  127. package/dist/js/core/components/ui/group/group.js +128 -0
  128. package/dist/js/core/components/ui/group/group.js.map +1 -0
  129. package/dist/js/core/components/ui/icon/icon.js +129 -0
  130. package/dist/js/core/components/ui/icon/icon.js.map +1 -0
  131. package/dist/js/core/components/ui/icon/icons.js +163 -0
  132. package/dist/js/core/components/ui/icon/icons.js.map +1 -0
  133. package/dist/js/core/components/ui/icon/icons.json +1 -0
  134. package/dist/js/core/components/ui/image/image.js +160 -0
  135. package/dist/js/core/components/ui/image/image.js.map +1 -0
  136. package/dist/js/core/components/ui/link/link.js +125 -0
  137. package/dist/js/core/components/ui/link/link.js.map +1 -0
  138. package/dist/js/core/components/ui/loader/loader.js +106 -0
  139. package/dist/js/core/components/ui/loader/loader.js.map +1 -0
  140. package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
  141. package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
  142. package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
  143. package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
  144. package/dist/js/core/components/ui/menu/menu-item.js +35 -0
  145. package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
  146. package/dist/js/core/components/ui/menu/menu.js +436 -0
  147. package/dist/js/core/components/ui/menu/menu.js.map +1 -0
  148. package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
  149. package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
  150. package/dist/js/core/components/ui/modal/modal-close.js +56 -0
  151. package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
  152. package/dist/js/core/components/ui/modal/modal-content.js +27 -0
  153. package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
  154. package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
  155. package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
  156. package/dist/js/core/components/ui/modal/modal-title.js +35 -0
  157. package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
  158. package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
  159. package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
  160. package/dist/js/core/components/ui/modal/modal.js +568 -0
  161. package/dist/js/core/components/ui/modal/modal.js.map +1 -0
  162. package/dist/js/core/components/ui/pop/pop.js +337 -0
  163. package/dist/js/core/components/ui/pop/pop.js.map +1 -0
  164. package/dist/js/core/components/ui/progress/progress.js +164 -0
  165. package/dist/js/core/components/ui/progress/progress.js.map +1 -0
  166. package/dist/js/core/components/ui/table/table-caption.js +29 -0
  167. package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
  168. package/dist/js/core/components/ui/table/table-tbody.js +41 -0
  169. package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
  170. package/dist/js/core/components/ui/table/table-td.js +69 -0
  171. package/dist/js/core/components/ui/table/table-td.js.map +1 -0
  172. package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
  173. package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
  174. package/dist/js/core/components/ui/table/table-th.js +80 -0
  175. package/dist/js/core/components/ui/table/table-th.js.map +1 -0
  176. package/dist/js/core/components/ui/table/table-thead.js +26 -0
  177. package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
  178. package/dist/js/core/components/ui/table/table-tr.js +67 -0
  179. package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
  180. package/dist/js/core/components/ui/table/table.js +106 -0
  181. package/dist/js/core/components/ui/table/table.js.map +1 -0
  182. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
  183. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
  184. package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
  185. package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
  186. package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
  187. package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
  188. package/dist/js/core/components/ui/theme/theme.js +150 -0
  189. package/dist/js/core/components/ui/theme/theme.js.map +1 -0
  190. package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
  191. package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
  192. package/dist/js/core/components/ui/toast/toast-item.js +379 -0
  193. package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
  194. package/dist/js/core/components/ui/toast/toast.js +269 -0
  195. package/dist/js/core/components/ui/toast/toast.js.map +1 -0
  196. package/dist/js/core/components/ui/toast/types.js +2 -0
  197. package/dist/js/core/components/ui/toast/types.js.map +1 -0
  198. package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
  199. package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
  200. package/dist/js/core/components/ui/ui.js +41 -0
  201. package/dist/js/core/components/ui/ui.js.map +1 -0
  202. package/dist/js/core/core.js +14 -0
  203. package/dist/js/core/core.js.map +1 -0
  204. package/dist/js/core/decorators/Subscriber.js +9 -0
  205. package/dist/js/core/decorators/Subscriber.js.map +1 -0
  206. package/dist/js/core/decorators/api.js +559 -0
  207. package/dist/js/core/decorators/api.js.map +1 -0
  208. package/dist/js/core/decorators/lifecycle.js +67 -0
  209. package/dist/js/core/decorators/lifecycle.js.map +1 -0
  210. package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
  211. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
  212. package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
  213. package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
  214. package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
  215. package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
  216. package/dist/js/core/decorators/subscriber/bind.js +150 -0
  217. package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
  218. package/dist/js/core/decorators/subscriber/common.js +44 -0
  219. package/dist/js/core/decorators/subscriber/common.js.map +1 -0
  220. package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
  221. package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
  222. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
  223. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
  224. package/dist/js/core/decorators/subscriber/handle.js +22 -0
  225. package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
  226. package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
  227. package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
  228. package/dist/js/core/decorators/subscriber/publish.js +108 -0
  229. package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
  230. package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
  231. package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
  232. package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
  233. package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
  234. package/dist/js/core/directives/DataProvider.js +127 -0
  235. package/dist/js/core/directives/DataProvider.js.map +1 -0
  236. package/dist/js/core/directives/Wording.js +221 -0
  237. package/dist/js/core/directives/Wording.js.map +1 -0
  238. package/dist/js/core/mixins/Fetcher.js +325 -0
  239. package/dist/js/core/mixins/Fetcher.js.map +1 -0
  240. package/dist/js/core/mixins/FormCheckable.js +313 -0
  241. package/dist/js/core/mixins/FormCheckable.js.map +1 -0
  242. package/dist/js/core/mixins/FormElement.js +304 -0
  243. package/dist/js/core/mixins/FormElement.js.map +1 -0
  244. package/dist/js/core/mixins/FormInput.js +82 -0
  245. package/dist/js/core/mixins/FormInput.js.map +1 -0
  246. package/dist/js/core/mixins/Subscriber.js +354 -0
  247. package/dist/js/core/mixins/Subscriber.js.map +1 -0
  248. package/dist/js/core/mixins/TemplatesContainer.js +70 -0
  249. package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
  250. package/dist/js/core/mixins/mixins.js +7 -0
  251. package/dist/js/core/mixins/mixins.js.map +1 -0
  252. package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
  253. package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
  254. package/dist/js/core/utils/Arrays.js +141 -0
  255. package/dist/js/core/utils/Arrays.js.map +1 -0
  256. package/dist/js/core/utils/DataBindObserver.js +265 -0
  257. package/dist/js/core/utils/DataBindObserver.js.map +1 -0
  258. package/dist/js/core/utils/Electron.js +14 -0
  259. package/dist/js/core/utils/Electron.js.map +1 -0
  260. package/dist/js/core/utils/Format.js +43 -0
  261. package/dist/js/core/utils/Format.js.map +1 -0
  262. package/dist/js/core/utils/HTML.js +248 -0
  263. package/dist/js/core/utils/HTML.js.map +1 -0
  264. package/dist/js/core/utils/LocationHandler.js +143 -0
  265. package/dist/js/core/utils/LocationHandler.js.map +1 -0
  266. package/dist/js/core/utils/Objects.js +111 -0
  267. package/dist/js/core/utils/Objects.js.map +1 -0
  268. package/dist/js/core/utils/PublisherProxy.js +946 -0
  269. package/dist/js/core/utils/PublisherProxy.js.map +1 -0
  270. package/dist/js/core/utils/Utils.js +19 -0
  271. package/dist/js/core/utils/Utils.js.map +1 -0
  272. package/dist/js/core/utils/aesCrypto.js +98 -0
  273. package/dist/js/core/utils/aesCrypto.js.map +1 -0
  274. package/dist/js/core/utils/api.js +574 -0
  275. package/dist/js/core/utils/api.js.map +1 -0
  276. package/dist/js/core/utils/dataProviderKey.js +64 -0
  277. package/dist/js/core/utils/dataProviderKey.js.map +1 -0
  278. package/dist/js/core/utils/endpoint.js +74 -0
  279. package/dist/js/core/utils/endpoint.js.map +1 -0
  280. package/dist/js/core/utils/route.js +149 -0
  281. package/dist/js/core/utils/route.js.map +1 -0
  282. package/dist/js/core/utils/url-pattern.js +3 -0
  283. package/dist/js/core/utils/url-pattern.js.map +1 -0
  284. package/dist/js/dataprovider.js +2 -0
  285. package/dist/js/dataprovider.js.map +1 -0
  286. package/dist/js/decorators.js +39 -0
  287. package/dist/js/decorators.js.map +1 -0
  288. package/dist/js/directives.js +30 -0
  289. package/dist/js/directives.js.map +1 -0
  290. package/dist/js/index.js +8 -0
  291. package/dist/js/index.js.map +1 -0
  292. package/dist/js/mixins.js +23 -0
  293. package/dist/js/mixins.js.map +1 -0
  294. package/dist/js/test-utils/TestUtils.js +10 -0
  295. package/dist/js/test-utils/TestUtils.js.map +1 -0
  296. package/dist/js/utils.js +41 -0
  297. package/dist/js/utils.js.map +1 -0
  298. package/dist/types/components.d.ts +5 -0
  299. package/dist/types/components.d.ts.map +1 -0
  300. package/dist/types/concorde-loaded.d.ts +2 -0
  301. package/dist/types/concorde-loaded.d.ts.map +1 -0
  302. package/dist/types/core/_types/endpoint.d.ts +5 -0
  303. package/dist/types/core/_types/endpoint.d.ts.map +1 -0
  304. package/dist/types/core/_types/key.d.ts +2 -0
  305. package/dist/types/core/_types/key.d.ts.map +1 -0
  306. package/dist/types/core/_types/types.d.ts +28 -0
  307. package/dist/types/core/_types/types.d.ts.map +1 -0
  308. package/dist/types/core/components/functional/date/date.d.ts +52 -0
  309. package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
  310. package/dist/types/core/components/functional/example/example.d.ts +15 -0
  311. package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
  312. package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
  313. package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
  314. package/dist/types/core/components/functional/functional.d.ts +17 -0
  315. package/dist/types/core/components/functional/functional.d.ts.map +1 -0
  316. package/dist/types/core/components/functional/if/if.d.ts +13 -0
  317. package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
  318. package/dist/types/core/components/functional/list/list.d.ts +149 -0
  319. package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
  320. package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
  321. package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
  322. package/dist/types/core/components/functional/queue/queue.d.ts +79 -0
  323. package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
  324. package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
  325. package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
  326. package/dist/types/core/components/functional/router/router.d.ts +46 -0
  327. package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
  328. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
  329. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
  330. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
  331. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
  332. package/dist/types/core/components/functional/sdui/sdui.d.ts +145 -0
  333. package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
  334. package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
  335. package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
  336. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
  337. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
  338. package/dist/types/core/components/functional/states/states.d.ts +42 -0
  339. package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
  340. package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
  341. package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
  342. package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
  343. package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
  344. package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
  345. package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
  346. package/dist/types/core/components/functional/value/value.d.ts +8 -0
  347. package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
  348. package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
  349. package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
  350. package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
  351. package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
  352. package/dist/types/core/components/ui/_css/size.d.ts +3 -0
  353. package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
  354. package/dist/types/core/components/ui/_css/type.d.ts +3 -0
  355. package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
  356. package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
  357. package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
  358. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
  359. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
  360. package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
  361. package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
  362. package/dist/types/core/components/ui/button/button.d.ts +180 -0
  363. package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
  364. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
  365. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
  366. package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
  367. package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
  368. package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
  369. package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
  370. package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
  371. package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
  372. package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
  373. package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
  374. package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
  375. package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
  376. package/dist/types/core/components/ui/card/card.d.ts +13 -0
  377. package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
  378. package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
  379. package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
  380. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
  381. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
  382. package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
  383. package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
  384. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
  385. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
  386. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
  387. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
  388. package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
  389. package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
  390. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
  391. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
  392. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
  393. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
  394. package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
  395. package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
  396. package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
  397. package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
  398. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
  399. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
  400. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
  401. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
  402. package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
  403. package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
  404. package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
  405. package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
  406. package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
  407. package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
  408. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
  409. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
  410. package/dist/types/core/components/ui/group/group.d.ts +17 -0
  411. package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
  412. package/dist/types/core/components/ui/icon/icon.d.ts +28 -0
  413. package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
  414. package/dist/types/core/components/ui/icon/icons.d.ts +11 -0
  415. package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
  416. package/dist/types/core/components/ui/image/image.d.ts +16 -0
  417. package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
  418. package/dist/types/core/components/ui/link/link.d.ts +30 -0
  419. package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
  420. package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
  421. package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
  422. package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
  423. package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
  424. package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
  425. package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
  426. package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
  427. package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
  428. package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
  429. package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
  430. package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
  431. package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
  432. package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
  433. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
  434. package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
  435. package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
  436. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
  437. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
  438. package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
  439. package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
  440. package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
  441. package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
  442. package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
  443. package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
  444. package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
  445. package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
  446. package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
  447. package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
  448. package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
  449. package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
  450. package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
  451. package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
  452. package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
  453. package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
  454. package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
  455. package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
  456. package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
  457. package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
  458. package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
  459. package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
  460. package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
  461. package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
  462. package/dist/types/core/components/ui/table/table.d.ts +18 -0
  463. package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
  464. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
  465. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
  466. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
  467. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
  468. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
  469. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
  470. package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
  471. package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
  472. package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
  473. package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
  474. package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
  475. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
  476. package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
  477. package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
  478. package/dist/types/core/components/ui/toast/types.d.ts +12 -0
  479. package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
  480. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
  481. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
  482. package/dist/types/core/components/ui/ui.d.ts +35 -0
  483. package/dist/types/core/components/ui/ui.d.ts.map +1 -0
  484. package/dist/types/core/core.d.ts +5 -0
  485. package/dist/types/core/core.d.ts.map +1 -0
  486. package/dist/types/core/decorators/Subscriber.d.ts +11 -0
  487. package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
  488. package/dist/types/core/decorators/api.d.ts +106 -0
  489. package/dist/types/core/decorators/api.d.ts.map +1 -0
  490. package/dist/types/core/decorators/lifecycle.d.ts +19 -0
  491. package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
  492. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
  493. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
  494. package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
  495. package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
  496. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
  497. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
  498. package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
  499. package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
  500. package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
  501. package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
  502. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
  503. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
  504. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
  505. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
  506. package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
  507. package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
  508. package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
  509. package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
  510. package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
  511. package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
  512. package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
  513. package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
  514. package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
  515. package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
  516. package/dist/types/core/directives/DataProvider.d.ts +45 -0
  517. package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
  518. package/dist/types/core/directives/Wording.d.ts +44 -0
  519. package/dist/types/core/directives/Wording.d.ts.map +1 -0
  520. package/dist/types/core/mixins/Fetcher.d.ts +108 -0
  521. package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
  522. package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
  523. package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
  524. package/dist/types/core/mixins/FormElement.d.ts +37 -0
  525. package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
  526. package/dist/types/core/mixins/FormInput.d.ts +79 -0
  527. package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
  528. package/dist/types/core/mixins/Subscriber.d.ts +38 -0
  529. package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
  530. package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
  531. package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
  532. package/dist/types/core/mixins/mixins.d.ts +7 -0
  533. package/dist/types/core/mixins/mixins.d.ts.map +1 -0
  534. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
  535. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
  536. package/dist/types/core/utils/Arrays.d.ts +98 -0
  537. package/dist/types/core/utils/Arrays.d.ts.map +1 -0
  538. package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
  539. package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
  540. package/dist/types/core/utils/Electron.d.ts +8 -0
  541. package/dist/types/core/utils/Electron.d.ts.map +1 -0
  542. package/dist/types/core/utils/Format.d.ts +13 -0
  543. package/dist/types/core/utils/Format.d.ts.map +1 -0
  544. package/dist/types/core/utils/HTML.d.ts +64 -0
  545. package/dist/types/core/utils/HTML.d.ts.map +1 -0
  546. package/dist/types/core/utils/LocationHandler.d.ts +48 -0
  547. package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
  548. package/dist/types/core/utils/Objects.d.ts +31 -0
  549. package/dist/types/core/utils/Objects.d.ts.map +1 -0
  550. package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
  551. package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
  552. package/dist/types/core/utils/Utils.d.ts +6 -0
  553. package/dist/types/core/utils/Utils.d.ts.map +1 -0
  554. package/dist/types/core/utils/aesCrypto.d.ts +53 -0
  555. package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
  556. package/dist/types/core/utils/api.d.ts +173 -0
  557. package/dist/types/core/utils/api.d.ts.map +1 -0
  558. package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
  559. package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
  560. package/dist/types/core/utils/endpoint.d.ts +37 -0
  561. package/dist/types/core/utils/endpoint.d.ts.map +1 -0
  562. package/dist/types/core/utils/route.d.ts +41 -0
  563. package/dist/types/core/utils/route.d.ts.map +1 -0
  564. package/dist/types/core/utils/url-pattern.d.ts +3 -0
  565. package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
  566. package/dist/types/dataprovider.d.ts +2 -0
  567. package/dist/types/dataprovider.d.ts.map +1 -0
  568. package/dist/types/decorators.d.ts +28 -0
  569. package/dist/types/decorators.d.ts.map +1 -0
  570. package/dist/types/directives.d.ts +21 -0
  571. package/dist/types/directives.d.ts.map +1 -0
  572. package/dist/types/index.d.ts +8 -0
  573. package/dist/types/index.d.ts.map +1 -0
  574. package/dist/types/mixins.d.ts +204 -0
  575. package/dist/types/mixins.d.ts.map +1 -0
  576. package/dist/types/test-utils/TestUtils.d.ts +4 -0
  577. package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
  578. package/dist/types/utils.d.ts +17 -0
  579. package/dist/types/utils.d.ts.map +1 -0
  580. package/docs/assets/{index-wyNMyWT9.js → index-BEgZEIbv.js} +401 -401
  581. package/docs/index.html +1 -1
  582. package/docs/src/core/components/functional/date/date.md +290 -0
  583. package/docs/src/core/components/functional/fetch/fetch.md +125 -0
  584. package/docs/src/core/components/functional/if/if.md +9 -0
  585. package/docs/src/core/components/functional/list/list.md +65 -0
  586. package/docs/src/core/components/functional/mix/mix.md +41 -0
  587. package/docs/src/core/components/functional/queue/queue.md +72 -0
  588. package/docs/src/core/components/functional/router/router.md +94 -0
  589. package/docs/src/core/components/functional/sdui/default-library.json +108 -0
  590. package/docs/src/core/components/functional/sdui/example.json +99 -0
  591. package/docs/src/core/components/functional/sdui/sdui.md +356 -0
  592. package/docs/src/core/components/functional/states/states.md +87 -0
  593. package/docs/src/core/components/functional/submit/submit.md +114 -0
  594. package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
  595. package/docs/src/core/components/functional/value/value.md +35 -0
  596. package/docs/src/core/components/ui/alert/alert.md +121 -0
  597. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  598. package/docs/src/core/components/ui/badge/badge.md +127 -0
  599. package/docs/src/core/components/ui/button/button.md +182 -0
  600. package/docs/src/core/components/ui/captcha/captcha.md +12 -0
  601. package/docs/src/core/components/ui/card/card.md +97 -0
  602. package/docs/src/core/components/ui/divider/divider.md +35 -0
  603. package/docs/src/core/components/ui/form/checkbox/checkbox.md +77 -0
  604. package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  605. package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  606. package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
  607. package/docs/src/core/components/ui/form/input/input.md +142 -0
  608. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +133 -0
  609. package/docs/src/core/components/ui/form/radio/radio.md +57 -0
  610. package/docs/src/core/components/ui/form/select/select.md +71 -0
  611. package/docs/src/core/components/ui/form/switch/switch.md +57 -0
  612. package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
  613. package/docs/src/core/components/ui/group/group.md +75 -0
  614. package/docs/src/core/components/ui/icon/icon.md +125 -0
  615. package/docs/src/core/components/ui/icon/icons.json +1 -0
  616. package/docs/src/core/components/ui/image/image.md +107 -0
  617. package/docs/src/core/components/ui/link/link.md +43 -0
  618. package/docs/src/core/components/ui/loader/loader.md +55 -0
  619. package/docs/src/core/components/ui/menu/menu.md +329 -0
  620. package/docs/src/core/components/ui/modal/modal.md +119 -0
  621. package/docs/src/core/components/ui/pop/pop.md +96 -0
  622. package/docs/src/core/components/ui/progress/progress.md +63 -0
  623. package/docs/src/core/components/ui/table/table.md +455 -0
  624. package/docs/src/core/components/ui/toast/toast.md +166 -0
  625. package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
  626. package/docs/src/docs/_core-concept/dataFlow.md +79 -0
  627. package/docs/src/docs/_core-concept/overview.md +57 -0
  628. package/docs/src/docs/_core-concept/subscriber.md +75 -0
  629. package/docs/src/docs/_decorators/ancestor-attribute.md +79 -0
  630. package/docs/src/docs/_decorators/auto-subscribe.md +202 -0
  631. package/docs/src/docs/_decorators/bind.md +167 -0
  632. package/docs/src/docs/_decorators/get.md +77 -0
  633. package/docs/src/docs/_decorators/handle.md +175 -0
  634. package/docs/src/docs/_decorators/on-assign.md +390 -0
  635. package/docs/src/docs/_decorators/patch.md +45 -0
  636. package/docs/src/docs/_decorators/post.md +93 -0
  637. package/docs/src/docs/_decorators/publish.md +55 -0
  638. package/docs/src/docs/_decorators/put.md +43 -0
  639. package/docs/src/docs/_decorators/subscribe.md +100 -0
  640. package/docs/src/docs/_decorators/wait-for-ancestors.md +163 -0
  641. package/docs/src/docs/_directives/sub.md +91 -0
  642. package/docs/src/docs/_getting-started/ai-agents.md +56 -0
  643. package/docs/src/docs/_getting-started/concorde-manual-install.md +133 -0
  644. package/docs/src/docs/_getting-started/concorde-outside.md +33 -0
  645. package/docs/src/docs/_getting-started/create-a-component.md +139 -0
  646. package/docs/src/docs/_getting-started/my-first-component.md +236 -0
  647. package/docs/src/docs/_getting-started/my-first-subscriber.md +120 -0
  648. package/docs/src/docs/_getting-started/pubsub.md +37 -0
  649. package/docs/src/docs/_getting-started/start.md +47 -0
  650. package/docs/src/docs/_getting-started/theming.md +91 -0
  651. package/docs/src/docs/_misc/api-configuration.md +81 -0
  652. package/docs/src/docs/_misc/dataProviderKey.md +168 -0
  653. package/docs/src/docs/_misc/docs-mock-api.md +60 -0
  654. package/docs/src/docs/_misc/dynamic-path.md +71 -0
  655. package/docs/src/docs/_misc/endpoint.md +45 -0
  656. package/docs/src/docs/_misc/html-integration.md +13 -0
  657. package/docs/src/docs/search/docs-search.json +9057 -0
  658. package/docs/src/tag-list.json +1 -0
  659. package/docs/src/tsconfig-model.json +23 -0
  660. package/docs/src/tsconfig.json +1119 -0
  661. package/gitlab/job_github_mirror.sh +39 -0
  662. package/index.html +0 -1
  663. package/package.json +1084 -364
  664. package/scripts/github-export.mjs +150 -0
  665. package/scripts/post-build.mjs +43 -0
  666. package/scripts/pre-build.mjs +32 -4
  667. package/scripts/pre-publish.mjs +2 -0
  668. package/src/core/components/functional/queue/queue.ts +2 -2
  669. package/src/core/components/ui/modal/modal.ts +1 -1
  670. package/src/core/decorators/Subscriber.ts +1 -0
  671. package/src/core/decorators/api.ts +8 -10
  672. package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +197 -0
  673. package/src/core/decorators/subscriber/ancestorAttribute.ts +40 -7
  674. package/src/core/decorators/subscriber/autoSubscribe.ts +7 -3
  675. package/src/core/mixins/Fetcher.ts +12 -6
  676. package/src/core/utils/AncestorAttributeObserver.ts +199 -0
  677. package/src/core/utils/HTML.ts +3 -11
  678. package/src/core/utils/PublisherProxy.ts +28 -37
  679. package/src/core/utils/api.ts +10 -10
  680. package/src/css.d.ts +19 -0
  681. package/src/directives.ts +3 -2
  682. package/src/docs/_decorators/ancestor-attribute.md +56 -8
  683. package/src/docs/components/docs-demo-sources.ts +13 -1
  684. package/src/docs/example/decorators-demo.ts +164 -8
  685. package/src/docs/search/docs-search.json +62 -2
  686. package/src/tsconfig.declarations.json +22 -0
  687. package/src/tsconfig.emit.json +23 -0
  688. package/src/tsconfig.json +3 -285
  689. package/src/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,140 @@
1
+ import HTML from "./HTML";
2
+ /** Chaîne composant → ancêtres, en traversant les shadow roots. */
3
+ function walkAncestorElements(node) {
4
+ const elements = [];
5
+ let current = node;
6
+ while (current) {
7
+ if (current instanceof Element) {
8
+ elements.push(current);
9
+ }
10
+ const parent = current.parentNode || (current.host ?? null);
11
+ current = parent;
12
+ }
13
+ return elements;
14
+ }
15
+ /**
16
+ * Observe attributs + enfants directs de chaque ancêtre.
17
+ * Retourne une fonction de nettoyage (disconnect).
18
+ */
19
+ function attachAncestorChainObservers(subscription, onMutation) {
20
+ const observers = [];
21
+ let disconnected = false;
22
+ const attributeFilter = HTML.scopeAttributeNames(subscription.attributeName);
23
+ const reconnect = () => {
24
+ for (const observer of observers) {
25
+ observer.disconnect();
26
+ }
27
+ observers.length = 0;
28
+ if (disconnected)
29
+ return;
30
+ for (const element of walkAncestorElements(subscription.component)) {
31
+ const observer = new MutationObserver((records) => {
32
+ if (disconnected)
33
+ return;
34
+ if (records.some((record) => record.type === "childList")) {
35
+ reconnect();
36
+ }
37
+ onMutation();
38
+ });
39
+ observer.observe(element, {
40
+ attributes: true,
41
+ attributeFilter,
42
+ childList: true,
43
+ subtree: false,
44
+ });
45
+ observers.push(observer);
46
+ }
47
+ };
48
+ reconnect();
49
+ return () => {
50
+ disconnected = true;
51
+ for (const observer of observers) {
52
+ observer.disconnect();
53
+ }
54
+ observers.length = 0;
55
+ };
56
+ }
57
+ /**
58
+ * Point unique de synchronisation DOM → propriété du composant.
59
+ * N'assigne que si la valeur change (`Object.is`) pour limiter les re-renders Lit
60
+ * et éviter de reboucler inutilement `observeDynamicProperty` (@bind / @subscribe).
61
+ */
62
+ export function syncAncestorAttributeValue(component, attributeName, propertyKey, options) {
63
+ const record = component;
64
+ const value = HTML.getAncestorAttributeValue(component, attributeName);
65
+ if (!options.assignNull && value === null)
66
+ return;
67
+ if (!Object.is(record[propertyKey], value)) {
68
+ record[propertyKey] = value;
69
+ }
70
+ }
71
+ class AncestorAttributeObserver {
72
+ /**
73
+ * Enregistre un composant en mode `{ dynamic: true }`.
74
+ * Le `unsubscribe` retourné doit être appelé au `disconnectedCallback`.
75
+ */
76
+ static subscribe(component, attributeName, propertyKey, syncOptions = { assignNull: true }) {
77
+ const subscription = {
78
+ component,
79
+ attributeName,
80
+ propertyKey,
81
+ syncOptions,
82
+ disconnectObservers: null,
83
+ };
84
+ subscription.disconnectObservers = attachAncestorChainObservers(subscription, () => {
85
+ if (!AncestorAttributeObserver.subscriptions.has(subscription))
86
+ return;
87
+ AncestorAttributeObserver.pendingRefresh.add(subscription);
88
+ AncestorAttributeObserver.scheduleRefresh();
89
+ });
90
+ AncestorAttributeObserver.subscriptions.add(subscription);
91
+ return () => {
92
+ AncestorAttributeObserver.unsubscribe(subscription);
93
+ };
94
+ }
95
+ /** Coupe les observateurs et retire l'abonnement (pas de fuite après disconnect). */
96
+ static unsubscribe(subscription) {
97
+ if (!AncestorAttributeObserver.subscriptions.has(subscription))
98
+ return;
99
+ subscription.disconnectObservers?.();
100
+ subscription.disconnectObservers = null;
101
+ AncestorAttributeObserver.subscriptions.delete(subscription);
102
+ AncestorAttributeObserver.pendingRefresh.delete(subscription);
103
+ if (AncestorAttributeObserver.subscriptions.size === 0) {
104
+ AncestorAttributeObserver.cancelScheduledRefresh();
105
+ }
106
+ }
107
+ static scheduleRefresh() {
108
+ if (AncestorAttributeObserver.pendingRefresh.size === 0)
109
+ return;
110
+ if (AncestorAttributeObserver.animationFrameId !== null)
111
+ return;
112
+ AncestorAttributeObserver.animationFrameId = requestAnimationFrame(() => {
113
+ AncestorAttributeObserver.flushRefresh();
114
+ });
115
+ }
116
+ static cancelScheduledRefresh() {
117
+ if (AncestorAttributeObserver.animationFrameId !== null) {
118
+ cancelAnimationFrame(AncestorAttributeObserver.animationFrameId);
119
+ AncestorAttributeObserver.animationFrameId = null;
120
+ }
121
+ AncestorAttributeObserver.pendingRefresh.clear();
122
+ }
123
+ static flushRefresh() {
124
+ AncestorAttributeObserver.animationFrameId = null;
125
+ const subscriptions = Array.from(AncestorAttributeObserver.pendingRefresh);
126
+ AncestorAttributeObserver.pendingRefresh.clear();
127
+ for (const subscription of subscriptions) {
128
+ if (!AncestorAttributeObserver.subscriptions.has(subscription))
129
+ continue;
130
+ if (!subscription.component.isConnected)
131
+ continue;
132
+ syncAncestorAttributeValue(subscription.component, subscription.attributeName, subscription.propertyKey, subscription.syncOptions);
133
+ }
134
+ }
135
+ }
136
+ AncestorAttributeObserver.subscriptions = new Set();
137
+ AncestorAttributeObserver.pendingRefresh = new Set();
138
+ AncestorAttributeObserver.animationFrameId = null;
139
+ export default AncestorAttributeObserver;
140
+ //# sourceMappingURL=AncestorAttributeObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AncestorAttributeObserver.js","sourceRoot":"","sources":["../../../../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,CAAC;IACL,CAAC;IAEO,MAAM,CAAC,sBAAsB;QACnC,IAAI,yBAAyB,CAAC,gBAAgB,KAAK,IAAI,EAAE,CAAC;YACxD,oBAAoB,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;YACjE,yBAAyB,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACpD,CAAC;QACD,yBAAyB,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IACnD,CAAC;IAEO,MAAM,CAAC,YAAY;QACzB,yBAAyB,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAClD,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;QAC3E,yBAAyB,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAEjD,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;YACzC,IAAI,CAAC,yBAAyB,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;gBAAE,SAAS;YACzE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,WAAW;gBAAE,SAAS;YAClD,0BAA0B,CACxB,YAAY,CAAC,SAAS,EACtB,YAAY,CAAC,aAAa,EAC1B,YAAY,CAAC,WAAW,EACxB,YAAY,CAAC,WAAW,CACzB,CAAC;QACJ,CAAC;IACH,CAAC;;AApFc,uCAAa,GAAG,IAAI,GAAG,EAAgB,CAAC;AACxC,wCAAc,GAAG,IAAI,GAAG,EAAgB,CAAC;AACzC,0CAAgB,GAAkB,IAAI,CAAC;eAHnC,yBAAyB"}
@@ -0,0 +1,141 @@
1
+ class Arrays {
2
+ /**
3
+ * Vérifie si les deux tableaux ont le même contenu
4
+ */
5
+ static areEqual(array1, array2) {
6
+ if (array1.length === array2.length) {
7
+ return array1.every((element, index) => {
8
+ if (element === array2[index]) {
9
+ return true;
10
+ }
11
+ return false;
12
+ });
13
+ }
14
+ return false;
15
+ }
16
+ /**
17
+ * Fournie une fonction to1D qui transforme un tableau 2D en un tableau 1D par concaténation
18
+ */
19
+ /*eslint-disable @typescript-eslint/no-explicit-any*/
20
+ static from2d(source) {
21
+ return {
22
+ to1D: () => {
23
+ let result = [];
24
+ source.forEach((elt) => (result = result.concat(elt)));
25
+ return this.from(result);
26
+ },
27
+ };
28
+ }
29
+ /*eslint-enable @typescript-eslint/no-explicit-any*/
30
+ /**
31
+ * Fournie des méthodes pour manipuler un tableau
32
+ * A l'écriture cela permet d'avoir des phrases du type:
33
+ * let data = Arrays.from(mon tableau)
34
+ * puis data.everyItem().has().same().value().forkey("key");
35
+ * Peu mieux faire. ou voir a remplacer un jour par loadHash par exemple.
36
+ **/
37
+ /*eslint-disable @typescript-eslint/no-explicit-any*/
38
+ static from(source) {
39
+ return {
40
+ /**Obtenir le tableau final*/
41
+ get: () => source || [],
42
+ everyItem: () => {
43
+ return {
44
+ has: () => {
45
+ return {
46
+ same: () => {
47
+ return {
48
+ value: () => {
49
+ return {
50
+ forKey: (key) => {
51
+ if (source.length < 1)
52
+ return true;
53
+ const first = (source[0] || {})[key];
54
+ return source.every((item) => (item || {})[key] == first);
55
+ },
56
+ };
57
+ },
58
+ };
59
+ },
60
+ };
61
+ },
62
+ value: () => {
63
+ return {
64
+ forKey: (key) => {
65
+ return Arrays.from(source.map((item) => item[key]));
66
+ },
67
+ };
68
+ },
69
+ copy: () => {
70
+ return {
71
+ fromKey: (atKey) => {
72
+ return {
73
+ toKey: (toKey) => {
74
+ source.forEach((item) => {
75
+ item[toKey] = Array.isArray(item[atKey])
76
+ ? [...item[atKey]]
77
+ : typeof item[atKey] === "object" && item[atKey] != null
78
+ ? { ...item[atKey] }
79
+ : item[atKey];
80
+ });
81
+ },
82
+ };
83
+ },
84
+ };
85
+ },
86
+ };
87
+ },
88
+ map: (f) => Arrays.from(source.map(f)),
89
+ filter: (f) => Arrays.from(source.filter(f)),
90
+ find: (f) => source.find(f),
91
+ some: (f) => source.some(f),
92
+ every: (f) => source.every(f),
93
+ group: () => {
94
+ return {
95
+ byKey: (key) => {
96
+ const result = [];
97
+ const keys = new Map();
98
+ for (const item of source) {
99
+ const value = item[key];
100
+ if (!keys.has(value)) {
101
+ const idx = result.length;
102
+ keys.set(value, idx);
103
+ const pushable = { items: [] };
104
+ pushable[key] = value;
105
+ result.push(pushable);
106
+ }
107
+ result[keys.get(value)].items.push(item);
108
+ }
109
+ return Arrays.from(result);
110
+ },
111
+ };
112
+ },
113
+ without: () => {
114
+ return {
115
+ duplicates: () => {
116
+ return {
117
+ forKey: (key) => {
118
+ const set = [...new Set(source.map((item) => item[key]))];
119
+ return Arrays.from(set.map((value) => source.find((item) => item[key] == value)));
120
+ },
121
+ };
122
+ },
123
+ itemsIn: (toRemoveFromSource) => {
124
+ return {
125
+ havingSameValue: () => {
126
+ return {
127
+ forKey: (key) => {
128
+ const areValuesDifferentForKey = (compared1, key) => (compared2) => compared1[key] != compared2[key];
129
+ return Arrays.from(source.filter((elt) => toRemoveFromSource.every(areValuesDifferentForKey(elt, key))));
130
+ },
131
+ };
132
+ },
133
+ };
134
+ },
135
+ };
136
+ },
137
+ };
138
+ }
139
+ }
140
+ export default Arrays;
141
+ //# sourceMappingURL=Arrays.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Arrays.js","sourceRoot":"","sources":["../../../../src/core/utils/Arrays.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM;IACV;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAI,MAAgB,EAAE,MAAgB;QACnD,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC;YACpC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;gBACrC,IAAI,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;oBAC9B,OAAO,IAAI,CAAC;gBACd,CAAC;gBAED,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;O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,OAAO,MAAM,CAAC,IAAI,CAChB,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAChB,MAAM,CAAC,IAAI,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CACjB,CAChC,CAAC;4BACJ,CAAC;yBACF,CAAC;oBACJ,CAAC;oBACD,OAAO,EAAE,CAAC,kBAA8C,EAAE,EAAE;wBAC1D,OAAO;4BACL,eAAe,EAAE,GAAG,EAAE;gCACpB,OAAO;oCACL,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE;wCACtB,MAAM,wBAAwB,GAC5B,CAAC,SAA8B,EAAE,GAAW,EAAE,EAAE,CAChD,CAAC,SAA8B,EAAE,EAAE,CACjC,SAAS,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;wCACrC,OAAO,MAAM,CAAC,IAAI,CAChB,MAAM,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,EAAE,CACzB,kBAAkB,CAAC,KAAK,CACtB,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC,CACnC,CACF,CACF,CAAC;oCACJ,CAAC;iCACF,CAAC;4BACJ,CAAC;yBACF,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CAEF;AACD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,265 @@
1
+ import Format from "@supersoniks/concorde/core/utils/Format";
2
+ import HTML from "@supersoniks/concorde/core/utils/HTML";
3
+ import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy";
4
+ /**
5
+ *
6
+ * En appelant DataBindObserver.observe(HTMLElement) sun un élément html, tout les éléments peuvent être liés à au publisher a l'adresse déterminée parl'attribut dataProvider de l'un de ses ancêtres.
7
+ * Pour cela un MutationObserver est créé pour observer les changements d'attributs de l'élément.
8
+ * On peut alors ecrire ce genre de choses de manière a lier dynamiquement les données du publisher à l'élément html.
9
+ * <img data-bind ::src="$img.avatar" ::title="ucFirst|$img.caption" />
10
+ * <a data-bind ::href="mailto:$email" ::inner-html="$email"></a>
11
+ * Voir la doc de subscriber à ce sujet car il l'utilise par défaut.
12
+ */
13
+ class DataBindObserver {
14
+ static disable() {
15
+ if (!this.enabled)
16
+ return;
17
+ this.enabled = false;
18
+ Array.from(DataBindObserver.observedElements.keys()).forEach((k) => DataBindObserver.unObserve(k));
19
+ }
20
+ static observe(element) {
21
+ if (!element)
22
+ return;
23
+ if (!DataBindObserver.enabled)
24
+ return;
25
+ if (DataBindObserver.observedElements.has(element))
26
+ return;
27
+ const obs = new MutationObserver(DataBindObserver.onMutation);
28
+ const opt = {};
29
+ opt.childList = true;
30
+ opt.subtree = true;
31
+ opt.attributes = true;
32
+ opt.attributeFilter = ["data-bind"];
33
+ obs.observe(element, opt);
34
+ element
35
+ .querySelectorAll("[data-bind]")
36
+ .forEach((e) => DataBindObserver.addPublisherListeners(e));
37
+ DataBindObserver.observedElements.set(element, obs);
38
+ }
39
+ /**
40
+ * Arrêter à observer un élément html.
41
+ */
42
+ static unObserve(element) {
43
+ if (!element)
44
+ return;
45
+ const observer = this.observedElements.get(element);
46
+ if (!observer)
47
+ return;
48
+ observer.disconnect();
49
+ element.querySelectorAll("[data-bind]").forEach((e) => DataBindObserver.removePublisherListeners(e));
50
+ }
51
+ static onAdded(elt) {
52
+ if (elt.hasAttribute && elt.hasAttribute("data-bind"))
53
+ DataBindObserver.addPublisherListeners(elt);
54
+ if (elt.querySelectorAll)
55
+ elt.querySelectorAll("[data-bind]").forEach((e) => DataBindObserver.addPublisherListeners(e));
56
+ else
57
+ elt.childNodes.forEach((elt) => DataBindObserver.onAdded(elt));
58
+ }
59
+ static onRemoved(elt) {
60
+ if (elt.hasAttribute && elt.hasAttribute("data-bind"))
61
+ DataBindObserver.removePublisherListeners(elt);
62
+ if (elt.querySelectorAll)
63
+ elt.querySelectorAll("[data-bind]").forEach((e) => DataBindObserver.removePublisherListeners(e));
64
+ else
65
+ elt.childNodes.forEach((elt) => DataBindObserver.onRemoved(elt));
66
+ }
67
+ /**
68
+ * Callback appelé par le MutationObserver
69
+ */
70
+ static onMutation(list) {
71
+ for (const l of list) {
72
+ switch (l.type) {
73
+ case "attributes":
74
+ DataBindObserver.addPublisherListeners(l.target);
75
+ break;
76
+ case "childList":
77
+ l.addedNodes.forEach((elt) => {
78
+ DataBindObserver.onAdded(elt);
79
+ });
80
+ l.removedNodes.forEach((elt) => {
81
+ DataBindObserver.onRemoved(elt);
82
+ });
83
+ break;
84
+ }
85
+ }
86
+ }
87
+ /**
88
+ * La liaison avec le publisher supprimée ici.
89
+ */
90
+ static removePublisherListeners(target) {
91
+ const conf = DataBindObserver.publisherListeners.get(target);
92
+ if (!conf)
93
+ return;
94
+ DataBindObserver.publisherListeners.delete(target);
95
+ conf.forEach((currentConf) => {
96
+ currentConf.publisher?.offAssign(currentConf.onAssign);
97
+ });
98
+ }
99
+ /**
100
+ *
101
+ * Cette fonction prend l'expression fournie et trouves toutes les occurences du type $.clef1.clef2.clef3 ou $a.b par exemple.
102
+ * Les occurences sont ensuite mises dans un table de la forme [["clef1", "clef2", "clef3"],["a", "b"],...]
103
+ * Note : si une clef contien un point, on peut l'échapper en écrivant par exemple "$a.b.c\.d\.e" pour cibler value dans {a:{b:{"c.d.e":value}}}
104
+ * Propriétés du retour (du type BindedVariablesDescriptor) :
105
+ * * expression : l'expression initiale sans les échappements
106
+ * * variables : le tableau d'"adresses" de variables décrit ci-dessus
107
+ */
108
+ static getVariablesDescriptor(expression) {
109
+ let variables = expression.match(/(\$(?:\w+\\?\.?)+)/g);
110
+ if (!variables)
111
+ variables = [expression];
112
+ else
113
+ variables = variables.map((v) => v.replace("$", ""));
114
+ variables = variables.filter((v) => v.length > 0);
115
+ return {
116
+ expression: expression.replace("\\", ""), //TODO Supression des échappements uniquement suivis de "."
117
+ variables: variables.map((v) => v.split(/\b\.\b/).map((e) => e.replace("\\", ""))),
118
+ };
119
+ }
120
+ /**
121
+ * Extrait des "DataBindItems" a partir d'un élément html.
122
+ * Pour chaque attribut dont le nom commence par ::, un dataBindItem est créé.
123
+ * * Proriété "propertyToUpdate" du DataBindItem :
124
+ * Le nom de l'attribut modifié en transformant La notation en hyphen ("-") en KamelCase.
125
+ * un cas spécial est créé pour *-html qui retourne *HTML par exemple inner-html devient innerHTML
126
+ * Cela représente la propriété à mettre à jour sur l'élément lors de la modification d'une des variables liées dans le publicheur.
127
+ * * Propriété "bindedVariablesDescriptor" du DataBindItem : voir la fonction getVariablesDescriptor
128
+ */
129
+ static getDataBindItems(element) {
130
+ if (!("attributes" in element))
131
+ return [];
132
+ return Array.from(element.attributes)
133
+ .filter((attribute) => attribute.name.indexOf("::") == 0)
134
+ .map((e) => {
135
+ const name = e.name.substring(2);
136
+ return {
137
+ propertyToUpdate: name.replace(/-((html)|\w)/g, (match) => match.substring(1).toUpperCase()),
138
+ bindedVariablesDescriptor: DataBindObserver.getVariablesDescriptor(e.value),
139
+ };
140
+ });
141
+ }
142
+ /**
143
+ * Cette fonction récuperer le (sous) publisher a l'adresse donnée.
144
+ * Si l'une des clef de l'adresse est _self_, on garde le publisher courant et on passe à la suite.
145
+ * Ceci est un cas spécial, c'est pour ça qu'on utilisa pes Objects.traverse.
146
+ * Il y a toujours un publisher quelque soit l'adresse ce qui permet de cibler des valeurs qui n'existent pas encore
147
+ */
148
+ static getSubPublisher(pub, pathArray) {
149
+ if (!pathArray)
150
+ return pub;
151
+ for (const key of pathArray) {
152
+ if (key == "_self_")
153
+ continue;
154
+ if (!pub)
155
+ return null;
156
+ pub = pub[key];
157
+ }
158
+ return pub;
159
+ }
160
+ /**
161
+ * La liaison avec le publisher est faite ici.
162
+ * TODO Sans doute factoriser
163
+ */
164
+ static addPublisherListeners(target) {
165
+ DataBindObserver.removePublisherListeners(target);
166
+ /**
167
+ * On récupère le publisher viea le dataProvider d'un ancêtre de l'élément.
168
+ */
169
+ const dataProviderId = HTML.getAncestorAttributeValue((target.parentNode || target.host || target), "dataProvider");
170
+ if (!dataProviderId)
171
+ return;
172
+ const publisher = PublisherManager.getInstance().get(dataProviderId);
173
+ const dataBindItems = DataBindObserver.getDataBindItems(target);
174
+ const conf = [];
175
+ /**
176
+ * Pour chaque attribut => dataBindItems on fait la liaison avec les (sous) publishers associés aux variables extraites
177
+ * Lorsqu'une assignation est faite sur un des publishers liés, on met à jour la propriété de target dont le nom est renseigne dans l'attribut "propertyToUpdate du databindItem".
178
+ * Cette mise à jour est effectuée dans la fonction onAssign.
179
+ * On peut utiliser les fonctions présentes dans Format.ts notamment Format.js qui permet par exemple d'interpréter des expressions js simples.
180
+ * Attentions, les Objets/tableaus sont rendus en chaine avant l'interprétation dans ce cas.
181
+ */
182
+ dataBindItems.forEach((dataBindItem) => {
183
+ const bindedVariablesDescriptor = dataBindItem.bindedVariablesDescriptor;
184
+ const propertyToUpdate = dataBindItem.propertyToUpdate;
185
+ for (const value of bindedVariablesDescriptor.variables) {
186
+ const publisherPathArray = value;
187
+ let pub = publisher;
188
+ pub = DataBindObserver.getSubPublisher(publisher, publisherPathArray);
189
+ const rec = target;
190
+ const currentConf = {
191
+ publisher: pub,
192
+ onAssign: () => {
193
+ const values = bindedVariablesDescriptor.variables.map((dataPath) => {
194
+ return DataBindObserver.getSubPublisher(publisher, dataPath)?.get();
195
+ });
196
+ let expression = bindedVariablesDescriptor.expression;
197
+ let hasUndeterminatedValue = false;
198
+ /*
199
+ * Si il n'y a qu'une variable on injecte la variable brute ce qui permet d'utiliser des objets composites
200
+ * Dans le cas des des expressions complexes (plus bas, avec plusieurs variables) les objets deviennent des chaines de caractères.)
201
+ */
202
+ if (values.length == 1 && bindedVariablesDescriptor.variables[0].join(".") == expression.substring(1)) {
203
+ let value = values[0];
204
+ if (value === null
205
+ // ||
206
+ // ( Objects.isObject(value) &&
207
+ // value.hasOwnProperty("__value") &&
208
+ // (Objects.isUndefindOrNull(value.__value) || value.__value === "") )
209
+ ) {
210
+ value = "";
211
+ }
212
+ rec[propertyToUpdate] = value;
213
+ return;
214
+ }
215
+ /**
216
+ * Expressions avec plusieurs variables
217
+ */
218
+ for (let i = 0; i < values.length; i++) {
219
+ let value = values[i];
220
+ const variable = bindedVariablesDescriptor.variables[i];
221
+ if (value === null) {
222
+ hasUndeterminatedValue = true;
223
+ value = undefined;
224
+ }
225
+ expression = expression.replace("$" + variable.join("."), value);
226
+ }
227
+ if (expression.indexOf("|") != -1) {
228
+ const funcDelimiterIdx = expression.indexOf("|");
229
+ if (funcDelimiterIdx == 0) {
230
+ expression = Format.js(expression.substring(1));
231
+ }
232
+ else {
233
+ const funcName = expression.substring(0, funcDelimiterIdx);
234
+ const funcArgs = expression.substring(funcDelimiterIdx + 1);
235
+ const fmtFunc = Format[funcName];
236
+ expression = hasUndeterminatedValue ? "" : fmtFunc ? fmtFunc(funcArgs) : expression;
237
+ }
238
+ }
239
+ else {
240
+ expression = hasUndeterminatedValue ? "" : expression;
241
+ }
242
+ rec[propertyToUpdate] = expression;
243
+ },
244
+ };
245
+ pub?.onAssign(currentConf.onAssign);
246
+ conf.push(currentConf);
247
+ }
248
+ });
249
+ DataBindObserver.publisherListeners.set(target, conf);
250
+ }
251
+ }
252
+ /**
253
+ * Maintient la liste des éléments observés de manière à pouvoir les désinscrire quand ils sont supprimés.
254
+ */
255
+ DataBindObserver.observedElements = new Map();
256
+ /**
257
+ * Commencer à observer un élément html.
258
+ */
259
+ DataBindObserver.enabled = true;
260
+ DataBindObserver.publisherListeners = new Map();
261
+ export default DataBindObserver;
262
+ DataBindObserver.observe(document.documentElement);
263
+ if (!window.SonicDataBindObserver)
264
+ window.SonicDataBindObserver = DataBindObserver;
265
+ //# sourceMappingURL=DataBindObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataBindObserver.js","sourceRoot":"","sources":["../../../../src/core/utils/DataBindObserver.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yCAAyC,CAAC;AAC7D,OAAO,IAAI,MAAM,uCAAuC,C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AAC;gBACpC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;QACH,gBAAgB,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AA3PD;;GAEG;AACI,iCAAgB,GAAgD,IAAI,GAAG,EAAE,CAAC;AACjF;;GAEG;AACI,wBAAO,GAAG,IAAI,CAAC;AAsEf,mCAAkB,GAAyD,IAAI,GAAG,EAAE,CAAC;eA9EzE,gBAAgB;AA8PrC,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEnD,IAAI,CAAC,MAAM,CAAC,qBAAqB;IAAE,MAAM,CAAC,qBAAqB,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export default class Electron {
2
+ static fixBlankLink(link) {
3
+ const electronStr = "electron";
4
+ const electron = typeof require == "undefined" || typeof process != "object"
5
+ ? null
6
+ : require(electronStr);
7
+ if (typeof electron && link.target == "_blank") {
8
+ link.addEventListener("click", () => {
9
+ electron?.shell.openExternal(link.href);
10
+ });
11
+ }
12
+ }
13
+ }
14
+ //# sourceMappingURL=Electron.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Electron.js","sourceRoot":"","sources":["../../../../src/core/utils/Electron.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,MAAM,CAAC,YAAY,CAAC,IAInB;QACC,MAAM,WAAW,GAAG,UAAU,CAAC;QAC/B,MAAM,QAAQ,GACZ,OAAO,OAAO,IAAI,WAAW,IAAI,OAAO,OAAO,IAAI,QAAQ;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC3B,IAAI,OAAO,QAAQ,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;YAC/C,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;gBAClC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,43 @@
1
+ import HTML from "@supersoniks/concorde/core/utils/HTML";
2
+ class Format {
3
+ /**
4
+ * Passe le premier caractère de la chaine en majuscule
5
+ */
6
+ static ucFirst(str) {
7
+ if (typeof str != "string")
8
+ return str;
9
+ return str.charAt(0).toUpperCase() + str.substring(1);
10
+ }
11
+ static minutesDuration(minutes, locale = "", unitDisplay = "long") {
12
+ if (!locale)
13
+ locale = HTML.getLanguage();
14
+ const divMod = (n, m) => [Math.floor(n / m), n % m];
15
+ function timeUnitFormatter(locale, unit, unitDisplay) {
16
+ return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay })
17
+ .format;
18
+ }
19
+ const [hrs, mins] = divMod(minutes, 60);
20
+ const list = [];
21
+ if (hrs)
22
+ list.push(timeUnitFormatter(locale, "hour", unitDisplay)(hrs));
23
+ if (mins)
24
+ list.push(timeUnitFormatter(locale, "minute", unitDisplay)(mins));
25
+ return new Intl.ListFormat(locale, {
26
+ style: "long",
27
+ type: "conjunction",
28
+ }).format(list);
29
+ }
30
+ /**
31
+ * Retourne le résultat de l'évaluation de la chaine fournie
32
+ */
33
+ static js(value) {
34
+ try {
35
+ return Function("return " + value)();
36
+ }
37
+ catch (e) {
38
+ return "";
39
+ }
40
+ }
41
+ }
42
+ export default Format;
43
+ //# sourceMappingURL=Format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Format.js","sourceRoot":"","sources":["../../../../src/core/utils/Format.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,uCAAuC,CAAC;AAYzD,MAAM,MAAM;IACV;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,GAAW;QACxB,IAAI,OAAO,GAAG,IAAI,QAAQ;YAAE,OAAO,GAAG,CAAC;QACvC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