@thalassic/ui 22.15.1 → 22.15.3
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 +340 -79
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +123 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, model, input, signal, computed, booleanAttribute, Directive, ViewContainerRef, DestroyRef, viewChild, contentChild, PLATFORM_ID,
|
|
2
|
+
import { InjectionToken, inject, model, input, signal, computed, booleanAttribute, Directive, ViewContainerRef, DestroyRef, viewChild, contentChild, PLATFORM_ID, Component, Injectable, Renderer2, ElementRef, numberAttribute, output, makeEnvironmentProviders, TemplateRef, forwardRef, effect, afterNextRender, linkedSignal, viewChildren, contentChildren, isDevMode, untracked, provideEnvironmentInitializer, DOCUMENT } from '@angular/core';
|
|
3
3
|
import { Overlay } from '@angular/cdk/overlay';
|
|
4
4
|
import { TemplatePortal, ComponentPortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
5
5
|
import { takeUntilDestroyed, rxResource, toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { filter, throwError, map, shareReplay, of, Subscription, takeUntil } from 'rxjs';
|
|
7
7
|
import { Router, ActivatedRoute, RouterLink, NavigationStart, RouterLinkActive } from '@angular/router';
|
|
8
8
|
import { Grid, GridRow, GridCell } from '@angular/aria/grid';
|
|
9
|
-
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,
|
|
9
|
+
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';
|
|
10
10
|
import { isPlatformBrowser, NgTemplateOutlet, NgComponentOutlet, LocationStrategy } from '@angular/common';
|
|
11
11
|
import { HttpClient } from '@angular/common/http';
|
|
12
12
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -685,6 +685,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
685
685
|
|
|
686
686
|
// Form control base classes
|
|
687
687
|
|
|
688
|
+
/** Matches a quoted literal in a `date-fns` format pattern, e.g. the `'h'` in `"HH 'h' mm"`. */
|
|
689
|
+
const QUOTED_LITERAL = /'[^']*'/g;
|
|
690
|
+
/** Day-period tokens (`a`, `b`, `B`) — their presence marks a pattern as 12-hour. */
|
|
691
|
+
const DAY_PERIOD_TOKEN = /[abB]/;
|
|
692
|
+
/**
|
|
693
|
+
* Whether times render on a 12-hour clock. A `'locale'` cycle probes the configured
|
|
694
|
+
* `date-fns` locale's short time pattern for a day-period token; with no locale
|
|
695
|
+
* configured `date-fns` formats as `en-US`, which is 12-hour.
|
|
696
|
+
*/
|
|
697
|
+
const isHour12 = (config) => {
|
|
698
|
+
if (config.hourCycle !== 'locale')
|
|
699
|
+
return config.hourCycle === 12;
|
|
700
|
+
const locale = config.dateFns;
|
|
701
|
+
if (!locale)
|
|
702
|
+
return true;
|
|
703
|
+
return DAY_PERIOD_TOKEN.test(locale.formatLong.time({ width: 'short' }).replace(QUOTED_LITERAL, ''));
|
|
704
|
+
};
|
|
705
|
+
|
|
688
706
|
/**
|
|
689
707
|
* `date-fns` format options carrying the configured locale, or `undefined` when none is set
|
|
690
708
|
* (so `date-fns` falls back to its built-in `en-US`). Returning `undefined` rather than
|
|
@@ -692,7 +710,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
692
710
|
*/
|
|
693
711
|
const localeFormatOptions = (config) => config.dateFns ? { locale: config.dateFns } : undefined;
|
|
694
712
|
|
|
695
|
-
const DEFAULT_LOCALE_CONFIG = {};
|
|
713
|
+
const DEFAULT_LOCALE_CONFIG = { hourCycle: 'locale' };
|
|
696
714
|
|
|
697
715
|
const LOCALE_CONFIG = new InjectionToken('LOCALE_CONFIG', {
|
|
698
716
|
factory: () => DEFAULT_LOCALE_CONFIG,
|
|
@@ -750,6 +768,16 @@ const buildMonthDays = (anchor, weekStartsOn, weeks) => {
|
|
|
750
768
|
return eachDayOfInterval({ start, end });
|
|
751
769
|
};
|
|
752
770
|
|
|
771
|
+
/**
|
|
772
|
+
* Block-axis anchoring of an overlay placed beside its origin, read as an arrow alignment along
|
|
773
|
+
* that edge: an overlay pinned by its top edge grows downward, keeping the origin at its start.
|
|
774
|
+
*/
|
|
775
|
+
const OVERLAY_ARROW_BLOCK_ALIGNMENT_MAP = {
|
|
776
|
+
top: 'start',
|
|
777
|
+
center: 'center',
|
|
778
|
+
bottom: 'end',
|
|
779
|
+
};
|
|
780
|
+
|
|
753
781
|
const OVERLAY_POSITION_MAP = {
|
|
754
782
|
top: {
|
|
755
783
|
originX: 'center',
|
|
@@ -930,6 +958,34 @@ const removeDescribedBy = (renderer, element, id) => {
|
|
|
930
958
|
renderer.setAttribute(element, 'aria-describedby', tokens.join(' '));
|
|
931
959
|
};
|
|
932
960
|
|
|
961
|
+
/**
|
|
962
|
+
* Derives where an arrow belongs from the connection pair the overlay actually settled on,
|
|
963
|
+
* so a panel that fell back to another position moves its arrow with it.
|
|
964
|
+
*
|
|
965
|
+
* The arrow sits on the panel edge facing the origin: an overlay anchored by its bottom edge
|
|
966
|
+
* hangs above the origin and points down from its own bottom. An overlay pinned by one of its
|
|
967
|
+
* edges extends away from that edge, so the origin — and with it the arrow — stays near the
|
|
968
|
+
* pinned end. Axes stay logical (`start` / `end` rather than left / right), so the result flips
|
|
969
|
+
* with the layout direction on its own.
|
|
970
|
+
*
|
|
971
|
+
* A pair that places the overlay neither above/below nor beside the origin — one covering its
|
|
972
|
+
* origin, for instance — has no edge to point from and resolves to `null`.
|
|
973
|
+
*/
|
|
974
|
+
const resolveOverlayArrowPosition = (connectionPair) => {
|
|
975
|
+
const { originX, originY, overlayX, overlayY } = connectionPair;
|
|
976
|
+
const isStacked = (originY === 'top' && overlayY === 'bottom') || (originY === 'bottom' && overlayY === 'top');
|
|
977
|
+
if (isStacked)
|
|
978
|
+
return { side: overlayY === 'bottom' ? 'bottom' : 'top', alignment: overlayX };
|
|
979
|
+
const isBeside = (originX === 'start' && overlayX === 'end') || (originX === 'end' && overlayX === 'start');
|
|
980
|
+
if (isBeside) {
|
|
981
|
+
return {
|
|
982
|
+
side: overlayX === 'end' ? 'end' : 'start',
|
|
983
|
+
alignment: OVERLAY_ARROW_BLOCK_ALIGNMENT_MAP[overlayY],
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
return null;
|
|
987
|
+
};
|
|
988
|
+
|
|
933
989
|
/** Reorders Sunday-first weekday labels so the one for `weekStartsOn` comes first. */
|
|
934
990
|
const rotateWeekDays = (weekDays, weekStartsOn) => [
|
|
935
991
|
...weekDays.slice(weekStartsOn),
|
|
@@ -939,55 +995,6 @@ const rotateWeekDays = (weekDays, weekStartsOn) => [
|
|
|
939
995
|
/** Attribute a delegated tooltip reads its content from, and matches its items by. */
|
|
940
996
|
const DEFAULT_TOOLTIP_CONTENT_ATTRIBUTE = 'data-tooltip';
|
|
941
997
|
|
|
942
|
-
class TooltipService {
|
|
943
|
-
_overlay = inject(Overlay);
|
|
944
|
-
_overlayRef = null;
|
|
945
|
-
// Public methods
|
|
946
|
-
show(origin, positions, tooltipPortal) {
|
|
947
|
-
this.dispose();
|
|
948
|
-
const positionStrategy = this._overlay
|
|
949
|
-
.position()
|
|
950
|
-
.flexibleConnectedTo(origin)
|
|
951
|
-
.withPositions(positions);
|
|
952
|
-
this._overlayRef = this._overlay.create({
|
|
953
|
-
positionStrategy,
|
|
954
|
-
scrollStrategy: this._overlay.scrollStrategies.reposition(),
|
|
955
|
-
});
|
|
956
|
-
return this._overlayRef.attach(tooltipPortal);
|
|
957
|
-
}
|
|
958
|
-
move(origin, positions) {
|
|
959
|
-
if (this._overlayRef) {
|
|
960
|
-
const positionStrategy = this._overlay
|
|
961
|
-
.position()
|
|
962
|
-
.flexibleConnectedTo(origin)
|
|
963
|
-
.withPositions(positions);
|
|
964
|
-
this._overlayRef.updatePositionStrategy(positionStrategy);
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
// Detaches the tooltip so Angular's `animate.leave` plays the exit animation,
|
|
968
|
-
// then disposes the pane once that animation finishes. The pane is kept alive
|
|
969
|
-
// in the meantime so it is not torn down mid-animation.
|
|
970
|
-
hide() {
|
|
971
|
-
if (!this._overlayRef)
|
|
972
|
-
return;
|
|
973
|
-
const overlayRef = this._overlayRef;
|
|
974
|
-
this._overlayRef = null;
|
|
975
|
-
overlayRef.detach();
|
|
976
|
-
disposeAfterLeaveAnimation(overlayRef);
|
|
977
|
-
}
|
|
978
|
-
dispose() {
|
|
979
|
-
if (!this._overlayRef)
|
|
980
|
-
return;
|
|
981
|
-
this._overlayRef.dispose();
|
|
982
|
-
this._overlayRef = null;
|
|
983
|
-
}
|
|
984
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
985
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService });
|
|
986
|
-
}
|
|
987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService, decorators: [{
|
|
988
|
-
type: Injectable
|
|
989
|
-
}] });
|
|
990
|
-
|
|
991
998
|
class Tooltip {
|
|
992
999
|
static _counter = 0;
|
|
993
1000
|
id = `tls-tooltip-${++Tooltip._counter}`;
|
|
@@ -997,6 +1004,14 @@ class Tooltip {
|
|
|
997
1004
|
...(ngDevMode ? [{ debugName: "templateData" }] : /* istanbul ignore next */ []));
|
|
998
1005
|
color = model.required(/* @ts-ignore */
|
|
999
1006
|
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1007
|
+
arrow = model.required(/* @ts-ignore */
|
|
1008
|
+
...(ngDevMode ? [{ debugName: "arrow" }] : /* istanbul ignore next */ []));
|
|
1009
|
+
/**
|
|
1010
|
+
* Edge the arrow points from, resolved from the position the overlay settled on. It stays
|
|
1011
|
+
* `null` until the overlay reports one, so the arrow never renders on a guessed edge.
|
|
1012
|
+
*/
|
|
1013
|
+
arrowPosition = model(null, /* @ts-ignore */
|
|
1014
|
+
...(ngDevMode ? [{ debugName: "arrowPosition" }] : /* istanbul ignore next */ []));
|
|
1000
1015
|
isString = computed(() => typeof this.content() === 'string', /* @ts-ignore */
|
|
1001
1016
|
...(ngDevMode ? [{ debugName: "isString" }] : /* istanbul ignore next */ []));
|
|
1002
1017
|
templateRef = computed(() => {
|
|
@@ -1009,11 +1024,17 @@ class Tooltip {
|
|
|
1009
1024
|
const className = 'tls-tooltip';
|
|
1010
1025
|
const array = [className];
|
|
1011
1026
|
array.push(`${className}--${this.color()}`);
|
|
1027
|
+
const arrowPosition = this.arrowPosition();
|
|
1028
|
+
if (this.arrow() && arrowPosition) {
|
|
1029
|
+
array.push(`${className}--arrow`);
|
|
1030
|
+
array.push(`${className}--arrow-${arrowPosition.side}`);
|
|
1031
|
+
array.push(`${className}--arrow-align-${arrowPosition.alignment}`);
|
|
1032
|
+
}
|
|
1012
1033
|
return array;
|
|
1013
1034
|
}, /* @ts-ignore */
|
|
1014
1035
|
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
1015
1036
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tooltip, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1016
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tooltip, isStandalone: true, selector: "tls-tooltip", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, templateData: { classPropertyName: "templateData", publicName: "templateData", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { content: "contentChange", templateData: "templateDataChange", color: "colorChange" }, host: { attributes: { "role": "tooltip", "animate.enter": "tls-tooltip--enter", "animate.leave": "tls-tooltip--leave" }, properties: { "class": "hostClasses()", "id": "id" } }, ngImport: i0, template: `
|
|
1037
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Tooltip, isStandalone: true, selector: "tls-tooltip", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, templateData: { classPropertyName: "templateData", publicName: "templateData", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: true, transformFunction: null }, arrow: { classPropertyName: "arrow", publicName: "arrow", isSignal: true, isRequired: true, transformFunction: null }, arrowPosition: { classPropertyName: "arrowPosition", publicName: "arrowPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { content: "contentChange", templateData: "templateDataChange", color: "colorChange", arrow: "arrowChange", arrowPosition: "arrowPositionChange" }, host: { attributes: { "role": "tooltip", "animate.enter": "tls-tooltip--enter", "animate.leave": "tls-tooltip--leave" }, properties: { "class": "hostClasses()", "id": "id" } }, ngImport: i0, template: `
|
|
1017
1038
|
@if (isString()) {
|
|
1018
1039
|
{{ content() }}
|
|
1019
1040
|
} @else {
|
|
@@ -1047,14 +1068,100 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
1047
1068
|
'animate.leave': 'tls-tooltip--leave',
|
|
1048
1069
|
},
|
|
1049
1070
|
}]
|
|
1050
|
-
}], propDecorators: { content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }, { type: i0.Output, args: ["contentChange"] }], templateData: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateData", required: false }] }, { type: i0.Output, args: ["templateDataChange"] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: true }] }, { type: i0.Output, args: ["colorChange"] }] } });
|
|
1071
|
+
}], propDecorators: { content: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: true }] }, { type: i0.Output, args: ["contentChange"] }], templateData: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateData", required: false }] }, { type: i0.Output, args: ["templateDataChange"] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: true }] }, { type: i0.Output, args: ["colorChange"] }], arrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrow", required: true }] }, { type: i0.Output, args: ["arrowChange"] }], arrowPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "arrowPosition", required: false }] }, { type: i0.Output, args: ["arrowPositionChange"] }] } });
|
|
1072
|
+
|
|
1073
|
+
class TooltipService {
|
|
1074
|
+
// Injections
|
|
1075
|
+
_overlay = inject(Overlay);
|
|
1076
|
+
// State
|
|
1077
|
+
_overlayRef = null;
|
|
1078
|
+
_tooltipRef = null;
|
|
1079
|
+
_positionSubscription = null;
|
|
1080
|
+
/**
|
|
1081
|
+
* Edge the visible tooltip settled on. The strategy applies its position while the portal is
|
|
1082
|
+
* still attaching, so the first change arrives before there is a component to hand it to.
|
|
1083
|
+
*/
|
|
1084
|
+
_arrowPosition = null;
|
|
1085
|
+
// Public methods
|
|
1086
|
+
show(origin, positions) {
|
|
1087
|
+
this.dispose();
|
|
1088
|
+
this._overlayRef = this._overlay.create({
|
|
1089
|
+
positionStrategy: this._createPositionStrategy(origin, positions),
|
|
1090
|
+
scrollStrategy: this._overlay.scrollStrategies.reposition(),
|
|
1091
|
+
});
|
|
1092
|
+
this._tooltipRef = this._overlayRef.attach(new ComponentPortal(Tooltip));
|
|
1093
|
+
this._tooltipRef.instance.arrowPosition.set(this._arrowPosition);
|
|
1094
|
+
return this._tooltipRef;
|
|
1095
|
+
}
|
|
1096
|
+
move(origin, positions) {
|
|
1097
|
+
if (!this._overlayRef)
|
|
1098
|
+
return;
|
|
1099
|
+
this._overlayRef.updatePositionStrategy(this._createPositionStrategy(origin, positions));
|
|
1100
|
+
}
|
|
1101
|
+
// Detaches the tooltip so Angular's `animate.leave` plays the exit animation,
|
|
1102
|
+
// then disposes the pane once that animation finishes. The pane is kept alive
|
|
1103
|
+
// in the meantime so it is not torn down mid-animation.
|
|
1104
|
+
hide() {
|
|
1105
|
+
if (!this._overlayRef)
|
|
1106
|
+
return;
|
|
1107
|
+
const overlayRef = this._overlayRef;
|
|
1108
|
+
this._overlayRef = null;
|
|
1109
|
+
this._reset();
|
|
1110
|
+
overlayRef.detach();
|
|
1111
|
+
disposeAfterLeaveAnimation(overlayRef);
|
|
1112
|
+
}
|
|
1113
|
+
dispose() {
|
|
1114
|
+
if (!this._overlayRef)
|
|
1115
|
+
return;
|
|
1116
|
+
this._overlayRef.dispose();
|
|
1117
|
+
this._overlayRef = null;
|
|
1118
|
+
this._reset();
|
|
1119
|
+
}
|
|
1120
|
+
// Private methods
|
|
1121
|
+
/**
|
|
1122
|
+
* Builds a strategy that reports where it settled, so the tooltip points its arrow at the
|
|
1123
|
+
* position actually used rather than the one asked for.
|
|
1124
|
+
*/
|
|
1125
|
+
_createPositionStrategy(origin, positions) {
|
|
1126
|
+
const positionStrategy = this._overlay
|
|
1127
|
+
.position()
|
|
1128
|
+
.flexibleConnectedTo(origin)
|
|
1129
|
+
.withPositions(positions);
|
|
1130
|
+
if (this._positionSubscription)
|
|
1131
|
+
this._positionSubscription.unsubscribe();
|
|
1132
|
+
this._positionSubscription = positionStrategy.positionChanges.subscribe(change => {
|
|
1133
|
+
this._arrowPosition = resolveOverlayArrowPosition(change.connectionPair);
|
|
1134
|
+
const tooltipRef = this._tooltipRef;
|
|
1135
|
+
if (!tooltipRef)
|
|
1136
|
+
return;
|
|
1137
|
+
tooltipRef.instance.arrowPosition.set(this._arrowPosition);
|
|
1138
|
+
});
|
|
1139
|
+
return positionStrategy;
|
|
1140
|
+
}
|
|
1141
|
+
/** Drops everything tied to the overlay that just went away. */
|
|
1142
|
+
_reset() {
|
|
1143
|
+
this._tooltipRef = null;
|
|
1144
|
+
this._arrowPosition = null;
|
|
1145
|
+
if (!this._positionSubscription)
|
|
1146
|
+
return;
|
|
1147
|
+
this._positionSubscription.unsubscribe();
|
|
1148
|
+
this._positionSubscription = null;
|
|
1149
|
+
}
|
|
1150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1151
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService });
|
|
1152
|
+
}
|
|
1153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService, decorators: [{
|
|
1154
|
+
type: Injectable
|
|
1155
|
+
}] });
|
|
1051
1156
|
|
|
1052
1157
|
const DEFAULT_TOOLTIP_CONFIG = {
|
|
1053
1158
|
positions: undefined,
|
|
1054
1159
|
position: 'top',
|
|
1055
|
-
|
|
1160
|
+
// Clears the arrow, which protrudes `--tls-tooltip-arrow-height` past the bubble.
|
|
1161
|
+
offset: { x: 8, y: 8 },
|
|
1056
1162
|
origin: 'element',
|
|
1057
1163
|
color: 'secondary',
|
|
1164
|
+
arrow: true,
|
|
1058
1165
|
};
|
|
1059
1166
|
|
|
1060
1167
|
const TOOLTIP_CONFIG = new InjectionToken('TOOLTIP_CONFIG', {
|
|
@@ -1089,6 +1196,9 @@ class TooltipTrigger {
|
|
|
1089
1196
|
...(ngDevMode ? [{ debugName: "tooltipOffset" }] : /* istanbul ignore next */ []));
|
|
1090
1197
|
tooltipColor = input(this._config.color, /* @ts-ignore */
|
|
1091
1198
|
...(ngDevMode ? [{ debugName: "tooltipColor" }] : /* istanbul ignore next */ []));
|
|
1199
|
+
/** Points a small arrow at the anchor. Disable it for a plain bubble. */
|
|
1200
|
+
tooltipArrow = input(this._config.arrow, /* @ts-ignore */
|
|
1201
|
+
...(ngDevMode ? [{ debugName: "tooltipArrow" }] : /* istanbul ignore next */ []));
|
|
1092
1202
|
// State
|
|
1093
1203
|
/** Element the visible tooltip is anchored to, `null` while nothing is shown. */
|
|
1094
1204
|
_anchor = null;
|
|
@@ -1127,12 +1237,12 @@ class TooltipTrigger {
|
|
|
1127
1237
|
return;
|
|
1128
1238
|
this._hide();
|
|
1129
1239
|
this._anchor = anchor;
|
|
1130
|
-
const tooltipPortal = new ComponentPortal(Tooltip);
|
|
1131
1240
|
const origin = this.tooltipOrigin() === 'cursor' && point ? point : anchor;
|
|
1132
|
-
const tooltipRef = this._tooltipService.show(origin, this._positions()
|
|
1241
|
+
const tooltipRef = this._tooltipService.show(origin, this._positions());
|
|
1133
1242
|
tooltipRef.instance.content.set(content);
|
|
1134
1243
|
tooltipRef.instance.templateData.set(data);
|
|
1135
1244
|
tooltipRef.instance.color.set(this.tooltipColor());
|
|
1245
|
+
tooltipRef.instance.arrow.set(this.tooltipArrow());
|
|
1136
1246
|
// A description identical to the accessible name would be announced twice; the tooltip is
|
|
1137
1247
|
// purely visual then and the link is omitted.
|
|
1138
1248
|
if (anchor.getAttribute('aria-label') === content)
|
|
@@ -1166,7 +1276,7 @@ class TooltipTrigger {
|
|
|
1166
1276
|
this._tooltipService.dispose();
|
|
1167
1277
|
}
|
|
1168
1278
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1169
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: TooltipTrigger, isStandalone: true, inputs: { tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, tooltipOrigin: { classPropertyName: "tooltipOrigin", publicName: "tooltipOrigin", isSignal: true, isRequired: false, transformFunction: null }, tooltipPositions: { classPropertyName: "tooltipPositions", publicName: "tooltipPositions", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipOffset: { classPropertyName: "tooltipOffset", publicName: "tooltipOffset", isSignal: true, isRequired: false, transformFunction: null }, tooltipColor: { classPropertyName: "tooltipColor", publicName: "tooltipColor", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, ngImport: i0 });
|
|
1279
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: TooltipTrigger, isStandalone: true, inputs: { tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, tooltipOrigin: { classPropertyName: "tooltipOrigin", publicName: "tooltipOrigin", isSignal: true, isRequired: false, transformFunction: null }, tooltipPositions: { classPropertyName: "tooltipPositions", publicName: "tooltipPositions", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, tooltipOffset: { classPropertyName: "tooltipOffset", publicName: "tooltipOffset", isSignal: true, isRequired: false, transformFunction: null }, tooltipColor: { classPropertyName: "tooltipColor", publicName: "tooltipColor", isSignal: true, isRequired: false, transformFunction: null }, tooltipArrow: { classPropertyName: "tooltipArrow", publicName: "tooltipArrow", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, ngImport: i0 });
|
|
1170
1280
|
}
|
|
1171
1281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipTrigger, decorators: [{
|
|
1172
1282
|
type: Directive,
|
|
@@ -1175,7 +1285,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
1175
1285
|
'(document:keydown.escape)': 'onEscape()',
|
|
1176
1286
|
},
|
|
1177
1287
|
}]
|
|
1178
|
-
}], propDecorators: { tooltipDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipDisabled", required: false }] }], tooltipOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOrigin", required: false }] }], tooltipPositions: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPositions", required: false }] }], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOffset", required: false }] }], tooltipColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipColor", required: false }] }] } });
|
|
1288
|
+
}], propDecorators: { tooltipDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipDisabled", required: false }] }], tooltipOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOrigin", required: false }] }], tooltipPositions: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPositions", required: false }] }], tooltipPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipPosition", required: false }] }], tooltipOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipOffset", required: false }] }], tooltipColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipColor", required: false }] }], tooltipArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipArrow", required: false }] }] } });
|
|
1179
1289
|
|
|
1180
1290
|
/**
|
|
1181
1291
|
* Serves tooltips for a whole subtree from one instance. Any descendant carrying the content
|
|
@@ -1379,7 +1489,7 @@ const DAYS_PER_WEEK$1 = 7;
|
|
|
1379
1489
|
/** Lowest meaningful step count: an empty step plus a single activity step. */
|
|
1380
1490
|
const MIN_LEVELS = 2;
|
|
1381
1491
|
/** `date-fns` format token for a month heading above the week columns, e.g. "Jul". */
|
|
1382
|
-
const MONTH_LABEL_FORMAT = 'MMM';
|
|
1492
|
+
const MONTH_LABEL_FORMAT$1 = 'MMM';
|
|
1383
1493
|
/** `date-fns` format token for a day's accessible name, e.g. "July 20th, 2026". */
|
|
1384
1494
|
const DAY_LABEL_FORMAT = 'PPP';
|
|
1385
1495
|
/**
|
|
@@ -1621,7 +1731,7 @@ class ActivityHeatmap {
|
|
|
1621
1731
|
return [];
|
|
1622
1732
|
// The first row holds one day per week column, and each is that week's first day.
|
|
1623
1733
|
const weekStarts = rows[0].days.map(day => day.date);
|
|
1624
|
-
return buildActivityMonthSegments(weekStarts, date => format(date, MONTH_LABEL_FORMAT, this._dateOptions));
|
|
1734
|
+
return buildActivityMonthSegments(weekStarts, date => format(date, MONTH_LABEL_FORMAT$1, this._dateOptions));
|
|
1625
1735
|
}, /* @ts-ignore */
|
|
1626
1736
|
...(ngDevMode ? [{ debugName: "months" }] : /* istanbul ignore next */ []));
|
|
1627
1737
|
/** Every intensity step, low to high, for the legend's sample swatches. */
|
|
@@ -2381,8 +2491,14 @@ const MIN_EVENT_HEIGHT = 24;
|
|
|
2381
2491
|
const PX_PER_MINUTE = HOUR_HEIGHT / 60;
|
|
2382
2492
|
/** `date-fns` format token for a time-grid column heading, e.g. "Mon 20". */
|
|
2383
2493
|
const TIME_GRID_HEADING_FORMAT = 'EEE d';
|
|
2384
|
-
/** `date-fns` format token for
|
|
2385
|
-
const
|
|
2494
|
+
/** `date-fns` format token for a 12-hour gutter label, e.g. "9 AM". */
|
|
2495
|
+
const HOUR_LABEL_FORMAT_12 = 'h a';
|
|
2496
|
+
/** `date-fns` format token for a 24-hour gutter label, e.g. "09:00". */
|
|
2497
|
+
const HOUR_LABEL_FORMAT_24 = 'HH:mm';
|
|
2498
|
+
/** `date-fns` format token for a 12-hour event start time, e.g. "9:30 AM". */
|
|
2499
|
+
const EVENT_TIME_FORMAT_12 = 'h:mm a';
|
|
2500
|
+
/** `date-fns` format token for a 24-hour event start time, e.g. "09:30". */
|
|
2501
|
+
const EVENT_TIME_FORMAT_24 = 'HH:mm';
|
|
2386
2502
|
/** `date-fns` format token for an agenda day's weekday, e.g. "Wednesday". */
|
|
2387
2503
|
const AGENDA_WEEKDAY_FORMAT = 'EEEE';
|
|
2388
2504
|
/** `date-fns` format token for an agenda day's date, e.g. "Jul 22". */
|
|
@@ -2413,6 +2529,9 @@ class CalendarEventItem {
|
|
|
2413
2529
|
activate = output();
|
|
2414
2530
|
// State
|
|
2415
2531
|
_dateOptions = localeFormatOptions(this._locale);
|
|
2532
|
+
_timeFormat = isHour12(this._locale)
|
|
2533
|
+
? EVENT_TIME_FORMAT_12
|
|
2534
|
+
: EVENT_TIME_FORMAT_24;
|
|
2416
2535
|
// Computed
|
|
2417
2536
|
classes = computed(() => {
|
|
2418
2537
|
const classes = ['tls-calendar-event__button'];
|
|
@@ -2432,7 +2551,7 @@ class CalendarEventItem {
|
|
|
2432
2551
|
const event = this.event();
|
|
2433
2552
|
const view = this.view();
|
|
2434
2553
|
if (TIME_AWARE_VIEWS.includes(view) && event.allDay !== true) {
|
|
2435
|
-
return `${format(event.start,
|
|
2554
|
+
return `${format(event.start, this._timeFormat, this._dateOptions)} ${event.title}`;
|
|
2436
2555
|
}
|
|
2437
2556
|
return event.title;
|
|
2438
2557
|
}, /* @ts-ignore */
|
|
@@ -2783,6 +2902,9 @@ class CalendarTimeGrid {
|
|
|
2783
2902
|
hourHeight = HOUR_HEIGHT;
|
|
2784
2903
|
allDayLabel = this._config.labels.allDay;
|
|
2785
2904
|
_dateOptions = localeFormatOptions(this._locale);
|
|
2905
|
+
_hourLabelFormat = isHour12(this._locale)
|
|
2906
|
+
? HOUR_LABEL_FORMAT_12
|
|
2907
|
+
: HOUR_LABEL_FORMAT_24;
|
|
2786
2908
|
/** Ticking current time, so the now line and today highlight track the clock. */
|
|
2787
2909
|
_now = createNowSignal(NOW_REFRESH_INTERVAL_MS);
|
|
2788
2910
|
// Computed
|
|
@@ -2816,7 +2938,13 @@ class CalendarTimeGrid {
|
|
|
2816
2938
|
height: Math.max(MIN_EVENT_HEIGHT, differenceInMinutes(end, start) * PX_PER_MINUTE),
|
|
2817
2939
|
};
|
|
2818
2940
|
});
|
|
2819
|
-
return {
|
|
2941
|
+
return {
|
|
2942
|
+
date: day,
|
|
2943
|
+
isToday: isSameDay(day, now),
|
|
2944
|
+
heading: format(day, TIME_GRID_HEADING_FORMAT, this._dateOptions),
|
|
2945
|
+
allDayEvents,
|
|
2946
|
+
timedEvents,
|
|
2947
|
+
};
|
|
2820
2948
|
});
|
|
2821
2949
|
}, /* @ts-ignore */
|
|
2822
2950
|
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
@@ -2835,7 +2963,7 @@ class CalendarTimeGrid {
|
|
|
2835
2963
|
...(ngDevMode ? [{ debugName: "nowOffset" }] : /* istanbul ignore next */ []));
|
|
2836
2964
|
// Protected methods
|
|
2837
2965
|
hourLabel(hour) {
|
|
2838
|
-
return format(addHours(startOfDay(new Date()), hour),
|
|
2966
|
+
return format(addHours(startOfDay(new Date()), hour), this._hourLabelFormat, this._dateOptions);
|
|
2839
2967
|
}
|
|
2840
2968
|
laneOffset(layout) {
|
|
2841
2969
|
return (layout.lane * 100) / layout.laneCount;
|
|
@@ -3589,6 +3717,7 @@ const DEFAULT_DIALOG_CONFIG = {
|
|
|
3589
3717
|
closeable: true,
|
|
3590
3718
|
backdropClose: true,
|
|
3591
3719
|
closeLabel: 'Close dialog',
|
|
3720
|
+
footerAlign: 'end',
|
|
3592
3721
|
};
|
|
3593
3722
|
|
|
3594
3723
|
const DIALOG_CONFIG = new InjectionToken('DIALOG_CONFIG', {
|
|
@@ -3606,11 +3735,100 @@ class Dialog extends CdkDialogContainer {
|
|
|
3606
3735
|
this._dialogRef.close();
|
|
3607
3736
|
}
|
|
3608
3737
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Dialog, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3609
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Dialog, isStandalone: true, selector: "tls-dialog", host: { properties: { "class": "hostClasses" } }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button
|
|
3738
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Dialog, isStandalone: true, selector: "tls-dialog", host: { properties: { "class": "hostClasses" } }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <tls-button\n class=\"tls-dialog__close\"\n icon\n variant=\"text\"\n size=\"sm\"\n [ariaLabel]=\"config.closeLabel\"\n (click)=\"close()\"\n >\n <tls-icon name=\"close\" aria-hidden=\"true\" />\n </tls-button>\n}\n", dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: Button, selector: "tls-button", inputs: ["label", "ariaLabel", "ariaLabelledby", "type", "href", "tabindex"] }, { kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
|
|
3610
3739
|
}
|
|
3611
3740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Dialog, decorators: [{
|
|
3612
3741
|
type: Component,
|
|
3613
|
-
args: [{ selector: 'tls-dialog', imports: [CdkPortalOutlet, Icon], host: { '[class]': 'hostClasses' }, template: "<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button
|
|
3742
|
+
args: [{ selector: 'tls-dialog', imports: [CdkPortalOutlet, Button, Icon], host: { '[class]': 'hostClasses' }, template: "<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <tls-button\n class=\"tls-dialog__close\"\n icon\n variant=\"text\"\n size=\"sm\"\n [ariaLabel]=\"config.closeLabel\"\n (click)=\"close()\"\n >\n <tls-icon name=\"close\" aria-hidden=\"true\" />\n </tls-button>\n}\n" }]
|
|
3743
|
+
}] });
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* Top region of a dialog, holding its title and any supporting text. Keeps its
|
|
3747
|
+
* padding out of the scrolling body so the title stays put while the content
|
|
3748
|
+
* scrolls under it.
|
|
3749
|
+
*/
|
|
3750
|
+
class DialogHeader {
|
|
3751
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3752
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: DialogHeader, isStandalone: true, selector: "tls-dialog-header", host: { classAttribute: "tls-dialog__header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
3753
|
+
}
|
|
3754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogHeader, decorators: [{
|
|
3755
|
+
type: Component,
|
|
3756
|
+
args: [{
|
|
3757
|
+
selector: 'tls-dialog-header',
|
|
3758
|
+
imports: [],
|
|
3759
|
+
template: '<ng-content></ng-content>',
|
|
3760
|
+
host: {
|
|
3761
|
+
class: 'tls-dialog__header',
|
|
3762
|
+
},
|
|
3763
|
+
}]
|
|
3764
|
+
}] });
|
|
3765
|
+
|
|
3766
|
+
/**
|
|
3767
|
+
* Scrolling content region of a dialog. Takes the space left between the header
|
|
3768
|
+
* and footer and scrolls internally, so a tall dialog keeps its title and
|
|
3769
|
+
* actions visible instead of growing past the viewport.
|
|
3770
|
+
*/
|
|
3771
|
+
class DialogBody {
|
|
3772
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogBody, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3773
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: DialogBody, isStandalone: true, selector: "tls-dialog-body", host: { classAttribute: "tls-dialog__body" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
3774
|
+
}
|
|
3775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogBody, decorators: [{
|
|
3776
|
+
type: Component,
|
|
3777
|
+
args: [{
|
|
3778
|
+
selector: 'tls-dialog-body',
|
|
3779
|
+
imports: [],
|
|
3780
|
+
template: '<ng-content></ng-content>',
|
|
3781
|
+
host: {
|
|
3782
|
+
class: 'tls-dialog__body',
|
|
3783
|
+
},
|
|
3784
|
+
}]
|
|
3785
|
+
}] });
|
|
3786
|
+
|
|
3787
|
+
/**
|
|
3788
|
+
* Action region of a dialog, pinned below the scrolling body. Actions sit at
|
|
3789
|
+
* the end edge by default; `space-between` is the shape to reach for when a
|
|
3790
|
+
* destructive action belongs apart from the confirm/cancel pair.
|
|
3791
|
+
*/
|
|
3792
|
+
class DialogFooter {
|
|
3793
|
+
// Injections
|
|
3794
|
+
_config = inject(DIALOG_CONFIG);
|
|
3795
|
+
// Inputs
|
|
3796
|
+
align = input(this._config.footerAlign, /* @ts-ignore */
|
|
3797
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
3798
|
+
// Computed
|
|
3799
|
+
hostClasses = computed(() => [
|
|
3800
|
+
'tls-dialog__footer',
|
|
3801
|
+
`tls-dialog__footer--${this.align()}`,
|
|
3802
|
+
], /* @ts-ignore */
|
|
3803
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
3804
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogFooter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3805
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: DialogFooter, isStandalone: true, selector: "tls-dialog-footer", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
3806
|
+
}
|
|
3807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogFooter, decorators: [{
|
|
3808
|
+
type: Component,
|
|
3809
|
+
args: [{
|
|
3810
|
+
selector: 'tls-dialog-footer',
|
|
3811
|
+
imports: [],
|
|
3812
|
+
template: '<ng-content></ng-content>',
|
|
3813
|
+
host: { '[class]': 'hostClasses()' },
|
|
3814
|
+
}]
|
|
3815
|
+
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
|
|
3816
|
+
|
|
3817
|
+
/**
|
|
3818
|
+
* Marks the heading that titles a dialog, styling it to the dialog type scale.
|
|
3819
|
+
*/
|
|
3820
|
+
class DialogTitleDirective {
|
|
3821
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3822
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: DialogTitleDirective, isStandalone: true, selector: "[tlsDialogTitle]", host: { classAttribute: "tls-dialog__title" }, ngImport: i0 });
|
|
3823
|
+
}
|
|
3824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogTitleDirective, decorators: [{
|
|
3825
|
+
type: Directive,
|
|
3826
|
+
args: [{
|
|
3827
|
+
selector: '[tlsDialogTitle]',
|
|
3828
|
+
host: {
|
|
3829
|
+
class: 'tls-dialog__title',
|
|
3830
|
+
},
|
|
3831
|
+
}]
|
|
3614
3832
|
}] });
|
|
3615
3833
|
|
|
3616
3834
|
class DialogService {
|
|
@@ -3622,6 +3840,7 @@ class DialogService {
|
|
|
3622
3840
|
closeable: config?.closeable ?? this._config.closeable,
|
|
3623
3841
|
backdropClose: config?.backdropClose ?? this._config.backdropClose,
|
|
3624
3842
|
closeLabel: config?.closeLabel ?? this._config.closeLabel,
|
|
3843
|
+
footerAlign: config?.footerAlign ?? this._config.footerAlign,
|
|
3625
3844
|
};
|
|
3626
3845
|
return this._dialog.open(component, {
|
|
3627
3846
|
container: {
|
|
@@ -4582,6 +4801,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
4582
4801
|
args: [{ selector: 'tls-date-picker-calendar', imports: [Icon], host: { class: 'tls-date-picker-calendar' }, template: "<div class=\"tls-date-picker-calendar__header\">\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" (click)=\"prevMonth()\">\n <tls-icon name=\"chevron-left\" aria-hidden=\"true\" />\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__header-button\" (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-date-picker-calendar__nav\" (click)=\"nextMonth()\">\n <tls-icon name=\"chevron-right\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<div class=\"tls-date-picker-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-date-picker-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.getTime()) {\n <button\n type=\"button\"\n class=\"tls-date-picker-calendar__day\"\n [class.tls-date-picker-calendar__day--outside]=\"!isInCurrentMonth(day)\"\n [class.tls-date-picker-calendar__day--today]=\"isTodayDay(day)\"\n [class.tls-date-picker-calendar__day--selected]=\"isSelectedDay(day)\"\n (click)=\"daySelect.emit(day)\"\n >\n {{ getDayLabel(day) }}\n </button>\n }\n</div>\n" }]
|
|
4583
4802
|
}], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: true }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: true }] }], daySelect: [{ type: i0.Output, args: ["daySelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], navigateUp: [{ type: i0.Output, args: ["navigateUp"] }] } });
|
|
4584
4803
|
|
|
4804
|
+
/** `date-fns` format token for the trigger label in `calendar` mode, e.g. "Jul 20, 2026". */
|
|
4805
|
+
const DATE_LABEL_FORMAT = 'MMM d, yyyy';
|
|
4806
|
+
/** `date-fns` format token for the trigger label in `month-picker` mode, e.g. "July 2026". */
|
|
4807
|
+
const MONTH_LABEL_FORMAT = 'MMMM yyyy';
|
|
4808
|
+
/** `date-fns` format token for the trigger label in `year-picker` mode, e.g. "2026". */
|
|
4809
|
+
const YEAR_LABEL_FORMAT = 'yyyy';
|
|
4810
|
+
/** `date-fns` format token for a 12-hour time, e.g. "9:30 AM". */
|
|
4811
|
+
const TIME_LABEL_FORMAT_12 = 'h:mm a';
|
|
4812
|
+
/** `date-fns` format token for a 24-hour time, e.g. "09:30". */
|
|
4813
|
+
const TIME_LABEL_FORMAT_24 = 'HH:mm';
|
|
4814
|
+
/** `date-fns` format token for the day-period segment of the time picker, e.g. "AM". */
|
|
4815
|
+
const DAY_PERIOD_FORMAT = 'a';
|
|
4816
|
+
/** Hours in a half-day, the wrap point of the 12-hour clock. */
|
|
4817
|
+
const HOURS_PER_HALF_DAY = 12;
|
|
4818
|
+
|
|
4585
4819
|
const DEFAULT_DATE_TIME_PICKER_CONFIG = {
|
|
4586
4820
|
mode: 'calendar',
|
|
4587
4821
|
inline: false,
|
|
@@ -4643,11 +4877,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
4643
4877
|
}], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], monthSelect: [{ type: i0.Output, args: ["monthSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], navigateUp: [{ type: i0.Output, args: ["navigateUp"] }] } });
|
|
4644
4878
|
|
|
4645
4879
|
class TimePicker {
|
|
4880
|
+
// Injections
|
|
4881
|
+
_locale = inject(LOCALE_CONFIG);
|
|
4646
4882
|
// Inputs
|
|
4647
4883
|
value = input.required(/* @ts-ignore */
|
|
4648
4884
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
4649
4885
|
// Outputs
|
|
4650
4886
|
timeChange = output();
|
|
4887
|
+
// State
|
|
4888
|
+
_dateOptions = localeFormatOptions(this._locale);
|
|
4889
|
+
/** Whether the hour column runs 1–12 alongside a day-period toggle. */
|
|
4890
|
+
hour12 = isHour12(this._locale);
|
|
4651
4891
|
// Computed
|
|
4652
4892
|
hours = computed(() => {
|
|
4653
4893
|
const date = this.value();
|
|
@@ -4659,20 +4899,30 @@ class TimePicker {
|
|
|
4659
4899
|
return date ? getMinutes(date) : 0;
|
|
4660
4900
|
}, /* @ts-ignore */
|
|
4661
4901
|
...(ngDevMode ? [{ debugName: "minutes" }] : /* istanbul ignore next */ []));
|
|
4662
|
-
hoursLabel = computed(() =>
|
|
4902
|
+
hoursLabel = computed(() => {
|
|
4903
|
+
const hours = this.hours();
|
|
4904
|
+
if (!this.hour12)
|
|
4905
|
+
return String(hours).padStart(2, '0');
|
|
4906
|
+
// Midnight and noon read as 12, the rest as their remainder past the half-day.
|
|
4907
|
+
const displayHours = hours % HOURS_PER_HALF_DAY;
|
|
4908
|
+
return String(displayHours === 0 ? HOURS_PER_HALF_DAY : displayHours).padStart(2, '0');
|
|
4909
|
+
}, /* @ts-ignore */
|
|
4663
4910
|
...(ngDevMode ? [{ debugName: "hoursLabel" }] : /* istanbul ignore next */ []));
|
|
4664
4911
|
minutesLabel = computed(() => String(this.minutes()).padStart(2, '0'), /* @ts-ignore */
|
|
4665
4912
|
...(ngDevMode ? [{ debugName: "minutesLabel" }] : /* istanbul ignore next */ []));
|
|
4913
|
+
/** Localized day-period label ("AM"/"PM"), rendered only on a 12-hour clock. */
|
|
4914
|
+
dayPeriodLabel = computed(() => format(this._withHours(this.hours()), DAY_PERIOD_FORMAT, this._dateOptions), /* @ts-ignore */
|
|
4915
|
+
...(ngDevMode ? [{ debugName: "dayPeriodLabel" }] : /* istanbul ignore next */ []));
|
|
4666
4916
|
// Private accessors
|
|
4667
4917
|
get _baseDate() {
|
|
4668
4918
|
return this.value() ?? startOfDay(new Date());
|
|
4669
4919
|
}
|
|
4670
4920
|
// Protected methods
|
|
4671
4921
|
incrementHours() {
|
|
4672
|
-
this.timeChange.emit(
|
|
4922
|
+
this.timeChange.emit(this._withHours((this.hours() + 1) % 24));
|
|
4673
4923
|
}
|
|
4674
4924
|
decrementHours() {
|
|
4675
|
-
this.timeChange.emit(
|
|
4925
|
+
this.timeChange.emit(this._withHours((this.hours() + 23) % 24));
|
|
4676
4926
|
}
|
|
4677
4927
|
incrementMinutes() {
|
|
4678
4928
|
this.timeChange.emit(setMinutes(this._baseDate, (this.minutes() + 1) % 60));
|
|
@@ -4680,12 +4930,20 @@ class TimePicker {
|
|
|
4680
4930
|
decrementMinutes() {
|
|
4681
4931
|
this.timeChange.emit(setMinutes(this._baseDate, (this.minutes() + 59) % 60));
|
|
4682
4932
|
}
|
|
4933
|
+
/** Flips between the morning and afternoon half of the day, keeping the hour on the dial. */
|
|
4934
|
+
toggleDayPeriod() {
|
|
4935
|
+
this.timeChange.emit(this._withHours((this.hours() + HOURS_PER_HALF_DAY) % 24));
|
|
4936
|
+
}
|
|
4937
|
+
// Private methods
|
|
4938
|
+
_withHours(hours) {
|
|
4939
|
+
return setHours(this._baseDate, hours);
|
|
4940
|
+
}
|
|
4683
4941
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TimePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4684
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
4942
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: TimePicker, isStandalone: true, selector: "tls-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { timeChange: "timeChange" }, host: { classAttribute: "tls-time-picker" }, ngImport: i0, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n@if (hour12) {\n <button type=\"button\" class=\"tls-time-picker__day-period\" (click)=\"toggleDayPeriod()\">\n {{ dayPeriodLabel() }}\n </button>\n}\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }] });
|
|
4685
4943
|
}
|
|
4686
4944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TimePicker, decorators: [{
|
|
4687
4945
|
type: Component,
|
|
4688
|
-
args: [{ selector: 'tls-time-picker', imports: [Icon], host: { class: 'tls-time-picker' }, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n" }]
|
|
4946
|
+
args: [{ selector: 'tls-time-picker', imports: [Icon], host: { class: 'tls-time-picker' }, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <tls-icon name=\"chevron-up\" aria-hidden=\"true\" />\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <tls-icon name=\"chevron-down\" aria-hidden=\"true\" />\n </button>\n</div>\n\n@if (hour12) {\n <button type=\"button\" class=\"tls-time-picker__day-period\" (click)=\"toggleDayPeriod()\">\n {{ dayPeriodLabel() }}\n </button>\n}\n" }]
|
|
4689
4947
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], timeChange: [{ type: i0.Output, args: ["timeChange"] }] } });
|
|
4690
4948
|
|
|
4691
4949
|
class YearPicker {
|
|
@@ -4742,6 +5000,9 @@ class DateTimePicker extends ValueFormControl {
|
|
|
4742
5000
|
config = inject(DATE_TIME_PICKER_CONFIG);
|
|
4743
5001
|
_locale = inject(LOCALE_CONFIG);
|
|
4744
5002
|
_dateOptions = localeFormatOptions(this._locale);
|
|
5003
|
+
_timeFormat = isHour12(this._locale)
|
|
5004
|
+
? TIME_LABEL_FORMAT_12
|
|
5005
|
+
: TIME_LABEL_FORMAT_24;
|
|
4745
5006
|
// View children
|
|
4746
5007
|
popoverComponent = viewChild('popoverRef', /* @ts-ignore */
|
|
4747
5008
|
...(ngDevMode ? [{ debugName: "popoverComponent" }] : /* istanbul ignore next */ []));
|
|
@@ -4785,14 +5046,14 @@ class DateTimePicker extends ValueFormControl {
|
|
|
4785
5046
|
return this.placeholder();
|
|
4786
5047
|
const mode = this.mode();
|
|
4787
5048
|
if (mode === 'calendar')
|
|
4788
|
-
return format(value,
|
|
5049
|
+
return format(value, DATE_LABEL_FORMAT, this._dateOptions);
|
|
4789
5050
|
if (mode === 'month-picker')
|
|
4790
|
-
return format(value,
|
|
5051
|
+
return format(value, MONTH_LABEL_FORMAT, this._dateOptions);
|
|
4791
5052
|
if (mode === 'year-picker')
|
|
4792
|
-
return format(value,
|
|
5053
|
+
return format(value, YEAR_LABEL_FORMAT, this._dateOptions);
|
|
4793
5054
|
if (mode === 'time-picker')
|
|
4794
|
-
return format(value,
|
|
4795
|
-
return format(value,
|
|
5055
|
+
return format(value, this._timeFormat, this._dateOptions);
|
|
5056
|
+
return format(value, `${DATE_LABEL_FORMAT} ${this._timeFormat}`, this._dateOptions);
|
|
4796
5057
|
}, /* @ts-ignore */
|
|
4797
5058
|
...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
|
|
4798
5059
|
constructor() {
|
|
@@ -8757,5 +9018,5 @@ const provideThalassicUIConfig = (config = {}) => {
|
|
|
8757
9018
|
* Generated bundle index. Do not edit.
|
|
8758
9019
|
*/
|
|
8759
9020
|
|
|
8760
|
-
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_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, 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, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, 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, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, 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, ValueFormControl, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
|
|
9021
|
+
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_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLITTER_CONFIG, DEFAULT_STEPPER_CONFIG, 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, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogBody, DialogFooter, DialogHeader, DialogService, DialogTitleDirective, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, 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, Pagination, PaginationQuerySyncDirective, Password, PinInput, Popover, RADIO_BUTTON_CONFIG, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, SPLITTER_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, Select, Skeleton, 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, ValueFormControl, aggregateActivityEntries, applyMask, buildActivityMonthSegments, buildActivityThresholds, provideThalassicIcons, provideThalassicUIConfig, resolveActivityLevel };
|
|
8761
9022
|
//# sourceMappingURL=thalassic-ui.mjs.map
|