@supersoniks/concorde 4.7.4 → 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 (679) 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 +30 -16
  9. package/ai/cursor/rules/concorde.mdc +1 -1
  10. package/ai/skills/concorde-scope/SKILL.md +2 -2
  11. package/build-infos.json +1 -1
  12. package/concorde-core.bundle.js +214 -214
  13. package/concorde-core.es.js +4517 -4133
  14. package/dist/concorde-core.bundle.js +214 -214
  15. package/dist/concorde-core.es.js +4517 -4133
  16. package/dist/docs-mock-api-sw.js +19 -0
  17. package/dist/docs-mock-api-sw.js.map +2 -2
  18. package/dist/js/components.js +12 -0
  19. package/dist/js/components.js.map +1 -0
  20. package/dist/js/concorde-loaded.js +5 -0
  21. package/dist/js/concorde-loaded.js.map +1 -0
  22. package/dist/js/core/_types/endpoint.js +5 -0
  23. package/dist/js/core/_types/endpoint.js.map +1 -0
  24. package/dist/js/core/_types/key.js +2 -0
  25. package/dist/js/core/_types/key.js.map +1 -0
  26. package/dist/js/core/_types/types.js +3 -0
  27. package/dist/js/core/_types/types.js.map +1 -0
  28. package/dist/js/core/components/functional/date/date.js +272 -0
  29. package/dist/js/core/components/functional/date/date.js.map +1 -0
  30. package/dist/js/core/components/functional/example/example.js +44 -0
  31. package/dist/js/core/components/functional/example/example.js.map +1 -0
  32. package/dist/js/core/components/functional/fetch/fetch.js +79 -0
  33. package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
  34. package/dist/js/core/components/functional/functional.js +17 -0
  35. package/dist/js/core/components/functional/functional.js.map +1 -0
  36. package/dist/js/core/components/functional/if/if.js +39 -0
  37. package/dist/js/core/components/functional/if/if.js.map +1 -0
  38. package/dist/js/core/components/functional/list/list.js +341 -0
  39. package/dist/js/core/components/functional/list/list.js.map +1 -0
  40. package/dist/js/core/components/functional/mix/mix.js +103 -0
  41. package/dist/js/core/components/functional/mix/mix.js.map +1 -0
  42. package/dist/js/core/components/functional/queue/queue.js +386 -0
  43. package/dist/js/core/components/functional/queue/queue.js.map +1 -0
  44. package/dist/js/core/components/functional/router/redirect.js +54 -0
  45. package/dist/js/core/components/functional/router/redirect.js.map +1 -0
  46. package/dist/js/core/components/functional/router/router.js +179 -0
  47. package/dist/js/core/components/functional/router/router.js.map +1 -0
  48. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
  49. package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
  50. package/dist/js/core/components/functional/sdui/default-library.json +108 -0
  51. package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
  52. package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
  53. package/dist/js/core/components/functional/sdui/sdui.js +266 -0
  54. package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
  55. package/dist/js/core/components/functional/sdui/types.js +2 -0
  56. package/dist/js/core/components/functional/sdui/types.js.map +1 -0
  57. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
  58. package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
  59. package/dist/js/core/components/functional/states/states.js +172 -0
  60. package/dist/js/core/components/functional/states/states.js.map +1 -0
  61. package/dist/js/core/components/functional/submit/submit.js +284 -0
  62. package/dist/js/core/components/functional/submit/submit.js.map +1 -0
  63. package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
  64. package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
  65. package/dist/js/core/components/functional/translation/translation.js +28 -0
  66. package/dist/js/core/components/functional/translation/translation.js.map +1 -0
  67. package/dist/js/core/components/functional/value/value.js +28 -0
  68. package/dist/js/core/components/functional/value/value.js.map +1 -0
  69. package/dist/js/core/components/ui/_css/scroll.js +25 -0
  70. package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
  71. package/dist/js/core/components/ui/_css/shadow.js +22 -0
  72. package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
  73. package/dist/js/core/components/ui/_css/size.js +36 -0
  74. package/dist/js/core/components/ui/_css/size.js.map +1 -0
  75. package/dist/js/core/components/ui/_css/type.js +92 -0
  76. package/dist/js/core/components/ui/_css/type.js.map +1 -0
  77. package/dist/js/core/components/ui/alert/alert.js +213 -0
  78. package/dist/js/core/components/ui/alert/alert.js.map +1 -0
  79. package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
  80. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
  81. package/dist/js/core/components/ui/badge/badge.js +199 -0
  82. package/dist/js/core/components/ui/badge/badge.js.map +1 -0
  83. package/dist/js/core/components/ui/button/button.js +697 -0
  84. package/dist/js/core/components/ui/button/button.js.map +1 -0
  85. package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
  86. package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
  87. package/dist/js/core/components/ui/captcha/captcha.js +167 -0
  88. package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
  89. package/dist/js/core/components/ui/card/card-footer.js +26 -0
  90. package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
  91. package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
  92. package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
  93. package/dist/js/core/components/ui/card/card-header.js +79 -0
  94. package/dist/js/core/components/ui/card/card-header.js.map +1 -0
  95. package/dist/js/core/components/ui/card/card-main.js +26 -0
  96. package/dist/js/core/components/ui/card/card-main.js.map +1 -0
  97. package/dist/js/core/components/ui/card/card.js +67 -0
  98. package/dist/js/core/components/ui/card/card.js.map +1 -0
  99. package/dist/js/core/components/ui/divider/divider.js +200 -0
  100. package/dist/js/core/components/ui/divider/divider.js.map +1 -0
  101. package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
  102. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
  103. package/dist/js/core/components/ui/form/css/form-control.js +393 -0
  104. package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
  105. package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
  106. package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
  107. package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
  108. package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
  109. package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
  110. package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
  111. package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
  112. package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
  113. package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
  114. package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
  115. package/dist/js/core/components/ui/form/input/input.js +316 -0
  116. package/dist/js/core/components/ui/form/input/input.js.map +1 -0
  117. package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
  118. package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
  119. package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
  120. package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
  121. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
  122. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
  123. package/dist/js/core/components/ui/form/radio/radio.js +63 -0
  124. package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
  125. package/dist/js/core/components/ui/form/select/select.js +323 -0
  126. package/dist/js/core/components/ui/form/select/select.js.map +1 -0
  127. package/dist/js/core/components/ui/form/switch/switch.js +90 -0
  128. package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
  129. package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
  130. package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
  131. package/dist/js/core/components/ui/group/group.js +128 -0
  132. package/dist/js/core/components/ui/group/group.js.map +1 -0
  133. package/dist/js/core/components/ui/icon/icon.js +129 -0
  134. package/dist/js/core/components/ui/icon/icon.js.map +1 -0
  135. package/dist/js/core/components/ui/icon/icons.js +163 -0
  136. package/dist/js/core/components/ui/icon/icons.js.map +1 -0
  137. package/dist/js/core/components/ui/icon/icons.json +1 -0
  138. package/dist/js/core/components/ui/image/image.js +160 -0
  139. package/dist/js/core/components/ui/image/image.js.map +1 -0
  140. package/dist/js/core/components/ui/link/link.js +125 -0
  141. package/dist/js/core/components/ui/link/link.js.map +1 -0
  142. package/dist/js/core/components/ui/loader/loader.js +106 -0
  143. package/dist/js/core/components/ui/loader/loader.js.map +1 -0
  144. package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
  145. package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
  146. package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
  147. package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
  148. package/dist/js/core/components/ui/menu/menu-item.js +35 -0
  149. package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
  150. package/dist/js/core/components/ui/menu/menu.js +436 -0
  151. package/dist/js/core/components/ui/menu/menu.js.map +1 -0
  152. package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
  153. package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
  154. package/dist/js/core/components/ui/modal/modal-close.js +56 -0
  155. package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
  156. package/dist/js/core/components/ui/modal/modal-content.js +27 -0
  157. package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
  158. package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
  159. package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
  160. package/dist/js/core/components/ui/modal/modal-title.js +35 -0
  161. package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
  162. package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
  163. package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
  164. package/dist/js/core/components/ui/modal/modal.js +568 -0
  165. package/dist/js/core/components/ui/modal/modal.js.map +1 -0
  166. package/dist/js/core/components/ui/pop/pop.js +337 -0
  167. package/dist/js/core/components/ui/pop/pop.js.map +1 -0
  168. package/dist/js/core/components/ui/progress/progress.js +164 -0
  169. package/dist/js/core/components/ui/progress/progress.js.map +1 -0
  170. package/dist/js/core/components/ui/table/table-caption.js +29 -0
  171. package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
  172. package/dist/js/core/components/ui/table/table-tbody.js +41 -0
  173. package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
  174. package/dist/js/core/components/ui/table/table-td.js +69 -0
  175. package/dist/js/core/components/ui/table/table-td.js.map +1 -0
  176. package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
  177. package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
  178. package/dist/js/core/components/ui/table/table-th.js +80 -0
  179. package/dist/js/core/components/ui/table/table-th.js.map +1 -0
  180. package/dist/js/core/components/ui/table/table-thead.js +26 -0
  181. package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
  182. package/dist/js/core/components/ui/table/table-tr.js +67 -0
  183. package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
  184. package/dist/js/core/components/ui/table/table.js +106 -0
  185. package/dist/js/core/components/ui/table/table.js.map +1 -0
  186. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
  187. package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
  188. package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
  189. package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
  190. package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
  191. package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
  192. package/dist/js/core/components/ui/theme/theme.js +150 -0
  193. package/dist/js/core/components/ui/theme/theme.js.map +1 -0
  194. package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
  195. package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
  196. package/dist/js/core/components/ui/toast/toast-item.js +379 -0
  197. package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
  198. package/dist/js/core/components/ui/toast/toast.js +269 -0
  199. package/dist/js/core/components/ui/toast/toast.js.map +1 -0
  200. package/dist/js/core/components/ui/toast/types.js +2 -0
  201. package/dist/js/core/components/ui/toast/types.js.map +1 -0
  202. package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
  203. package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
  204. package/dist/js/core/components/ui/ui.js +41 -0
  205. package/dist/js/core/components/ui/ui.js.map +1 -0
  206. package/dist/js/core/core.js +14 -0
  207. package/dist/js/core/core.js.map +1 -0
  208. package/dist/js/core/decorators/Subscriber.js +9 -0
  209. package/dist/js/core/decorators/Subscriber.js.map +1 -0
  210. package/dist/js/core/decorators/api.js +559 -0
  211. package/dist/js/core/decorators/api.js.map +1 -0
  212. package/dist/js/core/decorators/lifecycle.js +67 -0
  213. package/dist/js/core/decorators/lifecycle.js.map +1 -0
  214. package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
  215. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
  216. package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
  217. package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
  218. package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
  219. package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
  220. package/dist/js/core/decorators/subscriber/bind.js +150 -0
  221. package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
  222. package/dist/js/core/decorators/subscriber/common.js +44 -0
  223. package/dist/js/core/decorators/subscriber/common.js.map +1 -0
  224. package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
  225. package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
  226. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
  227. package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
  228. package/dist/js/core/decorators/subscriber/handle.js +22 -0
  229. package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
  230. package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
  231. package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
  232. package/dist/js/core/decorators/subscriber/publish.js +108 -0
  233. package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
  234. package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
  235. package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
  236. package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
  237. package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
  238. package/dist/js/core/directives/DataProvider.js +127 -0
  239. package/dist/js/core/directives/DataProvider.js.map +1 -0
  240. package/dist/js/core/directives/Wording.js +221 -0
  241. package/dist/js/core/directives/Wording.js.map +1 -0
  242. package/dist/js/core/mixins/Fetcher.js +325 -0
  243. package/dist/js/core/mixins/Fetcher.js.map +1 -0
  244. package/dist/js/core/mixins/FormCheckable.js +313 -0
  245. package/dist/js/core/mixins/FormCheckable.js.map +1 -0
  246. package/dist/js/core/mixins/FormElement.js +304 -0
  247. package/dist/js/core/mixins/FormElement.js.map +1 -0
  248. package/dist/js/core/mixins/FormInput.js +82 -0
  249. package/dist/js/core/mixins/FormInput.js.map +1 -0
  250. package/dist/js/core/mixins/Subscriber.js +354 -0
  251. package/dist/js/core/mixins/Subscriber.js.map +1 -0
  252. package/dist/js/core/mixins/TemplatesContainer.js +70 -0
  253. package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
  254. package/dist/js/core/mixins/mixins.js +7 -0
  255. package/dist/js/core/mixins/mixins.js.map +1 -0
  256. package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
  257. package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
  258. package/dist/js/core/utils/Arrays.js +141 -0
  259. package/dist/js/core/utils/Arrays.js.map +1 -0
  260. package/dist/js/core/utils/DataBindObserver.js +265 -0
  261. package/dist/js/core/utils/DataBindObserver.js.map +1 -0
  262. package/dist/js/core/utils/Electron.js +14 -0
  263. package/dist/js/core/utils/Electron.js.map +1 -0
  264. package/dist/js/core/utils/Format.js +43 -0
  265. package/dist/js/core/utils/Format.js.map +1 -0
  266. package/dist/js/core/utils/HTML.js +248 -0
  267. package/dist/js/core/utils/HTML.js.map +1 -0
  268. package/dist/js/core/utils/LocationHandler.js +143 -0
  269. package/dist/js/core/utils/LocationHandler.js.map +1 -0
  270. package/dist/js/core/utils/Objects.js +111 -0
  271. package/dist/js/core/utils/Objects.js.map +1 -0
  272. package/dist/js/core/utils/PublisherProxy.js +946 -0
  273. package/dist/js/core/utils/PublisherProxy.js.map +1 -0
  274. package/dist/js/core/utils/Utils.js +19 -0
  275. package/dist/js/core/utils/Utils.js.map +1 -0
  276. package/dist/js/core/utils/aesCrypto.js +98 -0
  277. package/dist/js/core/utils/aesCrypto.js.map +1 -0
  278. package/dist/js/core/utils/api.js +574 -0
  279. package/dist/js/core/utils/api.js.map +1 -0
  280. package/dist/js/core/utils/dataProviderKey.js +64 -0
  281. package/dist/js/core/utils/dataProviderKey.js.map +1 -0
  282. package/dist/js/core/utils/endpoint.js +74 -0
  283. package/dist/js/core/utils/endpoint.js.map +1 -0
  284. package/dist/js/core/utils/route.js +149 -0
  285. package/dist/js/core/utils/route.js.map +1 -0
  286. package/dist/js/core/utils/url-pattern.js +3 -0
  287. package/dist/js/core/utils/url-pattern.js.map +1 -0
  288. package/dist/js/dataprovider.js +2 -0
  289. package/dist/js/dataprovider.js.map +1 -0
  290. package/dist/js/decorators.js +39 -0
  291. package/dist/js/decorators.js.map +1 -0
  292. package/dist/js/directives.js +30 -0
  293. package/dist/js/directives.js.map +1 -0
  294. package/dist/js/index.js +8 -0
  295. package/dist/js/index.js.map +1 -0
  296. package/dist/js/mixins.js +23 -0
  297. package/dist/js/mixins.js.map +1 -0
  298. package/dist/js/test-utils/TestUtils.js +10 -0
  299. package/dist/js/test-utils/TestUtils.js.map +1 -0
  300. package/dist/js/utils.js +41 -0
  301. package/dist/js/utils.js.map +1 -0
  302. package/dist/types/components.d.ts +5 -0
  303. package/dist/types/components.d.ts.map +1 -0
  304. package/dist/types/concorde-loaded.d.ts +2 -0
  305. package/dist/types/concorde-loaded.d.ts.map +1 -0
  306. package/dist/types/core/_types/endpoint.d.ts +5 -0
  307. package/dist/types/core/_types/endpoint.d.ts.map +1 -0
  308. package/dist/types/core/_types/key.d.ts +2 -0
  309. package/dist/types/core/_types/key.d.ts.map +1 -0
  310. package/dist/types/core/_types/types.d.ts +28 -0
  311. package/dist/types/core/_types/types.d.ts.map +1 -0
  312. package/dist/types/core/components/functional/date/date.d.ts +52 -0
  313. package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
  314. package/dist/types/core/components/functional/example/example.d.ts +15 -0
  315. package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
  316. package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
  317. package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
  318. package/dist/types/core/components/functional/functional.d.ts +17 -0
  319. package/dist/types/core/components/functional/functional.d.ts.map +1 -0
  320. package/dist/types/core/components/functional/if/if.d.ts +13 -0
  321. package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
  322. package/dist/types/core/components/functional/list/list.d.ts +149 -0
  323. package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
  324. package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
  325. package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
  326. package/dist/types/core/components/functional/queue/queue.d.ts +79 -0
  327. package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
  328. package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
  329. package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
  330. package/dist/types/core/components/functional/router/router.d.ts +46 -0
  331. package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
  332. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
  333. package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
  334. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
  335. package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
  336. package/dist/types/core/components/functional/sdui/sdui.d.ts +145 -0
  337. package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
  338. package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
  339. package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
  340. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
  341. package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
  342. package/dist/types/core/components/functional/states/states.d.ts +42 -0
  343. package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
  344. package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
  345. package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
  346. package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
  347. package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
  348. package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
  349. package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
  350. package/dist/types/core/components/functional/value/value.d.ts +8 -0
  351. package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
  352. package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
  353. package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
  354. package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
  355. package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
  356. package/dist/types/core/components/ui/_css/size.d.ts +3 -0
  357. package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
  358. package/dist/types/core/components/ui/_css/type.d.ts +3 -0
  359. package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
  360. package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
  361. package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
  362. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
  363. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
  364. package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
  365. package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
  366. package/dist/types/core/components/ui/button/button.d.ts +180 -0
  367. package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
  368. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
  369. package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
  370. package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
  371. package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
  372. package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
  373. package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
  374. package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
  375. package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
  376. package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
  377. package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
  378. package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
  379. package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
  380. package/dist/types/core/components/ui/card/card.d.ts +13 -0
  381. package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
  382. package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
  383. package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
  384. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
  385. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
  386. package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
  387. package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
  388. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
  389. package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
  390. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
  391. package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
  392. package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
  393. package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
  394. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
  395. package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
  396. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
  397. package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
  398. package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
  399. package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
  400. package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
  401. package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
  402. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
  403. package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
  404. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
  405. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
  406. package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
  407. package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
  408. package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
  409. package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
  410. package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
  411. package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
  412. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
  413. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
  414. package/dist/types/core/components/ui/group/group.d.ts +17 -0
  415. package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
  416. package/dist/types/core/components/ui/icon/icon.d.ts +28 -0
  417. package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
  418. package/dist/types/core/components/ui/icon/icons.d.ts +11 -0
  419. package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
  420. package/dist/types/core/components/ui/image/image.d.ts +16 -0
  421. package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
  422. package/dist/types/core/components/ui/link/link.d.ts +30 -0
  423. package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
  424. package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
  425. package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
  426. package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
  427. package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
  428. package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
  429. package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
  430. package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
  431. package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
  432. package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
  433. package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
  434. package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
  435. package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
  436. package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
  437. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
  438. package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
  439. package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
  440. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
  441. package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
  442. package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
  443. package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
  444. package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
  445. package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
  446. package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
  447. package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
  448. package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
  449. package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
  450. package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
  451. package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
  452. package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
  453. package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
  454. package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
  455. package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
  456. package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
  457. package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
  458. package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
  459. package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
  460. package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
  461. package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
  462. package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
  463. package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
  464. package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
  465. package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
  466. package/dist/types/core/components/ui/table/table.d.ts +18 -0
  467. package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
  468. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
  469. package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
  470. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
  471. package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
  472. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
  473. package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
  474. package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
  475. package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
  476. package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
  477. package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
  478. package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
  479. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
  480. package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
  481. package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
  482. package/dist/types/core/components/ui/toast/types.d.ts +12 -0
  483. package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
  484. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
  485. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
  486. package/dist/types/core/components/ui/ui.d.ts +35 -0
  487. package/dist/types/core/components/ui/ui.d.ts.map +1 -0
  488. package/dist/types/core/core.d.ts +5 -0
  489. package/dist/types/core/core.d.ts.map +1 -0
  490. package/dist/types/core/decorators/Subscriber.d.ts +11 -0
  491. package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
  492. package/dist/types/core/decorators/api.d.ts +106 -0
  493. package/dist/types/core/decorators/api.d.ts.map +1 -0
  494. package/dist/types/core/decorators/lifecycle.d.ts +19 -0
  495. package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
  496. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
  497. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
  498. package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
  499. package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
  500. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
  501. package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
  502. package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
  503. package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
  504. package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
  505. package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
  506. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
  507. package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
  508. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
  509. package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
  510. package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
  511. package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
  512. package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
  513. package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
  514. package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
  515. package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
  516. package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
  517. package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
  518. package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
  519. package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
  520. package/dist/types/core/directives/DataProvider.d.ts +45 -0
  521. package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
  522. package/dist/types/core/directives/Wording.d.ts +44 -0
  523. package/dist/types/core/directives/Wording.d.ts.map +1 -0
  524. package/dist/types/core/mixins/Fetcher.d.ts +108 -0
  525. package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
  526. package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
  527. package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
  528. package/dist/types/core/mixins/FormElement.d.ts +37 -0
  529. package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
  530. package/dist/types/core/mixins/FormInput.d.ts +79 -0
  531. package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
  532. package/dist/types/core/mixins/Subscriber.d.ts +38 -0
  533. package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
  534. package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
  535. package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
  536. package/dist/types/core/mixins/mixins.d.ts +7 -0
  537. package/dist/types/core/mixins/mixins.d.ts.map +1 -0
  538. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
  539. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
  540. package/dist/types/core/utils/Arrays.d.ts +98 -0
  541. package/dist/types/core/utils/Arrays.d.ts.map +1 -0
  542. package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
  543. package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
  544. package/dist/types/core/utils/Electron.d.ts +8 -0
  545. package/dist/types/core/utils/Electron.d.ts.map +1 -0
  546. package/dist/types/core/utils/Format.d.ts +13 -0
  547. package/dist/types/core/utils/Format.d.ts.map +1 -0
  548. package/dist/types/core/utils/HTML.d.ts +64 -0
  549. package/dist/types/core/utils/HTML.d.ts.map +1 -0
  550. package/dist/types/core/utils/LocationHandler.d.ts +48 -0
  551. package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
  552. package/dist/types/core/utils/Objects.d.ts +31 -0
  553. package/dist/types/core/utils/Objects.d.ts.map +1 -0
  554. package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
  555. package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
  556. package/dist/types/core/utils/Utils.d.ts +6 -0
  557. package/dist/types/core/utils/Utils.d.ts.map +1 -0
  558. package/dist/types/core/utils/aesCrypto.d.ts +53 -0
  559. package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
  560. package/dist/types/core/utils/api.d.ts +173 -0
  561. package/dist/types/core/utils/api.d.ts.map +1 -0
  562. package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
  563. package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
  564. package/dist/types/core/utils/endpoint.d.ts +37 -0
  565. package/dist/types/core/utils/endpoint.d.ts.map +1 -0
  566. package/dist/types/core/utils/route.d.ts +41 -0
  567. package/dist/types/core/utils/route.d.ts.map +1 -0
  568. package/dist/types/core/utils/url-pattern.d.ts +3 -0
  569. package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
  570. package/dist/types/dataprovider.d.ts +2 -0
  571. package/dist/types/dataprovider.d.ts.map +1 -0
  572. package/dist/types/decorators.d.ts +28 -0
  573. package/dist/types/decorators.d.ts.map +1 -0
  574. package/dist/types/directives.d.ts +21 -0
  575. package/dist/types/directives.d.ts.map +1 -0
  576. package/dist/types/index.d.ts +8 -0
  577. package/dist/types/index.d.ts.map +1 -0
  578. package/dist/types/mixins.d.ts +204 -0
  579. package/dist/types/mixins.d.ts.map +1 -0
  580. package/dist/types/test-utils/TestUtils.d.ts +4 -0
  581. package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
  582. package/dist/types/utils.d.ts +17 -0
  583. package/dist/types/utils.d.ts.map +1 -0
  584. package/docs/assets/index-BEgZEIbv.js +11196 -0
  585. package/docs/docs-mock-api-sw.js +19 -0
  586. package/docs/docs-mock-api-sw.js.map +2 -2
  587. package/docs/index.html +1 -1
  588. package/docs/src/docs/_core-concept/dataFlow.md +9 -3
  589. package/docs/src/docs/_decorators/bind.md +2 -2
  590. package/docs/src/docs/_decorators/get.md +13 -4
  591. package/docs/src/docs/_decorators/handle.md +5 -1
  592. package/docs/src/docs/_decorators/on-assign.md +2 -0
  593. package/docs/src/docs/_decorators/patch.md +45 -0
  594. package/docs/src/docs/_decorators/post.md +93 -0
  595. package/docs/src/docs/_decorators/publish.md +1 -1
  596. package/docs/src/docs/_decorators/put.md +43 -0
  597. package/docs/src/docs/_decorators/subscribe.md +4 -1
  598. package/docs/src/docs/_directives/sub.md +1 -1
  599. package/docs/src/docs/_getting-started/my-first-component.md +1 -1
  600. package/docs/src/docs/_misc/api-configuration.md +3 -1
  601. package/docs/src/docs/_misc/dataProviderKey.md +2 -2
  602. package/docs/src/docs/_misc/dynamic-path.md +71 -0
  603. package/docs/src/docs/_misc/endpoint.md +5 -3
  604. package/docs/src/docs/search/docs-search.json +540 -15
  605. package/docs/src/tsconfig.json +377 -353
  606. package/gitlab/job_github_mirror.sh +39 -0
  607. package/index.html +0 -1
  608. package/package.json +1084 -356
  609. package/public/docs-mock-api-sw.js +19 -0
  610. package/public/docs-mock-api-sw.js.map +2 -2
  611. package/scripts/github-export.mjs +150 -0
  612. package/scripts/post-build.mjs +43 -0
  613. package/scripts/pre-build.mjs +32 -4
  614. package/scripts/pre-publish.mjs +2 -0
  615. package/src/core/components/functional/example/example.ts +3 -3
  616. package/src/core/components/functional/queue/queue.ts +2 -2
  617. package/src/core/components/ui/icon/icon.ts +17 -2
  618. package/src/core/components/ui/menu/menu.ts +12 -3
  619. package/src/core/components/ui/modal/modal.ts +1 -1
  620. package/src/core/decorators/Subscriber.ts +1 -0
  621. package/src/core/decorators/api.post.spec.ts +293 -0
  622. package/src/core/decorators/api.spec.ts +6 -6
  623. package/src/core/decorators/api.ts +641 -12
  624. package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +197 -0
  625. package/src/core/decorators/subscriber/ancestorAttribute.ts +40 -7
  626. package/src/core/decorators/subscriber/autoSubscribe.ts +7 -3
  627. package/src/core/decorators/subscriber/bind.ts +13 -5
  628. package/src/core/decorators/subscriber/dynamicPath.spec.ts +53 -0
  629. package/src/core/decorators/subscriber/dynamicPath.ts +23 -1
  630. package/src/core/decorators/subscriber/handle.ts +3 -1
  631. package/src/core/decorators/subscriber/onAssign.ts +10 -2
  632. package/src/core/decorators/subscriber/publish.ts +12 -2
  633. package/src/core/mixins/Fetcher.ts +12 -6
  634. package/src/core/utils/AncestorAttributeObserver.ts +199 -0
  635. package/src/core/utils/HTML.ts +3 -11
  636. package/src/core/utils/PublisherProxy.ts +123 -48
  637. package/src/core/utils/api.ts +82 -13
  638. package/src/core/utils/dpOptions.spec.ts +56 -0
  639. package/src/core/utils/endpoint.ts +3 -3
  640. package/src/css.d.ts +19 -0
  641. package/src/decorators.ts +17 -1
  642. package/src/directives.ts +3 -2
  643. package/src/docs/_core-concept/dataFlow.md +9 -3
  644. package/src/docs/_decorators/ancestor-attribute.md +56 -8
  645. package/src/docs/_decorators/bind.md +2 -2
  646. package/src/docs/_decorators/get.md +13 -4
  647. package/src/docs/_decorators/handle.md +5 -1
  648. package/src/docs/_decorators/on-assign.md +2 -0
  649. package/src/docs/_decorators/patch.md +45 -0
  650. package/src/docs/_decorators/post.md +93 -0
  651. package/src/docs/_decorators/publish.md +1 -1
  652. package/src/docs/_decorators/put.md +43 -0
  653. package/src/docs/_decorators/subscribe.md +4 -1
  654. package/src/docs/_directives/sub.md +1 -1
  655. package/src/docs/_getting-started/my-first-component.md +1 -1
  656. package/src/docs/_misc/api-configuration.md +3 -1
  657. package/src/docs/_misc/dataProviderKey.md +2 -2
  658. package/src/docs/_misc/dynamic-path.md +71 -0
  659. package/src/docs/_misc/endpoint.md +5 -3
  660. package/src/docs/components/docs-demo-sources.ts +115 -4
  661. package/src/docs/components/docs-lit-demo-raw.ts +2 -26
  662. package/src/docs/components/docs-lit-demo.ts +9 -42
  663. package/src/docs/components/docs-source-excerpt.ts +53 -0
  664. package/src/docs/components/docs-source-link.ts +24 -8
  665. package/src/docs/components/docs-source-raw.ts +34 -0
  666. package/src/docs/example/decorators-demo-geo.ts +2 -2
  667. package/src/docs/example/decorators-demo-post.ts +249 -0
  668. package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +5 -5
  669. package/src/docs/example/decorators-demo.ts +165 -8
  670. package/src/docs/example/docs-api-config-demos.ts +5 -5
  671. package/src/docs/mock-api/router.ts +20 -0
  672. package/src/docs/navigation/navigation.ts +16 -0
  673. package/src/docs/search/docs-search.json +602 -17
  674. package/src/tsconfig.declarations.json +22 -0
  675. package/src/tsconfig.emit.json +23 -0
  676. package/src/tsconfig.json +3 -261
  677. package/src/tsconfig.tsbuildinfo +1 -1
  678. package/vite.config.mts +1 -1
  679. package/docs/assets/index-CwtPzTFq.js +0 -7508
@@ -0,0 +1,128 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html, LitElement, css } from "lit";
8
+ import { styleMap } from "lit/directives/style-map.js";
9
+ import { customElement, property, state, queryAssignedNodes, } from "lit/decorators.js";
10
+ import { label, description, } from "@supersoniks/concorde/core/components/ui/form/css/form-control";
11
+ import { fontSize } from "@supersoniks/concorde/core/components/ui/_css/size";
12
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
13
+ const tagName = "sonic-group";
14
+ let Group = class Group extends LitElement {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.alignItems = "center";
18
+ this.hasDescription = false;
19
+ this.hasLabel = false;
20
+ }
21
+ updated() {
22
+ const children = this.querySelectorAll("sonic-input, sonic-button, sonic-select");
23
+ const nbChildren = children.length;
24
+ if (nbChildren > 1) {
25
+ children.forEach((item, index) => {
26
+ const htmlElement = item;
27
+ if (index === 0) {
28
+ htmlElement.style.setProperty("--sc-item-rounded-tr", "0");
29
+ htmlElement.style.setProperty("--sc-item-rounded-br", "0");
30
+ }
31
+ else if (index === nbChildren - 1) {
32
+ htmlElement.style.setProperty("--sc-item-rounded-tl", "0");
33
+ htmlElement.style.setProperty("--sc-item-rounded-bl", "0");
34
+ }
35
+ else {
36
+ htmlElement.style.setProperty("--sc-item-rounded-tr", "0");
37
+ htmlElement.style.setProperty("--sc-item-rounded-br", "0");
38
+ htmlElement.style.setProperty("--sc-item-rounded-tl", "0");
39
+ htmlElement.style.setProperty("--sc-item-rounded-bl", "0");
40
+ }
41
+ });
42
+ }
43
+ }
44
+ connectedCallback() {
45
+ super.connectedCallback();
46
+ this.hasSlotOrProps();
47
+ }
48
+ willUpdate(changedProperties) {
49
+ this.hasSlotOrProps();
50
+ super.willUpdate(changedProperties);
51
+ }
52
+ hasSlotOrProps() {
53
+ this.hasLabel = this.label || this.slotLabelNodes?.length ? true : false;
54
+ this.hasDescription =
55
+ this.description || this.slotDescriptionNodes?.length ? true : false;
56
+ }
57
+ render() {
58
+ const slotStyle = {
59
+ alignItems: this.alignItems,
60
+ };
61
+ return html `<span class="${this.hasLabel ? "form-label" : "hidden"}"
62
+ >${this.label ? unsafeHTML(this.label /*+ labelStarSuffix*/) : ""}<slot
63
+ name="label"
64
+ @slotchange=${this.hasSlotOrProps}
65
+ ></slot
66
+ ></span>
67
+ <slot class="main-slot" style=${styleMap(slotStyle)}></slot>
68
+ <slot
69
+ name="description"
70
+ @slotchange=${this.hasSlotOrProps}
71
+ class="${this.hasDescription ? "form-description" : "hidden"}"
72
+ >
73
+ ${this.description ? html `${unsafeHTML(this.description)}` : ""}
74
+ </slot>`;
75
+ }
76
+ };
77
+ Group.styles = [
78
+ fontSize,
79
+ label,
80
+ description,
81
+ css `
82
+ :host {
83
+ display: inline-block;
84
+ vertical-align: middle;
85
+ }
86
+
87
+ .main-slot {
88
+ width: 100%;
89
+ display: flex;
90
+ min-width: 0;
91
+ }
92
+ .hidden {
93
+ display: none;
94
+ }
95
+
96
+ ::slotted(sonic-button),
97
+ ::slotted(sonic-input),
98
+ ::slotted(sonic-select) {
99
+ flex-grow: 1;
100
+ }
101
+ `,
102
+ ];
103
+ __decorate([
104
+ property({ type: String })
105
+ ], Group.prototype, "alignItems", void 0);
106
+ __decorate([
107
+ property({ type: String })
108
+ ], Group.prototype, "label", void 0);
109
+ __decorate([
110
+ property({ type: String })
111
+ ], Group.prototype, "description", void 0);
112
+ __decorate([
113
+ queryAssignedNodes({ slot: "label", flatten: true })
114
+ ], Group.prototype, "slotLabelNodes", void 0);
115
+ __decorate([
116
+ queryAssignedNodes({ slot: "description", flatten: true })
117
+ ], Group.prototype, "slotDescriptionNodes", void 0);
118
+ __decorate([
119
+ state()
120
+ ], Group.prototype, "hasDescription", void 0);
121
+ __decorate([
122
+ state()
123
+ ], Group.prototype, "hasLabel", void 0);
124
+ Group = __decorate([
125
+ customElement(tagName)
126
+ ], Group);
127
+ export { Group };
128
+ //# sourceMappingURL=group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/group/group.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,KAAK,EACL,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,EACL,WAAW,GACZ,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,OAAO,GAAG,aAAa,CAAC;AAGvB,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU;IAA9B;;QACuB,eAAU,GAAG,QAAQ,CAAC;QASzC,mBAAc,GAAG,KAAK,CAAC;QACvB,aAAQ,GAAG,KAAK,CAAC;IA0F5B,CAAC;IA7DC,OAAO;QACL,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CACpC,yCAAyC,CAC1C,CAAC;QACF,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;QAEnC,IAAI,UAAU,GAAG,CAAC,EAA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E,OAAO,EAAE,IAAI,EAAE,CAAC;6CACxB;AAG7B;IADC,kBAAkB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACxB;AAE1B;IAAR,KAAK,EAAE;6CAAwB;AACvB;IAAR,KAAK,EAAE;uCAAkB;AAXf,KAAK;IADjB,aAAa,CAAC,OAAO,CAAC;GACV,KAAK,CAqGjB"}
@@ -0,0 +1,129 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import Icons from "@supersoniks/concorde/core/components/ui/icon/icons";
8
+ import { css, LitElement, nothing, } from "lit";
9
+ import { customElement, property as propertyDecorator, state, } from "lit/decorators.js";
10
+ const property = (options) => {
11
+ const result = propertyDecorator(options);
12
+ return result;
13
+ };
14
+ const tagName = "sonic-icon";
15
+ /**
16
+ * Afficher l'icone choisie parmis une liste prédéfinie dans icons.json
17
+ * les tailles suivantes sont disponible via l'attribut *size* : 2xs,xs,sm,"",lg,xl,2xl
18
+ */
19
+ let Icon = class Icon extends LitElement {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.iconText = "";
23
+ /**
24
+ * Nom identifiant l'icone ex : *info*
25
+ */
26
+ this.name = "";
27
+ /**
28
+ * prefix de l'icone si nécessaire ex: *solid*. La valeur par défaut est "" qui est mappée sur *regular*
29
+ */
30
+ this.prefix = "";
31
+ /**
32
+ * library de l'icone url vers un dossier en lign conenant des icônes
33
+ */
34
+ this.library = "";
35
+ }
36
+ async updateIcon() {
37
+ this.iconText = await Icons.default.get({
38
+ name: this.name,
39
+ prefix: this.prefix,
40
+ library: this.library,
41
+ });
42
+ }
43
+ connectedCallback() {
44
+ this.setAttribute("aria-hidden", "true");
45
+ super.connectedCallback();
46
+ }
47
+ willUpdate(changedProperties) {
48
+ if (changedProperties.has("name") ||
49
+ changedProperties.has("prefix") ||
50
+ changedProperties.has("library")) {
51
+ this.updateIcon();
52
+ }
53
+ super.willUpdate(changedProperties);
54
+ }
55
+ render() {
56
+ if (!this.iconText) {
57
+ return nothing;
58
+ }
59
+ return this.iconText;
60
+ }
61
+ };
62
+ Icon.styles = css `
63
+ :host {
64
+ line-height: 0.1em;
65
+ width: fit-content;
66
+ height: fit-content;
67
+ vertical-align: -0.125em;
68
+ flex-shrink: 0;
69
+ }
70
+
71
+ svg {
72
+ height: var(--_sc-icon-size, 1em);
73
+ width: calc(var(--_sc-icon-size, 1em) * 1.4);
74
+ overflow: visible;
75
+ }
76
+
77
+ svg:not([fill="none"]) {
78
+ fill: currentColor;
79
+ }
80
+
81
+ svg[fill="none"] {
82
+ stroke-width: 2;
83
+ }
84
+
85
+ :host([size="2xs"]) svg {
86
+ --_sc-icon-size: 0.625em;
87
+ }
88
+
89
+ :host([size="xs"]) svg {
90
+ --_sc-icon-size: 0.75em;
91
+ }
92
+
93
+ :host([size="sm"]) svg {
94
+ --_sc-icon-size: 0.875em;
95
+ }
96
+
97
+ :host([size="lg"]) svg {
98
+ --_sc-icon-size: 1.25em;
99
+ }
100
+
101
+ :host([size="xl"]) svg {
102
+ --_sc-icon-size: 1.5em;
103
+ }
104
+
105
+ :host([size="2xl"]) svg {
106
+ --_sc-icon-size: 2em;
107
+ }
108
+
109
+ :host([size="3xl"]) svg {
110
+ --_sc-icon-size: 2.8em;
111
+ }
112
+ `;
113
+ __decorate([
114
+ state()
115
+ ], Icon.prototype, "iconText", void 0);
116
+ __decorate([
117
+ property({ type: String })
118
+ ], Icon.prototype, "name", void 0);
119
+ __decorate([
120
+ property({ type: String })
121
+ ], Icon.prototype, "prefix", void 0);
122
+ __decorate([
123
+ property({ type: String })
124
+ ], Icon.prototype, "library", void 0);
125
+ Icon = __decorate([
126
+ customElement(tagName)
127
+ ], Icon);
128
+ export { Icon };
129
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/icon/icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,KAAK,MAAM,qDAAqD,CAAC;AACxE,OAAO,EACL,GAAG,EACH,UAAU,EACV,OAAO,GAGR,MAAM,KAAK,CAAC;AACb,OAAO,EACL,aAAa,EACb,QAAQ,IAAI,iBAAiB,EAC7B,KAAK,GACN,MAAM,mBAAmB,CAAC;AAI3B,MAAM,QAAQ,GAAG,CAAC,OAA6B,EAAqB,EAAE;IACpE,MAAM,MAAM,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,YAAY,CAAC;AAC7B;;;GAGG;AAEI,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,UAAU;IAA7B;;QA4DI,aAAQ,GAAyD,EAAE,CAAC;QAE7E;;WAEG;QACyB,SAAI,GAAG,EAAE,CAAC;QAEtC;;WAEG;QACyB,WAAM,GAAG,EAAE,CAAC;QAExC;;WAEG;QACyB,YAAO,GAAG,EAAE,CAAC;IAuB3C,CAAC;IA9CC,KAAK,CAAC,UAAU;QACd,IAAI,CAAC,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;YACtC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC,CAAC;IACL,CAAC;IAmBD,iBAAiB;QACf,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QACzC,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC5B,CAAC;IACD,UAAU,CAAC,iBAAiC;QAC1C,IACE,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC;YAC7B,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC/B,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,EAChC,CAAC;YACD,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,CAAC;QACD,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;;AAhGM,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDlB,AAlDY,CAkDX;AASO;IAAR,KAAK,EAAE;sCAAqE;AAKjD;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kCAAW;AAKV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCAAa;AAKZ;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAAc;AA3E9B,IAAI;IADhB,aAAa,CAAC,OAAO,CAAC;GACV,IAAI,CAkGhB"}
@@ -0,0 +1,163 @@
1
+ var _a;
2
+ // ici on désactive un regle de eslint exceptionnelement pour ce fichier
3
+ /* eslint no-async-promise-executor: 0 */ // --> OFF
4
+ import icons from "@supersoniks/concorde/core/components/ui/icon/icons.json";
5
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
6
+ import { log } from "@supersoniks/concorde/core/utils/api";
7
+ /**
8
+ * Ce tableau static permet de ne pas appeler plusieurs fois le même service lors d'appel concurrents en GET.
9
+ */
10
+ const loadingGetPromises = new Map();
11
+ /**
12
+ * Les librairies en ligne.
13
+ * Pour chaque identifiant de librairie a une template d'url de chargement
14
+ * Les propriétés name et prefix de sonic-icon servent à remplir le template.
15
+ * la propriété library de sonic-icon correspond à une clef de librairies.
16
+ */
17
+ const libraries = {
18
+ heroicons: {
19
+ url: "https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",
20
+ defaultPrefix: "outline",
21
+ },
22
+ iconoir: {
23
+ url: "https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg",
24
+ },
25
+ feathers: {
26
+ url: "https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg",
27
+ },
28
+ lucide: {
29
+ url: "https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg",
30
+ },
31
+ material: {
32
+ url: "https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",
33
+ defaultPrefix: "regular",
34
+ },
35
+ fontAwesome: {
36
+ url: "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",
37
+ defaultPrefix: "regular",
38
+ },
39
+ custom: { url: "", defaultPrefix: "" },
40
+ };
41
+ let hasEnabledCustomLibrary = false;
42
+ function enableCustomLibrary() {
43
+ if (hasEnabledCustomLibrary)
44
+ return;
45
+ libraries.custom.url =
46
+ document
47
+ .querySelector("[customIconLibraryPath]")
48
+ ?.getAttribute("customIconLibraryPath") || "";
49
+ libraries.custom.defaultPrefix =
50
+ document
51
+ .querySelector("[customIconDefaultPrefix]")
52
+ ?.getAttribute("customIconDefaultPrefix") || "";
53
+ if (libraries.custom.url) {
54
+ hasEnabledCustomLibrary = true;
55
+ }
56
+ }
57
+ const iconCachStr = sessionStorage.getItem("sonicIconsCache");
58
+ const iconCache = iconCachStr
59
+ ? JSON.parse(iconCachStr)
60
+ : { icons: {}, names: [] };
61
+ const iconCacheMaxSize = 100;
62
+ class Icons {
63
+ }
64
+ _a = Icons;
65
+ Icons.default = {
66
+ get: async (params) => {
67
+ const library = params.library;
68
+ if (!params.name)
69
+ return "";
70
+ const name = params.name;
71
+ const iconsAsRecord = icons;
72
+ /**
73
+ * SVGS en ligne
74
+ */
75
+ if (library == "custom") {
76
+ enableCustomLibrary();
77
+ }
78
+ if (library && library in libraries) {
79
+ const libraryItem = libraries[library];
80
+ const prefix = params.prefix || libraryItem.defaultPrefix || "";
81
+ const libIcons = iconsAsRecord[library] || {};
82
+ iconsAsRecord[library] = libIcons;
83
+ const libIconsKey = prefix + "-" + name;
84
+ /**
85
+ * Si l'icone a déjà été chargée on ne la recharge pas
86
+ */
87
+ if (libIcons[libIconsKey])
88
+ return unsafeHTML(libIcons[libIconsKey]);
89
+ const url = (libraryItem.url || "")
90
+ .replace("$prefix", prefix)
91
+ .replace("$name", name);
92
+ /**
93
+ * MiniCache de session
94
+ */
95
+ if (iconCache.icons[url]) {
96
+ const cached = iconCache.icons[url];
97
+ const isSvgCached = /^\s*<svg[\s>]/i.test(cached || "");
98
+ if (isSvgCached) {
99
+ libIcons[libIconsKey] = cached;
100
+ return unsafeHTML(cached);
101
+ }
102
+ delete iconCache.icons[url];
103
+ }
104
+ /**
105
+ * on utilise une promise mutualisée pour ne pas faire plusieurs appels concurents d'une même icone
106
+ */
107
+ if (!loadingGetPromises.has(url)) {
108
+ const promise = new Promise(async (resolve) => {
109
+ try {
110
+ const result = await fetch(url);
111
+ if (!result.ok) {
112
+ resolve("");
113
+ return;
114
+ }
115
+ try {
116
+ // Vérifie le type de contenu pour éviter un fallback HTML (ex: service worker)
117
+ const contentType = result.headers.get("content-type") || "";
118
+ if (!contentType.includes("image/svg+xml") &&
119
+ !contentType.includes("svg")) {
120
+ resolve("");
121
+ return;
122
+ }
123
+ const text = await result.text();
124
+ // Vérifie que le contenu commence bien par une balise <svg ...>
125
+ const isSvg = /^\s*<svg[\s>]/i.test(text);
126
+ resolve(isSvg ? text : "");
127
+ }
128
+ catch (e) {
129
+ resolve("");
130
+ }
131
+ }
132
+ catch (error) {
133
+ log("concorde icon loading error", params);
134
+ resolve("");
135
+ }
136
+ });
137
+ loadingGetPromises.set(url, promise);
138
+ }
139
+ /**
140
+ * Chargement de l'icone.
141
+ */
142
+ const result = await loadingGetPromises.get(url);
143
+ loadingGetPromises.delete(url);
144
+ libIcons[libIconsKey] = result || "";
145
+ if (result && /^\s*<svg[\s>]/i.test(result)) {
146
+ iconCache.icons[url] = result;
147
+ iconCache.names.push(url);
148
+ }
149
+ if (iconCache.names.length > iconCacheMaxSize) {
150
+ const key = iconCache.names.shift();
151
+ delete iconCache.icons[key];
152
+ }
153
+ sessionStorage.setItem("sonicIconsCache", JSON.stringify(iconCache));
154
+ return result ? unsafeHTML(result) : "";
155
+ }
156
+ /**
157
+ * svgs "locaux"
158
+ */
159
+ return unsafeHTML(iconsAsRecord["core"][params.name] || "");
160
+ },
161
+ };
162
+ export default Icons;
163
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/icon/icons.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,yCAAyC,CAAC,UAAU;AACpD,OAAO,KAAK,MAAM,0DAA0D,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAE3D;;GAEG;AACH,MAAM,kBAAkB,GAAiC,IAAI,GAAG,EAAE,CAAC;AAEnE;;;;;GAKG;AAEH,MAAM,SAAS,GAAG;IAChB,SAAS,EAAE;QACT,GAAG,EAAE,mEAAmE;QACxE,aAAa,EAAE,SAAS;KACzB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,sEAAsE;KAC5E;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,wEAAwE;KAC9E;IACD,MAAM,EAAE;QACN,GAAG,EAAE,oEAAoE;KAC1E;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,8EAA8E;QACnF,aAA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D,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAE/B,QAAQ,CAAC,WAAW,CAAC,GAAG,MAAM,IAAI,EAAE,CAAC;YACrC,IAAI,MAAM,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC5C,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;gBAC9B,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC5B,CAAC;YACD,IAAI,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,gBAAgB,EAAE,CAAC;gBAC9C,MAAM,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;gBACpC,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,CAAC;YACD,cAAc,CAAC,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;YACrE,OAAO,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1C,CAAC;QACD;;WAEG;QAEH,OAAO,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF,AAlGa,CAkGZ;eAnGiB,KAAK"}
@@ -0,0 +1 @@
1
+ { "core": { "cancel": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "check-circled-outline": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M7 12.5L10 15.5L17 8.5\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "check": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M5 13L9 17L19 7\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "emoji-puzzled": "<svg width=\"24px\" height=\"24px\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" ><path d=\"M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z\" fill=\"#000\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg>", "info-empty": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12 11.5V16.5\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 7.51L12.01 7.49889\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "loader": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-loader\"><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"6\"></line><line x1=\"12\" y1=\"18\" x2=\"12\" y2=\"22\"></line><line x1=\"4.93\" y1=\"4.93\" x2=\"7.76\" y2=\"7.76\"></line><line x1=\"16.24\" y1=\"16.24\" x2=\"19.07\" y2=\"19.07\"></line><line x1=\"2\" y1=\"12\" x2=\"6\" y2=\"12\"></line><line x1=\"18\" y1=\"12\" x2=\"22\" y2=\"12\"></line><line x1=\"4.93\" y1=\"19.07\" x2=\"7.76\" y2=\"16.24\"></line><line x1=\"16.24\" y1=\"7.76\" x2=\"19.07\" y2=\"4.93\"></line></svg>", "minus-small": "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"w-6 h-6\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M18 12H6\" />\n</svg>\n", "more-horiz": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "more-vert": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "nav-arrow-down": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M6 9L12 15L18 9\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", "warning-circled-outline": "<svg width=\"24\" height=\"24\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12 7L12 13\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 17.01L12.01 16.9989\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n" } }
@@ -0,0 +1,160 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html, LitElement, css } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ import { styleMap } from "lit/directives/style-map.js";
10
+ const tagName = "sonic-image";
11
+ let Image = class Image extends LitElement {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.rounded = "none";
15
+ this.src = "";
16
+ this.alt = "";
17
+ this.loading = "lazy";
18
+ this.ratio = "auto";
19
+ this.objectPosition = "center center";
20
+ this.imageRendering = "auto";
21
+ this.cover = false;
22
+ }
23
+ firstUpdated(changedProperties) {
24
+ if (this.transition) {
25
+ const img = this.shadowRoot?.querySelector("img");
26
+ if (!img)
27
+ return;
28
+ img.onload = function () {
29
+ img.classList.add("loaded");
30
+ };
31
+ }
32
+ super.firstUpdated(changedProperties);
33
+ }
34
+ render() {
35
+ const imgStyles = {
36
+ aspectRatio: this.cover ? "auto" : this.ratio,
37
+ imageRendering: this.imageRendering,
38
+ objectPosition: this.objectPosition,
39
+ };
40
+ return html `<div part="image">
41
+ <picture part="picture"
42
+ ><img
43
+ part="img"
44
+ src="${this.src}"
45
+ loading="${this.loading}"
46
+ alt="${this.alt}"
47
+ style=${styleMap(imgStyles)}
48
+ /></picture>
49
+ </div>`;
50
+ }
51
+ };
52
+ Image.styles = [
53
+ css `
54
+ :host {
55
+ --sc-img-radius: 0;
56
+ --sc-img-bg: var(--sc-placeholder-bg, rgba(12, 12, 12, 0.05));
57
+ border-radius: var(--sc-img-radius);
58
+ display: block;
59
+ width: 100%;
60
+ background: var(--sc-img-bg);
61
+ }
62
+
63
+ img {
64
+ width: 100%;
65
+ vertical-align: middle;
66
+ object-fit: cover;
67
+ }
68
+
69
+ img[src=""] {
70
+ visibility: hidden;
71
+ }
72
+
73
+ /*Rounded*/
74
+ :host([rounded]) {
75
+ --sc-img-radius: var(--sc-rounded);
76
+ overflow: hidden;
77
+ }
78
+ :host([rounded="sm"]) {
79
+ --sc-img-radius: var(--sc-rounded-sm);
80
+ }
81
+
82
+ :host([rounded="md"]) {
83
+ --sc-img-radius: var(--sc-rounded-md);
84
+ }
85
+
86
+ :host([rounded="lg"]) {
87
+ --sc-img-radius: var(--sc-rounded-lg);
88
+ }
89
+ :host([rounded="xl"]) {
90
+ --sc-img-radius: var(--sc-rounded-xl);
91
+ }
92
+
93
+ /*Cercle*/
94
+ :host([rounded="full"]) {
95
+ --sc-img-radius: 50% !important;
96
+ }
97
+ :host([rounded="none"]) {
98
+ --sc-img-radius: 0 !important;
99
+ }
100
+
101
+ :host([cover]),
102
+ :host([cover]) > div,
103
+ :host([cover]) img {
104
+ position: absolute !important;
105
+ left: 0 !important;
106
+ top: 0 !important;
107
+ right: 0 !important;
108
+ bottom: 0 !important;
109
+ height: 100% !important;
110
+ width: 100% !important;
111
+ }
112
+
113
+ :host([transition]) img {
114
+ opacity: 0;
115
+ transition: 0.25s;
116
+ }
117
+
118
+ :host([transition="fade-scale-out"]) img {
119
+ scale: 1.08;
120
+ transition: opacity 0.3s linear,
121
+ scale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
122
+ }
123
+ :host([transition]) img.loaded {
124
+ opacity: 1;
125
+ scale: 1;
126
+ }
127
+ `,
128
+ ];
129
+ __decorate([
130
+ property({ type: String })
131
+ ], Image.prototype, "rounded", void 0);
132
+ __decorate([
133
+ property({ type: String })
134
+ ], Image.prototype, "src", void 0);
135
+ __decorate([
136
+ property({ type: String })
137
+ ], Image.prototype, "alt", void 0);
138
+ __decorate([
139
+ property({ type: String })
140
+ ], Image.prototype, "loading", void 0);
141
+ __decorate([
142
+ property({ type: String, reflect: true })
143
+ ], Image.prototype, "transition", void 0);
144
+ __decorate([
145
+ property({ type: String })
146
+ ], Image.prototype, "ratio", void 0);
147
+ __decorate([
148
+ property({ type: String })
149
+ ], Image.prototype, "objectPosition", void 0);
150
+ __decorate([
151
+ property({ type: String })
152
+ ], Image.prototype, "imageRendering", void 0);
153
+ __decorate([
154
+ property({ type: Boolean, reflect: true })
155
+ ], Image.prototype, "cover", void 0);
156
+ Image = __decorate([
157
+ customElement(tagName)
158
+ ], Image);
159
+ export { Image };
160
+ //# sourceMappingURL=image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/image/image.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,MAA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