@gravionlabs/helix-ui 22.8.0 → 22.9.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 +63 -0
- package/fesm2022/gravionlabs-helix-ui.mjs +482 -7
- package/fesm2022/gravionlabs-helix-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +173 -0
- package/tokens.css +40 -39
- package/types/gravionlabs-helix-ui.d.ts +174 -3
package/README.md
CHANGED
|
@@ -46,6 +46,7 @@ import { HxChart } from '@gravionlabs/helix-ui/chart';
|
|
|
46
46
|
| `HxRadio` | `input[hx-radio]` | native radio |
|
|
47
47
|
| `HxSelect` | `hx-select` | CDK listbox in an overlay, all three forms APIs |
|
|
48
48
|
| `HxDivider` | `hx-divider` | horizontal/vertical, labelled |
|
|
49
|
+
| `HxList`, `HxListRow` | `hx-list`, `[hx-list-row]` | list of button and link rows with roving focus, selected and current state |
|
|
49
50
|
| `HxKbd` | `hx-kbd` | key caps of a shortcut; `hxTooltipShortcut` on the tooltip |
|
|
50
51
|
| `HxTooltip` | `[hx-tooltip]` | CDK overlay, hover and focus |
|
|
51
52
|
| `HxAvatar`, `HxAvatarGroup` | `hx-avatar`, `hx-avatar-group` | picture, icon or initials; sizes, shapes; the group overlaps its avatars |
|
package/core.css
CHANGED
|
@@ -1477,6 +1477,69 @@
|
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
+
/* field */
|
|
1481
|
+
/*
|
|
1482
|
+
* Form field: `<hx-field>`, a column of label, control, hint and error. A checkbox, radio or switch stands
|
|
1483
|
+
* before its label on one line. Type scale and spacing tokens; the colours are the semantic text and form
|
|
1484
|
+
* field tokens.
|
|
1485
|
+
*/
|
|
1486
|
+
.hx-field {
|
|
1487
|
+
display: grid;
|
|
1488
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1489
|
+
row-gap: var(--h-space-1);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
.hx-field-label {
|
|
1493
|
+
font-size: var(--h-font-size-sm);
|
|
1494
|
+
font-weight: 500;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.hx-field-required {
|
|
1498
|
+
color: var(--h-form-field-invalid-placeholder-color);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.hx-field-control {
|
|
1502
|
+
display: flex;
|
|
1503
|
+
flex-direction: column;
|
|
1504
|
+
align-items: flex-start;
|
|
1505
|
+
min-width: 0;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.hx-field-control > :is(.hx-input, .hx-select) {
|
|
1509
|
+
align-self: stretch;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
.hx-field-hint {
|
|
1513
|
+
color: var(--h-text-muted-color);
|
|
1514
|
+
font-size: var(--h-font-size-sm);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.hx-field-error {
|
|
1518
|
+
color: var(--h-form-field-invalid-placeholder-color);
|
|
1519
|
+
font-size: var(--h-font-size-sm);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/* the empty live region stays in the accessibility tree but takes no room, not even a gap */
|
|
1523
|
+
.hx-field-error:not(.hx-field-error-shown) {
|
|
1524
|
+
position: absolute;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
/* checkbox, radio, switch: control and label on one line, the texts below */
|
|
1528
|
+
.hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) {
|
|
1529
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
1530
|
+
align-items: center;
|
|
1531
|
+
column-gap: var(--h-space-2);
|
|
1532
|
+
}
|
|
1533
|
+
.hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) > .hx-field-control {
|
|
1534
|
+
grid-area: 1/1;
|
|
1535
|
+
}
|
|
1536
|
+
.hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) > .hx-field-label {
|
|
1537
|
+
grid-area: 1/2;
|
|
1538
|
+
}
|
|
1539
|
+
.hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) > :is(.hx-field-hint, .hx-field-error) {
|
|
1540
|
+
grid-column: 1/-1;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1480
1543
|
/* fieldset */
|
|
1481
1544
|
/*
|
|
1482
1545
|
* Fieldset: `<hx-fieldset>`. A native fieldset and legend from the `--h-fieldset-*` tokens; a toggleable legend is a
|
|
@@ -2,14 +2,16 @@ import * as i1 from "@angular/cdk/accordion";
|
|
|
2
2
|
import { CdkAccordion, CdkAccordionItem } from "@angular/cdk/accordion";
|
|
3
3
|
import { DOCUMENT, NgComponentOutlet, NgStyle, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, Injectable, InjectionToken, Injector, PLATFORM_ID, TemplateRef, afterEveryRender, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, isDevMode, makeEnvironmentProviders, model, numberAttribute, output, provideEnvironmentInitializer, signal, untracked, viewChild, viewChildren } from "@angular/core";
|
|
5
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, HostAttributeToken, Injectable, InjectionToken, Injector, PLATFORM_ID, TemplateRef, afterEveryRender, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, isDevMode, makeEnvironmentProviders, model, numberAttribute, output, provideEnvironmentInitializer, signal, untracked, viewChild, viewChildren } from "@angular/core";
|
|
6
6
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
7
7
|
import { CdkConnectedOverlay, CdkOverlayOrigin, Overlay } from "@angular/cdk/overlay";
|
|
8
|
-
import { NG_VALUE_ACCESSOR, NgControl } from "@angular/forms";
|
|
8
|
+
import { NG_VALUE_ACCESSOR, NgControl, Validators } from "@angular/forms";
|
|
9
9
|
import { RouterLink } from "@angular/router";
|
|
10
10
|
import { Dialog } from "@angular/cdk/dialog";
|
|
11
11
|
import { Subject } from "rxjs";
|
|
12
12
|
import { CdkListbox, CdkOption } from "@angular/cdk/listbox";
|
|
13
|
+
import { FormField } from "@angular/forms/signals";
|
|
14
|
+
import { FocusKeyManager } from "@angular/cdk/a11y";
|
|
13
15
|
import { CdkMenu, CdkMenuBar, CdkMenuItem, CdkMenuTrigger } from "@angular/cdk/menu";
|
|
14
16
|
import { ComponentPortal } from "@angular/cdk/portal";
|
|
15
17
|
let counter = 0;
|
|
@@ -4108,6 +4110,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4108
4110
|
}]
|
|
4109
4111
|
}
|
|
4110
4112
|
});
|
|
4113
|
+
const HX_FIELD = new InjectionToken("HX_FIELD");
|
|
4111
4114
|
const HX_SELECT_OVERLAY_CLASS = "hx-select-overlay";
|
|
4112
4115
|
function isInSelectOverlay(target) {
|
|
4113
4116
|
return target instanceof Element && target.closest(`.hx-select-overlay`) !== null;
|
|
@@ -4154,6 +4157,10 @@ var HxSelect = class HxSelect {
|
|
|
4154
4157
|
transform: booleanAttribute
|
|
4155
4158
|
});
|
|
4156
4159
|
touch = output();
|
|
4160
|
+
#field = inject(HX_FIELD, { optional: true });
|
|
4161
|
+
field = computed(() => this.#field?.control() === this.#host.nativeElement ? this.#field : null, ...ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []);
|
|
4162
|
+
showsInvalid = computed(() => this.field()?.invalid() ?? this.invalid(), ...ngDevMode ? [{ debugName: "showsInvalid" }] : /* istanbul ignore next */ []);
|
|
4163
|
+
describedBy = computed(() => [this.ariaDescribedby(), this.field()?.describedBy()].filter(Boolean).join(" ") || null, ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
4157
4164
|
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
4158
4165
|
panelWidth = signal(0, ...ngDevMode ? [{ debugName: "panelWidth" }] : /* istanbul ignore next */ []);
|
|
4159
4166
|
panelId = nextId("hx-select-panel");
|
|
@@ -4473,7 +4480,7 @@ var HxSelect = class HxSelect {
|
|
|
4473
4480
|
"class.hx-select-fluid": "fluid()",
|
|
4474
4481
|
"class.hx-select-disabled": "isDisabled()",
|
|
4475
4482
|
"class.hx-select-has-clear": "canClear()",
|
|
4476
|
-
"class.hx-select-invalid": "
|
|
4483
|
+
"class.hx-select-invalid": "showsInvalid()",
|
|
4477
4484
|
"class.hx-filled": "!!selected()"
|
|
4478
4485
|
},
|
|
4479
4486
|
classAttribute: "hx-select"
|
|
@@ -4507,7 +4514,7 @@ var HxSelect = class HxSelect {
|
|
|
4507
4514
|
}
|
|
4508
4515
|
],
|
|
4509
4516
|
ngImport: i0,
|
|
4510
|
-
template: "<button\n #trigger\n type=\"button\"\n class=\"hx-select-trigger\"\n role=\"combobox\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? null\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-describedby]=\"
|
|
4517
|
+
template: "<button\n #trigger\n type=\"button\"\n class=\"hx-select-trigger\"\n role=\"combobox\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? field()?.controlId ?? null\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"showsInvalid() ? 'true' : null\"\n [attr.aria-required]=\"field()?.isRequired() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\"\n>\n <span class=\"hx-select-label\" [class.hx-select-placeholder]=\"!selected()\">{{\n selected()?.label ?? placeholder()\n }}</span>\n <span class=\"hx-select-chevron\" aria-hidden=\"true\"></span>\n</button>\n@if (canClear()) {\n <button\n type=\"button\"\n class=\"hx-select-clear\"\n aria-label=\"Clear selection\"\n (click)=\"clear($event)\"\n >\n <span class=\"hx-select-clear-icon\" aria-hidden=\"true\"></span>\n </button>\n}\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayPanelClass]=\"overlayClass\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"close()\"\n>\n <div class=\"hx-select-panel\">\n @if (filter()) {\n <div class=\"hx-select-header\">\n <input\n #filterField\n type=\"text\"\n class=\"hx-select-filter\"\n autocomplete=\"off\"\n [attr.aria-label]=\"filterPlaceholder()\"\n [attr.aria-controls]=\"panelId\"\n [placeholder]=\"filterPlaceholder()\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n </div>\n }\n <div\n cdkListbox\n class=\"hx-select-list\"\n [id]=\"panelId\"\n [cdkListboxValue]=\"selectedValues()\"\n [cdkListboxUseActiveDescendant]=\"true\"\n [cdkListboxCompareWith]=\"compareWith()\"\n [attr.aria-label]=\"ariaLabel() ?? placeholder() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n (cdkListboxValueChange)=\"onSelect($event)\"\n >\n @for (item of visibleItems(); track item) {\n <div\n class=\"hx-select-option\"\n [cdkOption]=\"item.value\"\n [cdkOptionDisabled]=\"item.disabled\"\n [cdkOptionTypeaheadLabel]=\"item.label\"\n >\n <span class=\"hx-select-check\" aria-hidden=\"true\"></span>\n <span>{{ item.label }}</span>\n </div>\n } @empty {\n <div class=\"hx-select-empty\">\n {{ query().trim() ? emptyFilterMessage() : emptyMessage() }}\n </div>\n }\n </div>\n @if (filter()) {\n <span class=\"hx-select-sr-only\" aria-live=\"polite\">{{ resultsLabel() }}</span>\n }\n </div>\n</ng-template>\n",
|
|
4511
4518
|
dependencies: [
|
|
4512
4519
|
{
|
|
4513
4520
|
kind: "directive",
|
|
@@ -4622,11 +4629,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4622
4629
|
"[class.hx-select-fluid]": "fluid()",
|
|
4623
4630
|
"[class.hx-select-disabled]": "isDisabled()",
|
|
4624
4631
|
"[class.hx-select-has-clear]": "canClear()",
|
|
4625
|
-
"[class.hx-select-invalid]": "
|
|
4632
|
+
"[class.hx-select-invalid]": "showsInvalid()",
|
|
4626
4633
|
"[class.hx-filled]": "!!selected()",
|
|
4627
4634
|
"(focusout)": "onFocusOut($event)"
|
|
4628
4635
|
},
|
|
4629
|
-
template: "<button\n #trigger\n type=\"button\"\n class=\"hx-select-trigger\"\n role=\"combobox\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? null\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-describedby]=\"
|
|
4636
|
+
template: "<button\n #trigger\n type=\"button\"\n class=\"hx-select-trigger\"\n role=\"combobox\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"inputId() ?? field()?.controlId ?? null\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? panelId : null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"showsInvalid() ? 'true' : null\"\n [attr.aria-required]=\"field()?.isRequired() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\"\n>\n <span class=\"hx-select-label\" [class.hx-select-placeholder]=\"!selected()\">{{\n selected()?.label ?? placeholder()\n }}</span>\n <span class=\"hx-select-chevron\" aria-hidden=\"true\"></span>\n</button>\n@if (canClear()) {\n <button\n type=\"button\"\n class=\"hx-select-clear\"\n aria-label=\"Clear selection\"\n (click)=\"clear($event)\"\n >\n <span class=\"hx-select-clear-icon\" aria-hidden=\"true\"></span>\n </button>\n}\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayPanelClass]=\"overlayClass\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (overlayKeydown)=\"onOverlayKeydown($event)\"\n (attach)=\"onAttach()\"\n (detach)=\"close()\"\n>\n <div class=\"hx-select-panel\">\n @if (filter()) {\n <div class=\"hx-select-header\">\n <input\n #filterField\n type=\"text\"\n class=\"hx-select-filter\"\n autocomplete=\"off\"\n [attr.aria-label]=\"filterPlaceholder()\"\n [attr.aria-controls]=\"panelId\"\n [placeholder]=\"filterPlaceholder()\"\n [value]=\"query()\"\n (input)=\"query.set($any($event.target).value)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n </div>\n }\n <div\n cdkListbox\n class=\"hx-select-list\"\n [id]=\"panelId\"\n [cdkListboxValue]=\"selectedValues()\"\n [cdkListboxUseActiveDescendant]=\"true\"\n [cdkListboxCompareWith]=\"compareWith()\"\n [attr.aria-label]=\"ariaLabel() ?? placeholder() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n (cdkListboxValueChange)=\"onSelect($event)\"\n >\n @for (item of visibleItems(); track item) {\n <div\n class=\"hx-select-option\"\n [cdkOption]=\"item.value\"\n [cdkOptionDisabled]=\"item.disabled\"\n [cdkOptionTypeaheadLabel]=\"item.label\"\n >\n <span class=\"hx-select-check\" aria-hidden=\"true\"></span>\n <span>{{ item.label }}</span>\n </div>\n } @empty {\n <div class=\"hx-select-empty\">\n {{ query().trim() ? emptyFilterMessage() : emptyMessage() }}\n </div>\n }\n </div>\n @if (filter()) {\n <span class=\"hx-select-sr-only\" aria-live=\"polite\">{{ resultsLabel() }}</span>\n }\n </div>\n</ng-template>\n"
|
|
4630
4637
|
}]
|
|
4631
4638
|
}],
|
|
4632
4639
|
propDecorators: {
|
|
@@ -13879,6 +13886,252 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
13879
13886
|
}]
|
|
13880
13887
|
}
|
|
13881
13888
|
});
|
|
13889
|
+
var HxField = class HxField {
|
|
13890
|
+
label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
|
|
13891
|
+
hint = input(...ngDevMode ? [void 0, { debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
13892
|
+
error = input(...ngDevMode ? [void 0, { debugName: "error" }] : /* istanbul ignore next */ []);
|
|
13893
|
+
required = input(false, {
|
|
13894
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
13895
|
+
transform: booleanAttribute
|
|
13896
|
+
});
|
|
13897
|
+
controlId = nextId("hx-field-control");
|
|
13898
|
+
hintId = nextId("hx-field-hint");
|
|
13899
|
+
errorId = nextId("hx-field-error");
|
|
13900
|
+
formField = contentChild(FormField, ...ngDevMode ? [{ debugName: "formField" }] : /* istanbul ignore next */ []);
|
|
13901
|
+
ngControl = contentChild(NgControl, ...ngDevMode ? [{ debugName: "ngControl" }] : /* istanbul ignore next */ []);
|
|
13902
|
+
box = viewChild.required("box", ...ngDevMode ? [{ debugName: "box" }] : /* istanbul ignore next */ []);
|
|
13903
|
+
control = signal(null, ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
13904
|
+
labelFor = signal(null, ...ngDevMode ? [{ debugName: "labelFor" }] : /* istanbul ignore next */ []);
|
|
13905
|
+
#requiredAttribute = signal(false, ...ngDevMode ? [{ debugName: "#requiredAttribute" }] : /* istanbul ignore next */ []);
|
|
13906
|
+
#reactiveState = signal(null, {
|
|
13907
|
+
...ngDevMode ? { debugName: "#reactiveState" } : /* istanbul ignore next */ {},
|
|
13908
|
+
equal: (a, b) => a?.invalid === b?.invalid && a?.touched === b?.touched && a?.required === b?.required
|
|
13909
|
+
});
|
|
13910
|
+
#state = computed(() => {
|
|
13911
|
+
const field = this.formField();
|
|
13912
|
+
if (!field) return this.#reactiveState();
|
|
13913
|
+
const state = field.state();
|
|
13914
|
+
return {
|
|
13915
|
+
invalid: state.invalid(),
|
|
13916
|
+
touched: state.touched(),
|
|
13917
|
+
required: state.required(),
|
|
13918
|
+
message: state.errors()[0]?.message
|
|
13919
|
+
};
|
|
13920
|
+
}, ...ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []);
|
|
13921
|
+
invalid = computed(() => {
|
|
13922
|
+
const state = this.#state();
|
|
13923
|
+
if (state) return state.invalid && state.touched;
|
|
13924
|
+
return this.error() ? true : null;
|
|
13925
|
+
}, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
13926
|
+
isRequired = computed(() => this.required() || !!this.#state()?.required || this.#requiredAttribute(), ...ngDevMode ? [{ debugName: "isRequired" }] : /* istanbul ignore next */ []);
|
|
13927
|
+
message = computed(() => this.invalid() ? this.error() || this.#state()?.message || null : null, ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
13928
|
+
describedBy = computed(() => [this.hint() ? this.hintId : null, this.message() ? this.errorId : null].filter(Boolean).join(" ") || null, ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
13929
|
+
#watched = null;
|
|
13930
|
+
#subscription;
|
|
13931
|
+
#written = /* @__PURE__ */ new Set();
|
|
13932
|
+
constructor() {
|
|
13933
|
+
inject(DestroyRef).onDestroy(() => this.#subscription?.unsubscribe());
|
|
13934
|
+
afterEveryRender(() => this.#wire());
|
|
13935
|
+
}
|
|
13936
|
+
ngAfterContentChecked() {
|
|
13937
|
+
const control = this.formField() ? null : this.ngControl()?.control ?? null;
|
|
13938
|
+
if (control !== this.#watched) {
|
|
13939
|
+
this.#subscription?.unsubscribe();
|
|
13940
|
+
this.#watched = control;
|
|
13941
|
+
this.#subscription = control?.events.subscribe(() => this.#read(control));
|
|
13942
|
+
}
|
|
13943
|
+
this.#read(control);
|
|
13944
|
+
}
|
|
13945
|
+
#read(control) {
|
|
13946
|
+
this.#reactiveState.set(control && {
|
|
13947
|
+
invalid: control.invalid,
|
|
13948
|
+
touched: control.touched,
|
|
13949
|
+
required: [Validators.required, Validators.requiredTrue].some((v) => control.hasValidator(v))
|
|
13950
|
+
});
|
|
13951
|
+
}
|
|
13952
|
+
#wire() {
|
|
13953
|
+
const control = this.box().nativeElement.querySelector("hx-select, input, textarea, select");
|
|
13954
|
+
if (control !== this.control()) {
|
|
13955
|
+
this.control.set(control);
|
|
13956
|
+
this.#written.clear();
|
|
13957
|
+
}
|
|
13958
|
+
this.#requiredAttribute.set(!!control?.hasAttribute("required"));
|
|
13959
|
+
if (!control) {
|
|
13960
|
+
this.labelFor.set(null);
|
|
13961
|
+
return;
|
|
13962
|
+
}
|
|
13963
|
+
if (control.localName === "hx-select") {
|
|
13964
|
+
this.labelFor.set(control.querySelector(".hx-select-trigger")?.id || null);
|
|
13965
|
+
return;
|
|
13966
|
+
}
|
|
13967
|
+
if (!control.id) control.id = this.controlId;
|
|
13968
|
+
this.labelFor.set(control.id);
|
|
13969
|
+
this.#describe(control);
|
|
13970
|
+
this.#flag(control, "aria-invalid", this.invalid() === true);
|
|
13971
|
+
this.#flag(control, "aria-required", this.isRequired());
|
|
13972
|
+
}
|
|
13973
|
+
#describe(control) {
|
|
13974
|
+
const current = control.getAttribute("aria-describedby");
|
|
13975
|
+
const next = [...(current ?? "").split(/\s+/).filter((id) => id && id !== this.hintId && id !== this.errorId), this.describedBy()].filter(Boolean).join(" ");
|
|
13976
|
+
if (next === (current ?? "")) return;
|
|
13977
|
+
if (next) control.setAttribute("aria-describedby", next);
|
|
13978
|
+
else control.removeAttribute("aria-describedby");
|
|
13979
|
+
}
|
|
13980
|
+
#flag(control, name, on) {
|
|
13981
|
+
if (on) {
|
|
13982
|
+
if (control.getAttribute(name) === "true") return;
|
|
13983
|
+
control.setAttribute(name, "true");
|
|
13984
|
+
this.#written.add(name);
|
|
13985
|
+
} else if (this.#written.delete(name)) control.removeAttribute(name);
|
|
13986
|
+
}
|
|
13987
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
13988
|
+
minVersion: "12.0.0",
|
|
13989
|
+
version: "22.3.0",
|
|
13990
|
+
ngImport: i0,
|
|
13991
|
+
type: HxField,
|
|
13992
|
+
deps: [],
|
|
13993
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
13994
|
+
});
|
|
13995
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
13996
|
+
minVersion: "17.0.0",
|
|
13997
|
+
version: "22.3.0",
|
|
13998
|
+
type: HxField,
|
|
13999
|
+
isStandalone: true,
|
|
14000
|
+
selector: "hx-field",
|
|
14001
|
+
inputs: {
|
|
14002
|
+
label: {
|
|
14003
|
+
classPropertyName: "label",
|
|
14004
|
+
publicName: "label",
|
|
14005
|
+
isSignal: true,
|
|
14006
|
+
isRequired: false,
|
|
14007
|
+
transformFunction: null
|
|
14008
|
+
},
|
|
14009
|
+
hint: {
|
|
14010
|
+
classPropertyName: "hint",
|
|
14011
|
+
publicName: "hint",
|
|
14012
|
+
isSignal: true,
|
|
14013
|
+
isRequired: false,
|
|
14014
|
+
transformFunction: null
|
|
14015
|
+
},
|
|
14016
|
+
error: {
|
|
14017
|
+
classPropertyName: "error",
|
|
14018
|
+
publicName: "error",
|
|
14019
|
+
isSignal: true,
|
|
14020
|
+
isRequired: false,
|
|
14021
|
+
transformFunction: null
|
|
14022
|
+
},
|
|
14023
|
+
required: {
|
|
14024
|
+
classPropertyName: "required",
|
|
14025
|
+
publicName: "required",
|
|
14026
|
+
isSignal: true,
|
|
14027
|
+
isRequired: false,
|
|
14028
|
+
transformFunction: null
|
|
14029
|
+
}
|
|
14030
|
+
},
|
|
14031
|
+
host: {
|
|
14032
|
+
properties: { "class.hx-field-invalid": "invalid() === true" },
|
|
14033
|
+
classAttribute: "hx-field"
|
|
14034
|
+
},
|
|
14035
|
+
providers: [{
|
|
14036
|
+
provide: HX_FIELD,
|
|
14037
|
+
useExisting: forwardRef(() => HxField)
|
|
14038
|
+
}],
|
|
14039
|
+
queries: [{
|
|
14040
|
+
propertyName: "formField",
|
|
14041
|
+
first: true,
|
|
14042
|
+
predicate: FormField,
|
|
14043
|
+
descendants: true,
|
|
14044
|
+
isSignal: true
|
|
14045
|
+
}, {
|
|
14046
|
+
propertyName: "ngControl",
|
|
14047
|
+
first: true,
|
|
14048
|
+
predicate: NgControl,
|
|
14049
|
+
descendants: true,
|
|
14050
|
+
isSignal: true
|
|
14051
|
+
}],
|
|
14052
|
+
viewQueries: [{
|
|
14053
|
+
propertyName: "box",
|
|
14054
|
+
first: true,
|
|
14055
|
+
predicate: ["box"],
|
|
14056
|
+
descendants: true,
|
|
14057
|
+
isSignal: true
|
|
14058
|
+
}],
|
|
14059
|
+
exportAs: ["hx-field"],
|
|
14060
|
+
ngImport: i0,
|
|
14061
|
+
template: "@if (label()) {\n <label class=\"hx-field-label\" [attr.for]=\"labelFor()\"\n >{{ label() }}\n @if (isRequired()) {\n <span class=\"hx-field-required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n<div #box class=\"hx-field-control\"><ng-content /></div>\n@if (hint()) {\n <div class=\"hx-field-hint\" [id]=\"hintId\">{{ hint() }}</div>\n}\n<!-- always in the DOM: a live region announces only what changes inside it -->\n<div\n class=\"hx-field-error\"\n [class.hx-field-error-shown]=\"!!message()\"\n [id]=\"errorId\"\n aria-live=\"polite\"\n>\n {{ message() }}\n</div>\n",
|
|
14062
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
14063
|
+
});
|
|
14064
|
+
};
|
|
14065
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
14066
|
+
minVersion: "12.0.0",
|
|
14067
|
+
version: "22.3.0",
|
|
14068
|
+
ngImport: i0,
|
|
14069
|
+
type: HxField,
|
|
14070
|
+
decorators: [{
|
|
14071
|
+
type: Component,
|
|
14072
|
+
args: [{
|
|
14073
|
+
selector: "hx-field",
|
|
14074
|
+
exportAs: "hx-field",
|
|
14075
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14076
|
+
providers: [{
|
|
14077
|
+
provide: HX_FIELD,
|
|
14078
|
+
useExisting: forwardRef(() => HxField)
|
|
14079
|
+
}],
|
|
14080
|
+
host: {
|
|
14081
|
+
class: "hx-field",
|
|
14082
|
+
"[class.hx-field-invalid]": "invalid() === true"
|
|
14083
|
+
},
|
|
14084
|
+
template: "@if (label()) {\n <label class=\"hx-field-label\" [attr.for]=\"labelFor()\"\n >{{ label() }}\n @if (isRequired()) {\n <span class=\"hx-field-required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n<div #box class=\"hx-field-control\"><ng-content /></div>\n@if (hint()) {\n <div class=\"hx-field-hint\" [id]=\"hintId\">{{ hint() }}</div>\n}\n<!-- always in the DOM: a live region announces only what changes inside it -->\n<div\n class=\"hx-field-error\"\n [class.hx-field-error-shown]=\"!!message()\"\n [id]=\"errorId\"\n aria-live=\"polite\"\n>\n {{ message() }}\n</div>\n"
|
|
14085
|
+
}]
|
|
14086
|
+
}],
|
|
14087
|
+
ctorParameters: () => [],
|
|
14088
|
+
propDecorators: {
|
|
14089
|
+
label: [{
|
|
14090
|
+
type: i0.Input,
|
|
14091
|
+
args: [{
|
|
14092
|
+
isSignal: true,
|
|
14093
|
+
alias: "label",
|
|
14094
|
+
required: false
|
|
14095
|
+
}]
|
|
14096
|
+
}],
|
|
14097
|
+
hint: [{
|
|
14098
|
+
type: i0.Input,
|
|
14099
|
+
args: [{
|
|
14100
|
+
isSignal: true,
|
|
14101
|
+
alias: "hint",
|
|
14102
|
+
required: false
|
|
14103
|
+
}]
|
|
14104
|
+
}],
|
|
14105
|
+
error: [{
|
|
14106
|
+
type: i0.Input,
|
|
14107
|
+
args: [{
|
|
14108
|
+
isSignal: true,
|
|
14109
|
+
alias: "error",
|
|
14110
|
+
required: false
|
|
14111
|
+
}]
|
|
14112
|
+
}],
|
|
14113
|
+
required: [{
|
|
14114
|
+
type: i0.Input,
|
|
14115
|
+
args: [{
|
|
14116
|
+
isSignal: true,
|
|
14117
|
+
alias: "required",
|
|
14118
|
+
required: false
|
|
14119
|
+
}]
|
|
14120
|
+
}],
|
|
14121
|
+
formField: [{
|
|
14122
|
+
type: i0.ContentChild,
|
|
14123
|
+
args: [i0.forwardRef(() => FormField), { isSignal: true }]
|
|
14124
|
+
}],
|
|
14125
|
+
ngControl: [{
|
|
14126
|
+
type: i0.ContentChild,
|
|
14127
|
+
args: [i0.forwardRef(() => NgControl), { isSignal: true }]
|
|
14128
|
+
}],
|
|
14129
|
+
box: [{
|
|
14130
|
+
type: i0.ViewChild,
|
|
14131
|
+
args: ["box", { isSignal: true }]
|
|
14132
|
+
}]
|
|
14133
|
+
}
|
|
14134
|
+
});
|
|
13882
14135
|
var HxFieldset = class HxFieldset {
|
|
13883
14136
|
legend = input("", ...ngDevMode ? [{ debugName: "legend" }] : /* istanbul ignore next */ []);
|
|
13884
14137
|
toggleable = input(false, {
|
|
@@ -16687,6 +16940,228 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
16687
16940
|
}]
|
|
16688
16941
|
}
|
|
16689
16942
|
});
|
|
16943
|
+
var HxList = class HxList {
|
|
16944
|
+
role = input("list", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
16945
|
+
allRows = contentChildren(forwardRef(() => HxListRow), {
|
|
16946
|
+
...ngDevMode ? { debugName: "allRows" } : /* istanbul ignore next */ {},
|
|
16947
|
+
descendants: true
|
|
16948
|
+
});
|
|
16949
|
+
rows = computed(() => this.allRows().filter((row) => row.list === this), ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
16950
|
+
keys = new FocusKeyManager(this.rows, inject(Injector)).withVerticalOrientation().withHomeAndEnd();
|
|
16951
|
+
focused = null;
|
|
16952
|
+
constructor() {
|
|
16953
|
+
afterEveryRender(() => this.updateTabStop());
|
|
16954
|
+
inject(DestroyRef).onDestroy(() => this.keys.destroy());
|
|
16955
|
+
}
|
|
16956
|
+
rowFocused(row) {
|
|
16957
|
+
this.focused = row;
|
|
16958
|
+
this.keys.updateActiveItem(row);
|
|
16959
|
+
this.updateTabStop();
|
|
16960
|
+
}
|
|
16961
|
+
onKeydown(event) {
|
|
16962
|
+
const row = this.rows().find((r) => r.element === event.target);
|
|
16963
|
+
if (!row) return;
|
|
16964
|
+
this.keys.updateActiveItem(row);
|
|
16965
|
+
this.keys.onKeydown(event);
|
|
16966
|
+
}
|
|
16967
|
+
updateTabStop() {
|
|
16968
|
+
const rows = this.rows();
|
|
16969
|
+
const enabled = rows.filter((row) => !row.disabled);
|
|
16970
|
+
const stop = enabled.find((row) => row === this.focused) ?? enabled.find((row) => row.current() !== false) ?? enabled.find((row) => row.selected()) ?? enabled[0];
|
|
16971
|
+
for (const row of rows) row.element.tabIndex = row === stop ? 0 : -1;
|
|
16972
|
+
}
|
|
16973
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
16974
|
+
minVersion: "12.0.0",
|
|
16975
|
+
version: "22.3.0",
|
|
16976
|
+
ngImport: i0,
|
|
16977
|
+
type: HxList,
|
|
16978
|
+
deps: [],
|
|
16979
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
16980
|
+
});
|
|
16981
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
16982
|
+
minVersion: "17.2.0",
|
|
16983
|
+
version: "22.3.0",
|
|
16984
|
+
type: HxList,
|
|
16985
|
+
isStandalone: true,
|
|
16986
|
+
selector: "hx-list",
|
|
16987
|
+
inputs: { role: {
|
|
16988
|
+
classPropertyName: "role",
|
|
16989
|
+
publicName: "role",
|
|
16990
|
+
isSignal: true,
|
|
16991
|
+
isRequired: false,
|
|
16992
|
+
transformFunction: null
|
|
16993
|
+
} },
|
|
16994
|
+
host: {
|
|
16995
|
+
listeners: { "keydown": "onKeydown($event)" },
|
|
16996
|
+
properties: { "attr.role": "role() === 'listbox' ? 'listbox' : 'group'" },
|
|
16997
|
+
classAttribute: "hx-list"
|
|
16998
|
+
},
|
|
16999
|
+
queries: [{
|
|
17000
|
+
propertyName: "allRows",
|
|
17001
|
+
predicate: i0.forwardRef(() => HxListRow),
|
|
17002
|
+
descendants: true,
|
|
17003
|
+
isSignal: true
|
|
17004
|
+
}],
|
|
17005
|
+
exportAs: ["hx-list"],
|
|
17006
|
+
ngImport: i0
|
|
17007
|
+
});
|
|
17008
|
+
};
|
|
17009
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
17010
|
+
minVersion: "12.0.0",
|
|
17011
|
+
version: "22.3.0",
|
|
17012
|
+
ngImport: i0,
|
|
17013
|
+
type: HxList,
|
|
17014
|
+
decorators: [{
|
|
17015
|
+
type: Directive,
|
|
17016
|
+
args: [{
|
|
17017
|
+
selector: "hx-list",
|
|
17018
|
+
exportAs: "hx-list",
|
|
17019
|
+
host: {
|
|
17020
|
+
class: "hx-list",
|
|
17021
|
+
"[attr.role]": "role() === 'listbox' ? 'listbox' : 'group'",
|
|
17022
|
+
"(keydown)": "onKeydown($event)"
|
|
17023
|
+
}
|
|
17024
|
+
}]
|
|
17025
|
+
}],
|
|
17026
|
+
ctorParameters: () => [],
|
|
17027
|
+
propDecorators: {
|
|
17028
|
+
role: [{
|
|
17029
|
+
type: i0.Input,
|
|
17030
|
+
args: [{
|
|
17031
|
+
isSignal: true,
|
|
17032
|
+
alias: "role",
|
|
17033
|
+
required: false
|
|
17034
|
+
}]
|
|
17035
|
+
}],
|
|
17036
|
+
allRows: [{
|
|
17037
|
+
type: i0.ContentChildren,
|
|
17038
|
+
args: [forwardRef(() => HxListRow), {
|
|
17039
|
+
descendants: true,
|
|
17040
|
+
isSignal: true
|
|
17041
|
+
}]
|
|
17042
|
+
}]
|
|
17043
|
+
}
|
|
17044
|
+
});
|
|
17045
|
+
var HxListRow = class HxListRow {
|
|
17046
|
+
selected = input(void 0, {
|
|
17047
|
+
...ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {},
|
|
17048
|
+
transform: (value) => value === void 0 ? void 0 : booleanAttribute(value)
|
|
17049
|
+
});
|
|
17050
|
+
current = input(false, {
|
|
17051
|
+
...ngDevMode ? { debugName: "current" } : /* istanbul ignore next */ {},
|
|
17052
|
+
transform: (value) => {
|
|
17053
|
+
if (value === "" || value === "true") return true;
|
|
17054
|
+
return value ?? false;
|
|
17055
|
+
}
|
|
17056
|
+
});
|
|
17057
|
+
list = inject(HxList, { optional: true });
|
|
17058
|
+
element = inject(ElementRef).nativeElement;
|
|
17059
|
+
staticRole = inject(new HostAttributeToken("role"), { optional: true });
|
|
17060
|
+
get disabled() {
|
|
17061
|
+
return this.element.matches(":disabled") || this.element.getAttribute("aria-disabled") === "true" || this.element.hasAttribute("hidden");
|
|
17062
|
+
}
|
|
17063
|
+
focus() {
|
|
17064
|
+
this.element.focus();
|
|
17065
|
+
}
|
|
17066
|
+
get listbox() {
|
|
17067
|
+
return this.list?.role() === "listbox";
|
|
17068
|
+
}
|
|
17069
|
+
get ariaPressed() {
|
|
17070
|
+
if (this.listbox || this.element.tagName !== "BUTTON") return null;
|
|
17071
|
+
return this.selected() ?? null;
|
|
17072
|
+
}
|
|
17073
|
+
get ariaCurrent() {
|
|
17074
|
+
const current = this.current();
|
|
17075
|
+
if (current !== false) return String(current);
|
|
17076
|
+
return !this.listbox && this.element.tagName === "A" && this.selected() ? "true" : null;
|
|
17077
|
+
}
|
|
17078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
17079
|
+
minVersion: "12.0.0",
|
|
17080
|
+
version: "22.3.0",
|
|
17081
|
+
ngImport: i0,
|
|
17082
|
+
type: HxListRow,
|
|
17083
|
+
deps: [],
|
|
17084
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17085
|
+
});
|
|
17086
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
17087
|
+
minVersion: "17.1.0",
|
|
17088
|
+
version: "22.3.0",
|
|
17089
|
+
type: HxListRow,
|
|
17090
|
+
isStandalone: true,
|
|
17091
|
+
selector: "button[hx-list-row], a[hx-list-row]",
|
|
17092
|
+
inputs: {
|
|
17093
|
+
selected: {
|
|
17094
|
+
classPropertyName: "selected",
|
|
17095
|
+
publicName: "selected",
|
|
17096
|
+
isSignal: true,
|
|
17097
|
+
isRequired: false,
|
|
17098
|
+
transformFunction: null
|
|
17099
|
+
},
|
|
17100
|
+
current: {
|
|
17101
|
+
classPropertyName: "current",
|
|
17102
|
+
publicName: "current",
|
|
17103
|
+
isSignal: true,
|
|
17104
|
+
isRequired: false,
|
|
17105
|
+
transformFunction: null
|
|
17106
|
+
}
|
|
17107
|
+
},
|
|
17108
|
+
host: {
|
|
17109
|
+
listeners: { "focus": "list?.rowFocused(this)" },
|
|
17110
|
+
properties: {
|
|
17111
|
+
"class.hx-list-row-selected": "selected()",
|
|
17112
|
+
"class.hx-list-row-current": "current() !== false",
|
|
17113
|
+
"attr.role": "listbox ? 'option' : staticRole",
|
|
17114
|
+
"attr.aria-selected": "listbox ? !!selected() : null",
|
|
17115
|
+
"attr.aria-pressed": "ariaPressed",
|
|
17116
|
+
"attr.aria-current": "ariaCurrent"
|
|
17117
|
+
},
|
|
17118
|
+
classAttribute: "hx-list-row"
|
|
17119
|
+
},
|
|
17120
|
+
exportAs: ["hx-list-row"],
|
|
17121
|
+
ngImport: i0
|
|
17122
|
+
});
|
|
17123
|
+
};
|
|
17124
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
17125
|
+
minVersion: "12.0.0",
|
|
17126
|
+
version: "22.3.0",
|
|
17127
|
+
ngImport: i0,
|
|
17128
|
+
type: HxListRow,
|
|
17129
|
+
decorators: [{
|
|
17130
|
+
type: Directive,
|
|
17131
|
+
args: [{
|
|
17132
|
+
selector: "button[hx-list-row], a[hx-list-row]",
|
|
17133
|
+
exportAs: "hx-list-row",
|
|
17134
|
+
host: {
|
|
17135
|
+
class: "hx-list-row",
|
|
17136
|
+
"[class.hx-list-row-selected]": "selected()",
|
|
17137
|
+
"[class.hx-list-row-current]": "current() !== false",
|
|
17138
|
+
"[attr.role]": "listbox ? 'option' : staticRole",
|
|
17139
|
+
"[attr.aria-selected]": "listbox ? !!selected() : null",
|
|
17140
|
+
"[attr.aria-pressed]": "ariaPressed",
|
|
17141
|
+
"[attr.aria-current]": "ariaCurrent",
|
|
17142
|
+
"(focus)": "list?.rowFocused(this)"
|
|
17143
|
+
}
|
|
17144
|
+
}]
|
|
17145
|
+
}],
|
|
17146
|
+
propDecorators: {
|
|
17147
|
+
selected: [{
|
|
17148
|
+
type: i0.Input,
|
|
17149
|
+
args: [{
|
|
17150
|
+
isSignal: true,
|
|
17151
|
+
alias: "selected",
|
|
17152
|
+
required: false
|
|
17153
|
+
}]
|
|
17154
|
+
}],
|
|
17155
|
+
current: [{
|
|
17156
|
+
type: i0.Input,
|
|
17157
|
+
args: [{
|
|
17158
|
+
isSignal: true,
|
|
17159
|
+
alias: "current",
|
|
17160
|
+
required: false
|
|
17161
|
+
}]
|
|
17162
|
+
}]
|
|
17163
|
+
}
|
|
17164
|
+
});
|
|
16690
17165
|
var HxListbox = class HxListbox {
|
|
16691
17166
|
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
16692
17167
|
optionLabel = input("label", ...ngDevMode ? [{ debugName: "optionLabel" }] : /* istanbul ignore next */ []);
|
|
@@ -24715,6 +25190,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24715
25190
|
}]
|
|
24716
25191
|
}
|
|
24717
25192
|
});
|
|
24718
|
-
export { HX_DATE_RANGE_DAY_PRESETS, HX_DATE_RANGE_PRESETS, HX_DENSITIES, HX_DIALOG_DATA, HX_PRIMARY_COLORS, HX_QUICK_SELECT_COMMONLY_USED, HX_QUICK_SELECT_LABELS, HX_SURFACES, HX_SURFACE_NAMES, HX_THEME_OPTIONS, HX_THEME_PRESETS, HxAccordion, HxAccordionContent, HxAccordionHeader, HxAccordionPanel, HxAutoComplete, HxAvatar, HxAvatarGroup, HxBadge, HxBreadcrumb, HxButton, HxButtonGroup, HxCard, HxCarousel, HxCarouselItem, HxCell, HxCheckbox, HxChip, HxColumnHeader, HxConfirmDialog, HxConfirmPopup, HxConfirmationService, HxDataTable, HxDatePicker, HxDateRangeQuickSelect, HxDateTimePicker, HxDateTimeRangePicker, HxDialog, HxDialogRef, HxDialogService, HxDivider, HxDrawer, HxFieldset, HxFileUpload, HxFloatLabel, HxGalleria, HxGalleriaCaption, HxGalleriaItemTemplate, HxGalleriaThumbnail, HxIconField, HxImage, HxImageIndicator, HxInput, HxInputGroup, HxInputGroupAddon, HxInputIcon, HxInputNumber, HxKbd, HxListbox, HxMenu, HxMenubar, HxMessage, HxMessageService, HxMultiSelect, HxOverlayBadge, HxPaginator, HxPanel, HxPassword, HxPopover, HxProgressBar, HxProgressSpinner, HxRadio, HxRating, HxRowExpansion, HxSelect, HxSelectButton, HxSkeleton, HxSlider, HxSplitButton, HxStep, HxStepContent, HxStepList, HxStepPanel, HxStepPanels, HxStepper, HxSwitch, HxTab, HxTabBar, HxTabContent, HxTabList, HxTabPanel, HxTabPanels, HxTable, HxTableBody, HxTableCaption, HxTableEmpty, HxTableFooter, HxTableHeader, HxTabs, HxTag, HxTheme, HxTimePicker, HxTimeline, HxTimelineContent, HxTimelineMarker, HxTimelineOpposite, HxToast, HxToastItem, HxToggleButton, HxToolbar, HxTooltip, HxTree, HxTreeNodeTemplate, compareValues, formatFileSize, hxDateRangePresets, hxParseDateMath, hxRelativeRangeExpressions, hxResolveRangeExpression, hxResolveRangeSide, matchesAccept, provideHxTheme, resolveField };
|
|
25193
|
+
export { HX_DATE_RANGE_DAY_PRESETS, HX_DATE_RANGE_PRESETS, HX_DENSITIES, HX_DIALOG_DATA, HX_PRIMARY_COLORS, HX_QUICK_SELECT_COMMONLY_USED, HX_QUICK_SELECT_LABELS, HX_SURFACES, HX_SURFACE_NAMES, HX_THEME_OPTIONS, HX_THEME_PRESETS, HxAccordion, HxAccordionContent, HxAccordionHeader, HxAccordionPanel, HxAutoComplete, HxAvatar, HxAvatarGroup, HxBadge, HxBreadcrumb, HxButton, HxButtonGroup, HxCard, HxCarousel, HxCarouselItem, HxCell, HxCheckbox, HxChip, HxColumnHeader, HxConfirmDialog, HxConfirmPopup, HxConfirmationService, HxDataTable, HxDatePicker, HxDateRangeQuickSelect, HxDateTimePicker, HxDateTimeRangePicker, HxDialog, HxDialogRef, HxDialogService, HxDivider, HxDrawer, HxField, HxFieldset, HxFileUpload, HxFloatLabel, HxGalleria, HxGalleriaCaption, HxGalleriaItemTemplate, HxGalleriaThumbnail, HxIconField, HxImage, HxImageIndicator, HxInput, HxInputGroup, HxInputGroupAddon, HxInputIcon, HxInputNumber, HxKbd, HxList, HxListRow, HxListbox, HxMenu, HxMenubar, HxMessage, HxMessageService, HxMultiSelect, HxOverlayBadge, HxPaginator, HxPanel, HxPassword, HxPopover, HxProgressBar, HxProgressSpinner, HxRadio, HxRating, HxRowExpansion, HxSelect, HxSelectButton, HxSkeleton, HxSlider, HxSplitButton, HxStep, HxStepContent, HxStepList, HxStepPanel, HxStepPanels, HxStepper, HxSwitch, HxTab, HxTabBar, HxTabContent, HxTabList, HxTabPanel, HxTabPanels, HxTable, HxTableBody, HxTableCaption, HxTableEmpty, HxTableFooter, HxTableHeader, HxTabs, HxTag, HxTheme, HxTimePicker, HxTimeline, HxTimelineContent, HxTimelineMarker, HxTimelineOpposite, HxToast, HxToastItem, HxToggleButton, HxToolbar, HxTooltip, HxTree, HxTreeNodeTemplate, compareValues, formatFileSize, hxDateRangePresets, hxParseDateMath, hxRelativeRangeExpressions, hxResolveRangeExpression, hxResolveRangeSide, matchesAccept, provideHxTheme, resolveField };
|
|
24719
25194
|
|
|
24720
25195
|
//# sourceMappingURL=gravionlabs-helix-ui.mjs.map
|