@peculiar/certificates-viewer 3.9.0 → 3.10.1-alpha.12

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/components/arrow_top.js +34 -0
  2. package/components/arrow_top.js.map +1 -0
  3. package/components/attribute-certificate-viewer.js +281 -0
  4. package/components/attribute-certificate-viewer.js.map +1 -0
  5. package/components/button-menu.js +64 -0
  6. package/components/button-menu.js.map +1 -0
  7. package/components/button.js +74 -0
  8. package/components/button.js.map +1 -0
  9. package/components/certificate-viewer.js +300 -0
  10. package/components/certificate-viewer.js.map +1 -0
  11. package/components/circular-progress.js +48 -0
  12. package/components/circular-progress.js.map +1 -0
  13. package/components/crl-viewer.js +263 -0
  14. package/components/crl-viewer.js.map +1 -0
  15. package/components/csr-viewer.js +233 -0
  16. package/components/csr-viewer.js.map +1 -0
  17. package/components/custom-elements.d.ts +2 -0
  18. package/{dist/esm/download-91511aeb.js → components/download.js} +2 -0
  19. package/components/download.js.map +1 -0
  20. package/components/highlight-words.js +60 -0
  21. package/components/highlight-words.js.map +1 -0
  22. package/components/index.d.ts +33 -0
  23. package/components/index.js +7 -0
  24. package/components/index.js.map +1 -0
  25. package/components/index2.js +299 -0
  26. package/components/index2.js.map +1 -0
  27. package/components/issuer_name.js +26 -0
  28. package/components/issuer_name.js.map +1 -0
  29. package/components/miscellaneous.js +13420 -0
  30. package/components/miscellaneous.js.map +1 -0
  31. package/components/package.json +9 -0
  32. package/components/peculiar-attribute-certificate-viewer.d.ts +11 -0
  33. package/components/peculiar-attribute-certificate-viewer.js +11 -0
  34. package/components/peculiar-attribute-certificate-viewer.js.map +1 -0
  35. package/components/peculiar-button-menu.d.ts +11 -0
  36. package/components/peculiar-button-menu.js +11 -0
  37. package/components/peculiar-button-menu.js.map +1 -0
  38. package/components/peculiar-certificate-decoder.d.ts +11 -0
  39. package/components/peculiar-certificate-decoder.js +234 -0
  40. package/components/peculiar-certificate-decoder.js.map +1 -0
  41. package/components/peculiar-certificate-viewer.d.ts +11 -0
  42. package/components/peculiar-certificate-viewer.js +11 -0
  43. package/components/peculiar-certificate-viewer.js.map +1 -0
  44. package/components/peculiar-certificates-viewer.d.ts +11 -0
  45. package/components/peculiar-certificates-viewer.js +382 -0
  46. package/components/peculiar-certificates-viewer.js.map +1 -0
  47. package/components/peculiar-circular-progress.d.ts +11 -0
  48. package/components/peculiar-circular-progress.js +11 -0
  49. package/components/peculiar-circular-progress.js.map +1 -0
  50. package/components/peculiar-crl-viewer.d.ts +11 -0
  51. package/components/peculiar-crl-viewer.js +11 -0
  52. package/components/peculiar-crl-viewer.js.map +1 -0
  53. package/components/peculiar-csr-viewer.d.ts +11 -0
  54. package/components/peculiar-csr-viewer.js +11 -0
  55. package/components/peculiar-csr-viewer.js.map +1 -0
  56. package/components/peculiar-highlight-words.d.ts +11 -0
  57. package/components/peculiar-highlight-words.js +11 -0
  58. package/components/peculiar-highlight-words.js.map +1 -0
  59. package/components/peculiar-text-hider.d.ts +11 -0
  60. package/components/peculiar-text-hider.js +42 -0
  61. package/components/peculiar-text-hider.js.map +1 -0
  62. package/components/subject_name.js +71 -0
  63. package/components/subject_name.js.map +1 -0
  64. package/dist/cjs/arrow_top-834fb7ec.js +37 -0
  65. package/dist/cjs/arrow_top-834fb7ec.js.map +1 -0
  66. package/dist/cjs/button-14e2b73f.js +77 -0
  67. package/dist/cjs/button-14e2b73f.js.map +1 -0
  68. package/dist/cjs/{certification_request-b9ac73f2.js → certification_request-c0cafa72.js} +240 -73
  69. package/dist/cjs/certification_request-c0cafa72.js.map +1 -0
  70. package/dist/cjs/{crl-57727a07.js → crl-b4322166.js} +8 -7
  71. package/dist/cjs/crl-b4322166.js.map +1 -0
  72. package/dist/cjs/download-254ddc57.js +23 -0
  73. package/dist/cjs/download-254ddc57.js.map +1 -0
  74. package/dist/cjs/{download-93f7b773.js → download-972dda8a.js} +2 -0
  75. package/dist/cjs/download-972dda8a.js.map +1 -0
  76. package/dist/cjs/index-efd561e9.js +2477 -0
  77. package/dist/cjs/index-efd561e9.js.map +1 -0
  78. package/dist/cjs/index.cjs.js +3 -1
  79. package/dist/cjs/index.cjs.js.map +1 -0
  80. package/dist/cjs/loader.cjs.js +6 -12
  81. package/dist/cjs/loader.cjs.js.map +1 -0
  82. package/dist/cjs/{miscellaneous-07184a47.js → miscellaneous-806a04a5.js} +87 -71
  83. package/dist/cjs/miscellaneous-806a04a5.js.map +1 -0
  84. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +92 -35
  85. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -0
  86. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +110 -0
  87. package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -0
  88. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +30 -19
  89. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -0
  90. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +34 -11
  91. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -0
  92. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +183 -85
  93. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -0
  94. package/dist/cjs/peculiar-text-hider.cjs.entry.js +7 -13
  95. package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -0
  96. package/dist/cjs/peculiar.cjs.js +10 -57
  97. package/dist/cjs/peculiar.cjs.js.map +1 -0
  98. package/dist/cjs/{x509_certificate-da0fc87d.js → x509_certificate-989b1435.js} +5 -4
  99. package/dist/cjs/x509_certificate-989b1435.js.map +1 -0
  100. package/dist/collection/collection-manifest.json +12 -16
  101. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +189 -145
  102. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -0
  103. package/dist/collection/components/button/button.js +14 -126
  104. package/dist/collection/components/button/button.js.map +1 -0
  105. package/dist/collection/components/button/index.js +5 -0
  106. package/dist/collection/components/button/index.js.map +1 -0
  107. package/dist/collection/components/button-menu/button-menu.css +46 -0
  108. package/dist/collection/components/button-menu/button-menu.js +78 -0
  109. package/dist/collection/components/button-menu/button-menu.js.map +1 -0
  110. package/dist/collection/components/certificate-decoder/certificate-decoder.css +456 -44
  111. package/dist/collection/components/certificate-decoder/certificate-decoder.js +109 -101
  112. package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -0
  113. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +6 -11
  114. package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -0
  115. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +5 -5
  116. package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -0
  117. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +5 -6
  118. package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -0
  119. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +5 -5
  120. package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -0
  121. package/dist/collection/components/certificate-details-parts/attributes/index.js +16 -15
  122. package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -0
  123. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +5 -5
  124. package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -0
  125. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +5 -5
  126. package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -0
  127. package/dist/collection/components/certificate-details-parts/attributes/name_part.js +4 -3
  128. package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -0
  129. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +5 -4
  130. package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -0
  131. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +5 -5
  132. package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -0
  133. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +5 -5
  134. package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -0
  135. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +6 -13
  136. package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -0
  137. package/dist/collection/components/certificate-details-parts/basic_information.js +4 -3
  138. package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -0
  139. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +5 -5
  140. package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -0
  141. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +5 -5
  142. package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -0
  143. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +2 -1
  144. package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -0
  145. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +10 -15
  146. package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -0
  147. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +6 -7
  148. package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -0
  149. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +5 -6
  150. package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -0
  151. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +8 -12
  152. package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -0
  153. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +5 -6
  154. package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -0
  155. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +26 -27
  156. package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -0
  157. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +5 -7
  158. package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -0
  159. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +8 -13
  160. package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -0
  161. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +4 -3
  162. package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -0
  163. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +6 -6
  164. package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -0
  165. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +5 -5
  166. package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -0
  167. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +5 -5
  168. package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -0
  169. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +5 -6
  170. package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -0
  171. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +7 -7
  172. package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -0
  173. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +8 -7
  174. package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -0
  175. package/dist/collection/components/certificate-details-parts/extensions/index.js +46 -45
  176. package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -0
  177. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +8 -9
  178. package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -0
  179. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +7 -11
  180. package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -0
  181. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +5 -5
  182. package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -0
  183. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +5 -5
  184. package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -0
  185. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +5 -5
  186. package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -0
  187. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +8 -11
  188. package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -0
  189. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +4 -3
  190. package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -0
  191. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +5 -5
  192. package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -0
  193. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +5 -5
  194. package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -0
  195. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +6 -7
  196. package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -0
  197. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +5 -4
  198. package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -0
  199. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +6 -7
  200. package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -0
  201. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +13 -16
  202. package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -0
  203. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +4 -3
  204. package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -0
  205. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +8 -9
  206. package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -0
  207. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +10 -15
  208. package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -0
  209. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +7 -9
  210. package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -0
  211. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +4 -3
  212. package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -0
  213. package/dist/collection/components/certificate-details-parts/holder.js +8 -11
  214. package/dist/collection/components/certificate-details-parts/holder.js.map +1 -0
  215. package/dist/collection/components/certificate-details-parts/index.js +1 -0
  216. package/dist/collection/components/certificate-details-parts/index.js.map +1 -0
  217. package/dist/collection/components/certificate-details-parts/issuer.js +5 -4
  218. package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -0
  219. package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -4
  220. package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -0
  221. package/dist/collection/components/certificate-details-parts/miscellaneous.js +8 -13
  222. package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -0
  223. package/dist/collection/components/certificate-details-parts/public_key.js +8 -7
  224. package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -0
  225. package/dist/collection/components/certificate-details-parts/revoked_certificates.js +9 -11
  226. package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -0
  227. package/dist/collection/components/certificate-details-parts/row.js +13 -18
  228. package/dist/collection/components/certificate-details-parts/row.js.map +1 -0
  229. package/dist/collection/components/certificate-details-parts/signature.js +5 -4
  230. package/dist/collection/components/certificate-details-parts/signature.js.map +1 -0
  231. package/dist/collection/components/certificate-details-parts/subject_name.js +4 -3
  232. package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -0
  233. package/dist/collection/components/certificate-details-parts/thumbprints.js +4 -3
  234. package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -0
  235. package/dist/collection/components/certificate-summary/certificate-summary.js +9 -77
  236. package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -0
  237. package/dist/collection/components/certificate-summary/index.js +5 -0
  238. package/dist/collection/components/certificate-summary/index.js.map +1 -0
  239. package/dist/collection/components/certificate-viewer/certificate-viewer.css +470 -104
  240. package/dist/collection/components/certificate-viewer/certificate-viewer.js +206 -178
  241. package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -0
  242. package/dist/collection/components/certificates-viewer/certificates-viewer.css +540 -267
  243. package/dist/collection/components/certificates-viewer/certificates-viewer.js +261 -266
  244. package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -0
  245. package/dist/collection/components/circular-progress/circular-progress.css +2 -11
  246. package/dist/collection/components/circular-progress/circular-progress.js +60 -63
  247. package/dist/collection/components/circular-progress/circular-progress.js.map +1 -0
  248. package/dist/collection/components/crl-viewer/crl-viewer.js +166 -139
  249. package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -0
  250. package/dist/collection/components/csr-viewer/csr-viewer.js +149 -124
  251. package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -0
  252. package/dist/collection/components/highlight-words/highlight-words.css +1 -9
  253. package/dist/collection/components/highlight-words/highlight-words.js +35 -28
  254. package/dist/collection/components/highlight-words/highlight-words.js.map +1 -0
  255. package/dist/collection/components/icons/actions.js +16 -0
  256. package/dist/collection/components/icons/actions.js.map +1 -0
  257. package/dist/collection/components/icons/arrow_bottom.js +16 -0
  258. package/dist/collection/components/icons/arrow_bottom.js.map +1 -0
  259. package/dist/collection/components/icons/arrow_top.js +16 -0
  260. package/dist/collection/components/icons/arrow_top.js.map +1 -0
  261. package/dist/collection/components/icons/cross.js +16 -0
  262. package/dist/collection/components/icons/cross.js.map +1 -0
  263. package/dist/collection/components/icons/details.js +16 -0
  264. package/dist/collection/components/icons/details.js.map +1 -0
  265. package/dist/collection/components/icons/download.js +16 -0
  266. package/dist/collection/components/icons/download.js.map +1 -0
  267. package/dist/collection/components/icons/index.js +11 -0
  268. package/dist/collection/components/icons/index.js.map +1 -0
  269. package/dist/collection/components/icons/link.js +16 -0
  270. package/dist/collection/components/icons/link.js.map +1 -0
  271. package/dist/collection/components/link/index.js +5 -0
  272. package/dist/collection/components/link/index.js.map +1 -0
  273. package/dist/collection/components/link/link.js +9 -61
  274. package/dist/collection/components/link/link.js.map +1 -0
  275. package/dist/collection/components/text-hider/text-hider.css +9 -36
  276. package/dist/collection/components/text-hider/text-hider.js +21 -68
  277. package/dist/collection/components/text-hider/text-hider.js.map +1 -0
  278. package/dist/collection/components/typography/index.js +5 -0
  279. package/dist/collection/components/typography/index.js.map +1 -0
  280. package/dist/collection/components/typography/typography.js +39 -126
  281. package/dist/collection/components/typography/typography.js.map +1 -0
  282. package/dist/collection/constants/logs.js +1 -0
  283. package/dist/collection/constants/logs.js.map +1 -0
  284. package/dist/collection/constants/oids.js +5 -2
  285. package/dist/collection/constants/oids.js.map +1 -0
  286. package/dist/collection/crypto/asn_data.js +13 -7
  287. package/dist/collection/crypto/asn_data.js.map +1 -0
  288. package/dist/collection/crypto/attribute.js +11 -10
  289. package/dist/collection/crypto/attribute.js.map +1 -0
  290. package/dist/collection/crypto/crl.js +9 -8
  291. package/dist/collection/crypto/crl.js.map +1 -0
  292. package/dist/collection/crypto/csr.js +11 -10
  293. package/dist/collection/crypto/csr.js.map +1 -0
  294. package/dist/collection/crypto/extension.js +16 -15
  295. package/dist/collection/crypto/extension.js.map +1 -0
  296. package/dist/collection/crypto/index.js +1 -0
  297. package/dist/collection/crypto/index.js.map +1 -0
  298. package/dist/collection/crypto/name.js +15 -9
  299. package/dist/collection/crypto/name.js.map +1 -0
  300. package/dist/collection/crypto/provider.js +4 -3
  301. package/dist/collection/crypto/provider.js.map +1 -0
  302. package/dist/collection/crypto/utils.js +4 -3
  303. package/dist/collection/crypto/utils.js.map +1 -0
  304. package/dist/collection/crypto/x509_attribute_certificate.js +9 -8
  305. package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -0
  306. package/dist/collection/crypto/x509_certificate.js +12 -11
  307. package/dist/collection/crypto/x509_certificate.js.map +1 -0
  308. package/dist/collection/index.js +1 -0
  309. package/dist/collection/index.js.map +1 -0
  310. package/dist/collection/locales/en.json +4 -3
  311. package/dist/collection/utils/date_formatter.js +3 -2
  312. package/dist/collection/utils/date_formatter.js.map +1 -0
  313. package/dist/collection/utils/download.js +3 -2
  314. package/dist/collection/utils/download.js.map +1 -0
  315. package/dist/collection/utils/download_from_buffer.js +1 -0
  316. package/dist/collection/utils/download_from_buffer.js.map +1 -0
  317. package/dist/collection/utils/get_string_by_oid.js +2 -1
  318. package/dist/collection/utils/get_string_by_oid.js.map +1 -0
  319. package/dist/collection/utils/index.js +2 -1
  320. package/dist/collection/utils/index.js.map +1 -0
  321. package/dist/collection/utils/is_link.js +1 -0
  322. package/dist/collection/utils/is_link.js.map +1 -0
  323. package/dist/collection/utils/l10n.js +2 -1
  324. package/dist/collection/utils/l10n.js.map +1 -0
  325. package/dist/collection/utils/read_file.js +1 -0
  326. package/dist/collection/utils/read_file.js.map +1 -0
  327. package/dist/collection/utils/third_party_links.js +1 -0
  328. package/dist/collection/utils/third_party_links.js.map +1 -0
  329. package/dist/collection/utils/validator.js +1 -0
  330. package/dist/collection/utils/validator.js.map +1 -0
  331. package/dist/collection/www-copy/index.js +138 -32
  332. package/dist/esm/arrow_top-efd3a56d.js +34 -0
  333. package/dist/esm/arrow_top-efd3a56d.js.map +1 -0
  334. package/dist/esm/button-35146bdd.js +74 -0
  335. package/dist/esm/button-35146bdd.js.map +1 -0
  336. package/dist/esm/{certification_request-db83dd19.js → certification_request-5cadde9f.js} +175 -11
  337. package/dist/esm/certification_request-5cadde9f.js.map +1 -0
  338. package/dist/esm/{crl-34288843.js → crl-11670c3e.js} +7 -6
  339. package/dist/esm/crl-11670c3e.js.map +1 -0
  340. package/dist/esm/download-0cc3077a.js +21 -0
  341. package/dist/esm/download-0cc3077a.js.map +1 -0
  342. package/dist/esm/download-57c5bf8f.js +470 -0
  343. package/dist/esm/download-57c5bf8f.js.map +1 -0
  344. package/dist/esm/index-4079bbb5.js +2448 -0
  345. package/dist/esm/index-4079bbb5.js.map +1 -0
  346. package/dist/esm/index.js +3 -1
  347. package/dist/esm/index.js.map +1 -0
  348. package/dist/esm/loader.js +6 -12
  349. package/dist/esm/loader.js.map +1 -0
  350. package/dist/esm/{miscellaneous-ee8e1994.js → miscellaneous-1d4e8b41.js} +54 -38
  351. package/dist/esm/miscellaneous-1d4e8b41.js.map +1 -0
  352. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +80 -23
  353. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
  354. package/dist/esm/peculiar-button-menu_3.entry.js +104 -0
  355. package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -0
  356. package/dist/esm/peculiar-certificate-decoder.entry.js +30 -19
  357. package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -0
  358. package/dist/esm/peculiar-certificate-viewer.entry.js +34 -11
  359. package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -0
  360. package/dist/esm/peculiar-certificates-viewer.entry.js +183 -85
  361. package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -0
  362. package/dist/esm/peculiar-text-hider.entry.js +7 -13
  363. package/dist/esm/peculiar-text-hider.entry.js.map +1 -0
  364. package/dist/esm/peculiar.js +8 -58
  365. package/dist/esm/peculiar.js.map +1 -0
  366. package/dist/esm/{x509_certificate-1acb3564.js → x509_certificate-dfae6999.js} +4 -3
  367. package/dist/esm/x509_certificate-dfae6999.js.map +1 -0
  368. package/dist/esm-es5/arrow_top-efd3a56d.js +19 -0
  369. package/dist/esm-es5/arrow_top-efd3a56d.js.map +1 -0
  370. package/dist/esm-es5/button-35146bdd.js +19 -0
  371. package/dist/esm-es5/button-35146bdd.js.map +1 -0
  372. package/dist/esm-es5/certification_request-5cadde9f.js +97 -0
  373. package/dist/esm-es5/certification_request-5cadde9f.js.map +1 -0
  374. package/dist/esm-es5/crl-11670c3e.js +33 -0
  375. package/dist/esm-es5/crl-11670c3e.js.map +1 -0
  376. package/dist/esm-es5/download-0cc3077a.js +12 -0
  377. package/dist/esm-es5/download-0cc3077a.js.map +1 -0
  378. package/dist/esm-es5/download-57c5bf8f.js +19 -0
  379. package/dist/esm-es5/download-57c5bf8f.js.map +1 -0
  380. package/dist/esm-es5/index-4079bbb5.js +6 -0
  381. package/dist/esm-es5/index-4079bbb5.js.map +1 -0
  382. package/dist/esm-es5/index.js +5 -0
  383. package/dist/esm-es5/index.js.map +1 -0
  384. package/dist/esm-es5/loader.js +5 -0
  385. package/dist/esm-es5/loader.js.map +1 -0
  386. package/dist/esm-es5/miscellaneous-1d4e8b41.js +355 -0
  387. package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +1 -0
  388. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +110 -0
  389. package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
  390. package/dist/esm-es5/peculiar-button-menu_3.entry.js +12 -0
  391. package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -0
  392. package/dist/esm-es5/peculiar-certificate-decoder.entry.js +12 -0
  393. package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -0
  394. package/dist/esm-es5/peculiar-certificate-viewer.entry.js +5 -0
  395. package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -0
  396. package/dist/esm-es5/peculiar-certificates-viewer.entry.js +33 -0
  397. package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -0
  398. package/dist/esm-es5/peculiar-text-hider.entry.js +5 -0
  399. package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -0
  400. package/dist/esm-es5/peculiar.js +5 -0
  401. package/dist/esm-es5/peculiar.js.map +1 -0
  402. package/dist/esm-es5/x509_certificate-dfae6999.js +12 -0
  403. package/dist/esm-es5/x509_certificate-dfae6999.js.map +1 -0
  404. package/dist/index.js +1 -1
  405. package/dist/peculiar/index.esm.js +2 -1
  406. package/dist/peculiar/index.esm.js.map +1 -0
  407. package/dist/peculiar/locales/en.json +4 -3
  408. package/dist/peculiar/p-0b356bb5.js +6 -0
  409. package/dist/peculiar/p-0b356bb5.js.map +1 -0
  410. package/dist/peculiar/p-0bdcdbf7.system.js +355 -0
  411. package/dist/peculiar/p-0bdcdbf7.system.js.map +1 -0
  412. package/dist/peculiar/p-17e3c47b.js +12 -0
  413. package/dist/peculiar/p-17e3c47b.js.map +1 -0
  414. package/dist/peculiar/p-23555789.system.entry.js +34 -0
  415. package/dist/peculiar/p-23555789.system.entry.js.map +1 -0
  416. package/dist/peculiar/p-2fcad8cb.system.js +20 -0
  417. package/dist/peculiar/p-2fcad8cb.system.js.map +1 -0
  418. package/dist/peculiar/p-31586b23.system.js +13 -0
  419. package/dist/peculiar/p-31586b23.system.js.map +1 -0
  420. package/dist/peculiar/p-43eb3721.js +33 -0
  421. package/dist/peculiar/p-43eb3721.js.map +1 -0
  422. package/dist/peculiar/p-5823e6e8.entry.js +12 -0
  423. package/dist/peculiar/p-5823e6e8.entry.js.map +1 -0
  424. package/dist/peculiar/p-596836a7.entry.js +33 -0
  425. package/dist/peculiar/p-596836a7.entry.js.map +1 -0
  426. package/dist/peculiar/p-5aabeba7.system.js +6 -0
  427. package/dist/peculiar/p-5aabeba7.system.js.map +1 -0
  428. package/dist/peculiar/p-6667fe6e.system.js +34 -0
  429. package/dist/peculiar/p-6667fe6e.system.js.map +1 -0
  430. package/dist/peculiar/p-6e79b9c8.js +12 -0
  431. package/dist/peculiar/p-6e79b9c8.js.map +1 -0
  432. package/dist/peculiar/p-709994c1.js +19 -0
  433. package/dist/peculiar/p-709994c1.js.map +1 -0
  434. package/dist/peculiar/p-74c241e7.js +97 -0
  435. package/dist/peculiar/p-74c241e7.js.map +1 -0
  436. package/dist/peculiar/p-7f9beaa8.js +19 -0
  437. package/dist/peculiar/p-7f9beaa8.js.map +1 -0
  438. package/dist/peculiar/p-80832207.system.js +5 -0
  439. package/dist/peculiar/p-80832207.system.js.map +1 -0
  440. package/dist/peculiar/p-8748391f.system.entry.js +5 -0
  441. package/dist/peculiar/p-8748391f.system.entry.js.map +1 -0
  442. package/dist/peculiar/p-882e1281.entry.js +12 -0
  443. package/dist/peculiar/p-882e1281.entry.js.map +1 -0
  444. package/dist/peculiar/p-90459cec.entry.js +5 -0
  445. package/dist/peculiar/p-90459cec.entry.js.map +1 -0
  446. package/dist/peculiar/p-97688065.js +355 -0
  447. package/dist/peculiar/p-97688065.js.map +1 -0
  448. package/dist/peculiar/p-99e3aa0c.system.entry.js +111 -0
  449. package/dist/peculiar/p-99e3aa0c.system.entry.js.map +1 -0
  450. package/dist/peculiar/p-9b4a8101.system.entry.js +5 -0
  451. package/dist/peculiar/p-9b4a8101.system.entry.js.map +1 -0
  452. package/dist/peculiar/p-a053c132.js +19 -0
  453. package/dist/peculiar/p-a053c132.js.map +1 -0
  454. package/dist/peculiar/p-a41ecd82.entry.js +5 -0
  455. package/dist/peculiar/p-a41ecd82.entry.js.map +1 -0
  456. package/dist/peculiar/p-ae9189f6.system.js +19 -0
  457. package/dist/peculiar/p-ae9189f6.system.js.map +1 -0
  458. package/dist/peculiar/p-bd485115.system.entry.js +13 -0
  459. package/dist/peculiar/p-bd485115.system.entry.js.map +1 -0
  460. package/dist/peculiar/p-c0a298fd.system.js +97 -0
  461. package/dist/peculiar/p-c0a298fd.system.js.map +1 -0
  462. package/dist/peculiar/p-daf23673.system.js +20 -0
  463. package/dist/peculiar/p-daf23673.system.js.map +1 -0
  464. package/dist/peculiar/p-e1960173.system.js +5 -0
  465. package/dist/peculiar/p-e1960173.system.js.map +1 -0
  466. package/dist/peculiar/p-e2cc7410.entry.js +110 -0
  467. package/dist/peculiar/p-e2cc7410.entry.js.map +1 -0
  468. package/dist/peculiar/p-e39de121.system.entry.js +13 -0
  469. package/dist/peculiar/p-e39de121.system.entry.js.map +1 -0
  470. package/dist/peculiar/p-e6a3b4d4.system.js +13 -0
  471. package/dist/peculiar/p-e6a3b4d4.system.js.map +1 -0
  472. package/dist/peculiar/peculiar.css +1 -1
  473. package/dist/peculiar/peculiar.esm.js +2 -1
  474. package/dist/peculiar/peculiar.esm.js.map +1 -0
  475. package/dist/peculiar/peculiar.js +127 -0
  476. package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +15 -3
  477. package/dist/types/components/button/button.d.ts +5 -16
  478. package/dist/types/components/button/index.d.ts +2 -0
  479. package/dist/types/components/button-menu/button-menu.d.ts +21 -0
  480. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +9 -6
  481. package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +1 -1
  482. package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -3
  483. package/dist/types/components/certificate-summary/index.d.ts +1 -0
  484. package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +13 -5
  485. package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +22 -11
  486. package/dist/types/components/crl-viewer/crl-viewer.d.ts +13 -5
  487. package/dist/types/components/csr-viewer/csr-viewer.d.ts +13 -5
  488. package/dist/types/components/icons/actions.d.ts +12 -0
  489. package/dist/types/components/icons/arrow_bottom.d.ts +12 -0
  490. package/dist/types/components/icons/arrow_top.d.ts +12 -0
  491. package/dist/types/components/icons/cross.d.ts +12 -0
  492. package/dist/types/components/icons/details.d.ts +12 -0
  493. package/dist/types/components/icons/download.d.ts +12 -0
  494. package/dist/types/components/icons/index.d.ts +7 -0
  495. package/dist/types/components/icons/link.d.ts +12 -0
  496. package/dist/types/components/link/index.d.ts +1 -0
  497. package/dist/types/components/link/link.d.ts +6 -6
  498. package/dist/types/components/text-hider/text-hider.d.ts +0 -3
  499. package/dist/types/components/typography/index.d.ts +1 -0
  500. package/dist/types/components/typography/typography.d.ts +10 -20
  501. package/dist/types/components.d.ts +74 -175
  502. package/dist/types/constants/oids.d.ts +3 -1
  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 -1441
  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 -1410
  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-08aba71b.js +0 -69
  538. package/dist/peculiar/p-0f7868b1.js +0 -11
  539. package/dist/peculiar/p-2f213160.entry.js +0 -11
  540. package/dist/peculiar/p-3c4e4245.js +0 -79
  541. package/dist/peculiar/p-48a620ff.js +0 -32
  542. package/dist/peculiar/p-57b89412.entry.js +0 -4
  543. package/dist/peculiar/p-610b85e3.entry.js +0 -4
  544. package/dist/peculiar/p-6d37c8b5.entry.js +0 -4
  545. package/dist/peculiar/p-711b4e1e.js +0 -18
  546. package/dist/peculiar/p-81ae1305.entry.js +0 -4
  547. package/dist/peculiar/p-81d33fb4.entry.js +0 -4
  548. package/dist/peculiar/p-918aeee4.entry.js +0 -4
  549. package/dist/peculiar/p-9bfd4f58.entry.js +0 -18
  550. package/dist/peculiar/p-9f4ee110.js +0 -22
  551. package/dist/peculiar/p-df53fbcc.entry.js +0 -4
  552. package/dist/peculiar/p-ec250cc4.js +0 -12
  553. package/dist/peculiar/p-f7683ba5.js +0 -5
  554. package/dist/types/components/button-split/button-split.d.ts +0 -21
@@ -8,38 +8,18 @@
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
- import { Component, h, Prop, State, Watch, Host, Event, } from '@stencil/core';
12
- import { X509Certificate } from '../../crypto';
13
- import { OIDs } from '../../constants/oids';
14
- import { l10n } from '../../utils';
11
+ import { h, Host, Build, } from "@stencil/core";
12
+ import { X509Certificate } from "../../crypto";
13
+ import { OIDs } from "../../constants/oids";
14
+ import { l10n } from "../../utils";
15
+ import { Typography } from "../typography";
16
+ import { CertificateSummary } from "../certificate-summary";
17
+ import { Button } from "../button";
18
+ import { DownloadIcon, LinkIcon, DetailsIcon, ArrowBottomIcon, ArrowTopIcon, CrossIcon, } from "../icons";
15
19
  export class CertificatesViewer {
16
20
  constructor() {
17
- /**
18
- * List of certificates values for decode and show in the list.
19
- * <br />
20
- * **NOTE**: If you do not provide a `name` value when
21
- * invocing the component it will take the first Subject CN value.
22
- * <br />
23
- * **NOTE**: If you do not provide a `tests` this column will be ommited from the rendered page.
24
- * <br />
25
- * **NOTE**: If the supplied certificates are self-signed the issuer column will be ommited.
26
- */
27
- this.certificates = [];
28
- /**
29
- * Use filter in the list when search is changed.
30
- */
31
- this.filterWithSearch = true;
32
- /**
33
- * Use highlight chapters in the list when search is changed.
34
- */
35
- this.highlightWithSearch = true;
36
- this.search = '';
37
- this.certificatesDecoded = [];
38
- this.isDecodeInProcess = true;
39
- this.isHasTests = false;
40
21
  this.isHasRoots = false;
41
- this.handleClickDetails = (certificate, e) => {
42
- e.stopPropagation();
22
+ this.handleClickDetails = (certificate) => {
43
23
  this.certificateSelectedForDetails = certificate;
44
24
  this.detailsOpen.emit(certificate);
45
25
  };
@@ -47,12 +27,33 @@ export class CertificatesViewer {
47
27
  this.certificateSelectedForDetails = undefined;
48
28
  this.detailsClose.emit();
49
29
  };
50
- this.handleSearch = (e) => {
51
- this.search = e.target.value.trim();
30
+ this.handleSearch = (event) => {
31
+ this.search = event.target.value.trim();
52
32
  };
33
+ this.certificates = [];
34
+ this.filterWithSearch = true;
35
+ this.highlightWithSearch = true;
36
+ this.mobileMediaQueryString = '(max-width: 900px)';
37
+ this.mobileScreenView = false;
38
+ this.search = '';
39
+ this.certificatesDecoded = [];
40
+ this.expandedRow = undefined;
41
+ this.certificateSelectedForDetails = undefined;
42
+ this.isDecodeInProcess = true;
43
+ }
44
+ handleMediaQueryChange(event) {
45
+ this.mobileScreenView = event.matches;
53
46
  }
54
47
  componentWillLoad() {
55
48
  this.certificatesDecodeAndSet();
49
+ if (Build.isBrowser) {
50
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
51
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
52
+ this.mobileScreenView = this.mobileMediaQuery.matches;
53
+ }
54
+ }
55
+ disconnectedCallback() {
56
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
56
57
  }
57
58
  watchCertificates(newValue, oldValue) {
58
59
  /**
@@ -63,7 +64,6 @@ export class CertificatesViewer {
63
64
  }
64
65
  }
65
66
  async certificatesDecodeAndSet() {
66
- let hasTests = false;
67
67
  let hasRoots = false;
68
68
  if (!Array.isArray(this.certificates)) {
69
69
  return;
@@ -82,30 +82,21 @@ export class CertificatesViewer {
82
82
  if (!hasRoots && decoded.isRoot) {
83
83
  hasRoots = true;
84
84
  }
85
- if (!hasTests) {
86
- if (certificate.tests
87
- && (certificate.tests.expired || certificate.tests.revoked || certificate.tests.valid)) {
88
- hasTests = true;
89
- }
90
- }
91
85
  }
92
86
  catch (error) {
93
87
  console.error('Error certificate parse:', error);
94
88
  }
95
89
  }
96
- this.isHasTests = hasTests;
97
90
  this.isHasRoots = hasRoots;
98
91
  this.isDecodeInProcess = false;
99
92
  this.certificatesDecoded = data;
100
93
  }
101
94
  // eslint-disable-next-line class-methods-use-this
102
- handleClickDownloadAsPem(certificate, e) {
103
- e.stopPropagation();
95
+ handleClickDownloadAsPem(certificate) {
104
96
  certificate.body.downloadAsPEM(certificate.name || certificate.body.commonName);
105
97
  }
106
98
  // eslint-disable-next-line class-methods-use-this
107
- handleClickDownloadAsDer(certificate, e) {
108
- e.stopPropagation();
99
+ handleClickDownloadAsDer(certificate) {
109
100
  certificate.body.downloadAsDER(certificate.name || certificate.body.commonName);
110
101
  }
111
102
  handleClickRow(index) {
@@ -115,39 +106,69 @@ export class CertificatesViewer {
115
106
  : index;
116
107
  }
117
108
  getMaxColSpanValue() {
118
- let colSpan = 4;
119
- if (this.isHasTests) {
120
- colSpan += 1;
121
- }
109
+ let colSpan = 5;
122
110
  if (!this.isHasRoots) {
123
111
  colSpan += 1;
124
112
  }
125
113
  return colSpan;
126
114
  }
127
- renderExpandedRow(certificate) {
128
- const colSpan = this.getMaxColSpanValue();
129
- return (h("tr", { class: "expanded_summary" },
130
- h("td", { colSpan: colSpan },
131
- h("peculiar-certificate-summary", { certificate: certificate, showIssuer: !certificate.isRoot }))));
115
+ renderCertificateButtonActions(certificate) {
116
+ var _a, _b, _c;
117
+ const isHasTestURLs = certificate.tests
118
+ && (certificate.tests.expired || certificate.tests.revoked || certificate.tests.valid);
119
+ return (h("peculiar-button-menu", { class: "button_table_cell", groups: [
120
+ {
121
+ title: l10n.getString('previewCertificate'),
122
+ options: [
123
+ {
124
+ text: l10n.getString('viewDetails'),
125
+ startIcon: h(DetailsIcon, null),
126
+ onClick: () => this.handleClickDetails(certificate.body),
127
+ },
128
+ ],
129
+ },
130
+ {
131
+ title: l10n.getString('downloadOptions'),
132
+ options: [
133
+ {
134
+ text: l10n.getString('download.pem'),
135
+ startIcon: h(DownloadIcon, null),
136
+ onClick: () => this.handleClickDownloadAsPem(certificate),
137
+ },
138
+ {
139
+ text: l10n.getString('download.der'),
140
+ startIcon: h(DownloadIcon, null),
141
+ onClick: () => this.handleClickDownloadAsDer(certificate),
142
+ },
143
+ ],
144
+ },
145
+ ...(isHasTestURLs ? [{
146
+ title: l10n.getString('testURLs'),
147
+ options: [
148
+ ...(((_a = certificate.tests) === null || _a === void 0 ? void 0 : _a.valid) ? [{
149
+ text: l10n.getString('valid'),
150
+ href: certificate.tests.valid,
151
+ startIcon: h(LinkIcon, null),
152
+ }] : []),
153
+ ...(((_b = certificate.tests) === null || _b === void 0 ? void 0 : _b.revoked) ? [{
154
+ text: l10n.getString('revoked'),
155
+ href: certificate.tests.revoked,
156
+ startIcon: h(LinkIcon, null),
157
+ }] : []),
158
+ ...(((_c = certificate.tests) === null || _c === void 0 ? void 0 : _c.expired) ? [{
159
+ text: l10n.getString('expired'),
160
+ href: certificate.tests.expired,
161
+ startIcon: h(LinkIcon, null),
162
+ }] : []),
163
+ ],
164
+ }] : []),
165
+ ] }));
132
166
  }
133
- // eslint-disable-next-line class-methods-use-this
134
- renderCertificateTests(tests) {
135
- if (!tests) {
136
- return null;
137
- }
138
- const elems = [];
139
- if (tests.valid) {
140
- elems.push((h("peculiar-button", { class: "button_table_action", href: tests.valid, target: "_blank" }, l10n.getString('valid'))));
141
- }
142
- if (tests.revoked) {
143
- elems.push((h("peculiar-button", { class: "button_table_action", href: tests.revoked, target: "_blank" }, l10n.getString('revoked'))));
144
- }
145
- if (tests.expired) {
146
- elems.push((h("peculiar-button", { class: "button_table_action", href: tests.expired, target: "_blank" }, l10n.getString('expired'))));
147
- }
148
- return elems;
167
+ renderExpandedRow(certificate) {
168
+ const colSpan = this.getMaxColSpanValue() - 2;
169
+ return (h("tr", { class: "expanded_summary" }, h("td", null), h("td", { colSpan: colSpan }, h(CertificateSummary, { certificate: certificate, showIssuer: !certificate.isRoot })), h("td", null)));
149
170
  }
150
- renderContentState() {
171
+ renderCertificatesRows() {
151
172
  const searchHighlight = this.highlightWithSearch
152
173
  ? this.search
153
174
  : '';
@@ -170,49 +191,26 @@ export class CertificatesViewer {
170
191
  return;
171
192
  }
172
193
  }
194
+ if (this.mobileScreenView) {
195
+ content.push([
196
+ h("tr", { class: {
197
+ certificate_row: true,
198
+ m_expanded: isExpandedRow,
199
+ }, key: certificate.body.thumbprints['SHA-1'] }, h("td", null, h("table", null, h("tbody", null, !this.isHasRoots && (h("tr", null, h("td", null, h(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('issuer'))), h("td", null, h(Typography, { variant: "b2", color: "black" }, h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName))))), h("tr", null, h("td", null, h(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('name'))), h("td", null, h(Typography, { variant: "b2", color: "black" }, h("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName)))), h("tr", null, h("td", null, h(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('publicKey'))), h("td", null, h(Typography, { variant: "b2", color: "black" }, h("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue)))), h("tr", null, h("td", null, h(Typography, { variant: "b2", color: "gray-9" }, l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), h("td", null, h(Typography, { variant: "b2", color: "black" }, h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1'])))), isExpandedRow && this.renderExpandedRow(certificate.body), h("tr", { class: "certificate_row_actions" }, h("td", null, this.renderCertificateButtonActions(certificate), h(Button
200
+ // eslint-disable-next-line react/jsx-no-bind
201
+ , {
202
+ // eslint-disable-next-line react/jsx-no-bind
203
+ onClick: this.handleClickRow.bind(this, index), startIcon: isExpandedRow ? h(ArrowTopIcon, null) : h(ArrowBottomIcon, null)
204
+ }))))))),
205
+ ]);
206
+ return;
207
+ }
173
208
  content.push([
174
209
  h("tr", { class: {
175
- expanded: isExpandedRow,
176
- }, onClick: this.handleClickRow.bind(this, index), key: certificate.body.thumbprints['SHA-1'] },
177
- !this.isHasRoots && (h("td", null,
178
- h("peculiar-typography", { class: "mobile_title", color: "grey_5" },
179
- l10n.getString('issuer'),
180
- ":"),
181
- h("peculiar-typography", { class: "content" },
182
- h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName)))),
183
- h("td", null,
184
- h("peculiar-typography", { class: "mobile_title", color: "grey_5" },
185
- l10n.getString('name'),
186
- ":"),
187
- h("peculiar-typography", { class: "content" },
188
- h("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName))),
189
- h("td", null,
190
- h("peculiar-typography", { class: "mobile_title", color: "grey_5" },
191
- l10n.getString('publicKey'),
192
- ":"),
193
- h("peculiar-typography", { class: "content" },
194
- h("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue))),
195
- h("td", null,
196
- h("peculiar-typography", { class: "mobile_title", color: "grey_5" },
197
- l10n.getString('fingerprint'),
198
- "\u00A0 (SHA-1):"),
199
- h("peculiar-typography", { class: "content", monospace: true },
200
- h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1']))),
201
- h("td", { class: "align_center" },
202
- h("peculiar-typography", { class: "mobile_title", color: "grey_5" },
203
- l10n.getString('actions'),
204
- ":"),
205
- h("span", { class: "content" },
206
- h("peculiar-button", { onClick: this.handleClickDetails.bind(this, certificate.body), class: "button_table_action" }, l10n.getString('details')),
207
- h("peculiar-button-split", { onClick: this.handleClickDownloadAsPem.bind(this, certificate), actions: [{
208
- text: l10n.getString('download.der'),
209
- onClick: this.handleClickDownloadAsDer.bind(this, certificate),
210
- }], class: "button_table_action" }, l10n.getString('download.pem')))),
211
- this.isHasTests && (h("td", { class: "align_center" },
212
- h("peculiar-typography", { class: "mobile_title", color: "grey_5" },
213
- l10n.getString('testURLs'),
214
- ":"),
215
- h("span", { class: "content" }, this.renderCertificateTests(certificate.tests))))),
210
+ m_expanded: isExpandedRow,
211
+ }, key: certificate.body.thumbprints['SHA-1'] }, h("td", null, h(Button, { class: "button_table_cell",
212
+ // eslint-disable-next-line react/jsx-no-bind
213
+ onClick: this.handleClickRow.bind(this, index), startIcon: isExpandedRow ? h(ArrowTopIcon, null) : h(ArrowBottomIcon, null) })), !this.isHasRoots && (h("td", null, h(Typography, null, h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName)))), h("td", null, h(Typography, null, h("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName))), h("td", null, h(Typography, null, h("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue))), h("td", null, h(Typography, null, h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1']))), h("td", null, this.renderCertificateButtonActions(certificate))),
216
214
  isExpandedRow && this.renderExpandedRow(certificate.body),
217
215
  ]);
218
216
  });
@@ -222,194 +220,191 @@ export class CertificatesViewer {
222
220
  if (!this.certificateSelectedForDetails) {
223
221
  return null;
224
222
  }
225
- return (h("div", { class: "modal_wrapper", role: "presentation", "aria-hidden": "false", part: "presentation" },
226
- h("div", { class: "modal_backdrop", onClick: this.handleModalClose, "aria-hidden": "true" }),
227
- h("div", { class: "modal_container", role: "dialog", part: "presentation_container" },
228
- h("header", { class: "modal_title" },
229
- h("peculiar-typography", { type: "h4" }, l10n.getString('certificateDetails')),
230
- h("button", { class: "modal_close", onClick: this.handleModalClose, type: "button", "aria-label": "Close", title: "Close" },
231
- h("svg", { width: "30", height: "30", viewBox: "0 0 30 30", xmlns: "http://www.w3.org/2000/svg" },
232
- h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.7204 14.375L21.0654 19.7185C21.3115 19.9658 21.3115 20.3693 21.0654 20.6154L20.615 21.0645C20.3689 21.3118 19.9667 21.3118 19.7181 21.0645L14.3744 15.721L9.03194 21.0645C8.78327 21.3118 8.3811 21.3118 8.13371 21.0645L7.68459 20.6154C7.43847 20.3693 7.43847 19.9658 7.68459 19.7185L13.0296 14.375L7.68459 9.03155C7.43847 8.78417 7.43847 8.38074 7.68459 8.13463L8.13371 7.68554C8.3811 7.43815 8.78327 7.43815 9.03194 7.68554L14.3744 13.029L19.7181 7.68554C19.9667 7.43815 20.3689 7.43815 20.615 7.68554L21.0654 8.13463C21.3115 8.38074 21.3115 8.78417 21.0654 9.03155L15.7204 14.375Z" })))),
233
- h("div", { class: "modal_content" },
234
- h("peculiar-certificate-viewer", { certificate: this.certificateSelectedForDetails })))));
223
+ return (h("div", { class: "modal_wrapper", role: "presentation", "aria-hidden": "false", part: "presentation" }, h("div", { class: "modal_backdrop", onClick: this.handleModalClose, "aria-hidden": "true" }), h("div", { class: "modal_container", role: "dialog", part: "presentation_container" }, h("header", { class: "modal_header" }, h(Typography, { variant: "h4" }, l10n.getString('certificateDetails')), h(Button, { onClick: this.handleModalClose, startIcon: h(CrossIcon, null) })), h("div", { class: "modal_content" }, h("peculiar-certificate-viewer", { certificate: this.certificateSelectedForDetails, mobileMediaQueryString: this.mobileMediaQueryString })))));
235
224
  }
236
225
  renderSearch() {
237
226
  if (!this.filterWithSearch && !this.highlightWithSearch) {
238
227
  return null;
239
228
  }
240
- return (h("div", { class: "search_section" },
241
- h("input", { onInput: this.handleSearch, type: "search", value: "", class: "input_search", disabled: !this.certificatesDecoded.length, placeholder: "Search" })));
229
+ return (h("div", { class: "search_section" }, h("input", { onInput: this.handleSearch, type: "search", value: "", class: "input_search t-b3 c-black", disabled: !this.certificatesDecoded.length, placeholder: "Search" })));
242
230
  }
243
231
  renderEmptyState() {
244
232
  const colSpan = this.getMaxColSpanValue();
245
- return (h("tr", null,
246
- h("td", { class: "status_wrapper", colSpan: colSpan },
247
- h("peculiar-typography", { type: "b1", align: "center" }, "There are no certificates available."))));
233
+ return (h("tr", null, h("td", { class: "status_wrapper", colSpan: colSpan }, h(Typography, { variant: "b1" }, "There are no certificates available."))));
248
234
  }
249
235
  renderEmptySearchState() {
250
236
  const colSpan = this.getMaxColSpanValue();
251
- return (h("tr", null,
252
- h("td", { class: "status_wrapper", colSpan: colSpan },
253
- h("peculiar-typography", { type: "b1", align: "center" },
254
- "No results found for \u201C",
255
- this.search,
256
- "\u201C"))));
237
+ return (h("tr", null, h("td", { class: "status_wrapper", colSpan: colSpan }, h(Typography, { variant: "b1" }, "No results found for \u201C", this.search, "\u201C"))));
257
238
  }
258
239
  // eslint-disable-next-line class-methods-use-this
259
240
  renderLoadingState() {
260
- return (h("div", { class: "loading_container" },
261
- h("peculiar-circular-progress", null)));
241
+ return (h("div", { class: "loading_container" }, h("peculiar-circular-progress", null)));
262
242
  }
263
- renderBody() {
243
+ renderTableBody() {
264
244
  if (this.isDecodeInProcess) {
265
245
  return null;
266
246
  }
267
247
  if (!this.certificatesDecoded.length) {
268
248
  return this.renderEmptyState();
269
249
  }
270
- const contentState = this.renderContentState();
271
- if (this.search && !contentState.length) {
250
+ const certificatesRows = this.renderCertificatesRows();
251
+ if (this.search && !certificatesRows.length) {
272
252
  return this.renderEmptySearchState();
273
253
  }
274
- return contentState;
254
+ return certificatesRows;
275
255
  }
276
256
  render() {
277
- return (h(Host, null,
278
- this.renderSearch(),
279
- h("table", { class: {
280
- m_extra: this.isHasTests || !this.isHasRoots,
281
- } },
282
- h("thead", null,
283
- h("tr", null,
284
- !this.isHasRoots && (h("th", { class: "col_issuer" },
285
- h("peculiar-typography", { type: "h7", align: "left" }, l10n.getString('issuer')))),
286
- h("th", { class: "col_name" },
287
- h("peculiar-typography", { type: "h7", align: "left" }, l10n.getString('name'))),
288
- h("th", { class: "col_public_key" },
289
- h("peculiar-typography", { type: "h7", align: "left" }, l10n.getString('publicKey'))),
290
- h("th", { class: "col_fingerprint" },
291
- h("peculiar-typography", { type: "h7", align: "left" },
292
- l10n.getString('fingerprint'),
293
- "\u00A0 (SHA-1)")),
294
- h("th", { class: "col_actions" },
295
- h("peculiar-typography", { type: "h7", align: "center" }, l10n.getString('actions'))),
296
- this.isHasTests && (h("th", { class: "col_tests" },
297
- h("peculiar-typography", { type: "h7", align: "center" }, l10n.getString('testURLs')))))),
298
- h("tbody", null, this.renderBody())),
299
- this.renderCertificateDetailsModal(),
300
- this.isDecodeInProcess && this.renderLoadingState()));
257
+ return (h(Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, this.renderSearch(), h("table", null, !this.mobileScreenView && (h("thead", null, h("tr", null, h("th", null), !this.isHasRoots && (h("th", { class: "col_issuer" }, h(Typography, { variant: "s2" }, l10n.getString('issuer')))), h("th", { class: "col_name" }, h(Typography, { variant: "s2" }, l10n.getString('name'))), h("th", { class: "col_public_key" }, h(Typography, { variant: "s2" }, l10n.getString('publicKey'))), h("th", { class: "col_fingerprint" }, h(Typography, { variant: "s2" }, l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), h("th", null)))), h("tbody", null, this.renderTableBody())), this.renderCertificateDetailsModal(), this.isDecodeInProcess && this.renderLoadingState()));
301
258
  }
302
259
  static get is() { return "peculiar-certificates-viewer"; }
303
260
  static get encapsulation() { return "shadow"; }
304
- static get originalStyleUrls() { return {
305
- "$": ["certificates-viewer.scss"]
306
- }; }
307
- static get styleUrls() { return {
308
- "$": ["certificates-viewer.css"]
309
- }; }
310
- static get properties() { return {
311
- "certificates": {
312
- "type": "unknown",
313
- "mutable": false,
314
- "complexType": {
315
- "original": "ICertificate[]",
316
- "resolved": "ICertificate[]",
317
- "references": {
318
- "ICertificate": {
319
- "location": "local"
261
+ static get originalStyleUrls() {
262
+ return {
263
+ "$": ["certificates-viewer.scss"]
264
+ };
265
+ }
266
+ static get styleUrls() {
267
+ return {
268
+ "$": ["certificates-viewer.css"]
269
+ };
270
+ }
271
+ static get properties() {
272
+ return {
273
+ "certificates": {
274
+ "type": "unknown",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "ICertificate[]",
278
+ "resolved": "ICertificate[]",
279
+ "references": {
280
+ "ICertificate": {
281
+ "location": "local",
282
+ "path": "/Users/donskov/Documents/work/pv/pv-certificates-viewer/packages/webcomponents/src/components/certificates-viewer/certificates-viewer.tsx",
283
+ "id": "src/components/certificates-viewer/certificates-viewer.tsx::ICertificate"
284
+ }
320
285
  }
321
- }
322
- },
323
- "required": false,
324
- "optional": false,
325
- "docs": {
326
- "tags": [],
327
- "text": "List of certificates values for decode and show in the list.\n<br />\n**NOTE**: If you do not provide a `name` value when\ninvocing the component it will take the first Subject CN value.\n<br />\n**NOTE**: If you do not provide a `tests` this column will be ommited from the rendered page.\n<br />\n**NOTE**: If the supplied certificates are self-signed the issuer column will be ommited."
328
- },
329
- "defaultValue": "[]"
330
- },
331
- "filterWithSearch": {
332
- "type": "boolean",
333
- "mutable": false,
334
- "complexType": {
335
- "original": "boolean",
336
- "resolved": "boolean",
337
- "references": {}
286
+ },
287
+ "required": false,
288
+ "optional": false,
289
+ "docs": {
290
+ "tags": [],
291
+ "text": "List of certificates values for decode and show in the list.\n<br />\n**NOTE**: If you do not provide a `name` value when\ninvocing the component it will take the first Subject CN value.\n<br />\n**NOTE**: If you do not provide a `tests` this column will be ommited from the rendered page.\n<br />\n**NOTE**: If the supplied certificates are self-signed the issuer column will be ommited."
292
+ },
293
+ "defaultValue": "[]"
338
294
  },
339
- "required": false,
340
- "optional": false,
341
- "docs": {
342
- "tags": [],
343
- "text": "Use filter in the list when search is changed."
295
+ "filterWithSearch": {
296
+ "type": "boolean",
297
+ "mutable": false,
298
+ "complexType": {
299
+ "original": "boolean",
300
+ "resolved": "boolean",
301
+ "references": {}
302
+ },
303
+ "required": false,
304
+ "optional": false,
305
+ "docs": {
306
+ "tags": [],
307
+ "text": "Use filter in the list when search is changed."
308
+ },
309
+ "attribute": "filter-with-search",
310
+ "reflect": false,
311
+ "defaultValue": "true"
344
312
  },
345
- "attribute": "filter-with-search",
346
- "reflect": false,
347
- "defaultValue": "true"
348
- },
349
- "highlightWithSearch": {
350
- "type": "boolean",
351
- "mutable": false,
352
- "complexType": {
353
- "original": "boolean",
354
- "resolved": "boolean",
355
- "references": {}
313
+ "highlightWithSearch": {
314
+ "type": "boolean",
315
+ "mutable": false,
316
+ "complexType": {
317
+ "original": "boolean",
318
+ "resolved": "boolean",
319
+ "references": {}
320
+ },
321
+ "required": false,
322
+ "optional": false,
323
+ "docs": {
324
+ "tags": [],
325
+ "text": "Use highlight chapters in the list when search is changed."
326
+ },
327
+ "attribute": "highlight-with-search",
328
+ "reflect": false,
329
+ "defaultValue": "true"
356
330
  },
357
- "required": false,
358
- "optional": false,
359
- "docs": {
360
- "tags": [],
361
- "text": "Use highlight chapters in the list when search is changed."
362
- },
363
- "attribute": "highlight-with-search",
364
- "reflect": false,
365
- "defaultValue": "true"
366
- }
367
- }; }
368
- static get states() { return {
369
- "search": {},
370
- "certificatesDecoded": {},
371
- "expandedRow": {},
372
- "certificateSelectedForDetails": {},
373
- "isDecodeInProcess": {}
374
- }; }
375
- static get events() { return [{
376
- "method": "detailsOpen",
377
- "name": "detailsOpen",
378
- "bubbles": true,
379
- "cancelable": true,
380
- "composed": true,
381
- "docs": {
382
- "tags": [],
383
- "text": "Emitted when the user open certificate details modal."
384
- },
385
- "complexType": {
386
- "original": "X509Certificate",
387
- "resolved": "X509Certificate",
388
- "references": {
389
- "X509Certificate": {
390
- "location": "import",
391
- "path": "../../crypto"
331
+ "mobileMediaQueryString": {
332
+ "type": "string",
333
+ "mutable": false,
334
+ "complexType": {
335
+ "original": "string",
336
+ "resolved": "string",
337
+ "references": {}
338
+ },
339
+ "required": false,
340
+ "optional": true,
341
+ "docs": {
342
+ "tags": [{
343
+ "name": "example",
344
+ "text": " (max-width: 900px)"
345
+ }],
346
+ "text": "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."
347
+ },
348
+ "attribute": "mobile-media-query-string",
349
+ "reflect": false,
350
+ "defaultValue": "'(max-width: 900px)'"
351
+ }
352
+ };
353
+ }
354
+ static get states() {
355
+ return {
356
+ "mobileScreenView": {},
357
+ "search": {},
358
+ "certificatesDecoded": {},
359
+ "expandedRow": {},
360
+ "certificateSelectedForDetails": {},
361
+ "isDecodeInProcess": {}
362
+ };
363
+ }
364
+ static get events() {
365
+ return [{
366
+ "method": "detailsOpen",
367
+ "name": "detailsOpen",
368
+ "bubbles": true,
369
+ "cancelable": true,
370
+ "composed": true,
371
+ "docs": {
372
+ "tags": [],
373
+ "text": "Emitted when the user open certificate details modal."
374
+ },
375
+ "complexType": {
376
+ "original": "X509Certificate",
377
+ "resolved": "X509Certificate",
378
+ "references": {
379
+ "X509Certificate": {
380
+ "location": "import",
381
+ "path": "../../crypto",
382
+ "id": "src/crypto/index.ts::X509Certificate"
383
+ }
392
384
  }
393
385
  }
394
- }
395
- }, {
396
- "method": "detailsClose",
397
- "name": "detailsClose",
398
- "bubbles": true,
399
- "cancelable": true,
400
- "composed": true,
401
- "docs": {
402
- "tags": [],
403
- "text": "Emitted when the user close certificate details modal."
404
- },
405
- "complexType": {
406
- "original": "void",
407
- "resolved": "void",
408
- "references": {}
409
- }
410
- }]; }
411
- static get watchers() { return [{
412
- "propName": "certificates",
413
- "methodName": "watchCertificates"
414
- }]; }
386
+ }, {
387
+ "method": "detailsClose",
388
+ "name": "detailsClose",
389
+ "bubbles": true,
390
+ "cancelable": true,
391
+ "composed": true,
392
+ "docs": {
393
+ "tags": [],
394
+ "text": "Emitted when the user close certificate details modal."
395
+ },
396
+ "complexType": {
397
+ "original": "void",
398
+ "resolved": "void",
399
+ "references": {}
400
+ }
401
+ }];
402
+ }
403
+ static get watchers() {
404
+ return [{
405
+ "propName": "certificates",
406
+ "methodName": "watchCertificates"
407
+ }];
408
+ }
415
409
  }
410
+ //# sourceMappingURL=certificates-viewer.js.map