@gravionlabs/helix-ui 22.5.1 → 22.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/core.css +128 -6
- package/fesm2022/gravionlabs-helix-ui-chart.mjs +5 -28
- package/fesm2022/gravionlabs-helix-ui-chart.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-ui.mjs +706 -2462
- package/fesm2022/gravionlabs-helix-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +134 -16
- package/tokens.css +1 -0
- package/types/gravionlabs-helix-ui.d.ts +90 -1
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -1454,15 +1454,11 @@
|
|
|
1454
1454
|
-webkit-mask: var(--hx-check) center/contain no-repeat;
|
|
1455
1455
|
transform: scale(0);
|
|
1456
1456
|
transition: transform var(--h-checkbox-transition-duration);
|
|
1457
|
-
--hx-check: url(
|
|
1458
|
-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7.5 2.8 2.8L11 4.5'/%3E%3C/svg%3E"
|
|
1459
|
-
);
|
|
1457
|
+
--hx-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7.5 2.8 2.8L11 4.5'/%3E%3C/svg%3E");
|
|
1460
1458
|
}
|
|
1461
1459
|
|
|
1462
1460
|
.hx-checkbox:indeterminate::before {
|
|
1463
|
-
--hx-check: url(
|
|
1464
|
-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 7h8'/%3E%3C/svg%3E"
|
|
1465
|
-
);
|
|
1461
|
+
--hx-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 7h8'/%3E%3C/svg%3E");
|
|
1466
1462
|
}
|
|
1467
1463
|
|
|
1468
1464
|
.hx-checkbox:checked,
|
|
@@ -3542,7 +3538,7 @@
|
|
|
3542
3538
|
display: flex;
|
|
3543
3539
|
align-items: center;
|
|
3544
3540
|
justify-content: center;
|
|
3545
|
-
background:
|
|
3541
|
+
background: black;
|
|
3546
3542
|
outline-color: transparent;
|
|
3547
3543
|
}
|
|
3548
3544
|
|
|
@@ -3827,7 +3823,7 @@
|
|
|
3827
3823
|
|
|
3828
3824
|
/* full screen: the box fills the dialog pane over a dark backdrop */
|
|
3829
3825
|
.hx-galleria-backdrop {
|
|
3830
|
-
background:
|
|
3826
|
+
background: color-mix(in srgb, black 90%, transparent);
|
|
3831
3827
|
}
|
|
3832
3828
|
|
|
3833
3829
|
.hx-galleria-panel {
|
|
@@ -4032,7 +4028,7 @@
|
|
|
4032
4028
|
|
|
4033
4029
|
/* the preview overlay */
|
|
4034
4030
|
.hx-image-backdrop {
|
|
4035
|
-
background:
|
|
4031
|
+
background: color-mix(in srgb, black 90%, transparent);
|
|
4036
4032
|
}
|
|
4037
4033
|
|
|
4038
4034
|
.hx-image-panel {
|
|
@@ -4066,10 +4062,7 @@
|
|
|
4066
4062
|
|
|
4067
4063
|
.hx-image-toolbar {
|
|
4068
4064
|
position: absolute;
|
|
4069
|
-
|
|
4070
|
-
right: var(--h-image-toolbar-position-right);
|
|
4071
|
-
bottom: var(--h-image-toolbar-position-bottom);
|
|
4072
|
-
left: var(--h-image-toolbar-position-left);
|
|
4065
|
+
inset: var(--h-image-toolbar-position-top) var(--h-image-toolbar-position-right) var(--h-image-toolbar-position-bottom) var(--h-image-toolbar-position-left);
|
|
4073
4066
|
z-index: 1;
|
|
4074
4067
|
display: flex;
|
|
4075
4068
|
gap: var(--h-image-toolbar-gap);
|
|
@@ -4464,6 +4457,67 @@
|
|
|
4464
4457
|
resize: none;
|
|
4465
4458
|
}
|
|
4466
4459
|
|
|
4460
|
+
/* kbd */
|
|
4461
|
+
/*
|
|
4462
|
+
* Key caps: `hx-kbd` (one `.hx-kbd-key` per key), coloured by the `--h-kbd-*` tokens. Inside a tooltip bubble the
|
|
4463
|
+
* caps read the `--h-kbd-tooltip-*` tokens, because the bubble is dark in both themes.
|
|
4464
|
+
*/
|
|
4465
|
+
.hx-kbd {
|
|
4466
|
+
--hx-kbd-height: var(--h-kbd-height);
|
|
4467
|
+
--hx-kbd-min-width: var(--h-kbd-min-width);
|
|
4468
|
+
--hx-kbd-padding-x: var(--h-kbd-padding-x);
|
|
4469
|
+
--hx-kbd-font-size: var(--h-kbd-font-size);
|
|
4470
|
+
--hx-kbd-gap: var(--h-kbd-gap);
|
|
4471
|
+
--hx-kbd-background: var(--h-kbd-background);
|
|
4472
|
+
--hx-kbd-color: var(--h-kbd-color);
|
|
4473
|
+
--hx-kbd-border-color: var(--h-kbd-border-color);
|
|
4474
|
+
--hx-kbd-separator-color: var(--h-kbd-separator-color);
|
|
4475
|
+
display: inline-flex;
|
|
4476
|
+
align-items: center;
|
|
4477
|
+
gap: var(--hx-kbd-gap);
|
|
4478
|
+
vertical-align: middle;
|
|
4479
|
+
white-space: nowrap;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
.hx-kbd-sm {
|
|
4483
|
+
--hx-kbd-height: var(--h-kbd-sm-height);
|
|
4484
|
+
--hx-kbd-min-width: var(--h-kbd-sm-min-width);
|
|
4485
|
+
--hx-kbd-padding-x: var(--h-kbd-sm-padding-x);
|
|
4486
|
+
--hx-kbd-font-size: var(--h-kbd-sm-font-size);
|
|
4487
|
+
--hx-kbd-gap: var(--h-kbd-sm-gap);
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
.hx-kbd-key {
|
|
4491
|
+
display: inline-flex;
|
|
4492
|
+
align-items: center;
|
|
4493
|
+
justify-content: center;
|
|
4494
|
+
box-sizing: border-box;
|
|
4495
|
+
min-width: var(--hx-kbd-min-width);
|
|
4496
|
+
height: var(--hx-kbd-height);
|
|
4497
|
+
padding: 0 var(--hx-kbd-padding-x);
|
|
4498
|
+
border: var(--h-kbd-border-width) solid var(--hx-kbd-border-color);
|
|
4499
|
+
border-radius: var(--h-kbd-border-radius);
|
|
4500
|
+
background: var(--hx-kbd-background);
|
|
4501
|
+
color: var(--hx-kbd-color);
|
|
4502
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
4503
|
+
font-size: var(--hx-kbd-font-size);
|
|
4504
|
+
line-height: 1;
|
|
4505
|
+
}
|
|
4506
|
+
|
|
4507
|
+
.hx-kbd-separator {
|
|
4508
|
+
color: var(--hx-kbd-separator-color);
|
|
4509
|
+
font-size: var(--hx-kbd-font-size);
|
|
4510
|
+
line-height: 1;
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4513
|
+
.hx-tooltip .hx-kbd {
|
|
4514
|
+
--hx-kbd-background: var(--h-kbd-tooltip-background);
|
|
4515
|
+
--hx-kbd-color: var(--h-kbd-tooltip-color);
|
|
4516
|
+
--hx-kbd-border-color: var(--h-kbd-tooltip-border-color);
|
|
4517
|
+
--hx-kbd-separator-color: var(--h-kbd-tooltip-separator-color);
|
|
4518
|
+
margin-inline-start: 0.5rem;
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4467
4521
|
/* listbox */
|
|
4468
4522
|
/*
|
|
4469
4523
|
* Listbox: `<hx-listbox>`. An inline list of options in a bordered box from the `--h-listbox-*` tokens, with an
|
|
@@ -6633,8 +6687,7 @@
|
|
|
6633
6687
|
position: absolute;
|
|
6634
6688
|
top: 0;
|
|
6635
6689
|
bottom: 0;
|
|
6636
|
-
inset-inline
|
|
6637
|
-
inset-inline-end: calc(100% - var(--hx-slider-end, 0%));
|
|
6690
|
+
inset-inline: var(--hx-slider-start, 0%) calc(100% - var(--hx-slider-end, 0%));
|
|
6638
6691
|
border-radius: inherit;
|
|
6639
6692
|
background: var(--h-slider-range-background);
|
|
6640
6693
|
}
|
|
@@ -6971,7 +7024,7 @@
|
|
|
6971
7024
|
display: none;
|
|
6972
7025
|
}
|
|
6973
7026
|
|
|
6974
|
-
@media (
|
|
7027
|
+
@media (width <= 40rem) {
|
|
6975
7028
|
.hx-step-title {
|
|
6976
7029
|
display: none;
|
|
6977
7030
|
}
|
|
@@ -7194,6 +7247,45 @@
|
|
|
7194
7247
|
background: var(--h-tabbar-unread-color);
|
|
7195
7248
|
}
|
|
7196
7249
|
|
|
7250
|
+
/* The close button and the dot of unsaved changes share one slot, so the tab keeps its width. */
|
|
7251
|
+
.hx-tab-bar-slot {
|
|
7252
|
+
display: inline-grid;
|
|
7253
|
+
flex: none;
|
|
7254
|
+
place-items: center;
|
|
7255
|
+
width: var(--h-tabbar-close-size);
|
|
7256
|
+
height: var(--h-tabbar-close-size);
|
|
7257
|
+
}
|
|
7258
|
+
|
|
7259
|
+
.hx-tab-bar-slot > * {
|
|
7260
|
+
grid-area: 1/1;
|
|
7261
|
+
}
|
|
7262
|
+
|
|
7263
|
+
.hx-tab-bar-modified {
|
|
7264
|
+
width: 0.5rem;
|
|
7265
|
+
height: 0.5rem;
|
|
7266
|
+
border-radius: 50%;
|
|
7267
|
+
background: currentcolor;
|
|
7268
|
+
}
|
|
7269
|
+
|
|
7270
|
+
.hx-tab-bar-tab-modified:hover .hx-tab-bar-modified,
|
|
7271
|
+
.hx-tab-bar-tab-modified:focus-visible .hx-tab-bar-modified {
|
|
7272
|
+
visibility: hidden;
|
|
7273
|
+
}
|
|
7274
|
+
|
|
7275
|
+
/* a tab with unsaved changes shows the close button only on hover or focus, also when active */
|
|
7276
|
+
.hx-tab-bar-tab-modified.hx-tab-bar-tab-active .hx-tab-bar-close {
|
|
7277
|
+
visibility: hidden;
|
|
7278
|
+
}
|
|
7279
|
+
|
|
7280
|
+
.hx-tab-bar-tab-modified.hx-tab-bar-tab-active:hover .hx-tab-bar-close,
|
|
7281
|
+
.hx-tab-bar-tab-modified.hx-tab-bar-tab-active:focus-visible .hx-tab-bar-close {
|
|
7282
|
+
visibility: visible;
|
|
7283
|
+
}
|
|
7284
|
+
|
|
7285
|
+
.hx-tab-bar-tab-missing .hx-tab-bar-label {
|
|
7286
|
+
text-decoration: line-through;
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7197
7289
|
.hx-tab-bar-close,
|
|
7198
7290
|
.hx-tab-bar-all {
|
|
7199
7291
|
display: inline-grid;
|
|
@@ -8255,6 +8347,31 @@
|
|
|
8255
8347
|
font-weight: var(--h-toast-detail-font-weight);
|
|
8256
8348
|
}
|
|
8257
8349
|
|
|
8350
|
+
.hx-toast-action {
|
|
8351
|
+
flex: none;
|
|
8352
|
+
padding: 0.25rem 0.5rem;
|
|
8353
|
+
border: 0;
|
|
8354
|
+
border-radius: var(--h-toast-close-button-border-radius);
|
|
8355
|
+
background: transparent;
|
|
8356
|
+
color: inherit;
|
|
8357
|
+
font: inherit;
|
|
8358
|
+
font-weight: 600;
|
|
8359
|
+
text-decoration: underline;
|
|
8360
|
+
cursor: pointer;
|
|
8361
|
+
outline: 0 none;
|
|
8362
|
+
transition: background var(--h-toast-transition-duration);
|
|
8363
|
+
}
|
|
8364
|
+
|
|
8365
|
+
.hx-toast-action:hover {
|
|
8366
|
+
background: var(--hx-toast-hover);
|
|
8367
|
+
}
|
|
8368
|
+
|
|
8369
|
+
.hx-toast-action:focus-visible {
|
|
8370
|
+
outline: var(--h-toast-close-button-focus-ring-width) var(--h-toast-close-button-focus-ring-style) var(--hx-toast-ring);
|
|
8371
|
+
outline-offset: var(--h-toast-close-button-focus-ring-offset);
|
|
8372
|
+
box-shadow: var(--hx-toast-ring-shadow);
|
|
8373
|
+
}
|
|
8374
|
+
|
|
8258
8375
|
.hx-toast-close {
|
|
8259
8376
|
display: inline-flex;
|
|
8260
8377
|
flex: none;
|
|
@@ -8296,6 +8413,7 @@
|
|
|
8296
8413
|
.hx-toast-item {
|
|
8297
8414
|
animation: none;
|
|
8298
8415
|
}
|
|
8416
|
+
.hx-toast-action,
|
|
8299
8417
|
.hx-toast-close {
|
|
8300
8418
|
transition: none;
|
|
8301
8419
|
}
|
package/tokens.css
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
:root,:host{--h-inputgroup-addon-background:var(--h-form-field-background);--h-inputgroup-addon-border-color:var(--h-form-field-border-color);--h-inputgroup-addon-color:var(--h-form-field-icon-color);--h-inputgroup-addon-border-radius:var(--h-form-field-border-radius);--h-inputgroup-addon-padding:0.5rem;--h-inputgroup-addon-min-width:2.5rem;}
|
|
31
31
|
:root,:host{--h-inputnumber-button-width:2.5rem;--h-inputnumber-button-border-radius:var(--h-form-field-border-radius);--h-inputnumber-button-vertical-padding:var(--h-form-field-padding-y);--h-inputnumber-transition-duration:var(--h-transition-duration);--h-inputnumber-button-background:transparent;--h-inputnumber-button-hover-background:var(--h-surface-100);--h-inputnumber-button-active-background:var(--h-surface-200);--h-inputnumber-button-border-color:var(--h-form-field-border-color);--h-inputnumber-button-hover-border-color:var(--h-form-field-border-color);--h-inputnumber-button-active-border-color:var(--h-form-field-border-color);--h-inputnumber-button-color:var(--h-surface-400);--h-inputnumber-button-hover-color:var(--h-surface-500);--h-inputnumber-button-active-color:var(--h-surface-600);}.app-dark{--h-inputnumber-button-background:transparent;--h-inputnumber-button-hover-background:var(--h-surface-800);--h-inputnumber-button-active-background:var(--h-surface-700);--h-inputnumber-button-border-color:var(--h-form-field-border-color);--h-inputnumber-button-hover-border-color:var(--h-form-field-border-color);--h-inputnumber-button-active-border-color:var(--h-form-field-border-color);--h-inputnumber-button-color:var(--h-surface-400);--h-inputnumber-button-hover-color:var(--h-surface-300);--h-inputnumber-button-active-color:var(--h-surface-200);}
|
|
32
32
|
:root,:host{--h-textarea-background:var(--h-form-field-background);--h-textarea-disabled-background:var(--h-form-field-disabled-background);--h-textarea-filled-background:var(--h-form-field-filled-background);--h-textarea-filled-hover-background:var(--h-form-field-filled-hover-background);--h-textarea-filled-focus-background:var(--h-form-field-filled-focus-background);--h-textarea-border-color:var(--h-form-field-border-color);--h-textarea-hover-border-color:var(--h-form-field-hover-border-color);--h-textarea-focus-border-color:var(--h-form-field-focus-border-color);--h-textarea-invalid-border-color:var(--h-form-field-invalid-border-color);--h-textarea-color:var(--h-form-field-color);--h-textarea-disabled-color:var(--h-form-field-disabled-color);--h-textarea-placeholder-color:var(--h-form-field-placeholder-color);--h-textarea-invalid-placeholder-color:var(--h-form-field-invalid-placeholder-color);--h-textarea-shadow:var(--h-form-field-shadow);--h-textarea-padding-x:var(--h-form-field-padding-x);--h-textarea-padding-y:var(--h-form-field-padding-y);--h-textarea-border-radius:var(--h-form-field-border-radius);--h-textarea-transition-duration:var(--h-form-field-transition-duration);--h-textarea-lg-font-size:var(--h-form-field-lg-font-size);--h-textarea-lg-padding-x:var(--h-form-field-lg-padding-x);--h-textarea-lg-padding-y:var(--h-form-field-lg-padding-y);--h-textarea-sm-font-size:var(--h-form-field-sm-font-size);--h-textarea-sm-padding-x:var(--h-form-field-sm-padding-x);--h-textarea-sm-padding-y:var(--h-form-field-sm-padding-y);--h-textarea-focus-ring-width:var(--h-form-field-focus-ring-width);--h-textarea-focus-ring-style:var(--h-form-field-focus-ring-style);--h-textarea-focus-ring-color:var(--h-form-field-focus-ring-color);--h-textarea-focus-ring-offset:var(--h-form-field-focus-ring-offset);--h-textarea-focus-ring-shadow:var(--h-form-field-focus-ring-shadow);}
|
|
33
|
+
:root,:host{--h-kbd-gap:0.25rem;--h-kbd-border-radius:var(--h-border-radius-sm);--h-kbd-border-width:1px;--h-kbd-padding-x:0.375rem;--h-kbd-min-width:1.5rem;--h-kbd-height:1.5rem;--h-kbd-font-size:0.75rem;--h-kbd-sm-gap:0.125rem;--h-kbd-sm-min-width:1.25rem;--h-kbd-sm-height:1.25rem;--h-kbd-sm-padding-x:0.25rem;--h-kbd-sm-font-size:0.6875rem;--h-kbd-tooltip-background:var(--h-surface-600);--h-kbd-tooltip-color:var(--h-surface-0);--h-kbd-tooltip-border-color:var(--h-surface-400);--h-kbd-tooltip-separator-color:var(--h-surface-300);--h-kbd-background:var(--h-surface-50);--h-kbd-color:var(--h-surface-700);--h-kbd-border-color:var(--h-surface-500);--h-kbd-separator-color:var(--h-surface-500);}.app-dark{--h-kbd-tooltip-background:var(--h-surface-600);--h-kbd-tooltip-color:var(--h-surface-0);--h-kbd-tooltip-border-color:var(--h-surface-400);--h-kbd-tooltip-separator-color:var(--h-surface-300);--h-kbd-background:var(--h-surface-800);--h-kbd-color:var(--h-surface-0);--h-kbd-border-color:var(--h-surface-400);--h-kbd-separator-color:var(--h-surface-400);}
|
|
33
34
|
:root,:host{--h-listbox-empty-message-padding:var(--h-list-option-padding);--h-listbox-checkmark-color:var(--h-list-option-color);--h-listbox-checkmark-gutter-start:-0.375rem;--h-listbox-checkmark-gutter-end:0.375rem;--h-listbox-option-group-background:var(--h-list-option-group-background);--h-listbox-option-group-color:var(--h-list-option-group-color);--h-listbox-option-group-font-weight:var(--h-list-option-group-font-weight);--h-listbox-option-group-padding:var(--h-list-option-group-padding);--h-listbox-option-focus-background:var(--h-list-option-focus-background);--h-listbox-option-selected-background:var(--h-list-option-selected-background);--h-listbox-option-selected-focus-background:var(--h-list-option-selected-focus-background);--h-listbox-option-color:var(--h-list-option-color);--h-listbox-option-focus-color:var(--h-list-option-focus-color);--h-listbox-option-selected-color:var(--h-list-option-selected-color);--h-listbox-option-selected-focus-color:var(--h-list-option-selected-focus-color);--h-listbox-option-padding:var(--h-list-option-padding);--h-listbox-option-border-radius:var(--h-list-option-border-radius);--h-listbox-list-padding:var(--h-list-padding);--h-listbox-list-gap:var(--h-list-gap);--h-listbox-list-header-padding:var(--h-list-header-padding);--h-listbox-background:var(--h-form-field-background);--h-listbox-disabled-background:var(--h-form-field-disabled-background);--h-listbox-border-color:var(--h-form-field-border-color);--h-listbox-invalid-border-color:var(--h-form-field-invalid-border-color);--h-listbox-color:var(--h-form-field-color);--h-listbox-disabled-color:var(--h-form-field-disabled-color);--h-listbox-shadow:var(--h-form-field-shadow);--h-listbox-border-radius:var(--h-form-field-border-radius);--h-listbox-transition-duration:var(--h-form-field-transition-duration);--h-listbox-option-striped-background:var(--h-surface-50);}.app-dark{--h-listbox-option-striped-background:var(--h-surface-900);}
|
|
34
35
|
:root,:host{--h-menu-separator-border-color:var(--h-content-border-color);--h-menu-submenu-label-padding:var(--h-navigation-submenu-label-padding);--h-menu-submenu-label-font-weight:var(--h-navigation-submenu-label-font-weight);--h-menu-submenu-label-background:var(--h-navigation-submenu-label-background);--h-menu-submenu-label-color:var(--h-navigation-submenu-label-color);--h-menu-item-focus-background:var(--h-navigation-item-focus-background);--h-menu-item-color:var(--h-navigation-item-color);--h-menu-item-focus-color:var(--h-navigation-item-focus-color);--h-menu-item-padding:var(--h-navigation-item-padding);--h-menu-item-border-radius:var(--h-navigation-item-border-radius);--h-menu-item-gap:var(--h-navigation-item-gap);--h-menu-item-icon-color:var(--h-navigation-item-icon-color);--h-menu-item-icon-focus-color:var(--h-navigation-item-icon-focus-color);--h-menu-list-padding:var(--h-navigation-list-padding);--h-menu-list-gap:var(--h-navigation-list-gap);--h-menu-background:var(--h-content-background);--h-menu-border-color:var(--h-content-border-color);--h-menu-color:var(--h-content-color);--h-menu-border-radius:var(--h-content-border-radius);--h-menu-shadow:var(--h-overlay-navigation-shadow);--h-menu-transition-duration:var(--h-transition-duration);}
|
|
35
36
|
:root,:host{--h-tieredmenu-separator-border-color:var(--h-content-border-color);--h-tieredmenu-submenu-icon-size:var(--h-navigation-submenu-icon-size);--h-tieredmenu-submenu-icon-color:var(--h-navigation-submenu-icon-color);--h-tieredmenu-submenu-icon-focus-color:var(--h-navigation-submenu-icon-focus-color);--h-tieredmenu-submenu-icon-active-color:var(--h-navigation-submenu-icon-active-color);--h-tieredmenu-submenu-mobile-indent:1rem;--h-tieredmenu-item-focus-background:var(--h-navigation-item-focus-background);--h-tieredmenu-item-active-background:var(--h-navigation-item-active-background);--h-tieredmenu-item-color:var(--h-navigation-item-color);--h-tieredmenu-item-focus-color:var(--h-navigation-item-focus-color);--h-tieredmenu-item-active-color:var(--h-navigation-item-active-color);--h-tieredmenu-item-padding:var(--h-navigation-item-padding);--h-tieredmenu-item-border-radius:var(--h-navigation-item-border-radius);--h-tieredmenu-item-gap:var(--h-navigation-item-gap);--h-tieredmenu-item-icon-color:var(--h-navigation-item-icon-color);--h-tieredmenu-item-icon-focus-color:var(--h-navigation-item-icon-focus-color);--h-tieredmenu-item-icon-active-color:var(--h-navigation-item-icon-active-color);--h-tieredmenu-list-padding:var(--h-navigation-list-padding);--h-tieredmenu-list-gap:var(--h-navigation-list-gap);--h-tieredmenu-background:var(--h-content-background);--h-tieredmenu-border-color:var(--h-content-border-color);--h-tieredmenu-color:var(--h-content-color);--h-tieredmenu-border-radius:var(--h-content-border-radius);--h-tieredmenu-shadow:var(--h-overlay-navigation-shadow);--h-tieredmenu-transition-duration:var(--h-transition-duration);}
|
|
@@ -4611,6 +4611,47 @@ export declare class HxInputNumber implements ControlValueAccessor, FormValueCon
|
|
|
4611
4611
|
"touch": "touch";
|
|
4612
4612
|
}, never, never, true, never>;
|
|
4613
4613
|
}
|
|
4614
|
+
type HxKbdSize = 'md' | 'sm';
|
|
4615
|
+
/** `'+'` joins the caps with a plus sign; `'none'` puts them side by side. */
|
|
4616
|
+
type HxKbdSeparator = '+' | 'none';
|
|
4617
|
+
/**
|
|
4618
|
+
* A keyboard shortcut as key caps, one `<kbd>` per key. The component does not translate or rename keys: pass the
|
|
4619
|
+
* labels for the platform of the user (`'⌘'` on macOS, `'Ctrl'` elsewhere).
|
|
4620
|
+
*
|
|
4621
|
+
* The caps are text, so a screen reader reads the shortcut. Announcing it on the control that runs it is the
|
|
4622
|
+
* caller's job: set `aria-keyshortcuts` on that host (for example `aria-keyshortcuts="Control+Shift+P"`).
|
|
4623
|
+
*
|
|
4624
|
+
* ```html
|
|
4625
|
+
* <hx-kbd [keys]="['Ctrl', 'Shift', 'P']" />
|
|
4626
|
+
* <hx-kbd [keys]="['⌘', 'K']" size="sm" separator="none" />
|
|
4627
|
+
* ```
|
|
4628
|
+
*/
|
|
4629
|
+
export declare class HxKbd {
|
|
4630
|
+
/** The key labels, in order. */
|
|
4631
|
+
readonly keys: import("@angular/core").InputSignal<readonly string[]>;
|
|
4632
|
+
readonly size: import("@angular/core").InputSignal<HxKbdSize>;
|
|
4633
|
+
/** Default: none on macOS, `'+'` elsewhere. */
|
|
4634
|
+
readonly separator: import("@angular/core").InputSignal<HxKbdSeparator | undefined>;
|
|
4635
|
+
protected readonly plus: import("@angular/core").Signal<boolean>;
|
|
4636
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HxKbd, never>;
|
|
4637
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HxKbd, "hx-kbd", never, {
|
|
4638
|
+
"keys": {
|
|
4639
|
+
"alias": "keys";
|
|
4640
|
+
"required": false;
|
|
4641
|
+
"isSignal": true;
|
|
4642
|
+
};
|
|
4643
|
+
"size": {
|
|
4644
|
+
"alias": "size";
|
|
4645
|
+
"required": false;
|
|
4646
|
+
"isSignal": true;
|
|
4647
|
+
};
|
|
4648
|
+
"separator": {
|
|
4649
|
+
"alias": "separator";
|
|
4650
|
+
"required": false;
|
|
4651
|
+
"isSignal": true;
|
|
4652
|
+
};
|
|
4653
|
+
}, {}, never, never, true, never>;
|
|
4654
|
+
}
|
|
4614
4655
|
/**
|
|
4615
4656
|
* An inline list of options, single or `multiple`, on the CDK listbox (`aria-multiselectable`, active
|
|
4616
4657
|
* descendant, typeahead, arrows, Home, End). With `filter` a text field above the list narrows the options by
|
|
@@ -6265,6 +6306,10 @@ interface HxTabBarItem {
|
|
|
6265
6306
|
attention?: boolean;
|
|
6266
6307
|
/** Shows an unread mark. */
|
|
6267
6308
|
unread?: boolean;
|
|
6309
|
+
/** Unsaved changes: a dot in the place of the close button (hovering the tab shows the button). */
|
|
6310
|
+
modified?: boolean;
|
|
6311
|
+
/** The file is gone: the label is struck through and the tab has the tooltip `missingTitle`. */
|
|
6312
|
+
missing?: boolean;
|
|
6268
6313
|
}
|
|
6269
6314
|
/** An entry of the tab context menu; `action` is reported back with the tab id by `menuAction`. */
|
|
6270
6315
|
interface HxTabBarMenuItem {
|
|
@@ -6314,6 +6359,9 @@ interface HxTabBarReceive {
|
|
|
6314
6359
|
* (first/last) tab and select it, Delete or Ctrl+W close the focused tab, the Menu key or Shift+F10 open its
|
|
6315
6360
|
* context menu. A middle click closes a tab.
|
|
6316
6361
|
*
|
|
6362
|
+
* Marks: `modified` shows a dot in the slot of the close button (hover or focus shows the button; the width never
|
|
6363
|
+
* changes), `missing` strikes the label through; both also show in the all-tabs menu.
|
|
6364
|
+
*
|
|
6317
6365
|
* Content: `<ng-template #tabContent let-tab>` renders extra content after the label of every tab; projected content
|
|
6318
6366
|
* sits at the right end of the bar.
|
|
6319
6367
|
*/
|
|
@@ -6330,6 +6378,10 @@ export declare class HxTabBar {
|
|
|
6330
6378
|
readonly menu: import("@angular/core").InputSignal<readonly HxTabBarMenuItem[]>;
|
|
6331
6379
|
/** A button at the right end, while the tabs overflow, opens a menu of every tab. */
|
|
6332
6380
|
readonly allTabsButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
6381
|
+
/** Accessible text of the dot of a tab with `modified`. */
|
|
6382
|
+
readonly modifiedLabel: import("@angular/core").InputSignal<string>;
|
|
6383
|
+
/** Tooltip (and text in the all-tabs menu) of a tab with `missing`. */
|
|
6384
|
+
readonly missingTitle: import("@angular/core").InputSignal<string>;
|
|
6333
6385
|
/** The close button or the middle click of a tab, or Delete / Ctrl+W on it. */
|
|
6334
6386
|
readonly closed: import("@angular/core").OutputEmitterRef<string>;
|
|
6335
6387
|
/** Double click on a tab. */
|
|
@@ -6360,6 +6412,8 @@ export declare class HxTabBar {
|
|
|
6360
6412
|
protected readonly allTabsModel: Signal<HxMenuItem[]>;
|
|
6361
6413
|
constructor();
|
|
6362
6414
|
protected tabName(tab: HxTabBarItem): string;
|
|
6415
|
+
private menuBadge;
|
|
6416
|
+
protected tooltip(tab: HxTabBarItem): string;
|
|
6363
6417
|
protected select(id: string): void;
|
|
6364
6418
|
private tabElements;
|
|
6365
6419
|
private revealActive;
|
|
@@ -6409,6 +6463,16 @@ export declare class HxTabBar {
|
|
|
6409
6463
|
"required": false;
|
|
6410
6464
|
"isSignal": true;
|
|
6411
6465
|
};
|
|
6466
|
+
"modifiedLabel": {
|
|
6467
|
+
"alias": "modifiedLabel";
|
|
6468
|
+
"required": false;
|
|
6469
|
+
"isSignal": true;
|
|
6470
|
+
};
|
|
6471
|
+
"missingTitle": {
|
|
6472
|
+
"alias": "missingTitle";
|
|
6473
|
+
"required": false;
|
|
6474
|
+
"isSignal": true;
|
|
6475
|
+
};
|
|
6412
6476
|
}, {
|
|
6413
6477
|
"value": "valueChange";
|
|
6414
6478
|
"closed": "closed";
|
|
@@ -6926,6 +6990,11 @@ interface HxToastMessageInput {
|
|
|
6926
6990
|
closable?: boolean;
|
|
6927
6991
|
/** Only a `<hx-toast key="…">` with the same key shows it. */
|
|
6928
6992
|
key?: string;
|
|
6993
|
+
/** One text button before the close button, e.g. Undo. Pressing it runs `run` once and closes the toast. */
|
|
6994
|
+
action?: {
|
|
6995
|
+
label: string;
|
|
6996
|
+
run: () => void;
|
|
6997
|
+
};
|
|
6929
6998
|
}
|
|
6930
6999
|
interface HxToastMessage extends HxToastMessageInput {
|
|
6931
7000
|
readonly id: number;
|
|
@@ -6962,6 +7031,7 @@ export declare class HxToastItem implements OnInit {
|
|
|
6962
7031
|
ngOnInit(): void;
|
|
6963
7032
|
protected pause(): void;
|
|
6964
7033
|
protected resume(): void;
|
|
7034
|
+
protected runAction(): void;
|
|
6965
7035
|
protected close(): void;
|
|
6966
7036
|
static ɵfac: i0.ɵɵFactoryDeclaration<HxToastItem, never>;
|
|
6967
7037
|
static ɵcmp: i0.ɵɵComponentDeclaration<HxToastItem, "hx-toast-item", never, {
|
|
@@ -7137,6 +7207,8 @@ type HxTooltipEvent = 'hover' | 'focus' | 'both';
|
|
|
7137
7207
|
* ```html
|
|
7138
7208
|
* <button hx-button iconOnly aria-label="Add" hx-tooltip="Add item" hxTooltipPosition="right">+</button>
|
|
7139
7209
|
* ```
|
|
7210
|
+
*
|
|
7211
|
+
* `hxTooltipShortcut` adds key caps (`<hx-kbd>`) after the text. Put `aria-keyshortcuts` on the host yourself.
|
|
7140
7212
|
*/
|
|
7141
7213
|
export declare class HxTooltip {
|
|
7142
7214
|
#private;
|
|
@@ -7145,8 +7217,15 @@ export declare class HxTooltip {
|
|
|
7145
7217
|
readonly position: import("@angular/core").InputSignal<HxTooltipPosition>;
|
|
7146
7218
|
readonly event: import("@angular/core").InputSignal<HxTooltipEvent>;
|
|
7147
7219
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
7220
|
+
/** A keyboard shortcut shown as key caps after the text, one entry per key. Not translated. */
|
|
7221
|
+
readonly shortcut: import("@angular/core").InputSignal<readonly string[] | null | undefined>;
|
|
7148
7222
|
/** Milliseconds before it appears. */
|
|
7149
7223
|
readonly showDelay: import("@angular/core").InputSignal<number>;
|
|
7224
|
+
/**
|
|
7225
|
+
* Opens only while the host text is cut off by an ellipsis (`scrollWidth > clientWidth`). Measured when the
|
|
7226
|
+
* tooltip is about to open, not on resize. For file names, tab labels and sidebar rows.
|
|
7227
|
+
*/
|
|
7228
|
+
readonly whenTruncated: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7150
7229
|
protected readonly bubbleId: string;
|
|
7151
7230
|
protected readonly shown: import("@angular/core").WritableSignal<boolean>;
|
|
7152
7231
|
constructor();
|
|
@@ -7177,11 +7256,21 @@ export declare class HxTooltip {
|
|
|
7177
7256
|
"required": false;
|
|
7178
7257
|
"isSignal": true;
|
|
7179
7258
|
};
|
|
7259
|
+
"shortcut": {
|
|
7260
|
+
"alias": "hxTooltipShortcut";
|
|
7261
|
+
"required": false;
|
|
7262
|
+
"isSignal": true;
|
|
7263
|
+
};
|
|
7180
7264
|
"showDelay": {
|
|
7181
7265
|
"alias": "hxTooltipShowDelay";
|
|
7182
7266
|
"required": false;
|
|
7183
7267
|
"isSignal": true;
|
|
7184
7268
|
};
|
|
7269
|
+
"whenTruncated": {
|
|
7270
|
+
"alias": "hxTooltipWhenTruncated";
|
|
7271
|
+
"required": false;
|
|
7272
|
+
"isSignal": true;
|
|
7273
|
+
};
|
|
7185
7274
|
}, {}, never, never, true, never>;
|
|
7186
7275
|
}
|
|
7187
7276
|
/** One node of the tree. Keys must be unique in the whole tree. */
|
|
@@ -7346,4 +7435,4 @@ export declare class HxTree {
|
|
|
7346
7435
|
"nodeCollapse": "nodeCollapse";
|
|
7347
7436
|
}, ["template"], never, true, never>;
|
|
7348
7437
|
}
|
|
7349
|
-
export type { HxAccordionValue, HxAutoCompleteEvent, HxAutoCompleteSize, HxAvatarShape, HxAvatarSize, HxBadgeSeverity, HxBadgeSize, HxBreadcrumbItem, HxBundledPreset, HxButtonSeverity, HxButtonSize, HxButtonVariant, HxCarouselItemContext, HxCarouselOrientation, HxCarouselResponsiveOption, HxCellContext, HxCheckboxSize, HxColumn, HxColumnAlign, HxColumnHeaderContext, HxConfirmation, HxDateMathOptions, HxDateMathUnit, HxDatePickerSelectionMode, HxDatePickerValue, HxDateRangeExpression, HxDateRangePresetId, HxDateRangeQuickSelectValue, HxDateTimePickerValue, HxDateTimeRangePreset, HxDateTimeRangePresetContext, HxDateTimeRangeValue, HxDensity, HxDialogConfig, HxDialogPosition, HxDividerAlign, HxDividerLayout, HxDividerType, HxDrawerPosition, HxFileUploadMode, HxFloatLabelVariant, HxGalleriaItem, HxGalleriaItemContext, HxGalleriaThumbnailsPosition, HxIconPosition, HxInputNumberButtonLayout, HxInputNumberMode, HxInputNumberSize, HxInputNumberVariant, HxInputSize, HxInputVariant, HxLazyLoadEvent, HxMenuItem, HxMenuItemCommandEvent, HxMenuPoint, HxMessageSeverity, HxMessageSize, HxMessageVariant, HxMultiSelectDisplay, HxMultiSelectSize, HxMultiSelectVariant, HxPageEvent, HxPrimaryColor, HxPrimaryScale, HxProgressMode, HxQuickSelectLabels, HxQuickSelectRange, HxRadioSize, HxRowClass, HxSelectButtonSize, HxSelectItem, HxSelectSize, HxSelectVariant, HxSelectionMode, HxSkeletonAnimation, HxSkeletonShape, HxSliderOrientation, HxSliderValue, HxSortFirstOrder, HxSortFunction, HxSortMeta, HxSortMode, HxStepContentContext, HxStepValue, HxSurface, HxTabBarItem, HxTabBarMenuItem, HxTabBarMove, HxTabBarReceive, HxTableColumnsContext, HxTableRowContext, HxTableSize, HxTagSeverity, HxThemeOptions, HxThemePreset, HxTimePickerValue, HxTimelineAlign, HxTimelineContext, HxTimelineLayout, HxToastMessage, HxToastMessageInput, HxToastPosition, HxToastSeverity, HxToggleButtonSize, HxTooltipEvent, HxTooltipPosition, HxTreeFilterMode, HxTreeNode, HxTreeNodeContext, HxTreeNodeEvent, HxTreeSelection, HxTreeSelectionMode };
|
|
7438
|
+
export type { HxAccordionValue, HxAutoCompleteEvent, HxAutoCompleteSize, HxAvatarShape, HxAvatarSize, HxBadgeSeverity, HxBadgeSize, HxBreadcrumbItem, HxBundledPreset, HxButtonSeverity, HxButtonSize, HxButtonVariant, HxCarouselItemContext, HxCarouselOrientation, HxCarouselResponsiveOption, HxCellContext, HxCheckboxSize, HxColumn, HxColumnAlign, HxColumnHeaderContext, HxConfirmation, HxDateMathOptions, HxDateMathUnit, HxDatePickerSelectionMode, HxDatePickerValue, HxDateRangeExpression, HxDateRangePresetId, HxDateRangeQuickSelectValue, HxDateTimePickerValue, HxDateTimeRangePreset, HxDateTimeRangePresetContext, HxDateTimeRangeValue, HxDensity, HxDialogConfig, HxDialogPosition, HxDividerAlign, HxDividerLayout, HxDividerType, HxDrawerPosition, HxFileUploadMode, HxFloatLabelVariant, HxGalleriaItem, HxGalleriaItemContext, HxGalleriaThumbnailsPosition, HxIconPosition, HxInputNumberButtonLayout, HxInputNumberMode, HxInputNumberSize, HxInputNumberVariant, HxInputSize, HxInputVariant, HxKbdSeparator, HxKbdSize, HxLazyLoadEvent, HxMenuItem, HxMenuItemCommandEvent, HxMenuPoint, HxMessageSeverity, HxMessageSize, HxMessageVariant, HxMultiSelectDisplay, HxMultiSelectSize, HxMultiSelectVariant, HxPageEvent, HxPrimaryColor, HxPrimaryScale, HxProgressMode, HxQuickSelectLabels, HxQuickSelectRange, HxRadioSize, HxRowClass, HxSelectButtonSize, HxSelectItem, HxSelectSize, HxSelectVariant, HxSelectionMode, HxSkeletonAnimation, HxSkeletonShape, HxSliderOrientation, HxSliderValue, HxSortFirstOrder, HxSortFunction, HxSortMeta, HxSortMode, HxStepContentContext, HxStepValue, HxSurface, HxTabBarItem, HxTabBarMenuItem, HxTabBarMove, HxTabBarReceive, HxTableColumnsContext, HxTableRowContext, HxTableSize, HxTagSeverity, HxThemeOptions, HxThemePreset, HxTimePickerValue, HxTimelineAlign, HxTimelineContext, HxTimelineLayout, HxToastMessage, HxToastMessageInput, HxToastPosition, HxToastSeverity, HxToggleButtonSize, HxTooltipEvent, HxTooltipPosition, HxTreeFilterMode, HxTreeNode, HxTreeNodeContext, HxTreeNodeEvent, HxTreeSelection, HxTreeSelectionMode };
|