@peculiar/certificates-viewer 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{certification_request-878e786a.js → certification_request-cde57123.js} +137 -266
- package/dist/cjs/csr-78378ed0.js +150 -0
- package/dist/cjs/download-6724f3a7.js +79 -0
- package/dist/cjs/{download-5e7d5455.js → index-ff818d4d.js} +0 -72
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/l10n-a048a686.js +145 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_2.cjs.entry.js +479 -0
- package/dist/cjs/peculiar-button_5.cjs.entry.js +148 -0
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +173 -0
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +124 -0
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +6 -4
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/public_key-e56dbe52.js +1104 -0
- package/dist/cjs/x509_attribute_certificate-cc325b70.js +87 -0
- package/dist/cjs/x509_certificate-51a97033.js +139 -0
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +54 -23
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/www-copy/index.js +80 -0
- package/dist/esm/{certification_request-3402a181.js → certification_request-c0674647.js} +76 -205
- package/dist/esm/csr-c1b6a176.js +147 -0
- package/dist/esm/download-735fb2eb.js +76 -0
- package/dist/esm/{download-cf68ac2c.js → index-0ba131b0.js} +1 -71
- package/dist/esm/index.js +2 -1
- package/dist/esm/l10n-ac28fa92.js +141 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_2.entry.js +474 -0
- package/dist/esm/peculiar-button_5.entry.js +140 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +169 -0
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +120 -0
- package/dist/esm/peculiar-certificates-viewer.entry.js +5 -3
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/public_key-43b2cbf0.js +1089 -0
- package/dist/esm/x509_attribute_certificate-a6d4aa15.js +85 -0
- package/dist/esm/x509_certificate-12f6d344.js +137 -0
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/p-006865d7.js +4 -0
- package/dist/peculiar/p-17c4da7b.js +11 -0
- package/dist/peculiar/p-1ebab45c.js +78 -0
- package/dist/peculiar/{p-b09a1f0b.entry.js → p-38635919.entry.js} +1 -1
- package/dist/peculiar/p-3f8d1008.entry.js +4 -0
- package/dist/peculiar/p-42da7f97.js +11 -0
- package/dist/peculiar/p-464e0943.js +87 -0
- package/dist/peculiar/p-4f4c1d30.js +12 -0
- package/dist/peculiar/p-530afe84.entry.js +11 -0
- package/dist/peculiar/p-6011646e.entry.js +11 -0
- package/dist/peculiar/p-6c510523.js +18 -0
- package/dist/peculiar/p-d7a13cb4.js +18 -0
- package/dist/peculiar/p-dafae164.entry.js +4 -0
- package/dist/peculiar/p-e77d0ccc.entry.js +18 -0
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +13 -1
- package/dist/types/components.d.ts +20 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/package.json +2 -3
- package/dist/cjs/l10n-d4a77087.js +0 -767
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +0 -2187
- package/dist/collection/utils/history.js +0 -19
- package/dist/collection/utils/parse_hash.js +0 -28
- package/dist/collection/utils/query_stringify.js +0 -21
- package/dist/esm/l10n-9ac63748.js +0 -762
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +0 -2175
- package/dist/peculiar/p-08538084.entry.js +0 -113
- package/dist/peculiar/p-3fc37750.entry.js +0 -4
- package/dist/peculiar/p-8ad24aa3.js +0 -87
- package/dist/peculiar/p-99797a49.js +0 -34
- package/dist/peculiar/p-c774ec0b.js +0 -18
- package/dist/types/utils/history.d.ts +0 -9
- package/dist/types/utils/parse_hash.d.ts +0 -9
- package/dist/types/utils/query_stringify.d.ts +0 -8
|
@@ -0,0 +1,140 @@
|
|
|
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 };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
|
|
5
|
+
import { i as isPem, a as isX509Pem, b as isPkcs10Pem, c as isX509AttributePem } from './certification_request-c0674647.js';
|
|
6
|
+
import './l10n-ac28fa92.js';
|
|
7
|
+
import { X as X509Certificate } from './x509_certificate-12f6d344.js';
|
|
8
|
+
import { X as X509AttributeCertificate } from './x509_attribute_certificate-a6d4aa15.js';
|
|
9
|
+
import { C as CSR } from './csr-c1b6a176.js';
|
|
10
|
+
import './index-0ba131b0.js';
|
|
11
|
+
import './_commonjsHelpers-bfbd2ad8.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Read file as Binary string
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```js
|
|
25
|
+
* const file = new File(['file'], 'file.pdf', { type: 'text/plain' });
|
|
26
|
+
* readAsBinaryString(file)
|
|
27
|
+
* .then(result => console.log('Readed success', result))
|
|
28
|
+
* .catch(err => console.log('An error occured when reading file', err));
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
function readAsBinaryString(file) {
|
|
32
|
+
return new Promise((resolve, reject) => {
|
|
33
|
+
const reader = new FileReader();
|
|
34
|
+
reader.onload = () => resolve({
|
|
35
|
+
value: reader.result,
|
|
36
|
+
fileName: file.name,
|
|
37
|
+
fileSize: file.size,
|
|
38
|
+
sourceMime: file.type,
|
|
39
|
+
});
|
|
40
|
+
reader.onerror = () => reject(reader.error);
|
|
41
|
+
reader.readAsBinaryString(file);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const certificateDecoderCss = ":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;width:100%;font-size:0}.textarea{min-height:300px;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:14px;font-family:monospace;resize:vertical;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1);letter-spacing:0.03em;letter-spacing:var(--pv-letter-spacing-normal);font-size:14px;font-size:var(--pv-font-size-h7)}.controls{margin-top:10px}.button{position:relative}.button:not(:first-child){margin-left:10px}.viewer{margin-top:64px}.input_file{opacity:0;width:100%;height:100%;top:0;left:0;display:block;position:absolute}";
|
|
46
|
+
|
|
47
|
+
const CertificateDecoder = class {
|
|
48
|
+
constructor(hostRef) {
|
|
49
|
+
registerInstance(this, hostRef);
|
|
50
|
+
this.successParse = createEvent(this, "successParse", 7);
|
|
51
|
+
this.clearCertificate = createEvent(this, "clearCertificate", 7);
|
|
52
|
+
this.onClickDecode = () => {
|
|
53
|
+
const { value } = this.inputPaste;
|
|
54
|
+
if (value) {
|
|
55
|
+
this.decode(value);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
this.onClickExample = () => {
|
|
59
|
+
this.decode(this.certificateExample);
|
|
60
|
+
};
|
|
61
|
+
this.onClickClear = () => {
|
|
62
|
+
this.clearValue();
|
|
63
|
+
};
|
|
64
|
+
this.onChangeInputFile = async (e) => {
|
|
65
|
+
const element = e.target;
|
|
66
|
+
if (element.files) {
|
|
67
|
+
const file = await readAsBinaryString(element.files[0]);
|
|
68
|
+
if (typeof file.value === 'string') {
|
|
69
|
+
this.decode(file.value);
|
|
70
|
+
}
|
|
71
|
+
element.value = '';
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
this.onDropFile = async (e) => {
|
|
75
|
+
e.stopPropagation();
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
const element = e.dataTransfer;
|
|
78
|
+
if (element.files) {
|
|
79
|
+
const file = await readAsBinaryString(element.files[0]);
|
|
80
|
+
if (typeof file.value === 'string') {
|
|
81
|
+
this.decode(file.value);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
componentDidLoad() {
|
|
87
|
+
if (this.defaultCertificate) {
|
|
88
|
+
/**
|
|
89
|
+
* Prevent Stencil warning about re-render
|
|
90
|
+
*/
|
|
91
|
+
setTimeout(() => this.decode(this.defaultCertificate), 100);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
clearValue() {
|
|
95
|
+
this.inputPaste.value = '';
|
|
96
|
+
this.certificateDecoded = null;
|
|
97
|
+
this.clearCertificate.emit();
|
|
98
|
+
}
|
|
99
|
+
setValue(value) {
|
|
100
|
+
this.certificateDecoded = value;
|
|
101
|
+
this.inputPaste.value = value.exportAsPemFormatted();
|
|
102
|
+
this.successParse.emit(value.exportAsBase64());
|
|
103
|
+
}
|
|
104
|
+
decode(certificate) {
|
|
105
|
+
const isPem$1 = isPem(certificate);
|
|
106
|
+
const isX509Pem$1 = isX509Pem(certificate);
|
|
107
|
+
const isPkcs10Pem$1 = isPkcs10Pem(certificate);
|
|
108
|
+
const isX509AttributePem$1 = isX509AttributePem(certificate);
|
|
109
|
+
let decoded;
|
|
110
|
+
let decodeError;
|
|
111
|
+
if (isPem$1 && !(isX509Pem$1 || isX509AttributePem$1 || isPkcs10Pem$1)) {
|
|
112
|
+
this.clearValue();
|
|
113
|
+
alert('Unsupported file type. Please try to use Certificate/AttributeCertificate/CertificateRequest.');
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
if (isX509Pem$1) {
|
|
118
|
+
decoded = new X509Certificate(certificate);
|
|
119
|
+
}
|
|
120
|
+
if (isX509AttributePem$1) {
|
|
121
|
+
decoded = new X509AttributeCertificate(certificate);
|
|
122
|
+
}
|
|
123
|
+
if (isPkcs10Pem$1) {
|
|
124
|
+
decoded = new CSR(certificate);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
decodeError = error;
|
|
129
|
+
}
|
|
130
|
+
if (!decoded) {
|
|
131
|
+
try {
|
|
132
|
+
decoded = new X509Certificate(certificate);
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
decodeError = error;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (!decoded) {
|
|
139
|
+
try {
|
|
140
|
+
decoded = new X509AttributeCertificate(certificate);
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
decodeError = error;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (!decoded) {
|
|
147
|
+
try {
|
|
148
|
+
decoded = new CSR(certificate);
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
decodeError = error;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (!decoded) {
|
|
155
|
+
this.clearValue();
|
|
156
|
+
console.log(decodeError);
|
|
157
|
+
alert('Error decoding file. Please try to use Certificate/AttributeCertificate/CertificateRequest.');
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
this.setValue(decoded);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
render() {
|
|
164
|
+
return (h(Host, null, h("textarea", { placeholder: "Certificate DER or PEM", class: "textarea", ref: (el) => { this.inputPaste = el; }, onDrop: this.onDropFile }), h("div", { class: "controls" }, h("peculiar-button", { fill: "fill", class: "button", onClick: this.onClickDecode }, "Decode"), h("peculiar-button", { class: "button" }, "Choose file", h("input", { type: "file", class: "input_file", accept: "application/pkix-cert,application/x-x509-ca-cert,application/x-x509-user-cert,application/pkcs10,.csr,.req", onChange: this.onChangeInputFile, value: "" })), h("peculiar-button", { class: "button", onClick: this.onClickClear }, "Clear"), this.certificateExample && (h("peculiar-button", { class: "button", onClick: this.onClickExample }, "Example"))), this.certificateDecoded instanceof X509Certificate && (h("peculiar-certificate-viewer", { certificate: this.certificateDecoded, class: "viewer", download: true })), this.certificateDecoded instanceof X509AttributeCertificate && (h("peculiar-attribute-certificate-viewer", { certificate: this.certificateDecoded, class: "viewer", download: true })), this.certificateDecoded instanceof CSR && (h("peculiar-csr-viewer", { certificate: this.certificateDecoded, class: "viewer", download: true }))));
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
CertificateDecoder.style = certificateDecoderCss;
|
|
168
|
+
|
|
169
|
+
export { CertificateDecoder as peculiar_certificate_decoder };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-bbd484d9.js';
|
|
5
|
-
import { l as l10n, a as dateShort } from './l10n-
|
|
5
|
+
import { l as l10n, a as dateShort } from './l10n-ac28fa92.js';
|
|
6
6
|
import './_commonjsHelpers-bfbd2ad8.js';
|
|
7
7
|
|
|
8
8
|
const certificateSummaryCss = ":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%}td{border:none;padding:0}table{width:100%;border-spacing:0;border-collapse:collapse}td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td:first-child{width:130px;padding-right:10px}table td:last-child{width:calc(100% - 130px)}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{width:100%}}";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { h, r as registerInstance, H as Host } from './index-bbd484d9.js';
|
|
5
|
+
import { X as X509Certificate } from './x509_certificate-12f6d344.js';
|
|
6
|
+
import './certification_request-c0674647.js';
|
|
7
|
+
import './index-0ba131b0.js';
|
|
8
|
+
import { l as l10n } from './l10n-ac28fa92.js';
|
|
9
|
+
import { a as RowTitle, R as RowValue, B as BasicInformation, e as SubjectName, P as PublicKey, S as Signature, T as Thumbprints, E as Extensions, b as getLEILink, c as getDNSNameLink, d as getIPAddressLink, M as Miscellaneous } from './public_key-43b2cbf0.js';
|
|
10
|
+
import './_commonjsHelpers-bfbd2ad8.js';
|
|
11
|
+
import './csr-c1b6a176.js';
|
|
12
|
+
import './download-735fb2eb.js';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright (c) Peculiar Ventures, LLC.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
const IssuerName = (props) => {
|
|
22
|
+
const { name, issuerDnLink } = props;
|
|
23
|
+
const title = l10n.getString('issuerName');
|
|
24
|
+
return [
|
|
25
|
+
h(RowTitle, { value: issuerDnLink ? (h("peculiar-link", { href: issuerDnLink, type: "h6" }, title)) : title }),
|
|
26
|
+
name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
|
|
27
|
+
];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const certificateViewerCss = ":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;position:relative;min-width:280px;min-height:300px;background:white;background:rgba(var(--pv-color-light-rgb), 1)}th,td{border:none}table{width:100%;margin-bottom:30px;border-spacing:0;border-collapse:collapse}table .title td{border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5);padding-top:60px;padding-bottom:15px;border-bottom-width:1px;border-bottom-style:solid}table td:first-child{padding-left:30px;width:130px;padding-right:10px}table td:last-child{padding-right:30px;width:calc(100% - 130px)}table td{vertical-align:top;padding-top:5px;padding-bottom:5px}table td.vertical_align_middle{vertical-align:middle}table .title:first-child td{padding-top:15px}table .title+tr td{padding-top:15px}table td.monospace{max-width:0}table .divider{padding-top:15px;padding-bottom:15px}.divider .bg_fill{background-color:rgba(209, 213, 217, 0.5);background-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr:last-child .divider{padding-top:0;opacity:0}.divider span{display:block;height:1px}.status_wrapper{min-height:inherit;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.interaction_text{padding:15px 0;width:300px;margin:auto;text-align:center}@media (max-width: 900px){table,tr,td{display:block}table td:last-child,table td:first-child{padding-right:15px;padding-left:15px;width:100%}table .title+tr td{padding-top:5px}table .title+tr td:first-child{padding-top:15px}table td.monospace{width:100%;max-width:none}}:host([data-view=mobile]) table,:host([data-view=mobile]) tr,:host([data-view=mobile]) td{display:block}:host([data-view=mobile]) table td:last-child,:host([data-view=mobile]) table td:first-child{padding-right:15px;padding-left:15px;width:100%}:host([data-view=mobile]) table .title+tr td{padding-top:5px}:host([data-view=mobile]) table .title+tr td:first-child{padding-top:15px}:host([data-view=mobile]) table td.monospace{width:100%;max-width:none}";
|
|
31
|
+
|
|
32
|
+
const CertificateViewer = class {
|
|
33
|
+
constructor(hostRef) {
|
|
34
|
+
registerInstance(this, hostRef);
|
|
35
|
+
this.isDecodeInProcess = true;
|
|
36
|
+
this.getAuthKeyIdParentLink = (value) => {
|
|
37
|
+
var _a;
|
|
38
|
+
return (_a = this.authKeyIdParentLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
|
|
39
|
+
};
|
|
40
|
+
this.getAuthKeyIdSiblingsLink = (value) => {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = this.authKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{authKeyId}}', value);
|
|
43
|
+
};
|
|
44
|
+
this.getSubjectKeyIdChildrenLink = (value) => {
|
|
45
|
+
var _a;
|
|
46
|
+
return (_a = this.subjectKeyIdChildrenLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
|
|
47
|
+
};
|
|
48
|
+
this.getSubjectKeyIdSiblingsLink = (value) => {
|
|
49
|
+
var _a;
|
|
50
|
+
return (_a = this.subjectKeyIdSiblingsLink) === null || _a === void 0 ? void 0 : _a.replace('{{subjectKeyId}}', value);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
componentWillLoad() {
|
|
54
|
+
this.decodeCertificate(this.certificate);
|
|
55
|
+
}
|
|
56
|
+
async decodeCertificate(certificate) {
|
|
57
|
+
this.isDecodeInProcess = true;
|
|
58
|
+
try {
|
|
59
|
+
if (certificate instanceof X509Certificate) {
|
|
60
|
+
this.certificateDecoded = certificate;
|
|
61
|
+
}
|
|
62
|
+
else if (typeof certificate === 'string') {
|
|
63
|
+
this.certificateDecoded = new X509Certificate(certificate);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this.certificateDecoded.parseExtensions();
|
|
69
|
+
await this.certificateDecoded.getThumbprint('SHA-1');
|
|
70
|
+
await this.certificateDecoded.getThumbprint('SHA-256');
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
this.certificateDecodeError = error;
|
|
74
|
+
console.error('Error certificate parse:', error);
|
|
75
|
+
}
|
|
76
|
+
this.isDecodeInProcess = false;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Rerun decodeCertificate if previuos value not equal current value
|
|
80
|
+
*/
|
|
81
|
+
watchCertificateAndDecode(newValue, oldValue) {
|
|
82
|
+
if (typeof newValue === 'string' && typeof oldValue === 'string') {
|
|
83
|
+
if (newValue !== oldValue) {
|
|
84
|
+
this.decodeCertificate(newValue);
|
|
85
|
+
}
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (newValue instanceof X509Certificate && oldValue instanceof X509Certificate) {
|
|
89
|
+
if (newValue.serialNumber !== oldValue.serialNumber) {
|
|
90
|
+
this.decodeCertificate(newValue);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
getIssuerDnLink() {
|
|
95
|
+
return this.issuerDnLink;
|
|
96
|
+
}
|
|
97
|
+
// eslint-disable-next-line class-methods-use-this
|
|
98
|
+
renderErrorState() {
|
|
99
|
+
return (h("div", { class: "status_wrapper" }, h("peculiar-typography", { type: "b1", class: "interaction_text" }, "There was an error decoding this certificate.")));
|
|
100
|
+
}
|
|
101
|
+
// eslint-disable-next-line class-methods-use-this
|
|
102
|
+
renderEmptyState() {
|
|
103
|
+
return (h("div", { class: "status_wrapper" }, h("peculiar-typography", { type: "b1", class: "interaction_text" }, "There is no certificate available.")));
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
if (this.certificateDecodeError) {
|
|
107
|
+
return this.renderErrorState();
|
|
108
|
+
}
|
|
109
|
+
if (!this.certificateDecoded) {
|
|
110
|
+
return this.renderEmptyState();
|
|
111
|
+
}
|
|
112
|
+
return (h(Host, { "data-view": this.view }, h("table", null, h(BasicInformation, Object.assign({}, this.certificateDecoded)), h(SubjectName, { name: this.certificateDecoded.subject }), h(IssuerName, { name: this.certificateDecoded.issuer, issuerDnLink: this.getIssuerDnLink() }), h(PublicKey, { publicKey: this.certificateDecoded.publicKey }), h(Signature, { signature: this.certificateDecoded.signature }), h(Thumbprints, { thumbprints: this.certificateDecoded.thumbprints }), h(Extensions, { extensions: this.certificateDecoded.extensions, getLEILink: getLEILink, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink, getAuthKeyIdParentLink: this.getAuthKeyIdParentLink, getAuthKeyIdSiblingsLink: this.getAuthKeyIdSiblingsLink, getSubjectKeyIdChildrenLink: this.getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink: this.getSubjectKeyIdSiblingsLink }), this.download && (h(Miscellaneous, { certificate: this.certificateDecoded })))));
|
|
113
|
+
}
|
|
114
|
+
static get watchers() { return {
|
|
115
|
+
"certificate": ["watchCertificateAndDecode"]
|
|
116
|
+
}; }
|
|
117
|
+
};
|
|
118
|
+
CertificateViewer.style = certificateViewerCss;
|
|
119
|
+
|
|
120
|
+
export { CertificateViewer as peculiar_certificate_viewer };
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-bbd484d9.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
5
|
+
import { X as X509Certificate } from './x509_certificate-12f6d344.js';
|
|
6
|
+
import { O as OIDs } from './certification_request-c0674647.js';
|
|
7
|
+
import './index-0ba131b0.js';
|
|
8
|
+
import { l as l10n } from './l10n-ac28fa92.js';
|
|
9
|
+
import { D as Download } from './download-735fb2eb.js';
|
|
8
10
|
import './_commonjsHelpers-bfbd2ad8.js';
|
|
9
11
|
|
|
10
12
|
const certificatesViewerCss = ":host{-webkit-box-sizing:border-box;box-sizing:border-box}:host *,:host *:before,:host *:after{-webkit-box-sizing:inherit;box-sizing:inherit}:host{display:block;width:100%;word-wrap:break-word;min-width:280px;overflow:auto;position:relative;background:white;background:rgba(var(--pv-color-light-rgb), 1)}table{width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0}table thead{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07)}table tr td{vertical-align:middle}table tbody tr:not(.expanded_summary){cursor:pointer}table tr{border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table th{padding:15px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table td{padding:8px 10px;border-width:1px;border-style:solid;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1)}table .col_issuer,table .col_name,table .col_public_key{width:16%}table .col_actions,table .col_tests{width:18%}table.m_extra .col_issuer,table.m_extra .col_name,table.m_extra .col_public_key{width:12%}table.m_extra .col_actions,table.m_extra .col_tests{width:17%}table tr.expanded td:not(:last-child){border-right-color:transparent}table tr.expanded td{border-bottom-color:transparent}.expanded{border-bottom-color:transparent;background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}table tr.expanded_summary td{vertical-align:top;padding:10px 20px 26px}@-webkit-keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0.001}100%{opacity:1}}.modal_wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;overflow:auto;text-align:center;-webkit-animation:fadeIn 200ms;animation:fadeIn 200ms;padding:30px 10px}.modal_wrapper:before{display:inline-block;vertical-align:middle;width:0;height:100%;content:\"\"}.modal_backdrop{background:rgba(42, 49, 52, 0.5);background:rgba(var(--pv-color-dark-rgb), 0.5);z-index:-1;position:fixed;top:0;right:0;bottom:0;left:0}.modal_container{position:relative;display:inline-block;vertical-align:middle;width:100%;max-width:900px;text-align:left;border-radius:3px;overflow:hidden;background-color:white;background-color:rgba(var(--pv-color-light-rgb), 1);height:100%}.modal_title{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);border-bottom-width:1px;border-bottom-style:solid;padding:20px 60px 16px 20px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:60px}.modal_content{height:calc(100% - 60px);overflow-y:auto}.modal_close{cursor:pointer;border:none;background-color:transparent;position:absolute;top:0;bottom:0;right:0;padding:0 12px;-webkit-transition:opacity 100ms;transition:opacity 100ms;outline:none}.modal_close:hover{opacity:0.6}.modal_close svg{fill:#2a3134;fill:rgba(var(--pv-color-dark-rgb), 1)}.button_table_action{margin:2px}.mobile_title{display:none}.status_wrapper{height:85px;text-align:center;pointer-events:none}.search_section{background-color:rgba(53, 132, 247, 0.07);background-color:rgba(var(--pv-color-primary-rgb), 0.07);border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);height:50px;padding:10px;border-width:1px 1px 0 1px;border-style:solid}.input_search{height:100%;width:100%;border-radius:3px;border-width:1px;border-style:solid;padding:0 14px;font-size:12px;outline:none;border-color:#d1d5d9;border-color:rgba(var(--pv-color-grey_3-rgb), 1);color:#2a3134;color:rgba(var(--pv-color-dark-rgb), 1)}.input_search::-webkit-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-moz-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search:-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::-ms-input-placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.input_search::placeholder{color:#d1d5d9;color:rgba(var(--pv-color-grey_3-rgb), 1)}.loading_container{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(42, 49, 52, 0.3);background:rgba(var(--pv-color-dark-rgb), 0.3);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.align_center{text-align:center}@media (hover: hover){table tbody tr:not(.expanded_summary):hover{background-color:rgba(53, 132, 247, 0.04);background-color:rgba(var(--pv-color-primary-rgb), 0.04)}}@media (max-width: 900px){table,tbody,tr,td{display:block}thead{display:none}tr{padding:0 15px;border-width:1px;border-style:solid}tr:not(:first-child){margin-top:-1px}tr:not(.expanded_summary) td:first-child{border:none !important}table td{padding-left:0;padding-right:0;border-width:1px 0 0 0 !important;border-color:rgba(209, 213, 217, 0.5);border-color:rgba(var(--pv-color-grey_3-rgb), 0.5)}table tr.expanded_summary td{padding:15px 0}.mobile_title{display:inline-block;width:90px;vertical-align:middle}.modal_title{padding:17px 60px 17px 15px}.content{display:inline-block;width:calc(100% - 90px);vertical-align:middle;text-align:left}.expanded_summary{border-top-color:transparent;padding-bottom:10px}.expanded_summary td:before{content:none}.status_wrapper{height:266px;display:table-cell}.search_section{height:60px;padding:15px}.align_center{text-align:inherit}}";
|
package/dist/esm/peculiar.js
CHANGED
|
@@ -69,5 +69,5 @@ const patchDynamicImport = (base, orgScriptElm) => {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
patchBrowser().then(options => {
|
|
72
|
-
return bootstrapLazy([["peculiar-
|
|
72
|
+
return bootstrapLazy([["peculiar-button_5",[[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]}]]],["peculiar-certificates-viewer",[[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]}]]],["peculiar-attribute-certificate-viewer_2",[[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-csr-viewer",{"certificate":[513],"download":[4],"subjectKeyIdChildrenLink":[513,"subject-key-id-children-link"],"subjectKeyIdSiblingsLink":[513,"subject-key-id-siblings-link"],"view":[513],"isDecodeInProcess":[32]}]]],["peculiar-certificate-viewer",[[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]}]]],["peculiar-certificate-decoder",[[1,"peculiar-certificate-decoder",{"certificateExample":[1,"certificate-example"],"defaultCertificate":[1,"default-certificate"],"certificateDecoded":[32]}]]],["peculiar-certificate-summary_3",[[1,"peculiar-certificate-summary",{"certificate":[16],"showIssuer":[4,"show-issuer"]}],[1,"peculiar-circular-progress",{"size":[2],"width":[2]}],[1,"peculiar-highlight-words",{"search":[1]}]]]], options);
|
|
73
73
|
});
|