@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,946 @@
1
+ import { resolveStaticPublisherPath } from "./dataProviderKey";
2
+ import HTML from "./HTML";
3
+ import Objects from "./Objects";
4
+ import { sonicClassPrefix } from "./Utils";
5
+ const DP_OPTION_KEYS = new Set([
6
+ "localStorageMode",
7
+ "expirationDelayMs",
8
+ "invalidateOnPageShow",
9
+ ]);
10
+ function isDpOptions(value) {
11
+ if (value == null || typeof value !== "object" || Array.isArray(value)) {
12
+ return false;
13
+ }
14
+ return Object.keys(value).some((key) => DP_OPTION_KEYS.has(key));
15
+ }
16
+ function isLeaf(value) {
17
+ return Object.prototype.hasOwnProperty.call(value, "__value");
18
+ }
19
+ function isComplex(value) {
20
+ return typeof value === "object" && value !== null;
21
+ }
22
+ let SONIC_PREFIX = "sonic";
23
+ if (typeof __BUILD_DATE__ === "undefined") {
24
+ window.__BUILD_DATE__ = "No build date";
25
+ }
26
+ if (typeof __SONIC_PREFIX__ === "undefined") {
27
+ SONIC_PREFIX = "sonic";
28
+ }
29
+ export const prefix = SONIC_PREFIX;
30
+ const localStorageDataKey = SONIC_PREFIX == "sonic"
31
+ ? "publisher-proxies-data"
32
+ : SONIC_PREFIX + "-publisher-proxies-data";
33
+ /**
34
+ * Custom Proxy contient les méthodes des publishers retournés par PublisherManager.get(publisherId) qui seront utilisées couramment
35
+ */
36
+ export class PublisherProxy {
37
+ constructor(target, parentProxPub, parentKey) {
38
+ this._proxies_ = new Map();
39
+ this._is_savable_ = false;
40
+ this._expiration_delay_ = 1000 * 60 * 60 * 12;
41
+ this._invalidate_on_page_show_ = false;
42
+ this._invalidateListeners_ = new Set();
43
+ this._formInvalidateListeners_ = new Set();
44
+ this._assignListeners_ = new Set();
45
+ this._mutationListeners_ = new Set();
46
+ this._fillListeners_ = new Set();
47
+ this._templateFillListeners_ = new Set();
48
+ this._lockInternalMutationPublishing_ = false;
49
+ this._instanceCounter_ = 0;
50
+ this._assignmentId_ = 0;
51
+ this._value_ = target;
52
+ this.parent = parentProxPub || null;
53
+ this._parentKey_ = parentKey;
54
+ this.root = this;
55
+ this._instanceCounter_ = 0;
56
+ while (this.root.parent) {
57
+ this.root = this.root.parent;
58
+ }
59
+ }
60
+ /**
61
+ * Supprime le proxy et ses sous proxy
62
+ * Supprime les écouteurs associés
63
+ */
64
+ delete() {
65
+ for (const key in this._proxies_.keys()) {
66
+ if (key == "_parent_")
67
+ continue;
68
+ this._proxies_.get(key)?.delete();
69
+ }
70
+ this._invalidateListeners_.clear();
71
+ this._formInvalidateListeners_.clear();
72
+ this._assignListeners_.clear();
73
+ this._mutationListeners_.clear();
74
+ this._fillListeners_.clear();
75
+ this._templateFillListeners_.clear();
76
+ this._proxies_.clear();
77
+ PublisherProxy.instances.delete(this._instanceCounter_);
78
+ }
79
+ /**
80
+ * Utile pour savoir si quelque chose est en écoute d'une modification sur le proxy via une des methodes associées
81
+ */
82
+ hasListener() {
83
+ return (this._templateFillListeners_.size > 0 ||
84
+ this._assignListeners_.size > 0 ||
85
+ this._invalidateListeners_.size > 0 ||
86
+ this._formInvalidateListeners_.size > 0 ||
87
+ this._mutationListeners_.size > 0 ||
88
+ this._fillListeners_.size > 0);
89
+ }
90
+ _publishInternalMutation_(lockInternalMutationsTransmission = false) {
91
+ this._mutationListeners_.forEach((handler) => handler());
92
+ if (this._is_savable_ && !PublisherManager.changed) {
93
+ PublisherManager.changed = true;
94
+ PublisherManager.saveId++;
95
+ const saveId = PublisherManager.saveId;
96
+ setTimeout(() => PublisherManager.getInstance().saveToLocalStorage(saveId), 1000);
97
+ }
98
+ if (lockInternalMutationsTransmission)
99
+ return;
100
+ if (this.parent) {
101
+ this.parent._publishInternalMutation_();
102
+ }
103
+ }
104
+ async _publishAssignement_(lockInternalMutationsTransmission = false) {
105
+ this._assignmentId_++;
106
+ const currentId = this._assignmentId_;
107
+ if (currentId !== this._assignmentId_)
108
+ return;
109
+ const newValue = this.get();
110
+ this._assignListeners_.forEach((handler) => {
111
+ handler(newValue);
112
+ });
113
+ this._publishInternalMutation_(lockInternalMutationsTransmission);
114
+ }
115
+ _publishInvalidation_() {
116
+ this._invalidateListeners_.forEach((handler) => handler());
117
+ }
118
+ _publishFormInvalidation_() {
119
+ this._formInvalidateListeners_.forEach((handler) => handler());
120
+ }
121
+ _publishDynamicFilling_(key, value) {
122
+ this._fillListeners_.forEach((handler) => {
123
+ if (handler[key] !== value)
124
+ handler[key] = value;
125
+ });
126
+ this._publishTemplateFilling_(key, value);
127
+ }
128
+ _publishTemplateFilling_(key, value) {
129
+ this._templateFillListeners_.forEach((handler) => {
130
+ const desc = Object.getOwnPropertyDescriptor(handler, key);
131
+ if (desc && !desc.set && !desc.writable)
132
+ return;
133
+ if (handler.propertyMap && handler.propertyMap[key]) {
134
+ key = handler.propertyMap[key];
135
+ }
136
+ if (typeof handler[key] != "undefined" && handler[key] !== value) {
137
+ handler[key] = value;
138
+ }
139
+ });
140
+ }
141
+ /**
142
+ * Appel la fonction "handler" (passée en paramettre) lorsque la valeur gérée par le proxy change par assignation
143
+ * hanlder reçois alors la nouvelle valeur interne du proxy en paramètre
144
+ */
145
+ onAssign(handler, directHandlerCall = true) {
146
+ if (typeof handler != "function")
147
+ return;
148
+ if (this._assignListeners_.has(handler))
149
+ return;
150
+ this._assignListeners_.add(handler);
151
+ if (directHandlerCall)
152
+ handler(this.get());
153
+ }
154
+ /**
155
+ * Stop les appels de la fonction "handler" (passée en paramettre) lorsque la valeur gérée par le proxy change par assignation
156
+ */
157
+ offAssign(handler) {
158
+ this._assignListeners_.delete(handler);
159
+ }
160
+ /**
161
+ * Appel la fonction "handler" (passée en paramettre) lorsque la donnée est flaggée comme invalide
162
+ */
163
+ onInvalidate(handler) {
164
+ if (typeof handler != "function")
165
+ return;
166
+ this._invalidateListeners_.add(handler);
167
+ }
168
+ /**
169
+ * Stop les appels de la fonction "handler" (passée en paramettre) lorsque la donnée est flaggée comme invalide
170
+ */
171
+ offInvalidate(handler) {
172
+ if (typeof handler != "function")
173
+ return;
174
+ this._invalidateListeners_.delete(handler);
175
+ }
176
+ /**
177
+ * Flag les données comme étant invalides
178
+ */
179
+ invalidate() {
180
+ this._publishInvalidation_();
181
+ }
182
+ /**
183
+ * Appel la fonction "handler" (passée en paramettre) lorsque la donnée est flaggée comme invalide
184
+ */
185
+ onFormInvalidate(handler) {
186
+ if (typeof handler != "function")
187
+ return;
188
+ this._formInvalidateListeners_.add(handler);
189
+ }
190
+ /**
191
+ * Stop les appels de la fonction "handler" (passée en paramettre) lorsque la donnée est flaggée comme invalide
192
+ */
193
+ offFormInvalidate(handler) {
194
+ if (typeof handler != "function")
195
+ return;
196
+ this._formInvalidateListeners_.delete(handler);
197
+ }
198
+ invalidateForm() {
199
+ this._publishFormInvalidation_();
200
+ }
201
+ /**
202
+ * Appel la fonction "handler" (passée en paramettre) lorsque quelque chose change la valeur gérée par le proxy quelque soit la profondeur de la donnée
203
+ *
204
+ */
205
+ onInternalMutation(handler) {
206
+ if (typeof handler != "function")
207
+ return;
208
+ this._mutationListeners_.add(handler);
209
+ handler();
210
+ }
211
+ /**
212
+ * Stop les Appels de la fonction "handler" (passée en paramettre) lorsque quelque chose change la valeur gérée par le proxy quelque soit la profondeur de la donnée
213
+ */
214
+ offInternalMutation(handler) {
215
+ if (typeof handler != "function")
216
+ return;
217
+ this._mutationListeners_.delete(handler);
218
+ }
219
+ /**
220
+ * Maintient le remplissage de l'objet / tableau "handler" passé en paramètre avec les valeurs du proxy
221
+ * Remplit uniquement les valeurs déjà présentes dans l'objet / tableau passé en paramètre
222
+ */
223
+ startTemplateFilling(handler) {
224
+ this._templateFillListeners_.add(handler);
225
+ if (typeof this._value_ != "object")
226
+ return;
227
+ for (const z in this._value_) {
228
+ let valueKey = z;
229
+ const value = this._value_[z];
230
+ if (handler.propertyMap && handler.propertyMap[z]) {
231
+ valueKey = handler.propertyMap[z];
232
+ }
233
+ if (typeof handler[z] != "undefined" && handler[z] !== value) {
234
+ handler[valueKey] = value;
235
+ }
236
+ }
237
+ }
238
+ /**
239
+ * Arrête de maintenir le remplissage de l'objet / tableau "handler" passé en paramètre avec les valeurs du proxy
240
+ */
241
+ stopTemplateFilling(handler) {
242
+ this._templateFillListeners_.delete(handler);
243
+ }
244
+ /**
245
+ * Maintient le remplissage de l'objet / tableau "handler" passé en paramètre avec les valeurs du proxy
246
+ * Remplit toute valeur qu'elle soit présente ou pas initialement dans l'objet
247
+ */
248
+ startDynamicFilling(handler) {
249
+ this._fillListeners_.add(handler);
250
+ for (const z in this._value_) {
251
+ const value = this._value_[z];
252
+ if (handler[z] !== value)
253
+ handler[z] = value;
254
+ }
255
+ }
256
+ /*
257
+ * Arrête de maintenir le remplissage de l'objet / tableau "handler" passé en paramètre avec les valeurs du proxy
258
+ */
259
+ stopDynamicFilling(handler) {
260
+ this._fillListeners_.delete(handler);
261
+ }
262
+ /**
263
+ * Assigne une nouvelle valeur au proxy ce qui déclenche la transmission de la donnée en fonction des "écouteurs" associés
264
+ */
265
+ set(newValue, lockInternalMutationsTransmission = false) {
266
+ /**
267
+ * On retounre tout de suite si la valeur n'a pas changé
268
+ */
269
+ if (this._value_ === newValue)
270
+ return true;
271
+ /**
272
+ * On retounre tout de suite si la valeur n'a pas changé
273
+ * et qu'elle est primitive
274
+ */
275
+ if ((isComplex(this._value_) &&
276
+ isComplex(newValue) &&
277
+ newValue &&
278
+ isLeaf(this._value_) &&
279
+ isLeaf(newValue) &&
280
+ this._value_.__value === newValue.__value) ||
281
+ (!isComplex(newValue) && newValue === this._value_.__value)) {
282
+ return true;
283
+ }
284
+ /**
285
+ * On assigne la nouvelle valeur
286
+ */
287
+ /** Si la valeur est complexe on assigne newValue directe sinon on le met dans une sous valeur __value */
288
+ this._value_ = isComplex(newValue)
289
+ ? newValue
290
+ : { __value: newValue };
291
+ this._cachedGet_ = undefined;
292
+ /**
293
+ * Si il s'agit d'une valeur primitive (un entier, une chaine ) la valeure en renseignée par un objet contenant la vaeur {__value}
294
+ * On publie juste et on sen va.
295
+ */
296
+ const isLeafNewValue = isLeaf(this._value_);
297
+ if (this._parentKey_ && this.parent) {
298
+ //si le parent n'a pas de valeur, on la crée en renseignant this.value et on retourne.
299
+ const valueTosetInParent = isLeaf(this._value_)
300
+ ? this._value_.__value
301
+ : this._value_;
302
+ if (this.parent?.get() == null && this.parent?.get() == undefined) {
303
+ //if _parentKey_ is a number, we assume it's an array
304
+ if (!isNaN(Number(this._parentKey_))) {
305
+ const parent = [];
306
+ parent[Number(this._parentKey_)] = valueTosetInParent;
307
+ this.parent.set(parent);
308
+ }
309
+ else {
310
+ this.parent.set({ [this._parentKey_]: valueTosetInParent });
311
+ }
312
+ // return;
313
+ }
314
+ else {
315
+ //on mets à jour la valeur de la clef dans l'objet parnet pour refléter le changement au ca sou elle n'existait pas
316
+ this.parent._value_[this._parentKey_] = valueTosetInParent;
317
+ }
318
+ }
319
+ if (isLeafNewValue) {
320
+ // Si la valeur précédente était composite, on reset tous les sous-éléments à null
321
+ this._proxies_.forEach((_subProxy, key) => {
322
+ /**
323
+ *
324
+ * On reùmplace les undefined par des nuls pour eviter la suppression des clefs sauf pour les clef tableaux
325
+ **/
326
+ if (key != "_parent_") {
327
+ _subProxy.set(null);
328
+ this._publishDynamicFilling_(key, null);
329
+ }
330
+ });
331
+ //await //await here gives better performance but can cause issues with some listeners
332
+ this._publishAssignement_(lockInternalMutationsTransmission);
333
+ if (this.parent && this._parentKey_) {
334
+ this.parent._publishDynamicFilling_(this._parentKey_, this._value_.__value);
335
+ }
336
+ return true;
337
+ }
338
+ /**
339
+ * On fait la diff sur l'existant.
340
+ * On maintient les proxys à supprimer et ceux à ajouter.
341
+ * On met à jour leur valeur interne
342
+ * On publie les maj au fur et a mesure de modifications
343
+ */
344
+ for (const key in this._value_) {
345
+ const currentValue = this._value_[key];
346
+ if (currentValue === undefined)
347
+ delete this._value_[key];
348
+ }
349
+ this._proxies_.forEach((_subProxy, key) => {
350
+ /**
351
+ *
352
+ * On reùmplace les undefined par des nuls pour eviter la suppression des clefs sauf pour les clef tableaux
353
+ **/
354
+ const currentValue = this._value_[key];
355
+ if (key != "_parent_") {
356
+ if (currentValue === undefined &&
357
+ currentValue !== null &&
358
+ isNaN(Number(key))) {
359
+ _subProxy.set(null);
360
+ this._publishDynamicFilling_(key, null);
361
+ }
362
+ }
363
+ });
364
+ /**
365
+ * On prévient les écouteurs que la valeur a changé
366
+ */
367
+ //await //await here gives better performance but can cause issues with some listeners
368
+ this._publishAssignement_();
369
+ if (this.parent && this._parentKey_)
370
+ this.parent._publishDynamicFilling_(this._parentKey_, this._value_);
371
+ /**
372
+ * Si la donnée est complexe (objet, tableau)
373
+ * on crée les proxys pour les sous-éléments qui n'en on pas
374
+ * On renseigne les nouvelles valeurs internes des proxies
375
+ */
376
+ if (isComplex(this._value_)) {
377
+ for (const key in this._value_) {
378
+ const v = newValue[key];
379
+ const isVComplex = isComplex(v);
380
+ const valueV = isVComplex ? v : { __value: v };
381
+ if (!this._proxies_.has(key)) {
382
+ // A surveiller ancienne version
383
+ // const newPublisher = new DataProvider({}, this);
384
+ // this._proxies_.set(key, newPublisher);
385
+ // newPublisher._proxies_.set("_parent_", this);
386
+ this._publishDynamicFilling_(key, v);
387
+ continue;
388
+ }
389
+ //await //await here gives better performance but can cause issues with some listeners
390
+ this._proxies_.get(key)?.set(valueV, true);
391
+ this._publishDynamicFilling_(key, v);
392
+ }
393
+ }
394
+ return true;
395
+ }
396
+ get() {
397
+ trackModifiedPublisher(this);
398
+ if (this._cachedGet_ !== undefined)
399
+ return this._cachedGet_;
400
+ if (Object.prototype.hasOwnProperty.call(this._value_, "__value")) {
401
+ const v = this._value_.__value;
402
+ return (this._cachedGet_ = (v != undefined ? v : null));
403
+ }
404
+ return (this._cachedGet_ = (this._value_ != undefined ? this._value_ : null));
405
+ }
406
+ /**
407
+ * retourner le webcomponent auquel le proxy est associé
408
+ */
409
+ get $tag() {
410
+ if (!this._instanceCounter_) {
411
+ PublisherProxy.instancesCounter++;
412
+ this._instanceCounter_ = PublisherProxy.instancesCounter;
413
+ }
414
+ PublisherProxy.instances.set(this._instanceCounter_, this);
415
+ const str = "<" +
416
+ SONIC_PREFIX +
417
+ '-publisher-proxy publisher="' +
418
+ this._instanceCounter_ +
419
+ '"></' +
420
+ SONIC_PREFIX +
421
+ "-publisher-proxy>";
422
+ return str;
423
+ }
424
+ }
425
+ PublisherProxy.instances = new Map();
426
+ PublisherProxy.instancesCounter = 0;
427
+ /**
428
+ * Utilitaires de gestion des DataProvider
429
+ * Obtenir, replacer ou supprimer un DataProvider
430
+ *
431
+ */
432
+ const modifiedCollectore = [];
433
+ function trackModifiedPublisher(proxy) {
434
+ if (modifiedCollectore.length > 0)
435
+ modifiedCollectore[0].add(proxy);
436
+ }
437
+ export function collectModifiedPublisher() {
438
+ modifiedCollectore.unshift(new Set());
439
+ }
440
+ export function getModifiedPublishers() {
441
+ return modifiedCollectore.shift();
442
+ }
443
+ export class PublisherManager {
444
+ constructor() {
445
+ this.enabledLocaStorageProxies = [];
446
+ this.publishers = new Map();
447
+ this.localStorageData = {};
448
+ this.isLocalStrorageReady = null;
449
+ this.initialisedData = [];
450
+ if (PublisherManager.instance != null)
451
+ throw "Singleton / use getInstance";
452
+ PublisherManager.instance = this;
453
+ this.isLocalStrorageReady = this.cleanStorageData();
454
+ PublisherManager.initPageShowHandler();
455
+ }
456
+ static initPageShowHandler() {
457
+ if (PublisherManager.pageShowHandlerInitialized)
458
+ return;
459
+ PublisherManager.pageShowHandlerInitialized = true;
460
+ window.addEventListener("pageshow", (e) => {
461
+ if (e.persisted)
462
+ PublisherManager.getInstance().invalidateAll();
463
+ });
464
+ }
465
+ invalidateAll() {
466
+ this.publishers.forEach((publisher) => {
467
+ if (!publisher._invalidate_on_page_show_) {
468
+ return;
469
+ }
470
+ publisher.invalidate();
471
+ });
472
+ }
473
+ async cleanStorageData() {
474
+ return new Promise((resolve) => {
475
+ const doiIt = async () => {
476
+ try {
477
+ let compressedData = localStorage.getItem(localStorageDataKey);
478
+ let localStorageJSON = null;
479
+ if (compressedData)
480
+ localStorageJSON = await this.decompress(compressedData, "gzip");
481
+ if (localStorageJSON) {
482
+ try {
483
+ this.localStorageData = JSON.parse(localStorageJSON);
484
+ }
485
+ catch (e) {
486
+ this.localStorageData = {};
487
+ }
488
+ }
489
+ else {
490
+ compressedData = await this.compress("{}", "gzip");
491
+ localStorage.setItem(localStorageDataKey, compressedData);
492
+ this.localStorageData = {};
493
+ }
494
+ const expirationDelay = 1000 * 60 * 60 * 12;
495
+ for (const key in this.localStorageData) {
496
+ const item = this.localStorageData[key];
497
+ const expires = new Date().getTime() -
498
+ (item.expirationDelayMs || expirationDelay);
499
+ if (item.lastModifiationMS < expires) {
500
+ delete this.localStorageData[key];
501
+ }
502
+ }
503
+ resolve(true);
504
+ }
505
+ catch (e) {
506
+ window.requestAnimationFrame(() => {
507
+ resolve(false);
508
+ });
509
+ console.warn("no publisher cache in this browser");
510
+ }
511
+ };
512
+ doiIt();
513
+ });
514
+ }
515
+ /**
516
+ * PublisherManager est un singleton
517
+ */
518
+ static getInstance(id) {
519
+ if (id) {
520
+ const pm = PublisherManager.instances.get(id);
521
+ if (pm) {
522
+ return pm;
523
+ }
524
+ else {
525
+ console.warn("No PublisherManager instance registered with id:", id, "creating new one");
526
+ return new PublisherManager();
527
+ }
528
+ }
529
+ if (PublisherManager.instance == null)
530
+ return new PublisherManager();
531
+ return PublisherManager.instance;
532
+ }
533
+ /**
534
+ * shortcut static pour obtenir un publisher vias sont id/adresse sans taper getInstance.
535
+ * Si le publisher n'existe pas, il est créé.
536
+ */
537
+ static get(id, options) {
538
+ return PublisherManager.getInstance().get(id, options);
539
+ }
540
+ /**
541
+ * Obtenir un publisher vias sont id/adresse
542
+ * Si le publisher n'existe pas, il est créé.
543
+ */
544
+ async setLocalData(publisher, id) {
545
+ await this.isLocalStrorageReady;
546
+ publisher.set(this.localStorageData[id + "¤lang_" + HTML.getLanguage()]?.data ||
547
+ publisher.get());
548
+ }
549
+ get(id, options) {
550
+ const hasLocalStorage = options?.localStorageMode === "enabled";
551
+ const invalidateOnPageShow = options?.invalidateOnPageShow === true;
552
+ if (!this.publishers.has(id)) {
553
+ const data = {};
554
+ const publisher = createPublisher(data);
555
+ this.set(id, publisher);
556
+ }
557
+ const publisher = this.publishers.get(id);
558
+ if (hasLocalStorage && this.initialisedData.indexOf(id) === -1) {
559
+ if (options?.expirationDelayMs) {
560
+ publisher._expiration_delay_ =
561
+ options.expirationDelayMs;
562
+ }
563
+ publisher._is_savable_ = true;
564
+ this.initialisedData.push(id);
565
+ this.setLocalData(publisher, id);
566
+ }
567
+ if (invalidateOnPageShow) {
568
+ publisher._invalidate_on_page_show_ =
569
+ invalidateOnPageShow;
570
+ }
571
+ return this.publishers.get(id);
572
+ }
573
+ /**
574
+ * Remplace un publisher pour l'id fourni par un autre.
575
+ * L'autre publisher n'est pas supprimé.
576
+ */
577
+ set(id, publisher) {
578
+ this.publishers.set(id, publisher);
579
+ }
580
+ /**
581
+ * @warning
582
+ * !!!!! ATTENTION !!!!!
583
+ * Il est fort à aprier que vous ne voulez pas utiliser cette methode
584
+ * Il s'agit d'une supression complete
585
+ * * du publisher de la liste
586
+ * * des bindings
587
+ * * de même que ses sous publishers
588
+ *
589
+ * UTILISEZ PLUTÔT la méthode publisher.set({}) pour réinitialiser un publisher sans perdre les ecouteurs
590
+ */
591
+ delete(id) {
592
+ if (!this.publishers.has(id))
593
+ return false;
594
+ this.publishers.delete(id);
595
+ return true;
596
+ }
597
+ async saveToLocalStorage(saveId = 0) {
598
+ /**
599
+ * si l'id a changé et que ce n'est pas un multiple de 10, on ne sauve pas
600
+ * on sauvegarde quand même tous les 10 au cas ou on aurrait des changements en continue, par exemple à chaque frame
601
+ */
602
+ if (saveId !== PublisherManager.saveId && saveId % 10 != 0)
603
+ return;
604
+ try {
605
+ if (!PublisherManager.changed || PublisherManager.saving)
606
+ return;
607
+ PublisherManager.saving = true;
608
+ PublisherManager.changed = false;
609
+ const keys = Array.from(this.publishers.keys());
610
+ let hasChanged = false;
611
+ for (const key of keys) {
612
+ const publisher = this.publishers.get(key);
613
+ if (!publisher?._is_savable_)
614
+ continue;
615
+ const data = publisher?.get();
616
+ if (!data)
617
+ continue;
618
+ this.localStorageData[key + "¤lang_" + HTML.getLanguage()] = {
619
+ lastModifiationMS: new Date().getTime(),
620
+ expirationDelayMs: publisher._expiration_delay_,
621
+ data: data,
622
+ };
623
+ hasChanged = true;
624
+ }
625
+ // on enregistre les données
626
+ if (hasChanged) {
627
+ const compressedData = await this.compress(JSON.stringify(this.localStorageData), "gzip");
628
+ localStorage.setItem(localStorageDataKey, compressedData);
629
+ }
630
+ PublisherManager.saving = false;
631
+ if (PublisherManager.changed) {
632
+ PublisherManager.saveId++;
633
+ const saveId = PublisherManager.saveId;
634
+ setTimeout(() => this.saveToLocalStorage(saveId), 1000);
635
+ }
636
+ }
637
+ catch (e) {
638
+ PublisherManager.saving = false;
639
+ }
640
+ }
641
+ async compress(string, encoding) {
642
+ const byteArray = new TextEncoder().encode(string);
643
+ const win = window;
644
+ const cs = new win.CompressionStream(encoding);
645
+ const writer = cs.writable.getWriter();
646
+ writer.write(byteArray);
647
+ writer.close();
648
+ const result = await new Response(cs.readable).arrayBuffer();
649
+ const arrayBufferView = new Uint8Array(result);
650
+ let str = "";
651
+ for (let i = 0; i < arrayBufferView.length; i++) {
652
+ str += String.fromCharCode(arrayBufferView[i]);
653
+ }
654
+ return btoa(str);
655
+ }
656
+ async decompress(str, encoding) {
657
+ const decodedString = atob(str);
658
+ const arrayBufferViewFromLocalStorage = Uint8Array.from(decodedString, (c) => c.charCodeAt(0));
659
+ const byteArray = arrayBufferViewFromLocalStorage.buffer;
660
+ const win = window;
661
+ const cs = new win.DecompressionStream(encoding);
662
+ const writer = cs.writable.getWriter();
663
+ writer.write(byteArray);
664
+ writer.close();
665
+ const result = await new Response(cs.readable).arrayBuffer();
666
+ return new TextDecoder().decode(result);
667
+ }
668
+ }
669
+ PublisherManager.buildDate = __BUILD_DATE__;
670
+ PublisherManager.changed = false;
671
+ PublisherManager.saving = false;
672
+ PublisherManager.saveId = 0;
673
+ PublisherManager.instance = null;
674
+ PublisherManager.instances = new Map();
675
+ PublisherManager.pageShowHandlerInitialized = false;
676
+ if (typeof window !== "undefined") {
677
+ const win = window;
678
+ win[sonicClassPrefix + "PublisherManager"] =
679
+ win[sonicClassPrefix + "PublisherManager"] || PublisherManager;
680
+ }
681
+ const internalProps = new Set([
682
+ "invalidate",
683
+ "onInvalidate",
684
+ "offInvalidate",
685
+ "invalidateForm",
686
+ "onFormInvalidate",
687
+ "offFormInvalidate",
688
+ "onAssign",
689
+ "offAssign",
690
+ "startDynamicFilling",
691
+ "stopDynamicFilling",
692
+ "startTemplateFilling",
693
+ "stopTemplateFilling",
694
+ "onInternalMutation",
695
+ "offInternalMutation",
696
+ "set",
697
+ "get",
698
+ "$tag",
699
+ "_cachedGet_",
700
+ "_templateFillListeners_",
701
+ "_fillListeners_",
702
+ "_assignListeners_",
703
+ "_invalidateListeners_",
704
+ "_formInvalidateListeners_",
705
+ "_publishInternalMutation_",
706
+ "hasListener",
707
+ "delete",
708
+ "_mutationListeners_",
709
+ "_publishDynamicFilling_",
710
+ "_publishInvalidation_",
711
+ "_publishFormInvalidation_",
712
+ "_publishTemplateFilling_",
713
+ "_publishAssignement_",
714
+ "_proxies_",
715
+ "parent",
716
+ "_parentKey_",
717
+ "_value_",
718
+ "_is_savable_",
719
+ "_expiration_delay_",
720
+ "_lockInternalMutationPublishing_",
721
+ "_instanceCounter_",
722
+ "_assignmentId_",
723
+ "_invalidate_on_page_show_",
724
+ ]);
725
+ function createPublisherHandler(publisherInstance, getProxy) {
726
+ return {
727
+ /**
728
+ * Lorsque l'on écrit monConteneur = publisher.maClef ou monConteneur = publisher["maClef"] monConteneur contient :
729
+ * Les methodes de PublisherProxy (onAssign... : voir liste dans kle tableaus si dessous), si la clef est une méthode de PublisherProxy,,
730
+ * Sinon un autre proxy qui a comme valeur interne la valeur corespondante à la clef dans l'objet.
731
+ */
732
+ get: function (_publisherInstance, sKey) {
733
+ if (typeof sKey === "string" && internalProps.has(sKey))
734
+ return publisherInstance[sKey];
735
+ if (sKey == Symbol.toPrimitive) {
736
+ return () => getProxy().get();
737
+ }
738
+ // Support de la notation à points (rigolo mais pas intuitif)
739
+ // if (sKey.includes(".")) {
740
+ // const keys = sKey.split(".");
741
+ // return thisProxy[keys.shift()][keys.join(".")];
742
+ // }
743
+ if (!publisherInstance._proxies_.has(sKey)) {
744
+ const vValue = publisherInstance._value_[sKey];
745
+ const newPublisher = createPublisher(isComplex(vValue) ? vValue : { __value: vValue }, publisherInstance, sKey);
746
+ newPublisher._proxies_.set("_parent_", getProxy());
747
+ publisherInstance._proxies_.set(sKey, newPublisher);
748
+ }
749
+ return publisherInstance._proxies_.get(sKey);
750
+ },
751
+ /**
752
+ * Lorsque l'on écrit publisher.maClef = value ou publisher["maClef"] = value, on assigne la valeur à la clef dans l'objet interne.
753
+ * Les gestionnairs associés sopnt déclenchés en conséquence de manière profonde et remontante si nécessaire.
754
+ */
755
+ set: function (_publisherInstance, sKey, vValue) {
756
+ //Fonctionnement pour la donnée interne pas de dispatch;
757
+ if (sKey == "_value_") {
758
+ publisherInstance._value_ = vValue;
759
+ return true;
760
+ }
761
+ if (sKey == "_cachedGet_") {
762
+ publisherInstance._cachedGet_ = vValue;
763
+ return true;
764
+ }
765
+ if (sKey == "_assignmentId_") {
766
+ publisherInstance._assignmentId_ = vValue;
767
+ return true;
768
+ }
769
+ if (sKey == "_is_savable_") {
770
+ publisherInstance._is_savable_ = vValue;
771
+ return true;
772
+ }
773
+ if (sKey == "_expiration_delay_") {
774
+ publisherInstance._expiration_delay_ = vValue;
775
+ return true;
776
+ }
777
+ if (sKey == "_invalidate_on_page_show_") {
778
+ publisherInstance._invalidate_on_page_show_ = vValue;
779
+ return true;
780
+ }
781
+ if (sKey == "_instanceCounter_") {
782
+ publisherInstance._instanceCounter_ = vValue;
783
+ return true;
784
+ }
785
+ // Support de la notation à points (rigolo mais pas intuitif)
786
+ // if (sKey.includes(".")) {
787
+ // const keys = sKey.split(".");
788
+ // thisProxy[keys.shift() || ""][keys.join(".")].set(vValue);
789
+ // return true;
790
+ // }
791
+ //Création du publisher si il n'existe pas
792
+ if (!publisherInstance._proxies_.has(sKey)) {
793
+ const newPublisher = createPublisher({}, publisherInstance, sKey);
794
+ newPublisher._proxies_.set("_parent_", getProxy());
795
+ publisherInstance._proxies_.set(sKey, newPublisher);
796
+ }
797
+ //mis à jour et publication de la donnée si elle a changé
798
+ const prevValue = publisherInstance._value_[sKey];
799
+ if (prevValue !== vValue) {
800
+ publisherInstance._value_[sKey] = vValue;
801
+ publisherInstance._publishDynamicFilling_(sKey, vValue);
802
+ publisherInstance._proxies_
803
+ .get(sKey)
804
+ ?.set(isComplex(vValue) ? vValue : { __value: vValue });
805
+ }
806
+ //on retourne le proxy pour pouvoir chainer les assignements
807
+ // return publisherInstance._proxies_.get(sKey);
808
+ return true;
809
+ },
810
+ /**
811
+ * Autres propriétés classiques d'un objet implémentées par le proxy
812
+ */
813
+ deleteProperty: function (_publisherInstance, sKey) {
814
+ publisherInstance._publishDynamicFilling_(sKey, null);
815
+ // if (!publisherInstance._proxies_.get(sKey)?.hasListener()) {
816
+ // publisherInstance._proxies_.delete(sKey);
817
+ // } else {
818
+ publisherInstance._proxies_.get(sKey)?.set(null);
819
+ // }
820
+ return delete publisherInstance._value_[sKey];
821
+ },
822
+ // enumerate: function (publisherInstance, sKey): CoreJSType {
823
+ // return publisherInstance._value_.keys();
824
+ // },
825
+ has: function (_publisherInstance, sKey) {
826
+ return (sKey in publisherInstance._value_ &&
827
+ sKey != "_lockInternalMutationPublishing_");
828
+ },
829
+ defineProperty: function (_publisherInstance, sKey, oDesc) {
830
+ if (oDesc && "value" in oDesc) {
831
+ publisherInstance._value_[sKey] = oDesc.value;
832
+ }
833
+ return true;
834
+ // return publisherInstance._value_;
835
+ },
836
+ getOwnPropertyDescriptor: function (_publisherInstance, sKey) {
837
+ sKey;
838
+ return {
839
+ enumerable: true,
840
+ configurable: true,
841
+ };
842
+ },
843
+ ownKeys: function (_publisherInstance) {
844
+ if (publisherInstance._value_.__value)
845
+ return Object.keys(publisherInstance._value_.__value);
846
+ return Object.keys(publisherInstance._value_);
847
+ },
848
+ };
849
+ }
850
+ export function createPublisher(target, parentProxPub = null, parentKey) {
851
+ const instance = new PublisherProxy(target, parentProxPub, parentKey);
852
+ let proxy = null;
853
+ const handler = createPublisherHandler(instance, () => proxy);
854
+ proxy = new Proxy(instance, handler);
855
+ return proxy;
856
+ }
857
+ // if (typeof module != "undefined") module.exports = {DataProvider: DataProvider, PublisherManager: PublisherManager};
858
+ // /**
859
+ // * A custom webcomponent wich will be linked to a publisher via its attribute "publisher"
860
+ // * the publisher will be found via PublisherManager.get(publisherId) and will be used to fill the component using the onAssign method
861
+ // */
862
+ class PublisherWebComponent extends HTMLElement {
863
+ constructor() {
864
+ super();
865
+ this.publisherId = "";
866
+ this.onAssign = (value) => {
867
+ this.innerHTML = value.toString();
868
+ };
869
+ }
870
+ connectedCallback() {
871
+ this.publisherId = this.getAttribute("publisher") || "";
872
+ this.publisher = PublisherProxy.instances.get(parseInt(this.publisherId));
873
+ this.publisher?.onAssign(this.onAssign);
874
+ }
875
+ disconnectedCallback() {
876
+ this.publisher?.offAssign(this.onAssign);
877
+ }
878
+ }
879
+ try {
880
+ customElements.define(SONIC_PREFIX + "-publisher-proxy", PublisherWebComponent);
881
+ }
882
+ catch (e) { }
883
+ export const getObservables = (observable, options) => {
884
+ if (typeof observable === "function") {
885
+ const func = observable;
886
+ collectModifiedPublisher();
887
+ func();
888
+ return getModifiedPublishers();
889
+ }
890
+ if (typeof observable === "string") {
891
+ const split = observable.split(".");
892
+ const dataProvider = split.shift() || "";
893
+ let publisher = PublisherManager.get(dataProvider, options);
894
+ publisher = Objects.traverse(publisher, split);
895
+ const set = new Set();
896
+ set.add(publisher);
897
+ return set;
898
+ }
899
+ return new Set([observable]);
900
+ };
901
+ export function get(id) {
902
+ const path = resolveStaticPublisherPath(id);
903
+ return getObservables(path).values().next().value?.get();
904
+ }
905
+ function deepee(id, _defaultValue, options) {
906
+ const path = resolveStaticPublisherPath(id);
907
+ const value = getObservables(path, options).values().next()
908
+ .value;
909
+ // if (defaultValue !== undefined && value) {
910
+ // const innerValue = value.get();
911
+ // if (Objects.isEmpty(innerValue as Record<string, any>)) {
912
+ // value.set(defaultValue);
913
+ // }
914
+ // }
915
+ return value;
916
+ }
917
+ function isDataProvider(value) {
918
+ return (value != null &&
919
+ typeof value === "object" &&
920
+ typeof value.get === "function" &&
921
+ typeof value.set === "function" &&
922
+ typeof value.onAssign === "function");
923
+ }
924
+ function resolvePublisherRef(ref, options) {
925
+ if (isDataProvider(ref))
926
+ return ref;
927
+ return deepee(ref, undefined, options);
928
+ }
929
+ export function dataProvider(id, second) {
930
+ if (isDpOptions(second))
931
+ return deepee(id, undefined, second);
932
+ return deepee(id, second);
933
+ }
934
+ export function dp(id, second) {
935
+ if (isDpOptions(second))
936
+ return deepee(id, undefined, second);
937
+ return deepee(id, second);
938
+ }
939
+ export function mirrorDp(aliasKey, source) {
940
+ PublisherManager.getInstance().set(resolveStaticPublisherPath(aliasKey), resolvePublisherRef(source));
941
+ }
942
+ export function set(id, value) {
943
+ const path = resolveStaticPublisherPath(id);
944
+ getObservables(path).values().next().value?.set(value);
945
+ }
946
+ //# sourceMappingURL=PublisherProxy.js.map