@peculiar/certificates-viewer 3.5.0 → 3.7.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.
Files changed (191) hide show
  1. package/dist/cjs/{certification_request-ea440617.js → certification_request-00bbfbc5.js} +6714 -6604
  2. package/dist/cjs/{crl-fd60d923.js → crl-de4e196b.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{public_key-14290c77.js → miscellaneous-30c4aded.js} +185 -169
  5. package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +87 -90
  6. package/dist/cjs/{peculiar-certificate-summary_3.cjs.entry.js → peculiar-button-split_4.cjs.entry.js} +35 -0
  7. package/dist/cjs/peculiar-button.cjs.entry.js +40 -0
  8. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +3 -3
  9. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -5
  10. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +2 -2
  11. package/dist/cjs/peculiar-link.cjs.entry.js +29 -0
  12. package/dist/cjs/peculiar-text-hider.cjs.entry.js +33 -0
  13. package/dist/cjs/peculiar-typography.cjs.entry.js +38 -0
  14. package/dist/cjs/peculiar.cjs.js +1 -1
  15. package/dist/cjs/{x509_certificate-262bac06.js → x509_certificate-2af9b990.js} +18 -4
  16. package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +1 -8
  17. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.js +1 -1
  18. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.js +1 -2
  19. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.js +1 -1
  20. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.js +1 -1
  21. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.js +1 -1
  22. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.js +1 -1
  23. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.js +1 -1
  24. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.js +1 -1
  25. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.js +1 -1
  26. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.js +1 -1
  27. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.js +1 -1
  28. package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/holder.js +3 -4
  29. package/dist/collection/components/certificate-details-parts/index.js +15 -0
  30. package/dist/collection/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.js +2 -2
  31. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/public_key.js +14 -9
  32. package/dist/collection/components/{crl-viewer → certificate-details-parts}/revoked_certificates.js +3 -7
  33. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/row.js +3 -0
  34. package/dist/collection/components/certificate-details-parts/signature.js +31 -0
  35. package/dist/collection/components/certificate-viewer/certificate-viewer.css +4 -0
  36. package/dist/collection/components/certificate-viewer/certificate-viewer.js +1 -8
  37. package/dist/collection/components/crl-viewer/crl-viewer.js +1 -7
  38. package/dist/collection/components/csr-viewer/csr-viewer.js +1 -8
  39. package/dist/collection/constants/oids.js +10 -0
  40. package/dist/collection/crypto/x509_certificate.js +18 -3
  41. package/dist/collection/{components/certificate-viewer → utils}/get_string_by_oid.js +1 -1
  42. package/dist/collection/utils/index.js +1 -0
  43. package/dist/esm/{certification_request-0ecd0af1.js → certification_request-8cc9d070.js} +6713 -6605
  44. package/dist/esm/{crl-c09357a9.js → crl-f43a95b7.js} +1 -1
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/{public_key-e6d12f27.js → miscellaneous-b74d9eae.js} +185 -170
  47. package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +54 -57
  48. package/dist/esm/{peculiar-certificate-summary_3.entry.js → peculiar-button-split_4.entry.js} +35 -1
  49. package/dist/esm/peculiar-button.entry.js +36 -0
  50. package/dist/esm/peculiar-certificate-decoder.entry.js +3 -3
  51. package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
  52. package/dist/esm/peculiar-certificates-viewer.entry.js +2 -2
  53. package/dist/esm/peculiar-link.entry.js +25 -0
  54. package/dist/esm/peculiar-text-hider.entry.js +29 -0
  55. package/dist/esm/peculiar-typography.entry.js +34 -0
  56. package/dist/esm/peculiar.js +1 -1
  57. package/dist/esm/{x509_certificate-59d7a03c.js → x509_certificate-0fdd28aa.js} +18 -4
  58. package/dist/peculiar/p-05337212.entry.js +18 -0
  59. package/dist/peculiar/p-0868020d.entry.js +4 -0
  60. package/dist/peculiar/{p-1d6d0160.entry.js → p-167fd2db.entry.js} +1 -1
  61. package/dist/peculiar/p-45336b4f.js +69 -0
  62. package/dist/peculiar/{p-e7d81a43.entry.js → p-4e9318fb.entry.js} +1 -1
  63. package/dist/peculiar/p-57b89412.entry.js +4 -0
  64. package/dist/peculiar/p-610b85e3.entry.js +4 -0
  65. package/dist/peculiar/p-6d37c8b5.entry.js +4 -0
  66. package/dist/peculiar/p-893659f4.entry.js +4 -0
  67. package/dist/peculiar/p-918aeee4.entry.js +4 -0
  68. package/dist/peculiar/p-c72f8e8f.js +79 -0
  69. package/dist/peculiar/{p-7321a8d6.js → p-ea9a6317.js} +3 -3
  70. package/dist/peculiar/p-ec8787ed.js +11 -0
  71. package/dist/peculiar/peculiar.esm.js +1 -1
  72. package/dist/types/components/certificate-details-parts/index.d.ts +12 -0
  73. package/dist/types/components/{certificate-viewer → certificate-details-parts}/row.d.ts +1 -0
  74. package/dist/types/constants/oids.d.ts +8 -0
  75. package/dist/types/crypto/x509_certificate.d.ts +6 -1
  76. package/dist/types/utils/index.d.ts +1 -0
  77. package/package.json +20 -19
  78. package/dist/cjs/peculiar-button_5.cjs.entry.js +0 -148
  79. package/dist/collection/components/certificate-viewer/signature.js +0 -26
  80. package/dist/esm/peculiar-button_5.entry.js +0 -140
  81. package/dist/peculiar/p-1b11aa24.js +0 -63
  82. package/dist/peculiar/p-37c38f22.entry.js +0 -4
  83. package/dist/peculiar/p-3a4556ef.js +0 -87
  84. package/dist/peculiar/p-7a31bffb.entry.js +0 -26
  85. package/dist/peculiar/p-870c3592.entry.js +0 -4
  86. package/dist/peculiar/p-c9f01b83.js +0 -11
  87. package/dist/peculiar/p-dafae164.entry.js +0 -4
  88. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.js +1 -1
  89. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.js +1 -1
  90. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.js +1 -1
  91. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/index.js +0 -0
  92. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.js +1 -1
  93. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.js +0 -0
  94. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.js +0 -0
  95. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.js +1 -1
  96. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.js +1 -1
  97. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.js +1 -1
  98. package/dist/collection/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.js +1 -1
  99. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/basic_information.js +0 -0
  100. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.js +0 -0
  101. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.js +0 -0
  102. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.js +0 -0
  103. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.js +0 -0
  104. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.js +0 -0
  105. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.js +0 -0
  106. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.js +0 -0
  107. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.js +0 -0
  108. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.js +0 -0
  109. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.js +0 -0
  110. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.js +0 -0
  111. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.js +0 -0
  112. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.js +0 -0
  113. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/index.js +0 -0
  114. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.js +0 -0
  115. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.js +0 -0
  116. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.js +0 -0
  117. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.js +0 -0
  118. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.js +0 -0
  119. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.js +0 -0
  120. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.js +0 -0
  121. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.js +0 -0
  122. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.js +0 -0
  123. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.js +0 -0
  124. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.js +0 -0
  125. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.js +0 -0
  126. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.js +0 -0
  127. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/issuer_name.js +0 -0
  128. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/miscellaneous.js +0 -0
  129. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/subject_name.js +0 -0
  130. /package/dist/collection/components/{certificate-viewer → certificate-details-parts}/thumbprints.js +0 -0
  131. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/activity_description_attribute.d.ts +0 -0
  132. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/as_string_attribute.d.ts +0 -0
  133. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/basic_attribute.d.ts +0 -0
  134. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/challenge_password_attribute.d.ts +0 -0
  135. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/index.d.ts +0 -0
  136. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/insurance_value_attribute.d.ts +0 -0
  137. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_attribute.d.ts +0 -0
  138. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/name_part.d.ts +0 -0
  139. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/type_relationship_attribute.d.ts +0 -0
  140. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/unstructured_name_attribute.d.ts +0 -0
  141. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/valuation_ranking_attribute.d.ts +0 -0
  142. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/attributes/web_gdpr_attribute.d.ts +0 -0
  143. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/basic_information.d.ts +0 -0
  144. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/archive_rev_info_extension.d.ts +0 -0
  145. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/as_string_extension.d.ts +0 -0
  146. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/attribute_value.d.ts +0 -0
  147. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/authority_key_identifier_extension.d.ts +0 -0
  148. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_constraints_extension.d.ts +0 -0
  149. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/basic_extension.d.ts +0 -0
  150. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/biometric_syntax_extension.d.ts +0 -0
  151. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/ca_version_extension.d.ts +0 -0
  152. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_policies_extension.d.ts +0 -0
  153. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_template_extension.d.ts +0 -0
  154. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/certificate_transparency_extension.d.ts +0 -0
  155. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_distribution_points_extension.d.ts +0 -0
  156. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_number_extension.d.ts +0 -0
  157. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/crl_reason_extension.d.ts +0 -0
  158. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/enroll_cert_type_extension.d.ts +0 -0
  159. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/entrust_version_info_extension.d.ts +0 -0
  160. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/extended_key_usage_extension.d.ts +0 -0
  161. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/general_name_part.d.ts +0 -0
  162. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/index.d.ts +0 -0
  163. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/info_access_syntax_extension.d.ts +0 -0
  164. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/issuing_distribution_point_extension.d.ts +0 -0
  165. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/key_usage_extension.d.ts +0 -0
  166. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_extension.d.ts +0 -0
  167. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/lei_role_extennsion.d.ts +0 -0
  168. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/logotype_extension.d.ts +0 -0
  169. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/name_constraints_extension.d.ts +0 -0
  170. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_cert_type_extension.d.ts +0 -0
  171. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/netscape_comment_extension.d.ts +0 -0
  172. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_constraints_extension.d.ts +0 -0
  173. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/policy_mappings_extension.d.ts +0 -0
  174. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/private_key_usage_period_extension.d.ts +0 -0
  175. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/qc_statements_extension.d.ts +0 -0
  176. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_alternative_name_extension.d.ts +0 -0
  177. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_directory_attributes_extension.d.ts +0 -0
  178. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/subject_key_identifier_extension.d.ts +0 -0
  179. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/timestamp_extension.d.ts +0 -0
  180. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/extensions/tn_auth_list_extension.d.ts +0 -0
  181. /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/holder.d.ts +0 -0
  182. /package/dist/types/components/{attribute-certificate-viewer → certificate-details-parts}/issuer.d.ts +0 -0
  183. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/issuer_name.d.ts +0 -0
  184. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/miscellaneous.d.ts +0 -0
  185. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/public_key.d.ts +0 -0
  186. /package/dist/types/components/{crl-viewer → certificate-details-parts}/revoked_certificates.d.ts +0 -0
  187. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/signature.d.ts +0 -0
  188. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/subject_name.d.ts +0 -0
  189. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/thumbprints.d.ts +0 -0
  190. /package/dist/types/components/{certificate-viewer → certificate-details-parts}/types.d.ts +0 -0
  191. /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,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 as u,u as l,V as m,v as E,I as g,w as p,W as A,x as f,y as d,z as b,T as w,B as x,D as C,F as T,G as R,H as I,J as v,K as k,L as N,e as F,M as y,m as B,k as D,l as P,O as H,N as L,g as S,h as j,j as U,R as X,P as q}from"./p-3a4556ef.js";import{b as G,D as K}from"./p-cff9655c.js";import{d as M}from"./p-fec9d812.js";
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 f,G as d,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-c72f8e8f.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 V extends t{constructor(t){super(F(t),H),this.thumbprints={},this.type="PKCS#10 Certificate Request";const{certificationRequestInfo:s}=this.asn;this.subject=new L(s.subject).toJSON(),this.version=s.version}get publicKey(){const{subjectPublicKey:t,algorithm:s}=this.asn.certificationRequestInfo.subjectPKInfo;let e;return s.algorithm===S&&s.parameters&&(e=n.parse(s.parameters,j)),s.algorithm===U&&(e=n.parse(t,X)),{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)}}
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 Q 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 L(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{V as C,O as X,Q as a}
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}
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
+ */
4
+ import{A as t,e as s,C as r,N as e,E as i,f as n,g as o,h as a,j as h,R as u,k as c,l as f,m,n as l,o as g,p,q as E,r as C}from"./p-c72f8e8f.js";import{b,D as A}from"./p-cff9655c.js";import{d as w}from"./p-fec9d812.js";
5
+ /**
6
+ * @license
7
+ * Copyright (c) Peculiar Ventures, LLC.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */class d extends t{constructor(t){super(s(t),r),this.thumbprints={},this.type="X.509 Certificate";const{tbsCertificate:i}=this.asn;this.serialNumber=b.Convert.ToHex(i.serialNumber),this.subject=new e(i.subject).toJSON(),this.issuer=new e(i.issuer).toJSON(),this.version=i.version+1;const n=i.validity.notBefore.utcTime||i.validity.notBefore.generalTime;if(!n)throw new Error("Cannot get 'notBefore' value");this.notBefore=n;const o=i.validity.notAfter.utcTime||i.validity.notAfter.generalTime;if(!o)throw new Error("Cannot get 'notAfter' value");this.notAfter=o,this.validity=w(this.notBefore,this.notAfter)}parseExtensions(){const{tbsCertificate:t}=this.asn;t.extensions&&(this.extensions=t.extensions.map((t=>new i(n.serialize(t)))))}getPublicKeyInfo(t){const{subjectPublicKey:s,algorithm:r}=t;let e;return r.algorithm===o&&r.parameters&&(e=n.parse(r.parameters,a)),r.algorithm===h&&(e=n.parse(s,u)),r.algorithm===c&&(e=n.parse(s,f),e=e.map((t=>this.getPublicKeyInfo(t)))),{params:e,value:n.serialize(t),algorithm:r.algorithm}}get publicKey(){return this.getPublicKeyInfo(this.asn.tbsCertificate.subjectPublicKeyInfo)}get signature(){const{signatureValue:t,signatureAlgorithm:s}=this.asn;let r;if(s.algorithm===m){const e=n.parse(t,l);r=n.parse(s.parameters,g).map(((t,s)=>Object.assign(Object.assign({},t),{value:e[s]})))}return{params:r,value:t,algorithm:s.algorithm}}exportAsBase64(){return b.Convert.ToBase64(this.raw)}exportAsHexFormatted(){return p(b.Convert.ToHex(this.raw))}exportAsPemFormatted(){return`-----BEGIN CERTIFICATE-----\n${E(this.exportAsBase64())}\n-----END CERTIFICATE-----`}async getThumbprint(t="SHA-1"){try{const s=await C(t,this.raw);s&&(this.thumbprints[t.name||t]=b.Convert.ToHex(s))}catch(t){console.error("Error thumbprint get:",t)}}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""}get issuerCommonName(){if(!this.issuer)return"";for(let t=0;t<this.issuer.length;t+=1){const s=this.issuer[t];if("CN"===s.shortName)return s.value;if("E"===s.shortName)return s.value}return""}get isRoot(){return JSON.stringify(this.issuer)===JSON.stringify(this.subject)}subjectToString(){return this.subject?this.subject.map((t=>`${t.shortName}=${t.value}`)).join(", "):""}issuerToString(){return this.issuer?this.issuer.map((t=>`${t.shortName}=${t.value}`)).join(", "):""}downloadAsPEM(t){A.cert.asPEM(this.exportAsPemFormatted(),t||this.commonName)}downloadAsDER(t){A.cert.asDER(this.exportAsHexFormatted(),t||this.commonName)}}export{d as X}
@@ -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-dafae164",[[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{href:[513],type:[513]}],[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}],[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["p-37c38f22",[[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-1d6d0160",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],defaultCertificate:[1,"default-certificate"],certificateDecoded:[32]}]]],["p-e7d81a43",[[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-7a31bffb",[[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-870c3592",[[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)));
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-4e9318fb",[[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-167fd2db",[[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-0868020d",[[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-05337212",[[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';
@@ -6,6 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  import { FunctionalComponent } from '../../stencil-public-runtime';
9
+ export declare const TableRowTable: FunctionalComponent;
9
10
  interface IRowTitleProps {
10
11
  value: string | string[];
11
12
  }
@@ -2302,4 +2302,12 @@ export declare const OIDs: {
2302
2302
  '0.4.0.9496.7': string;
2303
2303
  '0.4.0.9496.8': string;
2304
2304
  '0.4.0.9496.9': string;
2305
+ '1.3.6.1.4.1.37244.2.1': string;
2306
+ '1.3.6.1.4.1.37244.2.2': string;
2307
+ '1.3.6.1.4.1.18227.2.1': string;
2308
+ '2.16.840.1.114027.80.4.1': string;
2309
+ '1.3.6.1.4.1.2.267.7.6.5': string;
2310
+ '1.3.6.1.4.1.18227.999.1.2.1': string;
2311
+ '1.3.6.1.4.1.18227.999.1.2.2': string;
2312
+ '1.3.6.1.4.1.18227.999.1.2.3': string;
2305
2313
  };
@@ -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;
@@ -3,4 +3,5 @@ export * from './read_file';
3
3
  export * from './date_formatter';
4
4
  export * from './l10n';
5
5
  export * from './download';
6
+ export * from './get_string_by_oid';
6
7
  export { validator, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peculiar/certificates-viewer",
3
- "version": "3.5.0",
3
+ "version": "3.7.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,24 @@
41
41
  "typescript": "^4.0.5"
42
42
  },
43
43
  "dependencies": {
44
- "@peculiar/asn1-adobe-acrobat": "^2.3.4",
45
- "@peculiar/asn1-cert-transparency": "^2.3.3",
46
- "@peculiar/asn1-csr": "^2.3.4",
47
- "@peculiar/asn1-ecc": "^2.3.4",
48
- "@peculiar/asn1-lei": "^2.3.3",
49
- "@peculiar/asn1-ntqwac": "^2.3.4",
50
- "@peculiar/asn1-pkcs9": "^2.3.4",
51
- "@peculiar/asn1-rfc8226": "^2.3.3",
52
- "@peculiar/asn1-rsa": "^2.3.4",
53
- "@peculiar/asn1-schema": "^2.3.3",
54
- "@peculiar/asn1-x509": "^2.3.4",
55
- "@peculiar/asn1-x509-attr": "^2.3.4",
56
- "@peculiar/asn1-x509-logotype": "^2.3.4",
57
- "@peculiar/asn1-x509-microsoft": "^2.3.4",
58
- "@peculiar/asn1-x509-netscape": "^2.3.3",
59
- "@peculiar/asn1-x509-qualified": "^2.3.4",
60
- "dayjs": "^1.11.6",
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
+ "dayjs": "^1.11.7",
61
62
  "pvtsutils": "^1.3.2"
62
63
  },
63
64
  "license": "MIT",
@@ -70,5 +71,5 @@
70
71
  "publishConfig": {
71
72
  "access": "public"
72
73
  },
73
- "gitHead": "8f522ab78395da88b20884201c020768364f0677"
74
+ "gitHead": "b797951c932a3df00705ac8e7b7bd4fbaa7ef639"
74
75
  }
@@ -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;
@@ -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
- };
@@ -1,140 +0,0 @@
1
- /*!
2
- * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
- */
4
- import { r as registerInstance, h, c as createEvent, H as Host } from './index-bbd484d9.js';
5
-
6
- 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}";
7
-
8
- const Button = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.fill = 'stroke';
12
- this.handleClick = (event) => {
13
- if (this.disabled) {
14
- event.preventDefault();
15
- event.stopPropagation();
16
- return;
17
- }
18
- if (this.onClick) {
19
- this.onClick(event);
20
- }
21
- };
22
- }
23
- render() {
24
- const isLink = !!this.href;
25
- const TagType = isLink ? 'a' : 'button';
26
- return (h(TagType, { class: {
27
- button: true,
28
- button_stroke: this.fill === 'stroke',
29
- button_fill: this.fill === 'fill',
30
- button_disabled: this.disabled,
31
- }, 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" }, h("span", { part: "label", class: "button_label" }, h("slot", null))));
32
- }
33
- };
34
- Button.style = buttonCss;
35
-
36
- 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}";
37
-
38
- const ButtonSplit = class {
39
- constructor(hostRef) {
40
- registerInstance(this, hostRef);
41
- this.fill = 'stroke';
42
- this.actions = [];
43
- this.open = false;
44
- this.onClickSplitButton = (event) => {
45
- event.stopPropagation();
46
- this.open = !this.open;
47
- };
48
- }
49
- onClickActiveButton(action, event) {
50
- this.open = false;
51
- action(event);
52
- }
53
- renderActiveSplitState() {
54
- if (!this.open) {
55
- return null;
56
- }
57
- return (h("div", { class: "button_split_container" }, this.actions.map((action) => (h("peculiar-button", { fill: "fill", class: "button_split_action", onClick: this.onClickActiveButton.bind(this, action.onClick) }, action.text)))));
58
- }
59
- render() {
60
- return (h("div", { class: {
61
- button_split: true,
62
- } }, h("peculiar-button", { fill: this.fill, onClick: this.onClick }, h("slot", null)), h("peculiar-button", { fill: this.fill, onClick: this.onClickSplitButton, class: {
63
- button_split_with_icon: true,
64
- m_open: this.open,
65
- } }, h("svg", { viewBox: "0 0 7 5", xmlns: "http://www.w3.org/2000/svg", class: "button_split_icon" }, 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()));
66
- }
67
- };
68
- ButtonSplit.style = buttonSplitCss;
69
-
70
- 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}";
71
-
72
- const Link = class {
73
- constructor(hostRef) {
74
- registerInstance(this, hostRef);
75
- /**
76
- * Typography type.
77
- */
78
- this.type = 'b3';
79
- }
80
- render() {
81
- return (h("a", { href: this.href, target: "_blank", rel: "noreferrer noopener", class: {
82
- link: true,
83
- [`link_type_${this.type || 'b3'}`]: true,
84
- } }, h("slot", null)));
85
- }
86
- };
87
- Link.style = linkCss;
88
-
89
- 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)}";
90
-
91
- const TextHider = class {
92
- constructor(hostRef) {
93
- registerInstance(this, hostRef);
94
- this.textExpand = createEvent(this, "textExpand", 7);
95
- this.opened = false;
96
- }
97
- textExpandHandler() {
98
- this.opened = !this.opened;
99
- }
100
- render() {
101
- return (h(Host, null, h("div", { class: "root" }, h("div", { class: {
102
- text: true,
103
- m_opened: this.opened,
104
- } }, h("slot", null)), h("div", { class: "action" }, h("peculiar-button", { onClick: this.textExpand.emit, class: {
105
- button_action: true,
106
- m_opened: this.opened,
107
- }, fill: this.opened ? 'fill' : 'stroke' }, h("svg", { viewBox: "0 0 7 5", xmlns: "http://www.w3.org/2000/svg", class: "expand_icon" }, 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" })))))));
108
- }
109
- };
110
- TextHider.style = textHiderCss;
111
-
112
- 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}";
113
-
114
- const PeculiarTypography = class {
115
- constructor(hostRef) {
116
- registerInstance(this, hostRef);
117
- /**
118
- * Typography type.
119
- */
120
- this.type = 'b3';
121
- /**
122
- * Component color from theme.
123
- */
124
- this.color = 'dark';
125
- }
126
- render() {
127
- const TagType = this.type && this.type.includes('h') ? this.type : 'p';
128
- return (h(TagType, { class: {
129
- typography: true,
130
- [`typography_type_${this.type || 'b3'}`]: true,
131
- [`typography_color_${this.color || 'dark'}`]: true,
132
- [`typography_align_${this.align}`]: !!this.align,
133
- typography_ellipsis: this.ellipsis,
134
- typography_monospace: this.monospace,
135
- } }, h("slot", null)));
136
- }
137
- };
138
- PeculiarTypography.style = typographyCss;
139
-
140
- export { Button as peculiar_button, ButtonSplit as peculiar_button_split, Link as peculiar_link, TextHider as peculiar_text_hider, PeculiarTypography as peculiar_typography };