@peculiar/certificates-viewer 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{certification_request-6cd86a69.js → certification_request-6eb7ef37.js} +6982 -6865
- package/dist/cjs/{crl-91c8642c.js → crl-75106e2e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{public_key-dccd1cdf.js → miscellaneous-0eade914.js} +387 -225
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +87 -90
- package/dist/cjs/{peculiar-certificate-summary_3.cjs.entry.js → peculiar-button-split_4.cjs.entry.js} +35 -0
- package/dist/cjs/peculiar-button.cjs.entry.js +40 -0
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +3 -3
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
- package/dist/cjs/peculiar-link.cjs.entry.js +29 -0
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +33 -0
- package/dist/cjs/peculiar-typography.cjs.entry.js +38 -0
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/{x509_certificate-87a3fdb6.js → x509_certificate-9e7652cf.js} +18 -4
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +1 -8
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.js +1 -2
- package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +27 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +43 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +28 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.js +7 -3
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +24 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.js +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +54 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.js +8 -7
- package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/holder.js +3 -4
- package/dist/collection/components/certificate-details-parts/index.js +15 -0
- package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.js +2 -2
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/public_key.js +14 -9
- package/dist/collection/components/{crl-viewer → certificate-details-parts}/revoked_certificates.js +3 -7
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/row.js +3 -0
- package/dist/collection/components/certificate-details-parts/signature.js +31 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.css +4 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +1 -8
- package/dist/collection/components/crl-viewer/crl-viewer.js +1 -7
- package/dist/collection/components/csr-viewer/csr-viewer.js +1 -8
- package/dist/collection/constants/oids.js +21 -13
- package/dist/collection/crypto/x509_certificate.js +18 -3
- package/dist/collection/{components/certificate-viewer → utils}/get_string_by_oid.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/esm/{certification_request-5089bdb5.js → certification_request-4adeae0c.js} +6727 -6618
- package/dist/esm/{crl-cd78d029.js → crl-2857d300.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{public_key-081d831c.js → miscellaneous-91256fd3.js} +387 -226
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +54 -57
- package/dist/esm/{peculiar-certificate-summary_3.entry.js → peculiar-button-split_4.entry.js} +35 -1
- package/dist/esm/peculiar-button.entry.js +36 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +3 -3
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
- package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
- package/dist/esm/peculiar-link.entry.js +25 -0
- package/dist/esm/peculiar-text-hider.entry.js +29 -0
- package/dist/esm/peculiar-typography.entry.js +34 -0
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/{x509_certificate-69c7b972.js → x509_certificate-e7b4d8d1.js} +18 -4
- package/dist/peculiar/p-05f4713f.js +11 -0
- package/dist/peculiar/{p-39896604.entry.js → p-22d8ae9c.entry.js} +1 -1
- package/dist/peculiar/{p-72856c36.entry.js → p-40808c02.entry.js} +1 -1
- package/dist/peculiar/p-57b89412.entry.js +4 -0
- package/dist/peculiar/p-5fb5f008.entry.js +18 -0
- package/dist/peculiar/p-610b85e3.entry.js +4 -0
- package/dist/peculiar/p-6d37c8b5.entry.js +4 -0
- package/dist/peculiar/p-77121cf7.js +69 -0
- package/dist/peculiar/p-7de0bfb3.entry.js +4 -0
- package/dist/peculiar/p-893659f4.entry.js +4 -0
- package/dist/peculiar/p-918aeee4.entry.js +4 -0
- package/dist/peculiar/p-b44dc7c9.js +79 -0
- package/dist/peculiar/{p-85377ca1.js → p-e7518804.js} +3 -3
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-details-parts/index.d.ts +12 -0
- package/dist/types/components/{certificate-viewer → certificate-details-parts}/row.d.ts +1 -0
- package/dist/types/constants/oids.d.ts +7 -0
- package/dist/types/crypto/x509_certificate.d.ts +6 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +21 -19
- package/dist/cjs/peculiar-button_5.cjs.entry.js +0 -148
- package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js +0 -26
- package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js +0 -43
- package/dist/collection/components/certificate-viewer/extensions/certificate_transparency_extension.js +0 -27
- package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js +0 -23
- package/dist/collection/components/certificate-viewer/extensions/qc_statements_extension.js +0 -23
- package/dist/collection/components/certificate-viewer/signature.js +0 -26
- package/dist/esm/peculiar-button_5.entry.js +0 -140
- package/dist/peculiar/p-28d6119e.entry.js +0 -26
- package/dist/peculiar/p-3bd51c63.js +0 -87
- package/dist/peculiar/p-870c3592.entry.js +0 -4
- package/dist/peculiar/p-a7322c0b.js +0 -11
- package/dist/peculiar/p-ade86ece.entry.js +0 -4
- package/dist/peculiar/p-dafae164.entry.js +0 -4
- package/dist/peculiar/p-f8d68bc3.js +0 -63
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/index.js +0 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.js +0 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.js +0 -0
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.js +1 -1
- package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.js +1 -1
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/basic_information.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/index.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/issuer_name.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/miscellaneous.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/subject_name.js +0 -0
- /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/thumbprints.js +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/index.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/basic_information.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/index.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.d.ts +0 -0
- /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/holder.d.ts +0 -0
- /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/issuer_name.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/miscellaneous.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/public_key.d.ts +0 -0
- /package/dist/types/components/{crl-viewer → certificate-details-parts}/revoked_certificates.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/signature.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/subject_name.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/thumbprints.d.ts +0 -0
- /package/dist/types/components/{certificate-viewer → certificate-details-parts}/types.d.ts +0 -0
- /package/dist/types/{components/certificate-viewer → utils}/get_string_by_oid.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{A as t,
|
|
4
|
+
import{A as t,s,t as e,u as r,v as i,E as a,f as n,w as o,U as h,x as c,y as u,z as l,V as m,B as E,I as g,D as p,W as A,F as d,G as f,H as b,T as w,J as x,K as C,L as T,M as R,O as I,P as v,Q as k,S as N,e as F,X as y,r as B,p as D,q as P,Y as H,N as S,g as L,h as X,j,R as U,Z as q}from"./p-b44dc7c9.js";import{b as G,D as K}from"./p-cff9655c.js";import{d as M}from"./p-fec9d812.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -22,11 +22,11 @@ import{A as t,n as s,o as e,p as r,q as i,E as a,f as n,r as o,U as h,s as c,t a
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/class
|
|
25
|
+
*/class Q extends t{constructor(t){super(F(t),H),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:s}=this.asn;this.subject=new S(s.subject).toJSON(),this.version=s.version}get publicKey(){const{subjectPublicKey:t,algorithm:s}=this.asn.certificationRequestInfo.subjectPKInfo;let e;return s.algorithm===L&&s.parameters&&(e=n.parse(s.parameters,X)),s.algorithm===j&&(e=n.parse(t,U)),{params:e,value:n.serialize(this.asn.certificationRequestInfo.subjectPKInfo),algorithm:s.algorithm}}get signature(){const{signature:t,signatureAlgorithm:s}=this.asn;return{value:t,algorithm:s.algorithm}}get commonName(){if(!this.subject)return"";for(let t=0;t<this.subject.length;t+=1){const s=this.subject[t];if("CN"===s.shortName||"E"===s.shortName||"O"===s.shortName)return s.value}return""}async getThumbprint(t="SHA-1"){try{const s=await B(t,this.raw);s&&(this.thumbprints[t.name||t]=G.Convert.ToHex(s))}catch(t){console.error("Error thumbprint get:",t)}}parseAttributes(){const{certificationRequestInfo:t}=this.asn;t.attributes&&(this.attributes=t.attributes.map((t=>new $(n.serialize(t)))))}exportAsBase64(){return G.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return D(G.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE REQUEST-----\n${P(this.exportAsBase64())}\n-----END CERTIFICATE REQUEST-----`}downloadAsPEM(t){K.csr.asPEM(this.exportAsPemFormatted(),t||this.commonName)}downloadAsDER(t){K.csr.asDER(this.exportAsHexFormatted(),t||this.commonName)}}
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/class
|
|
32
|
+
*/class V extends t{constructor(t){super(F(t),q),this.thumbprints={},this.type="X.509 Certificate Revocation List";const{tbsCertList:s}=this.asn;this.issuer=new S(s.issuer).toJSON(),this.version=s.version+1,this.lastUpdate=s.thisUpdate.getTime(),this.nextUpdate=s.nextUpdate.getTime(),this.revokedCertificates=(s.revokedCertificates||[]).map((t=>{var s;return{revocationDate:t.revocationDate,userCertificate:t.userCertificate,crlEntryExtensions:null===(s=t.crlEntryExtensions)||void 0===s?void 0:s.map((t=>new a(n.serialize(t))))}}))}async getThumbprint(t="SHA-1"){try{const s=await B(t,this.raw);s&&(this.thumbprints[t.name||t]=G.Convert.ToHex(s))}catch(t){console.error("Error thumbprint get:",t)}}get signature(){const{signature:t,signatureAlgorithm:s}=this.asn;return{value:t,algorithm:s.algorithm}}get commonName(){if(!this.issuer)return"";for(let t=0;t<this.issuer.length;t+=1){const s=this.issuer[t];if("CN"===s.shortName||"E"===s.shortName||"O"===s.shortName)return s.value}return""}parseExtensions(){const{tbsCertList:t}=this.asn;t.crlExtensions&&(this.extensions=t.crlExtensions.map((t=>new a(n.serialize(t)))))}exportAsBase64(){return G.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return D(G.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN X509 CRL-----\n${P(this.exportAsBase64())}\n-----END X509 CRL-----`}downloadAsPEM(t){K.crl.asPEM(this.exportAsPemFormatted(),t||this.commonName)}downloadAsDER(t){K.crl.asDER(this.exportAsHexFormatted(),t||this.commonName)}}export{Q as C,O as X,V as a}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{d as e,N as i,w as t,p as c,b as r}from"./p-f7683ba5.js";(()=>{const r=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)),s=r["data-opts"]||{};return s.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,t.location.href)).href,((c,r)=>{const s=`__sc_import_${i.replace(/\s|-/g,"_")}`;try{t[s]=new Function("w",`return import(w);//${Math.random()}`)}catch(i){const a=new Map;t[s]=i=>{const n=new URL(i,c).href;let l=a.get(n);if(!l){const i=e.createElement("script");i.type="module",i.crossOrigin=r.crossOrigin,i.src=URL.createObjectURL(new Blob([`import * as m from '${n}'; window.${s}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{i.onload=()=>{e(t[s].m),i.remove()}})),a.set(n,l),e.head.appendChild(i)}return l}}})(s.resourcesUrl,r),t.customElements?c(s):__sc_import_peculiar("./p-9f4ee110.js").then((()=>s))})().then((e=>r([["p-
|
|
4
|
+
import{d as e,N as i,w as t,p as c,b as r}from"./p-f7683ba5.js";(()=>{const r=Array.from(e.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)),s=r["data-opts"]||{};return s.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,t.location.href)).href,((c,r)=>{const s=`__sc_import_${i.replace(/\s|-/g,"_")}`;try{t[s]=new Function("w",`return import(w);//${Math.random()}`)}catch(i){const a=new Map;t[s]=i=>{const n=new URL(i,c).href;let l=a.get(n);if(!l){const i=e.createElement("script");i.type="module",i.crossOrigin=r.crossOrigin,i.src=URL.createObjectURL(new Blob([`import * as m from '${n}'; window.${s}.m = m;`],{type:"application/javascript"})),l=new Promise((e=>{i.onload=()=>{e(t[s].m),i.remove()}})),a.set(n,l),e.head.appendChild(i)}return l}}})(s.resourcesUrl,r),t.customElements?c(s):__sc_import_peculiar("./p-9f4ee110.js").then((()=>s))})().then((e=>r([["p-22d8ae9c",[[1,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]}]]],["p-40808c02",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],defaultCertificate:[1,"default-certificate"],certificateDecoded:[32]}]]],["p-610b85e3",[[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]]]],["p-6d37c8b5",[[1,"peculiar-link",{href:[513],type:[513]}]]],["p-57b89412",[[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}]]],["p-7de0bfb3",[[1,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}]]],["p-5fb5f008",[[1,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],isDecodeInProcess:[32]}],[1,"peculiar-crl-viewer",{certificate:[513],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}]]],["p-918aeee4",[[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["p-893659f4",[[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]]],e)));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { BasicInformation } from './basic_information';
|
|
2
|
+
export { PublicKey } from './public_key';
|
|
3
|
+
export { SubjectName } from './subject_name';
|
|
4
|
+
export { IssuerName } from './issuer_name';
|
|
5
|
+
export { Signature } from './signature';
|
|
6
|
+
export { Thumbprints } from './thumbprints';
|
|
7
|
+
export { Extensions } from './extensions';
|
|
8
|
+
export { Attributes } from './attributes';
|
|
9
|
+
export { Miscellaneous } from './miscellaneous';
|
|
10
|
+
export { RevokedCertificates } from './revoked_certificates';
|
|
11
|
+
export { Holder } from './holder';
|
|
12
|
+
export { Issuer } from './issuer';
|
|
@@ -317,6 +317,7 @@ export declare const OIDs: {
|
|
|
317
317
|
'0.4.0.1862.1.6.1': string;
|
|
318
318
|
'0.4.0.1862.1.6.2': string;
|
|
319
319
|
'0.4.0.1862.1.6.3': string;
|
|
320
|
+
'0.4.0.194121.1.2': string;
|
|
320
321
|
'0.4.0.194112.1.0': string;
|
|
321
322
|
'0.4.0.194112.1.1': string;
|
|
322
323
|
'0.4.0.194112.1.2': string;
|
|
@@ -2304,4 +2305,10 @@ export declare const OIDs: {
|
|
|
2304
2305
|
'0.4.0.9496.9': string;
|
|
2305
2306
|
'1.3.6.1.4.1.37244.2.1': string;
|
|
2306
2307
|
'1.3.6.1.4.1.37244.2.2': string;
|
|
2308
|
+
'1.3.6.1.4.1.18227.2.1': string;
|
|
2309
|
+
'2.16.840.1.114027.80.4.1': string;
|
|
2310
|
+
'1.3.6.1.4.1.2.267.7.6.5': string;
|
|
2311
|
+
'1.3.6.1.4.1.18227.999.1.2.1': string;
|
|
2312
|
+
'1.3.6.1.4.1.18227.999.1.2.2': string;
|
|
2313
|
+
'1.3.6.1.4.1.18227.999.1.2.3': string;
|
|
2307
2314
|
};
|
|
@@ -14,11 +14,15 @@ import { AsnData } from './asn_data';
|
|
|
14
14
|
export interface ISignature {
|
|
15
15
|
algorithm: string;
|
|
16
16
|
value: BufferSource;
|
|
17
|
+
params?: {
|
|
18
|
+
algorithm: string;
|
|
19
|
+
value: BufferSource;
|
|
20
|
+
}[];
|
|
17
21
|
}
|
|
18
22
|
export interface IPublicKey {
|
|
19
23
|
algorithm: string;
|
|
20
24
|
value: BufferSource;
|
|
21
|
-
params?: ECParameters | RSAPublicKey;
|
|
25
|
+
params?: ECParameters | RSAPublicKey | IPublicKey[];
|
|
22
26
|
}
|
|
23
27
|
export declare class X509Certificate extends AsnData<Certificate> {
|
|
24
28
|
readonly serialNumber: string;
|
|
@@ -33,6 +37,7 @@ export declare class X509Certificate extends AsnData<Certificate> {
|
|
|
33
37
|
type: string;
|
|
34
38
|
constructor(raw: string);
|
|
35
39
|
parseExtensions(): void;
|
|
40
|
+
private getPublicKeyInfo;
|
|
36
41
|
get publicKey(): IPublicKey;
|
|
37
42
|
get signature(): ISignature;
|
|
38
43
|
exportAsBase64(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peculiar/certificates-viewer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Peculiar Certificate Viewer web-components makes it easy for you to display certificate related details in your web application.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,23 +41,25 @@
|
|
|
41
41
|
"typescript": "^4.0.5"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@peculiar/asn1-adobe-acrobat": "^2.3.
|
|
45
|
-
"@peculiar/asn1-cert-transparency": "^2.3.
|
|
46
|
-
"@peculiar/asn1-csr": "^2.3.
|
|
47
|
-
"@peculiar/asn1-ecc": "^2.3.
|
|
48
|
-
"@peculiar/asn1-lei": "^2.3.
|
|
49
|
-
"@peculiar/asn1-ntqwac": "^2.3.
|
|
50
|
-
"@peculiar/asn1-pkcs9": "^2.3.
|
|
51
|
-
"@peculiar/asn1-rfc8226": "^2.3.
|
|
52
|
-
"@peculiar/asn1-rsa": "^2.3.
|
|
53
|
-
"@peculiar/asn1-schema": "^2.3.
|
|
54
|
-
"@peculiar/asn1-x509": "^2.3.
|
|
55
|
-
"@peculiar/asn1-x509-attr": "^2.3.
|
|
56
|
-
"@peculiar/asn1-x509-logotype": "^2.3.
|
|
57
|
-
"@peculiar/asn1-x509-microsoft": "^2.3.
|
|
58
|
-
"@peculiar/asn1-x509-netscape": "^2.3.
|
|
59
|
-
"@peculiar/asn1-x509-
|
|
60
|
-
"
|
|
44
|
+
"@peculiar/asn1-adobe-acrobat": "^2.3.6",
|
|
45
|
+
"@peculiar/asn1-cert-transparency": "^2.3.6",
|
|
46
|
+
"@peculiar/asn1-csr": "^2.3.6",
|
|
47
|
+
"@peculiar/asn1-ecc": "^2.3.6",
|
|
48
|
+
"@peculiar/asn1-lei": "^2.3.6",
|
|
49
|
+
"@peculiar/asn1-ntqwac": "^2.3.6",
|
|
50
|
+
"@peculiar/asn1-pkcs9": "^2.3.6",
|
|
51
|
+
"@peculiar/asn1-rfc8226": "^2.3.6",
|
|
52
|
+
"@peculiar/asn1-rsa": "^2.3.6",
|
|
53
|
+
"@peculiar/asn1-schema": "^2.3.6",
|
|
54
|
+
"@peculiar/asn1-x509": "^2.3.6",
|
|
55
|
+
"@peculiar/asn1-x509-attr": "^2.3.6",
|
|
56
|
+
"@peculiar/asn1-x509-logotype": "^2.3.6",
|
|
57
|
+
"@peculiar/asn1-x509-microsoft": "^2.3.6",
|
|
58
|
+
"@peculiar/asn1-x509-netscape": "^2.3.6",
|
|
59
|
+
"@peculiar/asn1-x509-post-quantum": "^2.3.6",
|
|
60
|
+
"@peculiar/asn1-x509-qualified": "^2.3.6",
|
|
61
|
+
"@peculiar/asn1-x509-qualified-etsi": "^2.3.6",
|
|
62
|
+
"dayjs": "^1.11.7",
|
|
61
63
|
"pvtsutils": "^1.3.2"
|
|
62
64
|
},
|
|
63
65
|
"license": "MIT",
|
|
@@ -70,5 +72,5 @@
|
|
|
70
72
|
"publishConfig": {
|
|
71
73
|
"access": "public"
|
|
72
74
|
},
|
|
73
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "6653289bcb06b0414ea225c3fe90cbe856246873"
|
|
74
76
|
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
-
|
|
8
|
-
const index = require('./index-064e95c7.js');
|
|
9
|
-
|
|
10
|
-
const buttonCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;width:auto;cursor:pointer;position:relative;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;--pv-button-padding-end:5px;--pv-button-padding-start:5px}.button{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);font-size:13px;font-size:var(--pv-font-size-b3);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;border-style:solid;border-width:1px;font-weight:400;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;cursor:inherit;height:30px;line-height:30px;border-radius:2px;padding:0 5px;padding:0 var(--pv-button-padding-end) 0 var(--pv-button-padding-start)}.button::-moz-focus-inner{border:0}.button:focus{outline:none;-webkit-box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1);box-shadow:0 4px 10px 0 rgba(var(--pv-color-dark-rgb), 0.1)}.button[disabled]{opacity:0.5;cursor:not-allowed}.button_stroke{border-color:rgba(53, 132, 247, 0.3);border-color:rgba(var(--pv-color-primary-rgb), 0.3);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);background-color:transparent}.button_fill{border-color:#3584f7;border-color:rgba(var(--pv-color-primary-rgb), 1);background-color:#3584f7;background-color:rgba(var(--pv-color-primary-rgb), 1);color:white;color:rgba(var(--pv-color-light-rgb), 1)}.button_label{-webkit-transition:opacity 200ms;transition:opacity 200ms}.button:hover .button_label{opacity:0.7}";
|
|
11
|
-
|
|
12
|
-
const Button = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.fill = 'stroke';
|
|
16
|
-
this.handleClick = (event) => {
|
|
17
|
-
if (this.disabled) {
|
|
18
|
-
event.preventDefault();
|
|
19
|
-
event.stopPropagation();
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (this.onClick) {
|
|
23
|
-
this.onClick(event);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
const isLink = !!this.href;
|
|
29
|
-
const TagType = isLink ? 'a' : 'button';
|
|
30
|
-
return (index.h(TagType, { class: {
|
|
31
|
-
button: true,
|
|
32
|
-
button_stroke: this.fill === 'stroke',
|
|
33
|
-
button_fill: this.fill === 'fill',
|
|
34
|
-
button_disabled: this.disabled,
|
|
35
|
-
}, disabled: this.disabled, type: !isLink && 'button', href: isLink && this.href, target: isLink && this.target ? this.target : null, rel: isLink && 'noreferrer noopener', onClick: this.handleClick, part: "base" }, index.h("span", { part: "label", class: "button_label" }, index.h("slot", null))));
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Button.style = buttonCss;
|
|
39
|
-
|
|
40
|
-
const buttonSplitCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:inline-block;vertical-align:top;position:relative;white-space:nowrap;font-size:0}.button_split_icon{width:7px;height:5px;display:inline-block;vertical-align:middle}.button_split_with_icon{width:25px;border-bottom-left-radius:0;border-top-left-radius:0}.button_split_with_icon.m_open::part(base):before{position:fixed;width:100%;height:100%;top:0;left:0;content:\"\"}.button_split_action{width:100%}.button_split_container{position:absolute;bottom:calc(100% + 1px);left:0;width:100%;border-radius:2px;-webkit-box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);box-shadow:0px -2px 1px rgb(var(--pv-color-light-rgb)), 0px 0px 10px rgba(var(--pv-color-dark-rgb), 0.0241168);z-index:1}.button_split>peculiar-button:first-of-type::part(base){border-top-right-radius:0;border-bottom-right-radius:0}.button_split>peculiar-button:last-of-type::part(base){border-top-left-radius:0;border-bottom-left-radius:0}.button_split>peculiar-button:not(:first-child){margin-left:-1px}";
|
|
41
|
-
|
|
42
|
-
const ButtonSplit = class {
|
|
43
|
-
constructor(hostRef) {
|
|
44
|
-
index.registerInstance(this, hostRef);
|
|
45
|
-
this.fill = 'stroke';
|
|
46
|
-
this.actions = [];
|
|
47
|
-
this.open = false;
|
|
48
|
-
this.onClickSplitButton = (event) => {
|
|
49
|
-
event.stopPropagation();
|
|
50
|
-
this.open = !this.open;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
onClickActiveButton(action, event) {
|
|
54
|
-
this.open = false;
|
|
55
|
-
action(event);
|
|
56
|
-
}
|
|
57
|
-
renderActiveSplitState() {
|
|
58
|
-
if (!this.open) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
return (index.h("div", { class: "button_split_container" }, this.actions.map((action) => (index.h("peculiar-button", { fill: "fill", class: "button_split_action", onClick: this.onClickActiveButton.bind(this, action.onClick) }, action.text)))));
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return (index.h("div", { class: {
|
|
65
|
-
button_split: true,
|
|
66
|
-
} }, index.h("peculiar-button", { fill: this.fill, onClick: this.onClick }, index.h("slot", null)), index.h("peculiar-button", { fill: this.fill, onClick: this.onClickSplitButton, class: {
|
|
67
|
-
button_split_with_icon: true,
|
|
68
|
-
m_open: this.open,
|
|
69
|
-
} }, index.h("svg", { viewBox: "0 0 7 5", xmlns: "http://www.w3.org/2000/svg", class: "button_split_icon" }, index.h("path", { fill: "currentColor", "fill-rule": "evenodd", "clip-rule": "evenodd", 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" }))), this.renderActiveSplitState()));
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
ButtonSplit.style = buttonSplitCss;
|
|
73
|
-
|
|
74
|
-
const linkCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:inline-block}.link{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1);font-weight:400;margin:0;padding:0;word-break:break-all}.link_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.link_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.link_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.link_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.link_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.link:hover{text-decoration:none}";
|
|
75
|
-
|
|
76
|
-
const Link = class {
|
|
77
|
-
constructor(hostRef) {
|
|
78
|
-
index.registerInstance(this, hostRef);
|
|
79
|
-
/**
|
|
80
|
-
* Typography type.
|
|
81
|
-
*/
|
|
82
|
-
this.type = 'b3';
|
|
83
|
-
}
|
|
84
|
-
render() {
|
|
85
|
-
return (index.h("a", { href: this.href, target: "_blank", rel: "noreferrer noopener", class: {
|
|
86
|
-
link: true,
|
|
87
|
-
[`link_type_${this.type || 'b3'}`]: true,
|
|
88
|
-
} }, index.h("slot", null)));
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
Link.style = linkCss;
|
|
92
|
-
|
|
93
|
-
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)}";
|
|
94
|
-
|
|
95
|
-
const TextHider = class {
|
|
96
|
-
constructor(hostRef) {
|
|
97
|
-
index.registerInstance(this, hostRef);
|
|
98
|
-
this.textExpand = index.createEvent(this, "textExpand", 7);
|
|
99
|
-
this.opened = false;
|
|
100
|
-
}
|
|
101
|
-
textExpandHandler() {
|
|
102
|
-
this.opened = !this.opened;
|
|
103
|
-
}
|
|
104
|
-
render() {
|
|
105
|
-
return (index.h(index.Host, null, index.h("div", { class: "root" }, index.h("div", { class: {
|
|
106
|
-
text: true,
|
|
107
|
-
m_opened: this.opened,
|
|
108
|
-
} }, index.h("slot", null)), index.h("div", { class: "action" }, index.h("peculiar-button", { onClick: this.textExpand.emit, class: {
|
|
109
|
-
button_action: true,
|
|
110
|
-
m_opened: this.opened,
|
|
111
|
-
}, 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" })))))));
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
TextHider.style = textHiderCss;
|
|
115
|
-
|
|
116
|
-
const typographyCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none;display:block}.typography{font-family:\"Open Sans\", \"Arial\", sans-serif;font-family:var(--pv-font-family);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);line-height:1.4;line-height:var(--pv-line-height-normal);font-weight:400;margin:0;padding:0;display:block}.typography_type_h4{font-size:17px;font-size:var(--pv-font-size-h4);font-weight:600}.typography_type_h6{font-size:15px;font-size:var(--pv-font-size-h6);font-weight:600}.typography_type_h7{font-size:14px;font-size:var(--pv-font-size-h7);font-weight:600}.typography_type_b1{font-size:15px;font-size:var(--pv-font-size-b1)}.typography_type_b3{font-size:13px;font-size:var(--pv-font-size-b3)}.typography_color_dark{color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.typography_color_light{color:white;color:rgba(var(--pv-color-light-rgb), 1)}.typography_color_grey_3{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.typography_color_grey_5{color:#869196;color:rgba(var(--pv-color-grey_5-rgb), 1)}.typography_color_attention{color:#f7a831;color:rgba(var(--pv-color-attention-rgb), 1)}.typography_color_primary{color:#3584f7;color:rgba(var(--pv-color-primary-rgb), 1)}.typography_ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typography_monospace{font-family:monospace}.typography_align_left{text-align:left}.typography_align_center{text-align:center}.typography_align_right{text-align:right}";
|
|
117
|
-
|
|
118
|
-
const PeculiarTypography = class {
|
|
119
|
-
constructor(hostRef) {
|
|
120
|
-
index.registerInstance(this, hostRef);
|
|
121
|
-
/**
|
|
122
|
-
* Typography type.
|
|
123
|
-
*/
|
|
124
|
-
this.type = 'b3';
|
|
125
|
-
/**
|
|
126
|
-
* Component color from theme.
|
|
127
|
-
*/
|
|
128
|
-
this.color = 'dark';
|
|
129
|
-
}
|
|
130
|
-
render() {
|
|
131
|
-
const TagType = this.type && this.type.includes('h') ? this.type : 'p';
|
|
132
|
-
return (index.h(TagType, { class: {
|
|
133
|
-
typography: true,
|
|
134
|
-
[`typography_type_${this.type || 'b3'}`]: true,
|
|
135
|
-
[`typography_color_${this.color || 'dark'}`]: true,
|
|
136
|
-
[`typography_align_${this.align}`]: !!this.align,
|
|
137
|
-
typography_ellipsis: this.ellipsis,
|
|
138
|
-
typography_monospace: this.monospace,
|
|
139
|
-
} }, index.h("slot", null)));
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
PeculiarTypography.style = typographyCss;
|
|
143
|
-
|
|
144
|
-
exports.peculiar_button = Button;
|
|
145
|
-
exports.peculiar_button_split = ButtonSplit;
|
|
146
|
-
exports.peculiar_link = Link;
|
|
147
|
-
exports.peculiar_text_hider = TextHider;
|
|
148
|
-
exports.peculiar_typography = PeculiarTypography;
|
package/dist/collection/components/certificate-viewer/extensions/biometric_syntax_extension.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
import { h } from '@stencil/core';
|
|
12
|
-
import { Convert } from 'pvtsutils';
|
|
13
|
-
import { RowValue } from '../row';
|
|
14
|
-
import { getStringByOID } from '../get_string_by_oid';
|
|
15
|
-
import { BasicExtension } from './basic_extension';
|
|
16
|
-
export const BiometricSyntaxExtension = (props) => {
|
|
17
|
-
const { extension } = props;
|
|
18
|
-
return (h(BasicExtension, { extension: extension }, extension.value.map((data, arrayIndex) => ([
|
|
19
|
-
h(RowValue, { name: `Biometric #${arrayIndex + 1}`, value: "" }),
|
|
20
|
-
h(RowValue, { name: "OID", value: getStringByOID(data.typeOfBiometricData.biometricDataOid) }),
|
|
21
|
-
h(RowValue, { name: "Type", value: data.typeOfBiometricData.predefinedBiometricType }),
|
|
22
|
-
h(RowValue, { name: "Algorithm", value: getStringByOID(data.hashAlgorithm.algorithm) }),
|
|
23
|
-
h(RowValue, { name: "Hash", value: Convert.ToHex(data.biometricDataHash.buffer), monospace: true }),
|
|
24
|
-
h(RowValue, { name: "Source Uri", value: data.sourceDataUri }),
|
|
25
|
-
]))));
|
|
26
|
-
};
|
package/dist/collection/components/certificate-viewer/extensions/certificate_policies_extension.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
import { h } from '@stencil/core';
|
|
12
|
-
import { UserNotice, DisplayText } from '@peculiar/asn1-x509';
|
|
13
|
-
import { AsnParser } from '@peculiar/asn1-schema';
|
|
14
|
-
import { RowValue } from '../row';
|
|
15
|
-
import { getStringByOID } from '../get_string_by_oid';
|
|
16
|
-
import { BasicExtension } from './basic_extension';
|
|
17
|
-
export const CertificatePoliciesExtension = (props) => {
|
|
18
|
-
const { extension } = props;
|
|
19
|
-
return (h(BasicExtension, { extension: extension }, extension.value.map((policy, arrayIndex) => {
|
|
20
|
-
var _a;
|
|
21
|
-
return ([
|
|
22
|
-
h(RowValue, { name: `Policy #${arrayIndex + 1}`, value: "" }),
|
|
23
|
-
h(RowValue, { name: "ID", value: getStringByOID(policy.policyIdentifier) }),
|
|
24
|
-
(_a = policy.policyQualifiers) === null || _a === void 0 ? void 0 : _a.map((qualifierInfo, indexInfo) => {
|
|
25
|
-
const data = [
|
|
26
|
-
h(RowValue, { name: `Qualifier #${arrayIndex + 1}.${indexInfo + 1}`, value: "" }),
|
|
27
|
-
h(RowValue, { name: "ID", value: getStringByOID(qualifierInfo.policyQualifierId) }),
|
|
28
|
-
];
|
|
29
|
-
if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.1') {
|
|
30
|
-
const value = AsnParser.parse(qualifierInfo.qualifier, DisplayText);
|
|
31
|
-
data.push(h(RowValue, { name: "Value", value: value.toString() }));
|
|
32
|
-
}
|
|
33
|
-
if (qualifierInfo.policyQualifierId === '1.3.6.1.5.5.7.2.2') {
|
|
34
|
-
const value = AsnParser.parse(qualifierInfo.qualifier, UserNotice);
|
|
35
|
-
if (value.explicitText) {
|
|
36
|
-
data.push(h(RowValue, { name: "Value", value: value.explicitText.toString() }));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return data;
|
|
40
|
-
}),
|
|
41
|
-
]);
|
|
42
|
-
})));
|
|
43
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
import { h } from '@stencil/core';
|
|
12
|
-
import { RowValue } from '../row';
|
|
13
|
-
import logs from '../../../constants/logs';
|
|
14
|
-
import { dateShort } from '../../../utils';
|
|
15
|
-
import { BasicExtension } from './basic_extension';
|
|
16
|
-
export const CertificateTransparencyExtension = (props) => {
|
|
17
|
-
const { extension } = props;
|
|
18
|
-
return (h(BasicExtension, { extension: extension }, extension.value.toJSON().map((signedCertificateTimestamp, arrayIndex) => ([
|
|
19
|
-
h(RowValue, { name: `SCT #${arrayIndex + 1}`, value: "" }),
|
|
20
|
-
h(RowValue, { name: "Version", value: signedCertificateTimestamp.version + 1 }),
|
|
21
|
-
h(RowValue, { name: "Log Operator", value: logs[signedCertificateTimestamp.logId] || signedCertificateTimestamp.logId }),
|
|
22
|
-
h(RowValue, { name: "Log Key ID", value: signedCertificateTimestamp.logId, monospace: true }),
|
|
23
|
-
h(RowValue, { name: "Timestamp", value: dateShort(signedCertificateTimestamp.timestamp) }),
|
|
24
|
-
h(RowValue, { name: "Signature Algorithm", value: `${signedCertificateTimestamp.hashAlgorithm} ${signedCertificateTimestamp.signatureAlgorithm}`.toUpperCase() }),
|
|
25
|
-
h(RowValue, { name: "Signature", value: signedCertificateTimestamp.signature, monospace: true }),
|
|
26
|
-
]))));
|
|
27
|
-
};
|
package/dist/collection/components/certificate-viewer/extensions/info_access_syntax_extension.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
import { h } from '@stencil/core';
|
|
12
|
-
import { RowValue } from '../row';
|
|
13
|
-
import { getStringByOID } from '../get_string_by_oid';
|
|
14
|
-
import { BasicExtension } from './basic_extension';
|
|
15
|
-
import { GeneralNamePart } from './general_name_part';
|
|
16
|
-
export const InfoAccessSyntaxExtension = (props) => {
|
|
17
|
-
const { extension } = props;
|
|
18
|
-
return (h(BasicExtension, { extension: extension }, extension.value.map((description, arrayIndex) => ([
|
|
19
|
-
h(RowValue, { name: `Description #${arrayIndex + 1}`, value: "" }),
|
|
20
|
-
h(RowValue, { name: "Method", value: getStringByOID(description.accessMethod) }),
|
|
21
|
-
h(GeneralNamePart, Object.assign({ generalName: description.accessLocation }, props)),
|
|
22
|
-
]))));
|
|
23
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
import { h } from '@stencil/core';
|
|
12
|
-
import { Convert } from 'pvtsutils';
|
|
13
|
-
import { RowValue } from '../row';
|
|
14
|
-
import { getStringByOID } from '../get_string_by_oid';
|
|
15
|
-
import { BasicExtension } from './basic_extension';
|
|
16
|
-
export const QCStatementsExtension = (props) => {
|
|
17
|
-
const { extension } = props;
|
|
18
|
-
return (h(BasicExtension, { extension: extension }, extension.value.map((statement, arrayIndex) => ([
|
|
19
|
-
h(RowValue, { name: `Statement #${arrayIndex + 1}`, value: "" }),
|
|
20
|
-
h(RowValue, { name: "ID", value: getStringByOID(statement.statementId) }),
|
|
21
|
-
h(RowValue, { name: "Info", value: statement.statementInfo.byteLength ? Convert.ToHex(statement.statementInfo) : null, monospace: true }),
|
|
22
|
-
]))));
|
|
23
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
import { h } from '@stencil/core';
|
|
12
|
-
import { Convert } from 'pvtsutils';
|
|
13
|
-
import { l10n } from '../../utils';
|
|
14
|
-
import { getStringByOID } from './get_string_by_oid';
|
|
15
|
-
import { RowTitle, RowValue } from './row';
|
|
16
|
-
export const Signature = (props) => {
|
|
17
|
-
const { signature } = props;
|
|
18
|
-
if (!signature) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
return [
|
|
22
|
-
h(RowTitle, { value: l10n.getString('signature') }),
|
|
23
|
-
h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(signature.algorithm) }),
|
|
24
|
-
h(RowValue, { name: l10n.getString('value'), value: Convert.ToHex(signature.value), monospace: true, collapse: true }),
|
|
25
|
-
];
|
|
26
|
-
};
|