@thalassic/ui 22.9.0 → 22.11.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 +590 -280
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +234 -104
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, model, input, signal, computed, booleanAttribute, Directive, ViewContainerRef, DestroyRef, viewChild, Component,
|
|
2
|
+
import { InjectionToken, inject, model, input, signal, computed, booleanAttribute, Directive, ViewContainerRef, DestroyRef, viewChild, Component, Injectable, makeEnvironmentProviders, contentChild, forwardRef, output, effect, ElementRef, afterNextRender, linkedSignal, numberAttribute, Renderer2, viewChildren, contentChildren, isDevMode, untracked, TemplateRef, provideEnvironmentInitializer, PLATFORM_ID, 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, 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 } from '@angular/router';
|
|
8
|
-
import {
|
|
9
|
-
import { startOfWeek, startOfMonth, endOfWeek, endOfMonth, addDays, eachDayOfInterval, format, startOfDay, isBefore, isAfter, isToday, differenceInCalendarDays, isSameMonth, addHours, differenceInMinutes, isSameDay, isSameWeek, addMonths, addWeeks, subMonths, setMonth, subYears, addYears, getYear, getMonth, getHours, getMinutes, setHours, setMinutes, setYear } from 'date-fns';
|
|
8
|
+
import { NgComponentOutlet, NgTemplateOutlet, LocationStrategy, isPlatformBrowser } from '@angular/common';
|
|
10
9
|
import { HttpClient } from '@angular/common/http';
|
|
11
10
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
11
|
+
import { startOfWeek, startOfMonth, endOfWeek, endOfMonth, addDays, eachDayOfInterval, format, startOfDay, isBefore, isAfter, isToday, differenceInCalendarDays, isSameMonth, addHours, differenceInMinutes, isSameDay, isSameWeek, addMonths, addWeeks, subMonths, setMonth, subYears, addYears, getYear, getMonth, getHours, getMinutes, setHours, setMinutes, setYear } from 'date-fns';
|
|
12
12
|
import { Grid, GridRow, GridCell } from '@angular/aria/grid';
|
|
13
13
|
import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
|
|
14
14
|
import { filter as filter$1 } from 'rxjs/operators';
|
|
@@ -17,7 +17,7 @@ import { Directionality } from '@angular/cdk/bidi';
|
|
|
17
17
|
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
18
18
|
import { Menu as Menu$1, MenuItem } from '@angular/aria/menu';
|
|
19
19
|
import * as i1 from '@angular/aria/tabs';
|
|
20
|
-
import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1 } from '@angular/aria/tabs';
|
|
20
|
+
import { TabPanel, TabList, Tab as Tab$1, Tabs as Tabs$1, TabContent } from '@angular/aria/tabs';
|
|
21
21
|
import { CdkTable, CdkHeaderCell, CdkCell, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef } from '@angular/cdk/table';
|
|
22
22
|
import { deepMerge } from '@thalassic/core';
|
|
23
23
|
|
|
@@ -827,222 +827,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
827
827
|
}, 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" }]
|
|
828
828
|
}], 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 }] }] } });
|
|
829
829
|
|
|
830
|
-
const DEFAULT_BUTTON_CONFIG = {
|
|
831
|
-
color: 'primary',
|
|
832
|
-
variant: 'filled',
|
|
833
|
-
size: 'md',
|
|
834
|
-
type: 'button',
|
|
835
|
-
fluid: false,
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
const BUTTON_CONFIG = new InjectionToken('BUTTON_CONFIG', {
|
|
839
|
-
factory: () => DEFAULT_BUTTON_CONFIG,
|
|
840
|
-
});
|
|
841
|
-
|
|
842
|
-
class ButtonBase {
|
|
843
|
-
// Injections
|
|
844
|
-
_config = inject(BUTTON_CONFIG);
|
|
845
|
-
APPLY_HOST_CLASSES = true;
|
|
846
|
-
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
847
|
-
icon = input(false, { ...(ngDevMode ? { debugName: "icon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
848
|
-
color = input(this._config.color, /* @ts-ignore */
|
|
849
|
-
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
850
|
-
variant = input(this._config.variant, /* @ts-ignore */
|
|
851
|
-
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
852
|
-
size = input(this._config.size, /* @ts-ignore */
|
|
853
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
854
|
-
rounded = input(false, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
855
|
-
/** Whether the button stretches to fill its container's width. */
|
|
856
|
-
fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
857
|
-
classes = computed(() => {
|
|
858
|
-
const className = 'tls-button';
|
|
859
|
-
const array = [className];
|
|
860
|
-
array.push(`${className}--${this.color()}`);
|
|
861
|
-
array.push(`${className}--${this.variant()}`);
|
|
862
|
-
array.push(`${className}--${this.size()}`);
|
|
863
|
-
if (this.disabled())
|
|
864
|
-
array.push(`${className}--disabled`);
|
|
865
|
-
if (this.icon())
|
|
866
|
-
array.push(`${className}--icon-only`);
|
|
867
|
-
if (this.fluid())
|
|
868
|
-
array.push(`${className}--fluid`);
|
|
869
|
-
if (this.rounded())
|
|
870
|
-
array.push(`${className}--rounded`);
|
|
871
|
-
return array;
|
|
872
|
-
}, /* @ts-ignore */
|
|
873
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
874
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
875
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: ButtonBase, isStandalone: true, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "APPLY_HOST_CLASSES ? classes() : null" } }, ngImport: i0 });
|
|
876
|
-
}
|
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonBase, decorators: [{
|
|
878
|
-
type: Directive,
|
|
879
|
-
args: [{
|
|
880
|
-
host: {
|
|
881
|
-
'[class]': 'APPLY_HOST_CLASSES ? classes() : null',
|
|
882
|
-
},
|
|
883
|
-
}]
|
|
884
|
-
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }] } });
|
|
885
|
-
|
|
886
|
-
class Button extends ButtonBase {
|
|
887
|
-
// Injections
|
|
888
|
-
_routerLink = inject(RouterLink, { optional: true });
|
|
889
|
-
_router = inject(Router, { optional: true });
|
|
890
|
-
_locationStrategy = inject(LocationStrategy, { optional: true });
|
|
891
|
-
APPLY_HOST_CLASSES = false;
|
|
892
|
-
// Inputs
|
|
893
|
-
/** The text label displayed inside the button. Takes priority over projected content. */
|
|
894
|
-
label = input(/* @ts-ignore */
|
|
895
|
-
...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
896
|
-
/**
|
|
897
|
-
* Accessible name forwarded to the inner `<button>`/`<a>`. Required for icon-only buttons,
|
|
898
|
-
* where there is no visible text for screen readers to announce. Placed on the inner control
|
|
899
|
-
* because the host `tls-button` element is a non-interactive wrapper.
|
|
900
|
-
*/
|
|
901
|
-
ariaLabel = input(undefined, /* @ts-ignore */
|
|
902
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
903
|
-
/**
|
|
904
|
-
* `id` of an element whose text names the inner `<button>`/`<a>`, for when the accessible
|
|
905
|
-
* name already exists as visible text. Takes precedence over `ariaLabel` per the ARIA spec.
|
|
906
|
-
*/
|
|
907
|
-
ariaLabelledby = input(undefined, /* @ts-ignore */
|
|
908
|
-
...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
|
|
909
|
-
type = input(this._config.type, /* @ts-ignore */
|
|
910
|
-
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
911
|
-
/** An optional URL that causes the button to render as an anchor link. */
|
|
912
|
-
href = input(null, /* @ts-ignore */
|
|
913
|
-
...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
|
|
914
|
-
tabindex = input('0', /* @ts-ignore */
|
|
915
|
-
...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
|
|
916
|
-
// Computed
|
|
917
|
-
isLink = computed(() => Boolean(this._routerLink || this.href()), /* @ts-ignore */
|
|
918
|
-
...(ngDevMode ? [{ debugName: "isLink" }] : /* istanbul ignore next */ []));
|
|
919
|
-
/**
|
|
920
|
-
* Resolved URL placed on the inner anchor so the browser treats it as a real link
|
|
921
|
-
* (enables "Open in new tab", middle-click, status-bar preview, etc.). An explicit
|
|
922
|
-
* `href` wins; otherwise the URL is derived from the host `routerLink`.
|
|
923
|
-
*/
|
|
924
|
-
linkHref = computed(() => {
|
|
925
|
-
if (this.disabled())
|
|
926
|
-
return null;
|
|
927
|
-
const explicitHref = this.href();
|
|
928
|
-
if (explicitHref)
|
|
929
|
-
return explicitHref;
|
|
930
|
-
const urlTree = this._routerLink?.urlTree;
|
|
931
|
-
if (!urlTree || !this._router)
|
|
932
|
-
return null;
|
|
933
|
-
const serialized = this._router.serializeUrl(urlTree);
|
|
934
|
-
return this._locationStrategy?.prepareExternalUrl(serialized) ?? serialized;
|
|
935
|
-
}, /* @ts-ignore */
|
|
936
|
-
...(ngDevMode ? [{ debugName: "linkHref" }] : /* istanbul ignore next */ []));
|
|
937
|
-
// Protected methods
|
|
938
|
-
/**
|
|
939
|
-
* Keeps navigation correct when the host carries a `routerLink` while the inner anchor
|
|
940
|
-
* exposes a real `href`:
|
|
941
|
-
* - modified / non-primary clicks bubble to the browser so it can open a new tab, and
|
|
942
|
-
* are stopped from reaching the host RouterLink to avoid a duplicate in-app navigation;
|
|
943
|
-
* - a plain left click defers to the host RouterLink for SPA navigation, so the anchor's
|
|
944
|
-
* own full-page navigation is prevented.
|
|
945
|
-
*/
|
|
946
|
-
onLinkClick(event) {
|
|
947
|
-
if (this.disabled()) {
|
|
948
|
-
event.preventDefault();
|
|
949
|
-
event.stopPropagation();
|
|
950
|
-
return;
|
|
951
|
-
}
|
|
952
|
-
// Pure href links (no routerLink) navigate natively — nothing to coordinate.
|
|
953
|
-
if (!this._routerLink)
|
|
954
|
-
return;
|
|
955
|
-
if (event.button !== 0 || event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) {
|
|
956
|
-
event.stopPropagation();
|
|
957
|
-
return;
|
|
958
|
-
}
|
|
959
|
-
event.preventDefault();
|
|
960
|
-
}
|
|
961
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
962
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Button, isStandalone: true, selector: "tls-button", inputs: { label: { classPropertyName: "label", publicName: "label", 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 }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "tabindex": "-1" } }, usesInheritance: true, ngImport: i0, template: "@if (isLink()) {\n <a\n role=\"link\"\n [class]=\"classes()\"\n [attr.href]=\"linkHref()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-disabled]=\"disabled()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </a>\n} @else {\n <button\n role=\"button\"\n [class]=\"classes()\"\n [type]=\"type()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </button>\n}\n\n<!-- Content -->\n<ng-template #contentTemplate>\n @if (label() && !icon()) {\n {{ label() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"projectedContentTemplate\"></ng-container>\n }\n</ng-template>\n\n<ng-template #projectedContentTemplate>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:fit-content;display:inline-block}:host:focus-visible{outline:none}:host:has(.tls-button.tls-button--fluid){width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
963
|
-
}
|
|
964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, decorators: [{
|
|
965
|
-
type: Component,
|
|
966
|
-
args: [{ selector: 'tls-button', imports: [NgTemplateOutlet], host: {
|
|
967
|
-
'[tabindex]': '-1',
|
|
968
|
-
}, template: "@if (isLink()) {\n <a\n role=\"link\"\n [class]=\"classes()\"\n [attr.href]=\"linkHref()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-disabled]=\"disabled()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </a>\n} @else {\n <button\n role=\"button\"\n [class]=\"classes()\"\n [type]=\"type()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </button>\n}\n\n<!-- Content -->\n<ng-template #contentTemplate>\n @if (label() && !icon()) {\n {{ label() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"projectedContentTemplate\"></ng-container>\n }\n</ng-template>\n\n<ng-template #projectedContentTemplate>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:fit-content;display:inline-block}:host:focus-visible{outline:none}:host:has(.tls-button.tls-button--fluid){width:100%}\n"] }]
|
|
969
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
|
|
970
|
-
|
|
971
|
-
class ButtonDirective extends ButtonBase {
|
|
972
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
973
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: ButtonDirective, isStandalone: true, selector: "[tlsButton]", usesInheritance: true, ngImport: i0 });
|
|
974
|
-
}
|
|
975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
976
|
-
type: Directive,
|
|
977
|
-
args: [{
|
|
978
|
-
selector: '[tlsButton]',
|
|
979
|
-
}]
|
|
980
|
-
}] });
|
|
981
|
-
|
|
982
|
-
const DEFAULT_TOGGLE_GROUP_CONFIG = {
|
|
983
|
-
size: 'md',
|
|
984
|
-
color: 'primary',
|
|
985
|
-
variant: 'filled',
|
|
986
|
-
orientation: 'horizontal',
|
|
987
|
-
multiple: false,
|
|
988
|
-
unselectable: false,
|
|
989
|
-
fluid: false,
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
const TOGGLE_GROUP_CONFIG = new InjectionToken('TOGGLE_GROUP_CONFIG', {
|
|
993
|
-
factory: () => DEFAULT_TOGGLE_GROUP_CONFIG,
|
|
994
|
-
});
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* `value` is always an array — in single mode (`multiple = false`) it holds 0 or
|
|
998
|
-
* 1 items, read it as `value()[0]`. See {@link SelectionGroup} for the contract.
|
|
999
|
-
*/
|
|
1000
|
-
class ToggleGroup extends SelectionGroup {
|
|
1001
|
-
_config = inject(TOGGLE_GROUP_CONFIG);
|
|
1002
|
-
CLASS_NAME = 'tls-toggle-group';
|
|
1003
|
-
multiple = input(this._config.multiple, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1004
|
-
unselectable = input(this._config.unselectable, { ...(ngDevMode ? { debugName: "unselectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1005
|
-
size = input(this._config.size, /* @ts-ignore */
|
|
1006
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
1007
|
-
color = input(this._config.color, /* @ts-ignore */
|
|
1008
|
-
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1009
|
-
variant = input(this._config.variant, /* @ts-ignore */
|
|
1010
|
-
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
1011
|
-
orientation = input(this._config.orientation, /* @ts-ignore */
|
|
1012
|
-
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
1013
|
-
/** Whether the group stretches to fill its container's width with equal-width options. */
|
|
1014
|
-
fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1015
|
-
optionTemplate = contentChild('option', /* @ts-ignore */
|
|
1016
|
-
...(ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []));
|
|
1017
|
-
classes = computed(() => {
|
|
1018
|
-
const className = this.CLASS_NAME;
|
|
1019
|
-
const array = [
|
|
1020
|
-
className,
|
|
1021
|
-
`${className}--${this.size()}`,
|
|
1022
|
-
`${className}--${this.color()}`,
|
|
1023
|
-
`${className}--${this.variant()}`,
|
|
1024
|
-
`${className}--${this.orientation()}`,
|
|
1025
|
-
];
|
|
1026
|
-
if (this.fluid())
|
|
1027
|
-
array.push(`${className}--fluid`);
|
|
1028
|
-
return array.concat(this.controlClasses());
|
|
1029
|
-
}, /* @ts-ignore */
|
|
1030
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
1031
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1032
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ToggleGroup, isStandalone: true, selector: "tls-toggle-group", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unselectable: { classPropertyName: "unselectable", publicName: "unselectable", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", 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 }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabel() ?? null", "attr.aria-labelledby": "labelledBy()", "attr.aria-describedby": "describedBy()", "attr.aria-invalid": "invalid() ? 'true' : null" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1033
|
-
}
|
|
1034
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, decorators: [{
|
|
1035
|
-
type: Component,
|
|
1036
|
-
args: [{ selector: 'tls-toggle-group', imports: [NgTemplateOutlet], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], host: {
|
|
1037
|
-
role: 'group',
|
|
1038
|
-
'[class]': 'classes()',
|
|
1039
|
-
'[attr.aria-label]': 'ariaLabel() ?? null',
|
|
1040
|
-
'[attr.aria-labelledby]': 'labelledBy()',
|
|
1041
|
-
'[attr.aria-describedby]': 'describedBy()',
|
|
1042
|
-
'[attr.aria-invalid]': "invalid() ? 'true' : null",
|
|
1043
|
-
}, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n" }]
|
|
1044
|
-
}], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], unselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "unselectable", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: ['option', { isSignal: true }] }] } });
|
|
1045
|
-
|
|
1046
830
|
/**
|
|
1047
831
|
* Built-in SVG for every {@link systemIcon}. A coherent 24×24 stroked set drawn
|
|
1048
832
|
* with `currentColor`, no intrinsic width/height so each icon scales to its
|
|
@@ -1207,47 +991,297 @@ class Icon {
|
|
|
1207
991
|
return false;
|
|
1208
992
|
return src.endsWith('.svg');
|
|
1209
993
|
}, /* @ts-ignore */
|
|
1210
|
-
...(ngDevMode ? [{ debugName: "isSvgSrc" }] : /* istanbul ignore next */ []));
|
|
1211
|
-
_svgContentResource = rxResource({
|
|
1212
|
-
defaultValue: '',
|
|
1213
|
-
params: () => ({
|
|
1214
|
-
iconSrc: this.iconSrc(),
|
|
1215
|
-
name: this.name(),
|
|
1216
|
-
allowedSources: this.allowedSources(),
|
|
1217
|
-
}),
|
|
1218
|
-
stream: ({ params }) => {
|
|
1219
|
-
if (params.name || !params.iconSrc)
|
|
1220
|
-
return of('');
|
|
1221
|
-
return this._iconService.getSvgContent(params.iconSrc, params.allowedSources);
|
|
1222
|
-
},
|
|
1223
|
-
});
|
|
1224
|
-
// Accessors
|
|
1225
|
-
get svgContent() {
|
|
1226
|
-
return this._svgContentResource.value.asReadonly();
|
|
994
|
+
...(ngDevMode ? [{ debugName: "isSvgSrc" }] : /* istanbul ignore next */ []));
|
|
995
|
+
_svgContentResource = rxResource({
|
|
996
|
+
defaultValue: '',
|
|
997
|
+
params: () => ({
|
|
998
|
+
iconSrc: this.iconSrc(),
|
|
999
|
+
name: this.name(),
|
|
1000
|
+
allowedSources: this.allowedSources(),
|
|
1001
|
+
}),
|
|
1002
|
+
stream: ({ params }) => {
|
|
1003
|
+
if (params.name || !params.iconSrc)
|
|
1004
|
+
return of('');
|
|
1005
|
+
return this._iconService.getSvgContent(params.iconSrc, params.allowedSources);
|
|
1006
|
+
},
|
|
1007
|
+
});
|
|
1008
|
+
// Accessors
|
|
1009
|
+
get svgContent() {
|
|
1010
|
+
return this._svgContentResource.value.asReadonly();
|
|
1011
|
+
}
|
|
1012
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Icon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1013
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Icon, isStandalone: true, selector: "tls-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, iconSrc: { classPropertyName: "iconSrc", publicName: "iconSrc", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, allowedSources: { classPropertyName: "allowedSources", publicName: "allowedSources", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "tls-icon" }, ngImport: i0, template: "@if (name()) {\n @if (registryComponent(); as iconComponent) {\n <ng-container [ngComponentOutlet]=\"iconComponent\" />\n } @else {\n <span [innerHTML]=\"registrySvg()\" class=\"tls-svg-icon\"></span>\n }\n} @else if (isSvgSrc() && iconSrc()) {\n <span [innerHTML]=\"svgContent()\" class=\"tls-svg-icon\"></span>\n} @else if (iconSrc()) {\n <img [src]=\"iconSrc()\" [alt]=\"alt()\" class=\"tls-img-icon\" />\n}\n", dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
1014
|
+
}
|
|
1015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Icon, decorators: [{
|
|
1016
|
+
type: Component,
|
|
1017
|
+
args: [{ selector: 'tls-icon', imports: [NgComponentOutlet], host: { class: 'tls-icon' }, template: "@if (name()) {\n @if (registryComponent(); as iconComponent) {\n <ng-container [ngComponentOutlet]=\"iconComponent\" />\n } @else {\n <span [innerHTML]=\"registrySvg()\" class=\"tls-svg-icon\"></span>\n }\n} @else if (isSvgSrc() && iconSrc()) {\n <span [innerHTML]=\"svgContent()\" class=\"tls-svg-icon\"></span>\n} @else if (iconSrc()) {\n <img [src]=\"iconSrc()\" [alt]=\"alt()\" class=\"tls-img-icon\" />\n}\n" }]
|
|
1018
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], iconSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconSrc", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], allowedSources: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowedSources", required: false }] }] } });
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Override any of the library's built-in {@link systemIcon}s with your own kit.
|
|
1022
|
+
* Each entry is raw SVG markup or a component class; names left unset keep the
|
|
1023
|
+
* library defaults. Register once in the application config:
|
|
1024
|
+
*
|
|
1025
|
+
* ```ts
|
|
1026
|
+
* provideThalassicIcons({
|
|
1027
|
+
* close: '<svg>…</svg>',
|
|
1028
|
+
* 'chevron-down': MyChevronComponent,
|
|
1029
|
+
* })
|
|
1030
|
+
* ```
|
|
1031
|
+
*/
|
|
1032
|
+
function provideThalassicIcons(icons) {
|
|
1033
|
+
return makeEnvironmentProviders([{ provide: ICON_REGISTRY, useValue: icons }]);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
const DEFAULT_BREADCRUMBS_CONFIG = {
|
|
1037
|
+
separatorIcon: 'chevron-right',
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
const BREADCRUMBS_CONFIG = new InjectionToken('BREADCRUMBS_CONFIG', {
|
|
1041
|
+
factory: () => DEFAULT_BREADCRUMBS_CONFIG,
|
|
1042
|
+
});
|
|
1043
|
+
|
|
1044
|
+
class Breadcrumbs {
|
|
1045
|
+
// Injections
|
|
1046
|
+
_config = inject(BREADCRUMBS_CONFIG);
|
|
1047
|
+
// Inputs
|
|
1048
|
+
items = input([], /* @ts-ignore */
|
|
1049
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
1050
|
+
separatorIcon = input(this._config.separatorIcon, /* @ts-ignore */
|
|
1051
|
+
...(ngDevMode ? [{ debugName: "separatorIcon" }] : /* istanbul ignore next */ []));
|
|
1052
|
+
/** Accessible name for the breadcrumb navigation landmark. */
|
|
1053
|
+
ariaLabel = input('Breadcrumb', /* @ts-ignore */
|
|
1054
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
1055
|
+
ariaLabelledby = input(undefined, /* @ts-ignore */
|
|
1056
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
|
|
1057
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Breadcrumbs, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1058
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Breadcrumbs, isStandalone: true, selector: "tls-breadcrumbs", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, separatorIcon: { classPropertyName: "separatorIcon", publicName: "separatorIcon", 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 } }, host: { attributes: { "role": "navigation" }, properties: { "attr.aria-label": "ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "ariaLabelledby() ?? null" }, classAttribute: "tls-breadcrumbs" }, ngImport: i0, template: "<ol class=\"tls-breadcrumbs__list\">\n @for (item of items(); track $index; let isLastItem = $last) {\n <li class=\"tls-breadcrumbs__item\">\n @if (item.link !== undefined) {\n <a\n class=\"tls-breadcrumbs__link\"\n [routerLink]=\"item.link\"\n [attr.aria-current]=\"isLastItem ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else {\n <span class=\"tls-breadcrumbs__text\" [attr.aria-current]=\"isLastItem ? 'page' : null\">\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n\n @if (!isLastItem) {\n <span class=\"tls-breadcrumbs__separator\" aria-hidden=\"true\">\n <tls-icon [name]=\"separatorIcon()\" />\n </span>\n }\n </li>\n }\n</ol>\n\n<ng-template #itemContent let-item>\n @if (item.icon) {\n <tls-icon class=\"tls-breadcrumbs__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-breadcrumbs__label\">{{ item.label }}</span>\n</ng-template>\n", dependencies: [{ kind: "component", type: Icon, selector: "tls-icon", inputs: ["name", "iconSrc", "alt", "allowedSources"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }] });
|
|
1059
|
+
}
|
|
1060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Breadcrumbs, decorators: [{
|
|
1061
|
+
type: Component,
|
|
1062
|
+
args: [{ selector: 'tls-breadcrumbs', imports: [Icon, NgTemplateOutlet, RouterLink], host: {
|
|
1063
|
+
role: 'navigation',
|
|
1064
|
+
class: 'tls-breadcrumbs',
|
|
1065
|
+
'[attr.aria-label]': 'ariaLabelledby() ? null : ariaLabel()',
|
|
1066
|
+
'[attr.aria-labelledby]': 'ariaLabelledby() ?? null',
|
|
1067
|
+
}, template: "<ol class=\"tls-breadcrumbs__list\">\n @for (item of items(); track $index; let isLastItem = $last) {\n <li class=\"tls-breadcrumbs__item\">\n @if (item.link !== undefined) {\n <a\n class=\"tls-breadcrumbs__link\"\n [routerLink]=\"item.link\"\n [attr.aria-current]=\"isLastItem ? 'page' : null\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </a>\n } @else {\n <span class=\"tls-breadcrumbs__text\" [attr.aria-current]=\"isLastItem ? 'page' : null\">\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </span>\n }\n\n @if (!isLastItem) {\n <span class=\"tls-breadcrumbs__separator\" aria-hidden=\"true\">\n <tls-icon [name]=\"separatorIcon()\" />\n </span>\n }\n </li>\n }\n</ol>\n\n<ng-template #itemContent let-item>\n @if (item.icon) {\n <tls-icon class=\"tls-breadcrumbs__item-icon\" [iconSrc]=\"item.icon\" />\n }\n <span class=\"tls-breadcrumbs__label\">{{ item.label }}</span>\n</ng-template>\n" }]
|
|
1068
|
+
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], separatorIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "separatorIcon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }] } });
|
|
1069
|
+
|
|
1070
|
+
const DEFAULT_BUTTON_CONFIG = {
|
|
1071
|
+
color: 'primary',
|
|
1072
|
+
variant: 'filled',
|
|
1073
|
+
size: 'md',
|
|
1074
|
+
type: 'button',
|
|
1075
|
+
fluid: false,
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
const BUTTON_CONFIG = new InjectionToken('BUTTON_CONFIG', {
|
|
1079
|
+
factory: () => DEFAULT_BUTTON_CONFIG,
|
|
1080
|
+
});
|
|
1081
|
+
|
|
1082
|
+
class ButtonBase {
|
|
1083
|
+
// Injections
|
|
1084
|
+
_config = inject(BUTTON_CONFIG);
|
|
1085
|
+
APPLY_HOST_CLASSES = true;
|
|
1086
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1087
|
+
icon = input(false, { ...(ngDevMode ? { debugName: "icon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1088
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
1089
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1090
|
+
variant = input(this._config.variant, /* @ts-ignore */
|
|
1091
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
1092
|
+
size = input(this._config.size, /* @ts-ignore */
|
|
1093
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
1094
|
+
rounded = input(false, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1095
|
+
/** Whether the button stretches to fill its container's width. */
|
|
1096
|
+
fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1097
|
+
classes = computed(() => {
|
|
1098
|
+
const className = 'tls-button';
|
|
1099
|
+
const array = [className];
|
|
1100
|
+
array.push(`${className}--${this.color()}`);
|
|
1101
|
+
array.push(`${className}--${this.variant()}`);
|
|
1102
|
+
array.push(`${className}--${this.size()}`);
|
|
1103
|
+
if (this.disabled())
|
|
1104
|
+
array.push(`${className}--disabled`);
|
|
1105
|
+
if (this.icon())
|
|
1106
|
+
array.push(`${className}--icon-only`);
|
|
1107
|
+
if (this.fluid())
|
|
1108
|
+
array.push(`${className}--fluid`);
|
|
1109
|
+
if (this.rounded())
|
|
1110
|
+
array.push(`${className}--rounded`);
|
|
1111
|
+
return array;
|
|
1112
|
+
}, /* @ts-ignore */
|
|
1113
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
1114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1115
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: ButtonBase, isStandalone: true, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "APPLY_HOST_CLASSES ? classes() : null" } }, ngImport: i0 });
|
|
1116
|
+
}
|
|
1117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonBase, decorators: [{
|
|
1118
|
+
type: Directive,
|
|
1119
|
+
args: [{
|
|
1120
|
+
host: {
|
|
1121
|
+
'[class]': 'APPLY_HOST_CLASSES ? classes() : null',
|
|
1122
|
+
},
|
|
1123
|
+
}]
|
|
1124
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }] } });
|
|
1125
|
+
|
|
1126
|
+
class Button extends ButtonBase {
|
|
1127
|
+
// Injections
|
|
1128
|
+
_routerLink = inject(RouterLink, { optional: true });
|
|
1129
|
+
_router = inject(Router, { optional: true });
|
|
1130
|
+
_locationStrategy = inject(LocationStrategy, { optional: true });
|
|
1131
|
+
APPLY_HOST_CLASSES = false;
|
|
1132
|
+
// Inputs
|
|
1133
|
+
/** The text label displayed inside the button. Takes priority over projected content. */
|
|
1134
|
+
label = input(/* @ts-ignore */
|
|
1135
|
+
...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1136
|
+
/**
|
|
1137
|
+
* Accessible name forwarded to the inner `<button>`/`<a>`. Required for icon-only buttons,
|
|
1138
|
+
* where there is no visible text for screen readers to announce. Placed on the inner control
|
|
1139
|
+
* because the host `tls-button` element is a non-interactive wrapper.
|
|
1140
|
+
*/
|
|
1141
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
1142
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
1143
|
+
/**
|
|
1144
|
+
* `id` of an element whose text names the inner `<button>`/`<a>`, for when the accessible
|
|
1145
|
+
* name already exists as visible text. Takes precedence over `ariaLabel` per the ARIA spec.
|
|
1146
|
+
*/
|
|
1147
|
+
ariaLabelledby = input(undefined, /* @ts-ignore */
|
|
1148
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
|
|
1149
|
+
type = input(this._config.type, /* @ts-ignore */
|
|
1150
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
1151
|
+
/** An optional URL that causes the button to render as an anchor link. */
|
|
1152
|
+
href = input(null, /* @ts-ignore */
|
|
1153
|
+
...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
|
|
1154
|
+
tabindex = input('0', /* @ts-ignore */
|
|
1155
|
+
...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
|
|
1156
|
+
// Computed
|
|
1157
|
+
isLink = computed(() => Boolean(this._routerLink || this.href()), /* @ts-ignore */
|
|
1158
|
+
...(ngDevMode ? [{ debugName: "isLink" }] : /* istanbul ignore next */ []));
|
|
1159
|
+
/**
|
|
1160
|
+
* Resolved URL placed on the inner anchor so the browser treats it as a real link
|
|
1161
|
+
* (enables "Open in new tab", middle-click, status-bar preview, etc.). An explicit
|
|
1162
|
+
* `href` wins; otherwise the URL is derived from the host `routerLink`.
|
|
1163
|
+
*/
|
|
1164
|
+
linkHref = computed(() => {
|
|
1165
|
+
if (this.disabled())
|
|
1166
|
+
return null;
|
|
1167
|
+
const explicitHref = this.href();
|
|
1168
|
+
if (explicitHref)
|
|
1169
|
+
return explicitHref;
|
|
1170
|
+
const urlTree = this._routerLink?.urlTree;
|
|
1171
|
+
if (!urlTree || !this._router)
|
|
1172
|
+
return null;
|
|
1173
|
+
const serialized = this._router.serializeUrl(urlTree);
|
|
1174
|
+
return this._locationStrategy?.prepareExternalUrl(serialized) ?? serialized;
|
|
1175
|
+
}, /* @ts-ignore */
|
|
1176
|
+
...(ngDevMode ? [{ debugName: "linkHref" }] : /* istanbul ignore next */ []));
|
|
1177
|
+
// Protected methods
|
|
1178
|
+
/**
|
|
1179
|
+
* Keeps navigation correct when the host carries a `routerLink` while the inner anchor
|
|
1180
|
+
* exposes a real `href`:
|
|
1181
|
+
* - modified / non-primary clicks bubble to the browser so it can open a new tab, and
|
|
1182
|
+
* are stopped from reaching the host RouterLink to avoid a duplicate in-app navigation;
|
|
1183
|
+
* - a plain left click defers to the host RouterLink for SPA navigation, so the anchor's
|
|
1184
|
+
* own full-page navigation is prevented.
|
|
1185
|
+
*/
|
|
1186
|
+
onLinkClick(event) {
|
|
1187
|
+
if (this.disabled()) {
|
|
1188
|
+
event.preventDefault();
|
|
1189
|
+
event.stopPropagation();
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
// Pure href links (no routerLink) navigate natively — nothing to coordinate.
|
|
1193
|
+
if (!this._routerLink)
|
|
1194
|
+
return;
|
|
1195
|
+
if (event.button !== 0 || event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) {
|
|
1196
|
+
event.stopPropagation();
|
|
1197
|
+
return;
|
|
1198
|
+
}
|
|
1199
|
+
event.preventDefault();
|
|
1227
1200
|
}
|
|
1228
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type:
|
|
1229
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type:
|
|
1201
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1202
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Button, isStandalone: true, selector: "tls-button", inputs: { label: { classPropertyName: "label", publicName: "label", 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 }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "tabindex": "-1" } }, usesInheritance: true, ngImport: i0, template: "@if (isLink()) {\n <a\n role=\"link\"\n [class]=\"classes()\"\n [attr.href]=\"linkHref()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-disabled]=\"disabled()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </a>\n} @else {\n <button\n role=\"button\"\n [class]=\"classes()\"\n [type]=\"type()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </button>\n}\n\n<!-- Content -->\n<ng-template #contentTemplate>\n @if (label() && !icon()) {\n {{ label() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"projectedContentTemplate\"></ng-container>\n }\n</ng-template>\n\n<ng-template #projectedContentTemplate>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:fit-content;display:inline-block}:host:focus-visible{outline:none}:host:has(.tls-button.tls-button--fluid){width:100%}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1230
1203
|
}
|
|
1231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type:
|
|
1204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Button, decorators: [{
|
|
1232
1205
|
type: Component,
|
|
1233
|
-
args: [{ selector: 'tls-
|
|
1234
|
-
|
|
1206
|
+
args: [{ selector: 'tls-button', imports: [NgTemplateOutlet], host: {
|
|
1207
|
+
'[tabindex]': '-1',
|
|
1208
|
+
}, template: "@if (isLink()) {\n <a\n role=\"link\"\n [class]=\"classes()\"\n [attr.href]=\"linkHref()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [attr.aria-disabled]=\"disabled()\"\n (click)=\"onLinkClick($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </a>\n} @else {\n <button\n role=\"button\"\n [class]=\"classes()\"\n [type]=\"type()\"\n [tabindex]=\"tabindex()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n [disabled]=\"disabled()\"\n [attr.aria-disabled]=\"disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"contentTemplate\"></ng-container>\n </button>\n}\n\n<!-- Content -->\n<ng-template #contentTemplate>\n @if (label() && !icon()) {\n {{ label() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"projectedContentTemplate\"></ng-container>\n }\n</ng-template>\n\n<ng-template #projectedContentTemplate>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:fit-content;display:inline-block}:host:focus-visible{outline:none}:host:has(.tls-button.tls-button--fluid){width:100%}\n"] }]
|
|
1209
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
|
|
1210
|
+
|
|
1211
|
+
class ButtonDirective extends ButtonBase {
|
|
1212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1213
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: ButtonDirective, isStandalone: true, selector: "[tlsButton]", usesInheritance: true, ngImport: i0 });
|
|
1214
|
+
}
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonDirective, decorators: [{
|
|
1216
|
+
type: Directive,
|
|
1217
|
+
args: [{
|
|
1218
|
+
selector: '[tlsButton]',
|
|
1219
|
+
}]
|
|
1220
|
+
}] });
|
|
1221
|
+
|
|
1222
|
+
const DEFAULT_TOGGLE_GROUP_CONFIG = {
|
|
1223
|
+
size: 'md',
|
|
1224
|
+
color: 'primary',
|
|
1225
|
+
variant: 'filled',
|
|
1226
|
+
orientation: 'horizontal',
|
|
1227
|
+
multiple: false,
|
|
1228
|
+
unselectable: false,
|
|
1229
|
+
fluid: false,
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
const TOGGLE_GROUP_CONFIG = new InjectionToken('TOGGLE_GROUP_CONFIG', {
|
|
1233
|
+
factory: () => DEFAULT_TOGGLE_GROUP_CONFIG,
|
|
1234
|
+
});
|
|
1235
1235
|
|
|
1236
1236
|
/**
|
|
1237
|
-
*
|
|
1238
|
-
*
|
|
1239
|
-
* library defaults. Register once in the application config:
|
|
1240
|
-
*
|
|
1241
|
-
* ```ts
|
|
1242
|
-
* provideThalassicIcons({
|
|
1243
|
-
* close: '<svg>…</svg>',
|
|
1244
|
-
* 'chevron-down': MyChevronComponent,
|
|
1245
|
-
* })
|
|
1246
|
-
* ```
|
|
1237
|
+
* `value` is always an array — in single mode (`multiple = false`) it holds 0 or
|
|
1238
|
+
* 1 items, read it as `value()[0]`. See {@link SelectionGroup} for the contract.
|
|
1247
1239
|
*/
|
|
1248
|
-
|
|
1249
|
-
|
|
1240
|
+
class ToggleGroup extends SelectionGroup {
|
|
1241
|
+
_config = inject(TOGGLE_GROUP_CONFIG);
|
|
1242
|
+
CLASS_NAME = 'tls-toggle-group';
|
|
1243
|
+
multiple = input(this._config.multiple, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1244
|
+
unselectable = input(this._config.unselectable, { ...(ngDevMode ? { debugName: "unselectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1245
|
+
size = input(this._config.size, /* @ts-ignore */
|
|
1246
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
1247
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
1248
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1249
|
+
variant = input(this._config.variant, /* @ts-ignore */
|
|
1250
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
1251
|
+
orientation = input(this._config.orientation, /* @ts-ignore */
|
|
1252
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
1253
|
+
/** Whether the group stretches to fill its container's width with equal-width options. */
|
|
1254
|
+
fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1255
|
+
optionTemplate = contentChild('option', /* @ts-ignore */
|
|
1256
|
+
...(ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []));
|
|
1257
|
+
classes = computed(() => {
|
|
1258
|
+
const className = this.CLASS_NAME;
|
|
1259
|
+
const array = [
|
|
1260
|
+
className,
|
|
1261
|
+
`${className}--${this.size()}`,
|
|
1262
|
+
`${className}--${this.color()}`,
|
|
1263
|
+
`${className}--${this.variant()}`,
|
|
1264
|
+
`${className}--${this.orientation()}`,
|
|
1265
|
+
];
|
|
1266
|
+
if (this.fluid())
|
|
1267
|
+
array.push(`${className}--fluid`);
|
|
1268
|
+
return array.concat(this.controlClasses());
|
|
1269
|
+
}, /* @ts-ignore */
|
|
1270
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
1271
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1272
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ToggleGroup, isStandalone: true, selector: "tls-toggle-group", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unselectable: { classPropertyName: "unselectable", publicName: "unselectable", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", 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 }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "class": "classes()", "attr.aria-label": "ariaLabel() ?? null", "attr.aria-labelledby": "labelledBy()", "attr.aria-describedby": "describedBy()", "attr.aria-invalid": "invalid() ? 'true' : null" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1250
1273
|
}
|
|
1274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ToggleGroup, decorators: [{
|
|
1275
|
+
type: Component,
|
|
1276
|
+
args: [{ selector: 'tls-toggle-group', imports: [NgTemplateOutlet], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleGroup) }], host: {
|
|
1277
|
+
role: 'group',
|
|
1278
|
+
'[class]': 'classes()',
|
|
1279
|
+
'[attr.aria-label]': 'ariaLabel() ?? null',
|
|
1280
|
+
'[attr.aria-labelledby]': 'labelledBy()',
|
|
1281
|
+
'[attr.aria-describedby]': 'describedBy()',
|
|
1282
|
+
'[attr.aria-invalid]': "invalid() ? 'true' : null",
|
|
1283
|
+
}, template: "@for (option of normalizedOptions(); track option.value; let index = $index) {\n <button\n type=\"button\"\n class=\"tls-toggle-group__option\"\n [class.tls-toggle-group__option--selected]=\"isSelected(option.value)\"\n [class.tls-toggle-group__option--disabled]=\"option.disabled\"\n [attr.aria-pressed]=\"isSelected(option.value)\"\n [disabled]=\"disabled() || option.disabled\"\n (click)=\"select(option)\"\n (blur)=\"touched.set(true)\"\n >\n @if (optionTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"optionContext(option, index)\" />\n } @else {\n {{ option.label }}\n }\n </button>\n}\n" }]
|
|
1284
|
+
}], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], unselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "unselectable", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: ['option', { isSignal: true }] }] } });
|
|
1251
1285
|
|
|
1252
1286
|
const DAYS_IN_WEEK = 7;
|
|
1253
1287
|
/**
|
|
@@ -1408,6 +1442,9 @@ const buildOverlayPositions = (position, offset) => {
|
|
|
1408
1442
|
}));
|
|
1409
1443
|
};
|
|
1410
1444
|
|
|
1445
|
+
/** Escapes RegExp metacharacters so the string matches literally inside a pattern. */
|
|
1446
|
+
const escapeRegularExpression = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
1447
|
+
|
|
1411
1448
|
/** Reorders Sunday-first weekday labels so the one for `weekStartsOn` comes first. */
|
|
1412
1449
|
const rotateWeekDays = (weekDays, weekStartsOn) => [
|
|
1413
1450
|
...weekDays.slice(weekStartsOn),
|
|
@@ -4296,6 +4333,186 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
4296
4333
|
args: [{ selector: 'tls-input-number', imports: [Loader], providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => InputNumber) }], template: "<input\n type=\"number\"\n [name]=\"name()\"\n [class]=\"classes()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value() ?? ''\"\n [attr.min]=\"min() ?? null\"\n [attr.max]=\"max() ?? null\"\n [step]=\"step()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n/>\n@if (pending()) {\n <tls-loader class=\"tls-form-control__spinner\" size=\"xs\" aria-hidden=\"true\" />\n}\n", styles: [":host{--tls-input-number-width: 200px;position:relative;display:inline-block;width:var(--tls-input-number-width)}:host .tls-form-control{width:100%}:host .tls-form-control__spinner{position:absolute;inset-block:0;inset-inline-end:var(--spacing-3);margin-block:auto;pointer-events:none}:host .tls-form-control--pending{padding-inline-end:var(--spacing-8)}:host:has(.tls-form-control--fluid){--tls-input-number-width: 100%}\n"] }]
|
|
4297
4334
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], hideArrows: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideArrows", required: false }] }] } });
|
|
4298
4335
|
|
|
4336
|
+
// Token characters recognised inside a mask pattern; every other character is a
|
|
4337
|
+
// literal rendered verbatim. Each token maps to the RegExp a raw character must
|
|
4338
|
+
// satisfy to fill that slot.
|
|
4339
|
+
const MASK_TOKENS = {
|
|
4340
|
+
'0': /\d/, // digit
|
|
4341
|
+
A: /[a-zA-Z]/, // letter
|
|
4342
|
+
'*': /[a-zA-Z0-9]/, // alphanumeric
|
|
4343
|
+
};
|
|
4344
|
+
|
|
4345
|
+
/**
|
|
4346
|
+
* Formats `rawText` against a token `pattern` (`0` digit, `A` letter, `*`
|
|
4347
|
+
* alphanumeric; every other character is a literal) and computes where the caret
|
|
4348
|
+
* should land. `rawText` may itself already contain literals (the previously
|
|
4349
|
+
* masked value plus the latest keystroke) — literals are absorbed and any
|
|
4350
|
+
* character that does not satisfy the current slot's token is skipped.
|
|
4351
|
+
*
|
|
4352
|
+
* A separator is inserted only once the value character that follows it arrives,
|
|
4353
|
+
* so an in-progress value never shows a dangling separator. The caret is derived
|
|
4354
|
+
* by formatting only the portion of `rawText` before `caretPosition`.
|
|
4355
|
+
*/
|
|
4356
|
+
function applyMask(pattern, rawText, caretPosition) {
|
|
4357
|
+
const full = conform(pattern, rawText);
|
|
4358
|
+
const prefix = conform(pattern, rawText.slice(0, caretPosition));
|
|
4359
|
+
return {
|
|
4360
|
+
maskedValue: full.masked,
|
|
4361
|
+
unmaskedValue: full.unmasked,
|
|
4362
|
+
caret: prefix.masked.length,
|
|
4363
|
+
};
|
|
4364
|
+
}
|
|
4365
|
+
/** Walks `pattern` and `rawText` in parallel, emitting the masked and unmasked strings. */
|
|
4366
|
+
function conform(pattern, rawText) {
|
|
4367
|
+
let masked = '';
|
|
4368
|
+
let unmasked = '';
|
|
4369
|
+
let pendingLiterals = '';
|
|
4370
|
+
let rawIndex = 0;
|
|
4371
|
+
for (const patternChar of pattern) {
|
|
4372
|
+
const token = MASK_TOKENS[patternChar];
|
|
4373
|
+
if (token) {
|
|
4374
|
+
// Skip raw characters that don't satisfy this slot's token.
|
|
4375
|
+
while (rawIndex < rawText.length && !token.test(rawText[rawIndex]))
|
|
4376
|
+
rawIndex++;
|
|
4377
|
+
if (rawIndex >= rawText.length)
|
|
4378
|
+
break;
|
|
4379
|
+
// Flush literals only once a value character actually fills the slot after
|
|
4380
|
+
// them, so a rejected character never leaves a dangling separator behind.
|
|
4381
|
+
masked += pendingLiterals + rawText[rawIndex];
|
|
4382
|
+
pendingLiterals = '';
|
|
4383
|
+
unmasked += rawText[rawIndex];
|
|
4384
|
+
rawIndex++;
|
|
4385
|
+
}
|
|
4386
|
+
else if (rawIndex < rawText.length && rawText[rawIndex] === patternChar) {
|
|
4387
|
+
// Literal the user typed explicitly — absorb it rather than doubling it.
|
|
4388
|
+
masked += pendingLiterals + patternChar;
|
|
4389
|
+
pendingLiterals = '';
|
|
4390
|
+
rawIndex++;
|
|
4391
|
+
}
|
|
4392
|
+
else if (rawIndex < rawText.length) {
|
|
4393
|
+
// Hold the literal until the value character that follows it arrives.
|
|
4394
|
+
pendingLiterals += patternChar;
|
|
4395
|
+
}
|
|
4396
|
+
else {
|
|
4397
|
+
break;
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
return { masked, unmasked };
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
/**
|
|
4404
|
+
* Formats a native `<input>` as the user types against a token pattern
|
|
4405
|
+
* (`0` digit, `A` letter, `*` alphanumeric; any other character is a literal).
|
|
4406
|
+
*
|
|
4407
|
+
* Works both directly on a native `<input>` and on the `tls-input` component: it
|
|
4408
|
+
* operates purely at the DOM level, resolving the native control (the host, or
|
|
4409
|
+
* the `<input>` nested inside it) and re-dispatching a native `input` event so
|
|
4410
|
+
* the host's own value handling captures the masked string. Programmatic
|
|
4411
|
+
* `element.value = …` writes (a form `setValue`, a direct DOM assignment) are
|
|
4412
|
+
* intercepted and masked as well, and the value is reformatted whenever the
|
|
4413
|
+
* pattern changes at runtime. The field value therefore holds the masked text;
|
|
4414
|
+
* the separator-free value is exposed via the `unmasked` signal (through
|
|
4415
|
+
* `exportAs: 'tlsMask'`) and the `unmaskedChange` output.
|
|
4416
|
+
*
|
|
4417
|
+
* Deleting a separator is a no-op (the reformat re-inserts it); delete a value
|
|
4418
|
+
* character instead.
|
|
4419
|
+
*/
|
|
4420
|
+
class MaskDirective {
|
|
4421
|
+
// Injections
|
|
4422
|
+
_elementRef = inject(ElementRef);
|
|
4423
|
+
_renderer = inject(Renderer2);
|
|
4424
|
+
_destroyRef = inject(DestroyRef);
|
|
4425
|
+
// Inputs
|
|
4426
|
+
pattern = input('', { ...(ngDevMode ? { debugName: "pattern" } : /* istanbul ignore next */ {}), alias: 'tlsMask' });
|
|
4427
|
+
// Outputs
|
|
4428
|
+
unmaskedChange = output();
|
|
4429
|
+
// State
|
|
4430
|
+
_masked = signal('', /* @ts-ignore */
|
|
4431
|
+
...(ngDevMode ? [{ debugName: "_masked" }] : /* istanbul ignore next */ []));
|
|
4432
|
+
_unmasked = signal('', /* @ts-ignore */
|
|
4433
|
+
...(ngDevMode ? [{ debugName: "_unmasked" }] : /* istanbul ignore next */ []));
|
|
4434
|
+
masked = this._masked.asReadonly();
|
|
4435
|
+
unmasked = this._unmasked.asReadonly();
|
|
4436
|
+
_input = null;
|
|
4437
|
+
_isFormatting = false;
|
|
4438
|
+
// Constructor
|
|
4439
|
+
constructor() {
|
|
4440
|
+
afterNextRender(() => {
|
|
4441
|
+
const host = this._elementRef.nativeElement;
|
|
4442
|
+
this._input = host instanceof HTMLInputElement ? host : host.querySelector('input');
|
|
4443
|
+
if (!this._input)
|
|
4444
|
+
return;
|
|
4445
|
+
this._renderer.listen(this._input, 'input', () => this._format());
|
|
4446
|
+
this._interceptValueWrites(this._input);
|
|
4447
|
+
// Mask any value already present at mount (e.g. a pre-filled raw value).
|
|
4448
|
+
if (this._input.value)
|
|
4449
|
+
this._format();
|
|
4450
|
+
});
|
|
4451
|
+
// Reformat the current value whenever the pattern changes at runtime.
|
|
4452
|
+
effect(() => {
|
|
4453
|
+
this.pattern();
|
|
4454
|
+
if (this._input)
|
|
4455
|
+
this._format();
|
|
4456
|
+
});
|
|
4457
|
+
}
|
|
4458
|
+
// Private methods
|
|
4459
|
+
_format() {
|
|
4460
|
+
if (this._isFormatting)
|
|
4461
|
+
return;
|
|
4462
|
+
const element = this._input;
|
|
4463
|
+
if (!element)
|
|
4464
|
+
return;
|
|
4465
|
+
const caretPosition = element.selectionStart ?? element.value.length;
|
|
4466
|
+
const { maskedValue, unmaskedValue, caret } = applyMask(this.pattern(), element.value, caretPosition);
|
|
4467
|
+
this._isFormatting = true;
|
|
4468
|
+
if (element.value !== maskedValue) {
|
|
4469
|
+
element.value = maskedValue;
|
|
4470
|
+
element.setSelectionRange(caret, caret);
|
|
4471
|
+
// Re-dispatch so the host's own `input` handler (tls-input's `onInput`, or
|
|
4472
|
+
// a native signal-forms control) captures the masked value. The re-entry
|
|
4473
|
+
// is swallowed by the `_isFormatting` guard above.
|
|
4474
|
+
element.dispatchEvent(new Event('input', { bubbles: true }));
|
|
4475
|
+
}
|
|
4476
|
+
this._masked.set(maskedValue);
|
|
4477
|
+
if (unmaskedValue !== this._unmasked()) {
|
|
4478
|
+
this._unmasked.set(unmaskedValue);
|
|
4479
|
+
this.unmaskedChange.emit(unmaskedValue);
|
|
4480
|
+
}
|
|
4481
|
+
this._isFormatting = false;
|
|
4482
|
+
}
|
|
4483
|
+
/**
|
|
4484
|
+
* Programmatic `element.value = …` writes fire no `input` event, so masking
|
|
4485
|
+
* would otherwise be bypassed. Redefining the instance's `value` property
|
|
4486
|
+
* routes every write through the formatter; the instance override is removed
|
|
4487
|
+
* on destroy, falling back to the prototype accessor.
|
|
4488
|
+
*/
|
|
4489
|
+
_interceptValueWrites(element) {
|
|
4490
|
+
const descriptor = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value');
|
|
4491
|
+
if (!descriptor)
|
|
4492
|
+
return;
|
|
4493
|
+
const setter = descriptor.set;
|
|
4494
|
+
if (!setter)
|
|
4495
|
+
return;
|
|
4496
|
+
Object.defineProperty(element, 'value', {
|
|
4497
|
+
...descriptor,
|
|
4498
|
+
set: (value) => {
|
|
4499
|
+
setter.call(element, value);
|
|
4500
|
+
this._format();
|
|
4501
|
+
},
|
|
4502
|
+
});
|
|
4503
|
+
this._destroyRef.onDestroy(() => Reflect.deleteProperty(element, 'value'));
|
|
4504
|
+
}
|
|
4505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4506
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: MaskDirective, isStandalone: true, selector: "[tlsMask]", inputs: { pattern: { classPropertyName: "pattern", publicName: "tlsMask", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { unmaskedChange: "unmaskedChange" }, exportAs: ["tlsMask"], ngImport: i0 });
|
|
4507
|
+
}
|
|
4508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: MaskDirective, decorators: [{
|
|
4509
|
+
type: Directive,
|
|
4510
|
+
args: [{
|
|
4511
|
+
selector: '[tlsMask]',
|
|
4512
|
+
exportAs: 'tlsMask',
|
|
4513
|
+
}]
|
|
4514
|
+
}], ctorParameters: () => [], propDecorators: { pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "tlsMask", required: false }] }], unmaskedChange: [{ type: i0.Output, args: ["unmaskedChange"] }] } });
|
|
4515
|
+
|
|
4299
4516
|
const DEFAULT_PASSWORD_CONFIG = {
|
|
4300
4517
|
size: 'md',
|
|
4301
4518
|
placeholder: '',
|
|
@@ -4318,6 +4535,8 @@ class Password extends ValueFormControl {
|
|
|
4318
4535
|
size = input(this._config.size, /* @ts-ignore */
|
|
4319
4536
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
4320
4537
|
fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4538
|
+
startIconTemplate = contentChild('startIcon', /* @ts-ignore */
|
|
4539
|
+
...(ngDevMode ? [{ debugName: "startIconTemplate" }] : /* istanbul ignore next */ []));
|
|
4321
4540
|
showIconTemplate = contentChild('showIcon', /* @ts-ignore */
|
|
4322
4541
|
...(ngDevMode ? [{ debugName: "showIconTemplate" }] : /* istanbul ignore next */ []));
|
|
4323
4542
|
hideIconTemplate = contentChild('hideIcon', /* @ts-ignore */
|
|
@@ -4335,14 +4554,14 @@ class Password extends ValueFormControl {
|
|
|
4335
4554
|
this.visible.update(prev => !prev);
|
|
4336
4555
|
}
|
|
4337
4556
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Password, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4338
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Password, isStandalone: true, selector: "tls-password", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", visible: "visibleChange" }, host: { classAttribute: "tls-password" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], queries: [{ propertyName: "showIconTemplate", first: true, predicate: ["showIcon"], descendants: true, isSignal: true }, { propertyName: "hideIconTemplate", first: true, predicate: ["hideIcon"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"visible() ? 'Hide password' : 'Show password'\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Show</span>\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Hide</span>\n }\n </span>\n </button>\n</tls-form-control-group>\n", dependencies: [{ kind: "component", type: FormControlGroup, selector: "tls-form-control-group", inputs: ["size", "fluid"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
|
|
4557
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Password, isStandalone: true, selector: "tls-password", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", visible: "visibleChange" }, host: { classAttribute: "tls-password" }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], queries: [{ propertyName: "startIconTemplate", first: true, predicate: ["startIcon"], descendants: true, isSignal: true }, { propertyName: "showIconTemplate", first: true, predicate: ["showIcon"], descendants: true, isSignal: true }, { propertyName: "hideIconTemplate", first: true, predicate: ["hideIcon"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n @if (startIconTemplate(); as icon) {\n <span class=\"tls-form-control-addon\" aria-hidden=\"true\">\n <ng-container [ngTemplateOutlet]=\"icon\" />\n </span>\n }\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"visible() ? 'Hide password' : 'Show password'\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Show</span>\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Hide</span>\n }\n </span>\n </button>\n</tls-form-control-group>\n", dependencies: [{ kind: "component", type: FormControlGroup, selector: "tls-form-control-group", inputs: ["size", "fluid"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Loader, selector: "tls-loader", inputs: ["size", "width", "widthRatio", "ariaLabel"] }] });
|
|
4339
4558
|
}
|
|
4340
4559
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Password, decorators: [{
|
|
4341
4560
|
type: Component,
|
|
4342
4561
|
args: [{ selector: 'tls-password', imports: [FormControlGroup, NgTemplateOutlet, Loader], host: {
|
|
4343
4562
|
class: 'tls-password',
|
|
4344
|
-
}, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"visible() ? 'Hide password' : 'Show password'\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Show</span>\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Hide</span>\n }\n </span>\n </button>\n</tls-form-control-group>\n" }]
|
|
4345
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], showIconTemplate: [{ type: i0.ContentChild, args: ['showIcon', { isSignal: true }] }], hideIconTemplate: [{ type: i0.ContentChild, args: ['hideIcon', { isSignal: true }] }] } });
|
|
4563
|
+
}, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], template: "<tls-form-control-group [size]=\"size()\" [fluid]=\"fluid()\">\n @if (startIconTemplate(); as icon) {\n <span class=\"tls-form-control-addon\" aria-hidden=\"true\">\n <ng-container [ngTemplateOutlet]=\"icon\" />\n </span>\n }\n <input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"effectiveInputId()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-busy]=\"pending() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (pending()) {\n <tls-loader class=\"tls-form-control-addon\" size=\"xs\" aria-hidden=\"true\" />\n }\n <button\n class=\"tls-password-toggle tls-form-control-addon\"\n type=\"button\"\n [attr.aria-label]=\"visible() ? 'Hide password' : 'Show password'\"\n [attr.aria-pressed]=\"visible()\"\n (click)=\"toggle()\"\n >\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n @if (showIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Show</span>\n }\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n @if (hideIconTemplate(); as icon) {\n <ng-container [ngTemplateOutlet]=\"icon\" />\n } @else {\n <span class=\"text-label-md\">Hide</span>\n }\n </span>\n </button>\n</tls-form-control-group>\n" }]
|
|
4564
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], startIconTemplate: [{ type: i0.ContentChild, args: ['startIcon', { isSignal: true }] }], showIconTemplate: [{ type: i0.ContentChild, args: ['showIcon', { isSignal: true }] }], hideIconTemplate: [{ type: i0.ContentChild, args: ['hideIcon', { isSignal: true }] }] } });
|
|
4346
4565
|
|
|
4347
4566
|
// Matches strings containing only numeric digits (0–9).
|
|
4348
4567
|
// Ensures the entire input consists exclusively of numbers.
|
|
@@ -4935,6 +5154,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
4935
5154
|
}, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => ToggleButton) }], template: "@if (stackedLabels()) {\n <span class=\"tls-toggle-button__labels\">\n <span\n class=\"tls-toggle-button__label\"\n [class.tls-toggle-button__label--hidden]=\"checked()\"\n >{{ label() }}</span>\n <span\n class=\"tls-toggle-button__label\"\n [class.tls-toggle-button__label--hidden]=\"!checked()\"\n >{{ checkedLabel() }}</span>\n </span>\n} @else if (displayedLabel()) {\n {{ displayedLabel() }}\n} @else {\n <ng-content></ng-content>\n}\n" }]
|
|
4936
5155
|
}], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], checkedLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedLabel", required: false }] }], staticWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "staticWidth", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], checkedColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedColor", required: false }] }], checkedVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedVariant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
|
|
4937
5156
|
|
|
5157
|
+
const DEFAULT_MARK_CONFIG = {
|
|
5158
|
+
color: 'warning',
|
|
5159
|
+
};
|
|
5160
|
+
|
|
5161
|
+
const MARK_CONFIG = new InjectionToken('MARK_CONFIG', {
|
|
5162
|
+
factory: () => DEFAULT_MARK_CONFIG,
|
|
5163
|
+
});
|
|
5164
|
+
|
|
5165
|
+
class Mark {
|
|
5166
|
+
// Injections
|
|
5167
|
+
_config = inject(MARK_CONFIG);
|
|
5168
|
+
// Inputs
|
|
5169
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
5170
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
5171
|
+
// Computed
|
|
5172
|
+
hostClasses = computed(() => {
|
|
5173
|
+
const className = 'tls-mark';
|
|
5174
|
+
return [className, `${className}--${this.color()}`];
|
|
5175
|
+
}, /* @ts-ignore */
|
|
5176
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
5177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Mark, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5178
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.5", type: Mark, isStandalone: true, selector: "mark[tlsMark]", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0 });
|
|
5179
|
+
}
|
|
5180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Mark, decorators: [{
|
|
5181
|
+
type: Directive,
|
|
5182
|
+
args: [{
|
|
5183
|
+
selector: 'mark[tlsMark]',
|
|
5184
|
+
host: {
|
|
5185
|
+
'[class]': 'hostClasses()',
|
|
5186
|
+
},
|
|
5187
|
+
}]
|
|
5188
|
+
}], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
5189
|
+
|
|
5190
|
+
const DEFAULT_HIGHLIGHT_CONFIG = {
|
|
5191
|
+
color: 'warning',
|
|
5192
|
+
caseSensitive: false,
|
|
5193
|
+
};
|
|
5194
|
+
|
|
5195
|
+
const HIGHLIGHT_CONFIG = new InjectionToken('HIGHLIGHT_CONFIG', {
|
|
5196
|
+
factory: () => DEFAULT_HIGHLIGHT_CONFIG,
|
|
5197
|
+
});
|
|
5198
|
+
|
|
5199
|
+
class Highlight {
|
|
5200
|
+
// Injections
|
|
5201
|
+
_config = inject(HIGHLIGHT_CONFIG);
|
|
5202
|
+
// Inputs
|
|
5203
|
+
text = input.required(/* @ts-ignore */
|
|
5204
|
+
...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
5205
|
+
query = input(undefined, /* @ts-ignore */
|
|
5206
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
5207
|
+
color = input(this._config.color, /* @ts-ignore */
|
|
5208
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
5209
|
+
caseSensitive = input(this._config.caseSensitive, { ...(ngDevMode ? { debugName: "caseSensitive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
5210
|
+
// Computed
|
|
5211
|
+
_queries = computed(() => {
|
|
5212
|
+
const query = this.query();
|
|
5213
|
+
if (query === undefined)
|
|
5214
|
+
return [];
|
|
5215
|
+
const queries = Array.isArray(query) ? query : [query];
|
|
5216
|
+
// Longest term first, so an overlapping shorter term cannot shadow a longer
|
|
5217
|
+
// match in the regex alternation (e.g. 'ab' wins over 'a').
|
|
5218
|
+
return queries.filter(item => item.length > 0).sort((left, right) => right.length - left.length);
|
|
5219
|
+
}, /* @ts-ignore */
|
|
5220
|
+
...(ngDevMode ? [{ debugName: "_queries" }] : /* istanbul ignore next */ []));
|
|
5221
|
+
segments = computed(() => {
|
|
5222
|
+
const text = this.text();
|
|
5223
|
+
const queries = this._queries();
|
|
5224
|
+
if (text.length === 0 || queries.length === 0)
|
|
5225
|
+
return [{ text, matched: false }];
|
|
5226
|
+
const flags = this.caseSensitive() ? 'g' : 'gi';
|
|
5227
|
+
const pattern = new RegExp(queries.map(escapeRegularExpression).join('|'), flags);
|
|
5228
|
+
const segments = [];
|
|
5229
|
+
let lastIndex = 0;
|
|
5230
|
+
for (const match of text.matchAll(pattern)) {
|
|
5231
|
+
if (match.index > lastIndex) {
|
|
5232
|
+
segments.push({ text: text.slice(lastIndex, match.index), matched: false });
|
|
5233
|
+
}
|
|
5234
|
+
segments.push({ text: match[0], matched: true });
|
|
5235
|
+
lastIndex = match.index + match[0].length;
|
|
5236
|
+
}
|
|
5237
|
+
if (lastIndex < text.length)
|
|
5238
|
+
segments.push({ text: text.slice(lastIndex), matched: false });
|
|
5239
|
+
return segments;
|
|
5240
|
+
}, /* @ts-ignore */
|
|
5241
|
+
...(ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []));
|
|
5242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Highlight, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: Highlight, isStandalone: true, selector: "tls-highlight", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, caseSensitive: { classPropertyName: "caseSensitive", publicName: "caseSensitive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- Every segment is wrapped in an element (mark or span) so Angular's whitespace\ncollapsing cannot inject spaces between adjacent segments of a split word. -->\n@for (segment of segments(); track $index) {\n @if (segment.matched) {\n <mark tlsMark [color]=\"color()\">{{ segment.text }}</mark>\n } @else {\n <span>{{ segment.text }}</span>\n }\n}\n", dependencies: [{ kind: "directive", type: Mark, selector: "mark[tlsMark]", inputs: ["color"] }] });
|
|
5244
|
+
}
|
|
5245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Highlight, decorators: [{
|
|
5246
|
+
type: Component,
|
|
5247
|
+
args: [{ selector: 'tls-highlight', imports: [Mark], template: "<!-- Every segment is wrapped in an element (mark or span) so Angular's whitespace\ncollapsing cannot inject spaces between adjacent segments of a split word. -->\n@for (segment of segments(); track $index) {\n @if (segment.matched) {\n <mark tlsMark [color]=\"color()\">{{ segment.text }}</mark>\n } @else {\n <span>{{ segment.text }}</span>\n }\n}\n" }]
|
|
5248
|
+
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], caseSensitive: [{ type: i0.Input, args: [{ isSignal: true, alias: "caseSensitive", required: false }] }] } });
|
|
5249
|
+
|
|
4938
5250
|
const DEFAULT_IMAGE_COMPARE_CONFIG = {
|
|
4939
5251
|
orientation: 'horizontal',
|
|
4940
5252
|
position: 50,
|
|
@@ -6377,34 +6689,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
6377
6689
|
], host: {}, template: "<table\n cdk-table\n [class]=\"classes()\"\n [dataSource]=\"dataSource\"\n [trackBy]=\"resolvedTrackBy()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledby() ?? null\"\n>\n @for (column of effectiveColumnDefinitions(); track column.key) {\n <ng-container [cdkColumnDef]=\"column.key\">\n <!-- Header cell -->\n <th cdk-header-cell *cdkHeaderCellDef class=\"tls-table__header-cell\" [style.width]=\"column.width + 'px'\">\n {{ column.header }}\n </th>\n\n <!-- Row cell -->\n <td\n cdk-cell\n *cdkCellDef=\"let data; let index = index; let count = count; let first = first; let last = last; let even = even; let odd = odd\"\n class=\"tls-table__cell\"\n [style.text-align]=\"column.alignment\"\n >\n @if (column.template) {\n <ng-container\n [ngTemplateOutlet]=\"column.template\"\n [ngTemplateOutletContext]=\"{\n $implicit: data[column.key],\n data: data,\n index: index,\n count: count,\n first: first,\n last: last,\n even: even,\n odd: odd\n }\"\n />\n } @else {\n {{ data[column.key] }}\n }\n </td>\n </ng-container>\n }\n\n <tr cdk-header-row *cdkHeaderRowDef=\"columns()\" class=\"tls-table__header-row\"></tr>\n\n <tr *cdkRowDef=\"let row; columns: columns()\" cdk-row class=\"tls-table__row\"></tr>\n</table>\n", styles: [":host{display:block}\n"] }]
|
|
6378
6690
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], columnDefinitions: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefinitions", required: false }] }], hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], tableColumns: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableColumn), { isSignal: true }] }] } });
|
|
6379
6691
|
|
|
6692
|
+
// A declarative content holder: the host element itself is never rendered. `tls-tabs`
|
|
6693
|
+
// reads the captured content/header templates and renders them inside its own
|
|
6694
|
+
// `ngTabPanel`/`ngTabContent` structure, which enables lazy panel rendering.
|
|
6380
6695
|
class Tab {
|
|
6381
|
-
_tabPanel = inject(TabPanel);
|
|
6382
|
-
headerTemplateRef = contentChild('tabHeader', /* @ts-ignore */
|
|
6383
|
-
...(ngDevMode ? [{ debugName: "headerTemplateRef" }] : /* istanbul ignore next */ []));
|
|
6384
6696
|
// Inputs
|
|
6385
|
-
value =
|
|
6697
|
+
value = input.required(/* @ts-ignore */
|
|
6698
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
6386
6699
|
label = input.required(/* @ts-ignore */
|
|
6387
6700
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
6388
6701
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
array.push(`${className}--active`);
|
|
6394
|
-
if (this.disabled())
|
|
6395
|
-
array.push(`${className}--disabled`);
|
|
6396
|
-
return array;
|
|
6397
|
-
}, /* @ts-ignore */
|
|
6398
|
-
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
6702
|
+
// State
|
|
6703
|
+
headerTemplateRef = contentChild('tabHeader', /* @ts-ignore */
|
|
6704
|
+
...(ngDevMode ? [{ debugName: "headerTemplateRef" }] : /* istanbul ignore next */ []));
|
|
6705
|
+
contentTemplateRef = viewChild.required('tabContent');
|
|
6399
6706
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tab, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6400
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Tab, isStandalone: true, selector: "tls-tab", inputs: {
|
|
6707
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.5", type: Tab, isStandalone: true, selector: "tls-tab", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "headerTemplateRef", first: true, predicate: ["tabHeader"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentTemplateRef", first: true, predicate: ["tabContent"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #tabContent>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
6401
6708
|
}
|
|
6402
6709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tab, decorators: [{
|
|
6403
6710
|
type: Component,
|
|
6404
|
-
args: [{ selector: 'tls-tab',
|
|
6405
|
-
|
|
6406
|
-
}, template: "<ng-content></ng-content>\n" }]
|
|
6407
|
-
}], propDecorators: { headerTemplateRef: [{ type: i0.ContentChild, args: ['tabHeader', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
6711
|
+
args: [{ selector: 'tls-tab', template: "<ng-template #tabContent>\n <ng-content></ng-content>\n</ng-template>\n" }]
|
|
6712
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplateRef: [{ type: i0.ContentChild, args: ['tabHeader', { isSignal: true }] }], contentTemplateRef: [{ type: i0.ViewChild, args: ['tabContent', { isSignal: true }] }] } });
|
|
6408
6713
|
|
|
6409
6714
|
const DEFAULT_TABS_CONFIG = {
|
|
6410
6715
|
variant: 'flat',
|
|
@@ -6452,13 +6757,13 @@ class Tabs {
|
|
|
6452
6757
|
});
|
|
6453
6758
|
}
|
|
6454
6759
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6455
|
-
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 }, 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 class=\"tls-tabs-header\"\n ngTabList\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-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\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 <ng-
|
|
6760
|
+
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 }, 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 class=\"tls-tabs-header\"\n ngTabList\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-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\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"] }] });
|
|
6456
6761
|
}
|
|
6457
6762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Tabs, decorators: [{
|
|
6458
6763
|
type: Component,
|
|
6459
|
-
args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, NgTemplateOutlet], hostDirectives: [Tabs$1], host: {
|
|
6764
|
+
args: [{ selector: 'tls-tabs', imports: [TabList, Tab$1, TabPanel, TabContent, NgTemplateOutlet], hostDirectives: [Tabs$1], host: {
|
|
6460
6765
|
'[class]': 'hostClasses()',
|
|
6461
|
-
}, template: "<ul\n class=\"tls-tabs-header\"\n ngTabList\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-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\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 <ng-
|
|
6766
|
+
}, template: "<ul\n class=\"tls-tabs-header\"\n ngTabList\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-tabs-header__item\"\n [class.tls-tabs-header__item--active]=\"ariaTab.selected()\"\n [class.tls-tabs-header__item--disabled]=\"tab.disabled()\"\n >\n <button\n #ariaTab=\"ngTab\"\n ngTab\n class=\"tls-tabs-header__item-button\"\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" }]
|
|
6462
6767
|
}], ctorParameters: () => [], propDecorators: { tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Tab), { isSignal: true }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }] } });
|
|
6463
6768
|
|
|
6464
6769
|
const DEFAULT_TABS_QUERY_SYNC_CONFIG = {
|
|
@@ -7241,6 +7546,10 @@ const provideThalassicUIConfig = (config) => {
|
|
|
7241
7546
|
provide: FORM_ITEM_CONFIG,
|
|
7242
7547
|
useValue: deepMerge(DEFAULT_FORM_ITEM_CONFIG, config.components.formItem),
|
|
7243
7548
|
},
|
|
7549
|
+
{
|
|
7550
|
+
provide: HIGHLIGHT_CONFIG,
|
|
7551
|
+
useValue: deepMerge(DEFAULT_HIGHLIGHT_CONFIG, config.components.highlight),
|
|
7552
|
+
},
|
|
7244
7553
|
{ provide: ICON_CONFIG, useValue: deepMerge(DEFAULT_ICON_CONFIG, config.components.icon) },
|
|
7245
7554
|
{
|
|
7246
7555
|
provide: IMAGE_COMPARE_CONFIG,
|
|
@@ -7251,6 +7560,7 @@ const provideThalassicUIConfig = (config) => {
|
|
|
7251
7560
|
provide: LOADER_CONFIG,
|
|
7252
7561
|
useValue: deepMerge(DEFAULT_LOADER_CONFIG, config.components.loader),
|
|
7253
7562
|
},
|
|
7563
|
+
{ provide: MARK_CONFIG, useValue: deepMerge(DEFAULT_MARK_CONFIG, config.components.mark) },
|
|
7254
7564
|
{ provide: MENU_CONFIG, useValue: deepMerge(DEFAULT_MENU_CONFIG, config.components.menu) },
|
|
7255
7565
|
{
|
|
7256
7566
|
provide: MULTI_SELECT_CONFIG,
|
|
@@ -7331,5 +7641,5 @@ const provideThalassicUIConfig = (config) => {
|
|
|
7331
7641
|
* Generated bundle index. Do not edit.
|
|
7332
7642
|
*/
|
|
7333
7643
|
|
|
7334
|
-
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, Alert, Autocomplete, BADGE_CONFIG, BUTTON_CONFIG, Badge, 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_ALERT_CONFIG, DEFAULT_AUTOCOMPLETE_CONFIG, DEFAULT_BADGE_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_ICONS, DEFAULT_ICON_CONFIG, DEFAULT_IMAGE_COMPARE_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_INPUT_NUMBER_CONFIG, DEFAULT_KBD_CONFIG, DEFAULT_LOADER_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_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, FORM_CONTROL_CONFIG, FORM_CONTROL_GROUP_CONFIG, FORM_ITEM_CONFIG, FileInput, FormControl, FormControlAddon, FormControlGroup, FormItem, 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, MENU_CONFIG, MULTI_SELECT_CONFIG, 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, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDirective, ValueFormControl, provideThalassicIcons, provideThalassicUIConfig };
|
|
7644
|
+
export { ALERT_CONFIG, AUTOCOMPLETE_CONFIG, 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_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_TEXTAREA_CONFIG, DEFAULT_TOAST_CONFIG, DEFAULT_TOGGLE_BUTTON_CONFIG, DEFAULT_TOGGLE_GROUP_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DRAWER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, Drawer, DrawerRef, DrawerService, FILE_INPUT_CONFIG, 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, TEXTAREA_CONFIG, TOAST_CONFIG, TOGGLE_BUTTON_CONFIG, TOGGLE_GROUP_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TabsQuerySyncDirective, Textarea, Toast, ToastOutlet, ToastService, ToggleButton, ToggleGroup, TooltipDirective, ValueFormControl, applyMask, provideThalassicIcons, provideThalassicUIConfig };
|
|
7335
7645
|
//# sourceMappingURL=thalassic-ui.mjs.map
|