@gravionlabs/helix-ui 22.5.1 → 22.6.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 +2 -25
- package/fesm2022/gravionlabs-helix-ui-chart.mjs.map +1 -1
- package/fesm2022/gravionlabs-helix-ui.mjs +353 -2109
- package/fesm2022/gravionlabs-helix-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +128 -6
- 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,
|
|
@@ -4464,6 +4460,67 @@
|
|
|
4464
4460
|
resize: none;
|
|
4465
4461
|
}
|
|
4466
4462
|
|
|
4463
|
+
/* kbd */
|
|
4464
|
+
/*
|
|
4465
|
+
* Key caps: `hx-kbd` (one `.hx-kbd-key` per key), coloured by the `--h-kbd-*` tokens. Inside a tooltip bubble the
|
|
4466
|
+
* caps read the `--h-kbd-tooltip-*` tokens, because the bubble is dark in both themes.
|
|
4467
|
+
*/
|
|
4468
|
+
.hx-kbd {
|
|
4469
|
+
--hx-kbd-height: var(--h-kbd-height);
|
|
4470
|
+
--hx-kbd-min-width: var(--h-kbd-min-width);
|
|
4471
|
+
--hx-kbd-padding-x: var(--h-kbd-padding-x);
|
|
4472
|
+
--hx-kbd-font-size: var(--h-kbd-font-size);
|
|
4473
|
+
--hx-kbd-gap: var(--h-kbd-gap);
|
|
4474
|
+
--hx-kbd-background: var(--h-kbd-background);
|
|
4475
|
+
--hx-kbd-color: var(--h-kbd-color);
|
|
4476
|
+
--hx-kbd-border-color: var(--h-kbd-border-color);
|
|
4477
|
+
--hx-kbd-separator-color: var(--h-kbd-separator-color);
|
|
4478
|
+
display: inline-flex;
|
|
4479
|
+
align-items: center;
|
|
4480
|
+
gap: var(--hx-kbd-gap);
|
|
4481
|
+
vertical-align: middle;
|
|
4482
|
+
white-space: nowrap;
|
|
4483
|
+
}
|
|
4484
|
+
|
|
4485
|
+
.hx-kbd-sm {
|
|
4486
|
+
--hx-kbd-height: var(--h-kbd-sm-height);
|
|
4487
|
+
--hx-kbd-min-width: var(--h-kbd-sm-min-width);
|
|
4488
|
+
--hx-kbd-padding-x: var(--h-kbd-sm-padding-x);
|
|
4489
|
+
--hx-kbd-font-size: var(--h-kbd-sm-font-size);
|
|
4490
|
+
--hx-kbd-gap: var(--h-kbd-sm-gap);
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
.hx-kbd-key {
|
|
4494
|
+
display: inline-flex;
|
|
4495
|
+
align-items: center;
|
|
4496
|
+
justify-content: center;
|
|
4497
|
+
box-sizing: border-box;
|
|
4498
|
+
min-width: var(--hx-kbd-min-width);
|
|
4499
|
+
height: var(--hx-kbd-height);
|
|
4500
|
+
padding: 0 var(--hx-kbd-padding-x);
|
|
4501
|
+
border: var(--h-kbd-border-width) solid var(--hx-kbd-border-color);
|
|
4502
|
+
border-radius: var(--h-kbd-border-radius);
|
|
4503
|
+
background: var(--hx-kbd-background);
|
|
4504
|
+
color: var(--hx-kbd-color);
|
|
4505
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
4506
|
+
font-size: var(--hx-kbd-font-size);
|
|
4507
|
+
line-height: 1;
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
.hx-kbd-separator {
|
|
4511
|
+
color: var(--hx-kbd-separator-color);
|
|
4512
|
+
font-size: var(--hx-kbd-font-size);
|
|
4513
|
+
line-height: 1;
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
.hx-tooltip .hx-kbd {
|
|
4517
|
+
--hx-kbd-background: var(--h-kbd-tooltip-background);
|
|
4518
|
+
--hx-kbd-color: var(--h-kbd-tooltip-color);
|
|
4519
|
+
--hx-kbd-border-color: var(--h-kbd-tooltip-border-color);
|
|
4520
|
+
--hx-kbd-separator-color: var(--h-kbd-tooltip-separator-color);
|
|
4521
|
+
margin-inline-start: 0.5rem;
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4467
4524
|
/* listbox */
|
|
4468
4525
|
/*
|
|
4469
4526
|
* Listbox: `<hx-listbox>`. An inline list of options in a bordered box from the `--h-listbox-*` tokens, with an
|
|
@@ -7194,6 +7251,45 @@
|
|
|
7194
7251
|
background: var(--h-tabbar-unread-color);
|
|
7195
7252
|
}
|
|
7196
7253
|
|
|
7254
|
+
/* The close button and the dot of unsaved changes share one slot, so the tab keeps its width. */
|
|
7255
|
+
.hx-tab-bar-slot {
|
|
7256
|
+
display: inline-grid;
|
|
7257
|
+
flex: none;
|
|
7258
|
+
place-items: center;
|
|
7259
|
+
width: var(--h-tabbar-close-size);
|
|
7260
|
+
height: var(--h-tabbar-close-size);
|
|
7261
|
+
}
|
|
7262
|
+
|
|
7263
|
+
.hx-tab-bar-slot > * {
|
|
7264
|
+
grid-area: 1/1;
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
.hx-tab-bar-modified {
|
|
7268
|
+
width: 0.5rem;
|
|
7269
|
+
height: 0.5rem;
|
|
7270
|
+
border-radius: 50%;
|
|
7271
|
+
background: currentcolor;
|
|
7272
|
+
}
|
|
7273
|
+
|
|
7274
|
+
.hx-tab-bar-tab-modified:hover .hx-tab-bar-modified,
|
|
7275
|
+
.hx-tab-bar-tab-modified:focus-visible .hx-tab-bar-modified {
|
|
7276
|
+
visibility: hidden;
|
|
7277
|
+
}
|
|
7278
|
+
|
|
7279
|
+
/* a tab with unsaved changes shows the close button only on hover or focus, also when active */
|
|
7280
|
+
.hx-tab-bar-tab-modified.hx-tab-bar-tab-active .hx-tab-bar-close {
|
|
7281
|
+
visibility: hidden;
|
|
7282
|
+
}
|
|
7283
|
+
|
|
7284
|
+
.hx-tab-bar-tab-modified.hx-tab-bar-tab-active:hover .hx-tab-bar-close,
|
|
7285
|
+
.hx-tab-bar-tab-modified.hx-tab-bar-tab-active:focus-visible .hx-tab-bar-close {
|
|
7286
|
+
visibility: visible;
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7289
|
+
.hx-tab-bar-tab-missing .hx-tab-bar-label {
|
|
7290
|
+
text-decoration: line-through;
|
|
7291
|
+
}
|
|
7292
|
+
|
|
7197
7293
|
.hx-tab-bar-close,
|
|
7198
7294
|
.hx-tab-bar-all {
|
|
7199
7295
|
display: inline-grid;
|
|
@@ -8255,6 +8351,31 @@
|
|
|
8255
8351
|
font-weight: var(--h-toast-detail-font-weight);
|
|
8256
8352
|
}
|
|
8257
8353
|
|
|
8354
|
+
.hx-toast-action {
|
|
8355
|
+
flex: none;
|
|
8356
|
+
padding: 0.25rem 0.5rem;
|
|
8357
|
+
border: 0;
|
|
8358
|
+
border-radius: var(--h-toast-close-button-border-radius);
|
|
8359
|
+
background: transparent;
|
|
8360
|
+
color: inherit;
|
|
8361
|
+
font: inherit;
|
|
8362
|
+
font-weight: 600;
|
|
8363
|
+
text-decoration: underline;
|
|
8364
|
+
cursor: pointer;
|
|
8365
|
+
outline: 0 none;
|
|
8366
|
+
transition: background var(--h-toast-transition-duration);
|
|
8367
|
+
}
|
|
8368
|
+
|
|
8369
|
+
.hx-toast-action:hover {
|
|
8370
|
+
background: var(--hx-toast-hover);
|
|
8371
|
+
}
|
|
8372
|
+
|
|
8373
|
+
.hx-toast-action:focus-visible {
|
|
8374
|
+
outline: var(--h-toast-close-button-focus-ring-width) var(--h-toast-close-button-focus-ring-style) var(--hx-toast-ring);
|
|
8375
|
+
outline-offset: var(--h-toast-close-button-focus-ring-offset);
|
|
8376
|
+
box-shadow: var(--hx-toast-ring-shadow);
|
|
8377
|
+
}
|
|
8378
|
+
|
|
8258
8379
|
.hx-toast-close {
|
|
8259
8380
|
display: inline-flex;
|
|
8260
8381
|
flex: none;
|
|
@@ -8296,6 +8417,7 @@
|
|
|
8296
8417
|
.hx-toast-item {
|
|
8297
8418
|
animation: none;
|
|
8298
8419
|
}
|
|
8420
|
+
.hx-toast-action,
|
|
8299
8421
|
.hx-toast-close {
|
|
8300
8422
|
transition: none;
|
|
8301
8423
|
}
|
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 };
|