@trismegisto/terminal 3.3.10 → 3.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +56 -56
- package/NOTICE +39 -39
- package/README.md +44 -44
- package/fesm2022/trismegisto-terminal.mjs +209 -209
- package/fesm2022/trismegisto-terminal.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -4225,110 +4225,110 @@ class DomRenderer {
|
|
|
4225
4225
|
// CSS do terminal, posto uma vez por documento (quem usa a classe sem Angular não precisa importar folha de estilo).
|
|
4226
4226
|
// As cores vêm do tema (variáveis `--hmt-*` no elemento); as medidas, da célula medida.
|
|
4227
4227
|
const STYLE_ID = 'hmt-styles';
|
|
4228
|
-
const TERMINAL_CSS = `
|
|
4229
|
-
.hmt {
|
|
4230
|
-
position: relative;
|
|
4231
|
-
overflow: hidden;
|
|
4232
|
-
block-size: 100%;
|
|
4233
|
-
inline-size: 100%;
|
|
4234
|
-
background: var(--hmt-background, #000);
|
|
4235
|
-
color: var(--hmt-foreground, #fff);
|
|
4236
|
-
cursor: text;
|
|
4237
|
-
user-select: none;
|
|
4238
|
-
-webkit-user-select: none;
|
|
4239
|
-
contain: strict;
|
|
4240
|
-
}
|
|
4241
|
-
.hmt.hmt-link-hover { cursor: pointer; }
|
|
4242
|
-
.hmt-viewport {
|
|
4243
|
-
position: absolute;
|
|
4244
|
-
inset: 0;
|
|
4245
|
-
/* A barra só aparece com histórico para rolar (auto), e sobre ela vale o cursor padrão, não o de texto. */
|
|
4246
|
-
overflow-y: auto;
|
|
4247
|
-
overflow-x: hidden;
|
|
4248
|
-
cursor: default;
|
|
4249
|
-
background: transparent;
|
|
4250
|
-
scrollbar-color: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)) transparent;
|
|
4251
|
-
}
|
|
4252
|
-
.hmt-scroll-area { inline-size: 1px; }
|
|
4253
|
-
.hmt-screen {
|
|
4254
|
-
position: absolute;
|
|
4255
|
-
inset-block-start: 0;
|
|
4256
|
-
inset-inline-start: 0;
|
|
4257
|
-
white-space: pre;
|
|
4258
|
-
font-kerning: none;
|
|
4259
|
-
font-variant-ligatures: none;
|
|
4260
|
-
line-height: var(--hmt-cell-height);
|
|
4261
|
-
}
|
|
4262
|
-
.hmt-rows, .hmt-selection, .hmt-links, .hmt-decorations { position: absolute; inset: 0; pointer-events: none; }
|
|
4263
|
-
.hmt-row { display: block; overflow: hidden; white-space: pre; line-height: var(--hmt-cell-height); }
|
|
4264
|
-
.hmt-row span { display: inline; }
|
|
4265
|
-
.hmt-glyph { display: inline-block !important; inline-size: var(--hmt-cell-width); block-size: var(--hmt-cell-height); vertical-align: top; }
|
|
4266
|
-
.hmt-wide { display: inline-block !important; inline-size: calc(var(--hmt-cell-width) * 2); text-align: center; }
|
|
4267
|
-
.hmt-bold { font-weight: var(--hmt-font-weight-bold, bold); }
|
|
4268
|
-
.hmt-dim { opacity: 0.5; }
|
|
4269
|
-
.hmt-italic { font-style: italic; }
|
|
4270
|
-
.hmt-blink { animation: hmt-blink var(--hmt-blink-duration, 1s) step-end infinite; }
|
|
4271
|
-
.hmt-blink-off .hmt-blink { animation: none; }
|
|
4272
|
-
.hmt-joined { display: inline-block !important; white-space: pre; overflow: visible; vertical-align: top; }
|
|
4273
|
-
.hmt-rescaled { display: inline-block !important; inline-size: var(--hmt-cell-width); white-space: pre; transform-origin: left center; vertical-align: top; }
|
|
4274
|
-
.hmt-no-scrollbar .hmt-viewport { scrollbar-width: none; }
|
|
4275
|
-
.hmt-no-scrollbar .hmt-viewport::-webkit-scrollbar { display: none; }
|
|
4276
|
-
.hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar { inline-size: var(--hmt-scrollbar-width); }
|
|
4277
|
-
.hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar-thumb { background: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)); border-radius: 4px; }
|
|
4278
|
-
.hmt-scrollbar-arrows .hmt-viewport::-webkit-scrollbar-button:single-button { display: block; block-size: var(--hmt-scrollbar-width, 12px); }
|
|
4279
|
-
.hmt-overview-ruler { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: var(--hmt-scrollbar-width, 14px); pointer-events: none; z-index: 1; }
|
|
4280
|
-
.hmt-overview-ruler .hmt-ruler-mark { position: absolute; min-block-size: 2px; }
|
|
4281
|
-
.hmt-overview-ruler.hmt-ruler-top { border-block-start: 1px solid var(--hmt-ruler-border, transparent); }
|
|
4282
|
-
.hmt-overview-ruler.hmt-ruler-bottom { border-block-end: 1px solid var(--hmt-ruler-border, transparent); }
|
|
4283
|
-
.hmt-hyperlink { text-decoration-line: underline; text-decoration-style: dashed; text-underline-offset: 2px; }
|
|
4284
|
-
.hmt-selection-range { position: absolute; }
|
|
4285
|
-
.hmt-link-underline { position: absolute; border-block-end: 1px solid currentColor; box-sizing: border-box; color: var(--hmt-foreground, #fff); }
|
|
4286
|
-
.hmt-decoration { position: absolute; pointer-events: auto; }
|
|
4287
|
-
.hmt-cursor {
|
|
4288
|
-
position: absolute;
|
|
4289
|
-
pointer-events: none;
|
|
4290
|
-
box-sizing: border-box;
|
|
4291
|
-
overflow: hidden;
|
|
4292
|
-
text-align: center;
|
|
4293
|
-
line-height: var(--hmt-cell-height);
|
|
4294
|
-
}
|
|
4295
|
-
.hmt-cursor-block.hmt-cursor-focus { color: var(--hmt-background, #000); }
|
|
4296
|
-
.hmt-cursor-block:not(.hmt-cursor-focus), .hmt-cursor-outline { outline: 1px solid var(--hmt-cursor-color); outline-offset: -1px; }
|
|
4297
|
-
.hmt-cursor-underline { box-shadow: inset 0 -2px 0 var(--hmt-cursor-color); }
|
|
4298
|
-
.hmt-cursor-bar { background-color: var(--hmt-cursor-color); }
|
|
4299
|
-
.hmt-cursor-blink { animation: hmt-blink 1s step-end infinite; }
|
|
4300
|
-
@keyframes hmt-blink { 50% { opacity: 0; } }
|
|
4301
|
-
@media (prefers-reduced-motion: reduce) { .hmt-cursor-blink, .hmt-blink { animation: none; } }
|
|
4302
|
-
.hmt-helper-textarea {
|
|
4303
|
-
position: absolute;
|
|
4304
|
-
inset-block-start: 0;
|
|
4305
|
-
inset-inline-start: -9999em;
|
|
4306
|
-
inline-size: 0;
|
|
4307
|
-
block-size: 0;
|
|
4308
|
-
opacity: 0;
|
|
4309
|
-
padding: 0;
|
|
4310
|
-
border: 0;
|
|
4311
|
-
resize: none;
|
|
4312
|
-
overflow: hidden;
|
|
4313
|
-
white-space: nowrap;
|
|
4314
|
-
z-index: -5;
|
|
4315
|
-
}
|
|
4316
|
-
.hmt-measure {
|
|
4317
|
-
position: absolute;
|
|
4318
|
-
inset-block-start: 0;
|
|
4319
|
-
inset-inline-start: -9999em;
|
|
4320
|
-
visibility: hidden;
|
|
4321
|
-
white-space: pre;
|
|
4322
|
-
line-height: normal;
|
|
4323
|
-
}
|
|
4324
|
-
.hmt-a11y-tree, .hmt-a11y-live {
|
|
4325
|
-
position: absolute;
|
|
4326
|
-
inline-size: 1px;
|
|
4327
|
-
block-size: 1px;
|
|
4328
|
-
overflow: hidden;
|
|
4329
|
-
clip-path: inset(50%);
|
|
4330
|
-
white-space: pre;
|
|
4331
|
-
}
|
|
4228
|
+
const TERMINAL_CSS = `
|
|
4229
|
+
.hmt {
|
|
4230
|
+
position: relative;
|
|
4231
|
+
overflow: hidden;
|
|
4232
|
+
block-size: 100%;
|
|
4233
|
+
inline-size: 100%;
|
|
4234
|
+
background: var(--hmt-background, #000);
|
|
4235
|
+
color: var(--hmt-foreground, #fff);
|
|
4236
|
+
cursor: text;
|
|
4237
|
+
user-select: none;
|
|
4238
|
+
-webkit-user-select: none;
|
|
4239
|
+
contain: strict;
|
|
4240
|
+
}
|
|
4241
|
+
.hmt.hmt-link-hover { cursor: pointer; }
|
|
4242
|
+
.hmt-viewport {
|
|
4243
|
+
position: absolute;
|
|
4244
|
+
inset: 0;
|
|
4245
|
+
/* A barra só aparece com histórico para rolar (auto), e sobre ela vale o cursor padrão, não o de texto. */
|
|
4246
|
+
overflow-y: auto;
|
|
4247
|
+
overflow-x: hidden;
|
|
4248
|
+
cursor: default;
|
|
4249
|
+
background: transparent;
|
|
4250
|
+
scrollbar-color: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)) transparent;
|
|
4251
|
+
}
|
|
4252
|
+
.hmt-scroll-area { inline-size: 1px; }
|
|
4253
|
+
.hmt-screen {
|
|
4254
|
+
position: absolute;
|
|
4255
|
+
inset-block-start: 0;
|
|
4256
|
+
inset-inline-start: 0;
|
|
4257
|
+
white-space: pre;
|
|
4258
|
+
font-kerning: none;
|
|
4259
|
+
font-variant-ligatures: none;
|
|
4260
|
+
line-height: var(--hmt-cell-height);
|
|
4261
|
+
}
|
|
4262
|
+
.hmt-rows, .hmt-selection, .hmt-links, .hmt-decorations { position: absolute; inset: 0; pointer-events: none; }
|
|
4263
|
+
.hmt-row { display: block; overflow: hidden; white-space: pre; line-height: var(--hmt-cell-height); }
|
|
4264
|
+
.hmt-row span { display: inline; }
|
|
4265
|
+
.hmt-glyph { display: inline-block !important; inline-size: var(--hmt-cell-width); block-size: var(--hmt-cell-height); vertical-align: top; }
|
|
4266
|
+
.hmt-wide { display: inline-block !important; inline-size: calc(var(--hmt-cell-width) * 2); text-align: center; }
|
|
4267
|
+
.hmt-bold { font-weight: var(--hmt-font-weight-bold, bold); }
|
|
4268
|
+
.hmt-dim { opacity: 0.5; }
|
|
4269
|
+
.hmt-italic { font-style: italic; }
|
|
4270
|
+
.hmt-blink { animation: hmt-blink var(--hmt-blink-duration, 1s) step-end infinite; }
|
|
4271
|
+
.hmt-blink-off .hmt-blink { animation: none; }
|
|
4272
|
+
.hmt-joined { display: inline-block !important; white-space: pre; overflow: visible; vertical-align: top; }
|
|
4273
|
+
.hmt-rescaled { display: inline-block !important; inline-size: var(--hmt-cell-width); white-space: pre; transform-origin: left center; vertical-align: top; }
|
|
4274
|
+
.hmt-no-scrollbar .hmt-viewport { scrollbar-width: none; }
|
|
4275
|
+
.hmt-no-scrollbar .hmt-viewport::-webkit-scrollbar { display: none; }
|
|
4276
|
+
.hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar { inline-size: var(--hmt-scrollbar-width); }
|
|
4277
|
+
.hmt-scrollbar-sized .hmt-viewport::-webkit-scrollbar-thumb { background: var(--hmt-scrollbar, rgba(127, 127, 127, 0.5)); border-radius: 4px; }
|
|
4278
|
+
.hmt-scrollbar-arrows .hmt-viewport::-webkit-scrollbar-button:single-button { display: block; block-size: var(--hmt-scrollbar-width, 12px); }
|
|
4279
|
+
.hmt-overview-ruler { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: var(--hmt-scrollbar-width, 14px); pointer-events: none; z-index: 1; }
|
|
4280
|
+
.hmt-overview-ruler .hmt-ruler-mark { position: absolute; min-block-size: 2px; }
|
|
4281
|
+
.hmt-overview-ruler.hmt-ruler-top { border-block-start: 1px solid var(--hmt-ruler-border, transparent); }
|
|
4282
|
+
.hmt-overview-ruler.hmt-ruler-bottom { border-block-end: 1px solid var(--hmt-ruler-border, transparent); }
|
|
4283
|
+
.hmt-hyperlink { text-decoration-line: underline; text-decoration-style: dashed; text-underline-offset: 2px; }
|
|
4284
|
+
.hmt-selection-range { position: absolute; }
|
|
4285
|
+
.hmt-link-underline { position: absolute; border-block-end: 1px solid currentColor; box-sizing: border-box; color: var(--hmt-foreground, #fff); }
|
|
4286
|
+
.hmt-decoration { position: absolute; pointer-events: auto; }
|
|
4287
|
+
.hmt-cursor {
|
|
4288
|
+
position: absolute;
|
|
4289
|
+
pointer-events: none;
|
|
4290
|
+
box-sizing: border-box;
|
|
4291
|
+
overflow: hidden;
|
|
4292
|
+
text-align: center;
|
|
4293
|
+
line-height: var(--hmt-cell-height);
|
|
4294
|
+
}
|
|
4295
|
+
.hmt-cursor-block.hmt-cursor-focus { color: var(--hmt-background, #000); }
|
|
4296
|
+
.hmt-cursor-block:not(.hmt-cursor-focus), .hmt-cursor-outline { outline: 1px solid var(--hmt-cursor-color); outline-offset: -1px; }
|
|
4297
|
+
.hmt-cursor-underline { box-shadow: inset 0 -2px 0 var(--hmt-cursor-color); }
|
|
4298
|
+
.hmt-cursor-bar { background-color: var(--hmt-cursor-color); }
|
|
4299
|
+
.hmt-cursor-blink { animation: hmt-blink 1s step-end infinite; }
|
|
4300
|
+
@keyframes hmt-blink { 50% { opacity: 0; } }
|
|
4301
|
+
@media (prefers-reduced-motion: reduce) { .hmt-cursor-blink, .hmt-blink { animation: none; } }
|
|
4302
|
+
.hmt-helper-textarea {
|
|
4303
|
+
position: absolute;
|
|
4304
|
+
inset-block-start: 0;
|
|
4305
|
+
inset-inline-start: -9999em;
|
|
4306
|
+
inline-size: 0;
|
|
4307
|
+
block-size: 0;
|
|
4308
|
+
opacity: 0;
|
|
4309
|
+
padding: 0;
|
|
4310
|
+
border: 0;
|
|
4311
|
+
resize: none;
|
|
4312
|
+
overflow: hidden;
|
|
4313
|
+
white-space: nowrap;
|
|
4314
|
+
z-index: -5;
|
|
4315
|
+
}
|
|
4316
|
+
.hmt-measure {
|
|
4317
|
+
position: absolute;
|
|
4318
|
+
inset-block-start: 0;
|
|
4319
|
+
inset-inline-start: -9999em;
|
|
4320
|
+
visibility: hidden;
|
|
4321
|
+
white-space: pre;
|
|
4322
|
+
line-height: normal;
|
|
4323
|
+
}
|
|
4324
|
+
.hmt-a11y-tree, .hmt-a11y-live {
|
|
4325
|
+
position: absolute;
|
|
4326
|
+
inline-size: 1px;
|
|
4327
|
+
block-size: 1px;
|
|
4328
|
+
overflow: hidden;
|
|
4329
|
+
clip-path: inset(50%);
|
|
4330
|
+
white-space: pre;
|
|
4331
|
+
}
|
|
4332
4332
|
`;
|
|
4333
4333
|
function ensureStyles(doc) {
|
|
4334
4334
|
if (doc.getElementById(STYLE_ID))
|
|
@@ -7383,55 +7383,55 @@ function underline(target, style, x, y, w, t, color, rect) {
|
|
|
7383
7383
|
|
|
7384
7384
|
// Desenho na GPU: dois programas instanciados (retângulos de cor e glifos do atlas) sobre um quadrado unitário.
|
|
7385
7385
|
// Funciona em WebGL2 e em WebGL1 com ANGLE_instanced_arrays (os shaders são GLSL ES 1.00, aceitos pelos dois).
|
|
7386
|
-
const RECT_VS = `
|
|
7387
|
-
attribute vec2 a_unit;
|
|
7388
|
-
attribute vec4 a_rect;
|
|
7389
|
-
attribute vec4 a_color;
|
|
7390
|
-
uniform vec2 u_resolution;
|
|
7391
|
-
varying vec4 v_color;
|
|
7392
|
-
void main() {
|
|
7393
|
-
vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
|
|
7394
|
-
gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
|
|
7395
|
-
v_color = a_color;
|
|
7386
|
+
const RECT_VS = `
|
|
7387
|
+
attribute vec2 a_unit;
|
|
7388
|
+
attribute vec4 a_rect;
|
|
7389
|
+
attribute vec4 a_color;
|
|
7390
|
+
uniform vec2 u_resolution;
|
|
7391
|
+
varying vec4 v_color;
|
|
7392
|
+
void main() {
|
|
7393
|
+
vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
|
|
7394
|
+
gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
|
|
7395
|
+
v_color = a_color;
|
|
7396
7396
|
}`;
|
|
7397
|
-
const RECT_FS = `
|
|
7398
|
-
precision mediump float;
|
|
7399
|
-
varying vec4 v_color;
|
|
7400
|
-
void main() {
|
|
7401
|
-
gl_FragColor = vec4(v_color.rgb * v_color.a, v_color.a);
|
|
7397
|
+
const RECT_FS = `
|
|
7398
|
+
precision mediump float;
|
|
7399
|
+
varying vec4 v_color;
|
|
7400
|
+
void main() {
|
|
7401
|
+
gl_FragColor = vec4(v_color.rgb * v_color.a, v_color.a);
|
|
7402
7402
|
}`;
|
|
7403
|
-
const GLYPH_VS = `
|
|
7404
|
-
attribute vec2 a_unit;
|
|
7405
|
-
attribute vec4 a_rect;
|
|
7406
|
-
attribute vec4 a_uv;
|
|
7407
|
-
attribute vec4 a_color;
|
|
7408
|
-
attribute float a_tint;
|
|
7409
|
-
uniform vec2 u_resolution;
|
|
7410
|
-
varying vec2 v_uv;
|
|
7411
|
-
varying vec4 v_color;
|
|
7412
|
-
varying float v_tint;
|
|
7413
|
-
void main() {
|
|
7414
|
-
vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
|
|
7415
|
-
gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
|
|
7416
|
-
v_uv = mix(a_uv.xy, a_uv.zw, a_unit);
|
|
7417
|
-
v_color = a_color;
|
|
7418
|
-
v_tint = a_tint;
|
|
7403
|
+
const GLYPH_VS = `
|
|
7404
|
+
attribute vec2 a_unit;
|
|
7405
|
+
attribute vec4 a_rect;
|
|
7406
|
+
attribute vec4 a_uv;
|
|
7407
|
+
attribute vec4 a_color;
|
|
7408
|
+
attribute float a_tint;
|
|
7409
|
+
uniform vec2 u_resolution;
|
|
7410
|
+
varying vec2 v_uv;
|
|
7411
|
+
varying vec4 v_color;
|
|
7412
|
+
varying float v_tint;
|
|
7413
|
+
void main() {
|
|
7414
|
+
vec2 p = (a_rect.xy + a_unit * a_rect.zw) / u_resolution * 2.0 - 1.0;
|
|
7415
|
+
gl_Position = vec4(p.x, -p.y, 0.0, 1.0);
|
|
7416
|
+
v_uv = mix(a_uv.xy, a_uv.zw, a_unit);
|
|
7417
|
+
v_color = a_color;
|
|
7418
|
+
v_tint = a_tint;
|
|
7419
7419
|
}`;
|
|
7420
7420
|
// A textura vem pré-multiplicada; tingido = cobertura (alfa) na cor da célula; sem tingir = a cor do próprio glifo.
|
|
7421
|
-
const GLYPH_FS = `
|
|
7422
|
-
precision mediump float;
|
|
7423
|
-
uniform sampler2D u_texture;
|
|
7424
|
-
varying vec2 v_uv;
|
|
7425
|
-
varying vec4 v_color;
|
|
7426
|
-
varying float v_tint;
|
|
7427
|
-
void main() {
|
|
7428
|
-
vec4 tex = texture2D(u_texture, v_uv);
|
|
7429
|
-
if (v_tint > 0.5) {
|
|
7430
|
-
float a = tex.a * v_color.a;
|
|
7431
|
-
gl_FragColor = vec4(v_color.rgb * a, a);
|
|
7432
|
-
} else {
|
|
7433
|
-
gl_FragColor = tex * v_color.a;
|
|
7434
|
-
}
|
|
7421
|
+
const GLYPH_FS = `
|
|
7422
|
+
precision mediump float;
|
|
7423
|
+
uniform sampler2D u_texture;
|
|
7424
|
+
varying vec2 v_uv;
|
|
7425
|
+
varying vec4 v_color;
|
|
7426
|
+
varying float v_tint;
|
|
7427
|
+
void main() {
|
|
7428
|
+
vec4 tex = texture2D(u_texture, v_uv);
|
|
7429
|
+
if (v_tint > 0.5) {
|
|
7430
|
+
float a = tex.a * v_color.a;
|
|
7431
|
+
gl_FragColor = vec4(v_color.rgb * a, a);
|
|
7432
|
+
} else {
|
|
7433
|
+
gl_FragColor = tex * v_color.a;
|
|
7434
|
+
}
|
|
7435
7435
|
}`;
|
|
7436
7436
|
class GlRenderer {
|
|
7437
7437
|
gl;
|
|
@@ -9632,36 +9632,36 @@ class TerminalComponent {
|
|
|
9632
9632
|
return true;
|
|
9633
9633
|
}
|
|
9634
9634
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TerminalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9635
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TerminalComponent, isStandalone: true, selector: "hm-terminal", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, scrollback: { classPropertyName: "scrollback", publicName: "scrollback", isSignal: true, isRequired: false, transformFunction: null }, cursorStyle: { classPropertyName: "cursorStyle", publicName: "cursorStyle", isSignal: true, isRequired: false, transformFunction: null }, cursorBlink: { classPropertyName: "cursorBlink", publicName: "cursorBlink", isSignal: true, isRequired: false, transformFunction: null }, convertEol: { classPropertyName: "convertEol", publicName: "convertEol", isSignal: true, isRequired: false, transformFunction: null }, disableStdin: { classPropertyName: "disableStdin", publicName: "disableStdin", isSignal: true, isRequired: false, transformFunction: null }, screenReaderMode: { classPropertyName: "screenReaderMode", publicName: "screenReaderMode", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, lineHeight: { classPropertyName: "lineHeight", publicName: "lineHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFit: { classPropertyName: "autoFit", publicName: "autoFit", isSignal: true, isRequired: false, transformFunction: null }, webLinks: { classPropertyName: "webLinks", publicName: "webLinks", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { data: "data", binary: "binary", resized: "resized", titleChange: "titleChange", bell: "bell", ready: "ready" }, host: { attributes: { "role": "group" }, listeners: { "keydown": "onHostKeydown($event)" }, properties: { "attr.aria-label": "label() || text.terminal.label", "attr.aria-roledescription": "text.terminal.roleDescription", "attr.aria-describedby": "id + \"-instructions\"" }, classAttribute: "hm-terminal" }, viewQueries: [{ propertyName: "screen", first: true, predicate: ["screen"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
9636
|
-
<span class="hm-terminal__instructions" [id]="id + '-instructions'">{{ text.terminal.instructions }}</span>
|
|
9637
|
-
@if (searchOpen()) {
|
|
9638
|
-
<div class="hm-terminal__search" role="search" [attr.aria-label]="text.search.label">
|
|
9639
|
-
<input
|
|
9640
|
-
#searchInput
|
|
9641
|
-
class="hm-terminal__search-input"
|
|
9642
|
-
type="search"
|
|
9643
|
-
[attr.aria-label]="text.search.label"
|
|
9644
|
-
[placeholder]="text.search.placeholder"
|
|
9645
|
-
[value]="query()"
|
|
9646
|
-
(input)="onQuery($any($event.target).value)"
|
|
9647
|
-
(keydown)="onSearchKeydown($event)"
|
|
9648
|
-
/>
|
|
9649
|
-
<span class="hm-terminal__search-status" aria-live="polite">{{ status() }}</span>
|
|
9650
|
-
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="caseSensitive()" [attr.aria-label]="text.search.caseSensitive" [title]="text.search.caseSensitive" (click)="toggle('case')">{{ text.search.caseSensitiveGlyph }}</button>
|
|
9651
|
-
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="wholeWord()" [attr.aria-label]="text.search.wholeWord" [title]="text.search.wholeWord" (click)="toggle('word')">{{ text.search.wholeWordGlyph }}</button>
|
|
9652
|
-
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="regex()" [attr.aria-label]="text.search.regex" [title]="text.search.regex" (click)="toggle('regex')">{{ text.search.regexGlyph }}</button>
|
|
9653
|
-
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.previous" [title]="text.search.previous" (click)="findPrevious()">
|
|
9654
|
-
<hm-icon shape="angle" direction="up" />
|
|
9655
|
-
</button>
|
|
9656
|
-
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.next" [title]="text.search.next" (click)="findNext()">
|
|
9657
|
-
<hm-icon shape="angle" direction="down" />
|
|
9658
|
-
</button>
|
|
9659
|
-
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.close" [title]="text.search.close" (click)="closeSearch()">
|
|
9660
|
-
<hm-icon shape="times" />
|
|
9661
|
-
</button>
|
|
9662
|
-
</div>
|
|
9663
|
-
}
|
|
9664
|
-
<div #screen class="hm-terminal__screen"></div>
|
|
9635
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TerminalComponent, isStandalone: true, selector: "hm-terminal", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, scrollback: { classPropertyName: "scrollback", publicName: "scrollback", isSignal: true, isRequired: false, transformFunction: null }, cursorStyle: { classPropertyName: "cursorStyle", publicName: "cursorStyle", isSignal: true, isRequired: false, transformFunction: null }, cursorBlink: { classPropertyName: "cursorBlink", publicName: "cursorBlink", isSignal: true, isRequired: false, transformFunction: null }, convertEol: { classPropertyName: "convertEol", publicName: "convertEol", isSignal: true, isRequired: false, transformFunction: null }, disableStdin: { classPropertyName: "disableStdin", publicName: "disableStdin", isSignal: true, isRequired: false, transformFunction: null }, screenReaderMode: { classPropertyName: "screenReaderMode", publicName: "screenReaderMode", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, lineHeight: { classPropertyName: "lineHeight", publicName: "lineHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFit: { classPropertyName: "autoFit", publicName: "autoFit", isSignal: true, isRequired: false, transformFunction: null }, webLinks: { classPropertyName: "webLinks", publicName: "webLinks", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { data: "data", binary: "binary", resized: "resized", titleChange: "titleChange", bell: "bell", ready: "ready" }, host: { attributes: { "role": "group" }, listeners: { "keydown": "onHostKeydown($event)" }, properties: { "attr.aria-label": "label() || text.terminal.label", "attr.aria-roledescription": "text.terminal.roleDescription", "attr.aria-describedby": "id + \"-instructions\"" }, classAttribute: "hm-terminal" }, viewQueries: [{ propertyName: "screen", first: true, predicate: ["screen"], descendants: true, isSignal: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
9636
|
+
<span class="hm-terminal__instructions" [id]="id + '-instructions'">{{ text.terminal.instructions }}</span>
|
|
9637
|
+
@if (searchOpen()) {
|
|
9638
|
+
<div class="hm-terminal__search" role="search" [attr.aria-label]="text.search.label">
|
|
9639
|
+
<input
|
|
9640
|
+
#searchInput
|
|
9641
|
+
class="hm-terminal__search-input"
|
|
9642
|
+
type="search"
|
|
9643
|
+
[attr.aria-label]="text.search.label"
|
|
9644
|
+
[placeholder]="text.search.placeholder"
|
|
9645
|
+
[value]="query()"
|
|
9646
|
+
(input)="onQuery($any($event.target).value)"
|
|
9647
|
+
(keydown)="onSearchKeydown($event)"
|
|
9648
|
+
/>
|
|
9649
|
+
<span class="hm-terminal__search-status" aria-live="polite">{{ status() }}</span>
|
|
9650
|
+
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="caseSensitive()" [attr.aria-label]="text.search.caseSensitive" [title]="text.search.caseSensitive" (click)="toggle('case')">{{ text.search.caseSensitiveGlyph }}</button>
|
|
9651
|
+
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="wholeWord()" [attr.aria-label]="text.search.wholeWord" [title]="text.search.wholeWord" (click)="toggle('word')">{{ text.search.wholeWordGlyph }}</button>
|
|
9652
|
+
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="regex()" [attr.aria-label]="text.search.regex" [title]="text.search.regex" (click)="toggle('regex')">{{ text.search.regexGlyph }}</button>
|
|
9653
|
+
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.previous" [title]="text.search.previous" (click)="findPrevious()">
|
|
9654
|
+
<hm-icon shape="angle" direction="up" />
|
|
9655
|
+
</button>
|
|
9656
|
+
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.next" [title]="text.search.next" (click)="findNext()">
|
|
9657
|
+
<hm-icon shape="angle" direction="down" />
|
|
9658
|
+
</button>
|
|
9659
|
+
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.close" [title]="text.search.close" (click)="closeSearch()">
|
|
9660
|
+
<hm-icon shape="times" />
|
|
9661
|
+
</button>
|
|
9662
|
+
</div>
|
|
9663
|
+
}
|
|
9664
|
+
<div #screen class="hm-terminal__screen"></div>
|
|
9665
9665
|
`, isInline: true, styles: [":host{position:relative;display:block;box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:8rem;block-size:100%;padding:var(--hm-space-xs);background:var(--hm-terminal-bg);color:var(--hm-terminal-text);border:1px solid var(--hm-terminal-border);border-radius:var(--hm-radius);overflow:hidden}:host(:focus-within){outline:2px solid var(--hm-focus-color);outline-offset:1px}.hm-terminal__screen{position:relative;block-size:100%;inline-size:100%}.hm-terminal__instructions{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.hm-terminal__search{position:absolute;inset-block-start:var(--hm-space-xs);inset-inline-end:var(--hm-space-lg);z-index:2;display:flex;align-items:center;gap:var(--hm-space-xxxs);padding:var(--hm-space-xxxs) var(--hm-space-xs);background:var(--hm-surface-raised);color:var(--hm-text);border:1px solid var(--hm-border);border-radius:var(--hm-radius-control);box-shadow:var(--hm-shadow-overlay);font-size:var(--hm-font-size-sm)}.hm-terminal__search-input{inline-size:12rem;max-inline-size:40vw;block-size:var(--hm-control-height-dense);padding-inline:var(--hm-space-xs);font:inherit;color:inherit;background:var(--hm-surface);border:1px solid var(--hm-border);border-radius:var(--hm-radius-micro)}.hm-terminal__search-input:focus-visible,.hm-terminal__search-button:focus-visible,.hm-terminal__search-toggle:focus-visible{outline:2px solid var(--hm-focus-color);outline-offset:1px}.hm-terminal__search-status{min-inline-size:5.5rem;color:var(--hm-muted);white-space:nowrap;text-align:center}.hm-terminal__search-button,.hm-terminal__search-toggle{display:inline-grid;place-items:center;min-inline-size:var(--hm-control-height-dense);block-size:var(--hm-control-height-dense);padding:0 var(--hm-space-xxxs);font:inherit;font-family:var(--hm-terminal-font-family);color:inherit;background:transparent;border:1px solid transparent;border-radius:var(--hm-radius-micro);cursor:pointer}.hm-terminal__search-button:hover,.hm-terminal__search-toggle:hover{background:var(--hm-surface-muted)}.hm-terminal__search-toggle[aria-pressed=true]{border-color:var(--hm-accent);color:var(--hm-accent)}@media(forced-colors:active){.hm-terminal__search-toggle[aria-pressed=true]{border-color:Highlight}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9666
9666
|
}
|
|
9667
9667
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TerminalComponent, decorators: [{
|
|
@@ -9673,36 +9673,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
9673
9673
|
'[attr.aria-roledescription]': 'text.terminal.roleDescription',
|
|
9674
9674
|
'[attr.aria-describedby]': 'id + "-instructions"',
|
|
9675
9675
|
'(keydown)': 'onHostKeydown($event)',
|
|
9676
|
-
}, template: `
|
|
9677
|
-
<span class="hm-terminal__instructions" [id]="id + '-instructions'">{{ text.terminal.instructions }}</span>
|
|
9678
|
-
@if (searchOpen()) {
|
|
9679
|
-
<div class="hm-terminal__search" role="search" [attr.aria-label]="text.search.label">
|
|
9680
|
-
<input
|
|
9681
|
-
#searchInput
|
|
9682
|
-
class="hm-terminal__search-input"
|
|
9683
|
-
type="search"
|
|
9684
|
-
[attr.aria-label]="text.search.label"
|
|
9685
|
-
[placeholder]="text.search.placeholder"
|
|
9686
|
-
[value]="query()"
|
|
9687
|
-
(input)="onQuery($any($event.target).value)"
|
|
9688
|
-
(keydown)="onSearchKeydown($event)"
|
|
9689
|
-
/>
|
|
9690
|
-
<span class="hm-terminal__search-status" aria-live="polite">{{ status() }}</span>
|
|
9691
|
-
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="caseSensitive()" [attr.aria-label]="text.search.caseSensitive" [title]="text.search.caseSensitive" (click)="toggle('case')">{{ text.search.caseSensitiveGlyph }}</button>
|
|
9692
|
-
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="wholeWord()" [attr.aria-label]="text.search.wholeWord" [title]="text.search.wholeWord" (click)="toggle('word')">{{ text.search.wholeWordGlyph }}</button>
|
|
9693
|
-
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="regex()" [attr.aria-label]="text.search.regex" [title]="text.search.regex" (click)="toggle('regex')">{{ text.search.regexGlyph }}</button>
|
|
9694
|
-
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.previous" [title]="text.search.previous" (click)="findPrevious()">
|
|
9695
|
-
<hm-icon shape="angle" direction="up" />
|
|
9696
|
-
</button>
|
|
9697
|
-
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.next" [title]="text.search.next" (click)="findNext()">
|
|
9698
|
-
<hm-icon shape="angle" direction="down" />
|
|
9699
|
-
</button>
|
|
9700
|
-
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.close" [title]="text.search.close" (click)="closeSearch()">
|
|
9701
|
-
<hm-icon shape="times" />
|
|
9702
|
-
</button>
|
|
9703
|
-
</div>
|
|
9704
|
-
}
|
|
9705
|
-
<div #screen class="hm-terminal__screen"></div>
|
|
9676
|
+
}, template: `
|
|
9677
|
+
<span class="hm-terminal__instructions" [id]="id + '-instructions'">{{ text.terminal.instructions }}</span>
|
|
9678
|
+
@if (searchOpen()) {
|
|
9679
|
+
<div class="hm-terminal__search" role="search" [attr.aria-label]="text.search.label">
|
|
9680
|
+
<input
|
|
9681
|
+
#searchInput
|
|
9682
|
+
class="hm-terminal__search-input"
|
|
9683
|
+
type="search"
|
|
9684
|
+
[attr.aria-label]="text.search.label"
|
|
9685
|
+
[placeholder]="text.search.placeholder"
|
|
9686
|
+
[value]="query()"
|
|
9687
|
+
(input)="onQuery($any($event.target).value)"
|
|
9688
|
+
(keydown)="onSearchKeydown($event)"
|
|
9689
|
+
/>
|
|
9690
|
+
<span class="hm-terminal__search-status" aria-live="polite">{{ status() }}</span>
|
|
9691
|
+
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="caseSensitive()" [attr.aria-label]="text.search.caseSensitive" [title]="text.search.caseSensitive" (click)="toggle('case')">{{ text.search.caseSensitiveGlyph }}</button>
|
|
9692
|
+
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="wholeWord()" [attr.aria-label]="text.search.wholeWord" [title]="text.search.wholeWord" (click)="toggle('word')">{{ text.search.wholeWordGlyph }}</button>
|
|
9693
|
+
<button type="button" class="hm-terminal__search-toggle" [attr.aria-pressed]="regex()" [attr.aria-label]="text.search.regex" [title]="text.search.regex" (click)="toggle('regex')">{{ text.search.regexGlyph }}</button>
|
|
9694
|
+
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.previous" [title]="text.search.previous" (click)="findPrevious()">
|
|
9695
|
+
<hm-icon shape="angle" direction="up" />
|
|
9696
|
+
</button>
|
|
9697
|
+
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.next" [title]="text.search.next" (click)="findNext()">
|
|
9698
|
+
<hm-icon shape="angle" direction="down" />
|
|
9699
|
+
</button>
|
|
9700
|
+
<button type="button" class="hm-terminal__search-button" [attr.aria-label]="text.search.close" [title]="text.search.close" (click)="closeSearch()">
|
|
9701
|
+
<hm-icon shape="times" />
|
|
9702
|
+
</button>
|
|
9703
|
+
</div>
|
|
9704
|
+
}
|
|
9705
|
+
<div #screen class="hm-terminal__screen"></div>
|
|
9706
9706
|
`, styles: [":host{position:relative;display:block;box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:8rem;block-size:100%;padding:var(--hm-space-xs);background:var(--hm-terminal-bg);color:var(--hm-terminal-text);border:1px solid var(--hm-terminal-border);border-radius:var(--hm-radius);overflow:hidden}:host(:focus-within){outline:2px solid var(--hm-focus-color);outline-offset:1px}.hm-terminal__screen{position:relative;block-size:100%;inline-size:100%}.hm-terminal__instructions{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.hm-terminal__search{position:absolute;inset-block-start:var(--hm-space-xs);inset-inline-end:var(--hm-space-lg);z-index:2;display:flex;align-items:center;gap:var(--hm-space-xxxs);padding:var(--hm-space-xxxs) var(--hm-space-xs);background:var(--hm-surface-raised);color:var(--hm-text);border:1px solid var(--hm-border);border-radius:var(--hm-radius-control);box-shadow:var(--hm-shadow-overlay);font-size:var(--hm-font-size-sm)}.hm-terminal__search-input{inline-size:12rem;max-inline-size:40vw;block-size:var(--hm-control-height-dense);padding-inline:var(--hm-space-xs);font:inherit;color:inherit;background:var(--hm-surface);border:1px solid var(--hm-border);border-radius:var(--hm-radius-micro)}.hm-terminal__search-input:focus-visible,.hm-terminal__search-button:focus-visible,.hm-terminal__search-toggle:focus-visible{outline:2px solid var(--hm-focus-color);outline-offset:1px}.hm-terminal__search-status{min-inline-size:5.5rem;color:var(--hm-muted);white-space:nowrap;text-align:center}.hm-terminal__search-button,.hm-terminal__search-toggle{display:inline-grid;place-items:center;min-inline-size:var(--hm-control-height-dense);block-size:var(--hm-control-height-dense);padding:0 var(--hm-space-xxxs);font:inherit;font-family:var(--hm-terminal-font-family);color:inherit;background:transparent;border:1px solid transparent;border-radius:var(--hm-radius-micro);cursor:pointer}.hm-terminal__search-button:hover,.hm-terminal__search-toggle:hover{background:var(--hm-surface-muted)}.hm-terminal__search-toggle[aria-pressed=true]{border-color:var(--hm-accent);color:var(--hm-accent)}@media(forced-colors:active){.hm-terminal__search-toggle[aria-pressed=true]{border-color:Highlight}}\n"] }]
|
|
9707
9707
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], scrollback: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollback", required: false }] }], cursorStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursorStyle", required: false }] }], cursorBlink: [{ type: i0.Input, args: [{ isSignal: true, alias: "cursorBlink", required: false }] }], convertEol: [{ type: i0.Input, args: [{ isSignal: true, alias: "convertEol", required: false }] }], disableStdin: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableStdin", required: false }] }], screenReaderMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "screenReaderMode", required: false }] }], fontSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontSize", required: false }] }], lineHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineHeight", required: false }] }], autoFit: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFit", required: false }] }], webLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "webLinks", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], data: [{ type: i0.Output, args: ["data"] }], binary: [{ type: i0.Output, args: ["binary"] }], resized: [{ type: i0.Output, args: ["resized"] }], titleChange: [{ type: i0.Output, args: ["titleChange"] }], bell: [{ type: i0.Output, args: ["bell"] }], ready: [{ type: i0.Output, args: ["ready"] }], screen: [{ type: i0.ViewChild, args: ['screen', { isSignal: true }] }], searchInput: [{ type: i0.ViewChild, args: ['searchInput', { isSignal: true }] }] } });
|
|
9708
9708
|
|