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