@thalassic/ui 22.18.0 → 22.19.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 +686 -173
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +321 -73
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, model, input, signal, computed, booleanAttribute, Directive, PLATFORM_ID, DestroyRef, numberAttribute, output, viewChild, contentChild, Component, ViewContainerRef, DOCUMENT, afterRenderEffect, linkedSignal, Injectable, Renderer2, ElementRef, makeEnvironmentProviders, TemplateRef, forwardRef, effect, afterNextRender, viewChildren, contentChildren, isDevMode,
|
|
2
|
+
import { InjectionToken, inject, model, input, signal, computed, booleanAttribute, Directive, PLATFORM_ID, DestroyRef, numberAttribute, output, viewChild, contentChild, Component, ViewContainerRef, DOCUMENT, afterRenderEffect, linkedSignal, Injectable, Renderer2, ElementRef, makeEnvironmentProviders, TemplateRef, forwardRef, effect, afterNextRender, Injector, RendererStyleFlags2, viewChildren, untracked, contentChildren, isDevMode, provideEnvironmentInitializer } from '@angular/core';
|
|
3
3
|
import { CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf } from '@angular/cdk/scrolling';
|
|
4
4
|
import { startOfWeek, startOfMonth, endOfWeek, endOfMonth, addDays, eachDayOfInterval, startOfDay, isSameMonth, format, isSameDay, subMonths, isBefore, isAfter, differenceInCalendarDays, addHours, differenceInMinutes, isSameWeek, addMonths, addWeeks, isToday, setMonth, subYears, addYears, getYear, getMonth, getHours, getMinutes, setMinutes, setHours, setYear } from 'date-fns';
|
|
5
5
|
import { isPlatformBrowser, NgTemplateOutlet, NgComponentOutlet, LocationStrategy } from '@angular/common';
|
|
@@ -15,11 +15,12 @@ import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
|
15
15
|
import { filter as filter$1 } from 'rxjs/operators';
|
|
16
16
|
import { CdkDialogContainer, DialogRef as DialogRef$1, Dialog as Dialog$1 } from '@angular/cdk/dialog';
|
|
17
17
|
import { Directionality } from '@angular/cdk/bidi';
|
|
18
|
+
import * as i1 from '@thalassic/core';
|
|
19
|
+
import { PanDirective, SWIPE_DEFAULT_MIN_VELOCITY, PAN_CONFIG, DEFAULT_PAN_CONFIG, deepMerge } from '@thalassic/core';
|
|
18
20
|
import { Menu as Menu$1, MenuItem } from '@angular/aria/menu';
|
|
19
|
-
import * as i1 from '@angular/aria/tabs';
|
|
21
|
+
import * as i1$1 from '@angular/aria/tabs';
|
|
20
22
|
import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1, TabContent } from '@angular/aria/tabs';
|
|
21
23
|
import { CdkTable, CdkHeaderCell, CdkCell, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef } from '@angular/cdk/table';
|
|
22
|
-
import { deepMerge } from '@thalassic/core';
|
|
23
24
|
|
|
24
25
|
const DEFAULT_ACCESSIBILITY_CONFIG = {
|
|
25
26
|
expandTouchTargets: true,
|
|
@@ -786,9 +787,12 @@ function afterLeaveAnimation(element, onDone) {
|
|
|
786
787
|
const timeoutId = window.setTimeout(finalize, LEAVE_ANIMATION_FALLBACK_MS);
|
|
787
788
|
// The `--leave` class applies on the next change detection; on the following
|
|
788
789
|
// frame, finalize at once if no animation is running. When motion is enabled
|
|
789
|
-
// the computed `animationName`
|
|
790
|
+
// the computed `animationName` names the keyframes, so this cannot finalize
|
|
791
|
+
// early. An engine that resolves no animation reports either `none` or an
|
|
792
|
+
// empty string, and both mean the same thing here.
|
|
790
793
|
requestAnimationFrame(() => {
|
|
791
|
-
|
|
794
|
+
const animationName = getComputedStyle(element).animationName;
|
|
795
|
+
if (animationName === 'none' || animationName === '')
|
|
792
796
|
finalize();
|
|
793
797
|
});
|
|
794
798
|
}
|
|
@@ -2127,157 +2131,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
2127
2131
|
}, template: "<div class=\"tls-activity-heatmap__viewport\">\n <div class=\"tls-activity-heatmap__chart\" [style.--tls-activity-heatmap-weeks]=\"weekCount()\">\n @if (showMonthLabels()) {\n <!-- Month headings repeat the dates already announced on every cell, so they stay decorative. -->\n <div class=\"tls-activity-heatmap__months\" aria-hidden=\"true\">\n @for (month of months(); track month.column) {\n <span\n class=\"tls-activity-heatmap__month\"\n [style.grid-column]=\"month.column + ' / span ' + month.span\"\n >\n {{ month.label }}\n </span>\n }\n </div>\n }\n\n @if (showWeekdayLabels()) {\n <div class=\"tls-activity-heatmap__weekdays\" aria-hidden=\"true\">\n @for (row of rows(); track $index) {\n <span class=\"tls-activity-heatmap__weekday\">{{ row.label }}</span>\n }\n </div>\n }\n\n <!-- One delegated tooltip serves every cell, so a year of days costs a single directive\n and overlay service instead of one per cell. -->\n <div\n ngGrid\n tlsTooltipDelegate\n class=\"tls-activity-heatmap__grid\"\n rowWrap=\"nowrap\"\n colWrap=\"nowrap\"\n [tooltipDisabled]=\"!showTooltip()\"\n [attr.aria-label]=\"gridLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n >\n @for (row of rows(); track $index) {\n <div ngGridRow class=\"tls-activity-heatmap__row\">\n @for (day of row.days; track day.date.getTime()) {\n <!-- Padding days stay navigable so arrow keys never dead-end on the grid's corners;\n they are only unselectable and announce themselves as outside the range. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- ngGridCell manages role and roving tabindex -->\n <div\n ngGridCell\n class=\"tls-activity-heatmap__day\"\n [class.tls-activity-heatmap__day--outside]=\"!day.inRange\"\n [class.tls-activity-heatmap__day--today]=\"day.isToday\"\n [selectable]=\"day.inRange\"\n [style.--tls-activity-heatmap-intensity]=\"intensity(day.level)\"\n [attr.aria-label]=\"day.label\"\n [attr.data-tooltip]=\"day.inRange ? day.label : null\"\n (click)=\"onDaySelect(day)\"\n (keydown.enter)=\"onDaySelect(day)\"\n (keydown.space)=\"onDaySpace($event, day)\"\n ></div>\n }\n </div>\n }\n </div>\n </div>\n</div>\n\n@if (showLegend()) {\n <div class=\"tls-activity-heatmap__legend\">\n <span class=\"tls-activity-heatmap__legend-label\">{{ legendLess }}</span>\n\n <!-- Sample swatches carry no information the \"less \u2026 more\" captions don't already give. -->\n @for (level of legendLevels(); track level) {\n <span\n class=\"tls-activity-heatmap__legend-swatch\"\n aria-hidden=\"true\"\n [style.--tls-activity-heatmap-intensity]=\"intensity(level)\"\n ></span>\n }\n\n <span class=\"tls-activity-heatmap__legend-label\">{{ legendMore }}</span>\n </div>\n}\n" }]
|
|
2128
2132
|
}], propDecorators: { entries: [{ type: i0.Input, args: [{ isSignal: true, alias: "entries", required: false }] }], startDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "startDate", required: false }] }], endDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "endDate", required: false }] }], levels: [{ type: i0.Input, args: [{ isSignal: true, alias: "levels", required: false }] }], thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: false }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: false }] }], weekdayLabelInterval: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekdayLabelInterval", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showMonthLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMonthLabels", required: false }] }], showWeekdayLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeekdayLabels", required: false }] }], showLegend: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLegend", required: false }] }], showTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTooltip", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], daySelect: [{ type: i0.Output, args: ["daySelect"] }] } });
|
|
2129
2133
|
|
|
2130
|
-
const DEFAULT_ALERT_CONFIG = {
|
|
2131
|
-
color: 'primary',
|
|
2132
|
-
label: {
|
|
2133
|
-
primary: '',
|
|
2134
|
-
secondary: '',
|
|
2135
|
-
tertiary: '',
|
|
2136
|
-
success: 'TIP: ',
|
|
2137
|
-
info: 'INFO: ',
|
|
2138
|
-
warning: 'WARNING: ',
|
|
2139
|
-
danger: 'IMPORTANT: ',
|
|
2140
|
-
},
|
|
2141
|
-
hideLabel: false,
|
|
2142
|
-
};
|
|
2143
|
-
|
|
2144
|
-
const ALERT_CONFIG = new InjectionToken('ALERT_CONFIG', {
|
|
2145
|
-
factory: () => DEFAULT_ALERT_CONFIG,
|
|
2146
|
-
});
|
|
2147
|
-
|
|
2148
|
-
class Alert {
|
|
2149
|
-
_config = inject(ALERT_CONFIG);
|
|
2150
|
-
color = input(this._config.color, /* @ts-ignore */
|
|
2151
|
-
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
2152
|
-
label = input(typeof this._config.label === 'string' ? this._config.label : null, /* @ts-ignore */
|
|
2153
|
-
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
2154
|
-
hideLabel = input(this._config.hideLabel, { ...(ngDevMode ? { debugName: "hideLabel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2155
|
-
displayLabel = computed(() => {
|
|
2156
|
-
const label = this.label();
|
|
2157
|
-
if (label)
|
|
2158
|
-
return label;
|
|
2159
|
-
if (typeof this._config.label === 'object') {
|
|
2160
|
-
return this._config.label[this.color()];
|
|
2161
|
-
}
|
|
2162
|
-
return '';
|
|
2163
|
-
}, /* @ts-ignore */
|
|
2164
|
-
...(ngDevMode ? [{ debugName: "displayLabel" }] : /* istanbul ignore next */ []));
|
|
2165
|
-
hostClasses = computed(() => {
|
|
2166
|
-
const className = 'tls-alert';
|
|
2167
|
-
const array = [className];
|
|
2168
|
-
array.push(`${className}--${this.color()}`);
|
|
2169
|
-
return array;
|
|
2170
|
-
}, /* @ts-ignore */
|
|
2171
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
2172
|
-
hostRole = computed(() => {
|
|
2173
|
-
const urgent = ['danger', 'warning'];
|
|
2174
|
-
return urgent.includes(this.color()) ? 'alert' : 'note';
|
|
2175
|
-
}, /* @ts-ignore */
|
|
2176
|
-
...(ngDevMode ? [{ debugName: "hostRole" }] : /* istanbul ignore next */ []));
|
|
2177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Alert, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Alert, isStandalone: true, selector: "tls-alert", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "hostRole()", "attr.aria-label": "hideLabel() ? displayLabel() : null" } }, ngImport: i0, template: "<div class=\"tls-alert-icon\"></div>\n<div class=\"tls-alert-body\">\n @if (!hideLabel()) {\n <span class=\"tls-alert-body__label\">{{ displayLabel() }}</span>\n }\n <span class=\"tls-alert-body__content\">\n <ng-content></ng-content>\n </span>\n</div>\n" });
|
|
2179
|
-
}
|
|
2180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Alert, decorators: [{
|
|
2181
|
-
type: Component,
|
|
2182
|
-
args: [{ selector: 'tls-alert', imports: [], host: {
|
|
2183
|
-
'[class]': 'hostClasses()',
|
|
2184
|
-
'[attr.role]': 'hostRole()',
|
|
2185
|
-
'[attr.aria-label]': 'hideLabel() ? displayLabel() : null',
|
|
2186
|
-
}, template: "<div class=\"tls-alert-icon\"></div>\n<div class=\"tls-alert-body\">\n @if (!hideLabel()) {\n <span class=\"tls-alert-body__label\">{{ displayLabel() }}</span>\n }\n <span class=\"tls-alert-body__content\">\n <ng-content></ng-content>\n </span>\n</div>\n" }]
|
|
2187
|
-
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }] } });
|
|
2188
|
-
|
|
2189
|
-
const DEFAULT_BADGE_CONFIG = {
|
|
2190
|
-
color: 'primary',
|
|
2191
|
-
variant: 'filled',
|
|
2192
|
-
position: 'top-end',
|
|
2193
|
-
size: 'md',
|
|
2194
|
-
max: 99,
|
|
2195
|
-
};
|
|
2196
|
-
|
|
2197
|
-
const BADGE_CONFIG = new InjectionToken('BADGE_CONFIG', {
|
|
2198
|
-
factory: () => DEFAULT_BADGE_CONFIG,
|
|
2199
|
-
});
|
|
2200
|
-
|
|
2201
|
-
class Badge {
|
|
2202
|
-
// Injections
|
|
2203
|
-
_config = inject(BADGE_CONFIG);
|
|
2204
|
-
// Inputs
|
|
2205
|
-
value = input(/* @ts-ignore */
|
|
2206
|
-
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2207
|
-
max = input(this._config.max, /* @ts-ignore */
|
|
2208
|
-
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
2209
|
-
color = input(this._config.color, /* @ts-ignore */
|
|
2210
|
-
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
2211
|
-
variant = input(this._config.variant, /* @ts-ignore */
|
|
2212
|
-
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2213
|
-
position = input(this._config.position, /* @ts-ignore */
|
|
2214
|
-
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
2215
|
-
size = input(this._config.size, /* @ts-ignore */
|
|
2216
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2217
|
-
dot = input(false, { ...(ngDevMode ? { debugName: "dot" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2218
|
-
showZero = input(false, { ...(ngDevMode ? { debugName: "showZero" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2219
|
-
hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2220
|
-
inset = input(false, { ...(ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2221
|
-
bordered = input(false, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2222
|
-
ariaLabel = input(undefined, /* @ts-ignore */
|
|
2223
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
2224
|
-
// Computed
|
|
2225
|
-
visible = computed(() => {
|
|
2226
|
-
if (this.hidden())
|
|
2227
|
-
return false;
|
|
2228
|
-
if (this.dot())
|
|
2229
|
-
return true;
|
|
2230
|
-
const value = this.value();
|
|
2231
|
-
if (value === undefined || value === '')
|
|
2232
|
-
return false;
|
|
2233
|
-
if (typeof value === 'number' && value === 0 && !this.showZero())
|
|
2234
|
-
return false;
|
|
2235
|
-
if (value === '0' && !this.showZero())
|
|
2236
|
-
return false;
|
|
2237
|
-
return true;
|
|
2238
|
-
}, /* @ts-ignore */
|
|
2239
|
-
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2240
|
-
displayValue = computed(() => {
|
|
2241
|
-
if (this.dot())
|
|
2242
|
-
return '';
|
|
2243
|
-
const value = this.value();
|
|
2244
|
-
if (typeof value === 'number' && value > this.max())
|
|
2245
|
-
return `${this.max()}+`;
|
|
2246
|
-
return `${value}`;
|
|
2247
|
-
}, /* @ts-ignore */
|
|
2248
|
-
...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
2249
|
-
decorative = computed(() => {
|
|
2250
|
-
if (this.ariaLabel())
|
|
2251
|
-
return false;
|
|
2252
|
-
return this.dot();
|
|
2253
|
-
}, /* @ts-ignore */
|
|
2254
|
-
...(ngDevMode ? [{ debugName: "decorative" }] : /* istanbul ignore next */ []));
|
|
2255
|
-
hostClasses = computed(() => {
|
|
2256
|
-
const className = 'tls-badge';
|
|
2257
|
-
const array = [className];
|
|
2258
|
-
array.push(`${className}--${this.color()}`);
|
|
2259
|
-
array.push(`${className}--${this.variant()}`);
|
|
2260
|
-
array.push(`${className}--${this.position()}`);
|
|
2261
|
-
array.push(`${className}--${this.size()}`);
|
|
2262
|
-
if (this.dot())
|
|
2263
|
-
array.push(`${className}--dot`);
|
|
2264
|
-
if (this.inset())
|
|
2265
|
-
array.push(`${className}--inset`);
|
|
2266
|
-
if (this.bordered())
|
|
2267
|
-
array.push(`${className}--bordered`);
|
|
2268
|
-
return array;
|
|
2269
|
-
}, /* @ts-ignore */
|
|
2270
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
2271
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2272
|
-
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" });
|
|
2273
|
-
}
|
|
2274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, decorators: [{
|
|
2275
|
-
type: Component,
|
|
2276
|
-
args: [{ selector: 'tls-badge', imports: [], host: {
|
|
2277
|
-
'[class]': 'hostClasses()',
|
|
2278
|
-
}, 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" }]
|
|
2279
|
-
}], 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 }] }] } });
|
|
2280
|
-
|
|
2281
2134
|
/**
|
|
2282
2135
|
* Built-in SVG for every {@link systemIcon}. A coherent 24×24 stroked set drawn
|
|
2283
2136
|
* with `currentColor`, no intrinsic width/height so each icon scales to its
|
|
@@ -2542,6 +2395,214 @@ function provideThalassicIcons(icons) {
|
|
|
2542
2395
|
return makeEnvironmentProviders([{ provide: ICON_REGISTRY, useValue: icons }]);
|
|
2543
2396
|
}
|
|
2544
2397
|
|
|
2398
|
+
/**
|
|
2399
|
+
* Marks an element as the alert's leading icon. Projected content wins over the
|
|
2400
|
+
* color-derived built-in glyph, so any visual — an icon, an avatar, a spinner —
|
|
2401
|
+
* can take the icon slot.
|
|
2402
|
+
*/
|
|
2403
|
+
class AlertIcon {
|
|
2404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AlertIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2405
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: AlertIcon, isStandalone: true, selector: "[tlsAlertIcon]", host: { classAttribute: "tls-alert__icon" }, ngImport: i0 });
|
|
2406
|
+
}
|
|
2407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AlertIcon, decorators: [{
|
|
2408
|
+
type: Directive,
|
|
2409
|
+
args: [{
|
|
2410
|
+
selector: '[tlsAlertIcon]',
|
|
2411
|
+
host: { class: 'tls-alert__icon' },
|
|
2412
|
+
}]
|
|
2413
|
+
}] });
|
|
2414
|
+
|
|
2415
|
+
const DEFAULT_ALERT_CONFIG = {
|
|
2416
|
+
color: 'primary',
|
|
2417
|
+
label: {
|
|
2418
|
+
primary: '',
|
|
2419
|
+
secondary: '',
|
|
2420
|
+
tertiary: '',
|
|
2421
|
+
success: 'TIP: ',
|
|
2422
|
+
info: 'INFO: ',
|
|
2423
|
+
warning: 'WARNING: ',
|
|
2424
|
+
danger: 'IMPORTANT: ',
|
|
2425
|
+
},
|
|
2426
|
+
hideLabel: false,
|
|
2427
|
+
icon: {
|
|
2428
|
+
primary: 'info',
|
|
2429
|
+
secondary: 'info',
|
|
2430
|
+
tertiary: 'info',
|
|
2431
|
+
success: 'success',
|
|
2432
|
+
info: 'info',
|
|
2433
|
+
warning: 'warning',
|
|
2434
|
+
danger: 'error',
|
|
2435
|
+
},
|
|
2436
|
+
hideIcon: false,
|
|
2437
|
+
};
|
|
2438
|
+
|
|
2439
|
+
const ALERT_CONFIG = new InjectionToken('ALERT_CONFIG', {
|
|
2440
|
+
factory: () => DEFAULT_ALERT_CONFIG,
|
|
2441
|
+
});
|
|
2442
|
+
|
|
2443
|
+
class Alert {
|
|
2444
|
+
// Injections
|
|
2445
|
+
_config = inject(ALERT_CONFIG);
|
|
2446
|
+
// Inputs
|
|
2447
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
2448
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
2449
|
+
label = input(typeof this._config.label === 'string' ? this._config.label : null, /* @ts-ignore */
|
|
2450
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
2451
|
+
hideLabel = input(this._config.hideLabel, { ...(ngDevMode ? { debugName: "hideLabel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2452
|
+
/** Overrides the color-derived glyph with another icon from the registry. */
|
|
2453
|
+
icon = input(/* @ts-ignore */
|
|
2454
|
+
...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
2455
|
+
/** Renders an arbitrary SVG or image URL as the icon instead of a registry glyph. */
|
|
2456
|
+
iconSrc = input(/* @ts-ignore */
|
|
2457
|
+
...(ngDevMode ? [undefined, { debugName: "iconSrc" }] : /* istanbul ignore next */ []));
|
|
2458
|
+
hideIcon = input(this._config.hideIcon, { ...(ngDevMode ? { debugName: "hideIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2459
|
+
// State
|
|
2460
|
+
/** Consumer-provided visual rendered in place of the built-in icon. */
|
|
2461
|
+
projectedIcon = contentChild(AlertIcon, /* @ts-ignore */
|
|
2462
|
+
...(ngDevMode ? [{ debugName: "projectedIcon" }] : /* istanbul ignore next */ []));
|
|
2463
|
+
// Computed
|
|
2464
|
+
displayLabel = computed(() => {
|
|
2465
|
+
const label = this.label();
|
|
2466
|
+
if (label)
|
|
2467
|
+
return label;
|
|
2468
|
+
if (typeof this._config.label === 'object') {
|
|
2469
|
+
return this._config.label[this.color()];
|
|
2470
|
+
}
|
|
2471
|
+
return '';
|
|
2472
|
+
}, /* @ts-ignore */
|
|
2473
|
+
...(ngDevMode ? [{ debugName: "displayLabel" }] : /* istanbul ignore next */ []));
|
|
2474
|
+
/**
|
|
2475
|
+
* Registry glyph for the current color, or undefined when the icon comes from
|
|
2476
|
+
* `iconSrc` — `tls-icon` ignores a source as soon as a name is present.
|
|
2477
|
+
*/
|
|
2478
|
+
displayIcon = computed(() => {
|
|
2479
|
+
if (this.iconSrc())
|
|
2480
|
+
return undefined;
|
|
2481
|
+
const icon = this.icon();
|
|
2482
|
+
if (icon)
|
|
2483
|
+
return icon;
|
|
2484
|
+
const configIcon = this._config.icon;
|
|
2485
|
+
if (typeof configIcon === 'string')
|
|
2486
|
+
return configIcon;
|
|
2487
|
+
return configIcon[this.color()];
|
|
2488
|
+
}, /* @ts-ignore */
|
|
2489
|
+
...(ngDevMode ? [{ debugName: "displayIcon" }] : /* istanbul ignore next */ []));
|
|
2490
|
+
hostClasses = computed(() => {
|
|
2491
|
+
const className = 'tls-alert';
|
|
2492
|
+
const array = [className];
|
|
2493
|
+
array.push(`${className}--${this.color()}`);
|
|
2494
|
+
return array;
|
|
2495
|
+
}, /* @ts-ignore */
|
|
2496
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
2497
|
+
hostRole = computed(() => {
|
|
2498
|
+
const urgent = ['danger', 'warning'];
|
|
2499
|
+
return urgent.includes(this.color()) ? 'alert' : 'note';
|
|
2500
|
+
}, /* @ts-ignore */
|
|
2501
|
+
...(ngDevMode ? [{ debugName: "hostRole" }] : /* istanbul ignore next */ []));
|
|
2502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Alert, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2503
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Alert, isStandalone: true, selector: "tls-alert", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hideLabel: { classPropertyName: "hideLabel", publicName: "hideLabel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconSrc: { classPropertyName: "iconSrc", publicName: "iconSrc", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()", "attr.role": "hostRole()", "attr.aria-label": "hideLabel() ? displayLabel() : null" } }, queries: [{ propertyName: "projectedIcon", first: true, predicate: AlertIcon, descendants: true, isSignal: true }], ngImport: i0, template: "@if (!hideIcon()) {\n <ng-content select=\"[tlsAlertIcon]\"></ng-content>\n\n @if (!projectedIcon()) {\n <tls-icon\n class=\"tls-alert__icon\"\n [name]=\"displayIcon()\"\n [iconSrc]=\"iconSrc()\"\n aria-hidden=\"true\"\n />\n }\n}\n\n<div class=\"tls-alert__body\">\n @if (!hideLabel()) {\n <span class=\"tls-alert__label\">{{ displayLabel() }}</span>\n }\n <span class=\"tls-alert__content\">\n <ng-content></ng-content>\n </span>\n</div>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
|
|
2504
|
+
}
|
|
2505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Alert, decorators: [{
|
|
2506
|
+
type: Component,
|
|
2507
|
+
args: [{ selector: 'tls-alert', imports: [Icon], host: {
|
|
2508
|
+
'[class]': 'hostClasses()',
|
|
2509
|
+
'[attr.role]': 'hostRole()',
|
|
2510
|
+
'[attr.aria-label]': 'hideLabel() ? displayLabel() : null',
|
|
2511
|
+
}, template: "@if (!hideIcon()) {\n <ng-content select=\"[tlsAlertIcon]\"></ng-content>\n\n @if (!projectedIcon()) {\n <tls-icon\n class=\"tls-alert__icon\"\n [name]=\"displayIcon()\"\n [iconSrc]=\"iconSrc()\"\n aria-hidden=\"true\"\n />\n }\n}\n\n<div class=\"tls-alert__body\">\n @if (!hideLabel()) {\n <span class=\"tls-alert__label\">{{ displayLabel() }}</span>\n }\n <span class=\"tls-alert__content\">\n <ng-content></ng-content>\n </span>\n</div>\n" }]
|
|
2512
|
+
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hideLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSrc", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], projectedIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AlertIcon), { isSignal: true }] }] } });
|
|
2513
|
+
|
|
2514
|
+
const DEFAULT_BADGE_CONFIG = {
|
|
2515
|
+
color: 'primary',
|
|
2516
|
+
variant: 'filled',
|
|
2517
|
+
position: 'top-end',
|
|
2518
|
+
size: 'md',
|
|
2519
|
+
max: 99,
|
|
2520
|
+
};
|
|
2521
|
+
|
|
2522
|
+
const BADGE_CONFIG = new InjectionToken('BADGE_CONFIG', {
|
|
2523
|
+
factory: () => DEFAULT_BADGE_CONFIG,
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2526
|
+
class Badge {
|
|
2527
|
+
// Injections
|
|
2528
|
+
_config = inject(BADGE_CONFIG);
|
|
2529
|
+
// Inputs
|
|
2530
|
+
value = input(/* @ts-ignore */
|
|
2531
|
+
...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2532
|
+
max = input(this._config.max, /* @ts-ignore */
|
|
2533
|
+
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
2534
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
2535
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
2536
|
+
variant = input(this._config.variant, /* @ts-ignore */
|
|
2537
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2538
|
+
position = input(this._config.position, /* @ts-ignore */
|
|
2539
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
2540
|
+
size = input(this._config.size, /* @ts-ignore */
|
|
2541
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2542
|
+
dot = input(false, { ...(ngDevMode ? { debugName: "dot" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2543
|
+
showZero = input(false, { ...(ngDevMode ? { debugName: "showZero" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2544
|
+
hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2545
|
+
inset = input(false, { ...(ngDevMode ? { debugName: "inset" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2546
|
+
bordered = input(false, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2547
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
2548
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
2549
|
+
// Computed
|
|
2550
|
+
visible = computed(() => {
|
|
2551
|
+
if (this.hidden())
|
|
2552
|
+
return false;
|
|
2553
|
+
if (this.dot())
|
|
2554
|
+
return true;
|
|
2555
|
+
const value = this.value();
|
|
2556
|
+
if (value === undefined || value === '')
|
|
2557
|
+
return false;
|
|
2558
|
+
if (typeof value === 'number' && value === 0 && !this.showZero())
|
|
2559
|
+
return false;
|
|
2560
|
+
if (value === '0' && !this.showZero())
|
|
2561
|
+
return false;
|
|
2562
|
+
return true;
|
|
2563
|
+
}, /* @ts-ignore */
|
|
2564
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2565
|
+
displayValue = computed(() => {
|
|
2566
|
+
if (this.dot())
|
|
2567
|
+
return '';
|
|
2568
|
+
const value = this.value();
|
|
2569
|
+
if (typeof value === 'number' && value > this.max())
|
|
2570
|
+
return `${this.max()}+`;
|
|
2571
|
+
return `${value}`;
|
|
2572
|
+
}, /* @ts-ignore */
|
|
2573
|
+
...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
2574
|
+
decorative = computed(() => {
|
|
2575
|
+
if (this.ariaLabel())
|
|
2576
|
+
return false;
|
|
2577
|
+
return this.dot();
|
|
2578
|
+
}, /* @ts-ignore */
|
|
2579
|
+
...(ngDevMode ? [{ debugName: "decorative" }] : /* istanbul ignore next */ []));
|
|
2580
|
+
hostClasses = computed(() => {
|
|
2581
|
+
const className = 'tls-badge';
|
|
2582
|
+
const array = [className];
|
|
2583
|
+
array.push(`${className}--${this.color()}`);
|
|
2584
|
+
array.push(`${className}--${this.variant()}`);
|
|
2585
|
+
array.push(`${className}--${this.position()}`);
|
|
2586
|
+
array.push(`${className}--${this.size()}`);
|
|
2587
|
+
if (this.dot())
|
|
2588
|
+
array.push(`${className}--dot`);
|
|
2589
|
+
if (this.inset())
|
|
2590
|
+
array.push(`${className}--inset`);
|
|
2591
|
+
if (this.bordered())
|
|
2592
|
+
array.push(`${className}--bordered`);
|
|
2593
|
+
return array;
|
|
2594
|
+
}, /* @ts-ignore */
|
|
2595
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
2596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2597
|
+
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" });
|
|
2598
|
+
}
|
|
2599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Badge, decorators: [{
|
|
2600
|
+
type: Component,
|
|
2601
|
+
args: [{ selector: 'tls-badge', imports: [], host: {
|
|
2602
|
+
'[class]': 'hostClasses()',
|
|
2603
|
+
}, 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" }]
|
|
2604
|
+
}], 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 }] }] } });
|
|
2605
|
+
|
|
2545
2606
|
const DEFAULT_BREADCRUMBS_CONFIG = {
|
|
2546
2607
|
separatorIcon: 'chevron-right',
|
|
2547
2608
|
};
|
|
@@ -4428,12 +4489,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
4428
4489
|
|
|
4429
4490
|
// Named size tokens, used to tell a preset apart from a custom CSS-length string.
|
|
4430
4491
|
const DRAWER_NAMED_SIZES = ['sm', 'md', 'lg', 'full', 'auto'];
|
|
4492
|
+
// Fraction of the panel's extent a drag must cover for the release to dismiss
|
|
4493
|
+
// rather than snap back. A flick commits regardless of distance, so this only
|
|
4494
|
+
// governs slow drags, where releasing past the panel's midpoint would feel late.
|
|
4495
|
+
const DRAWER_DISMISS_RATIO = 0.4;
|
|
4496
|
+
// Pointer types allowed to drag the panel. Dragging a panel shut is a touch
|
|
4497
|
+
// idiom; on a mouse the drag would instead fight text selection through the
|
|
4498
|
+
// gesture's slop, and the close button and Escape already serve that pointer.
|
|
4499
|
+
const DRAWER_DRAG_POINTER_TYPES = ['touch', 'pen'];
|
|
4431
4500
|
|
|
4432
4501
|
const DEFAULT_DRAWER_CONFIG = {
|
|
4433
4502
|
side: 'end',
|
|
4434
4503
|
size: 'md',
|
|
4435
4504
|
closeable: true,
|
|
4436
4505
|
backdropClose: true,
|
|
4506
|
+
escapeClose: true,
|
|
4437
4507
|
rounded: false,
|
|
4438
4508
|
grabber: false,
|
|
4439
4509
|
closeLabel: 'Close drawer',
|
|
@@ -4447,10 +4517,20 @@ class Drawer extends CdkDialogContainer {
|
|
|
4447
4517
|
// Injections
|
|
4448
4518
|
_tlsConfig = inject(DRAWER_CONFIG);
|
|
4449
4519
|
_dialogRef = inject(DialogRef$1);
|
|
4520
|
+
_directionality = inject(Directionality);
|
|
4521
|
+
// Named apart from the base container's own renderer and injector, which are
|
|
4522
|
+
// private to it. Both exist solely to serve the drag gesture.
|
|
4523
|
+
_dragRenderer = inject(Renderer2);
|
|
4524
|
+
_dragInjector = inject(Injector);
|
|
4450
4525
|
// State
|
|
4451
4526
|
_state = signal('enter', /* @ts-ignore */
|
|
4452
4527
|
...(ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []));
|
|
4528
|
+
_dragState = signal('idle', /* @ts-ignore */
|
|
4529
|
+
...(ngDevMode ? [{ debugName: "_dragState" }] : /* istanbul ignore next */ []));
|
|
4453
4530
|
_closing = false;
|
|
4531
|
+
// Panel extent along the drag axis, sampled once per gesture: the panel may be
|
|
4532
|
+
// sized by content or by a custom length, so only the rendered box is authoritative.
|
|
4533
|
+
_dragExtent = 0;
|
|
4454
4534
|
// Computed
|
|
4455
4535
|
hostClasses = computed(() => {
|
|
4456
4536
|
const classes = [
|
|
@@ -4461,9 +4541,32 @@ class Drawer extends CdkDialogContainer {
|
|
|
4461
4541
|
];
|
|
4462
4542
|
if (this._tlsConfig.rounded)
|
|
4463
4543
|
classes.push('tls-drawer--rounded');
|
|
4544
|
+
if (this._tlsConfig.grabber)
|
|
4545
|
+
classes.push('tls-drawer--grabber');
|
|
4546
|
+
const dragState = this._dragState();
|
|
4547
|
+
if (dragState !== 'idle')
|
|
4548
|
+
classes.push(`tls-drawer--${dragState}`);
|
|
4464
4549
|
return classes;
|
|
4465
4550
|
}, /* @ts-ignore */
|
|
4466
4551
|
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
4552
|
+
constructor() {
|
|
4553
|
+
super();
|
|
4554
|
+
// Subscribed rather than bound through host listeners: `$event` on a host
|
|
4555
|
+
// listener for a host directive's output is typed as a bare `Event`, so the
|
|
4556
|
+
// payload would have to be cast back. `panMove` stays outside the Angular
|
|
4557
|
+
// zone through a direct subscription, which is the point of it.
|
|
4558
|
+
const pan = inject(PanDirective);
|
|
4559
|
+
const subscriptions = [
|
|
4560
|
+
pan.panStart.subscribe(() => this._onPanStart()),
|
|
4561
|
+
pan.panMove.subscribe(event => this._onPanMove(event)),
|
|
4562
|
+
pan.panEnd.subscribe(event => this._onPanEnd(event)),
|
|
4563
|
+
pan.panCancel.subscribe(() => this._onPanCancel()),
|
|
4564
|
+
];
|
|
4565
|
+
inject(DestroyRef).onDestroy(() => {
|
|
4566
|
+
for (const subscription of subscriptions)
|
|
4567
|
+
subscription.unsubscribe();
|
|
4568
|
+
});
|
|
4569
|
+
}
|
|
4467
4570
|
// Accessors
|
|
4468
4571
|
get config() {
|
|
4469
4572
|
return this._tlsConfig;
|
|
@@ -4489,6 +4592,154 @@ class Drawer extends CdkDialogContainer {
|
|
|
4489
4592
|
this.animatedClose();
|
|
4490
4593
|
}
|
|
4491
4594
|
// Private methods
|
|
4595
|
+
_onPanStart() {
|
|
4596
|
+
if (this._closing)
|
|
4597
|
+
return;
|
|
4598
|
+
const rect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
4599
|
+
this._dragExtent = this._isInlineSide() ? rect.width : rect.height;
|
|
4600
|
+
this._dragState.set('dragging');
|
|
4601
|
+
// The backdrop tracks the finger for the drag's duration, so its own
|
|
4602
|
+
// transition — which exists to animate the settle — must not lag it.
|
|
4603
|
+
this._setBackdropTransition('none');
|
|
4604
|
+
}
|
|
4605
|
+
// Fired outside the Angular zone (see `PanDirective.panMove`), so it writes to
|
|
4606
|
+
// the DOM directly and never touches a signal.
|
|
4607
|
+
_onPanMove(event) {
|
|
4608
|
+
if (this._closing)
|
|
4609
|
+
return;
|
|
4610
|
+
this._applyDrag(this._dismissTravel(event));
|
|
4611
|
+
}
|
|
4612
|
+
_onPanEnd(event) {
|
|
4613
|
+
if (this._closing)
|
|
4614
|
+
return;
|
|
4615
|
+
// Either condition commits: a short flick is as clear an intent to dismiss as
|
|
4616
|
+
// a slow drag past the ratio, and requiring both would strand each on its own.
|
|
4617
|
+
const travelled = this._dragExtent > 0 && this._dismissTravel(event) / this._dragExtent >= DRAWER_DISMISS_RATIO;
|
|
4618
|
+
const flicked = this._dismissVelocity(event) >= SWIPE_DEFAULT_MIN_VELOCITY;
|
|
4619
|
+
if (travelled || flicked) {
|
|
4620
|
+
this._dragClose();
|
|
4621
|
+
return;
|
|
4622
|
+
}
|
|
4623
|
+
this._settleBack();
|
|
4624
|
+
}
|
|
4625
|
+
_onPanCancel() {
|
|
4626
|
+
if (this._closing)
|
|
4627
|
+
return;
|
|
4628
|
+
this._settleBack();
|
|
4629
|
+
}
|
|
4630
|
+
// Travel toward the panel's pinned edge in px. Negative while the finger moves
|
|
4631
|
+
// the other way, which the caller clamps away — the panel does not overshoot open.
|
|
4632
|
+
_dismissTravel(event) {
|
|
4633
|
+
switch (this._tlsConfig.side) {
|
|
4634
|
+
case 'top':
|
|
4635
|
+
return -event.deltaY;
|
|
4636
|
+
case 'bottom':
|
|
4637
|
+
return event.deltaY;
|
|
4638
|
+
case 'start':
|
|
4639
|
+
return -this._toLogical(event.deltaX);
|
|
4640
|
+
case 'end':
|
|
4641
|
+
return this._toLogical(event.deltaX);
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
// Release velocity toward the pinned edge in px/ms. Signed independently of
|
|
4645
|
+
// `_dismissTravel`: a drag that reverses into a flick must read as the flick.
|
|
4646
|
+
_dismissVelocity(event) {
|
|
4647
|
+
switch (this._tlsConfig.side) {
|
|
4648
|
+
case 'top':
|
|
4649
|
+
return -event.velocityY;
|
|
4650
|
+
case 'bottom':
|
|
4651
|
+
return event.velocityY;
|
|
4652
|
+
case 'start':
|
|
4653
|
+
return -this._toLogical(event.velocityX);
|
|
4654
|
+
case 'end':
|
|
4655
|
+
return this._toLogical(event.velocityX);
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
// Horizontal quantities arrive physical; the inline sides are logical, so the
|
|
4659
|
+
// sign flips in RTL.
|
|
4660
|
+
_toLogical(physicalX) {
|
|
4661
|
+
return this._directionality.value === 'rtl' ? -physicalX : physicalX;
|
|
4662
|
+
}
|
|
4663
|
+
_isInlineSide() {
|
|
4664
|
+
const side = this._tlsConfig.side;
|
|
4665
|
+
return side === 'start' || side === 'end';
|
|
4666
|
+
}
|
|
4667
|
+
_applyDrag(travel) {
|
|
4668
|
+
const offset = Math.max(0, travel);
|
|
4669
|
+
this._dragRenderer.setStyle(this._elementRef.nativeElement, '--tls-drawer-drag', `${offset}px`, RendererStyleFlags2.DashCase);
|
|
4670
|
+
const backdrop = this._dialogRef.overlayRef.backdropElement;
|
|
4671
|
+
if (backdrop === null)
|
|
4672
|
+
return;
|
|
4673
|
+
const progress = this._dragExtent > 0 ? Math.min(1, offset / this._dragExtent) : 0;
|
|
4674
|
+
this._dragRenderer.setStyle(backdrop, 'opacity', `${1 - progress}`);
|
|
4675
|
+
}
|
|
4676
|
+
_setBackdropTransition(value) {
|
|
4677
|
+
const backdrop = this._dialogRef.overlayRef.backdropElement;
|
|
4678
|
+
if (backdrop === null)
|
|
4679
|
+
return;
|
|
4680
|
+
if (value === null) {
|
|
4681
|
+
this._dragRenderer.removeStyle(backdrop, 'transition');
|
|
4682
|
+
return;
|
|
4683
|
+
}
|
|
4684
|
+
this._dragRenderer.setStyle(backdrop, 'transition', value);
|
|
4685
|
+
}
|
|
4686
|
+
// Returns the panel to rest after a drag that did not commit.
|
|
4687
|
+
_settleBack() {
|
|
4688
|
+
this._settle(0, () => this._dragState.set('idle'));
|
|
4689
|
+
}
|
|
4690
|
+
// Continues the drag out to the pinned edge and disposes on arrival. A dismissal
|
|
4691
|
+
// that began as a drag cannot route through `animatedClose`: the slide-out
|
|
4692
|
+
// keyframe starts from `transform: none`, so the panel would snap back to fully
|
|
4693
|
+
// open for a frame before leaving.
|
|
4694
|
+
_dragClose() {
|
|
4695
|
+
this._closing = true;
|
|
4696
|
+
this._settle(this._dragExtent, () => this._dialogRef.close());
|
|
4697
|
+
}
|
|
4698
|
+
_settle(target, onDone) {
|
|
4699
|
+
this._dragState.set('settling');
|
|
4700
|
+
this._setBackdropTransition(null);
|
|
4701
|
+
// The settle transition lives on the `--settling` class, so the target value
|
|
4702
|
+
// must not be written until change detection has put that class on the host —
|
|
4703
|
+
// set in the same frame, the property would jump instead of animating.
|
|
4704
|
+
afterNextRender(() => {
|
|
4705
|
+
this._applyDrag(target);
|
|
4706
|
+
this._afterSettle(onDone);
|
|
4707
|
+
}, { injector: this._dragInjector });
|
|
4708
|
+
}
|
|
4709
|
+
// Runs `onDone` once the settle transition finishes, or at once when no
|
|
4710
|
+
// transition is emitted (the `none` motion level), so a drawer dismissed by
|
|
4711
|
+
// drag still closes when the user has asked for no motion.
|
|
4712
|
+
_afterSettle(onDone) {
|
|
4713
|
+
const host = this._elementRef.nativeElement;
|
|
4714
|
+
// `transitionDuration` is a comma-separated list, and is absent entirely
|
|
4715
|
+
// where the engine reports no transition at all, so the test is whether any
|
|
4716
|
+
// entry actually lasts — not equality against a single `0s`.
|
|
4717
|
+
const runs = getComputedStyle(host)
|
|
4718
|
+
.transitionDuration.split(',')
|
|
4719
|
+
.some(duration => parseFloat(duration) > 0);
|
|
4720
|
+
if (!runs) {
|
|
4721
|
+
onDone();
|
|
4722
|
+
return;
|
|
4723
|
+
}
|
|
4724
|
+
let settled = false;
|
|
4725
|
+
const finalize = () => {
|
|
4726
|
+
if (settled)
|
|
4727
|
+
return;
|
|
4728
|
+
settled = true;
|
|
4729
|
+
window.clearTimeout(timeoutId);
|
|
4730
|
+
host.removeEventListener('transitionend', onTransitionEnd);
|
|
4731
|
+
onDone();
|
|
4732
|
+
};
|
|
4733
|
+
// Only the panel's own transform settles it; ignore `transitionend` bubbling
|
|
4734
|
+
// up from animated content inside it.
|
|
4735
|
+
const onTransitionEnd = (event) => {
|
|
4736
|
+
if (event.target === host && event.propertyName === 'transform')
|
|
4737
|
+
finalize();
|
|
4738
|
+
};
|
|
4739
|
+
host.addEventListener('transitionend', onTransitionEnd);
|
|
4740
|
+
// Safety net if `transitionend` never arrives (e.g. the panel is torn down early).
|
|
4741
|
+
const timeoutId = window.setTimeout(finalize, LEAVE_ANIMATION_FALLBACK_MS);
|
|
4742
|
+
}
|
|
4492
4743
|
_sizeClass() {
|
|
4493
4744
|
const size = this._tlsConfig.size;
|
|
4494
4745
|
return this._isNamedSize(size) ? size : 'custom';
|
|
@@ -4496,16 +4747,16 @@ class Drawer extends CdkDialogContainer {
|
|
|
4496
4747
|
_isNamedSize(size) {
|
|
4497
4748
|
return DRAWER_NAMED_SIZES.includes(size);
|
|
4498
4749
|
}
|
|
4499
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Drawer, deps:
|
|
4500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Drawer, isStandalone: true, selector: "tls-drawer", host: { properties: { "class": "hostClasses()", "style.--tls-drawer-size": "customSize" } }, usesInheritance: true, ngImport: i0, template: "@if (config.grabber) {\n <div class=\"tls-drawer__grabber\" aria-hidden=\"true\"></div>\n}\n<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button class=\"tls-drawer__close\" type=\"button\" [attr.aria-label]=\"config.closeLabel\" (click)=\"close()\">\n <tls-icon name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n", dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
|
|
4750
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Drawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4751
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Drawer, isStandalone: true, selector: "tls-drawer", host: { properties: { "class": "hostClasses()", "style.--tls-drawer-size": "customSize" } }, usesInheritance: true, hostDirectives: [{ directive: i1.PanDirective }], ngImport: i0, template: "@if (config.grabber) {\n <div class=\"tls-drawer__grabber\" aria-hidden=\"true\"></div>\n}\n<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button class=\"tls-drawer__close\" type=\"button\" [attr.aria-label]=\"config.closeLabel\" (click)=\"close()\">\n <tls-icon name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n", dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
|
|
4501
4752
|
}
|
|
4502
4753
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Drawer, decorators: [{
|
|
4503
4754
|
type: Component,
|
|
4504
|
-
args: [{ selector: 'tls-drawer', imports: [CdkPortalOutlet, Icon], host: {
|
|
4755
|
+
args: [{ selector: 'tls-drawer', imports: [CdkPortalOutlet, Icon], hostDirectives: [PanDirective], host: {
|
|
4505
4756
|
'[class]': 'hostClasses()',
|
|
4506
4757
|
'[style.--tls-drawer-size]': 'customSize',
|
|
4507
4758
|
}, template: "@if (config.grabber) {\n <div class=\"tls-drawer__grabber\" aria-hidden=\"true\"></div>\n}\n<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button class=\"tls-drawer__close\" type=\"button\" [attr.aria-label]=\"config.closeLabel\" (click)=\"close()\">\n <tls-icon name=\"close\" aria-hidden=\"true\" />\n </button>\n}\n" }]
|
|
4508
|
-
}] });
|
|
4759
|
+
}], ctorParameters: () => [] });
|
|
4509
4760
|
|
|
4510
4761
|
/**
|
|
4511
4762
|
* Handle to an open drawer. Provided to the drawer's content component (inject it
|
|
@@ -4545,6 +4796,7 @@ class DrawerService {
|
|
|
4545
4796
|
size: config?.size ?? this._config.size,
|
|
4546
4797
|
closeable: config?.closeable ?? this._config.closeable,
|
|
4547
4798
|
backdropClose: config?.backdropClose ?? this._config.backdropClose,
|
|
4799
|
+
escapeClose: config?.escapeClose ?? this._config.escapeClose,
|
|
4548
4800
|
rounded: config?.rounded ?? this._config.rounded,
|
|
4549
4801
|
grabber: config?.grabber ?? this._config.grabber,
|
|
4550
4802
|
closeLabel: config?.closeLabel ?? this._config.closeLabel,
|
|
@@ -4553,7 +4805,10 @@ class DrawerService {
|
|
|
4553
4805
|
const dialogRef = this._dialog.open(component, {
|
|
4554
4806
|
container: {
|
|
4555
4807
|
type: Drawer,
|
|
4556
|
-
providers: () => [
|
|
4808
|
+
providers: () => [
|
|
4809
|
+
{ provide: DRAWER_CONFIG, useValue: resolvedConfig },
|
|
4810
|
+
{ provide: PAN_CONFIG, useValue: this._buildPanConfig(resolvedConfig) },
|
|
4811
|
+
],
|
|
4557
4812
|
},
|
|
4558
4813
|
// Built against the content injector so the drawer's content can `inject(DrawerRef)`
|
|
4559
4814
|
// to close itself. The same instance is returned to the caller below.
|
|
@@ -4587,6 +4842,22 @@ class DrawerService {
|
|
|
4587
4842
|
drawerRef.close();
|
|
4588
4843
|
}
|
|
4589
4844
|
// Private
|
|
4845
|
+
// The drag gesture lives on the drawer container, whose inputs cannot be bound
|
|
4846
|
+
// because the CDK instantiates it rather than a template, so its configuration
|
|
4847
|
+
// is handed down through the injector instead.
|
|
4848
|
+
_buildPanConfig(config) {
|
|
4849
|
+
return {
|
|
4850
|
+
...DEFAULT_PAN_CONFIG,
|
|
4851
|
+
// The grabber is the affordance for the gesture, so the pill and the drag
|
|
4852
|
+
// are one decision — a visible grabber is always draggable, and a panel
|
|
4853
|
+
// without one carries no gesture at all.
|
|
4854
|
+
enabled: config.grabber,
|
|
4855
|
+
// Locked to the panel's own axis so the browser keeps the cross axis and
|
|
4856
|
+
// content inside the drawer still scrolls natively.
|
|
4857
|
+
axis: config.side === 'top' || config.side === 'bottom' ? 'y' : 'x',
|
|
4858
|
+
pointerTypes: DRAWER_DRAG_POINTER_TYPES,
|
|
4859
|
+
};
|
|
4860
|
+
}
|
|
4590
4861
|
_buildPositionStrategy(side) {
|
|
4591
4862
|
const position = this._overlay.position().global();
|
|
4592
4863
|
const isRtl = this._directionality.value === 'rtl';
|
|
@@ -4604,14 +4875,16 @@ class DrawerService {
|
|
|
4604
4875
|
}
|
|
4605
4876
|
}
|
|
4606
4877
|
_wireDismissal(dialogRef, drawerRef, config) {
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
.pipe(takeUntil(dialogRef.closed))
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4878
|
+
// Gated separately: a drawer that ignores backdrop clicks must still be
|
|
4879
|
+
// dismissable from the keyboard unless the caller opts out of that too.
|
|
4880
|
+
if (config.backdropClose) {
|
|
4881
|
+
dialogRef.backdropClick.pipe(takeUntil(dialogRef.closed)).subscribe(() => drawerRef.close());
|
|
4882
|
+
}
|
|
4883
|
+
if (config.escapeClose) {
|
|
4884
|
+
dialogRef.keydownEvents
|
|
4885
|
+
.pipe(takeUntil(dialogRef.closed), filter(event => event.key === 'Escape'))
|
|
4886
|
+
.subscribe(() => drawerRef.close());
|
|
4887
|
+
}
|
|
4615
4888
|
}
|
|
4616
4889
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DrawerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4617
4890
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DrawerService, providedIn: 'root' });
|
|
@@ -7638,6 +7911,240 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
7638
7911
|
}, template: "<div class=\"tls-image-compare__layer tls-image-compare__after\">\n <ng-content select=\"[after]\"></ng-content>\n</div>\n\n<div class=\"tls-image-compare__layer tls-image-compare__before\" [style.clip-path]=\"clipPath()\">\n <ng-content select=\"[before]\"></ng-content>\n</div>\n\n<div\n #handle\n class=\"tls-image-compare__handle\"\n role=\"slider\"\n tabindex=\"0\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-valuenow]=\"valueNow()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [style.inset-inline-start.%]=\"isHorizontal() ? clampedPosition() : null\"\n [style.inset-block-start.%]=\"isHorizontal() ? null : clampedPosition()\"\n (keydown)=\"onHandleKeydown($event)\"\n>\n <span class=\"tls-image-compare__grip\" aria-hidden=\"true\"></span>\n</div>\n" }]
|
|
7639
7912
|
}], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], keyboardStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyboardStep", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }, { type: i0.Output, args: ["positionChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], _handle: [{ type: i0.ViewChild, args: ['handle', { isSignal: true }] }] } });
|
|
7640
7913
|
|
|
7914
|
+
const DEFAULT_INFINITE_SCROLL_CONFIG = {
|
|
7915
|
+
rootMargin: 200,
|
|
7916
|
+
autoLoadLimit: 3,
|
|
7917
|
+
labels: {
|
|
7918
|
+
loading: 'Loading more items',
|
|
7919
|
+
complete: 'No more items',
|
|
7920
|
+
loadMore: 'Load more',
|
|
7921
|
+
},
|
|
7922
|
+
};
|
|
7923
|
+
|
|
7924
|
+
const INFINITE_SCROLL_CONFIG = new InjectionToken('INFINITE_SCROLL_CONFIG', { factory: () => DEFAULT_INFINITE_SCROLL_CONFIG });
|
|
7925
|
+
|
|
7926
|
+
/**
|
|
7927
|
+
* End-of-collection trigger that asks for the next page as the reader approaches it. The
|
|
7928
|
+
* host is the sentinel: it is placed immediately after the collection and watched with an
|
|
7929
|
+
* `IntersectionObserver`, so `loadMore` fires once it comes within `rootMargin` of the
|
|
7930
|
+
* scroll edge. It renders the loading, end-of-collection and manual-trigger states of that
|
|
7931
|
+
* cycle, and nothing else — the collection above it stays entirely the consumer's.
|
|
7932
|
+
*
|
|
7933
|
+
* ```html
|
|
7934
|
+
* @for (article of articles(); track article.id) {
|
|
7935
|
+
* <article>…</article>
|
|
7936
|
+
* }
|
|
7937
|
+
*
|
|
7938
|
+
* <tls-infinite-scroll
|
|
7939
|
+
* [loading]="loading()"
|
|
7940
|
+
* [complete]="loadedEverything()"
|
|
7941
|
+
* (loadMore)="loadNextPage()"
|
|
7942
|
+
* />
|
|
7943
|
+
* ```
|
|
7944
|
+
*
|
|
7945
|
+
* The component owns no data, so `loading` is how it learns what became of a request:
|
|
7946
|
+
* raising it suspends the watch, and lowering it re-checks the sentinel and asks for one
|
|
7947
|
+
* more page while the collection is still too short to fill the container. Until `loading`
|
|
7948
|
+
* moves, the request already made stands, and the sentinel sitting in view cannot turn into
|
|
7949
|
+
* a second one — so a consumer that never raises `loading` at all gets exactly one request
|
|
7950
|
+
* each time the sentinel is scrolled into view.
|
|
7951
|
+
*
|
|
7952
|
+
* Content that grows without end leaves anything below it unreachable, so the automatic
|
|
7953
|
+
* loads are rationed: after `autoLoadLimit` of them in a row the component stops watching
|
|
7954
|
+
* and renders a button, and the allowance is renewed each time that button is used. The
|
|
7955
|
+
* three states each accept replacement content —
|
|
7956
|
+
* `[tlsInfiniteScrollLoading]`, `[tlsInfiniteScrollComplete]`, `[tlsInfiniteScrollTrigger]`
|
|
7957
|
+
* — projected in place of the loader, the end notice and the button:
|
|
7958
|
+
*
|
|
7959
|
+
* ```html
|
|
7960
|
+
* <tls-infinite-scroll [loading]="loading()" (loadMore)="loadNextPage()">
|
|
7961
|
+
* <tls-skeleton tlsInfiniteScrollLoading height="64px" />
|
|
7962
|
+
* </tls-infinite-scroll>
|
|
7963
|
+
* ```
|
|
7964
|
+
*
|
|
7965
|
+
* Visibility is clipped by every scrolling ancestor, so a collection inside a panel triggers
|
|
7966
|
+
* without configuration — but the head start does not come for free with it: `rootMargin`
|
|
7967
|
+
* expands the root's box and nothing else, and the root is the viewport until one is named.
|
|
7968
|
+
* Left unset inside a panel, the next page is therefore requested only as the sentinel
|
|
7969
|
+
* reaches the panel's edge; pass that panel as `root` to get the margin back.
|
|
7970
|
+
*
|
|
7971
|
+
* The end notice is announced from `labels.complete`, whatever stands in the slot, so
|
|
7972
|
+
* replacement content belongs with a label that says the same thing.
|
|
7973
|
+
*/
|
|
7974
|
+
class InfiniteScroll {
|
|
7975
|
+
// Injections
|
|
7976
|
+
_config = inject(INFINITE_SCROLL_CONFIG);
|
|
7977
|
+
_elementRef = inject(ElementRef);
|
|
7978
|
+
_isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
7979
|
+
// Inputs
|
|
7980
|
+
/**
|
|
7981
|
+
* Whether a page is in flight. While it is raised nothing is watched and nothing is
|
|
7982
|
+
* emitted; lowering it re-measures the sentinel and requests the next page when the
|
|
7983
|
+
* collection still has not reached past the scroll edge.
|
|
7984
|
+
*/
|
|
7985
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
7986
|
+
/** Whether the collection is exhausted. Ends the cycle and renders the end notice. */
|
|
7987
|
+
complete = input(false, { ...(ngDevMode ? { debugName: "complete" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
7988
|
+
/**
|
|
7989
|
+
* Suspends the whole trigger without ending it: nothing is watched, nothing is rendered,
|
|
7990
|
+
* and the automatic allowance is kept for when it is lifted.
|
|
7991
|
+
*/
|
|
7992
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
7993
|
+
/**
|
|
7994
|
+
* Renders the button from the start instead of loading on approach. The scroll position
|
|
7995
|
+
* then never triggers a request, which is what a collection whose items are expensive to
|
|
7996
|
+
* render — or one a reader is likely to scroll past — should do.
|
|
7997
|
+
*/
|
|
7998
|
+
manual = input(false, { ...(ngDevMode ? { debugName: "manual" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
7999
|
+
/** Distance ahead of the scroll edge at which a load starts, in pixels. */
|
|
8000
|
+
rootMargin = input(this._config.rootMargin, { ...(ngDevMode ? { debugName: "rootMargin" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
8001
|
+
/** Consecutive automatic loads before the button takes over; `0` removes the limit. */
|
|
8002
|
+
autoLoadLimit = input(this._config.autoLoadLimit, { ...(ngDevMode ? { debugName: "autoLoadLimit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
8003
|
+
/**
|
|
8004
|
+
* Element the sentinel's visibility is measured against. Left unset that is the viewport,
|
|
8005
|
+
* clipped by whatever scrolling ancestors lie in between — enough to trigger inside a
|
|
8006
|
+
* panel, but `rootMargin` then expands the viewport's box rather than the panel's, which
|
|
8007
|
+
* costs the head start. Name the scrolling container to measure the margin against it.
|
|
8008
|
+
*/
|
|
8009
|
+
root = input(null, /* @ts-ignore */
|
|
8010
|
+
...(ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []));
|
|
8011
|
+
// Outputs
|
|
8012
|
+
/**
|
|
8013
|
+
* Request for one more page. One request stands at a time: nothing follows it until
|
|
8014
|
+
* `loading` moves or the sentinel leaves view, whether it came from the scroll position
|
|
8015
|
+
* or from the button.
|
|
8016
|
+
*/
|
|
8017
|
+
loadMore = output();
|
|
8018
|
+
// State
|
|
8019
|
+
labels = this._config.labels;
|
|
8020
|
+
/** Automatic loads since the last time the button was used. */
|
|
8021
|
+
_automaticLoads = signal(0, /* @ts-ignore */
|
|
8022
|
+
...(ngDevMode ? [{ debugName: "_automaticLoads" }] : /* istanbul ignore next */ []));
|
|
8023
|
+
/**
|
|
8024
|
+
* Whether a request has gone out that nothing has accounted for yet. The sentinel keeps
|
|
8025
|
+
* reporting itself visible after a page is asked for — an observer started while it is in
|
|
8026
|
+
* view says so immediately — so without this a single request would be repeated for as
|
|
8027
|
+
* long as it takes the collection to grow past the scroll edge. Any change to `loading`
|
|
8028
|
+
* settles the outstanding request: raising it is the consumer taking the request on,
|
|
8029
|
+
* lowering it means the page has landed.
|
|
8030
|
+
*/
|
|
8031
|
+
_pending = linkedSignal({ ...(ngDevMode ? { debugName: "_pending" } : /* istanbul ignore next */ {}), source: this.loading,
|
|
8032
|
+
computation: () => false });
|
|
8033
|
+
// Computed
|
|
8034
|
+
state = computed(() => {
|
|
8035
|
+
// Suspension outranks every other state: a trigger told to stand down neither watches
|
|
8036
|
+
// nor reports, whatever the collection is doing meanwhile.
|
|
8037
|
+
if (this.disabled())
|
|
8038
|
+
return 'disabled';
|
|
8039
|
+
if (this.complete())
|
|
8040
|
+
return 'complete';
|
|
8041
|
+
if (this.loading())
|
|
8042
|
+
return 'loading';
|
|
8043
|
+
const limit = this.autoLoadLimit();
|
|
8044
|
+
if (this.manual() || (limit > 0 && this._automaticLoads() >= limit))
|
|
8045
|
+
return 'manual';
|
|
8046
|
+
return 'idle';
|
|
8047
|
+
}, /* @ts-ignore */
|
|
8048
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
8049
|
+
/** Text of the live region: empty in every state that has nothing to report. */
|
|
8050
|
+
announcement = computed(() => {
|
|
8051
|
+
const state = this.state();
|
|
8052
|
+
if (state === 'loading')
|
|
8053
|
+
return this.labels.loading;
|
|
8054
|
+
if (state === 'complete')
|
|
8055
|
+
return this.labels.complete;
|
|
8056
|
+
return '';
|
|
8057
|
+
}, /* @ts-ignore */
|
|
8058
|
+
...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
|
|
8059
|
+
hostClasses = computed(() => [
|
|
8060
|
+
'tls-infinite-scroll',
|
|
8061
|
+
`tls-infinite-scroll--${this.state()}`,
|
|
8062
|
+
], /* @ts-ignore */
|
|
8063
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
8064
|
+
/**
|
|
8065
|
+
* Whether the sentinel is under observation. Observation outlives the point at which the
|
|
8066
|
+
* component stops asking for pages: a request that the consumer never reports on is
|
|
8067
|
+
* settled by the sentinel leaving view, which only an observer still in place can see.
|
|
8068
|
+
*/
|
|
8069
|
+
_observing = computed(() => this.state() === 'idle', /* @ts-ignore */
|
|
8070
|
+
...(ngDevMode ? [{ debugName: "_observing" }] : /* istanbul ignore next */ []));
|
|
8071
|
+
/** Whether a report of the sentinel in view should turn into a request. */
|
|
8072
|
+
_requesting = computed(() => this._observing() && !this._pending(), /* @ts-ignore */
|
|
8073
|
+
...(ngDevMode ? [{ debugName: "_requesting" }] : /* istanbul ignore next */ []));
|
|
8074
|
+
/**
|
|
8075
|
+
* Margin as the observer takes it. A margin that does not resolve to a length is rejected
|
|
8076
|
+
* by the observer's constructor, so an unusable input falls back to the configured one
|
|
8077
|
+
* rather than leaving the collection with no trigger at all.
|
|
8078
|
+
*/
|
|
8079
|
+
_resolvedRootMargin = computed(() => {
|
|
8080
|
+
const margin = this.rootMargin();
|
|
8081
|
+
return `${Number.isFinite(margin) ? margin : this._config.rootMargin}px`;
|
|
8082
|
+
}, /* @ts-ignore */
|
|
8083
|
+
...(ngDevMode ? [{ debugName: "_resolvedRootMargin" }] : /* istanbul ignore next */ []));
|
|
8084
|
+
constructor() {
|
|
8085
|
+
effect(onCleanup => {
|
|
8086
|
+
if (!this._isBrowser)
|
|
8087
|
+
return;
|
|
8088
|
+
if (!this._observing())
|
|
8089
|
+
return;
|
|
8090
|
+
const observer = new IntersectionObserver(entries => {
|
|
8091
|
+
if (entries[entries.length - 1].isIntersecting) {
|
|
8092
|
+
this._loadAutomatically();
|
|
8093
|
+
return;
|
|
8094
|
+
}
|
|
8095
|
+
// The sentinel out of view is the end of whatever was asked for while it was in
|
|
8096
|
+
// view: the collection now reaches past the scroll edge, however it got there.
|
|
8097
|
+
this._pending.set(false);
|
|
8098
|
+
}, { root: this.root(), rootMargin: this._resolvedRootMargin() });
|
|
8099
|
+
// An observer reports the sentinel's current visibility as soon as it starts, so
|
|
8100
|
+
// re-arming after a page has arrived is what continues a collection too short to
|
|
8101
|
+
// reach past the scroll edge — no separate catch-up pass is needed.
|
|
8102
|
+
observer.observe(this._elementRef.nativeElement);
|
|
8103
|
+
onCleanup(() => observer.disconnect());
|
|
8104
|
+
});
|
|
8105
|
+
}
|
|
8106
|
+
// Public methods
|
|
8107
|
+
/**
|
|
8108
|
+
* Requests the next page as the button does, renewing the automatic allowance. Ignored
|
|
8109
|
+
* while a page is in flight, once the collection is exhausted and while suspended.
|
|
8110
|
+
*/
|
|
8111
|
+
load() {
|
|
8112
|
+
const state = this.state();
|
|
8113
|
+
if (state !== 'idle' && state !== 'manual')
|
|
8114
|
+
return;
|
|
8115
|
+
this._automaticLoads.set(0);
|
|
8116
|
+
this._emit();
|
|
8117
|
+
}
|
|
8118
|
+
/**
|
|
8119
|
+
* Renews the automatic allowance. A collection that is replaced rather than extended — a
|
|
8120
|
+
* new query, a changed filter — starts its own run of automatic loads, which this
|
|
8121
|
+
* restores. It emits nothing itself, but it does put the sentinel back under observation,
|
|
8122
|
+
* so a page is requested straight away when the shorter collection leaves it in view.
|
|
8123
|
+
*/
|
|
8124
|
+
reset() {
|
|
8125
|
+
this._automaticLoads.set(0);
|
|
8126
|
+
}
|
|
8127
|
+
// Private methods
|
|
8128
|
+
_loadAutomatically() {
|
|
8129
|
+
if (!untracked(this._requesting))
|
|
8130
|
+
return;
|
|
8131
|
+
this._automaticLoads.update(count => count + 1);
|
|
8132
|
+
this._emit();
|
|
8133
|
+
}
|
|
8134
|
+
_emit() {
|
|
8135
|
+
this._pending.set(true);
|
|
8136
|
+
this.loadMore.emit();
|
|
8137
|
+
}
|
|
8138
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InfiniteScroll, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8139
|
+
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: [".tls-container{container:tls-container/inline-size;height:100%;width:100%}.tls-container__content{height:100%;max-width:1536px;margin:0 auto}@container tls-container (max-width: 1536px){.tls-container__content{max-width:1280px}}@container tls-container (max-width: 1280px){.tls-container__content{max-width:1024px}}@container tls-container (max-width: 1024px){.tls-container__content{max-width:768px}}@container tls-container (max-width: 768px){.tls-container__content{max-width:640px}}@container tls-container (max-width: 640px){.tls-container__content{padding:0 16px}}.tls-container-media{height:100%;width:100%;max-width:1536px;margin:0 auto}@media(max-width:1536px){.tls-container-media{max-width:1280px}}@media(max-width:1280px){.tls-container-media{max-width:1024px}}@media(max-width:1024px){.tls-container-media{max-width:768px}}@media(max-width:768px){.tls-container-media{max-width:640px}}@media(max-width:640px){.tls-container-media{padding:0 16px;width:auto}}.--cursor-help{cursor:help}.--cursor-pointer{cursor:pointer}.--hidden{display:none}.--f-style-normal{font-style:normal}.--f-style-italic{font-style:italic}.--f-weight-thin{font-weight:100}.--f-weight-extralight{font-weight:200}.--f-weight-light{font-weight:var(--font-weight-light)}.--f-weight-normal{font-weight:var(--font-weight-regular)}.--f-weight-medium{font-weight:var(--font-weight-medium)}.--f-weight-semibold{font-weight:var(--font-weight-semibold)}.--f-weight-bold{font-weight:var(--font-weight-bold)}.--f-weight-extrabold{font-weight:800}.--f-weight-black{font-weight:900}.--row{display:flex;flex-direction:row}.--row-reverse{display:flex;flex-direction:row-reverse}.--column{display:flex;flex-direction:column}.--column-reverse{display:flex;flex-direction:column-reverse}.--flex-wrap{flex-wrap:wrap}.--flex-nowrap{flex-wrap:nowrap}.--justify-start{justify-content:flex-start}.--justify-end{justify-content:flex-end}.--justify-center{justify-content:center}.--justify-between{justify-content:space-between}.--justify-around{justify-content:space-around}.--justify-evenly{justify-content:space-evenly}.--items-start{align-items:flex-start}.--items-end{align-items:flex-end}.--items-center{align-items:center}.--items-baseline{align-items:baseline}.--items-stretch{align-items:stretch}.--gap-1{gap:var(--spacing-1)}.--gap-2{gap:var(--spacing-2)}.--gap-3{gap:var(--spacing-3)}.--gap-4{gap:var(--spacing-4)}.--gap-5{gap:var(--spacing-5)}.--gap-6{gap:var(--spacing-6)}.--gap-7{gap:var(--spacing-7)}.--gap-8{gap:var(--spacing-8)}.--gap-9{gap:var(--spacing-9)}.--gap-10{gap:var(--spacing-10)}.--gap-11{gap:var(--spacing-11)}.--gap-12{gap:var(--spacing-12)}.--gap-13{gap:var(--spacing-13)}.--gap-14{gap:var(--spacing-14)}.--gap-15{gap:var(--spacing-15)}.--gap-16{gap:var(--spacing-16)}.--gap-17{gap:var(--spacing-17)}.--gap-18{gap:var(--spacing-18)}.--gap-19{gap:var(--spacing-19)}.--gap-20{gap:var(--spacing-20)}.--text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-display-lg{font-size:var(--font-display-large-size);font-weight:var(--font-display-large-weight);line-height:var(--font-display-large-line-height);letter-spacing:var(--font-display-large-letter-spacing)}.text-display-md{font-size:var(--font-display-medium-size);font-weight:var(--font-display-medium-weight);line-height:var(--font-display-medium-line-height);letter-spacing:var(--font-display-medium-letter-spacing)}.text-display-sm{font-size:var(--font-display-small-size);font-weight:var(--font-display-small-weight);line-height:var(--font-display-small-line-height);letter-spacing:var(--font-display-small-letter-spacing)}h1,.text-headline-lg{font-size:var(--font-headline-large-size);font-weight:var(--font-headline-large-weight);line-height:var(--font-headline-large-line-height);letter-spacing:var(--font-headline-large-letter-spacing)}h2,.text-headline-md{font-size:var(--font-headline-medium-size);font-weight:var(--font-headline-medium-weight);line-height:var(--font-headline-medium-line-height);letter-spacing:var(--font-headline-medium-letter-spacing)}h3,.text-headline-sm{font-size:var(--font-headline-small-size);font-weight:var(--font-headline-small-weight);line-height:var(--font-headline-small-line-height);letter-spacing:var(--font-headline-small-letter-spacing)}h4,.text-title-lg{font-size:var(--font-title-large-size);font-weight:var(--font-title-large-weight);line-height:var(--font-title-large-line-height);letter-spacing:var(--font-title-large-letter-spacing)}h5,.text-title-md{font-size:var(--font-title-medium-size);font-weight:var(--font-title-medium-weight);line-height:var(--font-title-medium-line-height);letter-spacing:var(--font-title-medium-letter-spacing)}h6,.text-title-sm{font-size:var(--font-title-small-size);font-weight:var(--font-title-small-weight);line-height:var(--font-title-small-line-height);letter-spacing:var(--font-title-small-letter-spacing)}p,.text-body-lg{font-size:var(--font-body-large-size);font-weight:var(--font-body-large-weight);line-height:var(--font-body-large-line-height);letter-spacing:var(--font-body-large-letter-spacing)}.text-body-md{font-size:var(--font-body-medium-size);font-weight:var(--font-body-medium-weight);line-height:var(--font-body-medium-line-height);letter-spacing:var(--font-body-medium-letter-spacing)}small,.text-body-sm{font-size:var(--font-body-small-size);font-weight:var(--font-body-small-weight);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing)}.text-label-lg{font-size:var(--font-label-large-size);font-weight:var(--font-label-large-weight);line-height:var(--font-label-large-line-height);letter-spacing:var(--font-label-large-letter-spacing)}.text-label-md{font-size:var(--font-label-medium-size);font-weight:var(--font-label-medium-weight);line-height:var(--font-label-medium-line-height);letter-spacing:var(--font-label-medium-letter-spacing)}.text-label-sm{font-size:var(--font-label-small-size);font-weight:var(--font-label-small-weight);line-height:var(--font-label-small-line-height);letter-spacing:var(--font-label-small-letter-spacing)}body{margin:0}ul,ol{margin:0;padding:0;list-style:none}h1,h2,h3,h4,h5,h6,p,blockquote{margin:0}button{padding:0;text-align:inherit;border:none;background-color:transparent;cursor:pointer}input,textarea{padding:0;border:0}table{border-spacing:0}hr{margin:0;border:none}a{text-decoration:none}:root{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light;font-family:var(--font-family-base),sans-serif;color:var(--color-on-surface);background-color:var(--color-surface)}:root.tls-dark{color-scheme:dark}*,*:before,*:after{box-sizing:inherit}button{font-family:inherit;color:inherit}img,svg{width:100%;height:100%}:host{min-height:1px;display:block}:host .announcement{position:absolute;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: ["label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
|
|
8140
|
+
}
|
|
8141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InfiniteScroll, decorators: [{
|
|
8142
|
+
type: Component,
|
|
8143
|
+
args: [{ selector: 'tls-infinite-scroll', imports: [Button, Loader], host: {
|
|
8144
|
+
'[class]': 'hostClasses()',
|
|
8145
|
+
}, 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: [".tls-container{container:tls-container/inline-size;height:100%;width:100%}.tls-container__content{height:100%;max-width:1536px;margin:0 auto}@container tls-container (max-width: 1536px){.tls-container__content{max-width:1280px}}@container tls-container (max-width: 1280px){.tls-container__content{max-width:1024px}}@container tls-container (max-width: 1024px){.tls-container__content{max-width:768px}}@container tls-container (max-width: 768px){.tls-container__content{max-width:640px}}@container tls-container (max-width: 640px){.tls-container__content{padding:0 16px}}.tls-container-media{height:100%;width:100%;max-width:1536px;margin:0 auto}@media(max-width:1536px){.tls-container-media{max-width:1280px}}@media(max-width:1280px){.tls-container-media{max-width:1024px}}@media(max-width:1024px){.tls-container-media{max-width:768px}}@media(max-width:768px){.tls-container-media{max-width:640px}}@media(max-width:640px){.tls-container-media{padding:0 16px;width:auto}}.--cursor-help{cursor:help}.--cursor-pointer{cursor:pointer}.--hidden{display:none}.--f-style-normal{font-style:normal}.--f-style-italic{font-style:italic}.--f-weight-thin{font-weight:100}.--f-weight-extralight{font-weight:200}.--f-weight-light{font-weight:var(--font-weight-light)}.--f-weight-normal{font-weight:var(--font-weight-regular)}.--f-weight-medium{font-weight:var(--font-weight-medium)}.--f-weight-semibold{font-weight:var(--font-weight-semibold)}.--f-weight-bold{font-weight:var(--font-weight-bold)}.--f-weight-extrabold{font-weight:800}.--f-weight-black{font-weight:900}.--row{display:flex;flex-direction:row}.--row-reverse{display:flex;flex-direction:row-reverse}.--column{display:flex;flex-direction:column}.--column-reverse{display:flex;flex-direction:column-reverse}.--flex-wrap{flex-wrap:wrap}.--flex-nowrap{flex-wrap:nowrap}.--justify-start{justify-content:flex-start}.--justify-end{justify-content:flex-end}.--justify-center{justify-content:center}.--justify-between{justify-content:space-between}.--justify-around{justify-content:space-around}.--justify-evenly{justify-content:space-evenly}.--items-start{align-items:flex-start}.--items-end{align-items:flex-end}.--items-center{align-items:center}.--items-baseline{align-items:baseline}.--items-stretch{align-items:stretch}.--gap-1{gap:var(--spacing-1)}.--gap-2{gap:var(--spacing-2)}.--gap-3{gap:var(--spacing-3)}.--gap-4{gap:var(--spacing-4)}.--gap-5{gap:var(--spacing-5)}.--gap-6{gap:var(--spacing-6)}.--gap-7{gap:var(--spacing-7)}.--gap-8{gap:var(--spacing-8)}.--gap-9{gap:var(--spacing-9)}.--gap-10{gap:var(--spacing-10)}.--gap-11{gap:var(--spacing-11)}.--gap-12{gap:var(--spacing-12)}.--gap-13{gap:var(--spacing-13)}.--gap-14{gap:var(--spacing-14)}.--gap-15{gap:var(--spacing-15)}.--gap-16{gap:var(--spacing-16)}.--gap-17{gap:var(--spacing-17)}.--gap-18{gap:var(--spacing-18)}.--gap-19{gap:var(--spacing-19)}.--gap-20{gap:var(--spacing-20)}.--text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-display-lg{font-size:var(--font-display-large-size);font-weight:var(--font-display-large-weight);line-height:var(--font-display-large-line-height);letter-spacing:var(--font-display-large-letter-spacing)}.text-display-md{font-size:var(--font-display-medium-size);font-weight:var(--font-display-medium-weight);line-height:var(--font-display-medium-line-height);letter-spacing:var(--font-display-medium-letter-spacing)}.text-display-sm{font-size:var(--font-display-small-size);font-weight:var(--font-display-small-weight);line-height:var(--font-display-small-line-height);letter-spacing:var(--font-display-small-letter-spacing)}h1,.text-headline-lg{font-size:var(--font-headline-large-size);font-weight:var(--font-headline-large-weight);line-height:var(--font-headline-large-line-height);letter-spacing:var(--font-headline-large-letter-spacing)}h2,.text-headline-md{font-size:var(--font-headline-medium-size);font-weight:var(--font-headline-medium-weight);line-height:var(--font-headline-medium-line-height);letter-spacing:var(--font-headline-medium-letter-spacing)}h3,.text-headline-sm{font-size:var(--font-headline-small-size);font-weight:var(--font-headline-small-weight);line-height:var(--font-headline-small-line-height);letter-spacing:var(--font-headline-small-letter-spacing)}h4,.text-title-lg{font-size:var(--font-title-large-size);font-weight:var(--font-title-large-weight);line-height:var(--font-title-large-line-height);letter-spacing:var(--font-title-large-letter-spacing)}h5,.text-title-md{font-size:var(--font-title-medium-size);font-weight:var(--font-title-medium-weight);line-height:var(--font-title-medium-line-height);letter-spacing:var(--font-title-medium-letter-spacing)}h6,.text-title-sm{font-size:var(--font-title-small-size);font-weight:var(--font-title-small-weight);line-height:var(--font-title-small-line-height);letter-spacing:var(--font-title-small-letter-spacing)}p,.text-body-lg{font-size:var(--font-body-large-size);font-weight:var(--font-body-large-weight);line-height:var(--font-body-large-line-height);letter-spacing:var(--font-body-large-letter-spacing)}.text-body-md{font-size:var(--font-body-medium-size);font-weight:var(--font-body-medium-weight);line-height:var(--font-body-medium-line-height);letter-spacing:var(--font-body-medium-letter-spacing)}small,.text-body-sm{font-size:var(--font-body-small-size);font-weight:var(--font-body-small-weight);line-height:var(--font-body-small-line-height);letter-spacing:var(--font-body-small-letter-spacing)}.text-label-lg{font-size:var(--font-label-large-size);font-weight:var(--font-label-large-weight);line-height:var(--font-label-large-line-height);letter-spacing:var(--font-label-large-letter-spacing)}.text-label-md{font-size:var(--font-label-medium-size);font-weight:var(--font-label-medium-weight);line-height:var(--font-label-medium-line-height);letter-spacing:var(--font-label-medium-letter-spacing)}.text-label-sm{font-size:var(--font-label-small-size);font-weight:var(--font-label-small-weight);line-height:var(--font-label-small-line-height);letter-spacing:var(--font-label-small-letter-spacing)}body{margin:0}ul,ol{margin:0;padding:0;list-style:none}h1,h2,h3,h4,h5,h6,p,blockquote{margin:0}button{padding:0;text-align:inherit;border:none;background-color:transparent;cursor:pointer}input,textarea{padding:0;border:0}table{border-spacing:0}hr{margin:0;border:none}a{text-decoration:none}:root{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light;font-family:var(--font-family-base),sans-serif;color:var(--color-on-surface);background-color:var(--color-surface)}:root.tls-dark{color-scheme:dark}*,*:before,*:after{box-sizing:inherit}button{font-family:inherit;color:inherit}img,svg{width:100%;height:100%}:host{min-height:1px;display:block}:host .announcement{position:absolute;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"] }]
|
|
8146
|
+
}], 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"] }] } });
|
|
8147
|
+
|
|
7641
8148
|
const DEFAULT_KBD_CONFIG = {
|
|
7642
8149
|
size: 'md',
|
|
7643
8150
|
};
|
|
@@ -8944,7 +9451,7 @@ class Step {
|
|
|
8944
9451
|
}, /* @ts-ignore */
|
|
8945
9452
|
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
8946
9453
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Step, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8947
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Step, isStandalone: true, selector: "tls-step", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "iconTemplateRef", first: true, predicate: ["stepIcon"], descendants: true, isSignal: true }, { propertyName: "completedIconTemplateRef", first: true, predicate: ["stepCompletedIcon"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.TabPanel, inputs: ["value", "value"] }], ngImport: i0, template: "<ng-content></ng-content>\n" });
|
|
9454
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Step, isStandalone: true, selector: "tls-step", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "iconTemplateRef", first: true, predicate: ["stepIcon"], descendants: true, isSignal: true }, { propertyName: "completedIconTemplateRef", first: true, predicate: ["stepCompletedIcon"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.TabPanel, inputs: ["value", "value"] }], ngImport: i0, template: "<ng-content></ng-content>\n" });
|
|
8948
9455
|
}
|
|
8949
9456
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Step, decorators: [{
|
|
8950
9457
|
type: Component,
|
|
@@ -9000,7 +9507,7 @@ class Stepper {
|
|
|
9000
9507
|
this.stepSelect.emit({ index, value });
|
|
9001
9508
|
}
|
|
9002
9509
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9003
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Stepper, isStandalone: true, selector: "tls-stepper", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: true, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", stepSelect: "stepSelect" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "steps", predicate: Step, isSignal: true }, { propertyName: "completedTemplateRef", first: true, predicate: ["completedTemplate"], descendants: true, isSignal: true }, { propertyName: "completedIconTemplateRef", first: true, predicate: ["stepCompletedIcon"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.Tabs }], ngImport: i0, template: "<ul\n class=\"tls-stepper-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [wrap]=\"false\"\n [softDisabled]=\"false\"\n [selectedTab]=\"active()\"\n (selectedTabChange)=\"onSelectedTabChange($event)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n @let isCompleted = activeIndex() > index || completed();\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header__item--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"ariaTab.selected()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--invalid]=\"step.invalid()\"\n [class.tls-stepper-header__item--completed]=\"isCompleted\">\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-stepper-header-button\"\n type=\"button\"\n [value]=\"step.value()\"\n [disabled]=\"step.disabled() || (linear() && index > activeIndex() + 1)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n\n @if (step.invalid()) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.invalid }}</span>\n } @else if (isCompleted) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.completed }}</span>\n }\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }] });
|
|
9510
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Stepper, isStandalone: true, selector: "tls-stepper", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: true, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { active: "activeChange", stepSelect: "stepSelect" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "steps", predicate: Step, isSignal: true }, { propertyName: "completedTemplateRef", first: true, predicate: ["completedTemplate"], descendants: true, isSignal: true }, { propertyName: "completedIconTemplateRef", first: true, predicate: ["stepCompletedIcon"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.Tabs }], ngImport: i0, template: "<ul\n class=\"tls-stepper-header\"\n ngTabList\n [orientation]=\"orientation()\"\n [wrap]=\"false\"\n [softDisabled]=\"false\"\n [selectedTab]=\"active()\"\n (selectedTabChange)=\"onSelectedTabChange($event)\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n @let isCompleted = activeIndex() > index || completed();\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header__item--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"ariaTab.selected()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--invalid]=\"step.invalid()\"\n [class.tls-stepper-header__item--completed]=\"isCompleted\">\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-stepper-header-button\"\n type=\"button\"\n [value]=\"step.value()\"\n [disabled]=\"step.disabled() || (linear() && index > activeIndex() + 1)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n\n @if (step.invalid()) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.invalid }}</span>\n } @else if (isCompleted) {\n <span class=\"tls-stepper-header-button__state\">{{ labels.completed }}</span>\n }\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }] });
|
|
9004
9511
|
}
|
|
9005
9512
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Stepper, decorators: [{
|
|
9006
9513
|
type: Component,
|
|
@@ -9426,7 +9933,7 @@ class Tabs {
|
|
|
9426
9933
|
return match.value();
|
|
9427
9934
|
}
|
|
9428
9935
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9429
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tabs, isStandalone: true, selector: "tls-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, headerAlign: { classPropertyName: "headerAlign", publicName: "headerAlign", isSignal: true, isRequired: false, transformFunction: null }, itemsAlign: { classPropertyName: "itemsAlign", publicName: "itemsAlign", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "tabs", predicate: Tab, isSignal: true }], hostDirectives: [{ directive: i1.Tabs }], ngImport: i0, template: "<ul\n ngTabList\n [class]=\"headerClasses()\"\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tab-header__item\"\n [class.tls-tab-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tab-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tab-header__item-control\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: TabPanel, selector: "[ngTabPanel]", inputs: ["id", "value"], exportAs: ["ngTabPanel"] }, { kind: "directive", type: TabContent, selector: "ng-template[ngTabContent]", exportAs: ["ngTabContent"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
9936
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tabs, isStandalone: true, selector: "tls-tabs", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, headerAlign: { classPropertyName: "headerAlign", publicName: "headerAlign", isSignal: true, isRequired: false, transformFunction: null }, itemsAlign: { classPropertyName: "itemsAlign", publicName: "itemsAlign", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "ariaLabelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, host: { properties: { "class": "hostClasses()" } }, queries: [{ propertyName: "tabs", predicate: Tab, isSignal: true }], hostDirectives: [{ directive: i1$1.Tabs }], ngImport: i0, template: "<ul\n ngTabList\n [class]=\"headerClasses()\"\n [orientation]=\"orientation()\"\n [softDisabled]=\"false\"\n [(selectedTab)]=\"selected\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (tab of tabs(); track tab) {\n <li\n role=\"presentation\"\n class=\"tls-tab-header__item\"\n [class.tls-tab-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tab-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tab-header__item-control\"\n type=\"button\"\n [value]=\"tab.value()\"\n [disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.headerTemplateRef() ? tab.label() : null\"\n >\n @if (tab.headerTemplateRef(); as headerTemplateRef) {\n <ng-container [ngTemplateOutlet]=\"headerTemplateRef\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </button>\n </li>\n }\n</ul>\n<div class=\"tls-tabs-content\">\n @for (tab of tabs(); track tab) {\n <div ngTabPanel class=\"tls-tab\" [value]=\"tab.value()\" [preserveContent]=\"true\">\n <ng-template ngTabContent>\n <ng-container [ngTemplateOutlet]=\"tab.contentTemplateRef()\"></ng-container>\n </ng-template>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab$1, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: TabPanel, selector: "[ngTabPanel]", inputs: ["id", "value"], exportAs: ["ngTabPanel"] }, { kind: "directive", type: TabContent, selector: "ng-template[ngTabContent]", exportAs: ["ngTabContent"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
9430
9937
|
}
|
|
9431
9938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, decorators: [{
|
|
9432
9939
|
type: Component,
|
|
@@ -10062,6 +10569,12 @@ const provideThalassicUIConfig = (config = {}) => {
|
|
|
10062
10569
|
provide: IMAGE_COMPARE_CONFIG,
|
|
10063
10570
|
useValue: deepMerge(DEFAULT_IMAGE_COMPARE_CONFIG, components.imageCompare),
|
|
10064
10571
|
},
|
|
10572
|
+
{
|
|
10573
|
+
provide: INFINITE_SCROLL_CONFIG,
|
|
10574
|
+
// `labels` is a deep-partial override; deepMerge merges it recursively, but its
|
|
10575
|
+
// `Partial<T>` signature only models a shallow partial, so cast to it.
|
|
10576
|
+
useValue: deepMerge(DEFAULT_INFINITE_SCROLL_CONFIG, components.infiniteScroll),
|
|
10577
|
+
},
|
|
10065
10578
|
{ provide: INPUT_CONFIG, useValue: deepMerge(DEFAULT_INPUT_CONFIG, components.input) },
|
|
10066
10579
|
{
|
|
10067
10580
|
provide: LOADER_CONFIG,
|
|
@@ -10175,5 +10688,5 @@ const provideThalassicUIConfig = (config = {}) => {
|
|
|
10175
10688
|
* Generated bundle index. Do not edit.
|
|
10176
10689
|
*/
|
|
10177
10690
|
|
|
10178
|
-
export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, Alert, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_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_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_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_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, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, 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, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RadioButton, Rating, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, isTypeRejected, normalizeAccept, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
|
|
10691
|
+
export { ACTIVITY_HEATMAP_CONFIG, ALERT_CONFIG, AUTOCOMPLETE_CONFIG, ActivityHeatmap, Alert, AlertIcon, Autocomplete, BADGE_CONFIG, BREADCRUMBS_CONFIG, BUTTON_CONFIG, Badge, Breadcrumbs, Button, ButtonDirective, CALENDAR_CONFIG, CHECKBOX_CONFIG, CHIP_CONFIG, CHIP_CONTROL_CONFIG, CHIP_GROUP_CONFIG, CHIP_INPUT_CONFIG, CONFIRM_CONFIG, Calendar, CalendarAgendaView, CalendarEventItem, CalendarMonthView, CalendarTimeGrid, Checkbox, CheckboxFormControl, Chip, ChipControl, ChipGroup, ChipInput, Confirm, ConfirmPanel, ConfirmService, ContextMenuDirective, DATE_TIME_PICKER_CONFIG, DEFAULT_ACTIVITY_HEATMAP_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_CONFIG, DEFAULT_BREADCRUMBS_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CALENDAR_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_CHIP_CONFIG, DEFAULT_CHIP_CONTROL_CONFIG, DEFAULT_CHIP_GROUP_CONFIG, DEFAULT_CHIP_INPUT_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_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_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SLIDER_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEPPER_LABELS, DEFAULT_STEP_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, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogRef, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileDropTargetDirective, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, HIGHLIGHT_CONFIG, Highlight, ICON_CONFIG, ICON_REGISTRY, IMAGE_COMPARE_CONFIG, INFINITE_SCROLL_CONFIG, INPUT_CONFIG, INPUT_NUMBER_CONFIG, Icon, IconRegistry, IconService, ImageCompare, 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, PROGRESS_CONFIG, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, Progress, RADIO_BUTTON_CONFIG, RATING_CONFIG, RadioButton, Rating, SELECT_CONFIG, SKELETON_CONFIG, SLIDER_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, Slider, Splitter, SplitterPanel, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TABS_QUERY_SYNC_CONFIG, TAB_NAV_CONFIG, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, TabLinkDirective, TabNavDirective, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDelegateDirective, TooltipDirective, TooltipTrigger, VIRTUAL_SCROLL_CONFIG, ValueFormControl, VirtualScroll, acceptsFile, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, isTypeRejected, normalizeAccept, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
|
|
10179
10692
|
//# sourceMappingURL=thalassic-ui.mjs.map
|