@peculiar/certificates-viewer 1.16.1 → 1.17.2
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/{download-5b56f3a9.js → download-78e61b1d.js} +78 -2
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +9 -6
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +10 -5
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/certificate-viewer/basic_information.js +4 -3
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +9 -4
- package/dist/collection/components/csr-viewer/csr-viewer.js +2 -0
- package/dist/collection/crypto/csr.js +1 -0
- package/dist/collection/crypto/x509_attribute_certificate.js +1 -0
- package/dist/collection/crypto/x509_certificate.js +1 -0
- package/dist/esm/{download-93437bcb.js → download-c6153e99.js} +78 -2
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +9 -6
- package/dist/esm/peculiar-certificates-viewer.entry.js +10 -5
- package/dist/esm-es5/{download-93437bcb.js → download-c6153e99.js} +86 -2
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +9 -6
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +10 -5
- package/dist/peculiar/{p-dfc5b982.system.js → p-05d621c2.system.js} +11 -11
- package/dist/peculiar/p-557d912f.system.js +1 -1
- package/dist/peculiar/{p-14aeb094.js → p-8e2bede4.js} +10 -10
- package/dist/peculiar/p-bbac8b2a.entry.js +1 -0
- package/dist/peculiar/{p-44a93ee3.system.entry.js → p-d20fc814.system.entry.js} +17 -17
- package/dist/peculiar/{p-0545a744.entry.js → p-d97c01b2.entry.js} +10 -10
- package/dist/peculiar/{p-fa244d38.system.entry.js → p-fca4a08b.system.entry.js} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-viewer/basic_information.d.ts +6 -5
- package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +1 -0
- package/dist/types/crypto/csr.d.ts +1 -0
- package/dist/types/crypto/x509_attribute_certificate.d.ts +1 -0
- package/dist/types/crypto/x509_certificate.d.ts +1 -0
- package/package.json +20 -20
- package/dist/peculiar/p-cabe7ef6.entry.js +0 -1
|
@@ -5833,7 +5833,7 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
5833
5833
|
*/
|
|
5834
5834
|
(function (global, factory) {
|
|
5835
5835
|
factory(exports);
|
|
5836
|
-
}(commonjsGlobal, (function (exports) {
|
|
5836
|
+
})(commonjsGlobal, (function (exports) {
|
|
5837
5837
|
var BufferSourceConverter = /** @class */ (function () {
|
|
5838
5838
|
function BufferSourceConverter() {
|
|
5839
5839
|
}
|
|
@@ -5870,6 +5870,19 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
5870
5870
|
return ArrayBuffer.isView(data)
|
|
5871
5871
|
|| (data && this.isArrayBuffer(data.buffer));
|
|
5872
5872
|
};
|
|
5873
|
+
BufferSourceConverter.isEqual = function (a, b) {
|
|
5874
|
+
var aView = BufferSourceConverter.toUint8Array(a);
|
|
5875
|
+
var bView = BufferSourceConverter.toUint8Array(b);
|
|
5876
|
+
if (aView.length !== bView.byteLength) {
|
|
5877
|
+
return false;
|
|
5878
|
+
}
|
|
5879
|
+
for (var i = 0; i < aView.length; i++) {
|
|
5880
|
+
if (aView[i] !== bView[i]) {
|
|
5881
|
+
return false;
|
|
5882
|
+
}
|
|
5883
|
+
}
|
|
5884
|
+
return true;
|
|
5885
|
+
};
|
|
5873
5886
|
return BufferSourceConverter;
|
|
5874
5887
|
}());
|
|
5875
5888
|
var Utf8Converter = /** @class */ (function () {
|
|
@@ -6174,7 +6187,7 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
6174
6187
|
exports.combine = combine;
|
|
6175
6188
|
exports.isEqual = isEqual;
|
|
6176
6189
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6177
|
-
}))
|
|
6190
|
+
}));
|
|
6178
6191
|
});
|
|
6179
6192
|
var index = unwrapExports(build);
|
|
6180
6193
|
var BitString$1 = /** @class */ (function () {
|
|
@@ -8137,6 +8150,29 @@ var CertificatePolicies = CertificatePolicies_1 = /** @class */ (function (_supe
|
|
|
8137
8150
|
CertificatePolicies = CertificatePolicies_1 = __decorate([
|
|
8138
8151
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: PolicyInformation })
|
|
8139
8152
|
], CertificatePolicies);
|
|
8153
|
+
var CRLNumber = /** @class */ (function () {
|
|
8154
|
+
function CRLNumber(value) {
|
|
8155
|
+
if (value === void 0) { value = 0; }
|
|
8156
|
+
this.value = value;
|
|
8157
|
+
}
|
|
8158
|
+
return CRLNumber;
|
|
8159
|
+
}());
|
|
8160
|
+
__decorate([
|
|
8161
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
8162
|
+
], CRLNumber.prototype, "value", void 0);
|
|
8163
|
+
CRLNumber = __decorate([
|
|
8164
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
8165
|
+
], CRLNumber);
|
|
8166
|
+
var BaseCRLNumber = /** @class */ (function (_super) {
|
|
8167
|
+
__extends(BaseCRLNumber, _super);
|
|
8168
|
+
function BaseCRLNumber() {
|
|
8169
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
8170
|
+
}
|
|
8171
|
+
return BaseCRLNumber;
|
|
8172
|
+
}(CRLNumber));
|
|
8173
|
+
BaseCRLNumber = __decorate([
|
|
8174
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
8175
|
+
], BaseCRLNumber);
|
|
8140
8176
|
var CRLDistributionPoints_1;
|
|
8141
8177
|
var id_ce_cRLDistributionPoints = id_ce + ".31";
|
|
8142
8178
|
var ReasonFlags;
|
|
@@ -8237,6 +8273,53 @@ var CRLDistributionPoints = CRLDistributionPoints_1 = /** @class */ (function (_
|
|
|
8237
8273
|
CRLDistributionPoints = CRLDistributionPoints_1 = __decorate([
|
|
8238
8274
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
|
|
8239
8275
|
], CRLDistributionPoints);
|
|
8276
|
+
var FreshestCRL_1;
|
|
8277
|
+
var FreshestCRL = FreshestCRL_1 = /** @class */ (function (_super) {
|
|
8278
|
+
__extends(FreshestCRL, _super);
|
|
8279
|
+
function FreshestCRL(items) {
|
|
8280
|
+
var _this = _super.call(this, items) || this;
|
|
8281
|
+
Object.setPrototypeOf(_this, FreshestCRL_1.prototype);
|
|
8282
|
+
return _this;
|
|
8283
|
+
}
|
|
8284
|
+
return FreshestCRL;
|
|
8285
|
+
}(CRLDistributionPoints));
|
|
8286
|
+
FreshestCRL = FreshestCRL_1 = __decorate([
|
|
8287
|
+
AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
|
|
8288
|
+
], FreshestCRL);
|
|
8289
|
+
var IssuingDistributionPoint = /** @class */ (function () {
|
|
8290
|
+
function IssuingDistributionPoint(params) {
|
|
8291
|
+
if (params === void 0) { params = {}; }
|
|
8292
|
+
this.onlyContainsUserCerts = IssuingDistributionPoint.ONLY;
|
|
8293
|
+
this.onlyContainsCACerts = IssuingDistributionPoint.ONLY;
|
|
8294
|
+
this.indirectCRL = IssuingDistributionPoint.ONLY;
|
|
8295
|
+
this.onlyContainsAttributeCerts = IssuingDistributionPoint.ONLY;
|
|
8296
|
+
Object.assign(this, params);
|
|
8297
|
+
}
|
|
8298
|
+
;
|
|
8299
|
+
;
|
|
8300
|
+
;
|
|
8301
|
+
;
|
|
8302
|
+
return IssuingDistributionPoint;
|
|
8303
|
+
}());
|
|
8304
|
+
IssuingDistributionPoint.ONLY = false;
|
|
8305
|
+
__decorate([
|
|
8306
|
+
AsnProp({ type: DistributionPointName, context: 0, optional: true })
|
|
8307
|
+
], IssuingDistributionPoint.prototype, "distributionPoint", void 0);
|
|
8308
|
+
__decorate([
|
|
8309
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 1, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8310
|
+
], IssuingDistributionPoint.prototype, "onlyContainsUserCerts", void 0);
|
|
8311
|
+
__decorate([
|
|
8312
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 2, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8313
|
+
], IssuingDistributionPoint.prototype, "onlyContainsCACerts", void 0);
|
|
8314
|
+
__decorate([
|
|
8315
|
+
AsnProp({ type: Reason, context: 3, optional: true })
|
|
8316
|
+
], IssuingDistributionPoint.prototype, "onlySomeReasons", void 0);
|
|
8317
|
+
__decorate([
|
|
8318
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 4, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8319
|
+
], IssuingDistributionPoint.prototype, "indirectCRL", void 0);
|
|
8320
|
+
__decorate([
|
|
8321
|
+
AsnProp({ type: AsnPropTypes.Boolean, context: 5, defaultValue: IssuingDistributionPoint.ONLY })
|
|
8322
|
+
], IssuingDistributionPoint.prototype, "onlyContainsAttributeCerts", void 0);
|
|
8240
8323
|
var id_ce_cRLReasons = id_ce + ".21";
|
|
8241
8324
|
var CRLReasons;
|
|
8242
8325
|
(function (CRLReasons) {
|
|
@@ -12969,6 +13052,7 @@ var X509Certificate = /** @class */ (function (_super) {
|
|
|
12969
13052
|
function X509Certificate(raw) {
|
|
12970
13053
|
var _this = _super.call(this, certificateRawToBuffer(raw), Certificate) || this;
|
|
12971
13054
|
_this.thumbprints = {};
|
|
13055
|
+
_this.type = 'X.509 Certificate';
|
|
12972
13056
|
var tbsCertificate = _this.asn.tbsCertificate;
|
|
12973
13057
|
_this.serialNumber = index.Convert.ToHex(tbsCertificate.serialNumber);
|
|
12974
13058
|
_this.subject = new Name$1(tbsCertificate.subject).toJSON();
|
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
import { h, r as registerInstance, H as Host, c as createEvent } from './index-5ef692cc.js';
|
|
51
|
-
import { A as AsnData, a as Attribute$1, i as index, b as id_pkcs9_at_extensionRequest, c as AsnParser, E as ExtensionRequest, d as Extension, e as AsnConvert, f as id_pkcs9_at_unstructuredName, U as UnstructuredName, g as id_pkcs9_at_challengePassword, C as ChallengePassword, h as id_ValuationRanking, V as ValuationRanking, j as id_InsuranceValue, I as InsuranceValue, k as id_WebGDPR, W as WebGDPR, l as id_ActivityDescription, m as ActivityDescription, n as id_TypeRelationship, T as TypeRelationship, o as id_DomainNameTechnicalOperator, D as DomainNameTechnicalOperator, p as id_DomainNameOwner, q as DomainNameOwner, r as id_DomainNameLegalRepresentative, s as DomainNameLegalRepresentative, t as id_DomainNameBeneficiary, u as DomainNameBeneficiary, v as certificateRawToBuffer, w as AttributeCertificate, x as getCertificateThumbprint, y as hexFormat, z as base64Format, B as CertificationRequest, N as Name, F as id_ecPublicKey, G as ECParameters, H as id_rsaEncryption, R as RSAPublicKey, O as OIDs, J as Name$1, K as OtherName, L as DisplayText, M as EDIPartyName, P as UserNotice, Q as KeyUsage, S as BasicConstraints, X as ExtendedKeyUsage, Y as SubjectKeyIdentifier, Z as AuthorityKeyIdentifier, _ as CRLDistributionPoints, $ as AuthorityInfoAccessSyntax, a0 as SubjectAlternativeName, a1 as CertificatePolicies, a2 as CertificateTransparency, a3 as NameConstraints, a4 as CertificateTemplate, a5 as EnrollCertTypeChoice, a6 as CaVersion, a7 as QCStatements, a8 as NetscapeComment, a9 as NetscapeCertType, aa as LeiRole, ab as LeiChoice, ac as Timestamp, ad as ArchiveRevInfo, ae as CRLReason, af as SubjectDirectoryAttributes, ag as PrivateKeyUsagePeriod, ah as EntrustVersionInfo, ai as BiometricSyntax, aj as LogotypeExtn, ak as TNAuthorizationList, al as Download, am as isPem, an as isX509Pem, ao as isPkcs10Pem, ap as isX509AttributePem, aq as X509Certificate } from './download-
|
|
51
|
+
import { A as AsnData, a as Attribute$1, i as index, b as id_pkcs9_at_extensionRequest, c as AsnParser, E as ExtensionRequest, d as Extension, e as AsnConvert, f as id_pkcs9_at_unstructuredName, U as UnstructuredName, g as id_pkcs9_at_challengePassword, C as ChallengePassword, h as id_ValuationRanking, V as ValuationRanking, j as id_InsuranceValue, I as InsuranceValue, k as id_WebGDPR, W as WebGDPR, l as id_ActivityDescription, m as ActivityDescription, n as id_TypeRelationship, T as TypeRelationship, o as id_DomainNameTechnicalOperator, D as DomainNameTechnicalOperator, p as id_DomainNameOwner, q as DomainNameOwner, r as id_DomainNameLegalRepresentative, s as DomainNameLegalRepresentative, t as id_DomainNameBeneficiary, u as DomainNameBeneficiary, v as certificateRawToBuffer, w as AttributeCertificate, x as getCertificateThumbprint, y as hexFormat, z as base64Format, B as CertificationRequest, N as Name, F as id_ecPublicKey, G as ECParameters, H as id_rsaEncryption, R as RSAPublicKey, O as OIDs, J as Name$1, K as OtherName, L as DisplayText, M as EDIPartyName, P as UserNotice, Q as KeyUsage, S as BasicConstraints, X as ExtendedKeyUsage, Y as SubjectKeyIdentifier, Z as AuthorityKeyIdentifier, _ as CRLDistributionPoints, $ as AuthorityInfoAccessSyntax, a0 as SubjectAlternativeName, a1 as CertificatePolicies, a2 as CertificateTransparency, a3 as NameConstraints, a4 as CertificateTemplate, a5 as EnrollCertTypeChoice, a6 as CaVersion, a7 as QCStatements, a8 as NetscapeComment, a9 as NetscapeCertType, aa as LeiRole, ab as LeiChoice, ac as Timestamp, ad as ArchiveRevInfo, ae as CRLReason, af as SubjectDirectoryAttributes, ag as PrivateKeyUsagePeriod, ah as EntrustVersionInfo, ai as BiometricSyntax, aj as LogotypeExtn, ak as TNAuthorizationList, al as Download, am as isPem, an as isX509Pem, ao as isPkcs10Pem, ap as isX509AttributePem, aq as X509Certificate } from './download-c6153e99.js';
|
|
52
52
|
import { d as dateDiff, l as l10n, a as dateShort, h as history } from './l10n-25aa4c54.js';
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
@@ -157,6 +157,7 @@ var X509AttributeCertificate = /** @class */ (function (_super) {
|
|
|
157
157
|
var _a;
|
|
158
158
|
_this = _super.call(this, certificateRawToBuffer(raw), AttributeCertificate) || this;
|
|
159
159
|
_this.thumbprints = {};
|
|
160
|
+
_this.type = 'X.509 Attribute Certificate';
|
|
160
161
|
var acinfo = _this.asn.acinfo;
|
|
161
162
|
_this.serialNumber = index.Convert.ToHex(acinfo.serialNumber);
|
|
162
163
|
_this.version = acinfo.version;
|
|
@@ -252,6 +253,7 @@ var CSR = /** @class */ (function (_super) {
|
|
|
252
253
|
function CSR(raw) {
|
|
253
254
|
var _this = _super.call(this, certificateRawToBuffer(raw), CertificationRequest) || this;
|
|
254
255
|
_this.thumbprints = {};
|
|
256
|
+
_this.type = 'PKCS#10 Certificate Request';
|
|
255
257
|
var certificationRequestInfo = _this.asn.certificationRequestInfo;
|
|
256
258
|
_this.subject = new Name(certificationRequestInfo.subject).toJSON();
|
|
257
259
|
_this.version = certificationRequestInfo.version;
|
|
@@ -1350,14 +1352,15 @@ var Extensions = function (props) {
|
|
|
1350
1352
|
* LICENSE file in the root directory of this source tree.
|
|
1351
1353
|
*/
|
|
1352
1354
|
var BasicInformation = function (props) {
|
|
1353
|
-
var serialNumber = props.serialNumber, version = props.version, validity = props.validity, notBefore = props.notBefore, notAfter = props.notAfter;
|
|
1355
|
+
var serialNumber = props.serialNumber, version = props.version, validity = props.validity, notBefore = props.notBefore, notAfter = props.notAfter, type = props.type;
|
|
1354
1356
|
return [
|
|
1355
1357
|
h(RowTitle, { value: l10n.getString('basicInformation') }),
|
|
1358
|
+
h(RowValue, { name: l10n.getString('type'), value: type }),
|
|
1356
1359
|
h(RowValue, { name: l10n.getString('serialNumber'), value: serialNumber, monospace: true }),
|
|
1357
1360
|
h(RowValue, { name: l10n.getString('version'), value: version }),
|
|
1358
1361
|
h(RowValue, { name: l10n.getString('validity'), value: validity }),
|
|
1359
|
-
h(RowValue, { name: l10n.getString('issued'), value: dateShort(notBefore) }),
|
|
1360
|
-
h(RowValue, { name: l10n.getString('expired'), value: dateShort(notAfter) }),
|
|
1362
|
+
h(RowValue, { name: l10n.getString('issued'), value: notBefore ? dateShort(notBefore) : undefined }),
|
|
1363
|
+
h(RowValue, { name: l10n.getString('expired'), value: notAfter ? dateShort(notAfter) : undefined }),
|
|
1361
1364
|
];
|
|
1362
1365
|
};
|
|
1363
1366
|
/**
|
|
@@ -1551,7 +1554,7 @@ var AttributeCertificateViewer = /** @class */ (function () {
|
|
|
1551
1554
|
return class_1;
|
|
1552
1555
|
}());
|
|
1553
1556
|
AttributeCertificateViewer.style = certificateViewerCss;
|
|
1554
|
-
var 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:
|
|
1557
|
+
var 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}";
|
|
1555
1558
|
var Button = /** @class */ (function () {
|
|
1556
1559
|
function Button(hostRef) {
|
|
1557
1560
|
var _this = this;
|
|
@@ -2052,7 +2055,7 @@ var CsrViewer = /** @class */ (function () {
|
|
|
2052
2055
|
return this.renderEmptyState();
|
|
2053
2056
|
}
|
|
2054
2057
|
var extensionRequestAttribute = this.getExtensionRequestAttribute();
|
|
2055
|
-
return (h(Host, { "data-view": this.view }, h("table", null, h(SubjectName, { name: this.certificateDecoded.subject }), h(PublicKey, { publicKey: this.certificateDecoded.publicKey }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: this.getLEILink, getDNSNameLink: this.getDNSNameLink, getIPAddressLink: this.getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), h(Extensions, { extensions: extensionRequestAttribute === null || extensionRequestAttribute === void 0 ? void 0 : extensionRequestAttribute.value, title: "Extension Request", getLEILink: this.getLEILink, getDNSNameLink: this.getDNSNameLink, getIPAddressLink: this.getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
2058
|
+
return (h(Host, { "data-view": this.view }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(SubjectName, { name: this.certificateDecoded.subject }), h(PublicKey, { publicKey: this.certificateDecoded.publicKey }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Attributes, { attributes: this.certificateDecoded.attributes, getLEILink: this.getLEILink, getDNSNameLink: this.getDNSNameLink, getIPAddressLink: this.getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), h(Extensions, { extensions: extensionRequestAttribute === null || extensionRequestAttribute === void 0 ? void 0 : extensionRequestAttribute.value, title: "Extension Request", getLEILink: this.getLEILink, getDNSNameLink: this.getDNSNameLink, getIPAddressLink: this.getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
2056
2059
|
};
|
|
2057
2060
|
Object.defineProperty(class_4, "watchers", {
|
|
2058
2061
|
get: function () {
|
|
@@ -35,7 +35,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5ef692cc.js';
|
|
38
|
-
import { aq as X509Certificate, al as Download, O as OIDs } from './download-
|
|
38
|
+
import { aq as X509Certificate, al as Download, O as OIDs } from './download-c6153e99.js';
|
|
39
39
|
import { l as l10n } from './l10n-25aa4c54.js';
|
|
40
40
|
var certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
|
|
41
41
|
var CertificatesViewer = /** @class */ (function () {
|
|
@@ -164,7 +164,7 @@ var CertificatesViewer = /** @class */ (function () {
|
|
|
164
164
|
? undefined
|
|
165
165
|
: index;
|
|
166
166
|
};
|
|
167
|
-
class_1.prototype.
|
|
167
|
+
class_1.prototype.getMaxColSpanValue = function () {
|
|
168
168
|
var colSpan = 4;
|
|
169
169
|
if (this.isHasTests) {
|
|
170
170
|
colSpan += 1;
|
|
@@ -172,6 +172,10 @@ var CertificatesViewer = /** @class */ (function () {
|
|
|
172
172
|
if (!this.isHasRoots) {
|
|
173
173
|
colSpan += 1;
|
|
174
174
|
}
|
|
175
|
+
return colSpan;
|
|
176
|
+
};
|
|
177
|
+
class_1.prototype.renderExpandedRow = function (certificate) {
|
|
178
|
+
var colSpan = this.getMaxColSpanValue();
|
|
175
179
|
return (h("tr", { class: "expanded_summary" }, h("td", { colSpan: colSpan }, h("peculiar-certificate-summary", { certificate: certificate, showIssuer: !certificate.isRoot }))));
|
|
176
180
|
};
|
|
177
181
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -241,12 +245,13 @@ var CertificatesViewer = /** @class */ (function () {
|
|
|
241
245
|
}
|
|
242
246
|
return (h("div", { class: "search_section" }, h("input", { onInput: this.handleSearch, type: "search", value: "", class: "input_search", disabled: !this.certificatesDecoded.length, placeholder: "Search" })));
|
|
243
247
|
};
|
|
244
|
-
// eslint-disable-next-line class-methods-use-this
|
|
245
248
|
class_1.prototype.renderEmptyState = function () {
|
|
246
|
-
|
|
249
|
+
var colSpan = this.getMaxColSpanValue();
|
|
250
|
+
return (h("tr", null, h("td", { class: "status_wrapper", colSpan: colSpan }, h("peculiar-typography", { type: "b1", align: "center" }, "There are no certificates available."))));
|
|
247
251
|
};
|
|
248
252
|
class_1.prototype.renderEmptySearchState = function () {
|
|
249
|
-
|
|
253
|
+
var colSpan = this.getMaxColSpanValue();
|
|
254
|
+
return (h("tr", null, h("td", { class: "status_wrapper", colSpan: colSpan }, h("peculiar-typography", { type: "b1", align: "center" }, "No results found for \u201C", this.search, "\u201C"))));
|
|
250
255
|
};
|
|
251
256
|
// eslint-disable-next-line class-methods-use-this
|
|
252
257
|
class_1.prototype.renderLoadingState = function () {
|