@peculiar/certificates-viewer 3.10.1 → 4.0.1

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 (554) hide show
  1. package/README.md +40 -64
  2. package/components/arrow_top.js +34 -0
  3. package/components/arrow_top.js.map +1 -0
  4. package/components/attribute-certificate-viewer.js +281 -0
  5. package/components/attribute-certificate-viewer.js.map +1 -0
  6. package/components/button-menu.js +64 -0
  7. package/components/button-menu.js.map +1 -0
  8. package/components/button.js +74 -0
  9. package/components/button.js.map +1 -0
  10. package/components/certificate-viewer.js +300 -0
  11. package/components/certificate-viewer.js.map +1 -0
  12. package/components/circular-progress.js +48 -0
  13. package/components/circular-progress.js.map +1 -0
  14. package/components/crl-viewer.js +263 -0
  15. package/components/crl-viewer.js.map +1 -0
  16. package/components/csr-viewer.js +233 -0
  17. package/components/csr-viewer.js.map +1 -0
  18. package/components/custom-elements.d.ts +2 -0
  19. package/{dist/esm/download-91511aeb.js → components/download.js} +2 -0
  20. package/components/download.js.map +1 -0
  21. package/components/highlight-words.js +60 -0
  22. package/components/highlight-words.js.map +1 -0
  23. package/components/index.d.ts +33 -0
  24. package/components/index.js +7 -0
  25. package/components/index.js.map +1 -0
  26. package/components/index2.js +299 -0
  27. package/components/index2.js.map +1 -0
  28. package/components/issuer_name.js +26 -0
  29. package/components/issuer_name.js.map +1 -0
  30. package/components/miscellaneous.js +13420 -0
  31. package/components/miscellaneous.js.map +1 -0
  32. package/components/package.json +9 -0
  33. package/components/peculiar-attribute-certificate-viewer.d.ts +11 -0
  34. package/components/peculiar-attribute-certificate-viewer.js +11 -0
  35. package/components/peculiar-attribute-certificate-viewer.js.map +1 -0
  36. package/components/peculiar-button-menu.d.ts +11 -0
  37. package/components/peculiar-button-menu.js +11 -0
  38. package/components/peculiar-button-menu.js.map +1 -0
  39. package/components/peculiar-certificate-decoder.d.ts +11 -0
  40. package/components/peculiar-certificate-decoder.js +234 -0
  41. package/components/peculiar-certificate-decoder.js.map +1 -0
  42. package/components/peculiar-certificate-viewer.d.ts +11 -0
  43. package/components/peculiar-certificate-viewer.js +11 -0
  44. package/components/peculiar-certificate-viewer.js.map +1 -0
  45. package/components/peculiar-certificates-viewer.d.ts +11 -0
  46. package/components/peculiar-certificates-viewer.js +382 -0
  47. package/components/peculiar-certificates-viewer.js.map +1 -0
  48. package/components/peculiar-circular-progress.d.ts +11 -0
  49. package/components/peculiar-circular-progress.js +11 -0
  50. package/components/peculiar-circular-progress.js.map +1 -0
  51. package/components/peculiar-crl-viewer.d.ts +11 -0
  52. package/components/peculiar-crl-viewer.js +11 -0
  53. package/components/peculiar-crl-viewer.js.map +1 -0
  54. package/components/peculiar-csr-viewer.d.ts +11 -0
  55. package/components/peculiar-csr-viewer.js +11 -0
  56. package/components/peculiar-csr-viewer.js.map +1 -0
  57. package/components/peculiar-highlight-words.d.ts +11 -0
  58. package/components/peculiar-highlight-words.js +11 -0
  59. package/components/peculiar-highlight-words.js.map +1 -0
  60. package/components/peculiar-text-hider.d.ts +11 -0
  61. package/components/peculiar-text-hider.js +42 -0
  62. package/components/peculiar-text-hider.js.map +1 -0
  63. package/components/subject_name.js +71 -0
  64. package/components/subject_name.js.map +1 -0
  65. package/dist/cjs/arrow_top-834fb7ec.js +37 -0
  66. package/dist/cjs/arrow_top-834fb7ec.js.map +1 -0
  67. package/dist/cjs/button-14e2b73f.js +77 -0
  68. package/dist/cjs/button-14e2b73f.js.map +1 -0
  69. package/dist/cjs/{certification_request-d5c6e32d.js → certification_request-c0cafa72.js} +236 -71
  70. package/dist/cjs/certification_request-c0cafa72.js.map +1 -0
  71. package/dist/cjs/{crl-5bce64c4.js → crl-b4322166.js} +8 -7
  72. package/dist/cjs/crl-b4322166.js.map +1 -0
  73. package/dist/cjs/download-254ddc57.js +23 -0
  74. package/dist/cjs/download-254ddc57.js.map +1 -0
  75. package/dist/cjs/{download-93f7b773.js → download-972dda8a.js} +2 -0
  76. package/dist/cjs/download-972dda8a.js.map +1 -0
  77. package/dist/cjs/index-efd561e9.js +2477 -0
  78. package/dist/cjs/index-efd561e9.js.map +1 -0
  79. package/dist/cjs/index.cjs.js +3 -1
  80. package/dist/cjs/index.cjs.js.map +1 -0
  81. package/dist/cjs/loader.cjs.js +6 -12
  82. package/dist/cjs/loader.cjs.js.map +1 -0
  83. package/dist/cjs/{miscellaneous-cac1cd8b.js → miscellaneous-806a04a5.js} +86 -70
  84. package/dist/cjs/miscellaneous-806a04a5.js.map +1 -0
  85. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +92 -35
  86. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -0
  87. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +110 -0
  88. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -0
  89. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +30 -19
  90. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -0
  91. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +34 -11
  92. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -0
  93. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +183 -85
  94. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -0
  95. package/dist/cjs/peculiar-text-hider.cjs.entry.js +7 -13
  96. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -0
  97. package/dist/cjs/peculiar.cjs.js +10 -57
  98. package/dist/cjs/peculiar.cjs.js.map +1 -0
  99. package/dist/cjs/{x509_certificate-3760e0a8.js → x509_certificate-989b1435.js} +5 -4
  100. package/dist/cjs/x509_certificate-989b1435.js.map +1 -0
  101. package/dist/collection/collection-manifest.json +12 -16
  102. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +189 -145
  103. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -0
  104. package/dist/collection/components/button/button.js +14 -126
  105. package/dist/collection/components/button/button.js.map +1 -0
  106. package/dist/collection/components/button/index.js +5 -0
  107. package/dist/collection/components/button/index.js.map +1 -0
  108. package/dist/collection/components/button-menu/button-menu.css +46 -0
  109. package/dist/collection/components/button-menu/button-menu.js +78 -0
  110. package/dist/collection/components/button-menu/button-menu.js.map +1 -0
  111. package/dist/collection/components/certificate-decoder/certificate-decoder.css +456 -44
  112. package/dist/collection/components/certificate-decoder/certificate-decoder.js +109 -101
  113. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -0
  114. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +6 -11
  115. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -0
  116. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +5 -5
  117. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -0
  118. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +5 -6
  119. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -0
  120. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +5 -5
  121. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -0
  122. package/dist/collection/components/certificate-details-parts/attributes/index.js +16 -15
  123. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -0
  124. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +5 -5
  125. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -0
  126. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +5 -5
  127. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -0
  128. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +4 -3
  129. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -0
  130. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +5 -4
  131. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -0
  132. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +5 -5
  133. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -0
  134. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +5 -5
  135. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -0
  136. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +6 -13
  137. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -0
  138. package/dist/collection/components/certificate-details-parts/basic_information.js +4 -3
  139. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -0
  140. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +5 -5
  141. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -0
  142. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +5 -5
  143. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -0
  144. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +2 -1
  145. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -0
  146. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +10 -15
  147. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -0
  148. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +6 -7
  149. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -0
  150. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +5 -6
  151. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -0
  152. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +8 -12
  153. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -0
  154. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +5 -6
  155. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -0
  156. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +26 -27
  157. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -0
  158. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +5 -7
  159. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -0
  160. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +8 -13
  161. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -0
  162. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +4 -3
  163. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -0
  164. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +6 -6
  165. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -0
  166. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +5 -5
  167. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -0
  168. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +5 -5
  169. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -0
  170. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +5 -6
  171. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -0
  172. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +7 -7
  173. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -0
  174. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +7 -6
  175. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -0
  176. package/dist/collection/components/certificate-details-parts/extensions/index.js +46 -45
  177. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -0
  178. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +8 -9
  179. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -0
  180. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +7 -11
  181. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -0
  182. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +5 -5
  183. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -0
  184. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +5 -5
  185. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -0
  186. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +5 -5
  187. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -0
  188. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +8 -11
  189. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -0
  190. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +4 -3
  191. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -0
  192. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +5 -5
  193. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -0
  194. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +5 -5
  195. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -0
  196. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +6 -7
  197. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -0
  198. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +5 -4
  199. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -0
  200. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +6 -7
  201. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -0
  202. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +13 -16
  203. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -0
  204. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +4 -3
  205. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -0
  206. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +8 -9
  207. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -0
  208. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +10 -15
  209. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -0
  210. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +7 -9
  211. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -0
  212. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +4 -3
  213. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -0
  214. package/dist/collection/components/certificate-details-parts/holder.js +8 -11
  215. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -0
  216. package/dist/collection/components/certificate-details-parts/index.js +1 -0
  217. package/dist/collection/components/certificate-details-parts/index.js.map +1 -0
  218. package/dist/collection/components/certificate-details-parts/issuer.js +5 -4
  219. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -0
  220. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -4
  221. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -0
  222. package/dist/collection/components/certificate-details-parts/miscellaneous.js +8 -13
  223. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -0
  224. package/dist/collection/components/certificate-details-parts/public_key.js +8 -7
  225. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -0
  226. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +9 -11
  227. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -0
  228. package/dist/collection/components/certificate-details-parts/row.js +13 -18
  229. package/dist/collection/components/certificate-details-parts/row.js.map +1 -0
  230. package/dist/collection/components/certificate-details-parts/signature.js +5 -4
  231. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -0
  232. package/dist/collection/components/certificate-details-parts/subject_name.js +4 -3
  233. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -0
  234. package/dist/collection/components/certificate-details-parts/thumbprints.js +4 -3
  235. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -0
  236. package/dist/collection/components/certificate-summary/certificate-summary.js +9 -77
  237. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -0
  238. package/dist/collection/components/certificate-summary/index.js +5 -0
  239. package/dist/collection/components/certificate-summary/index.js.map +1 -0
  240. package/dist/collection/components/certificate-viewer/certificate-viewer.css +471 -104
  241. package/dist/collection/components/certificate-viewer/certificate-viewer.js +206 -178
  242. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -0
  243. package/dist/collection/components/certificates-viewer/certificates-viewer.css +540 -267
  244. package/dist/collection/components/certificates-viewer/certificates-viewer.js +261 -266
  245. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -0
  246. package/dist/collection/components/circular-progress/circular-progress.css +2 -11
  247. package/dist/collection/components/circular-progress/circular-progress.js +60 -63
  248. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -0
  249. package/dist/collection/components/crl-viewer/crl-viewer.js +166 -139
  250. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -0
  251. package/dist/collection/components/csr-viewer/csr-viewer.js +149 -124
  252. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -0
  253. package/dist/collection/components/highlight-words/highlight-words.css +1 -9
  254. package/dist/collection/components/highlight-words/highlight-words.js +35 -28
  255. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -0
  256. package/dist/collection/components/icons/actions.js +16 -0
  257. package/dist/collection/components/icons/actions.js.map +1 -0
  258. package/dist/collection/components/icons/arrow_bottom.js +16 -0
  259. package/dist/collection/components/icons/arrow_bottom.js.map +1 -0
  260. package/dist/collection/components/icons/arrow_top.js +16 -0
  261. package/dist/collection/components/icons/arrow_top.js.map +1 -0
  262. package/dist/collection/components/icons/cross.js +16 -0
  263. package/dist/collection/components/icons/cross.js.map +1 -0
  264. package/dist/collection/components/icons/details.js +16 -0
  265. package/dist/collection/components/icons/details.js.map +1 -0
  266. package/dist/collection/components/icons/download.js +16 -0
  267. package/dist/collection/components/icons/download.js.map +1 -0
  268. package/dist/collection/components/icons/index.js +11 -0
  269. package/dist/collection/components/icons/index.js.map +1 -0
  270. package/dist/collection/components/icons/link.js +16 -0
  271. package/dist/collection/components/icons/link.js.map +1 -0
  272. package/dist/collection/components/link/index.js +5 -0
  273. package/dist/collection/components/link/index.js.map +1 -0
  274. package/dist/collection/components/link/link.js +9 -61
  275. package/dist/collection/components/link/link.js.map +1 -0
  276. package/dist/collection/components/text-hider/text-hider.css +9 -36
  277. package/dist/collection/components/text-hider/text-hider.js +21 -68
  278. package/dist/collection/components/text-hider/text-hider.js.map +1 -0
  279. package/dist/collection/components/typography/index.js +5 -0
  280. package/dist/collection/components/typography/index.js.map +1 -0
  281. package/dist/collection/components/typography/typography.js +39 -126
  282. package/dist/collection/components/typography/typography.js.map +1 -0
  283. package/dist/collection/constants/logs.js +1 -0
  284. package/dist/collection/constants/logs.js.map +1 -0
  285. package/dist/collection/constants/oids.js +1 -0
  286. package/dist/collection/constants/oids.js.map +1 -0
  287. package/dist/collection/crypto/asn_data.js +13 -7
  288. package/dist/collection/crypto/asn_data.js.map +1 -0
  289. package/dist/collection/crypto/attribute.js +11 -10
  290. package/dist/collection/crypto/attribute.js.map +1 -0
  291. package/dist/collection/crypto/crl.js +9 -8
  292. package/dist/collection/crypto/crl.js.map +1 -0
  293. package/dist/collection/crypto/csr.js +11 -10
  294. package/dist/collection/crypto/csr.js.map +1 -0
  295. package/dist/collection/crypto/extension.js +16 -15
  296. package/dist/collection/crypto/extension.js.map +1 -0
  297. package/dist/collection/crypto/index.js +1 -0
  298. package/dist/collection/crypto/index.js.map +1 -0
  299. package/dist/collection/crypto/name.js +15 -9
  300. package/dist/collection/crypto/name.js.map +1 -0
  301. package/dist/collection/crypto/provider.js +4 -3
  302. package/dist/collection/crypto/provider.js.map +1 -0
  303. package/dist/collection/crypto/utils.js +4 -3
  304. package/dist/collection/crypto/utils.js.map +1 -0
  305. package/dist/collection/crypto/x509_attribute_certificate.js +9 -8
  306. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -0
  307. package/dist/collection/crypto/x509_certificate.js +12 -11
  308. package/dist/collection/crypto/x509_certificate.js.map +1 -0
  309. package/dist/collection/index.js +1 -0
  310. package/dist/collection/index.js.map +1 -0
  311. package/dist/collection/locales/en.json +4 -3
  312. package/dist/collection/utils/date_formatter.js +3 -2
  313. package/dist/collection/utils/date_formatter.js.map +1 -0
  314. package/dist/collection/utils/download.js +3 -2
  315. package/dist/collection/utils/download.js.map +1 -0
  316. package/dist/collection/utils/download_from_buffer.js +1 -0
  317. package/dist/collection/utils/download_from_buffer.js.map +1 -0
  318. package/dist/collection/utils/get_string_by_oid.js +2 -1
  319. package/dist/collection/utils/get_string_by_oid.js.map +1 -0
  320. package/dist/collection/utils/index.js +2 -1
  321. package/dist/collection/utils/index.js.map +1 -0
  322. package/dist/collection/utils/is_link.js +1 -0
  323. package/dist/collection/utils/is_link.js.map +1 -0
  324. package/dist/collection/utils/l10n.js +2 -1
  325. package/dist/collection/utils/l10n.js.map +1 -0
  326. package/dist/collection/utils/read_file.js +1 -0
  327. package/dist/collection/utils/read_file.js.map +1 -0
  328. package/dist/collection/utils/third_party_links.js +1 -0
  329. package/dist/collection/utils/third_party_links.js.map +1 -0
  330. package/dist/collection/utils/validator.js +1 -0
  331. package/dist/collection/utils/validator.js.map +1 -0
  332. package/dist/collection/www-copy/index.js +138 -32
  333. package/dist/esm/arrow_top-efd3a56d.js +34 -0
  334. package/dist/esm/arrow_top-efd3a56d.js.map +1 -0
  335. package/dist/esm/button-35146bdd.js +74 -0
  336. package/dist/esm/button-35146bdd.js.map +1 -0
  337. package/dist/esm/{certification_request-23cd5124.js → certification_request-5cadde9f.js} +171 -9
  338. package/dist/esm/certification_request-5cadde9f.js.map +1 -0
  339. package/dist/esm/{crl-7f23c111.js → crl-11670c3e.js} +7 -6
  340. package/dist/esm/crl-11670c3e.js.map +1 -0
  341. package/dist/esm/download-0cc3077a.js +21 -0
  342. package/dist/esm/download-0cc3077a.js.map +1 -0
  343. package/dist/esm/download-57c5bf8f.js +470 -0
  344. package/dist/esm/download-57c5bf8f.js.map +1 -0
  345. package/dist/esm/index-4079bbb5.js +2448 -0
  346. package/dist/esm/index-4079bbb5.js.map +1 -0
  347. package/dist/esm/index.js +3 -1
  348. package/dist/esm/index.js.map +1 -0
  349. package/dist/esm/loader.js +6 -12
  350. package/dist/esm/loader.js.map +1 -0
  351. package/dist/esm/{miscellaneous-c7c0d04a.js → miscellaneous-1d4e8b41.js} +53 -37
  352. package/dist/esm/miscellaneous-1d4e8b41.js.map +1 -0
  353. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +80 -23
  354. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
  355. package/dist/esm/peculiar-button-menu_3.entry.js +104 -0
  356. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -0
  357. package/dist/esm/peculiar-certificate-decoder.entry.js +30 -19
  358. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -0
  359. package/dist/esm/peculiar-certificate-viewer.entry.js +34 -11
  360. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -0
  361. package/dist/esm/peculiar-certificates-viewer.entry.js +183 -85
  362. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -0
  363. package/dist/esm/peculiar-text-hider.entry.js +7 -13
  364. package/dist/esm/peculiar-text-hider.entry.js.map +1 -0
  365. package/dist/esm/peculiar.js +8 -58
  366. package/dist/esm/peculiar.js.map +1 -0
  367. package/dist/esm/{x509_certificate-d8e0af2d.js → x509_certificate-dfae6999.js} +4 -3
  368. package/dist/esm/x509_certificate-dfae6999.js.map +1 -0
  369. package/dist/esm-es5/arrow_top-efd3a56d.js +19 -0
  370. package/dist/esm-es5/arrow_top-efd3a56d.js.map +1 -0
  371. package/dist/esm-es5/button-35146bdd.js +19 -0
  372. package/dist/esm-es5/button-35146bdd.js.map +1 -0
  373. package/dist/esm-es5/certification_request-5cadde9f.js +97 -0
  374. package/dist/esm-es5/certification_request-5cadde9f.js.map +1 -0
  375. package/dist/esm-es5/crl-11670c3e.js +33 -0
  376. package/dist/esm-es5/crl-11670c3e.js.map +1 -0
  377. package/dist/esm-es5/download-0cc3077a.js +12 -0
  378. package/dist/esm-es5/download-0cc3077a.js.map +1 -0
  379. package/dist/esm-es5/download-57c5bf8f.js +19 -0
  380. package/dist/esm-es5/download-57c5bf8f.js.map +1 -0
  381. package/dist/esm-es5/index-4079bbb5.js +6 -0
  382. package/dist/esm-es5/index-4079bbb5.js.map +1 -0
  383. package/dist/esm-es5/index.js +5 -0
  384. package/dist/esm-es5/index.js.map +1 -0
  385. package/dist/esm-es5/loader.js +5 -0
  386. package/dist/esm-es5/loader.js.map +1 -0
  387. package/dist/esm-es5/miscellaneous-1d4e8b41.js +355 -0
  388. package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +1 -0
  389. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +110 -0
  390. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
  391. package/dist/esm-es5/peculiar-button-menu_3.entry.js +12 -0
  392. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -0
  393. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +12 -0
  394. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -0
  395. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +5 -0
  396. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -0
  397. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +33 -0
  398. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -0
  399. package/dist/esm-es5/peculiar-text-hider.entry.js +5 -0
  400. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -0
  401. package/dist/esm-es5/peculiar.js +5 -0
  402. package/dist/esm-es5/peculiar.js.map +1 -0
  403. package/dist/esm-es5/x509_certificate-dfae6999.js +12 -0
  404. package/dist/esm-es5/x509_certificate-dfae6999.js.map +1 -0
  405. package/dist/index.js +1 -1
  406. package/dist/peculiar/index.esm.js +2 -1
  407. package/dist/peculiar/index.esm.js.map +1 -0
  408. package/dist/peculiar/locales/en.json +4 -3
  409. package/dist/peculiar/p-0b356bb5.js +6 -0
  410. package/dist/peculiar/p-0b356bb5.js.map +1 -0
  411. package/dist/peculiar/p-0bdcdbf7.system.js +355 -0
  412. package/dist/peculiar/p-0bdcdbf7.system.js.map +1 -0
  413. package/dist/peculiar/p-17e3c47b.js +12 -0
  414. package/dist/peculiar/p-17e3c47b.js.map +1 -0
  415. package/dist/peculiar/p-23555789.system.entry.js +34 -0
  416. package/dist/peculiar/p-23555789.system.entry.js.map +1 -0
  417. package/dist/peculiar/p-26981468.system.entry.js +5 -0
  418. package/dist/peculiar/p-26981468.system.entry.js.map +1 -0
  419. package/dist/peculiar/p-2fcad8cb.system.js +20 -0
  420. package/dist/peculiar/p-2fcad8cb.system.js.map +1 -0
  421. package/dist/peculiar/p-31586b23.system.js +13 -0
  422. package/dist/peculiar/p-31586b23.system.js.map +1 -0
  423. package/dist/peculiar/p-43eb3721.js +33 -0
  424. package/dist/peculiar/p-43eb3721.js.map +1 -0
  425. package/dist/peculiar/p-5823e6e8.entry.js +12 -0
  426. package/dist/peculiar/p-5823e6e8.entry.js.map +1 -0
  427. package/dist/peculiar/p-596836a7.entry.js +33 -0
  428. package/dist/peculiar/p-596836a7.entry.js.map +1 -0
  429. package/dist/peculiar/p-5aabeba7.system.js +6 -0
  430. package/dist/peculiar/p-5aabeba7.system.js.map +1 -0
  431. package/dist/peculiar/p-6667fe6e.system.js +34 -0
  432. package/dist/peculiar/p-6667fe6e.system.js.map +1 -0
  433. package/dist/peculiar/p-6e79b9c8.js +12 -0
  434. package/dist/peculiar/p-6e79b9c8.js.map +1 -0
  435. package/dist/peculiar/p-709994c1.js +19 -0
  436. package/dist/peculiar/p-709994c1.js.map +1 -0
  437. package/dist/peculiar/p-74c241e7.js +97 -0
  438. package/dist/peculiar/p-74c241e7.js.map +1 -0
  439. package/dist/peculiar/p-7ed7cd97.system.entry.js +111 -0
  440. package/dist/peculiar/p-7ed7cd97.system.entry.js.map +1 -0
  441. package/dist/peculiar/p-7f9beaa8.js +19 -0
  442. package/dist/peculiar/p-7f9beaa8.js.map +1 -0
  443. package/dist/peculiar/p-80832207.system.js +5 -0
  444. package/dist/peculiar/p-80832207.system.js.map +1 -0
  445. package/dist/peculiar/p-8748391f.system.entry.js +5 -0
  446. package/dist/peculiar/p-8748391f.system.entry.js.map +1 -0
  447. package/dist/peculiar/p-882e1281.entry.js +12 -0
  448. package/dist/peculiar/p-882e1281.entry.js.map +1 -0
  449. package/dist/peculiar/p-90459cec.entry.js +5 -0
  450. package/dist/peculiar/p-90459cec.entry.js.map +1 -0
  451. package/dist/peculiar/p-97688065.js +355 -0
  452. package/dist/peculiar/p-97688065.js.map +1 -0
  453. package/dist/peculiar/p-a053c132.js +19 -0
  454. package/dist/peculiar/p-a053c132.js.map +1 -0
  455. package/dist/peculiar/p-ae9189f6.system.js +19 -0
  456. package/dist/peculiar/p-ae9189f6.system.js.map +1 -0
  457. package/dist/peculiar/p-bd485115.system.entry.js +13 -0
  458. package/dist/peculiar/p-bd485115.system.entry.js.map +1 -0
  459. package/dist/peculiar/p-c0a298fd.system.js +97 -0
  460. package/dist/peculiar/p-c0a298fd.system.js.map +1 -0
  461. package/dist/peculiar/p-daf23673.system.js +20 -0
  462. package/dist/peculiar/p-daf23673.system.js.map +1 -0
  463. package/dist/peculiar/p-e1960173.system.js +5 -0
  464. package/dist/peculiar/p-e1960173.system.js.map +1 -0
  465. package/dist/peculiar/p-e39de121.system.entry.js +13 -0
  466. package/dist/peculiar/p-e39de121.system.entry.js.map +1 -0
  467. package/dist/peculiar/p-e6a3b4d4.system.js +13 -0
  468. package/dist/peculiar/p-e6a3b4d4.system.js.map +1 -0
  469. package/dist/peculiar/p-f3d85a5f.entry.js +110 -0
  470. package/dist/peculiar/p-f3d85a5f.entry.js.map +1 -0
  471. package/dist/peculiar/p-fd4b9a50.entry.js +5 -0
  472. package/dist/peculiar/p-fd4b9a50.entry.js.map +1 -0
  473. package/dist/peculiar/peculiar.css +1 -1
  474. package/dist/peculiar/peculiar.esm.js +2 -1
  475. package/dist/peculiar/peculiar.esm.js.map +1 -0
  476. package/dist/peculiar/peculiar.js +127 -0
  477. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +15 -3
  478. package/dist/types/components/button/button.d.ts +5 -16
  479. package/dist/types/components/button/index.d.ts +2 -0
  480. package/dist/types/components/button-menu/button-menu.d.ts +21 -0
  481. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +9 -6
  482. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +1 -1
  483. package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -3
  484. package/dist/types/components/certificate-summary/index.d.ts +1 -0
  485. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +13 -5
  486. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +22 -11
  487. package/dist/types/components/crl-viewer/crl-viewer.d.ts +13 -5
  488. package/dist/types/components/csr-viewer/csr-viewer.d.ts +13 -5
  489. package/dist/types/components/icons/actions.d.ts +12 -0
  490. package/dist/types/components/icons/arrow_bottom.d.ts +12 -0
  491. package/dist/types/components/icons/arrow_top.d.ts +12 -0
  492. package/dist/types/components/icons/cross.d.ts +12 -0
  493. package/dist/types/components/icons/details.d.ts +12 -0
  494. package/dist/types/components/icons/download.d.ts +12 -0
  495. package/dist/types/components/icons/index.d.ts +7 -0
  496. package/dist/types/components/icons/link.d.ts +12 -0
  497. package/dist/types/components/link/index.d.ts +1 -0
  498. package/dist/types/components/link/link.d.ts +6 -6
  499. package/dist/types/components/text-hider/text-hider.d.ts +0 -3
  500. package/dist/types/components/typography/index.d.ts +1 -0
  501. package/dist/types/components/typography/typography.d.ts +10 -20
  502. package/dist/types/components.d.ts +74 -175
  503. package/dist/types/crypto/attribute.d.ts +1 -1
  504. package/dist/types/crypto/extension.d.ts +1 -1
  505. package/dist/types/interface.d.ts +98 -6
  506. package/dist/types/stencil-public-runtime.d.ts +110 -23
  507. package/dist/types/utils/l10n.d.ts +5 -4
  508. package/dist/types/utils/read_file.d.ts +1 -1
  509. package/hydrate/index.d.ts +218 -0
  510. package/hydrate/index.js +22549 -0
  511. package/hydrate/package.json +6 -0
  512. package/loader/index.d.ts +10 -1
  513. package/loader/index.js +1 -1
  514. package/loader/package.json +1 -0
  515. package/package.json +6 -4
  516. package/dist/cjs/dom-f57e260e.js +0 -78
  517. package/dist/cjs/index-064e95c7.js +0 -1486
  518. package/dist/cjs/l10n-ddc7cff9.js +0 -169
  519. package/dist/cjs/peculiar-button-split_4.cjs.entry.js +0 -128
  520. package/dist/cjs/peculiar-button.cjs.entry.js +0 -40
  521. package/dist/cjs/peculiar-link.cjs.entry.js +0 -29
  522. package/dist/cjs/peculiar-typography.cjs.entry.js +0 -38
  523. package/dist/collection/components/button/button.css +0 -81
  524. package/dist/collection/components/button-split/button-split.css +0 -57
  525. package/dist/collection/components/button-split/button-split.js +0 -116
  526. package/dist/collection/components/certificate-summary/certificate-summary.css +0 -49
  527. package/dist/collection/components/link/link.css +0 -59
  528. package/dist/collection/components/typography/typography.css +0 -95
  529. package/dist/esm/dom-f1b08a97.js +0 -76
  530. package/dist/esm/index-bbd484d9.js +0 -1455
  531. package/dist/esm/l10n-d48f35ff.js +0 -165
  532. package/dist/esm/peculiar-button-split_4.entry.js +0 -121
  533. package/dist/esm/peculiar-button.entry.js +0 -36
  534. package/dist/esm/peculiar-link.entry.js +0 -25
  535. package/dist/esm/peculiar-typography.entry.js +0 -34
  536. package/dist/esm/polyfills/css-shim.js +0 -1
  537. package/dist/peculiar/p-01cea5c0.entry.js +0 -11
  538. package/dist/peculiar/p-3bfefa4a.entry.js +0 -18
  539. package/dist/peculiar/p-4e8169cb.entry.js +0 -4
  540. package/dist/peculiar/p-57b89412.entry.js +0 -4
  541. package/dist/peculiar/p-5b4eed12.entry.js +0 -4
  542. package/dist/peculiar/p-610b85e3.entry.js +0 -4
  543. package/dist/peculiar/p-6d37c8b5.entry.js +0 -4
  544. package/dist/peculiar/p-711b4e1e.js +0 -18
  545. package/dist/peculiar/p-81a88a33.js +0 -11
  546. package/dist/peculiar/p-918aeee4.entry.js +0 -4
  547. package/dist/peculiar/p-9f4ee110.js +0 -22
  548. package/dist/peculiar/p-a050e184.js +0 -69
  549. package/dist/peculiar/p-c24c26c2.js +0 -32
  550. package/dist/peculiar/p-df53fbcc.entry.js +0 -4
  551. package/dist/peculiar/p-ec250cc4.js +0 -12
  552. package/dist/peculiar/p-f7683ba5.js +0 -5
  553. package/dist/peculiar/p-fe05f51e.js +0 -79
  554. package/dist/types/components/button-split/button-split.d.ts +0 -21
@@ -0,0 +1,74 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { h } from '@stencil/core/internal/client';
5
+
6
+ /**
7
+ * @license
8
+ * Copyright (c) Peculiar Ventures, LLC.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ const variantMapping = {
25
+ h1: 'h1',
26
+ h2: 'h2',
27
+ h3: 'h3',
28
+ h4: 'h4',
29
+ h5: 'h5',
30
+ s1: 'h6',
31
+ s2: 'h6',
32
+ b1: 'p',
33
+ b2: 'p',
34
+ b3: 'p',
35
+ btn1: 'span',
36
+ btn2: 'span',
37
+ c1: 'p',
38
+ c2: 'p',
39
+ };
40
+ const Typography = (props, children) => {
41
+ const { component: componentProp, variant = 'b2', color = 'black', class: classProp } = props, other = __rest(props, ["component", "variant", "color", "class"]);
42
+ const Component = componentProp || variantMapping[variant] || 'p';
43
+ return (h(Component, Object.assign({}, other, { class: {
44
+ typography: true,
45
+ [`t-${variant}`]: true,
46
+ [`c-${color}`]: true,
47
+ [classProp]: Boolean(classProp),
48
+ } }), children));
49
+ };
50
+
51
+ /**
52
+ * @license
53
+ * Copyright (c) Peculiar Ventures, LLC.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */
58
+ const Button = (props, children) => {
59
+ const { href, class: classProp, startIcon, onClick, } = props;
60
+ const isLink = !!href;
61
+ const TagType = isLink ? 'a' : 'button';
62
+ return (h(TagType, { type: !isLink && 'button', href: isLink && href, target: isLink && '_blank', rel: isLink && 'noreferrer noopener', onClick: onClick, class: {
63
+ button: true,
64
+ // eslint-disable-next-line react/destructuring-assignment
65
+ m_no_padding: children.length === 0,
66
+ [classProp]: Boolean(classProp),
67
+ } },
68
+ startIcon,
69
+ children.length > 0 && (h(Typography, { variant: "b3", color: "black", component: "span" }, children))));
70
+ };
71
+
72
+ export { Button as B, Typography as T };
73
+
74
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"file":"button.js","mappings":";;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBA,MAAM,cAAc,GAAmF;EACrG,EAAE,EAAE,IAAI;EACR,EAAE,EAAE,IAAI;EACR,EAAE,EAAE,IAAI;EACR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AqB,EACpC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;MACL,MAAM,EAAE,IAAI;;MAEZ,YAAY,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC;MACnC,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;KAChC;IAEA,SAAS;IAET,QAAQ,CAAC,MAAM,GAAG,CAAC,KAClB,EAAC,UAAU,IACT,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,OAAO,EACb,SAAS,EAAC,MAAM,IAEf,QAAQ,CACE,CACd,CACO,EACV;AACJ;;;;","names":[],"sources":["src/components/typography/typography.tsx","src/components/button/button.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h } from '@stencil/core';\nimport type { TypographyType, ColorType } from '../../interface';\n\ninterface TypographyProps {\n component?: keyof JSX.IntrinsicElements;\n variant?: TypographyType;\n color?: ColorType;\n class?: string;\n}\n\nconst variantMapping: Record<TypographyType, 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n s1: 'h6',\n s2: 'h6',\n b1: 'p',\n b2: 'p',\n b3: 'p',\n btn1: 'span',\n btn2: 'span',\n c1: 'p',\n c2: 'p',\n};\n\nexport const Typography: FunctionalComponent<TypographyProps> = (props, children) => {\n const {\n component: componentProp,\n variant = 'b2',\n color = 'black',\n class: classProp,\n ...other\n } = props;\n\n const Component = componentProp || variantMapping[variant] || 'p';\n\n return (\n <Component\n {...other}\n class={{\n typography: true,\n [`t-${variant}`]: true,\n [`c-${color}`]: true,\n [classProp]: Boolean(classProp),\n }}\n >\n {children}\n </Component>\n );\n};\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h, VNode } from '@stencil/core';\nimport { Typography } from '../typography';\n\nexport interface ButtonProps {\n href?: string;\n class?: string;\n startIcon?: VNode;\n onClick?: (event: MouseEvent) => void;\n}\n\nexport const Button: FunctionalComponent<ButtonProps> = (props, children) => {\n const {\n href,\n class: classProp,\n startIcon,\n onClick,\n } = props;\n\n const isLink = !!href;\n const TagType = isLink ? 'a' : 'button';\n\n return (\n <TagType\n type={!isLink && 'button'}\n href={isLink && href}\n target={isLink && '_blank'}\n rel={isLink && 'noreferrer noopener'}\n onClick={onClick}\n class={{\n button: true,\n // eslint-disable-next-line react/destructuring-assignment\n m_no_padding: children.length === 0,\n [classProp]: Boolean(classProp),\n }}\n >\n {startIcon}\n {/* eslint-disable-next-line react/destructuring-assignment */}\n {children.length > 0 && (\n <Typography\n variant=\"b3\"\n color=\"black\"\n component=\"span\"\n >\n {children}\n </Typography>\n )}\n </TagType>\n );\n};\n"],"version":3}
@@ -0,0 +1,300 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { proxyCustomElement, HTMLElement, Build, h, Host } from '@stencil/core/internal/client';
5
+ import { A as AsnData, c as certificateRawToBuffer, a1 as Certificate, a2 as Name, d as dateDiff, E as Extension, b as AsnConvert, a3 as id_ecPublicKey, a4 as ECParameters, a5 as id_rsaEncryption, a6 as RSAPublicKey, a7 as id_composite_key, a8 as CompositePublicKey, a9 as id_alg_composite, aa as CompositeSignatureValue, ab as CompositeParams, h as hexFormat, e as base64Format, g as getCertificateThumbprint, B as BasicInformation, S as Signature, T as Thumbprints, n as Extensions, j as getLEILink, k as getDNSNameLink, m as getIPAddressLink, M as Miscellaneous } from './miscellaneous.js';
6
+ import { b as build, D as Download } from './download.js';
7
+ import { S as SubjectName, P as PublicKey } from './subject_name.js';
8
+ import { I as IssuerName } from './issuer_name.js';
9
+ import { T as Typography } from './button.js';
10
+
11
+ /**
12
+ * @license
13
+ * Copyright (c) Peculiar Ventures, LLC.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+ class X509Certificate extends AsnData {
19
+ constructor(raw) {
20
+ super(certificateRawToBuffer(raw), Certificate);
21
+ this.thumbprints = {};
22
+ this.type = 'X.509 Certificate';
23
+ const { tbsCertificate } = this.asn;
24
+ this.serialNumber = build.Convert.ToHex(tbsCertificate.serialNumber);
25
+ this.subject = new Name(tbsCertificate.subject).toJSON();
26
+ this.issuer = new Name(tbsCertificate.issuer).toJSON();
27
+ this.version = tbsCertificate.version + 1;
28
+ const notBefore = tbsCertificate.validity.notBefore.utcTime
29
+ || tbsCertificate.validity.notBefore.generalTime;
30
+ if (!notBefore) {
31
+ throw new Error("Cannot get 'notBefore' value");
32
+ }
33
+ this.notBefore = notBefore;
34
+ const notAfter = tbsCertificate.validity.notAfter.utcTime
35
+ || tbsCertificate.validity.notAfter.generalTime;
36
+ if (!notAfter) {
37
+ throw new Error("Cannot get 'notAfter' value");
38
+ }
39
+ this.notAfter = notAfter;
40
+ this.validity = dateDiff(this.notBefore, this.notAfter);
41
+ }
42
+ parseExtensions() {
43
+ const { tbsCertificate } = this.asn;
44
+ if (tbsCertificate.extensions) {
45
+ this.extensions = tbsCertificate.extensions
46
+ .map((e) => new Extension(AsnConvert.serialize(e)));
47
+ }
48
+ }
49
+ getPublicKeyInfo(publicKeyInfo) {
50
+ const { subjectPublicKey, algorithm } = publicKeyInfo;
51
+ let params;
52
+ if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {
53
+ params = AsnConvert.parse(algorithm.parameters, ECParameters);
54
+ }
55
+ if (algorithm.algorithm === id_rsaEncryption) {
56
+ params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);
57
+ }
58
+ if (algorithm.algorithm === id_composite_key) {
59
+ params = AsnConvert.parse(subjectPublicKey, CompositePublicKey);
60
+ params = params.map((param) => this.getPublicKeyInfo(param));
61
+ }
62
+ const spki = AsnConvert.serialize(publicKeyInfo);
63
+ return {
64
+ params,
65
+ value: spki,
66
+ algorithm: algorithm.algorithm,
67
+ };
68
+ }
69
+ get publicKey() {
70
+ return this.getPublicKeyInfo(this.asn.tbsCertificate.subjectPublicKeyInfo);
71
+ }
72
+ get signature() {
73
+ const { signatureValue, signatureAlgorithm } = this.asn;
74
+ let params;
75
+ if (signatureAlgorithm.algorithm === id_alg_composite) {
76
+ const compositeSignatureValues = AsnConvert.parse(signatureValue, CompositeSignatureValue);
77
+ const compositeParams = AsnConvert.parse(signatureAlgorithm.parameters, CompositeParams);
78
+ params = compositeParams.map((param, index) => (Object.assign(Object.assign({}, param), { value: compositeSignatureValues[index] })));
79
+ }
80
+ return {
81
+ params,
82
+ value: signatureValue,
83
+ algorithm: signatureAlgorithm.algorithm,
84
+ };
85
+ }
86
+ exportAsBase64() {
87
+ return build.Convert.ToBase64(this.raw);
88
+ }
89
+ exportAsHexFormatted() {
90
+ return hexFormat(build.Convert.ToHex(this.raw));
91
+ }
92
+ exportAsPemFormatted() {
93
+ return `-----BEGIN CERTIFICATE-----\n${base64Format(this.exportAsBase64())}\n-----END CERTIFICATE-----`;
94
+ }
95
+ async getThumbprint(algorithm = 'SHA-1') {
96
+ try {
97
+ const thumbprint = await getCertificateThumbprint(algorithm, this.raw);
98
+ if (thumbprint) {
99
+ this.thumbprints[algorithm] = build.Convert.ToHex(thumbprint);
100
+ }
101
+ }
102
+ catch (error) {
103
+ console.error('Error thumbprint get:', error);
104
+ }
105
+ }
106
+ get commonName() {
107
+ if (!this.subject) {
108
+ return '';
109
+ }
110
+ for (let i = 0; i < this.subject.length; i += 1) {
111
+ const name = this.subject[i];
112
+ if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {
113
+ return name.value;
114
+ }
115
+ }
116
+ return '';
117
+ }
118
+ get issuerCommonName() {
119
+ if (!this.issuer) {
120
+ return '';
121
+ }
122
+ for (let i = 0; i < this.issuer.length; i += 1) {
123
+ const name = this.issuer[i];
124
+ if (name.shortName === 'CN') {
125
+ return name.value;
126
+ }
127
+ if (name.shortName === 'E') {
128
+ return name.value;
129
+ }
130
+ }
131
+ return '';
132
+ }
133
+ get isRoot() {
134
+ return JSON.stringify(this.issuer) === JSON.stringify(this.subject);
135
+ }
136
+ subjectToString() {
137
+ if (!this.subject) {
138
+ return '';
139
+ }
140
+ return this.subject
141
+ .map((name) => (`${name.shortName}=${name.value}`))
142
+ .join(', ');
143
+ }
144
+ issuerToString() {
145
+ if (!this.issuer) {
146
+ return '';
147
+ }
148
+ return this.issuer
149
+ .map((name) => (`${name.shortName}=${name.value}`))
150
+ .join(', ');
151
+ }
152
+ downloadAsPEM(name) {
153
+ Download.cert.asPEM(this.exportAsPemFormatted(), name || this.commonName);
154
+ }
155
+ downloadAsDER(name) {
156
+ Download.cert.asDER(this.exportAsHexFormatted(), name || this.commonName);
157
+ }
158
+ }
159
+
160
+ const certificateViewerCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:transparent;font-family:var(--pv-font-family, inherit)}.t-h1{font-weight:var(--pv-text-h1-weight);font-size:var(--pv-text-h1-size);line-height:var(--pv-text-h1-height);letter-spacing:var(--pv-text-h1-spacing)}.t-h2{font-weight:var(--pv-text-h2-weight);font-size:var(--pv-text-h2-size);line-height:var(--pv-text-h2-height);letter-spacing:var(--pv-text-h2-spacing)}.t-h3{font-weight:var(--pv-text-h3-weight);font-size:var(--pv-text-h3-size);line-height:var(--pv-text-h3-height);letter-spacing:var(--pv-text-h3-spacing)}.t-h4{font-weight:var(--pv-text-h4-weight);font-size:var(--pv-text-h4-size);line-height:var(--pv-text-h4-height);letter-spacing:var(--pv-text-h4-spacing)}.t-h5{font-weight:var(--pv-text-h5-weight);font-size:var(--pv-text-h5-size);line-height:var(--pv-text-h5-height);letter-spacing:var(--pv-text-h5-spacing)}.t-s1{font-weight:var(--pv-text-s1-weight);font-size:var(--pv-text-s1-size);line-height:var(--pv-text-s1-height);letter-spacing:var(--pv-text-s1-spacing)}.t-s2{font-weight:var(--pv-text-s2-weight);font-size:var(--pv-text-s2-size);line-height:var(--pv-text-s2-height);letter-spacing:var(--pv-text-s2-spacing)}.t-b1{font-weight:var(--pv-text-b1-weight);font-size:var(--pv-text-b1-size);line-height:var(--pv-text-b1-height);letter-spacing:var(--pv-text-b1-spacing)}.t-b2{font-weight:var(--pv-text-b2-weight);font-size:var(--pv-text-b2-size);line-height:var(--pv-text-b2-height);letter-spacing:var(--pv-text-b2-spacing)}.t-b3{font-weight:var(--pv-text-b3-weight);font-size:var(--pv-text-b3-size);line-height:var(--pv-text-b3-height);letter-spacing:var(--pv-text-b3-spacing)}.t-btn1{font-weight:var(--pv-text-btn1-weight);font-size:var(--pv-text-btn1-size);line-height:var(--pv-text-btn1-height);letter-spacing:var(--pv-text-btn1-spacing)}.t-btn2{font-weight:var(--pv-text-btn2-weight);font-size:var(--pv-text-btn2-size);line-height:var(--pv-text-btn2-height);letter-spacing:var(--pv-text-btn2-spacing)}.t-c1{font-weight:var(--pv-text-c1-weight);font-size:var(--pv-text-c1-size);line-height:var(--pv-text-c1-height);letter-spacing:var(--pv-text-c1-spacing)}.t-c2{font-weight:var(--pv-text-c2-weight);font-size:var(--pv-text-c2-size);line-height:var(--pv-text-c2-height);letter-spacing:var(--pv-text-c2-spacing)}.c-primary-tint-5{--pv-color-base:var(--pv-color-primary-tint-5)}.c-primary-tint-4{--pv-color-base:var(--pv-color-primary-tint-4)}.c-primary-tint-3{--pv-color-base:var(--pv-color-primary-tint-3)}.c-primary-tint-2{--pv-color-base:var(--pv-color-primary-tint-2)}.c-primary-tint-1{--pv-color-base:var(--pv-color-primary-tint-1)}.c-primary{--pv-color-base:var(--pv-color-primary)}.c-primary-shade-1{--pv-color-base:var(--pv-color-primary-shade-1)}.c-primary-shade-2{--pv-color-base:var(--pv-color-primary-shade-2)}.c-primary-shade-3{--pv-color-base:var(--pv-color-primary-shade-3)}.c-primary-shade-4{--pv-color-base:var(--pv-color-primary-shade-4)}.c-primary-shade-5{--pv-color-base:var(--pv-color-primary-shade-5)}.c-primary-contrast{--pv-color-base:var(--pv-color-primary-contrast)}.c-secondary-tint-5{--pv-color-base:var(--pv-color-secondary-tint-5)}.c-secondary-tint-4{--pv-color-base:var(--pv-color-secondary-tint-4)}.c-secondary-tint-3{--pv-color-base:var(--pv-color-secondary-tint-3)}.c-secondary-tint-2{--pv-color-base:var(--pv-color-secondary-tint-2)}.c-secondary-tint-1{--pv-color-base:var(--pv-color-secondary-tint-1)}.c-secondary{--pv-color-base:var(--pv-color-secondary)}.c-secondary-shade-1{--pv-color-base:var(--pv-color-secondary-shade-1)}.c-secondary-shade-2{--pv-color-base:var(--pv-color-secondary-shade-2)}.c-secondary-shade-3{--pv-color-base:var(--pv-color-secondary-shade-3)}.c-secondary-shade-4{--pv-color-base:var(--pv-color-secondary-shade-4)}.c-secondary-shade-5{--pv-color-base:var(--pv-color-secondary-shade-5)}.c-secondary-contrast{--pv-color-base:var(--pv-color-secondary-contrast)}.c-wrong-tint-5{--pv-color-base:var(--pv-color-wrong-tint-5)}.c-wrong-tint-4{--pv-color-base:var(--pv-color-wrong-tint-4)}.c-wrong-tint-3{--pv-color-base:var(--pv-color-wrong-tint-3)}.c-wrong-tint-2{--pv-color-base:var(--pv-color-wrong-tint-2)}.c-wrong-tint-1{--pv-color-base:var(--pv-color-wrong-tint-1)}.c-wrong{--pv-color-base:var(--pv-color-wrong)}.c-wrong-shade-1{--pv-color-base:var(--pv-color-wrong-shade-1)}.c-wrong-shade-2{--pv-color-base:var(--pv-color-wrong-shade-2)}.c-wrong-shade-3{--pv-color-base:var(--pv-color-wrong-shade-3)}.c-wrong-shade-4{--pv-color-base:var(--pv-color-wrong-shade-4)}.c-wrong-shade-5{--pv-color-base:var(--pv-color-wrong-shade-5)}.c-wrong-contrast{--pv-color-base:var(--pv-color-wrong-contrast)}.c-attention-tint-5{--pv-color-base:var(--pv-color-attention-tint-5)}.c-attention-tint-4{--pv-color-base:var(--pv-color-attention-tint-4)}.c-attention-tint-3{--pv-color-base:var(--pv-color-attention-tint-3)}.c-attention-tint-2{--pv-color-base:var(--pv-color-attention-tint-2)}.c-attention-tint-1{--pv-color-base:var(--pv-color-attention-tint-1)}.c-attention{--pv-color-base:var(--pv-color-attention)}.c-attention-shade-1{--pv-color-base:var(--pv-color-attention-shade-1)}.c-attention-shade-2{--pv-color-base:var(--pv-color-attention-shade-2)}.c-attention-shade-3{--pv-color-base:var(--pv-color-attention-shade-3)}.c-attention-shade-4{--pv-color-base:var(--pv-color-attention-shade-4)}.c-attention-shade-5{--pv-color-base:var(--pv-color-attention-shade-5)}.c-success-tint-5{--pv-color-base:var(--pv-color-success-tint-5)}.c-success-tint-4{--pv-color-base:var(--pv-color-success-tint-4)}.c-success-tint-3{--pv-color-base:var(--pv-color-success-tint-3)}.c-success-tint-2{--pv-color-base:var(--pv-color-success-tint-2)}.c-success-tint-1{--pv-color-base:var(--pv-color-success-tint-1)}.c-success{--pv-color-base:var(--pv-color-success)}.c-success-shade-1{--pv-color-base:var(--pv-color-success-shade-1)}.c-success-shade-2{--pv-color-base:var(--pv-color-success-shade-2)}.c-success-shade-3{--pv-color-base:var(--pv-color-success-shade-3)}.c-success-shade-4{--pv-color-base:var(--pv-color-success-shade-4)}.c-success-shade-5{--pv-color-base:var(--pv-color-success-shade-5)}.c-black{--pv-color-base:var(--pv-color-black)}.c-gray-10{--pv-color-base:var(--pv-color-gray-10)}.c-gray-9{--pv-color-base:var(--pv-color-gray-9)}.c-gray-8{--pv-color-base:var(--pv-color-gray-8)}.c-gray-7{--pv-color-base:var(--pv-color-gray-7)}.c-gray-6{--pv-color-base:var(--pv-color-gray-6)}.c-gray-5{--pv-color-base:var(--pv-color-gray-5)}.c-gray-4{--pv-color-base:var(--pv-color-gray-4)}.c-gray-3{--pv-color-base:var(--pv-color-gray-3)}.c-gray-2{--pv-color-base:var(--pv-color-gray-2)}.c-gray-1{--pv-color-base:var(--pv-color-gray-1)}.c-white{--pv-color-base:var(--pv-color-white)}.c-extra-1{--pv-color-base:var(--pv-color-extra-1)}.c-extra-2{--pv-color-base:var(--pv-color-extra-2)}.typography{color:var(--pv-color-base)}.button{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;background:transparent;border:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;text-decoration:none;outline:none;font-family:inherit;border-radius:4px;height:var(--pv-size-base-6);min-width:var(--pv-size-base-6);padding:0 var(--pv-size-base-2);-webkit-transition:background-color 200ms ease 0s;transition:background-color 200ms ease 0s;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--pv-size-base-2);font-size:0}.button.m_no_padding{padding:0}.button:hover{background-color:var(--pv-color-gray-3)}.button:focus{background-color:var(--pv-color-gray-4)}.button:active{background-color:var(--pv-color-gray-5)}:host{display:block;width:100%;position:relative;min-width:280px;min-height:300px;word-wrap:break-word;word-break:break-word}th,td{border:none}table{width:100%;border-spacing:0;border-collapse:collapse}table td{padding:var(--pv-size-base-2) var(--pv-size-base-4);vertical-align:top}table td:first-child{width:220px}table td:last-child{width:calc(100% - 220px)}table td.monospace{max-width:0}table td.divider{padding:var(--pv-size-base-2) 0}table td.divider span{height:1px;display:block;background-color:var(--pv-color-gray-4)}table .title td{padding-top:var(--pv-size-base-6);padding-bottom:var(--pv-size-base-2)}table table{border-left:1px solid var(--pv-color-gray-5)}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host([data-mobile-screen-view=true]) table,:host([data-mobile-screen-view=true]) tr,:host([data-mobile-screen-view=true]) td{display:block}:host([data-mobile-screen-view=true]) table tr{padding:var(--pv-size-base-2) 0}:host([data-mobile-screen-view=true]) table tr.title{padding-top:var(--pv-size-base-6)}:host([data-mobile-screen-view=true]) table tr.title td{padding:0 var(--pv-size-base-4)}:host([data-mobile-screen-view=true]) table td{padding:0 var(--pv-size-base-4);width:100% !important;max-width:100% !important}:host([data-mobile-screen-view=true]) table td.divider{padding:0}";
161
+
162
+ const CertificateViewer = /*@__PURE__*/ proxyCustomElement(class CertificateViewer extends HTMLElement {
163
+ constructor() {
164
+ super();
165
+ this.__registerHost();
166
+ this.__attachShadow();
167
+ this.getAuthKeyIdParentLink = (value) => {
168
+ var _a;
169
+ return (_a = this.authKeyIdParentLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
170
+ };
171
+ this.getAuthKeyIdSiblingsLink = (value) => {
172
+ var _a;
173
+ return (_a = this.authKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
174
+ };
175
+ this.getSubjectKeyIdChildrenLink = (value) => {
176
+ var _a;
177
+ return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
178
+ };
179
+ this.getSubjectKeyIdSiblingsLink = (value) => {
180
+ var _a;
181
+ return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
182
+ };
183
+ this.certificate = undefined;
184
+ this.download = undefined;
185
+ this.authKeyIdParentLink = undefined;
186
+ this.authKeyIdSiblingsLink = undefined;
187
+ this.subjectKeyIdChildrenLink = undefined;
188
+ this.subjectKeyIdSiblingsLink = undefined;
189
+ this.issuerDnLink = undefined;
190
+ this.mobileMediaQueryString = '(max-width: 900px)';
191
+ this.mobileScreenView = false;
192
+ this.isDecodeInProcess = true;
193
+ }
194
+ handleMediaQueryChange(event) {
195
+ this.mobileScreenView = event.matches;
196
+ }
197
+ componentWillLoad() {
198
+ this.decodeCertificate(this.certificate);
199
+ if (Build.isBrowser) {
200
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
201
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
202
+ this.mobileScreenView = this.mobileMediaQuery.matches;
203
+ }
204
+ }
205
+ disconnectedCallback() {
206
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
207
+ }
208
+ async decodeCertificate(certificate) {
209
+ this.isDecodeInProcess = true;
210
+ try {
211
+ if (certificate instanceof X509Certificate) {
212
+ this.certificateDecoded = certificate;
213
+ }
214
+ else if (typeof certificate === 'string') {
215
+ this.certificateDecoded = new X509Certificate(certificate);
216
+ }
217
+ else {
218
+ return;
219
+ }
220
+ this.certificateDecoded.parseExtensions();
221
+ await this.certificateDecoded.getThumbprint('SHA-1');
222
+ await this.certificateDecoded.getThumbprint('SHA-256');
223
+ }
224
+ catch (error) {
225
+ this.certificateDecodeError = error;
226
+ console.error('Error certificate parse:', error);
227
+ }
228
+ this.isDecodeInProcess = false;
229
+ }
230
+ /**
231
+ * Rerun decodeCertificate if previuos value not equal current value
232
+ */
233
+ watchCertificateAndDecode(newValue, oldValue) {
234
+ if (typeof newValue === 'string' && typeof oldValue === 'string') {
235
+ if (newValue !== oldValue) {
236
+ this.decodeCertificate(newValue);
237
+ }
238
+ return;
239
+ }
240
+ if (newValue instanceof X509Certificate && oldValue instanceof X509Certificate) {
241
+ if (newValue.serialNumber !== oldValue.serialNumber) {
242
+ this.decodeCertificate(newValue);
243
+ }
244
+ }
245
+ }
246
+ getIssuerDnLink() {
247
+ return this.issuerDnLink;
248
+ }
249
+ // eslint-disable-next-line class-methods-use-this
250
+ renderErrorState() {
251
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There was an error decoding this certificate.")));
252
+ }
253
+ // eslint-disable-next-line class-methods-use-this
254
+ renderEmptyState() {
255
+ return (h("div", { class: "status_wrapper" }, h(Typography, null, "There is no certificate available.")));
256
+ }
257
+ render() {
258
+ if (this.certificateDecodeError) {
259
+ return this.renderErrorState();
260
+ }
261
+ if (!this.certificateDecoded) {
262
+ return this.renderEmptyState();
263
+ }
264
+ return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(SubjectName, { name: this.certificateDecoded.subject }), h(IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), h(PublicKey, { publicKey: this.certificateDecoded.publicKey }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
265
+ }
266
+ static get watchers() { return {
267
+ "certificate": ["watchCertificateAndDecode"]
268
+ }; }
269
+ static get style() { return certificateViewerCss; }
270
+ }, [1, "peculiar-certificate-viewer", {
271
+ "certificate": [513],
272
+ "download": [516],
273
+ "authKeyIdParentLink": [513, "auth-key-id-parent-link"],
274
+ "authKeyIdSiblingsLink": [513, "auth-key-id-siblings-link"],
275
+ "subjectKeyIdChildrenLink": [513, "subject-key-id-children-link"],
276
+ "subjectKeyIdSiblingsLink": [513, "subject-key-id-siblings-link"],
277
+ "issuerDnLink": [513, "issuer-dn-link"],
278
+ "mobileMediaQueryString": [1, "mobile-media-query-string"],
279
+ "mobileScreenView": [32],
280
+ "isDecodeInProcess": [32]
281
+ }, undefined, {
282
+ "certificate": ["watchCertificateAndDecode"]
283
+ }]);
284
+ function defineCustomElement() {
285
+ if (typeof customElements === "undefined") {
286
+ return;
287
+ }
288
+ const components = ["peculiar-certificate-viewer"];
289
+ components.forEach(tagName => { switch (tagName) {
290
+ case "peculiar-certificate-viewer":
291
+ if (!customElements.get(tagName)) {
292
+ customElements.define(tagName, CertificateViewer);
293
+ }
294
+ break;
295
+ } });
296
+ }
297
+
298
+ export { CertificateViewer as C, X509Certificate as X, defineCustomElement as d };
299
+
300
+ //# sourceMappingURL=certificate-viewer.js.map
@@ -0,0 +1 @@
1
+ {"file":"certificate-viewer.js","mappings":";;;;;;;;;;AAAA;;;;;;;MAgDa,eAAgB,SAAQ,OAAoB;EAqBvD,YAAY,GAAW;IACrB,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;IAL3C,gBAAW,GAA2B,EAAE,CAAC;IAEzC,SAAI,GAAW,mBAAmB,CAAC;IAKxC,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC;IAEpC,IAAI,CAAC,YAAY,GAAGA,aAAO,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAC/D,IAAI,CAAC,OAAO,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IACzD,IAAI,CAAC,MAAM,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;IACvD,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;IAE1C,MAAM,SAAS,GAAG,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO;SACtD,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC;IAEnD,IAAI,CAAC,SAAS,EAAE;MACd,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KACjD;IAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAE3B,MAAM,QAAQ,GAAG,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO;SACpD,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;IAElD,IAAI,CAAC,QAAQ,EAAE;MACb,MAAM,IAAI,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B,EAAE,CAAC;KAChC;IAED,QACE,EAAC,IAAI,+BACsB,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAEtD,iBACE,EAAC,gBAAgB,oBACX,IAAI,CAAC,kBAAkB,EAC3B,EAEF,EAAC,WAAW,IACV,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,OAAO,GACrC,EAEF,EAAC,UAAU,IACT,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,MAAM,EACpC,YAAY,EAAE,IAAI,CAAC,eAAe,EAAE,GACpC,EAEF,EAAC,SAAS,IACR,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,SAAS,GAC5C,EAEF,EAAC,SAAS,IACR,SAAS,EAAE,IAAI,CAAC,kBAAkB,CAAC,SAAS,GAC5C,EAEF,EAAC,WAAW,IACV,WAAW,EAAE,IAAI,CAAC,kBAAkB,CAAC,WAAW,GAChD,EAEF,EAAC,UAAU,IACT,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,UAAU,EAC9C,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,wBAAwB,EAAE,IAAI,CAAC,wBAAwB,EACvD,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,EAC7D,2BAA2B,EAAE,IAAI,CAAC,2BAA2B,GAC7D,EAED,IAAI,CAAC,QAAQ,KACZ,EAAC,aAAa,IACZ,WAAW,EAAE,IAAI,CAAC,kBAAkB,GACpC,CACH,CACK,CACH,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["Convert"],"sources":["src/crypto/x509_certificate.ts","src/components/certificate-viewer/certificate-viewer.scss?tag=peculiar-certificate-viewer&encapsulation=shadow","src/components/certificate-viewer/certificate-viewer.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { AsnConvert } from '@peculiar/asn1-schema';\nimport { ECParameters, id_ecPublicKey } from '@peculiar/asn1-ecc';\nimport { id_rsaEncryption, RSAPublicKey } from '@peculiar/asn1-rsa';\nimport {\n id_composite_key,\n id_alg_composite,\n CompositePublicKey,\n CompositeSignatureValue,\n CompositeParams,\n} from '@peculiar/asn1-x509-post-quantum';\nimport { Certificate, SubjectPublicKeyInfo } from '@peculiar/asn1-x509';\nimport { Convert } from 'pvtsutils';\n\nimport { dateDiff, Download } from '../utils';\n\nimport { Name, INameJSON } from './name';\nimport { Extension, TExtensionValue } from './extension';\nimport { AsnData } from './asn_data';\nimport {\n certificateRawToBuffer,\n hexFormat,\n base64Format,\n getCertificateThumbprint,\n} from './utils';\n\nexport interface ISignature {\n algorithm: string;\n value: BufferSource;\n params?: {\n algorithm: string;\n value: BufferSource;\n }[];\n}\n\nexport interface IPublicKey {\n algorithm: string;\n value: BufferSource;\n params?: ECParameters | RSAPublicKey | IPublicKey[];\n}\n\nexport class X509Certificate extends AsnData<Certificate> {\n public readonly serialNumber: string;\n\n public readonly subject: INameJSON[];\n\n public readonly issuer: INameJSON[];\n\n public readonly notBefore: Date;\n\n public readonly notAfter: Date;\n\n public readonly validity: string;\n\n public extensions: Extension<TExtensionValue>[];\n\n public readonly version: number;\n\n public thumbprints: Record<string, string> = {};\n\n public type: string = 'X.509 Certificate';\n\n constructor(raw: string) {\n super(certificateRawToBuffer(raw), Certificate);\n\n const { tbsCertificate } = this.asn;\n\n this.serialNumber = Convert.ToHex(tbsCertificate.serialNumber);\n this.subject = new Name(tbsCertificate.subject).toJSON();\n this.issuer = new Name(tbsCertificate.issuer).toJSON();\n this.version = tbsCertificate.version + 1;\n\n const notBefore = tbsCertificate.validity.notBefore.utcTime\n || tbsCertificate.validity.notBefore.generalTime;\n\n if (!notBefore) {\n throw new Error(\"Cannot get 'notBefore' value\");\n }\n\n this.notBefore = notBefore;\n\n const notAfter = tbsCertificate.validity.notAfter.utcTime\n || tbsCertificate.validity.notAfter.generalTime;\n\n if (!notAfter) {\n throw new Error(\"Cannot get 'notAfter' value\");\n }\n\n this.notAfter = notAfter;\n this.validity = dateDiff(this.notBefore, this.notAfter);\n }\n\n public parseExtensions() {\n const { tbsCertificate } = this.asn;\n\n if (tbsCertificate.extensions) {\n this.extensions = tbsCertificate.extensions\n .map((e) => new Extension(AsnConvert.serialize(e)));\n }\n }\n\n private getPublicKeyInfo(publicKeyInfo: SubjectPublicKeyInfo) {\n const { subjectPublicKey, algorithm } = publicKeyInfo;\n let params;\n\n if (algorithm.algorithm === id_ecPublicKey && algorithm.parameters) {\n params = AsnConvert.parse(algorithm.parameters, ECParameters);\n }\n\n if (algorithm.algorithm === id_rsaEncryption) {\n params = AsnConvert.parse(subjectPublicKey, RSAPublicKey);\n }\n\n if (algorithm.algorithm === id_composite_key) {\n params = AsnConvert.parse(subjectPublicKey, CompositePublicKey);\n\n params = params.map((param) => this.getPublicKeyInfo(param));\n }\n\n const spki = AsnConvert.serialize(publicKeyInfo);\n\n return {\n params,\n value: spki,\n algorithm: algorithm.algorithm,\n };\n }\n\n public get publicKey(): IPublicKey {\n return this.getPublicKeyInfo(this.asn.tbsCertificate.subjectPublicKeyInfo);\n }\n\n public get signature(): ISignature {\n const { signatureValue, signatureAlgorithm } = this.asn;\n let params;\n\n if (signatureAlgorithm.algorithm === id_alg_composite) {\n const compositeSignatureValues = AsnConvert.parse(signatureValue, CompositeSignatureValue);\n const compositeParams = AsnConvert.parse(signatureAlgorithm.parameters, CompositeParams);\n\n params = compositeParams.map((param, index) => ({\n ...param,\n value: compositeSignatureValues[index],\n }));\n }\n\n return {\n params,\n value: signatureValue,\n algorithm: signatureAlgorithm.algorithm,\n };\n }\n\n public exportAsBase64() {\n return Convert.ToBase64(this.raw);\n }\n\n public exportAsHexFormatted() {\n return hexFormat(Convert.ToHex(this.raw));\n }\n\n public exportAsPemFormatted() {\n return `-----BEGIN CERTIFICATE-----\\n${base64Format(this.exportAsBase64())}\\n-----END CERTIFICATE-----`;\n }\n\n public async getThumbprint(\n algorithm: string = 'SHA-1',\n ): Promise<void> {\n try {\n const thumbprint = await getCertificateThumbprint(algorithm, this.raw);\n\n if (thumbprint) {\n this.thumbprints[algorithm] = Convert.ToHex(thumbprint);\n }\n } catch (error) {\n console.error('Error thumbprint get:', error);\n }\n }\n\n public get commonName(): string {\n if (!this.subject) {\n return '';\n }\n\n for (let i = 0; i < this.subject.length; i += 1) {\n const name = this.subject[i];\n\n if (name.shortName === 'CN' || name.shortName === 'E' || name.shortName === 'O') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public get issuerCommonName(): string {\n if (!this.issuer) {\n return '';\n }\n\n for (let i = 0; i < this.issuer.length; i += 1) {\n const name = this.issuer[i];\n\n if (name.shortName === 'CN') {\n return name.value;\n }\n\n if (name.shortName === 'E') {\n return name.value;\n }\n }\n\n return '';\n }\n\n public get isRoot(): boolean {\n return JSON.stringify(this.issuer) === JSON.stringify(this.subject);\n }\n\n public subjectToString() {\n if (!this.subject) {\n return '';\n }\n\n return this.subject\n .map((name) => (\n `${name.shortName}=${name.value}`\n ))\n .join(', ');\n }\n\n public issuerToString() {\n if (!this.issuer) {\n return '';\n }\n\n return this.issuer\n .map((name) => (\n `${name.shortName}=${name.value}`\n ))\n .join(', ');\n }\n\n public downloadAsPEM(name?: string) {\n Download.cert.asPEM(\n this.exportAsPemFormatted(),\n name || this.commonName,\n );\n }\n\n public downloadAsDER(name?: string) {\n Download.cert.asDER(\n this.exportAsHexFormatted(),\n name || this.commonName,\n );\n }\n}\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n position: relative;\n min-width: 280px;\n min-height: 300px;\n word-wrap: break-word;\n word-break: break-word;\n}\n\nth, td {\n border: none;\n}\n\ntable {\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse;\n\n td {\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n vertical-align: top;\n\n &:first-child {\n width: 220px;\n }\n\n &:last-child {\n width: calc(100% - 220px)\n }\n\n &.monospace {\n max-width: 0;\n }\n\n &.divider {\n padding: var(--pv-size-base-2) 0;\n\n span {\n height: 1px;\n display: block;\n background-color: var(--pv-color-gray-4);\n }\n }\n }\n\n .title td {\n padding-top: var(--pv-size-base-6);\n padding-bottom: var(--pv-size-base-2);\n }\n\n table {\n border-left: 1px solid var(--pv-color-gray-5);\n }\n}\n\n.status_wrapper {\n min-height: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n:host([data-mobile-screen-view=\"true\"]) {\n table, tr, td {\n display: block;\n }\n\n table {\n tr {\n padding: var(--pv-size-base-2) 0;\n\n &.title {\n padding-top: var(--pv-size-base-6);\n\n td {\n padding: 0 var(--pv-size-base-4);\n }\n }\n }\n\n td {\n padding: 0 var(--pv-size-base-4);\n width: 100% !important;\n max-width: 100% !important;\n\n &.divider {\n padding: 0;\n }\n }\n }\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n h,\n Prop,\n State,\n Watch,\n Host,\n Build,\n} from '@stencil/core';\n\nimport {\n X509Certificate,\n} from '../../crypto';\nimport { getDNSNameLink, getIPAddressLink, getLEILink } from '../../utils/third_party_links';\nimport {\n BasicInformation,\n SubjectName,\n IssuerName,\n PublicKey,\n Signature,\n Thumbprints,\n Extensions,\n Miscellaneous,\n} from '../certificate-details-parts';\nimport { Typography } from '../typography';\n\nexport type CertificateProp = string | X509Certificate;\n\n@Component({\n tag: 'peculiar-certificate-viewer',\n styleUrl: 'certificate-viewer.scss',\n shadow: true,\n})\nexport class CertificateViewer {\n private certificateDecoded: X509Certificate;\n\n private certificateDecodeError: Error;\n\n private mobileMediaQuery: MediaQueryList;\n\n /**\n * The certificate value for decode and show details. Use PEM or DER.\n */\n @Prop({ reflect: true }) certificate: CertificateProp;\n\n /**\n * If `true` - component will show split-button to download certificate as PEM or DER.\n */\n @Prop({ reflect: true }) download?: boolean;\n\n /**\n * Authority Key Identifier extension parent link.\n * <br />\n * **NOTE**: `{{authKeyId}}` will be replaced to value from the extension.\n * @example\n * https://censys.io/certificates?q=parsed.extensions.subject_key_id:%20{{authKeyId}}\n */\n @Prop({ reflect: true }) authKeyIdParentLink?: string;\n\n /**\n * Authority Key Identifier extension siblings link.\n * <br />\n * **NOTE**: `{{authKeyId}}` will be replaced to value from the extension.\n * @example\n * https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{authKeyId}}\n */\n @Prop({ reflect: true }) authKeyIdSiblingsLink?: string;\n\n /**\n * Subject Key Identifier extension children link.\n * <br />\n * **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension.\n * @example\n * https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{subjectKeyId}}\n */\n @Prop({ reflect: true }) subjectKeyIdChildrenLink?: string;\n\n /**\n * Subject Key Identifier extension siblings link.\n * <br />\n * **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension.\n * @example\n * https://some.com/{{subjectKeyId}}\n */\n @Prop({ reflect: true }) subjectKeyIdSiblingsLink?: string;\n\n /**\n * Issuer DN link.\n * **NOTE**: HTML component attribute must be `issuer-dn-link`.\n */\n @Prop({ reflect: true }) issuerDnLink?: string;\n\n /**\n * Mobile media query string to control screen view change.\n * <br />\n * **NOTE**: Based on https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia.\n * @example\n * (max-width: 900px)\n */\n @Prop({ reflect: false }) mobileMediaQueryString?: string = '(max-width: 900px)';\n\n @State() mobileScreenView: boolean = false;\n\n @State() isDecodeInProcess: boolean = true;\n\n private handleMediaQueryChange(event: MediaQueryListEvent) {\n this.mobileScreenView = event.matches;\n }\n\n componentWillLoad() {\n this.decodeCertificate(this.certificate);\n\n if (Build.isBrowser) {\n this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);\n this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));\n this.mobileScreenView = this.mobileMediaQuery.matches;\n }\n }\n\n disconnectedCallback() {\n this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));\n }\n\n private async decodeCertificate(certificate: CertificateProp) {\n this.isDecodeInProcess = true;\n\n try {\n if (certificate instanceof X509Certificate) {\n this.certificateDecoded = certificate;\n } else if (typeof certificate === 'string') {\n this.certificateDecoded = new X509Certificate(certificate);\n } else {\n return;\n }\n\n this.certificateDecoded.parseExtensions();\n await this.certificateDecoded.getThumbprint('SHA-1');\n await this.certificateDecoded.getThumbprint('SHA-256');\n } catch (error) {\n this.certificateDecodeError = error;\n\n console.error('Error certificate parse:', error);\n }\n\n this.isDecodeInProcess = false;\n }\n\n /**\n * Rerun decodeCertificate if previuos value not equal current value\n */\n @Watch('certificate')\n watchCertificateAndDecode(newValue: CertificateProp, oldValue: CertificateProp) {\n if (typeof newValue === 'string' && typeof oldValue === 'string') {\n if (newValue !== oldValue) {\n this.decodeCertificate(newValue);\n }\n\n return;\n }\n\n if (newValue instanceof X509Certificate && oldValue instanceof X509Certificate) {\n if (newValue.serialNumber !== oldValue.serialNumber) {\n this.decodeCertificate(newValue);\n }\n }\n }\n\n private getAuthKeyIdParentLink = (value: string) => this.authKeyIdParentLink\n ?.replace('{{authKeyId}}', value);\n\n private getAuthKeyIdSiblingsLink = (value: string) => this.authKeyIdSiblingsLink\n ?.replace('{{authKeyId}}', value);\n\n private getSubjectKeyIdChildrenLink = (value: string) => this.subjectKeyIdChildrenLink\n ?.replace('{{subjectKeyId}}', value);\n\n private getSubjectKeyIdSiblingsLink = (value: string) => this.subjectKeyIdSiblingsLink\n ?.replace('{{subjectKeyId}}', value);\n\n private getIssuerDnLink() {\n return this.issuerDnLink;\n }\n\n // eslint-disable-next-line class-methods-use-this\n private renderErrorState() {\n return (\n <div class=\"status_wrapper\">\n <Typography>\n There was an error decoding this certificate.\n </Typography>\n </div>\n );\n }\n\n // eslint-disable-next-line class-methods-use-this\n private renderEmptyState() {\n return (\n <div class=\"status_wrapper\">\n <Typography>\n There is no certificate available.\n </Typography>\n </div>\n );\n }\n\n render() {\n if (this.certificateDecodeError) {\n return this.renderErrorState();\n }\n\n if (!this.certificateDecoded) {\n return this.renderEmptyState();\n }\n\n return (\n <Host\n data-mobile-screen-view={String(this.mobileScreenView)}\n >\n <table>\n <BasicInformation\n {...this.certificateDecoded}\n />\n\n <SubjectName\n name={this.certificateDecoded.subject}\n />\n\n <IssuerName\n name={this.certificateDecoded.issuer}\n issuerDnLink={this.getIssuerDnLink()}\n />\n\n <PublicKey\n publicKey={this.certificateDecoded.publicKey}\n />\n\n <Signature\n signature={this.certificateDecoded.signature}\n />\n\n <Thumbprints\n thumbprints={this.certificateDecoded.thumbprints}\n />\n\n <Extensions\n extensions={this.certificateDecoded.extensions}\n getLEILink={getLEILink}\n getDNSNameLink={getDNSNameLink}\n getIPAddressLink={getIPAddressLink}\n getAuthKeyIdParentLink={this.getAuthKeyIdParentLink}\n getAuthKeyIdSiblingsLink={this.getAuthKeyIdSiblingsLink}\n getSubjectKeyIdChildrenLink={this.getSubjectKeyIdChildrenLink}\n getSubjectKeyIdSiblingsLink={this.getSubjectKeyIdSiblingsLink}\n />\n\n {this.download && (\n <Miscellaneous\n certificate={this.certificateDecoded}\n />\n )}\n </table>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,48 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
+
6
+ const circularProgressCss = ":host{display:block;width:100%}@-webkit-keyframes circular-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes circular-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes circular-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:100, 200;stroke-dashoffset:-15}to{stroke-dasharray:100, 200;stroke-dashoffset:-120}}@keyframes circular-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:100, 200;stroke-dashoffset:-15}to{stroke-dasharray:100, 200;stroke-dashoffset:-120}}.circle_progress{margin:0 auto}.circle_progress_svg{-webkit-animation:circular-rotate 1.4s linear infinite;animation:circular-rotate 1.4s linear infinite}.circle_progress_circle{stroke-linecap:round;-webkit-animation:circular-dash 1.4s ease-in-out infinite;animation:circular-dash 1.4s ease-in-out infinite;stroke-dasharray:80, 200;stroke-dashoffset:0;stroke:var(--pv-color-secondary)}.circle_progress_backdrop{stroke:var(--pv-color-gray-3)}";
7
+
8
+ const CircularProgress = /*@__PURE__*/ proxyCustomElement(class CircularProgress extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.__attachShadow();
13
+ this.box = 50;
14
+ this.size = 24;
15
+ this.width = 4;
16
+ }
17
+ render() {
18
+ return (h(Host, null, h("div", { class: "circle_progress", style: {
19
+ width: `${this.size}px`,
20
+ height: `${this.size}px`,
21
+ } }, h("svg", { class: "circle_progress_svg", viewBox: `0 0 ${this.box} ${this.box}` }, h("circle", { class: "circle_progress_backdrop", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
22
+ strokeWidth: `${this.width}px`,
23
+ } }), h("circle", { class: "circle_progress_circle", cx: this.box / 2, cy: this.box / 2, r: (this.box / 2) - 5, fill: "none", style: {
24
+ strokeWidth: `${this.width}px`,
25
+ } })))));
26
+ }
27
+ static get style() { return circularProgressCss; }
28
+ }, [1, "peculiar-circular-progress", {
29
+ "size": [2],
30
+ "width": [2]
31
+ }]);
32
+ function defineCustomElement() {
33
+ if (typeof customElements === "undefined") {
34
+ return;
35
+ }
36
+ const components = ["peculiar-circular-progress"];
37
+ components.forEach(tagName => { switch (tagName) {
38
+ case "peculiar-circular-progress":
39
+ if (!customElements.get(tagName)) {
40
+ customElements.define(tagName, CircularProgress);
41
+ }
42
+ break;
43
+ } });
44
+ }
45
+
46
+ export { CircularProgress as C, defineCustomElement as d };
47
+
48
+ //# sourceMappingURL=circular-progress.js.map
@@ -0,0 +1 @@
1
+ {"file":"circular-progress.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,0/BAA0/B;;MCoBzgC,gBAAgB;;;;;IAWnB,QAAG,GAAW,EAAE,CAAC;gBAPF,EAAE;iBAKD,CAAC;;EAIzB,MAAM;IACJ,QACE,EAAC,IAAI,QACH,WACE,KAAK,EAAC,iBAAiB,EACvB,KAAK,EAAE;QACL,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;QACvB,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;OACzB,IAED,WACE,KAAK,EAAC,qBAAqB,EAC3B,OAAO,EAAE,OAAO,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,IAEtC,cACE,KAAK,EAAC,0BAA0B,EAChC,EAAE,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,EAChB,EAAE,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,EAChB,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,EACrB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;QACL,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI;OAC/B,GACD,EACF,cACE,KAAK,EAAC,wBAAwB,EAC9B,EAAE,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,EAChB,EAAE,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,EAChB,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,EACrB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;QACL,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI;OAC/B,GACD,CACE,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/circular-progress/circular-progress.scss?tag=peculiar-circular-progress&encapsulation=shadow","src/components/circular-progress/circular-progress.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n}\n\n@keyframes circular-rotate {\n to {\n transform: rotate(1turn);\n }\n}\n\n@keyframes circular-dash {\n 0% {\n stroke-dasharray: 1,200;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100,200;\n stroke-dashoffset: -15;\n }\n\n to {\n stroke-dasharray: 100,200;\n stroke-dashoffset: -120;\n }\n}\n\n.circle_progress {\n margin: 0 auto;\n}\n\n.circle_progress_svg {\n animation: circular-rotate 1.4s linear infinite;\n}\n\n.circle_progress_circle {\n stroke-linecap: round;\n animation: circular-dash 1.4s ease-in-out infinite;\n stroke-dasharray: 80,200;\n stroke-dashoffset: 0;\n stroke: var(--pv-color-secondary);\n}\n\n.circle_progress_backdrop {\n stroke: var(--pv-color-gray-3);\n}\n","/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Host,\n h,\n Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'peculiar-circular-progress',\n styleUrl: 'circular-progress.scss',\n shadow: true,\n})\nexport class CircularProgress {\n /**\n * Width/height of progress circle.\n */\n @Prop() size: number = 24;\n\n /**\n * Stroke width of progress bar circle.\n */\n @Prop() width: number = 4;\n\n private box: number = 50;\n\n render() {\n return (\n <Host>\n <div\n class=\"circle_progress\"\n style={{\n width: `${this.size}px`,\n height: `${this.size}px`,\n }}\n >\n <svg\n class=\"circle_progress_svg\"\n viewBox={`0 0 ${this.box} ${this.box}`}\n >\n <circle\n class=\"circle_progress_backdrop\"\n cx={this.box / 2}\n cy={this.box / 2}\n r={(this.box / 2) - 5}\n fill=\"none\"\n style={{\n strokeWidth: `${this.width}px`,\n }}\n />\n <circle\n class=\"circle_progress_circle\"\n cx={this.box / 2}\n cy={this.box / 2}\n r={(this.box / 2) - 5}\n fill=\"none\"\n style={{\n strokeWidth: `${this.width}px`,\n }}\n />\n </svg>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}