@thalassic/ui 22.24.0 → 22.26.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/fesm2022/thalassic-ui.mjs +406 -76
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +217 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, ElementRef, model, input, signal, computed, booleanAttribute, Directive, PLATFORM_ID, DestroyRef, numberAttribute, output, viewChild, contentChild, Component, ViewContainerRef, afterNextRender, DOCUMENT, afterRenderEffect, linkedSignal, Injectable, makeEnvironmentProviders, Renderer2, contentChildren, Service, effect, TemplateRef, forwardRef, ChangeDetectorRef, Injector, untracked, isDevMode, RendererStyleFlags2, viewChildren, provideEnvironmentInitializer } from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, ElementRef, model, input, signal, computed, booleanAttribute, Directive, PLATFORM_ID, DestroyRef, numberAttribute, output, viewChild, contentChild, Component, ViewContainerRef, afterNextRender, DOCUMENT, afterRenderEffect, linkedSignal, Injectable, makeEnvironmentProviders, Renderer2, contentChildren, Service, effect, TemplateRef, forwardRef, ChangeDetectorRef, Injector, untracked, isDevMode, RendererStyleFlags2, LOCALE_ID, viewChildren, provideEnvironmentInitializer } from '@angular/core';
|
|
3
3
|
import { CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf, ViewportRuler } from '@angular/cdk/scrolling';
|
|
4
4
|
import { eachDayOfInterval, endOfWeek, endOfMonth, startOfWeek, startOfMonth, startOfDay, isSameMonth, format, isSameDay, addDays, subMonths, subWeeks, isBefore, isAfter, differenceInCalendarDays, addHours, differenceInMinutes, isSameWeek, addMonths, addWeeks, endOfDay, setMonth, subYears, addYears, getYear, getMonth, getHours, getMinutes, setMinutes, setHours, setYear } from 'date-fns';
|
|
5
5
|
import { isPlatformBrowser, NgComponentOutlet, NgTemplateOutlet, LocationStrategy, DOCUMENT as DOCUMENT$1 } from '@angular/common';
|
|
@@ -12,13 +12,14 @@ import { AccordionGroup, AccordionTrigger, AccordionPanel, AccordionContent } fr
|
|
|
12
12
|
import { HttpClient } from '@angular/common/http';
|
|
13
13
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
14
14
|
import * as i1 from '@thalassic/core';
|
|
15
|
-
import { MOTION_ATTRIBUTE, SwipeDirective, MotionService, resolvePagingStep, resistPagingDrag, PanDirective, ViewportService, SWIPE_DEFAULT_MIN_VELOCITY, DRAG_DISMISS_RATIO, PAN_CONFIG, DRAG_DISMISS_POINTER_TYPES, DEFAULT_PAN_CONFIG, deepMerge } from '@thalassic/core';
|
|
15
|
+
import { MOTION_ATTRIBUTE, SwipeDirective, MotionService, resolvePagingStep, resistPagingDrag, PanDirective, ViewportService, SWIPE_DEFAULT_MIN_VELOCITY, DRAG_DISMISS_RATIO, PAN_CONFIG, DRAG_DISMISS_POINTER_TYPES, DEFAULT_PAN_CONFIG, deepMerge, HAPTIC_FEEDBACK } from '@thalassic/core';
|
|
16
16
|
import { Grid, GridRow, GridCell } from '@angular/aria/grid';
|
|
17
|
+
import { InputModalityDetector, ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
17
18
|
import { Directionality } from '@angular/cdk/bidi';
|
|
18
|
-
import { ConfigurableFocusTrapFactory, InputModalityDetector } from '@angular/cdk/a11y';
|
|
19
19
|
import { filter as filter$1 } from 'rxjs/operators';
|
|
20
20
|
import { CdkDialogContainer, DialogRef as DialogRef$1, Dialog as Dialog$1, DIALOG_DATA } from '@angular/cdk/dialog';
|
|
21
21
|
import { Menu as Menu$1, MenuItem } from '@angular/aria/menu';
|
|
22
|
+
import { FORM_FIELD } from '@angular/forms/signals';
|
|
22
23
|
import { Listbox, Option } from '@angular/aria/listbox';
|
|
23
24
|
import { coerceArray } from '@angular/cdk/coercion';
|
|
24
25
|
import * as i1$1 from '@angular/aria/tabs';
|
|
@@ -26,7 +27,8 @@ import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1, TabContent } from '@an
|
|
|
26
27
|
import { CdkTable, CdkHeaderCell, CdkCell, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef } from '@angular/cdk/table';
|
|
27
28
|
|
|
28
29
|
const DEFAULT_ACCESSIBILITY_CONFIG = {
|
|
29
|
-
expandTouchTargets:
|
|
30
|
+
expandTouchTargets: false,
|
|
31
|
+
enlargeTouchControls: false,
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
const ACCESSIBILITY_CONFIG = new InjectionToken('ACCESSIBILITY_CONFIG', {
|
|
@@ -122,6 +124,11 @@ class FormControl {
|
|
|
122
124
|
...(ngDevMode ? [{ debugName: "formItemInputId" }] : /* istanbul ignore next */ []));
|
|
123
125
|
/** Whether this control has a single native labelable element that a `<label for>` can target. */
|
|
124
126
|
supportsLabelFor = false;
|
|
127
|
+
/**
|
|
128
|
+
* Whether every state of the control is itself an answer — on or off, chosen or not — so it can
|
|
129
|
+
* never be left unanswered, and an enclosing form item marks it neither optional nor otherwise.
|
|
130
|
+
*/
|
|
131
|
+
alwaysAnswered = false;
|
|
125
132
|
/** Combined `aria-describedby` value (consumer description + form-item hint and error), or null when empty. */
|
|
126
133
|
describedBy = computed(() => {
|
|
127
134
|
const ids = [];
|
|
@@ -272,6 +279,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
272
279
|
}] });
|
|
273
280
|
|
|
274
281
|
class CheckboxFormControl extends FormControl {
|
|
282
|
+
/** Unchecked is as much an answer as checked, so the control is never left unanswered. */
|
|
283
|
+
alwaysAnswered = true;
|
|
275
284
|
controlClasses = computed(() => {
|
|
276
285
|
const classes = this.baseControlClasses();
|
|
277
286
|
if (this.checked())
|
|
@@ -684,9 +693,41 @@ const createNowSignal = (intervalMs) => {
|
|
|
684
693
|
return now.asReadonly();
|
|
685
694
|
};
|
|
686
695
|
|
|
696
|
+
/**
|
|
697
|
+
* How many digits a number carries after its decimal point, read from its
|
|
698
|
+
* shortest round-trip form, so `0.1` has one even though its binary value does
|
|
699
|
+
* not end there.
|
|
700
|
+
*
|
|
701
|
+
* @example
|
|
702
|
+
* decimalPlaces(5); // 0
|
|
703
|
+
* decimalPlaces(0.25); // 2
|
|
704
|
+
* decimalPlaces(1e-7); // 7 — exponent notation, not the "1e-7" text
|
|
705
|
+
*/
|
|
706
|
+
const decimalPlaces = (value) => {
|
|
707
|
+
const [mantissa, exponent] = String(Math.abs(value)).split('e');
|
|
708
|
+
const [, fraction = ''] = mantissa.split('.');
|
|
709
|
+
return Math.max(0, fraction.length - Number(exponent ?? 0));
|
|
710
|
+
};
|
|
711
|
+
|
|
687
712
|
/** Escapes RegExp metacharacters so the string matches literally inside a pattern. */
|
|
688
713
|
const escapeRegularExpression = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
689
714
|
|
|
715
|
+
/**
|
|
716
|
+
* `booleanAttribute` for an input whose absence means something: an unwritten
|
|
717
|
+
* input stays `undefined` instead of collapsing to `false`, so the component can
|
|
718
|
+
* fall back to a configured default only where the template said nothing.
|
|
719
|
+
*
|
|
720
|
+
* @example
|
|
721
|
+
* optionalBooleanAttribute(undefined); // undefined — not written
|
|
722
|
+
* optionalBooleanAttribute(''); // true — the bare attribute
|
|
723
|
+
* optionalBooleanAttribute(false); // false — an explicit binding
|
|
724
|
+
*/
|
|
725
|
+
const optionalBooleanAttribute = (value) => {
|
|
726
|
+
if (value === undefined)
|
|
727
|
+
return undefined;
|
|
728
|
+
return booleanAttribute(value);
|
|
729
|
+
};
|
|
730
|
+
|
|
690
731
|
/**
|
|
691
732
|
* Drops `id` from `element`'s `aria-describedby`, leaving the consumer's own descriptions in
|
|
692
733
|
* place and removing the attribute only once nothing is left in it.
|
|
@@ -1019,6 +1060,21 @@ function disposeAfterLeaveAnimation(overlayRef) {
|
|
|
1019
1060
|
});
|
|
1020
1061
|
}
|
|
1021
1062
|
|
|
1063
|
+
/**
|
|
1064
|
+
* Fades a modal overlay's backdrop out alongside the surface's own exit, rather
|
|
1065
|
+
* than leaving it at full strength until the overlay is disposed and it vanishes
|
|
1066
|
+
* in a single frame. The fade is the stylesheet's backdrop transition, so it
|
|
1067
|
+
* follows the motion level like the rest of the exit. Written inline because a
|
|
1068
|
+
* drag may already have left an inline opacity on the backdrop, which no
|
|
1069
|
+
* stylesheet rule could override, and may have suspended its transition inline.
|
|
1070
|
+
*/
|
|
1071
|
+
function fadeOutBackdrop(backdrop, renderer) {
|
|
1072
|
+
if (backdrop === null)
|
|
1073
|
+
return;
|
|
1074
|
+
renderer.removeStyle(backdrop, 'transition');
|
|
1075
|
+
renderer.setStyle(backdrop, 'opacity', '0');
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1022
1078
|
/**
|
|
1023
1079
|
* Dimmed backdrop behind any modal-grade surface — a centered confirm, a
|
|
1024
1080
|
* bottom sheet. Shared with `tls-dialog` so every modal surface renders an
|
|
@@ -2663,6 +2719,7 @@ class TooltipTrigger {
|
|
|
2663
2719
|
_tooltipService = inject(TooltipService);
|
|
2664
2720
|
_renderer = inject(Renderer2);
|
|
2665
2721
|
_config = inject(TOOLTIP_CONFIG);
|
|
2722
|
+
_inputModalityDetector = inject(InputModalityDetector);
|
|
2666
2723
|
// Inputs
|
|
2667
2724
|
tooltipDisabled = input(false, /* @ts-ignore */
|
|
2668
2725
|
...(ngDevMode ? [{ debugName: "tooltipDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -2769,6 +2826,20 @@ class TooltipTrigger {
|
|
|
2769
2826
|
_followsPointer() {
|
|
2770
2827
|
return Date.now() - this._lastPointerAt < TOUCH_HANDOVER_WINDOW_MS;
|
|
2771
2828
|
}
|
|
2829
|
+
/**
|
|
2830
|
+
* Whether a focus arriving now came from the keyboard — the one reader the
|
|
2831
|
+
* focus trigger serves. Focus handed over by a press on the control is not it:
|
|
2832
|
+
* a tap's tooltip was already told not to claim the activation, and a click's
|
|
2833
|
+
* would outlive the hover that click just retired. Neither is focus a script
|
|
2834
|
+
* moves while a pointer is in use, such as a closing dialog returning it to its
|
|
2835
|
+
* opener after a tap on the backdrop: the latest input says which it was.
|
|
2836
|
+
*/
|
|
2837
|
+
_isKeyboardFocus() {
|
|
2838
|
+
if (this._followsPointer())
|
|
2839
|
+
return false;
|
|
2840
|
+
const modality = this._inputModalityDetector.mostRecentModality;
|
|
2841
|
+
return modality !== 'mouse' && modality !== 'touch';
|
|
2842
|
+
}
|
|
2772
2843
|
/** Whether the element is, or wraps, a control a tap activates. */
|
|
2773
2844
|
_isInteractive(element) {
|
|
2774
2845
|
const interactiveSelector = 'button, a[href], input, select, textarea, [role="button"]';
|
|
@@ -3003,11 +3074,7 @@ class TooltipDelegateDirective extends TooltipTrigger {
|
|
|
3003
3074
|
const item = this._resolveItem(event.target);
|
|
3004
3075
|
if (!item)
|
|
3005
3076
|
return;
|
|
3006
|
-
|
|
3007
|
-
// focus handed over by a tap or a click is not that reader — a tap's
|
|
3008
|
-
// tooltip was already told not to claim the activation, and a click's
|
|
3009
|
-
// would outlive the hover that click just retired.
|
|
3010
|
-
if (this._followsPointer())
|
|
3077
|
+
if (!this._isKeyboardFocus())
|
|
3011
3078
|
return;
|
|
3012
3079
|
// No cursor to anchor to; a focus-triggered tooltip always anchors to the item. An item that
|
|
3013
3080
|
// is a composite holds the control focus actually landed on, and that is what it describes.
|
|
@@ -3140,11 +3207,7 @@ class TooltipDirective extends TooltipTrigger {
|
|
|
3140
3207
|
// whose <button> is inside the template — would never hear about the focus its own tooltip
|
|
3141
3208
|
// is for. `focusin` does, and the control that took focus is what the tooltip describes.
|
|
3142
3209
|
const focused = event.target;
|
|
3143
|
-
|
|
3144
|
-
// focus handed over by a tap or a click is not that reader — a tap's
|
|
3145
|
-
// tooltip was already told not to claim the activation, and a click's
|
|
3146
|
-
// would outlive the hover that click just retired.
|
|
3147
|
-
if (this._followsPointer())
|
|
3210
|
+
if (!this._isKeyboardFocus())
|
|
3148
3211
|
return;
|
|
3149
3212
|
// No cursor to anchor to; a focus-triggered tooltip always anchors to the element.
|
|
3150
3213
|
this._showHost('focus', null, focused instanceof HTMLElement ? focused : null);
|
|
@@ -3672,6 +3735,13 @@ class Badge {
|
|
|
3672
3735
|
hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3673
3736
|
inset = input(false, { ...(ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3674
3737
|
bordered = input(false, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3738
|
+
/**
|
|
3739
|
+
* Sets the indicator in the flow of the content instead of over a corner of
|
|
3740
|
+
* it — a standalone count, such as one at the end of a list row or beside a
|
|
3741
|
+
* label, where there is no element for it to decorate. `position` and
|
|
3742
|
+
* `inset` have nothing to place it against then and are ignored.
|
|
3743
|
+
*/
|
|
3744
|
+
inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3675
3745
|
ariaLabel = input(undefined, /* @ts-ignore */
|
|
3676
3746
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
3677
3747
|
// Computed
|
|
@@ -3718,18 +3788,20 @@ class Badge {
|
|
|
3718
3788
|
array.push(`${className}--inset`);
|
|
3719
3789
|
if (this.bordered())
|
|
3720
3790
|
array.push(`${className}--bordered`);
|
|
3791
|
+
if (this.inline())
|
|
3792
|
+
array.push(`${className}--inline`);
|
|
3721
3793
|
return array;
|
|
3722
3794
|
}, /* @ts-ignore */
|
|
3723
3795
|
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
3724
3796
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3725
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Badge, isStandalone: true, selector: "tls-badge", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", isSignal: true, isRequired: false, transformFunction: null }, showZero: { classPropertyName: "showZero", publicName: "showZero", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<ng-content />\n\n@if (visible()) {\n <span\n class=\"tls-badge__indicator\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n animate.enter=\"tls-badge__indicator--enter\"\n animate.leave=\"tls-badge__indicator--leave\"\n >\n @if (!dot()) {\n {{ displayValue() }}\n }\n </span>\n}\n" });
|
|
3797
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Badge, isStandalone: true, selector: "tls-badge", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", isSignal: true, isRequired: false, transformFunction: null }, showZero: { classPropertyName: "showZero", publicName: "showZero", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, inset: { classPropertyName: "inset", publicName: "inset", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<ng-content />\n\n@if (visible()) {\n <span\n class=\"tls-badge__indicator\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n animate.enter=\"tls-badge__indicator--enter\"\n animate.leave=\"tls-badge__indicator--leave\"\n >\n @if (!dot()) {\n {{ displayValue() }}\n }\n </span>\n}\n" });
|
|
3726
3798
|
}
|
|
3727
3799
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, decorators: [{
|
|
3728
3800
|
type: Component,
|
|
3729
3801
|
args: [{ selector: 'tls-badge', imports: [], host: {
|
|
3730
3802
|
'[class]': 'hostClasses()',
|
|
3731
3803
|
}, template: "<ng-content />\n\n@if (visible()) {\n <span\n class=\"tls-badge__indicator\"\n role=\"status\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n animate.enter=\"tls-badge__indicator--enter\"\n animate.leave=\"tls-badge__indicator--leave\"\n >\n @if (!dot()) {\n {{ displayValue() }}\n }\n </span>\n}\n" }]
|
|
3732
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "dot", required: false }] }], showZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "showZero", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
3804
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "dot", required: false }] }], showZero: [{ type: i0.Input, args: [{ isSignal: true, alias: "showZero", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], inset: [{ type: i0.Input, args: [{ isSignal: true, alias: "inset", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
3733
3805
|
|
|
3734
3806
|
const DEFAULT_BREADCRUMBS_CONFIG = {
|
|
3735
3807
|
separatorIcon: 'chevron-right',
|
|
@@ -3897,6 +3969,7 @@ const DEFAULT_BUTTON_CONFIG = {
|
|
|
3897
3969
|
size: 'md',
|
|
3898
3970
|
type: 'button',
|
|
3899
3971
|
fluid: false,
|
|
3972
|
+
iconRounded: false,
|
|
3900
3973
|
};
|
|
3901
3974
|
|
|
3902
3975
|
const BUTTON_CONFIG = new InjectionToken('BUTTON_CONFIG', {
|
|
@@ -3941,7 +4014,12 @@ class ButtonBase {
|
|
|
3941
4014
|
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
3942
4015
|
size = input(this._config.size, /* @ts-ignore */
|
|
3943
4016
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
3944
|
-
|
|
4017
|
+
/**
|
|
4018
|
+
* Rounds the button's ends fully: a pill for a labelled button, a circle for an icon-only
|
|
4019
|
+
* one. Left unset, an icon-only button takes the configured `iconRounded` and any other
|
|
4020
|
+
* keeps its corners; an explicit `[rounded]="false"` keeps them on an icon-only button too.
|
|
4021
|
+
*/
|
|
4022
|
+
rounded = input(undefined, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: optionalBooleanAttribute });
|
|
3945
4023
|
/** Whether the button stretches to fill its container's width. */
|
|
3946
4024
|
fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3947
4025
|
/**
|
|
@@ -3958,6 +4036,9 @@ class ButtonBase {
|
|
|
3958
4036
|
...(ngDevMode ? [{ debugName: "unavailable" }] : /* istanbul ignore next */ []));
|
|
3959
4037
|
ariaDisabled = computed(() => (this.unavailable() ? 'true' : null), /* @ts-ignore */
|
|
3960
4038
|
...(ngDevMode ? [{ debugName: "ariaDisabled" }] : /* istanbul ignore next */ []));
|
|
4039
|
+
/** The shape in force: the input where written, otherwise the configured default. */
|
|
4040
|
+
isRounded = computed(() => this.rounded() ?? (this.icon() && this._config.iconRounded), /* @ts-ignore */
|
|
4041
|
+
...(ngDevMode ? [{ debugName: "isRounded" }] : /* istanbul ignore next */ []));
|
|
3961
4042
|
classes = computed(() => {
|
|
3962
4043
|
const className = 'tls-button';
|
|
3963
4044
|
const array = [className];
|
|
@@ -3975,7 +4056,7 @@ class ButtonBase {
|
|
|
3975
4056
|
array.push(`${className}--fluid`);
|
|
3976
4057
|
if (this.stretch())
|
|
3977
4058
|
array.push(`${className}--stretch`);
|
|
3978
|
-
if (this.
|
|
4059
|
+
if (this.isRounded())
|
|
3979
4060
|
array.push(`${className}--rounded`);
|
|
3980
4061
|
return array;
|
|
3981
4062
|
}, /* @ts-ignore */
|
|
@@ -5851,7 +5932,7 @@ class ConfirmPanel {
|
|
|
5851
5932
|
variant: source.variant ?? slotDefault.variant ?? this._buttonConfig.variant,
|
|
5852
5933
|
size: source.size ?? slotDefault.size ?? this._buttonConfig.size,
|
|
5853
5934
|
icon: source.icon ?? slotDefault.icon ?? false,
|
|
5854
|
-
rounded: source.rounded ?? slotDefault.rounded
|
|
5935
|
+
rounded: source.rounded ?? slotDefault.rounded,
|
|
5855
5936
|
fluid: source.fluid ?? slotDefault.fluid ?? false,
|
|
5856
5937
|
disabled: source.disabled ?? slotDefault.disabled ?? false,
|
|
5857
5938
|
};
|
|
@@ -6233,6 +6314,8 @@ class Dialog extends CdkDialogContainer {
|
|
|
6233
6314
|
// Injections
|
|
6234
6315
|
_tlsConfig = inject(DIALOG_CONFIG);
|
|
6235
6316
|
_dialogRef = inject(DialogRef$1);
|
|
6317
|
+
/** Named apart from the CDK container's own `_renderer`, which is private to it. */
|
|
6318
|
+
_renderer2 = inject(Renderer2);
|
|
6236
6319
|
// State
|
|
6237
6320
|
_state = signal('enter', /* @ts-ignore */
|
|
6238
6321
|
...(ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []));
|
|
@@ -6259,6 +6342,7 @@ class Dialog extends CdkDialogContainer {
|
|
|
6259
6342
|
return;
|
|
6260
6343
|
this._closing = true;
|
|
6261
6344
|
this._state.set('leave');
|
|
6345
|
+
fadeOutBackdrop(this._dialogRef.overlayRef.backdropElement, this._renderer2);
|
|
6262
6346
|
afterLeaveAnimation(this._elementRef.nativeElement, () => this._dialogRef.close(result));
|
|
6263
6347
|
}
|
|
6264
6348
|
// Protected methods
|
|
@@ -6669,10 +6753,12 @@ class SheetMotion {
|
|
|
6669
6753
|
*/
|
|
6670
6754
|
const DRAWER_NAMED_SIZES = ['sm', 'md', 'lg', 'full', 'auto'];
|
|
6671
6755
|
/**
|
|
6672
|
-
*
|
|
6673
|
-
*
|
|
6756
|
+
* Tokens the slide from an origin is timed by — the same the plain slide uses,
|
|
6757
|
+
* so a drawer moves alike whichever way it opened. The durations are the
|
|
6758
|
+
* drawer's own, since a side may set a pace of its own.
|
|
6674
6759
|
*/
|
|
6675
|
-
const
|
|
6760
|
+
const DRAWER_SLIDE_ENTER_DURATION_TOKEN = '--tls-drawer-enter-duration';
|
|
6761
|
+
const DRAWER_SLIDE_LEAVE_DURATION_TOKEN = '--tls-drawer-leave-duration';
|
|
6676
6762
|
const DRAWER_SLIDE_ENTER_EASING_TOKEN = '--motion-ease-out';
|
|
6677
6763
|
const DRAWER_SLIDE_LEAVE_EASING_TOKEN = '--motion-ease-in';
|
|
6678
6764
|
/**
|
|
@@ -6738,12 +6824,14 @@ function offscreenOffset(panel, side, isRtl) {
|
|
|
6738
6824
|
}
|
|
6739
6825
|
}
|
|
6740
6826
|
/**
|
|
6741
|
-
* The slide's timing in one direction, from the
|
|
6742
|
-
*
|
|
6827
|
+
* The slide's timing in one direction, from the panel's slide tokens as it
|
|
6828
|
+
* resolves them — its side may set a pace of its own: easing out on the way
|
|
6829
|
+
* in, in on the way out.
|
|
6743
6830
|
*/
|
|
6744
6831
|
function readSlideTiming(panel, direction) {
|
|
6745
6832
|
const style = getComputedStyle(panel);
|
|
6746
|
-
const
|
|
6833
|
+
const durationToken = direction === 'enter' ? DRAWER_SLIDE_ENTER_DURATION_TOKEN : DRAWER_SLIDE_LEAVE_DURATION_TOKEN;
|
|
6834
|
+
const duration = style.getPropertyValue(durationToken).trim();
|
|
6747
6835
|
const easingToken = direction === 'enter' ? DRAWER_SLIDE_ENTER_EASING_TOKEN : DRAWER_SLIDE_LEAVE_EASING_TOKEN;
|
|
6748
6836
|
const easing = style.getPropertyValue(easingToken).trim();
|
|
6749
6837
|
return {
|
|
@@ -7109,6 +7197,9 @@ class Drawer extends CdkDialogContainer {
|
|
|
7109
7197
|
}
|
|
7110
7198
|
this._closing = true;
|
|
7111
7199
|
const host = this._elementRef.nativeElement;
|
|
7200
|
+
// Every exit from here on — reversing an entrance, sliding off-screen or
|
|
7201
|
+
// back into the origin — takes the dimming with it.
|
|
7202
|
+
fadeOutBackdrop(this._dialogRef.overlayRef.backdropElement, this._dragRenderer);
|
|
7112
7203
|
const running = this._entrance.filter(animation => animation.playState === 'running');
|
|
7113
7204
|
if (running.length) {
|
|
7114
7205
|
this._reverseEntrance(running, result);
|
|
@@ -8135,6 +8226,12 @@ class FormItem {
|
|
|
8135
8226
|
_config = inject(FORM_ITEM_CONFIG);
|
|
8136
8227
|
control = contentChild(FORM_CONTROL, /* @ts-ignore */
|
|
8137
8228
|
...(ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []));
|
|
8229
|
+
/**
|
|
8230
|
+
* The signal-forms bindings among the projected content. A group can seat bound and unbound
|
|
8231
|
+
* controls side by side, so these are matched to the control by element rather than taken as
|
|
8232
|
+
* the control's own.
|
|
8233
|
+
*/
|
|
8234
|
+
_formFields = contentChildren(FORM_FIELD, { ...(ngDevMode ? { debugName: "_formFields" } : /* istanbul ignore next */ {}), descendants: true });
|
|
8138
8235
|
/**
|
|
8139
8236
|
* Content of the label, rendered inside the item's own `<label>` element so the `for` /
|
|
8140
8237
|
* `aria-labelledby` wiring is kept. Replaces the label text and the required / optional markers.
|
|
@@ -8171,6 +8268,7 @@ class FormItem {
|
|
|
8171
8268
|
...(ngDevMode ? [{ debugName: "displayErrors" }] : /* istanbul ignore next */ []));
|
|
8172
8269
|
showRequiredMarker = input(this._config.showRequiredMarker, /* @ts-ignore */
|
|
8173
8270
|
...(ngDevMode ? [{ debugName: "showRequiredMarker" }] : /* istanbul ignore next */ []));
|
|
8271
|
+
/** Text beside the label of a question that may be skipped; see `FormItemConfig.optionalText`. */
|
|
8174
8272
|
optionalText = input(this._config.optionalText, /* @ts-ignore */
|
|
8175
8273
|
...(ngDevMode ? [{ debugName: "optionalText" }] : /* istanbul ignore next */ []));
|
|
8176
8274
|
/**
|
|
@@ -8205,13 +8303,18 @@ class FormItem {
|
|
|
8205
8303
|
return this.showRequiredMarker() && control.required();
|
|
8206
8304
|
}, /* @ts-ignore */
|
|
8207
8305
|
...(ngDevMode ? [{ debugName: "showRequired" }] : /* istanbul ignore next */ []));
|
|
8306
|
+
/**
|
|
8307
|
+
* Whether the label carries the optional marker: only for a control that edits a form's field,
|
|
8308
|
+
* can be left unanswered, and is not required — a setting or a toggle has nothing to skip.
|
|
8309
|
+
*/
|
|
8208
8310
|
showOptional = computed(() => {
|
|
8209
8311
|
const control = this.control();
|
|
8210
|
-
if (!control)
|
|
8312
|
+
if (!control || !this.optionalText() || control.alwaysAnswered)
|
|
8211
8313
|
return false;
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8314
|
+
// A control bound to a plain value is a setting, not a question to answer.
|
|
8315
|
+
const element = control.elementRef.nativeElement;
|
|
8316
|
+
const isFormField = this._formFields().some((formField) => formField.element === element);
|
|
8317
|
+
return isFormField && !control.required();
|
|
8215
8318
|
}, /* @ts-ignore */
|
|
8216
8319
|
...(ngDevMode ? [{ debugName: "showOptional" }] : /* istanbul ignore next */ []));
|
|
8217
8320
|
/** Whether a label is rendered, from either the `label` input or a custom label template. */
|
|
@@ -8241,6 +8344,10 @@ class FormItem {
|
|
|
8241
8344
|
if (this.spread())
|
|
8242
8345
|
array.push(`${className}--spread`);
|
|
8243
8346
|
}
|
|
8347
|
+
// Set by whether a hint is configured, never by what the footer shows now: an
|
|
8348
|
+
// error taking the hint's place must not change the row's layout.
|
|
8349
|
+
if (this.hint())
|
|
8350
|
+
array.push(`${className}--has-hint`);
|
|
8244
8351
|
if (this.reserveErrorSpace())
|
|
8245
8352
|
array.push(`${className}--error-space-reserved`);
|
|
8246
8353
|
if (this.reserveLabelSpace())
|
|
@@ -8316,12 +8423,29 @@ class FormItem {
|
|
|
8316
8423
|
return array;
|
|
8317
8424
|
}
|
|
8318
8425
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8319
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: FormItem, isStandalone: true, selector: "tls-form-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, spread: { classPropertyName: "spread", publicName: "spread", isSignal: true, isRequired: false, transformFunction: null }, reserveErrorSpace: { classPropertyName: "reserveErrorSpace", publicName: "reserveErrorSpace", isSignal: true, isRequired: false, transformFunction: null }, reserveLabelSpace: { classPropertyName: "reserveLabelSpace", publicName: "reserveLabelSpace", isSignal: true, isRequired: false, transformFunction: null }, displayErrors: { classPropertyName: "displayErrors", publicName: "displayErrors", isSignal: true, isRequired: false, transformFunction: null }, showRequiredMarker: { classPropertyName: "showRequiredMarker", publicName: "showRequiredMarker", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "control", first: true, predicate: FORM_CONTROL, descendants: true, isSignal: true }, { propertyName: "labelTemplate", first: true, predicate: ["labelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"form-item-main\">\n @if (hasLabel() || reserveLabelSpace()) {\n <label class=\"form-item-label\" [id]=\"labelId\" [attr.for]=\"labelFor()\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"labelContext()\" />\n } @else {\n <span class=\"form-item-label__text\">{{ label() }}</span>\n @if (showRequired()) {\n <span class=\"form-item-label__required\">*</span>\n } @else if (showOptional()) {\n <span class=\"form-item-label__optional\">{{ optionalText() }}</span>\n }\n }\n </label>\n }\n <div class=\"form-item-control\">\n <ng-content></ng-content>\n </div>\n</div>\n@if (reserveErrorSpace() || showError() || showHint() || hasCounter()) {\n <small class=\"form-item-footer\">\n @if (showError()) {\n <span class=\"form-item-error\">\n <span class=\"form-item-error__text\" [id]=\"errorId\">\n {{ firstErrorMessage() }}\n </span>\n </span>\n } @else if (showHint()) {\n <span class=\"form-item-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n @if (hasCounter()) {\n <span\n class=\"form-item-counter\"\n [class.form-item-counter--over]=\"overLimit()\"\n >{{ characterCount() }}/{{ maxLength() }}</span>\n }\n </small>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8426
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: FormItem, isStandalone: true, selector: "tls-form-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, spread: { classPropertyName: "spread", publicName: "spread", isSignal: true, isRequired: false, transformFunction: null }, reserveErrorSpace: { classPropertyName: "reserveErrorSpace", publicName: "reserveErrorSpace", isSignal: true, isRequired: false, transformFunction: null }, reserveLabelSpace: { classPropertyName: "reserveLabelSpace", publicName: "reserveLabelSpace", isSignal: true, isRequired: false, transformFunction: null }, displayErrors: { classPropertyName: "displayErrors", publicName: "displayErrors", isSignal: true, isRequired: false, transformFunction: null }, showRequiredMarker: { classPropertyName: "showRequiredMarker", publicName: "showRequiredMarker", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "control", first: true, predicate: FORM_CONTROL, descendants: true, isSignal: true }, { propertyName: "_formFields", predicate: FORM_FIELD, descendants: true, isSignal: true }, { propertyName: "labelTemplate", first: true, predicate: ["labelTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"form-item-main\">\n @if (hasLabel() || reserveLabelSpace()) {\n <label class=\"form-item-label\" [id]=\"labelId\" [attr.for]=\"labelFor()\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"labelContext()\" />\n } @else {\n <span class=\"form-item-label__text\">{{ label() }}</span>\n @if (showRequired()) {\n <span class=\"form-item-label__required\">*</span>\n } @else if (showOptional()) {\n <span class=\"form-item-label__optional\">{{ optionalText() }}</span>\n }\n }\n </label>\n }\n <div class=\"form-item-control\">\n <ng-content></ng-content>\n </div>\n</div>\n@if (reserveErrorSpace() || showError() || showHint() || hasCounter()) {\n <small class=\"form-item-footer\">\n @if (showError()) {\n <span class=\"form-item-error\">\n <span class=\"form-item-error__text\" [id]=\"errorId\">\n {{ firstErrorMessage() }}\n </span>\n </span>\n } @else if (showHint()) {\n <span class=\"form-item-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n @if (hasCounter()) {\n <span\n class=\"form-item-counter\"\n [class.form-item-counter--over]=\"overLimit()\"\n >{{ characterCount() }}/{{ maxLength() }}</span>\n }\n </small>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8320
8427
|
}
|
|
8321
8428
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormItem, decorators: [{
|
|
8322
8429
|
type: Component,
|
|
8323
8430
|
args: [{ selector: 'tls-form-item', imports: [NgTemplateOutlet], host: { '[class]': 'hostClasses()' }, template: "<div class=\"form-item-main\">\n @if (hasLabel() || reserveLabelSpace()) {\n <label class=\"form-item-label\" [id]=\"labelId\" [attr.for]=\"labelFor()\">\n @if (labelTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"labelContext()\" />\n } @else {\n <span class=\"form-item-label__text\">{{ label() }}</span>\n @if (showRequired()) {\n <span class=\"form-item-label__required\">*</span>\n } @else if (showOptional()) {\n <span class=\"form-item-label__optional\">{{ optionalText() }}</span>\n }\n }\n </label>\n }\n <div class=\"form-item-control\">\n <ng-content></ng-content>\n </div>\n</div>\n@if (reserveErrorSpace() || showError() || showHint() || hasCounter()) {\n <small class=\"form-item-footer\">\n @if (showError()) {\n <span class=\"form-item-error\">\n <span class=\"form-item-error__text\" [id]=\"errorId\">\n {{ firstErrorMessage() }}\n </span>\n </span>\n } @else if (showHint()) {\n <span class=\"form-item-hint\" [id]=\"hintId\">{{ hint() }}</span>\n }\n @if (hasCounter()) {\n <span\n class=\"form-item-counter\"\n [class.form-item-counter--over]=\"overLimit()\"\n >{{ characterCount() }}/{{ maxLength() }}</span>\n }\n </small>\n}\n" }]
|
|
8324
|
-
}], ctorParameters: () => [], propDecorators: { control: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FORM_CONTROL), { isSignal: true }] }], labelTemplate: [{ type: i0.ContentChild, args: ['labelTemplate', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], spread: [{ type: i0.Input, args: [{ isSignal: true, alias: "spread", required: false }] }], reserveErrorSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserveErrorSpace", required: false }] }], reserveLabelSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserveLabelSpace", required: false }] }], displayErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayErrors", required: false }] }], showRequiredMarker: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredMarker", required: false }] }], optionalText: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionalText", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }] } });
|
|
8431
|
+
}], ctorParameters: () => [], propDecorators: { control: [{ type: i0.ContentChild, args: [i0.forwardRef(() => FORM_CONTROL), { isSignal: true }] }], _formFields: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => FORM_FIELD), { ...{ descendants: true }, isSignal: true }] }], labelTemplate: [{ type: i0.ContentChild, args: ['labelTemplate', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], spread: [{ type: i0.Input, args: [{ isSignal: true, alias: "spread", required: false }] }], reserveErrorSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserveErrorSpace", required: false }] }], reserveLabelSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserveLabelSpace", required: false }] }], displayErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "displayErrors", required: false }] }], showRequiredMarker: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRequiredMarker", required: false }] }], optionalText: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionalText", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }] } });
|
|
8432
|
+
|
|
8433
|
+
/**
|
|
8434
|
+
* Overrides the form item config for one part of the view tree: listed in a component's or a
|
|
8435
|
+
* directive's `providers`, it applies to every `tls-form-item` beneath it, on top of whatever
|
|
8436
|
+
* the surrounding scope configures — the app-wide `provideThalassicUIConfig`, or an enclosing
|
|
8437
|
+
* override. Keys set to `undefined` are cleared, so `{ optionalText: undefined }` drops the
|
|
8438
|
+
* optional marker from a form whose every field may be skipped.
|
|
8439
|
+
*
|
|
8440
|
+
* @example
|
|
8441
|
+
* // App-wide: formItem: { optionalText: '(optional)', reserveErrorSpace: false }
|
|
8442
|
+
* @Component({ providers: [provideFormItemConfig({ optionalText: undefined })] })
|
|
8443
|
+
* // Inside: no optional marker, and still no reserved error space.
|
|
8444
|
+
*/
|
|
8445
|
+
const provideFormItemConfig = (config) => ({
|
|
8446
|
+
provide: FORM_ITEM_CONFIG,
|
|
8447
|
+
useFactory: () => deepMerge(inject(FORM_ITEM_CONFIG, { skipSelf: true }), config),
|
|
8448
|
+
});
|
|
8325
8449
|
|
|
8326
8450
|
const DEFAULT_AUTOCOMPLETE_CONFIG = {
|
|
8327
8451
|
size: 'md',
|
|
@@ -8788,6 +8912,8 @@ class ColorRange extends ValueFormControl {
|
|
|
8788
8912
|
_config = inject(COLOR_RANGE_CONFIG);
|
|
8789
8913
|
CLASS_NAME = 'tls-color-range';
|
|
8790
8914
|
supportsLabelFor = true;
|
|
8915
|
+
/** A colour range always rests on some value along its scale, so the control is never left unanswered. */
|
|
8916
|
+
alwaysAnswered = true;
|
|
8791
8917
|
// Inputs
|
|
8792
8918
|
value = model(0, /* @ts-ignore */
|
|
8793
8919
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -10609,16 +10735,65 @@ const DEFAULT_INPUT_NUMBER_CONFIG = {
|
|
|
10609
10735
|
placeholder: '',
|
|
10610
10736
|
fluid: false,
|
|
10611
10737
|
step: 1,
|
|
10612
|
-
hideArrows: true,
|
|
10613
10738
|
};
|
|
10614
10739
|
|
|
10615
10740
|
const INPUT_NUMBER_CONFIG = new InjectionToken('INPUT_NUMBER_CONFIG', {
|
|
10616
10741
|
factory: () => DEFAULT_INPUT_NUMBER_CONFIG,
|
|
10617
10742
|
});
|
|
10618
10743
|
|
|
10744
|
+
/**
|
|
10745
|
+
* Whether `text` is a number on its way to being typed — empty, a lone sign,
|
|
10746
|
+
* digits with or without a trailing separator — that the field may hold.
|
|
10747
|
+
*
|
|
10748
|
+
* Both `.` and `,` count as the decimal separator in every locale. The field
|
|
10749
|
+
* never groups digits, so a comma cannot be a thousands separator in it; and
|
|
10750
|
+
* the separator a virtual keypad offers follows the device's region, not the
|
|
10751
|
+
* page's language, so either may arrive.
|
|
10752
|
+
*
|
|
10753
|
+
* @example
|
|
10754
|
+
* isPartialNumberText('-', { allowsNegative: true, allowsFraction: true }); // true
|
|
10755
|
+
* isPartialNumberText('62,', { allowsNegative: false, allowsFraction: true }); // true
|
|
10756
|
+
* isPartialNumberText('6.2', { allowsNegative: false, allowsFraction: false }); // false — whole numbers only
|
|
10757
|
+
* isPartialNumberText('1.2.3', { allowsNegative: true, allowsFraction: true }); // false — two separators
|
|
10758
|
+
*/
|
|
10759
|
+
const isPartialNumberText = (text, rules) => {
|
|
10760
|
+
const sign = rules.allowsNegative ? '-?' : '';
|
|
10761
|
+
const fraction = rules.allowsFraction ? '(?:[.,]\\d*)?' : '';
|
|
10762
|
+
return new RegExp(`^${sign}\\d*${fraction}$`).test(text);
|
|
10763
|
+
};
|
|
10764
|
+
/**
|
|
10765
|
+
* The number partial text stands for, or null while it holds no digit yet.
|
|
10766
|
+
*
|
|
10767
|
+
* @example
|
|
10768
|
+
* parseNumberText('62,5'); // 62.5
|
|
10769
|
+
* parseNumberText('-'); // null
|
|
10770
|
+
* parseNumberText('3.'); // 3
|
|
10771
|
+
*/
|
|
10772
|
+
const parseNumberText = (text) => {
|
|
10773
|
+
if (!/\d/.test(text))
|
|
10774
|
+
return null;
|
|
10775
|
+
const parsed = Number(text.replace(',', '.'));
|
|
10776
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
10777
|
+
};
|
|
10778
|
+
|
|
10779
|
+
/**
|
|
10780
|
+
* A field for a number, typed as text the field reads itself — the model React
|
|
10781
|
+
* Aria's and Base UI's number fields follow — rather than a native
|
|
10782
|
+
* `type="number"`, which reads the decimal separator by its own rules: WebKit
|
|
10783
|
+
* drops a typed comma, turning `62,5` into `625`, and Chromium rejects it,
|
|
10784
|
+
* while the decimal keypad of a device set to a comma region offers nothing
|
|
10785
|
+
* else. Here either separator reads as the decimal point, the value is shown
|
|
10786
|
+
* in the page's locale, and the virtual keyboard is the one the number needs.
|
|
10787
|
+
*
|
|
10788
|
+
* The step sets the precision: a whole step takes whole numbers, a fractional
|
|
10789
|
+
* one decimals. A minimum below zero, or none, admits a sign. ArrowUp and
|
|
10790
|
+
* ArrowDown move the value by a step, as a native number field's do; a typed
|
|
10791
|
+
* value is clamped into `[min, max]` once committed.
|
|
10792
|
+
*/
|
|
10619
10793
|
class InputNumber extends ValueFormControl {
|
|
10620
10794
|
// Injections
|
|
10621
10795
|
_config = inject(INPUT_NUMBER_CONFIG);
|
|
10796
|
+
_localeId = inject(LOCALE_ID);
|
|
10622
10797
|
supportsLabelFor = true;
|
|
10623
10798
|
// Inputs
|
|
10624
10799
|
value = model(null, /* @ts-ignore */
|
|
@@ -10635,7 +10810,28 @@ class InputNumber extends ValueFormControl {
|
|
|
10635
10810
|
max = input(undefined, /* @ts-ignore */
|
|
10636
10811
|
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
10637
10812
|
step = input(this._config.step, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
10638
|
-
|
|
10813
|
+
/**
|
|
10814
|
+
* The virtual keyboard to ask for. Left unset, it follows what the field
|
|
10815
|
+
* accepts: `decimal` for a fractional step, `numeric` for a whole one, and
|
|
10816
|
+
* `text` for a minimum below zero, since iOS's number keypads have no minus
|
|
10817
|
+
* key. A field with no minimum gets a number keypad all the same: most never
|
|
10818
|
+
* take a negative, and a form library that owns the bounds may not hand them
|
|
10819
|
+
* to the control — a field that does take negatives says so with its minimum.
|
|
10820
|
+
*/
|
|
10821
|
+
inputMode = input(undefined, /* @ts-ignore */
|
|
10822
|
+
...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
|
|
10823
|
+
// State
|
|
10824
|
+
/**
|
|
10825
|
+
* The field's text. Follows the value whenever the value changes to one the
|
|
10826
|
+
* text does not already say, so a number still being typed — `62,` on its
|
|
10827
|
+
* way to `62,5` — is kept as typed instead of being rewritten as `62`.
|
|
10828
|
+
*/
|
|
10829
|
+
text = linkedSignal({ ...(ngDevMode ? { debugName: "text" } : /* istanbul ignore next */ {}), source: this.value,
|
|
10830
|
+
computation: (value, previous) => {
|
|
10831
|
+
if (previous && parseNumberText(previous.value) === value)
|
|
10832
|
+
return previous.value;
|
|
10833
|
+
return this._format(value);
|
|
10834
|
+
} });
|
|
10639
10835
|
// Computed
|
|
10640
10836
|
classes = computed(() => {
|
|
10641
10837
|
const array = [this.CLASS_NAME, 'tls-input-number'];
|
|
@@ -10643,45 +10839,139 @@ class InputNumber extends ValueFormControl {
|
|
|
10643
10839
|
array.push(`${this.CLASS_NAME}--${this.variant()}`);
|
|
10644
10840
|
if (this.fluid())
|
|
10645
10841
|
array.push(`${this.CLASS_NAME}--fluid`);
|
|
10646
|
-
if (this.hideArrows())
|
|
10647
|
-
array.push('tls-input-number--no-arrows');
|
|
10648
10842
|
return array.concat(this.controlClasses());
|
|
10649
10843
|
}, /* @ts-ignore */
|
|
10650
10844
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
10845
|
+
effectiveInputMode = computed(() => {
|
|
10846
|
+
const inputMode = this.inputMode();
|
|
10847
|
+
if (inputMode)
|
|
10848
|
+
return inputMode;
|
|
10849
|
+
const min = this.min();
|
|
10850
|
+
if (min !== undefined && min < 0)
|
|
10851
|
+
return 'text';
|
|
10852
|
+
return this._rules().allowsFraction ? 'decimal' : 'numeric';
|
|
10853
|
+
}, /* @ts-ignore */
|
|
10854
|
+
...(ngDevMode ? [{ debugName: "effectiveInputMode" }] : /* istanbul ignore next */ []));
|
|
10855
|
+
/** What may be typed, from the bounds and the step. */
|
|
10856
|
+
_rules = computed(() => {
|
|
10857
|
+
const min = this.min();
|
|
10858
|
+
return {
|
|
10859
|
+
allowsNegative: min === undefined || min < 0,
|
|
10860
|
+
allowsFraction: !Number.isInteger(this.step()),
|
|
10861
|
+
};
|
|
10862
|
+
}, /* @ts-ignore */
|
|
10863
|
+
...(ngDevMode ? [{ debugName: "_rules" }] : /* istanbul ignore next */ []));
|
|
10864
|
+
/**
|
|
10865
|
+
* Writes a value in the page's locale, in the form the field reads back:
|
|
10866
|
+
* ungrouped, so a comma can only be the decimal point, and in Latin digits,
|
|
10867
|
+
* which are the only ones typing accepts — a locale that writes its own
|
|
10868
|
+
* (`ar-EG`, `fa`, `bn`) would otherwise show a figure no edit could follow.
|
|
10869
|
+
*/
|
|
10870
|
+
_formatter = computed(() => new Intl.NumberFormat(this._localeId, {
|
|
10871
|
+
useGrouping: false,
|
|
10872
|
+
maximumFractionDigits: 20,
|
|
10873
|
+
numberingSystem: 'latn',
|
|
10874
|
+
}), /* @ts-ignore */
|
|
10875
|
+
...(ngDevMode ? [{ debugName: "_formatter" }] : /* istanbul ignore next */ []));
|
|
10651
10876
|
// Protected methods
|
|
10877
|
+
/**
|
|
10878
|
+
* Refuses an insertion that would leave the text no number could become, so
|
|
10879
|
+
* a stray letter or a second separator never appears at all. A deletion
|
|
10880
|
+
* always leaves a part of a valid number, which is still valid.
|
|
10881
|
+
*/
|
|
10882
|
+
onBeforeInput(event) {
|
|
10883
|
+
if (!event.inputType.startsWith('insert'))
|
|
10884
|
+
return;
|
|
10885
|
+
const target = event.target;
|
|
10886
|
+
const pasted = event.dataTransfer ? event.dataTransfer.getData('text/plain') : '';
|
|
10887
|
+
const inserted = event.data ?? pasted;
|
|
10888
|
+
const start = target.selectionStart ?? target.value.length;
|
|
10889
|
+
const end = target.selectionEnd ?? start;
|
|
10890
|
+
const next = target.value.slice(0, start) + inserted + target.value.slice(end);
|
|
10891
|
+
if (!isPartialNumberText(next, this._rules()))
|
|
10892
|
+
event.preventDefault();
|
|
10893
|
+
}
|
|
10894
|
+
/**
|
|
10895
|
+
* Takes the text as the new value. Text that reached the field past
|
|
10896
|
+
* `beforeinput` — an IME composition, which cannot be refused before it
|
|
10897
|
+
* lands — and is no number is put back to what the field held.
|
|
10898
|
+
*/
|
|
10652
10899
|
onInput(event) {
|
|
10653
10900
|
const target = event.target;
|
|
10654
|
-
|
|
10655
|
-
|
|
10901
|
+
if (!isPartialNumberText(target.value, this._rules())) {
|
|
10902
|
+
target.value = this.text();
|
|
10903
|
+
return;
|
|
10904
|
+
}
|
|
10905
|
+
this.text.set(target.value);
|
|
10906
|
+
this.value.set(parseNumberText(target.value));
|
|
10656
10907
|
}
|
|
10657
10908
|
/**
|
|
10658
10909
|
* Clamps a typed value into `[min, max]` once editing is committed (`change`
|
|
10659
|
-
* fires on blur/Enter)
|
|
10660
|
-
*
|
|
10910
|
+
* fires on blur/Enter) and rewrites the text in the field's own form, so
|
|
10911
|
+
* `62,` reads `62`. Clamping only here keeps mid-typing values ("1" on the
|
|
10912
|
+
* way to "10") intact.
|
|
10661
10913
|
*/
|
|
10662
|
-
onChange(
|
|
10663
|
-
const
|
|
10664
|
-
if (
|
|
10914
|
+
onChange() {
|
|
10915
|
+
const value = this.value();
|
|
10916
|
+
if (value === null) {
|
|
10917
|
+
this.text.set('');
|
|
10665
10918
|
return;
|
|
10919
|
+
}
|
|
10920
|
+
this._commit(this._clamp(value));
|
|
10921
|
+
}
|
|
10922
|
+
/** ArrowUp and ArrowDown step the value, as they do in a native number field. */
|
|
10923
|
+
onKeydown(event) {
|
|
10924
|
+
if (event.key !== 'ArrowUp' && event.key !== 'ArrowDown')
|
|
10925
|
+
return;
|
|
10926
|
+
event.preventDefault();
|
|
10927
|
+
if (this.readonly())
|
|
10928
|
+
return;
|
|
10929
|
+
this._stepBy(event.key === 'ArrowUp' ? 1 : -1);
|
|
10930
|
+
}
|
|
10931
|
+
// Private methods
|
|
10932
|
+
/**
|
|
10933
|
+
* Moves the value by one step in `direction`, rounded to the precision of the
|
|
10934
|
+
* step and the value so repeated steps never collect float error
|
|
10935
|
+
* (`0.1 + 0.2`). An empty field starts from the minimum, or zero.
|
|
10936
|
+
*/
|
|
10937
|
+
_stepBy(direction) {
|
|
10938
|
+
const value = this.value();
|
|
10939
|
+
if (value === null) {
|
|
10940
|
+
this._commit(this._clamp(this.min() ?? 0));
|
|
10941
|
+
return;
|
|
10942
|
+
}
|
|
10943
|
+
const step = this.step();
|
|
10944
|
+
const precision = Math.max(decimalPlaces(step), decimalPlaces(value));
|
|
10945
|
+
this._commit(this._clamp(Number((value + direction * step).toFixed(precision))));
|
|
10946
|
+
}
|
|
10947
|
+
/** Sets a value the field produced itself, and shows it in the field's own form. */
|
|
10948
|
+
_commit(value) {
|
|
10949
|
+
this.value.set(value);
|
|
10950
|
+
this.text.set(this._format(value));
|
|
10951
|
+
}
|
|
10952
|
+
/** Keeps `value` within `[min, max]`, where either is set. */
|
|
10953
|
+
_clamp(value) {
|
|
10666
10954
|
const min = this.min();
|
|
10667
10955
|
const max = this.max();
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10956
|
+
if (min !== undefined && value < min)
|
|
10957
|
+
return min;
|
|
10958
|
+
if (max !== undefined && value > max)
|
|
10959
|
+
return max;
|
|
10960
|
+
return value;
|
|
10961
|
+
}
|
|
10962
|
+
/** The text the field shows for `value`: empty for none. */
|
|
10963
|
+
_format(value) {
|
|
10964
|
+
if (value === null)
|
|
10965
|
+
return '';
|
|
10966
|
+
return this._formatter().format(value);
|
|
10677
10967
|
}
|
|
10678
10968
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputNumber, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
10679
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputNumber, isStandalone: true, selector: "tls-input-number", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null },
|
|
10969
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputNumber, isStandalone: true, selector: "tls-input-number", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, inputMode: { classPropertyName: "inputMode", publicName: "inputMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], usesInheritance: true, ngImport: i0, template: "<!-- Text rather than `type=\"number\"`: the field reads the number itself (see\n the component's documentation). `autocorrect` and `spellcheck` are off so\n the keyboard never rewrites a figure as a word. -->\n<input\n type=\"text\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.inputmode]=\"effectiveInputMode()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"text()\"\n (beforeinput)=\"onBeforeInput($event)\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"], dependencies: [{ kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
|
|
10680
10970
|
}
|
|
10681
10971
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputNumber, decorators: [{
|
|
10682
10972
|
type: Component,
|
|
10683
|
-
args: [{ selector: 'tls-input-number', imports: [Loader], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], template: "<input\n type=\"
|
|
10684
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }],
|
|
10973
|
+
args: [{ selector: 'tls-input-number', imports: [Loader], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], template: "<!-- Text rather than `type=\"number\"`: the field reads the number itself (see\n the component's documentation). `autocorrect` and `spellcheck` are off so\n the keyboard never rewrites a figure as a word. -->\n<input\n type=\"text\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.inputmode]=\"effectiveInputMode()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"text()\"\n (beforeinput)=\"onBeforeInput($event)\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"] }]
|
|
10974
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }] } });
|
|
10685
10975
|
|
|
10686
10976
|
/**
|
|
10687
10977
|
* Token characters recognised inside a mask pattern; every other character is a
|
|
@@ -11152,6 +11442,11 @@ class RadioButton extends ValueFormControl {
|
|
|
11152
11442
|
_config = inject(RADIO_BUTTON_CONFIG);
|
|
11153
11443
|
CLASS_NAME = 'tls-radio-button';
|
|
11154
11444
|
supportsLabelFor = true;
|
|
11445
|
+
/**
|
|
11446
|
+
* A radio button is one option of a question rather than the question, so its own label never
|
|
11447
|
+
* says whether the question may be skipped; that belongs to the label of the group.
|
|
11448
|
+
*/
|
|
11449
|
+
alwaysAnswered = true;
|
|
11155
11450
|
radioValue = input.required(/* @ts-ignore */
|
|
11156
11451
|
...(ngDevMode ? [{ debugName: "radioValue" }] : /* istanbul ignore next */ []));
|
|
11157
11452
|
value = model('', /* @ts-ignore */
|
|
@@ -11175,14 +11470,14 @@ class RadioButton extends ValueFormControl {
|
|
|
11175
11470
|
this.value.set(this.radioValue());
|
|
11176
11471
|
}
|
|
11177
11472
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RadioButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
11178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: RadioButton, isStandalone: true, selector: "tls-radio-button", inputs: { radioValue: { classPropertyName: "radioValue", publicName: "radioValue", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()", "tabindex": "-1" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => RadioButton) }], usesInheritance: true, ngImport: i0, template: "<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [attr.id]=\"effectiveInputId()\"\n [name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-
|
|
11473
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: RadioButton, isStandalone: true, selector: "tls-radio-button", inputs: { radioValue: { classPropertyName: "radioValue", publicName: "radioValue", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()", "tabindex": "-1" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => RadioButton) }], usesInheritance: true, ngImport: i0, template: "<!-- No aria-required here: a radio is one option, and whether the question must be answered is\n stated on its radiogroup, the only one of the two roles that supports it. -->\n<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [attr.id]=\"effectiveInputId()\"\n [name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [tabindex]=\"tabindex()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n [value]=\"radioValue()\"\n (change)=\"check()\"\n (blur)=\"touched.set(true)\"\n/>\n<div class=\"tls-radio-button-circle\"></div>\n" });
|
|
11179
11474
|
}
|
|
11180
11475
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RadioButton, decorators: [{
|
|
11181
11476
|
type: Component,
|
|
11182
11477
|
args: [{ selector: 'tls-radio-button', imports: [], host: {
|
|
11183
11478
|
'[class]': 'hostClasses()',
|
|
11184
11479
|
'[tabindex]': '-1',
|
|
11185
|
-
}, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => RadioButton) }], template: "<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [attr.id]=\"effectiveInputId()\"\n [name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-
|
|
11480
|
+
}, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => RadioButton) }], template: "<!-- No aria-required here: a radio is one option, and whether the question must be answered is\n stated on its radiogroup, the only one of the two roles that supports it. -->\n<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [attr.id]=\"effectiveInputId()\"\n [name]=\"name()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [tabindex]=\"tabindex()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n [value]=\"radioValue()\"\n (change)=\"check()\"\n (blur)=\"touched.set(true)\"\n/>\n<div class=\"tls-radio-button-circle\"></div>\n" }]
|
|
11186
11481
|
}], propDecorators: { radioValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "radioValue", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
|
|
11187
11482
|
|
|
11188
11483
|
const DEFAULT_RATING_CONFIG = {
|
|
@@ -11599,6 +11894,8 @@ class Slider extends ValueFormControl {
|
|
|
11599
11894
|
_config = inject(SLIDER_CONFIG);
|
|
11600
11895
|
CLASS_NAME = 'tls-slider';
|
|
11601
11896
|
supportsLabelFor = true;
|
|
11897
|
+
/** A slider always rests on some value within its range, so the control is never left unanswered. */
|
|
11898
|
+
alwaysAnswered = true;
|
|
11602
11899
|
// Inputs
|
|
11603
11900
|
value = model(this._config.min, /* @ts-ignore */
|
|
11604
11901
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -13097,6 +13394,8 @@ const DEFAULT_INFINITE_SCROLL_CONFIG = {
|
|
|
13097
13394
|
loading: 'Loading more items',
|
|
13098
13395
|
complete: 'No more items',
|
|
13099
13396
|
loadMore: 'Load more',
|
|
13397
|
+
failed: "Couldn't load more items",
|
|
13398
|
+
retry: 'Try again',
|
|
13100
13399
|
},
|
|
13101
13400
|
};
|
|
13102
13401
|
|
|
@@ -13130,10 +13429,12 @@ const INFINITE_SCROLL_CONFIG = new InjectionToken('INFINITE_SCROLL_CONFIG', { fa
|
|
|
13130
13429
|
*
|
|
13131
13430
|
* Content that grows without end leaves anything below it unreachable, so the automatic
|
|
13132
13431
|
* loads are rationed: after `autoLoadLimit` of them in a row the component stops watching
|
|
13133
|
-
* and renders a button, and the allowance is renewed each time that button is used.
|
|
13134
|
-
*
|
|
13135
|
-
*
|
|
13136
|
-
* —
|
|
13432
|
+
* and renders a button, and the allowance is renewed each time that button is used. A page
|
|
13433
|
+
* that fails to arrive is reported through `failed`, which renders a notice and a button to
|
|
13434
|
+
* try again in place of loading on approach. The four states each accept replacement
|
|
13435
|
+
* content — `[tlsInfiniteScrollLoading]`, `[tlsInfiniteScrollComplete]`,
|
|
13436
|
+
* `[tlsInfiniteScrollTrigger]`, `[tlsInfiniteScrollFailed]` — projected in place of the
|
|
13437
|
+
* loader, the end notice, the button and the failure notice with its button:
|
|
13137
13438
|
*
|
|
13138
13439
|
* ```html
|
|
13139
13440
|
* <tls-infinite-scroll [loading]="loading()" (loadMore)="loadNextPage()">
|
|
@@ -13147,8 +13448,9 @@ const INFINITE_SCROLL_CONFIG = new InjectionToken('INFINITE_SCROLL_CONFIG', { fa
|
|
|
13147
13448
|
* Left unset inside a panel, the next page is therefore requested only as the sentinel
|
|
13148
13449
|
* reaches the panel's edge; pass that panel as `root` to get the margin back.
|
|
13149
13450
|
*
|
|
13150
|
-
* The end
|
|
13151
|
-
* replacement content belongs with a label that says the
|
|
13451
|
+
* The end and failure notices are announced from `labels.complete` and `labels.failed`,
|
|
13452
|
+
* whatever stands in their slots, so replacement content belongs with a label that says the
|
|
13453
|
+
* same thing.
|
|
13152
13454
|
*/
|
|
13153
13455
|
class InfiniteScroll {
|
|
13154
13456
|
// Injections
|
|
@@ -13170,6 +13472,13 @@ class InfiniteScroll {
|
|
|
13170
13472
|
* everything ends silently.
|
|
13171
13473
|
*/
|
|
13172
13474
|
complete = input(false, { ...(ngDevMode ? { debugName: "complete" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
13475
|
+
/**
|
|
13476
|
+
* Whether the last page asked for failed to arrive. Stops loading on approach — retrying a
|
|
13477
|
+
* failure every time the sentinel comes into view would hammer whatever is failing — and
|
|
13478
|
+
* renders the failure notice with a button that asks for the page again. Lowering it, as
|
|
13479
|
+
* the next attempt starts, resumes the cycle.
|
|
13480
|
+
*/
|
|
13481
|
+
failed = input(false, { ...(ngDevMode ? { debugName: "failed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
13173
13482
|
/**
|
|
13174
13483
|
* Suspends the whole trigger without ending it: nothing is watched, nothing is rendered,
|
|
13175
13484
|
* and the automatic allowance is kept for when it is lifted.
|
|
@@ -13232,6 +13541,8 @@ class InfiniteScroll {
|
|
|
13232
13541
|
return this._hasRequested() ? 'complete' : 'settled';
|
|
13233
13542
|
if (this.loading())
|
|
13234
13543
|
return 'loading';
|
|
13544
|
+
if (this.failed())
|
|
13545
|
+
return 'failed';
|
|
13235
13546
|
const limit = this.autoLoadLimit();
|
|
13236
13547
|
if (this.manual() || (limit > 0 && this._automaticLoads() >= limit))
|
|
13237
13548
|
return 'manual';
|
|
@@ -13245,6 +13556,8 @@ class InfiniteScroll {
|
|
|
13245
13556
|
return this.labels.loading;
|
|
13246
13557
|
if (state === 'complete')
|
|
13247
13558
|
return this.labels.complete;
|
|
13559
|
+
if (state === 'failed')
|
|
13560
|
+
return this.labels.failed;
|
|
13248
13561
|
return '';
|
|
13249
13562
|
}, /* @ts-ignore */
|
|
13250
13563
|
...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
|
|
@@ -13297,12 +13610,13 @@ class InfiniteScroll {
|
|
|
13297
13610
|
}
|
|
13298
13611
|
// Public methods
|
|
13299
13612
|
/**
|
|
13300
|
-
* Requests the next page as the button does, renewing the automatic allowance
|
|
13301
|
-
* while a page is in flight, once the collection is
|
|
13613
|
+
* Requests the next page as the button does, renewing the automatic allowance — after a
|
|
13614
|
+
* failure, the page that failed. Ignored while a page is in flight, once the collection is
|
|
13615
|
+
* exhausted and while suspended.
|
|
13302
13616
|
*/
|
|
13303
13617
|
load() {
|
|
13304
13618
|
const state = this.state();
|
|
13305
|
-
if (state !== 'idle' && state !== 'manual')
|
|
13619
|
+
if (state !== 'idle' && state !== 'manual' && state !== 'failed')
|
|
13306
13620
|
return;
|
|
13307
13621
|
this._automaticLoads.set(0);
|
|
13308
13622
|
this._emit();
|
|
@@ -13332,14 +13646,14 @@ class InfiniteScroll {
|
|
|
13332
13646
|
this.loadMore.emit();
|
|
13333
13647
|
}
|
|
13334
13648
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InfiniteScroll, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13335
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InfiniteScroll, isStandalone: true, selector: "tls-infinite-scroll", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, complete: { classPropertyName: "complete", publicName: "complete", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, rootMargin: { classPropertyName: "rootMargin", publicName: "rootMargin", isSignal: true, isRequired: false, transformFunction: null }, autoLoadLimit: { classPropertyName: "autoLoadLimit", publicName: "autoLoadLimit", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadMore: "loadMore" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"], dependencies: [{ kind: "component", type: Button, selector: "tls-button", inputs: ["busy", "label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
|
|
13649
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InfiniteScroll, isStandalone: true, selector: "tls-infinite-scroll", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, complete: { classPropertyName: "complete", publicName: "complete", isSignal: true, isRequired: false, transformFunction: null }, failed: { classPropertyName: "failed", publicName: "failed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, manual: { classPropertyName: "manual", publicName: "manual", isSignal: true, isRequired: false, transformFunction: null }, rootMargin: { classPropertyName: "rootMargin", publicName: "rootMargin", isSignal: true, isRequired: false, transformFunction: null }, autoLoadLimit: { classPropertyName: "autoLoadLimit", publicName: "autoLoadLimit", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadMore: "loadMore" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('failed') {\n <!-- Hidden from assistive technology like the end notice: the live region above\n announces the failure, and the button stays reachable on its own. -->\n <div class=\"state state--failed\">\n <ng-content select=\"[tlsInfiniteScrollFailed]\">\n <span class=\"notice\" aria-hidden=\"true\">{{ labels.failed }}</span>\n <tls-button variant=\"tonal\" [label]=\"labels.retry\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .state--failed{flex-direction:column;gap:var(--spacing-2)}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"], dependencies: [{ kind: "component", type: Button, selector: "tls-button", inputs: ["busy", "label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
|
|
13336
13650
|
}
|
|
13337
13651
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InfiniteScroll, decorators: [{
|
|
13338
13652
|
type: Component,
|
|
13339
13653
|
args: [{ selector: 'tls-infinite-scroll', imports: [Button, Loader], host: {
|
|
13340
13654
|
'[class]': 'hostClasses()',
|
|
13341
|
-
}, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"] }]
|
|
13342
|
-
}], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], complete: [{ type: i0.Input, args: [{ isSignal: true, alias: "complete", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], manual: [{ type: i0.Input, args: [{ isSignal: true, alias: "manual", required: false }] }], rootMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootMargin", required: false }] }], autoLoadLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoLoadLimit", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }] } });
|
|
13655
|
+
}, template: "<!--\n A live region is only announced reliably when it is already in the DOM before its text\n changes, so the region is permanent and the states write into it. The visual side of\n those states is hidden from assistive technology to keep the notice from being read twice.\n-->\n<div class=\"announcement\" role=\"status\">{{ announcement() }}</div>\n\n@switch (state()) {\n @case ('loading') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollLoading]\">\n <tls-loader size=\"sm\" />\n </ng-content>\n </div>\n }\n @case ('complete') {\n <div class=\"state\" aria-hidden=\"true\">\n <ng-content select=\"[tlsInfiniteScrollComplete]\">\n <span class=\"notice\">{{ labels.complete }}</span>\n </ng-content>\n </div>\n }\n @case ('failed') {\n <!-- Hidden from assistive technology like the end notice: the live region above\n announces the failure, and the button stays reachable on its own. -->\n <div class=\"state state--failed\">\n <ng-content select=\"[tlsInfiniteScrollFailed]\">\n <span class=\"notice\" aria-hidden=\"true\">{{ labels.failed }}</span>\n <tls-button variant=\"tonal\" [label]=\"labels.retry\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n @case ('manual') {\n <div class=\"state\">\n <ng-content select=\"[tlsInfiniteScrollTrigger]\">\n <tls-button variant=\"tonal\" [label]=\"labels.loadMore\" (click)=\"load()\" />\n </ng-content>\n </div>\n }\n}\n", styles: [":host{min-height:1px;display:block}:host .announcement{position:absolute;inset-block-start:0;inset-inline-start:0;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;overflow:hidden;clip-path:inset(50%)}:host .state{padding-block:var(--spacing-4);display:flex;align-items:center;justify-content:center}:host .state--failed{flex-direction:column;gap:var(--spacing-2)}:host .notice{font-size:var(--font-body-small-size);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing);color:var(--color-on-surface-variant)}\n"] }]
|
|
13656
|
+
}], ctorParameters: () => [], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], complete: [{ type: i0.Input, args: [{ isSignal: true, alias: "complete", required: false }] }], failed: [{ type: i0.Input, args: [{ isSignal: true, alias: "failed", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], manual: [{ type: i0.Input, args: [{ isSignal: true, alias: "manual", required: false }] }], rootMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootMargin", required: false }] }], autoLoadLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoLoadLimit", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }] } });
|
|
13343
13657
|
|
|
13344
13658
|
const DEFAULT_KBD_CONFIG = {
|
|
13345
13659
|
size: 'md',
|
|
@@ -15777,6 +16091,7 @@ class SwipeActions {
|
|
|
15777
16091
|
// Injections
|
|
15778
16092
|
_config = inject(SWIPE_ACTIONS_CONFIG);
|
|
15779
16093
|
_directionality = inject(Directionality);
|
|
16094
|
+
_hapticFeedback = inject(HAPTIC_FEEDBACK);
|
|
15780
16095
|
// View children
|
|
15781
16096
|
contentElement = viewChild.required('content');
|
|
15782
16097
|
startPanel = viewChild('startPanel', /* @ts-ignore */
|
|
@@ -15930,8 +16245,10 @@ class SwipeActions {
|
|
|
15930
16245
|
}
|
|
15931
16246
|
/**
|
|
15932
16247
|
* Tracks whether releasing at this reveal would commit, mirroring the answer
|
|
15933
|
-
* onto the panels as a class and onto `armedChanged
|
|
15934
|
-
*
|
|
16248
|
+
* onto the panels as a class and onto `armedChanged`, and marking the moment
|
|
16249
|
+
* it arms with a light haptic tap, as a native list's full swipe does. The
|
|
16250
|
+
* writes bypass bindings: this runs on the move stream, outside the Angular
|
|
16251
|
+
* zone.
|
|
15935
16252
|
*/
|
|
15936
16253
|
_updateArmed(offset) {
|
|
15937
16254
|
const armed = Math.abs(offset) >= this.commitThreshold();
|
|
@@ -15948,6 +16265,8 @@ class SwipeActions {
|
|
|
15948
16265
|
if (endPanel) {
|
|
15949
16266
|
endPanel.nativeElement.classList.toggle('tls-swipe-actions__panel--armed', armed && offset < 0);
|
|
15950
16267
|
}
|
|
16268
|
+
if (armed)
|
|
16269
|
+
this._hapticFeedback.impact('light');
|
|
15951
16270
|
this.armedChanged.emit(armed);
|
|
15952
16271
|
}
|
|
15953
16272
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SwipeActions, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -16981,15 +17300,26 @@ const provideThalassicUIConfig = (config = {}) => {
|
|
|
16981
17300
|
provide: RIPPLE_CONFIG,
|
|
16982
17301
|
useValue: deepMerge(DEFAULT_RIPPLE_CONFIG, config.ripple),
|
|
16983
17302
|
},
|
|
16984
|
-
// Reflect the touch-target opt-
|
|
16985
|
-
//
|
|
16986
|
-
//
|
|
17303
|
+
// Reflect the touch-target opt-in onto the document root, where the expansion reads
|
|
17304
|
+
// it. The overflow is transparent, so a late (browser-only) reflection causes no
|
|
17305
|
+
// visual flash.
|
|
17306
|
+
provideEnvironmentInitializer(() => {
|
|
17307
|
+
if (!accessibility.expandTouchTargets)
|
|
17308
|
+
return;
|
|
17309
|
+
if (!isPlatformBrowser(inject(PLATFORM_ID)))
|
|
17310
|
+
return;
|
|
17311
|
+
inject(DOCUMENT).documentElement.setAttribute('data-touch-targets', 'expanded');
|
|
17312
|
+
}),
|
|
17313
|
+
// Reflect the touch-control opt-in onto the document root, where the control height
|
|
17314
|
+
// scale reads it. Unlike the transparent hit area, the larger controls change layout,
|
|
17315
|
+
// so a page rendered on the server keeps the base heights until the browser reflects
|
|
17316
|
+
// the attribute.
|
|
16987
17317
|
provideEnvironmentInitializer(() => {
|
|
16988
|
-
if (accessibility.
|
|
17318
|
+
if (!accessibility.enlargeTouchControls)
|
|
16989
17319
|
return;
|
|
16990
17320
|
if (!isPlatformBrowser(inject(PLATFORM_ID)))
|
|
16991
17321
|
return;
|
|
16992
|
-
inject(DOCUMENT).documentElement.setAttribute('data-touch-
|
|
17322
|
+
inject(DOCUMENT).documentElement.setAttribute('data-touch-controls', 'large');
|
|
16993
17323
|
}),
|
|
16994
17324
|
// Cross-cutting form defaults
|
|
16995
17325
|
{
|
|
@@ -17224,5 +17554,5 @@ const provideThalassicUIConfig = (config = {}) => {
|
|
|
17224
17554
|
* Generated bundle index. Do not edit.
|
|
17225
17555
|
*/
|
|
17226
17556
|
|
|
17227
|
-
export { ACCORDION_CONFIG, ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, ALPHA_MAX, AUTOCOMPLETE_CONFIG, Accordion, AccordionItem, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CAROUSEL_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, COLOR_INPUT_CONFIG, COLOR_PICKER_CONFIG, COLOR_PICKER_DEFAULT_VALUE, COLOR_RANGE_CONFIG, COLOR_SWATCH_PICKER_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Carousel, CarouselSlide, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ColorInput, ColorPicker, ColorRange, ColorSwatch, ColorSwatchPicker, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACCORDION_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_COLOR_INPUT_CONFIG, DEFAULT_COLOR_PICKER_CONFIG, DEFAULT_COLOR_RANGE_CONFIG, DEFAULT_COLOR_SWATCH_PICKER_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_IMAGE_PREVIEW_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_RIPPLE_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWIPE_ACTIONS_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DRAWER_OPENING, DRAWER_PANEL_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, DrawerSharedDirective, DrawerTriggerDirective, FILE_INPUT_CONFIG, FORMAT_CYCLE, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FabMenu, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, HUE_MAX, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, IMAGE_PREVIEW_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, ImagePreview, ImagePreviewDirective, ImagePreviewGroupDirective, ImagePreviewRef, ImagePreviewService, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, POSITIONED_VALUES, PRESS_SCALE_PROPERTY, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PickerField, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RIPPLE_ACTIVE_CLASS, RIPPLE_CONFIG, RIPPLE_DIAMETER_PROPERTY, RIPPLE_MOVE_SLOP_PX, RIPPLE_RELEASED_CLASS, RIPPLE_TOUCH_DELAY_MS, RIPPLE_X_PROPERTY, RIPPLE_Y_PROPERTY, RadioButton, Rating, RippleDirective, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SV_KEYBOARD_STEP, SV_KEYBOARD_STEP_LARGE, SWIPE_ACTIONS_CONFIG, SWITCH_CONFIG, Select, Sheet, SheetHeaderDirective, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, SwipeActions, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, TOUCH_HANDOVER_WINDOW_MS, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, canonicalHex, contrastForeground, formatHsl, formatRgb, hslToHsv, hsvToHsl, hsvToRgb, isTypeRejected, normalizeAccept, parseColor, provideThalassicIcons, provideThalassicUIConfig, relativeLuminance, resolveActivityLevel, rgbToHsv, rgbaToHex, toImagePreviewImage };
|
|
17557
|
+
export { ACCORDION_CONFIG, ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, ALPHA_MAX, AUTOCOMPLETE_CONFIG, Accordion, AccordionItem, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CAROUSEL_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, COLOR_INPUT_CONFIG, COLOR_PICKER_CONFIG, COLOR_PICKER_DEFAULT_VALUE, COLOR_RANGE_CONFIG, COLOR_SWATCH_PICKER_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Carousel, CarouselSlide, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, ColorInput, ColorPicker, ColorRange, ColorSwatch, ColorSwatchPicker, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACCORDION_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CAROUSEL_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_CONFIG, DEFAULT_COLOR_INPUT_CONFIG, DEFAULT_COLOR_PICKER_CONFIG, DEFAULT_COLOR_RANGE_CONFIG, DEFAULT_COLOR_SWATCH_PICKER_CONFIG, DEFAULT_CONFIRM_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_DRAWER_CONFIG, DEFAULT_FILE_INPUT_CONFIG, DEFAULT_FORM_CONTROL_CONFIG, DEFAULT_FORM_CONTROL_GROUP_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_HIGHLIGHT_CONFIG, DEFAULT_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_IMAGE_PREVIEW_CONFIG, DEFAULT_INFINITE_SCROLL_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_MARK_CONFIG, DEFAULT_MENU_CONFIG, DEFAULT_MULTI_SELECT_CONFIG, DEFAULT_ODOMETER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PAGINATION_QUERY_SYNC_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_PROGRESS_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_RATING_CONFIG, DEFAULT_RIPPLE_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_CONFIG, DEFAULT_SWIPE_ACTIONS_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TABS_QUERY_SYNC_CONFIG, DEFAULT_TAB_NAV_CONFIG, DEFAULT_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE, DEFAULT_VIRTUAL_SCROLL_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DRAWER_OPENING, DRAWER_PANEL_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, DrawerSharedDirective, DrawerTriggerDirective, FILE_INPUT_CONFIG, FORMAT_CYCLE, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FabMenu, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, HUE_MAX, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, IMAGE_PREVIEW_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, ImagePreview, ImagePreviewDirective, ImagePreviewGroupDirective, ImagePreviewRef, ImagePreviewService, InfiniteScroll, Input, InputDirective, InputNumber, KBD_CONFIG, Kbd, LOADER_CONFIG, Loader, MARK_CONFIG, MASK_TOKENS, MENU_CONFIG, MULTI_SELECT_CONFIG, Mark, MaskDirective, Menu, MenuItemComponent, MenuTriggerDirective, MultiSelect, ODOMETER_CONFIG, Odometer, PAGINATION_CONFIG, PAGINATION_QUERY_SYNC_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, POSITIONED_VALUES, PRESS_SCALE_PROPERTY, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PickerField, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RIPPLE_ACTIVE_CLASS, RIPPLE_CONFIG, RIPPLE_DIAMETER_PROPERTY, RIPPLE_MOVE_SLOP_PX, RIPPLE_RELEASED_CLASS, RIPPLE_TOUCH_DELAY_MS, RIPPLE_X_PROPERTY, RIPPLE_Y_PROPERTY, RadioButton, Rating, RippleDirective, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SV_KEYBOARD_STEP, SV_KEYBOARD_STEP_LARGE, SWIPE_ACTIONS_CONFIG, SWITCH_CONFIG, Select, Sheet, SheetHeaderDirective, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, SwipeActions, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, TOUCH_HANDOVER_WINDOW_MS, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, canonicalHex, contrastForeground, formatHsl, formatRgb, hslToHsv, hsvToHsl, hsvToRgb, isTypeRejected, normalizeAccept, parseColor, provideFormItemConfig, provideThalassicIcons, provideThalassicUIConfig, relativeLuminance, resolveActivityLevel, rgbToHsv, rgbaToHex, toImagePreviewImage };
|
|
17228
17558
|
//# sourceMappingURL=thalassic-ui.mjs.map
|