@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
@@ -5,45 +5,87 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-064e95c7.js');
9
- const x509_certificate = require('./x509_certificate-3760e0a8.js');
10
- const certification_request = require('./certification_request-d5c6e32d.js');
11
- require('./download-93f7b773.js');
12
- const l10n = require('./l10n-ddc7cff9.js');
8
+ const index = require('./index-efd561e9.js');
9
+ const x509_certificate = require('./x509_certificate-989b1435.js');
10
+ const certification_request = require('./certification_request-c0cafa72.js');
11
+ require('./download-972dda8a.js');
12
+ const button = require('./button-14e2b73f.js');
13
+ const download = require('./download-254ddc57.js');
14
+ const arrow_top = require('./arrow_top-834fb7ec.js');
13
15
 
14
- const certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
16
+ /**
17
+ * @license
18
+ * Copyright (c) Peculiar Ventures, LLC.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+ const CertificateSummary = (props) => {
24
+ const { certificate, showIssuer, } = props;
25
+ const renderRow = (name, value) => (index.h("tr", null,
26
+ index.h("td", null,
27
+ index.h(button.Typography, { variant: "b2", color: "gray-9" }, name)),
28
+ index.h("td", null,
29
+ index.h(button.Typography, { variant: "b2", color: "black" }, value))));
30
+ return (index.h("table", null,
31
+ index.h("tbody", null,
32
+ renderRow(certification_request.l10n.getString('subjectName'), certificate.subjectToString()),
33
+ showIssuer && renderRow(certification_request.l10n.getString('issuerName'), certificate.issuerToString()),
34
+ renderRow(certification_request.l10n.getString('serialNumber'), certificate.serialNumber),
35
+ renderRow(certification_request.l10n.getString('version'), certificate.version),
36
+ renderRow(certification_request.l10n.getString('validity'), certificate.validity),
37
+ renderRow(certification_request.l10n.getString('issued'), certification_request.dateShort(certificate.notBefore)),
38
+ renderRow(certification_request.l10n.getString('expired'), certification_request.dateShort(certificate.notAfter)))));
39
+ };
40
+
41
+ /**
42
+ * @license
43
+ * Copyright (c) Peculiar Ventures, LLC.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */
48
+ const DetailsIcon = (props) => {
49
+ const { color = 'secondary' } = props;
50
+ return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "31", fill: "none" },
51
+ index.h("path", { fill: `var(--pv-color-${color})`, d: "M6.71 19.79a1 1 0 0 0-.33-.21 1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1 1 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1 1 0 0 0 .21-1.09 1 1 0 0 0-.21-.33ZM10 11.5h14a1 1 0 0 0 0-2H10a1 1 0 0 0 0 2Zm-3.29 3.29a1 1 0 0 0-1.09-.21 1.15 1.15 0 0 0-.33.21 1 1 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1 1 0 0 0-.21-.33ZM24 14.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2ZM6.71 9.79a1 1 0 0 0-.33-.21 1 1 0 0 0-1.09.21 1.15 1.15 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a1 1 0 0 0 1.09-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1.15 1.15 0 0 0-.21-.33ZM24 19.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z" })));
52
+ };
53
+
54
+ /**
55
+ * @license
56
+ * Copyright (c) Peculiar Ventures, LLC.
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE file in the root directory of this source tree.
60
+ */
61
+ const LinkIcon = (props) => {
62
+ const { color = 'secondary' } = props;
63
+ return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "31", fill: "none" },
64
+ index.h("path", { fill: `var(--pv-color-${color})`, d: "M21 14.32a1 1 0 0 0-1 1v7.18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h7.18a1 1 0 0 0 0-2H8a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-7.18a1 1 0 0 0-1-1Zm3.92-8.2a1 1 0 0 0-.54-.54A1 1 0 0 0 24 5.5h-6a1 1 0 1 0 0 2h3.59l-10.3 10.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L23 8.91v3.59a1 1 0 0 0 2 0v-6a1.001 1.001 0 0 0-.08-.38Z" })));
65
+ };
66
+
67
+ /**
68
+ * @license
69
+ * Copyright (c) Peculiar Ventures, LLC.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE file in the root directory of this source tree.
73
+ */
74
+ const CrossIcon = (props) => {
75
+ const { color = 'gray-9' } = props;
76
+ return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", fill: "none" },
77
+ index.h("path", { fill: `var(--pv-color-${color})`, "fill-rule": "evenodd", d: "m16.37 15 5.442 5.44c.25.252.25.663 0 .914l-.459.457a.646.646 0 0 1-.913 0L15 16.371l-5.44 5.44a.648.648 0 0 1-.915 0l-.457-.457a.649.649 0 0 1 0-.913L13.63 15 8.188 9.56a.649.649 0 0 1 0-.914l.457-.457a.648.648 0 0 1 .915 0l5.44 5.44 5.44-5.44a.646.646 0 0 1 .913 0l.46.457c.25.25.25.662 0 .913L16.37 15Z", "clip-rule": "evenodd" })));
78
+ };
79
+
80
+ const certificatesViewerCss = "*{-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%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative}.search_section{padding:var(--pv-size-base-4);border-bottom:1px solid var(--pv-color-gray-4)}.input_search{height:var(--pv-size-base-8);width:100%;outline:none;background-color:var(--pv-color-gray-1);padding:0 var(--pv-size-base-2);border:1px solid var(--pv-color-gray-7);border-radius:4px;-webkit-transition:background-color 200ms ease 0s, color 200ms ease 0s, border-color 200ms ease 0s;transition:background-color 200ms ease 0s, color 200ms ease 0s, border-color 200ms ease 0s}.input_search::-webkit-input-placeholder{color:var(--pv-color-gray-9)}.input_search::-moz-placeholder{color:var(--pv-color-gray-9)}.input_search:-ms-input-placeholder{color:var(--pv-color-gray-9)}.input_search::-ms-input-placeholder{color:var(--pv-color-gray-9)}.input_search::placeholder{color:var(--pv-color-gray-9)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table td,table th{border-bottom:1px solid var(--pv-color-gray-4);vertical-align:top;text-align:left}table td:first-child,table th:first-child{padding-right:0;width:var(--pv-size-base-10)}table td:last-child,table th:last-child{padding-left:0;width:var(--pv-size-base-10)}table th{padding:var(--pv-size-base-2) var(--pv-size-base-4)}table th.col_action{padding:0}table td{padding:var(--pv-size-base-4)}table tr.m_expanded{background:var(--pv-color-gray-1)}table tr.m_expanded>td{border-bottom:none}table tr.expanded_summary{background:var(--pv-color-gray-1)}table tr.expanded_summary table{table-layout:initial}table tr.expanded_summary table td{border-bottom:none;padding:var(--pv-size-base-2)}table tr.expanded_summary table td:first-child{width:200px}table tr.expanded_summary table td:last-child{width:auto}.button_table_cell{margin-top:-3px}.status_wrapper{text-align:center;height:var(--pv-size-base-16);vertical-align:middle}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal_backdrop{background:var(--pv-color-black);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0;opacity:0.5}.modal_container{background:var(--pv-color-white);width:100%;display:-ms-flexbox;display:flex;max-height:calc(100% - 60px);-ms-flex-direction:column;flex-direction:column;margin:var(--pv-size-base-6);position:relative;outline:none;-webkit-box-shadow:var(--pv-shadow-dark-hight);box-shadow:var(--pv-shadow-dark-hight);overflow:hidden;border:0px;padding:0px;max-width:640px;border-radius:4px}.modal_header{padding:var(--pv-size-base-3) var(--pv-size-base-4);display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;gap:var(--pv-size-base-2);border-bottom:1px solid var(--pv-color-gray-5)}.modal_content{-ms-flex:1 1 auto;flex:1 1 auto;overflow:auto}:host([data-mobile-screen-view=true]) table,:host([data-mobile-screen-view=true]) tbody,:host([data-mobile-screen-view=true]) tr,:host([data-mobile-screen-view=true]) td{display:block;width:100% !important;padding:0;border:none}:host([data-mobile-screen-view=true]) thead{display:none}:host([data-mobile-screen-view=true]) table tr{padding:var(--pv-size-base-2) 0}:host([data-mobile-screen-view=true]) table .expanded_summary{padding:0}:host([data-mobile-screen-view=true]) table .certificate_row{border-bottom:1px solid var(--pv-color-gray-5);padding:var(--pv-size-base-2) var(--pv-size-base-4)}:host([data-mobile-screen-view=true]) table .certificate_row_actions{padding-top:var(--pv-size-base-6)}:host([data-mobile-screen-view=true]) table .certificate_row_actions td{display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right;gap:var(--pv-size-base-4)}:host([data-mobile-screen-view=true]) .button_table_cell{margin-top:0}";
15
81
 
16
82
  const CertificatesViewer = class {
17
83
  constructor(hostRef) {
18
84
  index.registerInstance(this, hostRef);
19
85
  this.detailsOpen = index.createEvent(this, "detailsOpen", 7);
20
86
  this.detailsClose = index.createEvent(this, "detailsClose", 7);
21
- /**
22
- * List of certificates values for decode and show in the list.
23
- * <br />
24
- * **NOTE**: If you do not provide a `name` value when
25
- * invocing the component it will take the first Subject CN value.
26
- * <br />
27
- * **NOTE**: If you do not provide a `tests` this column will be ommited from the rendered page.
28
- * <br />
29
- * **NOTE**: If the supplied certificates are self-signed the issuer column will be ommited.
30
- */
31
- this.certificates = [];
32
- /**
33
- * Use filter in the list when search is changed.
34
- */
35
- this.filterWithSearch = true;
36
- /**
37
- * Use highlight chapters in the list when search is changed.
38
- */
39
- this.highlightWithSearch = true;
40
- this.search = '';
41
- this.certificatesDecoded = [];
42
- this.isDecodeInProcess = true;
43
- this.isHasTests = false;
44
87
  this.isHasRoots = false;
45
- this.handleClickDetails = (certificate, e) => {
46
- e.stopPropagation();
88
+ this.handleClickDetails = (certificate) => {
47
89
  this.certificateSelectedForDetails = certificate;
48
90
  this.detailsOpen.emit(certificate);
49
91
  };
@@ -51,12 +93,33 @@ const CertificatesViewer = class {
51
93
  this.certificateSelectedForDetails = undefined;
52
94
  this.detailsClose.emit();
53
95
  };
54
- this.handleSearch = (e) => {
55
- this.search = e.target.value.trim();
96
+ this.handleSearch = (event) => {
97
+ this.search = event.target.value.trim();
56
98
  };
99
+ this.certificates = [];
100
+ this.filterWithSearch = true;
101
+ this.highlightWithSearch = true;
102
+ this.mobileMediaQueryString = '(max-width: 900px)';
103
+ this.mobileScreenView = false;
104
+ this.search = '';
105
+ this.certificatesDecoded = [];
106
+ this.expandedRow = undefined;
107
+ this.certificateSelectedForDetails = undefined;
108
+ this.isDecodeInProcess = true;
109
+ }
110
+ handleMediaQueryChange(event) {
111
+ this.mobileScreenView = event.matches;
57
112
  }
58
113
  componentWillLoad() {
59
114
  this.certificatesDecodeAndSet();
115
+ {
116
+ this.mobileMediaQuery = window.matchMedia(this.mobileMediaQueryString);
117
+ this.mobileMediaQuery.addEventListener('change', this.handleMediaQueryChange.bind(this));
118
+ this.mobileScreenView = this.mobileMediaQuery.matches;
119
+ }
120
+ }
121
+ disconnectedCallback() {
122
+ this.mobileMediaQuery.removeEventListener('change', this.handleMediaQueryChange.bind(this));
60
123
  }
61
124
  watchCertificates(newValue, oldValue) {
62
125
  /**
@@ -67,7 +130,6 @@ const CertificatesViewer = class {
67
130
  }
68
131
  }
69
132
  async certificatesDecodeAndSet() {
70
- let hasTests = false;
71
133
  let hasRoots = false;
72
134
  if (!Array.isArray(this.certificates)) {
73
135
  return;
@@ -86,30 +148,21 @@ const CertificatesViewer = class {
86
148
  if (!hasRoots && decoded.isRoot) {
87
149
  hasRoots = true;
88
150
  }
89
- if (!hasTests) {
90
- if (certificate.tests
91
- && (certificate.tests.expired || certificate.tests.revoked || certificate.tests.valid)) {
92
- hasTests = true;
93
- }
94
- }
95
151
  }
96
152
  catch (error) {
97
153
  console.error('Error certificate parse:', error);
98
154
  }
99
155
  }
100
- this.isHasTests = hasTests;
101
156
  this.isHasRoots = hasRoots;
102
157
  this.isDecodeInProcess = false;
103
158
  this.certificatesDecoded = data;
104
159
  }
105
160
  // eslint-disable-next-line class-methods-use-this
106
- handleClickDownloadAsPem(certificate, e) {
107
- e.stopPropagation();
161
+ handleClickDownloadAsPem(certificate) {
108
162
  certificate.body.downloadAsPEM(certificate.name || certificate.body.commonName);
109
163
  }
110
164
  // eslint-disable-next-line class-methods-use-this
111
- handleClickDownloadAsDer(certificate, e) {
112
- e.stopPropagation();
165
+ handleClickDownloadAsDer(certificate) {
113
166
  certificate.body.downloadAsDER(certificate.name || certificate.body.commonName);
114
167
  }
115
168
  handleClickRow(index) {
@@ -119,37 +172,69 @@ const CertificatesViewer = class {
119
172
  : index;
120
173
  }
121
174
  getMaxColSpanValue() {
122
- let colSpan = 4;
123
- if (this.isHasTests) {
124
- colSpan += 1;
125
- }
175
+ let colSpan = 5;
126
176
  if (!this.isHasRoots) {
127
177
  colSpan += 1;
128
178
  }
129
179
  return colSpan;
130
180
  }
131
- renderExpandedRow(certificate) {
132
- const colSpan = this.getMaxColSpanValue();
133
- return (index.h("tr", { class: "expanded_summary" }, index.h("td", { colSpan: colSpan }, index.h("peculiar-certificate-summary", { certificate: certificate, showIssuer: !certificate.isRoot }))));
181
+ renderCertificateButtonActions(certificate) {
182
+ var _a, _b, _c;
183
+ const isHasTestURLs = certificate.tests
184
+ && (certificate.tests.expired || certificate.tests.revoked || certificate.tests.valid);
185
+ return (index.h("peculiar-button-menu", { class: "button_table_cell", groups: [
186
+ {
187
+ title: certification_request.l10n.getString('previewCertificate'),
188
+ options: [
189
+ {
190
+ text: certification_request.l10n.getString('viewDetails'),
191
+ startIcon: index.h(DetailsIcon, null),
192
+ onClick: () => this.handleClickDetails(certificate.body),
193
+ },
194
+ ],
195
+ },
196
+ {
197
+ title: certification_request.l10n.getString('downloadOptions'),
198
+ options: [
199
+ {
200
+ text: certification_request.l10n.getString('download.pem'),
201
+ startIcon: index.h(download.DownloadIcon, null),
202
+ onClick: () => this.handleClickDownloadAsPem(certificate),
203
+ },
204
+ {
205
+ text: certification_request.l10n.getString('download.der'),
206
+ startIcon: index.h(download.DownloadIcon, null),
207
+ onClick: () => this.handleClickDownloadAsDer(certificate),
208
+ },
209
+ ],
210
+ },
211
+ ...(isHasTestURLs ? [{
212
+ title: certification_request.l10n.getString('testURLs'),
213
+ options: [
214
+ ...(((_a = certificate.tests) === null || _a === void 0 ? void 0 : _a.valid) ? [{
215
+ text: certification_request.l10n.getString('valid'),
216
+ href: certificate.tests.valid,
217
+ startIcon: index.h(LinkIcon, null),
218
+ }] : []),
219
+ ...(((_b = certificate.tests) === null || _b === void 0 ? void 0 : _b.revoked) ? [{
220
+ text: certification_request.l10n.getString('revoked'),
221
+ href: certificate.tests.revoked,
222
+ startIcon: index.h(LinkIcon, null),
223
+ }] : []),
224
+ ...(((_c = certificate.tests) === null || _c === void 0 ? void 0 : _c.expired) ? [{
225
+ text: certification_request.l10n.getString('expired'),
226
+ href: certificate.tests.expired,
227
+ startIcon: index.h(LinkIcon, null),
228
+ }] : []),
229
+ ],
230
+ }] : []),
231
+ ] }));
134
232
  }
135
- // eslint-disable-next-line class-methods-use-this
136
- renderCertificateTests(tests) {
137
- if (!tests) {
138
- return null;
139
- }
140
- const elems = [];
141
- if (tests.valid) {
142
- elems.push((index.h("peculiar-button", { class: "button_table_action", href: tests.valid, target: "_blank" }, l10n.l10n.getString('valid'))));
143
- }
144
- if (tests.revoked) {
145
- elems.push((index.h("peculiar-button", { class: "button_table_action", href: tests.revoked, target: "_blank" }, l10n.l10n.getString('revoked'))));
146
- }
147
- if (tests.expired) {
148
- elems.push((index.h("peculiar-button", { class: "button_table_action", href: tests.expired, target: "_blank" }, l10n.l10n.getString('expired'))));
149
- }
150
- return elems;
233
+ renderExpandedRow(certificate) {
234
+ const colSpan = this.getMaxColSpanValue() - 2;
235
+ return (index.h("tr", { class: "expanded_summary" }, index.h("td", null), index.h("td", { colSpan: colSpan }, index.h(CertificateSummary, { certificate: certificate, showIssuer: !certificate.isRoot })), index.h("td", null)));
151
236
  }
152
- renderContentState() {
237
+ renderCertificatesRows() {
153
238
  const searchHighlight = this.highlightWithSearch
154
239
  ? this.search
155
240
  : '';
@@ -172,13 +257,26 @@ const CertificatesViewer = class {
172
257
  return;
173
258
  }
174
259
  }
260
+ if (this.mobileScreenView) {
261
+ content.push([
262
+ index.h("tr", { class: {
263
+ certificate_row: true,
264
+ m_expanded: isExpandedRow,
265
+ }, key: certificate.body.thumbprints['SHA-1'] }, index.h("td", null, index.h("table", null, index.h("tbody", null, !this.isHasRoots && (index.h("tr", null, index.h("td", null, index.h(button.Typography, { variant: "b2", color: "gray-9" }, certification_request.l10n.getString('issuer'))), index.h("td", null, index.h(button.Typography, { variant: "b2", color: "black" }, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName))))), index.h("tr", null, index.h("td", null, index.h(button.Typography, { variant: "b2", color: "gray-9" }, certification_request.l10n.getString('name'))), index.h("td", null, index.h(button.Typography, { variant: "b2", color: "black" }, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName)))), index.h("tr", null, index.h("td", null, index.h(button.Typography, { variant: "b2", color: "gray-9" }, certification_request.l10n.getString('publicKey'))), index.h("td", null, index.h(button.Typography, { variant: "b2", color: "black" }, index.h("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue)))), index.h("tr", null, index.h("td", null, index.h(button.Typography, { variant: "b2", color: "gray-9" }, certification_request.l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), index.h("td", null, index.h(button.Typography, { variant: "b2", color: "black" }, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1'])))), isExpandedRow && this.renderExpandedRow(certificate.body), index.h("tr", { class: "certificate_row_actions" }, index.h("td", null, this.renderCertificateButtonActions(certificate), index.h(button.Button
266
+ // eslint-disable-next-line react/jsx-no-bind
267
+ , {
268
+ // eslint-disable-next-line react/jsx-no-bind
269
+ onClick: this.handleClickRow.bind(this, index$1), startIcon: isExpandedRow ? index.h(arrow_top.ArrowTopIcon, null) : index.h(arrow_top.ArrowBottomIcon, null)
270
+ }))))))),
271
+ ]);
272
+ return;
273
+ }
175
274
  content.push([
176
275
  index.h("tr", { class: {
177
- expanded: isExpandedRow,
178
- }, onClick: this.handleClickRow.bind(this, index$1), key: certificate.body.thumbprints['SHA-1'] }, !this.isHasRoots && (index.h("td", null, index.h("peculiar-typography", { class: "mobile_title", color: "grey_5" }, l10n.l10n.getString('issuer'), ":"), index.h("peculiar-typography", { class: "content" }, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName)))), index.h("td", null, index.h("peculiar-typography", { class: "mobile_title", color: "grey_5" }, l10n.l10n.getString('name'), ":"), index.h("peculiar-typography", { class: "content" }, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName))), index.h("td", null, index.h("peculiar-typography", { class: "mobile_title", color: "grey_5" }, l10n.l10n.getString('publicKey'), ":"), index.h("peculiar-typography", { class: "content" }, index.h("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue))), index.h("td", null, index.h("peculiar-typography", { class: "mobile_title", color: "grey_5" }, l10n.l10n.getString('fingerprint'), "\u00A0 (SHA-1):"), index.h("peculiar-typography", { class: "content", monospace: true }, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1']))), index.h("td", { class: "align_center" }, index.h("peculiar-typography", { class: "mobile_title", color: "grey_5" }, l10n.l10n.getString('actions'), ":"), index.h("span", { class: "content" }, index.h("peculiar-button", { onClick: this.handleClickDetails.bind(this, certificate.body), class: "button_table_action" }, l10n.l10n.getString('details')), index.h("peculiar-button-split", { onClick: this.handleClickDownloadAsPem.bind(this, certificate), actions: [{
179
- text: l10n.l10n.getString('download.der'),
180
- onClick: this.handleClickDownloadAsDer.bind(this, certificate),
181
- }], class: "button_table_action" }, l10n.l10n.getString('download.pem')))), this.isHasTests && (index.h("td", { class: "align_center" }, index.h("peculiar-typography", { class: "mobile_title", color: "grey_5" }, l10n.l10n.getString('testURLs'), ":"), index.h("span", { class: "content" }, this.renderCertificateTests(certificate.tests))))),
276
+ m_expanded: isExpandedRow,
277
+ }, key: certificate.body.thumbprints['SHA-1'] }, index.h("td", null, index.h(button.Button, { class: "button_table_cell",
278
+ // eslint-disable-next-line react/jsx-no-bind
279
+ onClick: this.handleClickRow.bind(this, index$1), startIcon: isExpandedRow ? index.h(arrow_top.ArrowTopIcon, null) : index.h(arrow_top.ArrowBottomIcon, null) })), !this.isHasRoots && (index.h("td", null, index.h(button.Typography, null, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.issuerCommonName)))), index.h("td", null, index.h(button.Typography, null, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.name || certificate.body.commonName))), index.h("td", null, index.h(button.Typography, null, index.h("peculiar-highlight-words", { search: searchHighlight }, publicKeyValue))), index.h("td", null, index.h(button.Typography, null, index.h("peculiar-highlight-words", { search: searchHighlight }, certificate.body.thumbprints['SHA-1']))), index.h("td", null, this.renderCertificateButtonActions(certificate))),
182
280
  isExpandedRow && this.renderExpandedRow(certificate.body),
183
281
  ]);
184
282
  });
@@ -188,43 +286,41 @@ const CertificatesViewer = class {
188
286
  if (!this.certificateSelectedForDetails) {
189
287
  return null;
190
288
  }
191
- return (index.h("div", { class: "modal_wrapper", role: "presentation", "aria-hidden": "false", part: "presentation" }, index.h("div", { class: "modal_backdrop", onClick: this.handleModalClose, "aria-hidden": "true" }), index.h("div", { class: "modal_container", role: "dialog", part: "presentation_container" }, index.h("header", { class: "modal_title" }, index.h("peculiar-typography", { type: "h4" }, l10n.l10n.getString('certificateDetails')), index.h("button", { class: "modal_close", onClick: this.handleModalClose, type: "button", "aria-label": "Close", title: "Close" }, index.h("svg", { width: "30", height: "30", viewBox: "0 0 30 30", xmlns: "http://www.w3.org/2000/svg" }, index.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" })))), index.h("div", { class: "modal_content" }, index.h("peculiar-certificate-viewer", { certificate: this.certificateSelectedForDetails })))));
289
+ return (index.h("div", { class: "modal_wrapper", role: "presentation", "aria-hidden": "false", part: "presentation" }, index.h("div", { class: "modal_backdrop", onClick: this.handleModalClose, "aria-hidden": "true" }), index.h("div", { class: "modal_container", role: "dialog", part: "presentation_container" }, index.h("header", { class: "modal_header" }, index.h(button.Typography, { variant: "h4" }, certification_request.l10n.getString('certificateDetails')), index.h(button.Button, { onClick: this.handleModalClose, startIcon: index.h(CrossIcon, null) })), index.h("div", { class: "modal_content" }, index.h("peculiar-certificate-viewer", { certificate: this.certificateSelectedForDetails, mobileMediaQueryString: this.mobileMediaQueryString })))));
192
290
  }
193
291
  renderSearch() {
194
292
  if (!this.filterWithSearch && !this.highlightWithSearch) {
195
293
  return null;
196
294
  }
197
- return (index.h("div", { class: "search_section" }, index.h("input", { onInput: this.handleSearch, type: "search", value: "", class: "input_search", disabled: !this.certificatesDecoded.length, placeholder: "Search" })));
295
+ return (index.h("div", { class: "search_section" }, index.h("input", { onInput: this.handleSearch, type: "search", value: "", class: "input_search t-b3 c-black", disabled: !this.certificatesDecoded.length, placeholder: "Search" })));
198
296
  }
199
297
  renderEmptyState() {
200
298
  const colSpan = this.getMaxColSpanValue();
201
- return (index.h("tr", null, index.h("td", { class: "status_wrapper", colSpan: colSpan }, index.h("peculiar-typography", { type: "b1", align: "center" }, "There are no certificates available."))));
299
+ return (index.h("tr", null, index.h("td", { class: "status_wrapper", colSpan: colSpan }, index.h(button.Typography, { variant: "b1" }, "There are no certificates available."))));
202
300
  }
203
301
  renderEmptySearchState() {
204
302
  const colSpan = this.getMaxColSpanValue();
205
- return (index.h("tr", null, index.h("td", { class: "status_wrapper", colSpan: colSpan }, index.h("peculiar-typography", { type: "b1", align: "center" }, "No results found for \u201C", this.search, "\u201C"))));
303
+ return (index.h("tr", null, index.h("td", { class: "status_wrapper", colSpan: colSpan }, index.h(button.Typography, { variant: "b1" }, "No results found for \u201C", this.search, "\u201C"))));
206
304
  }
207
305
  // eslint-disable-next-line class-methods-use-this
208
306
  renderLoadingState() {
209
307
  return (index.h("div", { class: "loading_container" }, index.h("peculiar-circular-progress", null)));
210
308
  }
211
- renderBody() {
309
+ renderTableBody() {
212
310
  if (this.isDecodeInProcess) {
213
311
  return null;
214
312
  }
215
313
  if (!this.certificatesDecoded.length) {
216
314
  return this.renderEmptyState();
217
315
  }
218
- const contentState = this.renderContentState();
219
- if (this.search && !contentState.length) {
316
+ const certificatesRows = this.renderCertificatesRows();
317
+ if (this.search && !certificatesRows.length) {
220
318
  return this.renderEmptySearchState();
221
319
  }
222
- return contentState;
320
+ return certificatesRows;
223
321
  }
224
322
  render() {
225
- return (index.h(index.Host, null, this.renderSearch(), index.h("table", { class: {
226
- m_extra: this.isHasTests || !this.isHasRoots,
227
- } }, index.h("thead", null, index.h("tr", null, !this.isHasRoots && (index.h("th", { class: "col_issuer" }, index.h("peculiar-typography", { type: "h7", align: "left" }, l10n.l10n.getString('issuer')))), index.h("th", { class: "col_name" }, index.h("peculiar-typography", { type: "h7", align: "left" }, l10n.l10n.getString('name'))), index.h("th", { class: "col_public_key" }, index.h("peculiar-typography", { type: "h7", align: "left" }, l10n.l10n.getString('publicKey'))), index.h("th", { class: "col_fingerprint" }, index.h("peculiar-typography", { type: "h7", align: "left" }, l10n.l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), index.h("th", { class: "col_actions" }, index.h("peculiar-typography", { type: "h7", align: "center" }, l10n.l10n.getString('actions'))), this.isHasTests && (index.h("th", { class: "col_tests" }, index.h("peculiar-typography", { type: "h7", align: "center" }, l10n.l10n.getString('testURLs')))))), index.h("tbody", null, this.renderBody())), this.renderCertificateDetailsModal(), this.isDecodeInProcess && this.renderLoadingState()));
323
+ return (index.h(index.Host, { "data-mobile-screen-view": String(this.mobileScreenView) }, this.renderSearch(), index.h("table", null, !this.mobileScreenView && (index.h("thead", null, index.h("tr", null, index.h("th", null), !this.isHasRoots && (index.h("th", { class: "col_issuer" }, index.h(button.Typography, { variant: "s2" }, certification_request.l10n.getString('issuer')))), index.h("th", { class: "col_name" }, index.h(button.Typography, { variant: "s2" }, certification_request.l10n.getString('name'))), index.h("th", { class: "col_public_key" }, index.h(button.Typography, { variant: "s2" }, certification_request.l10n.getString('publicKey'))), index.h("th", { class: "col_fingerprint" }, index.h(button.Typography, { variant: "s2" }, certification_request.l10n.getString('fingerprint'), "\u00A0 (SHA-1)")), index.h("th", null)))), index.h("tbody", null, this.renderTableBody())), this.renderCertificateDetailsModal(), this.isDecodeInProcess && this.renderLoadingState()));
228
324
  }
229
325
  static get watchers() { return {
230
326
  "certificates": ["watchCertificates"]
@@ -233,3 +329,5 @@ const CertificatesViewer = class {
233
329
  CertificatesViewer.style = certificatesViewerCss;
234
330
 
235
331
  exports.peculiar_certificates_viewer = CertificatesViewer;
332
+
333
+ //# sourceMappingURL=peculiar-certificates-viewer.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"peculiar-certificates-viewer.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAkBO,MAAM,kBAAkB,GAAiD,CAAC,KAAK;EACpF,MAAM,EACJ,WAAW,EACX,UAAU,GACX,GAAG,KAAK,CAAC;EAEV,MAAM,SAAS,GAAG,CAAC,IAAuB,EAAE,KAAsB,MAChEA;IACEA;MACEA,QAACC,iBAAU,IACT,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,QAAQ,IAEb,IAAI,CACM,CACV;IACLD;MACEA,QAACC,iBAAU,IACT,OAAO,EAAC,IAAI,EACZ,KAAK,EAAC,OAAO,IAEZ,KAAK,CACK,CACV,CACF,CACN,CAAC;EAEF,QACED;IACEA;MACG,SAAS,CACRE,0BAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAC7B,WAAW,CAAC,eAAe,EAAE,CAC9B;MACA,UAAU,IAAI,SAAS,CACtBA,0BAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAC5B,WAAW,CAAC,cAAc,EAAE,CAC7B;MAEA,SAAS,CACRA,0BAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAC9B,WAAW,CAAC,YAAY,CACzB;MACA,SAAS,CACRA,0BAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EACzB,WAAW,CAAC,OAAO,CACpB;MACA,SAAS,CACRA,0BAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAC1B,WAAW,CAAC,QAAQ,CACrB;MACA,SAAS,CACRA,0BAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EACxBC,+BA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,EAAC,YAAY,IACpBA,QAACC,iBAAU,IAAC,OAAO,EAAC,IAAI,IACrBC,0BAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CACd,CACV,CACN,EACDF,gBAAI,KAAK,EAAC,UAAU,IAClBA,QAACC,iBAAU,IAAC,OAAO,EAAC,IAAI,IACrBC,0BAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CACZ,CACV,EACLF,gBAAI,KAAK,EAAC,gBAAgB,IACxBA,QAACC,iBAAU,IAAC,OAAO,EAAC,IAAI,IACrBC,0BAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CACjB,CACV,EACLF,gBAAI,KAAK,EAAC,iBAAiB,IACzBA,QAACC,iBAAU,IAAC,OAAO,EAAC,IAAI,IACrBC,0BAAI,CAAC,SAAS,CAAC,aAAa,CAAC,mBAEnB,CACV,EAELF,mBAAM,CACH,CACC,CACT,EACDA,uBACG,IAAI,CAAC,eAAe,EAAE,CACjB,CACF,EAEP,IAAI,CAAC,6BAA6B,EAAE,EACpC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAC/C,EACP;GACH;;;;;;;;;","names":["h","Typography","l10n","dateShort","X509Certificate","DownloadIcon","index","OIDs","Button","ArrowTopIcon","ArrowBottomIcon","Host"],"sources":["src/components/certificate-summary/certificate-summary.tsx","src/components/icons/details.tsx","src/components/icons/link.tsx","src/components/icons/cross.tsx","src/components/certificates-viewer/certificates-viewer.scss?tag=peculiar-certificates-viewer&encapsulation=shadow","src/components/certificates-viewer/certificates-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 { FunctionalComponent, h } from '@stencil/core';\nimport type { X509Certificate } from '../../crypto';\nimport { dateShort, l10n } from '../../utils';\nimport { Typography } from '../typography';\n\ninterface CertificateSummaryProps {\n certificate: X509Certificate;\n showIssuer?: boolean;\n}\n\nexport const CertificateSummary: FunctionalComponent<CertificateSummaryProps> = (props) => {\n const {\n certificate,\n showIssuer,\n } = props;\n\n const renderRow = (name: string | string[], value: string | number) => (\n <tr>\n <td>\n <Typography\n variant=\"b2\"\n color=\"gray-9\"\n >\n {name}\n </Typography>\n </td>\n <td>\n <Typography\n variant=\"b2\"\n color=\"black\"\n >\n {value}\n </Typography>\n </td>\n </tr>\n );\n\n return (\n <table>\n <tbody>\n {renderRow(\n l10n.getString('subjectName'),\n certificate.subjectToString(),\n )}\n {showIssuer && renderRow(\n l10n.getString('issuerName'),\n certificate.issuerToString(),\n )}\n\n {renderRow(\n l10n.getString('serialNumber'),\n certificate.serialNumber,\n )}\n {renderRow(\n l10n.getString('version'),\n certificate.version,\n )}\n {renderRow(\n l10n.getString('validity'),\n certificate.validity,\n )}\n {renderRow(\n l10n.getString('issued'),\n dateShort(certificate.notBefore),\n )}\n {renderRow(\n l10n.getString('expired'),\n dateShort(certificate.notAfter),\n )}\n </tbody>\n </table>\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 } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const DetailsIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M6.71 19.79a1 1 0 0 0-.33-.21 1 1 0 0 0-.76 0 1 1 0 0 0-.33.21 1 1 0 0 0-.21.33 1 1 0 0 0 .21 1.09c.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1 1 0 0 0 .21-1.09 1 1 0 0 0-.21-.33ZM10 11.5h14a1 1 0 0 0 0-2H10a1 1 0 0 0 0 2Zm-3.29 3.29a1 1 0 0 0-1.09-.21 1.15 1.15 0 0 0-.33.21 1 1 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a.94.94 0 0 0 .76 0 1.15 1.15 0 0 0 .33-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1 1 0 0 0-.21-.33ZM24 14.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2ZM6.71 9.79a1 1 0 0 0-.33-.21 1 1 0 0 0-1.09.21 1.15 1.15 0 0 0-.21.33.94.94 0 0 0 0 .76c.05.121.122.233.21.33.097.088.209.16.33.21a1 1 0 0 0 1.09-.21 1.15 1.15 0 0 0 .21-.33.94.94 0 0 0 0-.76 1.15 1.15 0 0 0-.21-.33ZM24 19.5H10a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z\"\n />\n </svg>\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 } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const LinkIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'secondary' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"31\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n d=\"M21 14.32a1 1 0 0 0-1 1v7.18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h7.18a1 1 0 0 0 0-2H8a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-7.18a1 1 0 0 0-1-1Zm3.92-8.2a1 1 0 0 0-.54-.54A1 1 0 0 0 24 5.5h-6a1 1 0 1 0 0 2h3.59l-10.3 10.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L23 8.91v3.59a1 1 0 0 0 2 0v-6a1.001 1.001 0 0 0-.08-.38Z\"\n />\n </svg>\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 } from '@stencil/core';\nimport type { ColorType } from '../../interface';\n\nexport const CrossIcon: FunctionalComponent<{ color?: ColorType }> = (props) => {\n const { color = 'gray-9' } = props;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"30\"\n height=\"30\"\n fill=\"none\"\n >\n <path\n fill={`var(--pv-color-${color})`}\n fill-rule=\"evenodd\"\n d=\"m16.37 15 5.442 5.44c.25.252.25.663 0 .914l-.459.457a.646.646 0 0 1-.913 0L15 16.371l-5.44 5.44a.648.648 0 0 1-.915 0l-.457-.457a.649.649 0 0 1 0-.913L13.63 15 8.188 9.56a.649.649 0 0 1 0-.914l.457-.457a.648.648 0 0 1 .915 0l5.44 5.44 5.44-5.44a.646.646 0 0 1 .913 0l.46.457c.25.25.25.662 0 .913L16.37 15Z\"\n clip-rule=\"evenodd\"\n />\n </svg>\n );\n};\n","@import '../../css/base.scss';\n\n:host {\n display: block;\n width: 100%;\n word-wrap: break-word;\n min-width: 280px;\n overflow: auto;\n position: relative;\n}\n\n.search_section {\n padding: var(--pv-size-base-4);\n border-bottom: 1px solid var(--pv-color-gray-4);\n}\n\n.input_search {\n height: var(--pv-size-base-8);\n width: 100%;\n outline: none;\n background-color: var(--pv-color-gray-1);\n padding: 0 var(--pv-size-base-2);\n border: 1px solid var(--pv-color-gray-7);\n border-radius: 4px;\n transition: background-color 200ms ease 0s, color 200ms ease 0s, border-color 200ms ease 0s;\n &::placeholder {\n color: var(--pv-color-gray-9);\n }\n}\n\ntable {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n border-spacing: 0;\n\n td, th {\n border-bottom: 1px solid var(--pv-color-gray-4);\n vertical-align: top;\n text-align: left;\n\n &:first-child {\n padding-right: 0;\n width: var(--pv-size-base-10);\n }\n &:last-child {\n padding-left: 0;\n width: var(--pv-size-base-10);\n }\n }\n\n th {\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n\n &.col_action {\n padding: 0;\n }\n }\n\n td {\n padding: var(--pv-size-base-4);\n }\n\n tr {\n &.m_expanded {\n background: var(--pv-color-gray-1);\n\n > td {\n border-bottom: none;\n }\n }\n\n &.expanded_summary {\n background: var(--pv-color-gray-1);\n\n table {\n table-layout: initial;\n\n td {\n border-bottom: none;\n padding: var(--pv-size-base-2);\n\n &:first-child {\n width: 200px;\n }\n\n &:last-child {\n width: auto;\n }\n }\n }\n }\n }\n}\n\n.button_table_cell {\n margin-top: -3px;\n}\n\n.status_wrapper {\n text-align: center;\n height: var(--pv-size-base-16);\n vertical-align: middle;\n}\n\n.modal_wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n animation: fadeIn 200ms;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.modal_backdrop {\n background: var(--pv-color-black);\n z-index: -1;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n opacity: 0.5;\n}\n\n.modal_container {\n background: var(--pv-color-white);\n width: 100%;\n display: flex;\n max-height: calc(100% - 60px);\n flex-direction: column;\n margin: var(--pv-size-base-6);\n position: relative;\n outline: none;\n box-shadow: var(--pv-shadow-dark-hight);\n overflow: hidden;\n border: 0px;\n padding: 0px;\n max-width: 640px;\n border-radius: 4px;\n}\n\n.modal_header {\n padding: var(--pv-size-base-3) var(--pv-size-base-4);\n display: flex;\n flex: 0 0 auto;\n -webkit-box-pack: justify;\n justify-content: space-between;\n gap: var(--pv-size-base-2);\n border-bottom: 1px solid var(--pv-color-gray-5);\n}\n\n.modal_content {\n flex: 1 1 auto;\n overflow: auto;\n}\n\n:host([data-mobile-screen-view=\"true\"]) {\n table, tbody, tr, td {\n display: block;\n width: 100% !important;\n padding: 0;\n border: none;\n }\n\n thead {\n display: none;\n }\n\n table {\n tr {\n padding: var(--pv-size-base-2) 0;\n }\n\n .expanded_summary {\n padding: 0;\n }\n\n .certificate_row {\n border-bottom: 1px solid var(--pv-color-gray-5);\n padding: var(--pv-size-base-2) var(--pv-size-base-4);\n }\n\n .certificate_row_actions {\n padding-top: var(--pv-size-base-6);\n\n td {\n display: flex;\n justify-content: right;\n gap: var(--pv-size-base-4);\n }\n }\n }\n\n .button_table_cell {\n margin-top: 0;\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 Event,\n EventEmitter,\n Build,\n} from '@stencil/core';\n\nimport { X509Certificate } from '../../crypto';\nimport { OIDs } from '../../constants/oids';\nimport { l10n } from '../../utils';\nimport { Typography } from '../typography';\nimport { CertificateSummary } from '../certificate-summary';\nimport { Button } from '../button';\nimport {\n DownloadIcon,\n LinkIcon,\n DetailsIcon,\n ArrowBottomIcon,\n ArrowTopIcon,\n CrossIcon,\n} from '../icons';\n\nexport interface ICertificate {\n value: string;\n name?: string;\n tests?: {\n valid?: string;\n revoked?: string;\n expired?: string;\n };\n}\n\ninterface ICertificateDecoded {\n body: X509Certificate;\n tests?: ICertificate['tests'];\n name?: string;\n}\n\n@Component({\n tag: 'peculiar-certificates-viewer',\n styleUrl: 'certificates-viewer.scss',\n shadow: true,\n})\nexport class CertificatesViewer {\n private isHasRoots: boolean = false;\n\n private mobileMediaQuery: MediaQueryList;\n\n /**\n * List of certificates values for decode and show in the list.\n * <br />\n * **NOTE**: If you do not provide a `name` value when\n * invocing 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.\n */\n @Prop() certificates: ICertificate[] = [];\n\n /**\n * Use filter in the list when search is changed.\n */\n @Prop() filterWithSearch: boolean = true;\n\n /**\n * Use highlight chapters in the list when search is changed.\n */\n @Prop() highlightWithSearch: boolean = true;\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 /**\n * Emitted when the user open certificate details modal.\n */\n @Event() detailsOpen!: EventEmitter<X509Certificate>;\n\n /**\n * Emitted when the user close certificate details modal.\n */\n @Event() detailsClose!: EventEmitter<void>;\n\n @State() mobileScreenView: boolean = false;\n\n @State() search: string = '';\n\n @State() certificatesDecoded: ICertificateDecoded[] = [];\n\n @State() expandedRow?: number;\n\n @State() certificateSelectedForDetails?: X509Certificate;\n\n @State() isDecodeInProcess: boolean = true;\n\n private handleMediaQueryChange(event: MediaQueryListEvent) {\n this.mobileScreenView = event.matches;\n }\n\n componentWillLoad() {\n this.certificatesDecodeAndSet();\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 @Watch('certificates')\n watchCertificates(newValue: ICertificate[], oldValue: ICertificate[]) {\n /**\n * Prevent rerender after set the same `certificates` prop.\n */\n if (JSON.stringify(newValue) !== JSON.stringify(oldValue)) {\n this.certificatesDecodeAndSet();\n }\n }\n\n async certificatesDecodeAndSet() {\n let hasRoots = false;\n\n if (!Array.isArray(this.certificates)) {\n return;\n }\n\n const data: ICertificateDecoded[] = [];\n\n // eslint-disable-next-line no-restricted-syntax\n for (const certificate of this.certificates) {\n try {\n const decoded = new X509Certificate(certificate.value);\n\n await decoded.getThumbprint('SHA-1');\n\n data.push({\n body: decoded,\n tests: certificate.tests,\n name: certificate.name,\n });\n\n if (!hasRoots && decoded.isRoot) {\n hasRoots = true;\n }\n } catch (error) {\n console.error('Error certificate parse:', error);\n }\n }\n\n this.isHasRoots = hasRoots;\n this.isDecodeInProcess = false;\n this.certificatesDecoded = data;\n }\n\n // eslint-disable-next-line class-methods-use-this\n private handleClickDownloadAsPem(certificate: ICertificateDecoded) {\n certificate.body.downloadAsPEM(certificate.name || certificate.body.commonName);\n }\n\n // eslint-disable-next-line class-methods-use-this\n private handleClickDownloadAsDer(certificate: ICertificateDecoded) {\n certificate.body.downloadAsDER(certificate.name || certificate.body.commonName);\n }\n\n private handleClickDetails = (certificate: X509Certificate) => {\n this.certificateSelectedForDetails = certificate;\n this.detailsOpen.emit(certificate);\n };\n\n private handleModalClose = () => {\n this.certificateSelectedForDetails = undefined;\n\n this.detailsClose.emit();\n };\n\n private handleClickRow(index: number) {\n const isExpandedRowClicked = this.expandedRow === index;\n\n this.expandedRow = isExpandedRowClicked\n ? undefined\n : index;\n }\n\n private handleSearch = (event: any) => {\n this.search = event.target.value.trim();\n };\n\n private getMaxColSpanValue() {\n let colSpan = 5;\n\n if (!this.isHasRoots) {\n colSpan += 1;\n }\n\n return colSpan;\n }\n\n private renderCertificateButtonActions(certificate: ICertificateDecoded) {\n const isHasTestURLs = certificate.tests\n && (certificate.tests.expired || certificate.tests.revoked || certificate.tests.valid);\n\n return (\n <peculiar-button-menu\n class=\"button_table_cell\"\n groups={[\n {\n title: l10n.getString('previewCertificate'),\n options: [\n {\n text: l10n.getString('viewDetails'),\n startIcon: <DetailsIcon />,\n onClick: () => this.handleClickDetails(certificate.body),\n },\n ],\n },\n {\n title: l10n.getString('downloadOptions'),\n options: [\n {\n text: l10n.getString('download.pem'),\n startIcon: <DownloadIcon />,\n onClick: () => this.handleClickDownloadAsPem(certificate),\n },\n {\n text: l10n.getString('download.der'),\n startIcon: <DownloadIcon />,\n onClick: () => this.handleClickDownloadAsDer(certificate),\n },\n ],\n },\n ...(isHasTestURLs ? [{\n title: l10n.getString('testURLs'),\n options: [\n ...(certificate.tests?.valid ? [{\n text: l10n.getString('valid'),\n href: certificate.tests.valid,\n startIcon: <LinkIcon />,\n }] : []),\n ...(certificate.tests?.revoked ? [{\n text: l10n.getString('revoked'),\n href: certificate.tests.revoked,\n startIcon: <LinkIcon />,\n }] : []),\n ...(certificate.tests?.expired ? [{\n text: l10n.getString('expired'),\n href: certificate.tests.expired,\n startIcon: <LinkIcon />,\n }] : []),\n ],\n }] : []),\n ]}\n />\n );\n }\n\n private renderExpandedRow(certificate: X509Certificate) {\n const colSpan = this.getMaxColSpanValue() - 2;\n\n return (\n <tr class=\"expanded_summary\">\n <td />\n <td colSpan={colSpan}>\n <CertificateSummary\n certificate={certificate}\n showIssuer={!certificate.isRoot}\n />\n </td>\n <td />\n </tr>\n );\n }\n\n private renderCertificatesRows() {\n const searchHighlight = this.highlightWithSearch\n ? this.search\n : '';\n const content = [];\n\n this.certificatesDecoded.forEach((certificate, index) => {\n const isExpandedRow = index === this.expandedRow;\n const publicKeyValue = OIDs[certificate.body.signature.algorithm]\n || certificate.body.signature.algorithm;\n\n if (this.filterWithSearch && this.search) {\n const certificateStringForSearch = [\n publicKeyValue,\n certificate.body.issuerCommonName,\n certificate.name,\n certificate.body.commonName,\n certificate.body.thumbprints['SHA-1'],\n ]\n .join(' ')\n .toLowerCase();\n\n if (certificateStringForSearch.indexOf(this.search.toLowerCase()) === -1) {\n return;\n }\n }\n\n if (this.mobileScreenView) {\n content.push([\n <tr\n class={{\n certificate_row: true,\n m_expanded: isExpandedRow,\n }}\n key={certificate.body.thumbprints['SHA-1']}\n >\n <td>\n <table>\n <tbody>\n {!this.isHasRoots && (\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('issuer')}\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.issuerCommonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n )}\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('name')}\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.name || certificate.body.commonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('publicKey')}\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {publicKeyValue}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n <tr>\n <td>\n <Typography variant=\"b2\" color=\"gray-9\">\n {l10n.getString('fingerprint')}\n &nbsp; (SHA-1)\n </Typography>\n </td>\n <td>\n <Typography variant=\"b2\" color=\"black\">\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.thumbprints['SHA-1']}\n </peculiar-highlight-words>\n </Typography>\n </td>\n </tr>\n {isExpandedRow && this.renderExpandedRow(certificate.body)}\n <tr class=\"certificate_row_actions\">\n <td>\n {this.renderCertificateButtonActions(certificate)}\n <Button\n // eslint-disable-next-line react/jsx-no-bind\n onClick={this.handleClickRow.bind(this, index)}\n startIcon={isExpandedRow ? <ArrowTopIcon /> : <ArrowBottomIcon />}\n />\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>,\n ]);\n\n return;\n }\n\n content.push([\n <tr\n class={{\n m_expanded: isExpandedRow,\n }}\n key={certificate.body.thumbprints['SHA-1']}\n >\n <td>\n <Button\n class=\"button_table_cell\"\n // eslint-disable-next-line react/jsx-no-bind\n onClick={this.handleClickRow.bind(this, index)}\n startIcon={isExpandedRow ? <ArrowTopIcon /> : <ArrowBottomIcon />}\n />\n </td>\n {!this.isHasRoots && (\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.issuerCommonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n )}\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.name || certificate.body.commonName}\n </peculiar-highlight-words>\n </Typography>\n </td>\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {publicKeyValue}\n </peculiar-highlight-words>\n </Typography>\n </td>\n <td>\n <Typography>\n <peculiar-highlight-words search={searchHighlight}>\n {certificate.body.thumbprints['SHA-1']}\n </peculiar-highlight-words>\n </Typography>\n </td>\n <td>\n {this.renderCertificateButtonActions(certificate)}\n </td>\n </tr>,\n isExpandedRow && this.renderExpandedRow(certificate.body),\n ]);\n });\n\n return content;\n }\n\n private renderCertificateDetailsModal() {\n if (!this.certificateSelectedForDetails) {\n return null;\n }\n\n return (\n <div\n class=\"modal_wrapper\"\n role=\"presentation\"\n aria-hidden=\"false\"\n part=\"presentation\"\n >\n <div\n class=\"modal_backdrop\"\n onClick={this.handleModalClose}\n aria-hidden=\"true\"\n />\n <div\n class=\"modal_container\"\n role=\"dialog\"\n part=\"presentation_container\"\n >\n <header class=\"modal_header\">\n <Typography\n variant=\"h4\"\n >\n {l10n.getString('certificateDetails')}\n </Typography>\n <Button\n onClick={this.handleModalClose}\n startIcon={<CrossIcon />}\n />\n </header>\n <div class=\"modal_content\">\n <peculiar-certificate-viewer\n certificate={this.certificateSelectedForDetails}\n mobileMediaQueryString={this.mobileMediaQueryString}\n />\n </div>\n </div>\n </div>\n );\n }\n\n private renderSearch() {\n if (!this.filterWithSearch && !this.highlightWithSearch) {\n return null;\n }\n\n return (\n <div class=\"search_section\">\n <input\n onInput={this.handleSearch}\n type=\"search\"\n value=\"\"\n class=\"input_search t-b3 c-black\"\n disabled={!this.certificatesDecoded.length}\n placeholder=\"Search\"\n />\n </div>\n );\n }\n\n private renderEmptyState() {\n const colSpan = this.getMaxColSpanValue();\n\n return (\n <tr>\n <td\n class=\"status_wrapper\"\n colSpan={colSpan}\n >\n <Typography\n variant=\"b1\"\n >\n There are no certificates available.\n </Typography>\n </td>\n </tr>\n );\n }\n\n private renderEmptySearchState() {\n const colSpan = this.getMaxColSpanValue();\n\n return (\n <tr>\n <td\n class=\"status_wrapper\"\n colSpan={colSpan}\n >\n <Typography\n variant=\"b1\"\n >\n No results found for &ldquo;\n {this.search}\n &ldquo;\n </Typography>\n </td>\n </tr>\n );\n }\n\n // eslint-disable-next-line class-methods-use-this\n private renderLoadingState() {\n return (\n <div class=\"loading_container\">\n <peculiar-circular-progress />\n </div>\n );\n }\n\n private renderTableBody() {\n if (this.isDecodeInProcess) {\n return null;\n }\n\n if (!this.certificatesDecoded.length) {\n return this.renderEmptyState();\n }\n\n const certificatesRows = this.renderCertificatesRows();\n\n if (this.search && !certificatesRows.length) {\n return this.renderEmptySearchState();\n }\n\n return certificatesRows;\n }\n\n render() {\n return (\n <Host\n data-mobile-screen-view={String(this.mobileScreenView)}\n >\n {this.renderSearch()}\n <table>\n {!this.mobileScreenView && (\n <thead>\n <tr>\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <th />\n {!this.isHasRoots && (\n <th class=\"col_issuer\">\n <Typography variant=\"s2\">\n {l10n.getString('issuer')}\n </Typography>\n </th>\n )}\n <th class=\"col_name\">\n <Typography variant=\"s2\">\n {l10n.getString('name')}\n </Typography>\n </th>\n <th class=\"col_public_key\">\n <Typography variant=\"s2\">\n {l10n.getString('publicKey')}\n </Typography>\n </th>\n <th class=\"col_fingerprint\">\n <Typography variant=\"s2\">\n {l10n.getString('fingerprint')}\n &nbsp; (SHA-1)\n </Typography>\n </th>\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <th />\n </tr>\n </thead>\n )}\n <tbody>\n {this.renderTableBody()}\n </tbody>\n </table>\n\n {this.renderCertificateDetailsModal()}\n {this.isDecodeInProcess && this.renderLoadingState()}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -5,29 +5,23 @@
5
5
 
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
- const index = require('./index-064e95c7.js');
8
+ const index = require('./index-efd561e9.js');
9
+ const button = require('./button-14e2b73f.js');
10
+ const arrow_top = require('./arrow_top-834fb7ec.js');
9
11
 
10
- const textHiderCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%}.text{display:inline-block;width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.text.m_opened{white-space:initial}.action{vertical-align:top;display:inline-block;width:60px;text-align:right;position:relative;top:-6px}.button_action{width:30px}.expand_icon{width:7px;height:5px;display:inline-block}.m_opened .expand_icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}";
12
+ const textHiderCss = ".sc-peculiar-text-hider-h{display:-ms-flexbox;display:flex;width:100%;gap:var(--pv-size-base-4)}[aria-expanded=true].sc-peculiar-text-hider-h .content.sc-peculiar-text-hider{white-space:initial}.content.sc-peculiar-text-hider{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.action.sc-peculiar-text-hider{-ms-flex-negative:0;flex-shrink:0;margin-top:calc(var(--pv-size-base) * -1)}";
11
13
 
12
14
  const TextHider = class {
13
15
  constructor(hostRef) {
14
16
  index.registerInstance(this, hostRef);
15
- this.textExpand = index.createEvent(this, "textExpand", 7);
16
17
  this.opened = false;
17
18
  }
18
- textExpandHandler() {
19
- this.opened = !this.opened;
20
- }
21
19
  render() {
22
- return (index.h(index.Host, null, index.h("div", { class: "root" }, index.h("div", { class: {
23
- text: true,
24
- m_opened: this.opened,
25
- } }, index.h("slot", null)), index.h("div", { class: "action" }, index.h("peculiar-button", { onClick: this.textExpand.emit, class: {
26
- button_action: true,
27
- m_opened: this.opened,
28
- }, fill: this.opened ? 'fill' : 'stroke' }, index.h("svg", { viewBox: "0 0 7 5", xmlns: "http://www.w3.org/2000/svg", class: "expand_icon" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "currentColor", d: "M5.459.124c.934.001 1.442.994.84 1.644L4.425 3.794c-.44.475-1.244.475-1.684 0L.862 1.764C.26 1.115.77.12 1.705.122l3.754.003z" })))))));
20
+ return (index.h(index.Host, { "aria-expanded": String(this.opened) }, index.h("div", { class: "content" }, index.h("slot", null)), index.h(button.Button, { class: "action", onClick: () => { this.opened = !this.opened; }, startIcon: this.opened ? index.h(arrow_top.ArrowTopIcon, { color: "secondary" }) : index.h(arrow_top.ArrowBottomIcon, { color: "secondary" }) })));
29
21
  }
30
22
  };
31
23
  TextHider.style = textHiderCss;
32
24
 
33
25
  exports.peculiar_text_hider = TextHider;
26
+
27
+ //# sourceMappingURL=peculiar-text-hider.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"peculiar-text-hider.entry.cjs.js","mappings":";;;;;;;;;;;AAAA,MAAM,YAAY,GAAG,oZAAoZ;;MCsB5Z,SAAS;;;kBACO,KAAK;;EAEhC,MAAM;IACJ,QACEA,QAACC,UAAI,qBACY,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAElCD,iBAAK,KAAK,EAAC,SAAS,IAClBA,qBAAQ,CACJ,EACNA,QAACE,aAAM,IACL,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,QAAQ,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAC9C,SAAS,EAAE,IAAI,CAAC,MAAM,GAAGF,QAACG,sBAAY,IAAC,KAAK,EAAC,WAAW,GAAG,GAAGH,QAACI,yBAAe,IAAC,KAAK,EAAC,WAAW,GAAG,GACnG,CACG,EACP;GACH;;;;;;","names":["h","Host","Button","ArrowTopIcon","ArrowBottomIcon"],"sources":["src/components/text-hider/text-hider.scss?tag=peculiar-text-hider&encapsulation=scoped","src/components/text-hider/text-hider.tsx"],"sourcesContent":[":host {\n display: flex;\n width: 100%;\n gap: var(--pv-size-base-4);\n\n &[aria-expanded=\"true\"] {\n .content {\n white-space: initial;\n }\n }\n}\n\n.content {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n}\n\n.action {\n flex-shrink: 0;\n margin-top: calc(var(--pv-size-base) * -1);\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 State,\n} from '@stencil/core';\nimport { Button } from '../button';\nimport { ArrowBottomIcon, ArrowTopIcon } from '../icons';\n\n@Component({\n tag: 'peculiar-text-hider',\n styleUrl: 'text-hider.scss',\n scoped: true,\n})\nexport class TextHider {\n @State() opened: boolean = false;\n\n render() {\n return (\n <Host\n aria-expanded={String(this.opened)}\n >\n <div class=\"content\">\n <slot />\n </div>\n <Button\n class=\"action\"\n onClick={() => { this.opened = !this.opened; }}\n startIcon={this.opened ? <ArrowTopIcon color=\"secondary\" /> : <ArrowBottomIcon color=\"secondary\" />}\n />\n </Host>\n );\n }\n}\n"],"version":3}