@thalassic/ui 0.7.0 → 0.8.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.
@@ -1,15 +1,18 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, input, booleanAttribute, computed, Component, Directive, ElementRef, Injectable, DestroyRef, viewChild, contentChildren, afterNextRender, forwardRef, model, contentChild, viewChildren, output, Renderer2, signal, makeEnvironmentProviders } from '@angular/core';
2
+ import { InjectionToken, inject, input, booleanAttribute, computed, Component, Directive, ElementRef, Injectable, DestroyRef, viewChild, contentChildren, afterNextRender, forwardRef, model, contentChild, ViewContainerRef, signal, output, effect, viewChildren, TemplateRef, Renderer2, makeEnvironmentProviders } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import { RouterLink } from '@angular/router';
5
- import { takeUntilDestroyed, rxResource } from '@angular/core/rxjs-interop';
5
+ import { takeUntilDestroyed, rxResource, toObservable } from '@angular/core/rxjs-interop';
6
6
  import { ThemeService } from '@thalassic/core';
7
7
  import { Chart as Chart$1, BarController, BarElement, CategoryScale, LinearScale, BubbleController, PointElement, DoughnutController, ArcElement, LineController, LineElement, PieController, PolarAreaController, RadialLinearScale, RadarController, ScatterController } from 'chart.js';
8
+ import { CdkDialogContainer, DialogRef, Dialog as Dialog$1 } from '@angular/cdk/dialog';
9
+ import { CdkPortalOutlet, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
10
+ import { format, startOfMonth, endOfMonth, eachDayOfInterval, endOfWeek, startOfWeek, subMonths, addMonths, isSameDay, isSameMonth, isToday, setMonth, subYears, addYears, getYear, getMonth, getHours, getMinutes, startOfDay, setHours, setMinutes, setYear } from 'date-fns';
11
+ import { Overlay } from '@angular/cdk/overlay';
8
12
  import { HttpClient } from '@angular/common/http';
9
13
  import { DomSanitizer } from '@angular/platform-browser';
10
14
  import { throwError, map, shareReplay } from 'rxjs';
11
- import { ComponentPortal } from '@angular/cdk/portal';
12
- import { Overlay } from '@angular/cdk/overlay';
15
+ import { CdkTable, CdkHeaderCell, CdkCell, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderRow, CdkHeaderRowDef, CdkRow, CdkRowDef } from '@angular/cdk/table';
13
16
 
14
17
  const DEFAULT_ALERT_CONFIG = {
15
18
  color: 'primary',
@@ -258,7 +261,7 @@ class Chart {
258
261
  _chartService = inject(ChartService);
259
262
  _destroyRef = inject(DestroyRef);
260
263
  _themeService = inject(ThemeService, { optional: true });
261
- canvasRef = viewChild('canvasRef', ...(ngDevMode ? [{ debugName: "canvasRef" }] : []));
264
+ canvasRef = viewChild('canvas', ...(ngDevMode ? [{ debugName: "canvasRef" }] : []));
262
265
  chartElements = contentChildren(CHART_ELEMENT, ...(ngDevMode ? [{ debugName: "chartElements" }] : []));
263
266
  _chart = null;
264
267
  labels = input([], ...(ngDevMode ? [{ debugName: "labels" }] : []));
@@ -317,14 +320,14 @@ class Chart {
317
320
  this._chart.destroy();
318
321
  }
319
322
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Chart, deps: [], target: i0.ɵɵFactoryTarget.Component });
320
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: Chart, isStandalone: true, selector: "tls-chart", inputs: { labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [ChartService], queries: [{ propertyName: "chartElements", predicate: CHART_ELEMENT, isSignal: true }], viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvasRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<canvas #canvasRef></canvas>\n", styles: [":host{position:relative;display:block}\n"] });
323
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: Chart, isStandalone: true, selector: "tls-chart", inputs: { labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, providers: [ChartService], queries: [{ propertyName: "chartElements", predicate: CHART_ELEMENT, isSignal: true }], viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: "<canvas #canvas></canvas>\n", styles: [":host{position:relative;display:block}\n"] });
321
324
  }
322
325
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Chart, decorators: [{
323
326
  type: Component,
324
327
  args: [{ selector: 'tls-chart', imports: [], host: {
325
328
  '[class]': 'hostClasses()',
326
- }, providers: [ChartService], template: "<canvas #canvasRef></canvas>\n", styles: [":host{position:relative;display:block}\n"] }]
327
- }], ctorParameters: () => [], propDecorators: { canvasRef: [{ type: i0.ViewChild, args: ['canvasRef', { isSignal: true }] }], chartElements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CHART_ELEMENT), { isSignal: true }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }] } });
329
+ }, providers: [ChartService], template: "<canvas #canvas></canvas>\n", styles: [":host{position:relative;display:block}\n"] }]
330
+ }], ctorParameters: () => [], propDecorators: { canvasRef: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], chartElements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CHART_ELEMENT), { isSignal: true }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }] } });
328
331
 
329
332
  class BarChart extends ChartElement {
330
333
  type = 'bar';
@@ -470,6 +473,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
470
473
  }]
471
474
  }], ctorParameters: () => [] });
472
475
 
476
+ const DEFAULT_DIALOG_CONFIG = {
477
+ size: 'md',
478
+ closeable: true,
479
+ backdropClose: true,
480
+ };
481
+
482
+ const DIALOG_CONFIG = new InjectionToken('DIALOG_CONFIG', {
483
+ factory: () => DEFAULT_DIALOG_CONFIG,
484
+ });
485
+
486
+ class Dialog extends CdkDialogContainer {
487
+ _tlsConfig = inject(DIALOG_CONFIG);
488
+ _dialogRef = inject(DialogRef);
489
+ hostClasses = ['tls-dialog', `tls-dialog--${this._tlsConfig.size}`];
490
+ get config() {
491
+ return this._tlsConfig;
492
+ }
493
+ close() {
494
+ this._dialogRef.close();
495
+ }
496
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Dialog, deps: null, target: i0.ɵɵFactoryTarget.Component });
497
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: Dialog, isStandalone: true, selector: "tls-dialog", host: { properties: { "class": "hostClasses" } }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button class=\"tls-dialog__close\" type=\"button\" aria-label=\"Close dialog\" (click)=\"close()\">\n <svg viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L9 9M9 1L1 9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n </button>\n}\n", dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
498
+ }
499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Dialog, decorators: [{
500
+ type: Component,
501
+ args: [{ selector: 'tls-dialog', imports: [CdkPortalOutlet], host: { '[class]': 'hostClasses' }, template: "<ng-template cdkPortalOutlet />\n@if (config.closeable) {\n <button class=\"tls-dialog__close\" type=\"button\" aria-label=\"Close dialog\" (click)=\"close()\">\n <svg viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L9 9M9 1L1 9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n </button>\n}\n" }]
502
+ }] });
503
+
504
+ class DialogService {
505
+ _dialog = inject(Dialog$1);
506
+ _config = inject(DIALOG_CONFIG);
507
+ open(component, config) {
508
+ const resolvedConfig = {
509
+ size: config?.size ?? this._config.size,
510
+ closeable: config?.closeable ?? this._config.closeable,
511
+ backdropClose: config?.backdropClose ?? this._config.backdropClose,
512
+ };
513
+ return this._dialog.open(component, {
514
+ container: {
515
+ type: Dialog,
516
+ providers: () => [{ provide: DIALOG_CONFIG, useValue: resolvedConfig }],
517
+ },
518
+ hasBackdrop: true,
519
+ backdropClass: 'tls-dialog-backdrop',
520
+ disableClose: !resolvedConfig.backdropClose,
521
+ role: config?.role ?? 'dialog',
522
+ ariaLabel: config?.ariaLabel ?? null,
523
+ ariaLabelledBy: config?.ariaLabelledBy ?? null,
524
+ ariaDescribedBy: config?.ariaDescribedBy ?? null,
525
+ data: config?.data,
526
+ });
527
+ }
528
+ closeAll() {
529
+ this._dialog.closeAll();
530
+ }
531
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
532
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DialogService, providedIn: 'root' });
533
+ }
534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DialogService, decorators: [{
535
+ type: Injectable,
536
+ args: [{ providedIn: 'root' }]
537
+ }] });
538
+
473
539
  const DEFAULT_DIVIDER_CONFIG = {
474
540
  orientation: 'horizontal',
475
541
  position: 'center',
@@ -702,6 +768,560 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
702
768
  }, template: "<input\n type=\"checkbox\"\n class=\"tls-checkbox-input\"\n [id]=\"inputId()\"\n [name]=\"name()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown.space)=\"onKeyboardToggle($event)\"\n (keydown.enter)=\"onKeyboardToggle($event)\"\n/>\n<div class=\"tls-checkbox-icon\">\n @if (indeterminate()) {\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"20px\"\n viewBox=\"0 -960 960 960\"\n width=\"20px\"\n fill=\"currentColor\"\n >\n <path d=\"M288-444v-72h384v72H288Z\" />\n </svg>\n } @else {\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"20px\"\n viewBox=\"0 -960 960 960\"\n width=\"20px\"\n fill=\"currentColor\"\n >\n <path d=\"M400-301 240-461l51-51 109 109 269-269 51 51-320 320Z\" />\n </svg>\n }\n</div>\n" }]
703
769
  }], propDecorators: { indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }, { type: i0.Output, args: ["indeterminateChange"] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
704
770
 
771
+ const OVERLAY_POSITION_MAP = {
772
+ top: {
773
+ originX: 'center',
774
+ originY: 'top',
775
+ overlayX: 'center',
776
+ overlayY: 'bottom',
777
+ offsetX: 0,
778
+ offsetY: -1,
779
+ },
780
+ right: {
781
+ originX: 'end',
782
+ originY: 'center',
783
+ overlayX: 'start',
784
+ overlayY: 'center',
785
+ offsetX: 1,
786
+ offsetY: 0,
787
+ },
788
+ bottom: {
789
+ originX: 'center',
790
+ originY: 'bottom',
791
+ overlayX: 'center',
792
+ overlayY: 'top',
793
+ offsetX: 1,
794
+ offsetY: 1,
795
+ },
796
+ left: {
797
+ originX: 'start',
798
+ originY: 'center',
799
+ overlayX: 'end',
800
+ overlayY: 'center',
801
+ offsetX: -1,
802
+ offsetY: 0,
803
+ },
804
+ 'top-start': {
805
+ originX: 'start',
806
+ originY: 'top',
807
+ overlayX: 'start',
808
+ overlayY: 'bottom',
809
+ offsetX: 0,
810
+ offsetY: -1,
811
+ },
812
+ 'top-end': {
813
+ originX: 'end',
814
+ originY: 'top',
815
+ overlayX: 'end',
816
+ overlayY: 'bottom',
817
+ offsetX: 0,
818
+ offsetY: -1,
819
+ },
820
+ 'right-start': {
821
+ originX: 'end',
822
+ originY: 'top',
823
+ overlayX: 'start',
824
+ overlayY: 'top',
825
+ offsetX: 1,
826
+ offsetY: 0,
827
+ },
828
+ 'right-end': {
829
+ originX: 'end',
830
+ originY: 'bottom',
831
+ overlayX: 'start',
832
+ overlayY: 'bottom',
833
+ offsetX: 1,
834
+ offsetY: 0,
835
+ },
836
+ 'bottom-start': {
837
+ originX: 'start',
838
+ originY: 'bottom',
839
+ overlayX: 'start',
840
+ overlayY: 'top',
841
+ offsetX: 0,
842
+ offsetY: 1,
843
+ },
844
+ 'bottom-end': {
845
+ originX: 'end',
846
+ originY: 'bottom',
847
+ overlayX: 'end',
848
+ overlayY: 'top',
849
+ offsetX: 0,
850
+ offsetY: 1,
851
+ },
852
+ 'left-start': {
853
+ originX: 'start',
854
+ originY: 'top',
855
+ overlayX: 'end',
856
+ overlayY: 'top',
857
+ offsetX: -1,
858
+ offsetY: 0,
859
+ },
860
+ 'left-end': {
861
+ originX: 'start',
862
+ originY: 'bottom',
863
+ overlayX: 'end',
864
+ overlayY: 'bottom',
865
+ offsetX: -1,
866
+ offsetY: 0,
867
+ },
868
+ 'top-left': {
869
+ originX: 'start',
870
+ originY: 'top',
871
+ overlayX: 'end',
872
+ overlayY: 'bottom',
873
+ offsetX: -1,
874
+ offsetY: -1,
875
+ },
876
+ 'top-right': {
877
+ originX: 'end',
878
+ originY: 'top',
879
+ overlayX: 'start',
880
+ overlayY: 'bottom',
881
+ offsetX: 1,
882
+ offsetY: -1,
883
+ },
884
+ 'bottom-left': {
885
+ originX: 'start',
886
+ originY: 'bottom',
887
+ overlayX: 'end',
888
+ overlayY: 'top',
889
+ offsetX: -1,
890
+ offsetY: 1,
891
+ },
892
+ 'bottom-right': {
893
+ originX: 'end',
894
+ originY: 'bottom',
895
+ overlayX: 'start',
896
+ overlayY: 'top',
897
+ offsetX: 1,
898
+ offsetY: 1,
899
+ },
900
+ };
901
+
902
+ const buildOverlayPositions = (position, offset) => {
903
+ const preferred = OVERLAY_POSITION_MAP[position];
904
+ const rest = Object.values(OVERLAY_POSITION_MAP).filter(p => p !== preferred);
905
+ const positions = [preferred, ...rest];
906
+ return positions.map(position => ({
907
+ ...position,
908
+ offsetX: Math.sign(position.offsetX ?? 0) * offset.x,
909
+ offsetY: Math.sign(position.offsetY ?? 0) * offset.y,
910
+ }));
911
+ };
912
+
913
+ const isPlainObject = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
914
+
915
+ const mergeConfig = (defaults, overrides) => {
916
+ if (!overrides)
917
+ return defaults;
918
+ const result = { ...defaults };
919
+ for (const key in overrides) {
920
+ const defaultValue = defaults[key];
921
+ const overrideValue = overrides[key];
922
+ result[key] = (isPlainObject(defaultValue) && isPlainObject(overrideValue)
923
+ ? mergeConfig(defaultValue, overrideValue)
924
+ : overrideValue);
925
+ }
926
+ return result;
927
+ };
928
+
929
+ const DEFAULT_POPOVER_CONFIG = {
930
+ position: 'bottom',
931
+ offset: { x: 0, y: 4 },
932
+ };
933
+
934
+ const POPOVER_CONFIG = new InjectionToken('POPOVER_CONFIG', {
935
+ factory: () => DEFAULT_POPOVER_CONFIG,
936
+ });
937
+
938
+ class Popover {
939
+ static _counter = 0;
940
+ _overlay = inject(Overlay);
941
+ _viewContainerRef = inject(ViewContainerRef);
942
+ _config = inject(POPOVER_CONFIG);
943
+ _destroyRef = inject(DestroyRef);
944
+ _templateRef = viewChild.required('content');
945
+ _overlayRef = null;
946
+ _isOpen = signal(false, ...(ngDevMode ? [{ debugName: "_isOpen" }] : []));
947
+ id = `tls-popover-${++Popover._counter}`;
948
+ isOpen = this._isOpen.asReadonly();
949
+ position = input(this._config.position, ...(ngDevMode ? [{ debugName: "position" }] : []));
950
+ offset = input(this._config.offset, ...(ngDevMode ? [{ debugName: "offset" }] : []));
951
+ ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
952
+ _positions = computed(() => buildOverlayPositions(this.position(), this.offset()), ...(ngDevMode ? [{ debugName: "_positions" }] : []));
953
+ // Public methods
954
+ open(trigger) {
955
+ if (this._overlayRef)
956
+ return;
957
+ const origin = trigger instanceof MouseEvent ? trigger.currentTarget : trigger;
958
+ const positionStrategy = this._overlay
959
+ .position()
960
+ .flexibleConnectedTo(origin)
961
+ .withPositions(this._positions());
962
+ this._overlayRef = this._overlay.create({
963
+ positionStrategy,
964
+ scrollStrategy: this._overlay.scrollStrategies.reposition(),
965
+ hasBackdrop: true,
966
+ backdropClass: 'cdk-overlay-transparent-backdrop',
967
+ });
968
+ this._overlayRef
969
+ .backdropClick()
970
+ .pipe(takeUntilDestroyed(this._destroyRef))
971
+ .subscribe(() => this.close());
972
+ this._overlayRef.attach(new TemplatePortal(this._templateRef(), this._viewContainerRef));
973
+ this._isOpen.set(true);
974
+ }
975
+ close() {
976
+ if (!this._overlayRef)
977
+ return;
978
+ this._overlayRef.dispose();
979
+ this._overlayRef = null;
980
+ this._isOpen.set(false);
981
+ }
982
+ toggle(trigger) {
983
+ if (this._overlayRef) {
984
+ this.close();
985
+ }
986
+ else {
987
+ this.open(trigger);
988
+ }
989
+ }
990
+ // Lifecycle
991
+ ngOnDestroy() {
992
+ if (this._overlayRef)
993
+ this._overlayRef.dispose();
994
+ }
995
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Popover, deps: [], target: i0.ɵɵFactoryTarget.Component });
996
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: Popover, isStandalone: true, selector: "tls-popover", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_templateRef", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
997
+ <ng-template #content>
998
+ <div
999
+ class="tls-popover"
1000
+ [id]="id"
1001
+ role="dialog"
1002
+ aria-modal="false"
1003
+ [attr.aria-label]="ariaLabel() ?? null"
1004
+ >
1005
+ <ng-content></ng-content>
1006
+ </div>
1007
+ </ng-template>
1008
+ `, isInline: true });
1009
+ }
1010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Popover, decorators: [{
1011
+ type: Component,
1012
+ args: [{
1013
+ selector: 'tls-popover',
1014
+ template: `
1015
+ <ng-template #content>
1016
+ <div
1017
+ class="tls-popover"
1018
+ [id]="id"
1019
+ role="dialog"
1020
+ aria-modal="false"
1021
+ [attr.aria-label]="ariaLabel() ?? null"
1022
+ >
1023
+ <ng-content></ng-content>
1024
+ </div>
1025
+ </ng-template>
1026
+ `,
1027
+ }]
1028
+ }], propDecorators: { _templateRef: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
1029
+
1030
+ class Calendar {
1031
+ // Inputs
1032
+ viewDate = input.required(...(ngDevMode ? [{ debugName: "viewDate" }] : []));
1033
+ selectedDate = input.required(...(ngDevMode ? [{ debugName: "selectedDate" }] : []));
1034
+ weekStartsOn = input.required(...(ngDevMode ? [{ debugName: "weekStartsOn" }] : []));
1035
+ weekDays = input.required(...(ngDevMode ? [{ debugName: "weekDays" }] : []));
1036
+ // Outputs
1037
+ daySelect = output();
1038
+ viewDateChange = output();
1039
+ navigateUp = output();
1040
+ // Computed
1041
+ displayedWeekDays = computed(() => {
1042
+ const startDay = this.weekStartsOn();
1043
+ const days = this.weekDays();
1044
+ return [...days.slice(startDay), ...days.slice(0, startDay)];
1045
+ }, ...(ngDevMode ? [{ debugName: "displayedWeekDays" }] : []));
1046
+ headerLabel = computed(() => format(this.viewDate(), 'MMMM yyyy'), ...(ngDevMode ? [{ debugName: "headerLabel" }] : []));
1047
+ days = computed(() => {
1048
+ const monthStart = startOfMonth(this.viewDate());
1049
+ const monthEnd = endOfMonth(this.viewDate());
1050
+ const weekStartsOn = this.weekStartsOn();
1051
+ return eachDayOfInterval({
1052
+ start: startOfWeek(monthStart, { weekStartsOn }),
1053
+ end: endOfWeek(monthEnd, { weekStartsOn }),
1054
+ });
1055
+ }, ...(ngDevMode ? [{ debugName: "days" }] : []));
1056
+ // Protected methods
1057
+ prevMonth() {
1058
+ this.viewDateChange.emit(subMonths(this.viewDate(), 1));
1059
+ }
1060
+ nextMonth() {
1061
+ this.viewDateChange.emit(addMonths(this.viewDate(), 1));
1062
+ }
1063
+ getDayLabel(day) {
1064
+ return format(day, 'd');
1065
+ }
1066
+ isSelectedDay(day) {
1067
+ const selected = this.selectedDate();
1068
+ return selected !== null && isSameDay(day, selected);
1069
+ }
1070
+ isInCurrentMonth(day) {
1071
+ return isSameMonth(day, this.viewDate());
1072
+ }
1073
+ isTodayDay(day) {
1074
+ return isToday(day);
1075
+ }
1076
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Calendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
1077
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: Calendar, isStandalone: true, selector: "tls-calendar", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: true, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { daySelect: "daySelect", viewDateChange: "viewDateChange", navigateUp: "navigateUp" }, host: { classAttribute: "tls-calendar" }, ngImport: i0, template: "<div class=\"tls-calendar__header\">\n <button type=\"button\" class=\"tls-calendar__nav\" (click)=\"prevMonth()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M7 1L1 7L7 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <button type=\"button\" class=\"tls-calendar__header-button\" (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-calendar__nav\" (click)=\"nextMonth()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L1 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n\n<div class=\"tls-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.getTime()) {\n <button\n type=\"button\"\n class=\"tls-calendar__day\"\n [class.tls-calendar__day--outside]=\"!isInCurrentMonth(day)\"\n [class.tls-calendar__day--today]=\"isTodayDay(day)\"\n [class.tls-calendar__day--selected]=\"isSelectedDay(day)\"\n (click)=\"daySelect.emit(day)\"\n >\n {{ getDayLabel(day) }}\n </button>\n }\n</div>\n" });
1078
+ }
1079
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Calendar, decorators: [{
1080
+ type: Component,
1081
+ args: [{ selector: 'tls-calendar', imports: [], host: { class: 'tls-calendar' }, template: "<div class=\"tls-calendar__header\">\n <button type=\"button\" class=\"tls-calendar__nav\" (click)=\"prevMonth()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M7 1L1 7L7 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <button type=\"button\" class=\"tls-calendar__header-button\" (click)=\"navigateUp.emit()\">\n {{ headerLabel() }}\n </button>\n <button type=\"button\" class=\"tls-calendar__nav\" (click)=\"nextMonth()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L1 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n\n<div class=\"tls-calendar__grid\">\n @for (day of displayedWeekDays(); track day) {\n <span class=\"tls-calendar__weekday\">{{ day }}</span>\n }\n @for (day of days(); track day.getTime()) {\n <button\n type=\"button\"\n class=\"tls-calendar__day\"\n [class.tls-calendar__day--outside]=\"!isInCurrentMonth(day)\"\n [class.tls-calendar__day--today]=\"isTodayDay(day)\"\n [class.tls-calendar__day--selected]=\"isSelectedDay(day)\"\n (click)=\"daySelect.emit(day)\"\n >\n {{ getDayLabel(day) }}\n </button>\n }\n</div>\n" }]
1082
+ }], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: true }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: true }] }], daySelect: [{ type: i0.Output, args: ["daySelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], navigateUp: [{ type: i0.Output, args: ["navigateUp"] }] } });
1083
+
1084
+ const DEFAULT_DATE_TIME_PICKER_CONFIG = {
1085
+ mode: 'calendar',
1086
+ inline: false,
1087
+ placeholder: '',
1088
+ size: 'md',
1089
+ yearsPerPage: 12,
1090
+ weekStartsOn: 0,
1091
+ weekDays: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
1092
+ };
1093
+
1094
+ const DATE_TIME_PICKER_CONFIG = new InjectionToken('DATE_TIME_PICKER_CONFIG', { factory: () => DEFAULT_DATE_TIME_PICKER_CONFIG });
1095
+
1096
+ const MONTH_INDEXES = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
1097
+ class MonthPicker {
1098
+ // Inputs
1099
+ viewDate = input.required(...(ngDevMode ? [{ debugName: "viewDate" }] : []));
1100
+ selectedDate = input.required(...(ngDevMode ? [{ debugName: "selectedDate" }] : []));
1101
+ // Outputs
1102
+ monthSelect = output();
1103
+ viewDateChange = output();
1104
+ navigateUp = output();
1105
+ // Computed
1106
+ months = MONTH_INDEXES;
1107
+ yearLabel = computed(() => format(this.viewDate(), 'yyyy'), ...(ngDevMode ? [{ debugName: "yearLabel" }] : []));
1108
+ // Protected methods
1109
+ getMonthLabel(monthIndex) {
1110
+ return format(setMonth(new Date(2000, 0, 1), monthIndex), 'MMM');
1111
+ }
1112
+ prevYear() {
1113
+ this.viewDateChange.emit(subYears(this.viewDate(), 1));
1114
+ }
1115
+ nextYear() {
1116
+ this.viewDateChange.emit(addYears(this.viewDate(), 1));
1117
+ }
1118
+ selectMonth(monthIndex) {
1119
+ this.monthSelect.emit(setMonth(this.viewDate(), monthIndex));
1120
+ }
1121
+ isSelectedMonth(monthIndex) {
1122
+ const selected = this.selectedDate();
1123
+ return (selected !== null &&
1124
+ getYear(selected) === getYear(this.viewDate()) &&
1125
+ getMonth(selected) === monthIndex);
1126
+ }
1127
+ isCurrentMonth(monthIndex) {
1128
+ return isSameMonth(new Date(), setMonth(this.viewDate(), monthIndex));
1129
+ }
1130
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MonthPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
1131
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: MonthPicker, isStandalone: true, selector: "tls-month-picker", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { monthSelect: "monthSelect", viewDateChange: "viewDateChange", navigateUp: "navigateUp" }, host: { classAttribute: "tls-month-picker" }, ngImport: i0, template: "<div class=\"tls-month-picker__header\">\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"prevYear()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M7 1L1 7L7 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <button type=\"button\" class=\"tls-month-picker__header-button\" (click)=\"navigateUp.emit()\">\n {{ yearLabel() }}\n </button>\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"nextYear()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L1 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n<div class=\"tls-month-picker__grid\">\n @for (month of months; track month) {\n <button\n type=\"button\"\n class=\"tls-month-picker__cell\"\n [class.tls-month-picker__cell--selected]=\"isSelectedMonth(month)\"\n [class.tls-month-picker__cell--current]=\"isCurrentMonth(month)\"\n (click)=\"selectMonth(month)\"\n >\n {{ getMonthLabel(month) }}\n </button>\n }\n</div>\n" });
1132
+ }
1133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: MonthPicker, decorators: [{
1134
+ type: Component,
1135
+ args: [{ selector: 'tls-month-picker', imports: [], host: { class: 'tls-month-picker' }, template: "<div class=\"tls-month-picker__header\">\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"prevYear()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M7 1L1 7L7 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <button type=\"button\" class=\"tls-month-picker__header-button\" (click)=\"navigateUp.emit()\">\n {{ yearLabel() }}\n </button>\n <button type=\"button\" class=\"tls-month-picker__nav\" (click)=\"nextYear()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L1 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n<div class=\"tls-month-picker__grid\">\n @for (month of months; track month) {\n <button\n type=\"button\"\n class=\"tls-month-picker__cell\"\n [class.tls-month-picker__cell--selected]=\"isSelectedMonth(month)\"\n [class.tls-month-picker__cell--current]=\"isCurrentMonth(month)\"\n (click)=\"selectMonth(month)\"\n >\n {{ getMonthLabel(month) }}\n </button>\n }\n</div>\n" }]
1136
+ }], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], monthSelect: [{ type: i0.Output, args: ["monthSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }], navigateUp: [{ type: i0.Output, args: ["navigateUp"] }] } });
1137
+
1138
+ class TimePicker {
1139
+ // Inputs
1140
+ value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
1141
+ // Outputs
1142
+ timeChange = output();
1143
+ // Computed
1144
+ hours = computed(() => {
1145
+ const date = this.value();
1146
+ return date ? getHours(date) : 0;
1147
+ }, ...(ngDevMode ? [{ debugName: "hours" }] : []));
1148
+ minutes = computed(() => {
1149
+ const date = this.value();
1150
+ return date ? getMinutes(date) : 0;
1151
+ }, ...(ngDevMode ? [{ debugName: "minutes" }] : []));
1152
+ hoursLabel = computed(() => String(this.hours()).padStart(2, '0'), ...(ngDevMode ? [{ debugName: "hoursLabel" }] : []));
1153
+ minutesLabel = computed(() => String(this.minutes()).padStart(2, '0'), ...(ngDevMode ? [{ debugName: "minutesLabel" }] : []));
1154
+ // Private accessors
1155
+ get _baseDate() {
1156
+ return this.value() ?? startOfDay(new Date());
1157
+ }
1158
+ // Protected methods
1159
+ incrementHours() {
1160
+ this.timeChange.emit(setHours(this._baseDate, (this.hours() + 1) % 24));
1161
+ }
1162
+ decrementHours() {
1163
+ this.timeChange.emit(setHours(this._baseDate, (this.hours() + 23) % 24));
1164
+ }
1165
+ incrementMinutes() {
1166
+ this.timeChange.emit(setMinutes(this._baseDate, (this.minutes() + 1) % 60));
1167
+ }
1168
+ decrementMinutes() {
1169
+ this.timeChange.emit(setMinutes(this._baseDate, (this.minutes() + 59) % 60));
1170
+ }
1171
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TimePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
1172
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.1", type: TimePicker, isStandalone: true, selector: "tls-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { timeChange: "timeChange" }, host: { classAttribute: "tls-time-picker" }, ngImport: i0, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 7L7 1L13 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L13 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 7L7 1L13 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L13 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n" });
1173
+ }
1174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TimePicker, decorators: [{
1175
+ type: Component,
1176
+ args: [{ selector: 'tls-time-picker', imports: [], host: { class: 'tls-time-picker' }, template: "<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementHours()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 7L7 1L13 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <span class=\"tls-time-picker__value\">{{ hoursLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementHours()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L13 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n\n<span class=\"tls-time-picker__separator\">:</span>\n\n<div class=\"tls-time-picker__column\">\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"incrementMinutes()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 7L7 1L13 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <span class=\"tls-time-picker__value\">{{ minutesLabel() }}</span>\n <button type=\"button\" class=\"tls-time-picker__arrow\" (click)=\"decrementMinutes()\">\n <svg viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L13 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n" }]
1177
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], timeChange: [{ type: i0.Output, args: ["timeChange"] }] } });
1178
+
1179
+ class YearPicker {
1180
+ // Inputs
1181
+ viewDate = input.required(...(ngDevMode ? [{ debugName: "viewDate" }] : []));
1182
+ selectedDate = input.required(...(ngDevMode ? [{ debugName: "selectedDate" }] : []));
1183
+ yearsPerPage = input.required(...(ngDevMode ? [{ debugName: "yearsPerPage" }] : []));
1184
+ // Outputs
1185
+ yearSelect = output();
1186
+ viewDateChange = output();
1187
+ // Computed
1188
+ years = computed(() => {
1189
+ const year = getYear(this.viewDate());
1190
+ const perPage = this.yearsPerPage();
1191
+ const start = Math.floor(year / perPage) * perPage;
1192
+ return Array.from({ length: perPage }, (_, index) => start + index);
1193
+ }, ...(ngDevMode ? [{ debugName: "years" }] : []));
1194
+ rangeLabel = computed(() => {
1195
+ const yearsArray = this.years();
1196
+ return `${yearsArray[0]} – ${yearsArray[yearsArray.length - 1]}`;
1197
+ }, ...(ngDevMode ? [{ debugName: "rangeLabel" }] : []));
1198
+ // Protected methods
1199
+ prevPage() {
1200
+ this.viewDateChange.emit(subYears(this.viewDate(), this.yearsPerPage()));
1201
+ }
1202
+ nextPage() {
1203
+ this.viewDateChange.emit(addYears(this.viewDate(), this.yearsPerPage()));
1204
+ }
1205
+ selectYear(year) {
1206
+ this.yearSelect.emit(setYear(this.viewDate(), year));
1207
+ }
1208
+ isSelectedYear(year) {
1209
+ const selected = this.selectedDate();
1210
+ return selected !== null && getYear(selected) === year;
1211
+ }
1212
+ isCurrentYear(year) {
1213
+ return getYear(new Date()) === year;
1214
+ }
1215
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: YearPicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
1216
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: YearPicker, isStandalone: true, selector: "tls-year-picker", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: true, transformFunction: null }, yearsPerPage: { classPropertyName: "yearsPerPage", publicName: "yearsPerPage", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { yearSelect: "yearSelect", viewDateChange: "viewDateChange" }, host: { classAttribute: "tls-year-picker" }, ngImport: i0, template: "<div class=\"tls-year-picker__header\">\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"prevPage()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M7 1L1 7L7 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <span class=\"tls-year-picker__range\">{{ rangeLabel() }}</span>\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"nextPage()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L1 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n<div class=\"tls-year-picker__grid\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"tls-year-picker__cell\"\n [class.tls-year-picker__cell--selected]=\"isSelectedYear(year)\"\n [class.tls-year-picker__cell--current]=\"isCurrentYear(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n</div>\n" });
1217
+ }
1218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: YearPicker, decorators: [{
1219
+ type: Component,
1220
+ args: [{ selector: 'tls-year-picker', imports: [], host: { class: 'tls-year-picker' }, template: "<div class=\"tls-year-picker__header\">\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"prevPage()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M7 1L1 7L7 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n <span class=\"tls-year-picker__range\">{{ rangeLabel() }}</span>\n <button type=\"button\" class=\"tls-year-picker__nav\" (click)=\"nextPage()\">\n <svg viewBox=\"0 0 8 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M1 1L7 7L1 13\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </button>\n</div>\n<div class=\"tls-year-picker__grid\">\n @for (year of years(); track year) {\n <button\n type=\"button\"\n class=\"tls-year-picker__cell\"\n [class.tls-year-picker__cell--selected]=\"isSelectedYear(year)\"\n [class.tls-year-picker__cell--current]=\"isCurrentYear(year)\"\n (click)=\"selectYear(year)\"\n >\n {{ year }}\n </button>\n }\n</div>\n" }]
1221
+ }], propDecorators: { viewDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewDate", required: true }] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: true }] }], yearsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "yearsPerPage", required: true }] }], yearSelect: [{ type: i0.Output, args: ["yearSelect"] }], viewDateChange: [{ type: i0.Output, args: ["viewDateChange"] }] } });
1222
+
1223
+ class DateTimePicker extends ValueFormControl {
1224
+ // Injections
1225
+ config = inject(DATE_TIME_PICKER_CONFIG);
1226
+ // View children
1227
+ popoverComponent = viewChild('popoverRef', ...(ngDevMode ? [{ debugName: "popoverComponent" }] : []));
1228
+ // Inputs
1229
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
1230
+ mode = input(this.config.mode, ...(ngDevMode ? [{ debugName: "mode" }] : []));
1231
+ inline = input(this.config.inline, { ...(ngDevMode ? { debugName: "inline" } : {}), transform: booleanAttribute });
1232
+ placeholder = input(this.config.placeholder, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
1233
+ size = input(this.config.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
1234
+ fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : {}), transform: booleanAttribute });
1235
+ yearsPerPage = input(this.config.yearsPerPage, ...(ngDevMode ? [{ debugName: "yearsPerPage" }] : []));
1236
+ weekStartsOn = input(this.config.weekStartsOn, ...(ngDevMode ? [{ debugName: "weekStartsOn" }] : []));
1237
+ weekDays = input(this.config.weekDays, ...(ngDevMode ? [{ debugName: "weekDays" }] : []));
1238
+ // State
1239
+ viewDate = signal(new Date(), ...(ngDevMode ? [{ debugName: "viewDate" }] : []));
1240
+ activeView = signal(this.config.mode, ...(ngDevMode ? [{ debugName: "activeView" }] : []));
1241
+ // Computed
1242
+ hostClasses = computed(() => {
1243
+ const classes = ['tls-date-time-picker'];
1244
+ if (!this.inline()) {
1245
+ classes.push(`${this.CLASS_NAME}--${this.size()}`);
1246
+ if (this.fluid())
1247
+ classes.push(`${this.CLASS_NAME}--fluid`);
1248
+ return classes.concat(this.controlClasses());
1249
+ }
1250
+ return classes;
1251
+ }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
1252
+ triggerLabel = computed(() => {
1253
+ const value = this.value();
1254
+ if (!value)
1255
+ return this.placeholder();
1256
+ const mode = this.mode();
1257
+ if (mode === 'calendar')
1258
+ return format(value, 'MMM d, yyyy');
1259
+ if (mode === 'month-picker')
1260
+ return format(value, 'MMMM yyyy');
1261
+ if (mode === 'year-picker')
1262
+ return format(value, 'yyyy');
1263
+ if (mode === 'time-picker')
1264
+ return format(value, 'HH:mm');
1265
+ return format(value, 'MMM d, yyyy HH:mm');
1266
+ }, ...(ngDevMode ? [{ debugName: "triggerLabel" }] : []));
1267
+ constructor() {
1268
+ super();
1269
+ effect(() => {
1270
+ this.activeView.set(this.mode());
1271
+ });
1272
+ }
1273
+ // Protected methods
1274
+ onViewDateChange(date) {
1275
+ this.viewDate.set(date);
1276
+ }
1277
+ onDaySelect(date) {
1278
+ if (this.notInteractive())
1279
+ return;
1280
+ this.value.set(date);
1281
+ if (this.mode() === 'calendar') {
1282
+ this.popoverComponent()?.close();
1283
+ }
1284
+ }
1285
+ onMonthSelect(date) {
1286
+ this.viewDate.set(date);
1287
+ if (this.notInteractive())
1288
+ return;
1289
+ if (this.mode() === 'month-picker') {
1290
+ this.value.set(date);
1291
+ this.popoverComponent()?.close();
1292
+ }
1293
+ else if (this.mode() === 'date-time') {
1294
+ this.activeView.set('date-time');
1295
+ }
1296
+ else {
1297
+ this.activeView.set('calendar');
1298
+ }
1299
+ }
1300
+ onYearSelect(date) {
1301
+ this.viewDate.set(date);
1302
+ if (this.notInteractive())
1303
+ return;
1304
+ if (this.mode() === 'year-picker') {
1305
+ this.value.set(date);
1306
+ this.popoverComponent()?.close();
1307
+ }
1308
+ else {
1309
+ this.activeView.set('month-picker');
1310
+ }
1311
+ }
1312
+ onTimeChange(date) {
1313
+ if (this.notInteractive())
1314
+ return;
1315
+ this.value.set(date);
1316
+ }
1317
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DateTimePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
1318
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: DateTimePicker, isStandalone: true, selector: "tls-date-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", 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 }, yearsPerPage: { classPropertyName: "yearsPerPage", publicName: "yearsPerPage", isSignal: true, isRequired: false, transformFunction: null }, weekStartsOn: { classPropertyName: "weekStartsOn", publicName: "weekStartsOn", isSignal: true, isRequired: false, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => DateTimePicker) }], viewQueries: [{ propertyName: "popoverComponent", first: true, predicate: ["popoverRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #pickerTemplate>\n @switch (activeView()) {\n @case ('calendar') {\n <tls-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n }\n @case ('month-picker') {\n <tls-month-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n (monthSelect)=\"onMonthSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('year-picker')\"\n />\n }\n @case ('year-picker') {\n <tls-year-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [yearsPerPage]=\"yearsPerPage()\"\n (yearSelect)=\"onYearSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n />\n }\n @case ('time-picker') {\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n @case ('date-time') {\n <tls-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n }\n</ng-template>\n\n@if (inline()) {\n <div\n class=\"tls-date-time-picker__panel\"\n [class.tls-date-time-picker__panel--disabled]=\"disabled()\"\n [class.tls-date-time-picker__panel--readonly]=\"readonly()\"\n [class.tls-date-time-picker__panel--invalid]=\"invalid()\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </div>\n} @else {\n <button\n type=\"button\"\n class=\"tls-date-time-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"popoverRef.toggle($event)\"\n (blur)=\"touched.set(true)\"\n >\n <span [class.tls-form-control__placeholder]=\"!value()\">{{ triggerLabel() }}</span>\n </button>\n <tls-popover #popoverRef position=\"bottom-start\">\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </tls-popover>\n}\n", dependencies: [{ kind: "component", type: Calendar, selector: "tls-calendar", inputs: ["viewDate", "selectedDate", "weekStartsOn", "weekDays"], outputs: ["daySelect", "viewDateChange", "navigateUp"] }, { kind: "component", type: MonthPicker, selector: "tls-month-picker", inputs: ["viewDate", "selectedDate"], outputs: ["monthSelect", "viewDateChange", "navigateUp"] }, { kind: "component", type: YearPicker, selector: "tls-year-picker", inputs: ["viewDate", "selectedDate", "yearsPerPage"], outputs: ["yearSelect", "viewDateChange"] }, { kind: "component", type: TimePicker, selector: "tls-time-picker", inputs: ["value"], outputs: ["timeChange"] }, { kind: "component", type: Popover, selector: "tls-popover", inputs: ["position", "offset", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
1319
+ }
1320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: DateTimePicker, decorators: [{
1321
+ type: Component,
1322
+ args: [{ selector: 'tls-date-time-picker', imports: [Calendar, MonthPicker, YearPicker, TimePicker, Popover, NgTemplateOutlet], host: { '[class]': 'hostClasses()' }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => DateTimePicker) }], template: "<ng-template #pickerTemplate>\n @switch (activeView()) {\n @case ('calendar') {\n <tls-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n }\n @case ('month-picker') {\n <tls-month-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n (monthSelect)=\"onMonthSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('year-picker')\"\n />\n }\n @case ('year-picker') {\n <tls-year-picker\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [yearsPerPage]=\"yearsPerPage()\"\n (yearSelect)=\"onYearSelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n />\n }\n @case ('time-picker') {\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n @case ('date-time') {\n <tls-calendar\n [viewDate]=\"viewDate()\"\n [selectedDate]=\"value()\"\n [weekStartsOn]=\"weekStartsOn()\"\n [weekDays]=\"weekDays()\"\n (daySelect)=\"onDaySelect($event)\"\n (viewDateChange)=\"onViewDateChange($event)\"\n (navigateUp)=\"activeView.set('month-picker')\"\n />\n <tls-time-picker\n [value]=\"value()\"\n (timeChange)=\"onTimeChange($event)\"\n />\n }\n }\n</ng-template>\n\n@if (inline()) {\n <div\n class=\"tls-date-time-picker__panel\"\n [class.tls-date-time-picker__panel--disabled]=\"disabled()\"\n [class.tls-date-time-picker__panel--readonly]=\"readonly()\"\n [class.tls-date-time-picker__panel--invalid]=\"invalid()\"\n >\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </div>\n} @else {\n <button\n type=\"button\"\n class=\"tls-date-time-picker__trigger\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"popoverRef.isOpen()\"\n [disabled]=\"disabled()\"\n (click)=\"popoverRef.toggle($event)\"\n (blur)=\"touched.set(true)\"\n >\n <span [class.tls-form-control__placeholder]=\"!value()\">{{ triggerLabel() }}</span>\n </button>\n <tls-popover #popoverRef position=\"bottom-start\">\n <ng-container [ngTemplateOutlet]=\"pickerTemplate\" />\n </tls-popover>\n}\n" }]
1323
+ }], ctorParameters: () => [], propDecorators: { popoverComponent: [{ type: i0.ViewChild, args: ['popoverRef', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], 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 }] }], yearsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "yearsPerPage", required: false }] }], weekStartsOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartsOn", required: false }] }], weekDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekDays", required: false }] }] } });
1324
+
705
1325
  const DEFAULT_INPUT_CONFIG = {
706
1326
  size: 'md',
707
1327
  type: 'text',
@@ -724,11 +1344,10 @@ class Input extends ValueFormControl {
724
1344
  size = input(this._config.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
725
1345
  fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : {}), transform: booleanAttribute });
726
1346
  classes = computed(() => {
727
- const className = 'tls-form-control';
728
- const array = [className];
729
- array.push(`${className}--${this.size()}`);
1347
+ const array = [this.CLASS_NAME];
1348
+ array.push(`${this.CLASS_NAME}--${this.size()}`);
730
1349
  if (this.fluid())
731
- array.push(`${className}--fluid`);
1350
+ array.push(`${this.CLASS_NAME}--fluid`);
732
1351
  return array.concat(this.controlClasses());
733
1352
  }, ...(ngDevMode ? [{ debugName: "classes" }] : []));
734
1353
  // Protected methods
@@ -789,11 +1408,11 @@ class Password extends ValueFormControl {
789
1408
  size = input(this._config.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
790
1409
  fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : {}), transform: booleanAttribute });
791
1410
  hostClasses = computed(() => {
792
- const className = 'tls-form-control-group';
793
- const array = [className];
794
- array.push(`${className}--${this.size()}`);
1411
+ const groupClass = 'tls-form-control-group';
1412
+ const array = ['tls-password', groupClass];
1413
+ array.push(`${groupClass}--${this.size()}`);
795
1414
  if (this.fluid())
796
- array.push(`${className}--fluid`);
1415
+ array.push(`${groupClass}--fluid`);
797
1416
  return array;
798
1417
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
799
1418
  type = computed(() => (this.visible() ? 'text' : 'password'), ...(ngDevMode ? [{ debugName: "type" }] : []));
@@ -808,13 +1427,13 @@ class Password extends ValueFormControl {
808
1427
  this.visible.update(prev => !prev);
809
1428
  }
810
1429
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Password, deps: null, target: i0.ɵɵFactoryTarget.Component });
811
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.1", 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 }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], usesInheritance: true, ngImport: i0, template: "<input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"inputId()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n/>\n<button class=\"tls-password-toggle tls-form-control-addon\" type=\"button\" (click)=\"toggle()\">\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n <span class=\"text-label-md\">Show</span>\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n <span class=\"text-label-md\">Hide</span>\n </span>\n</button>\n", styles: [":host{display:inline-flex}:host .tls-password-toggle{display:grid;align-items:center}:host .tls-password-toggle__item{grid-area:1/1;text-align:center}:host .tls-password-toggle__item--hidden{visibility:hidden}\n"] });
1430
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.1", 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 }, inputId: { classPropertyName: "inputId", publicName: "inputId", 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: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], usesInheritance: true, ngImport: i0, template: "<input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"inputId()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n/>\n<button class=\"tls-password-toggle tls-form-control-addon\" type=\"button\" (click)=\"toggle()\">\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n <span class=\"text-label-md\">Show</span>\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n <span class=\"text-label-md\">Hide</span>\n </span>\n</button>\n" });
812
1431
  }
813
1432
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Password, decorators: [{
814
1433
  type: Component,
815
1434
  args: [{ selector: 'tls-password', host: {
816
1435
  '[class]': 'hostClasses()',
817
- }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], template: "<input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"inputId()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n/>\n<button class=\"tls-password-toggle tls-form-control-addon\" type=\"button\" (click)=\"toggle()\">\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n <span class=\"text-label-md\">Show</span>\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n <span class=\"text-label-md\">Hide</span>\n </span>\n</button>\n", styles: [":host{display:inline-flex}:host .tls-password-toggle{display:grid;align-items:center}:host .tls-password-toggle__item{grid-area:1/1;text-align:center}:host .tls-password-toggle__item--hidden{visibility:hidden}\n"] }]
1436
+ }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Password) }], template: "<input\n [type]=\"type()\"\n [name]=\"name()\"\n [class]=\"controlClasses()\"\n [attr.id]=\"inputId()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n/>\n<button class=\"tls-password-toggle tls-form-control-addon\" type=\"button\" (click)=\"toggle()\">\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"visible()\">\n <span class=\"text-label-md\">Show</span>\n </span>\n <span class=\"tls-password-toggle__item\" [class.tls-password-toggle__item--hidden]=\"!visible()\">\n <span class=\"text-label-md\">Hide</span>\n </span>\n</button>\n" }]
818
1437
  }], 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"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], 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 }] }] } });
819
1438
 
820
1439
  // Matches strings containing only numeric digits (0–9).
@@ -979,18 +1598,225 @@ class RadioButton extends ValueFormControl {
979
1598
  check() {
980
1599
  if (this.notInteractive())
981
1600
  return;
982
- this.value.set(this.radioValue());
1601
+ this.value.set(this.radioValue());
1602
+ }
1603
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: RadioButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
1604
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.1", type: RadioButton, isStandalone: true, selector: "tls-radio-button", inputs: { radioValue: { classPropertyName: "radioValue", publicName: "radioValue", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()", "tabindex": "-1" } }, usesInheritance: true, ngImport: i0, template: "<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [id]=\"inputId()\"\n [name]=\"name()\"\n [tabindex]=\"tabindex()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n [value]=\"radioValue()\"\n (change)=\"check()\"\n (blur)=\"touched.set(true)\"\n/>\n<div class=\"tls-radio-button-circle\"></div>\n" });
1605
+ }
1606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: RadioButton, decorators: [{
1607
+ type: Component,
1608
+ args: [{ selector: 'tls-radio-button', imports: [], host: {
1609
+ '[class]': 'hostClasses()',
1610
+ '[tabindex]': '-1',
1611
+ }, template: "<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [id]=\"inputId()\"\n [name]=\"name()\"\n [tabindex]=\"tabindex()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n [value]=\"radioValue()\"\n (change)=\"check()\"\n (blur)=\"touched.set(true)\"\n/>\n<div class=\"tls-radio-button-circle\"></div>\n" }]
1612
+ }], propDecorators: { radioValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "radioValue", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
1613
+
1614
+ const DEFAULT_SELECT_CONFIG = {
1615
+ size: 'md',
1616
+ placeholder: '',
1617
+ fluid: false,
1618
+ clearable: false,
1619
+ };
1620
+
1621
+ const SELECT_CONFIG = new InjectionToken('SELECT_CONFIG', {
1622
+ factory: () => DEFAULT_SELECT_CONFIG,
1623
+ });
1624
+
1625
+ class Select extends ValueFormControl {
1626
+ _config = inject(SELECT_CONFIG);
1627
+ _overlay = inject(Overlay);
1628
+ _viewContainerRef = inject(ViewContainerRef);
1629
+ _destroyRef = inject(DestroyRef);
1630
+ _triggerElement = viewChild('trigger', ...(ngDevMode ? [{ debugName: "_triggerElement" }] : []));
1631
+ _panelTemplate = viewChild('panel', ...(ngDevMode ? [{ debugName: "_panelTemplate" }] : []));
1632
+ _overlayRef = null;
1633
+ _portal = null;
1634
+ value = model(undefined, ...(ngDevMode ? [{ debugName: "value" }] : []));
1635
+ inputId = input(null, ...(ngDevMode ? [{ debugName: "inputId" }] : []));
1636
+ options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
1637
+ optionLabel = input(undefined, ...(ngDevMode ? [{ debugName: "optionLabel" }] : []));
1638
+ optionValue = input(undefined, ...(ngDevMode ? [{ debugName: "optionValue" }] : []));
1639
+ optionDisabled = input(undefined, ...(ngDevMode ? [{ debugName: "optionDisabled" }] : []));
1640
+ placeholder = input(this._config.placeholder, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
1641
+ size = input(this._config.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
1642
+ fluid = input(this._config.fluid, { ...(ngDevMode ? { debugName: "fluid" } : {}), transform: booleanAttribute });
1643
+ tabindex = input(0, ...(ngDevMode ? [{ debugName: "tabindex" }] : []));
1644
+ clearable = input(this._config.clearable, { ...(ngDevMode ? { debugName: "clearable" } : {}), transform: booleanAttribute });
1645
+ isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
1646
+ activeIndex = signal(-1, ...(ngDevMode ? [{ debugName: "activeIndex" }] : []));
1647
+ normalizedOptions = computed(() => {
1648
+ const options = this.options();
1649
+ const optionLabel = this.optionLabel();
1650
+ const optionValue = this.optionValue();
1651
+ const optionDisabled = this.optionDisabled();
1652
+ return options.map(option => {
1653
+ if (typeof option === 'string' || typeof option === 'number') {
1654
+ return { value: option, label: String(option), disabled: false };
1655
+ }
1656
+ const typedOption = option;
1657
+ return {
1658
+ value: (optionValue ? typedOption[optionValue] : typedOption),
1659
+ label: String(optionLabel ? typedOption[optionLabel] : typedOption),
1660
+ disabled: Boolean(optionDisabled ? typedOption[optionDisabled] : false),
1661
+ };
1662
+ });
1663
+ }, ...(ngDevMode ? [{ debugName: "normalizedOptions" }] : []));
1664
+ hasValue = computed(() => {
1665
+ const value = this.value();
1666
+ return value !== null && value !== undefined && value !== '';
1667
+ }, ...(ngDevMode ? [{ debugName: "hasValue" }] : []));
1668
+ selectedLabel = computed(() => {
1669
+ if (!this.hasValue())
1670
+ return '';
1671
+ return this.normalizedOptions().find(option => option.value === this.value())?.label ?? '';
1672
+ }, ...(ngDevMode ? [{ debugName: "selectedLabel" }] : []));
1673
+ // Classes
1674
+ hostClasses = computed(() => {
1675
+ const array = ['tls-select'];
1676
+ if (this.isOpen())
1677
+ array.push('tls-select--open');
1678
+ array.push(`${this.CLASS_NAME}--${this.size()}`);
1679
+ if (this.fluid())
1680
+ array.push(`${this.CLASS_NAME}--fluid`);
1681
+ return array.concat(this.controlClasses());
1682
+ }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
1683
+ // Protected methods
1684
+ open() {
1685
+ const triggerElement = this._triggerElement();
1686
+ const panelTemplate = this._panelTemplate();
1687
+ if (this.notInteractive() || this.isOpen() || !triggerElement || !panelTemplate)
1688
+ return;
1689
+ if (!this._overlayRef) {
1690
+ this._overlayRef = this._overlay.create({
1691
+ positionStrategy: this._overlay
1692
+ .position()
1693
+ .flexibleConnectedTo(triggerElement)
1694
+ .withPositions([
1695
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },
1696
+ {
1697
+ originX: 'start',
1698
+ originY: 'top',
1699
+ overlayX: 'start',
1700
+ overlayY: 'bottom',
1701
+ offsetY: -4,
1702
+ },
1703
+ ])
1704
+ .withFlexibleDimensions(false)
1705
+ .withPush(false),
1706
+ scrollStrategy: this._overlay.scrollStrategies.reposition(),
1707
+ hasBackdrop: true,
1708
+ panelClass: 'tls-select-panel',
1709
+ backdropClass: 'cdk-overlay-transparent-backdrop',
1710
+ });
1711
+ this._overlayRef
1712
+ .backdropClick()
1713
+ .pipe(takeUntilDestroyed(this._destroyRef))
1714
+ .subscribe(() => this.close());
1715
+ }
1716
+ this._portal ??= new TemplatePortal(panelTemplate, this._viewContainerRef);
1717
+ this._overlayRef.updateSize({ minWidth: triggerElement.nativeElement.offsetWidth });
1718
+ this._overlayRef.attach(this._portal);
1719
+ this.isOpen.set(true);
1720
+ this.activeIndex.set(this.normalizedOptions().findIndex(option => option.value === this.value()));
1721
+ }
1722
+ close() {
1723
+ this._overlayRef?.detach();
1724
+ this.isOpen.set(false);
1725
+ this.activeIndex.set(-1);
1726
+ this._triggerElement()?.nativeElement.focus();
1727
+ }
1728
+ toggle() {
1729
+ if (this.isOpen()) {
1730
+ this.close();
1731
+ }
1732
+ else {
1733
+ this.open();
1734
+ }
1735
+ }
1736
+ select(option) {
1737
+ if (option.disabled)
1738
+ return;
1739
+ this.value.set(option.value);
1740
+ this.close();
983
1741
  }
984
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: RadioButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
985
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.1", type: RadioButton, isStandalone: true, selector: "tls-radio-button", inputs: { radioValue: { classPropertyName: "radioValue", publicName: "radioValue", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()", "tabindex": "-1" } }, usesInheritance: true, ngImport: i0, template: "<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [id]=\"inputId()\"\n [name]=\"name()\"\n [tabindex]=\"tabindex()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n [value]=\"radioValue()\"\n (change)=\"check()\"\n (blur)=\"touched.set(true)\"\n/>\n<div class=\"tls-radio-button-circle\"></div>\n" });
1742
+ clear() {
1743
+ this.value.set(undefined);
1744
+ }
1745
+ onOptionHover(index, disabled) {
1746
+ if (!disabled)
1747
+ this.activeIndex.set(index);
1748
+ }
1749
+ onKeydown(event) {
1750
+ if (event.key === 'ArrowDown') {
1751
+ event.preventDefault();
1752
+ if (this.isOpen()) {
1753
+ this._moveActive(1);
1754
+ }
1755
+ else {
1756
+ this.open();
1757
+ }
1758
+ }
1759
+ else if (event.key === 'ArrowUp') {
1760
+ event.preventDefault();
1761
+ if (this.isOpen()) {
1762
+ this._moveActive(-1);
1763
+ }
1764
+ else {
1765
+ this.open();
1766
+ }
1767
+ }
1768
+ else if (event.key === 'Enter' || event.key === ' ') {
1769
+ event.preventDefault();
1770
+ if (!this.isOpen()) {
1771
+ this.open();
1772
+ return;
1773
+ }
1774
+ const active = this.normalizedOptions()[this.activeIndex()];
1775
+ if (active && !active.disabled)
1776
+ this.select(active);
1777
+ }
1778
+ else if (event.key === 'Escape') {
1779
+ event.preventDefault();
1780
+ if (this.isOpen())
1781
+ this.close();
1782
+ }
1783
+ else if (event.key === 'Tab') {
1784
+ if (this.isOpen())
1785
+ this.close();
1786
+ }
1787
+ else if ((event.key === 'Delete' || event.key === 'Backspace') &&
1788
+ this.clearable() &&
1789
+ this.hasValue()) {
1790
+ event.preventDefault();
1791
+ this.clear();
1792
+ }
1793
+ }
1794
+ // Private methods
1795
+ _moveActive(direction) {
1796
+ const options = this.normalizedOptions();
1797
+ let next = this.activeIndex() + direction;
1798
+ while (next >= 0 && next < options.length) {
1799
+ if (!options[next].disabled) {
1800
+ this.activeIndex.set(next);
1801
+ return;
1802
+ }
1803
+ next += direction;
1804
+ }
1805
+ }
1806
+ // Lifecycle
1807
+ ngOnDestroy() {
1808
+ if (this._overlayRef)
1809
+ this._overlayRef.dispose();
1810
+ }
1811
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Select, deps: null, target: i0.ɵɵFactoryTarget.Component });
1812
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: Select, isStandalone: true, selector: "tls-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", 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 }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "hostClasses()" } }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Select) }], viewQueries: [{ propertyName: "_triggerElement", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "_panelTemplate", first: true, predicate: ["panel"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<button\n #trigger\n type=\"button\"\n class=\"tls-select__trigger\"\n [attr.id]=\"inputId()\"\n [attr.name]=\"name()\"\n aria-haspopup=\"listbox\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-select__value\" [class.tls-form-control__placeholder]=\"!selectedLabel()\">\n {{ selectedLabel() || placeholder() }}\n </span>\n <div class=\"tls-select__icon\" aria-hidden=\"true\">\n <svg class=\"tls-select__chevron\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 1L5 5L9 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </div>\n</button>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-select__clear\"\n tabindex=\"-1\"\n aria-label=\"Clear\"\n (click)=\"clear()\"\n >\n <svg class=\"tls-select__clear-icon\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 1L9 9M9 1L1 9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n </button>\n}\n\n<ng-template #panel>\n <ul class=\"tls-select__panel\" role=\"listbox\">\n @for (option of normalizedOptions(); track option.value; let i = $index) {\n <li\n class=\"tls-select__option\"\n [class.tls-select__option--selected]=\"option.value === value()\"\n [class.tls-select__option--active]=\"i === activeIndex()\"\n [class.tls-select__option--disabled]=\"option.disabled\"\n >\n <button\n class=\"tls-select__option-button\"\n role=\"option\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n (click)=\"select(option)\"\n (mouseenter)=\"onOptionHover(i, option.disabled)\"\n >{{ option.label }}\n </button>\n </li>\n }\n </ul>\n</ng-template>\n" });
986
1813
  }
987
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: RadioButton, decorators: [{
1814
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Select, decorators: [{
988
1815
  type: Component,
989
- args: [{ selector: 'tls-radio-button', imports: [], host: {
1816
+ args: [{ selector: 'tls-select', host: {
990
1817
  '[class]': 'hostClasses()',
991
- '[tabindex]': '-1',
992
- }, template: "<input\n type=\"radio\"\n class=\"tls-radio-button-input\"\n [id]=\"inputId()\"\n [name]=\"name()\"\n [tabindex]=\"tabindex()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n [checked]=\"checked()\"\n [value]=\"radioValue()\"\n (change)=\"check()\"\n (blur)=\"touched.set(true)\"\n/>\n<div class=\"tls-radio-button-circle\"></div>\n" }]
993
- }], propDecorators: { radioValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "radioValue", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }] } });
1818
+ }, providers: [{ provide: FORM_CONTROL, useExisting: forwardRef(() => Select) }], template: "<button\n #trigger\n type=\"button\"\n class=\"tls-select__trigger\"\n [attr.id]=\"inputId()\"\n [attr.name]=\"name()\"\n aria-haspopup=\"listbox\"\n [tabindex]=\"disabled() ? -1 : tabindex()\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"isOpen()\"\n (click)=\"toggle()\"\n (blur)=\"touched.set(true)\"\n (keydown)=\"onKeydown($event)\"\n>\n <span class=\"tls-select__value\" [class.tls-form-control__placeholder]=\"!selectedLabel()\">\n {{ selectedLabel() || placeholder() }}\n </span>\n <div class=\"tls-select__icon\" aria-hidden=\"true\">\n <svg class=\"tls-select__chevron\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 1L5 5L9 1\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </div>\n</button>\n@if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"tls-select__clear\"\n tabindex=\"-1\"\n aria-label=\"Clear\"\n (click)=\"clear()\"\n >\n <svg class=\"tls-select__clear-icon\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 1L9 9M9 1L1 9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" />\n </svg>\n </button>\n}\n\n<ng-template #panel>\n <ul class=\"tls-select__panel\" role=\"listbox\">\n @for (option of normalizedOptions(); track option.value; let i = $index) {\n <li\n class=\"tls-select__option\"\n [class.tls-select__option--selected]=\"option.value === value()\"\n [class.tls-select__option--active]=\"i === activeIndex()\"\n [class.tls-select__option--disabled]=\"option.disabled\"\n >\n <button\n class=\"tls-select__option-button\"\n role=\"option\"\n [disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.value === value()\"\n [attr.aria-disabled]=\"option.disabled\"\n (click)=\"select(option)\"\n (mouseenter)=\"onOptionHover(i, option.disabled)\"\n >{{ option.label }}\n </button>\n </li>\n }\n </ul>\n</ng-template>\n" }]
1819
+ }], propDecorators: { _triggerElement: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], _panelTemplate: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], 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 }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }] } });
994
1820
 
995
1821
  const DEFAULT_SWITCH_CONFIG = {
996
1822
  color: 'primary',
@@ -1212,6 +2038,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
1212
2038
  }]
1213
2039
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], widthRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthRatio", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
1214
2040
 
2041
+ const DEFAULT_PAGINATION_CONFIG = {
2042
+ size: 'md',
2043
+ pageSize: 10,
2044
+ boundaries: 1,
2045
+ siblings: 1,
2046
+ showFirstButton: false,
2047
+ showLastButton: false,
2048
+ };
2049
+
2050
+ const PAGINATION_CONFIG = new InjectionToken('PAGINATION_CONFIG', {
2051
+ factory: () => DEFAULT_PAGINATION_CONFIG,
2052
+ });
2053
+
2054
+ class Pagination {
2055
+ _config = inject(PAGINATION_CONFIG);
2056
+ value = model(1, ...(ngDevMode ? [{ debugName: "value" }] : []));
2057
+ pageSize = input(this._config.pageSize, ...(ngDevMode ? [{ debugName: "pageSize" }] : []));
2058
+ total = input(0, ...(ngDevMode ? [{ debugName: "total" }] : []));
2059
+ size = input(this._config.size, ...(ngDevMode ? [{ debugName: "size" }] : []));
2060
+ boundaries = input(this._config.boundaries, ...(ngDevMode ? [{ debugName: "boundaries" }] : []));
2061
+ siblings = input(this._config.siblings, ...(ngDevMode ? [{ debugName: "siblings" }] : []));
2062
+ showFirstButton = input(this._config.showFirstButton, { ...(ngDevMode ? { debugName: "showFirstButton" } : {}), transform: booleanAttribute });
2063
+ showLastButton = input(this._config.showLastButton, { ...(ngDevMode ? { debugName: "showLastButton" } : {}), transform: booleanAttribute });
2064
+ pageCount = computed(() => Math.ceil(this.total() / this.pageSize()), ...(ngDevMode ? [{ debugName: "pageCount" }] : []));
2065
+ visiblePages = computed(() => this._buildPages(this.pageCount(), this.value(), this.siblings(), this.boundaries()), ...(ngDevMode ? [{ debugName: "visiblePages" }] : []));
2066
+ classes = computed(() => ['tls-pagination', `tls-pagination--${this.size()}`], ...(ngDevMode ? [{ debugName: "classes" }] : []));
2067
+ // Protected methods
2068
+ setPage(page) {
2069
+ this.value.set(page);
2070
+ }
2071
+ firstPage() {
2072
+ this.value.set(1);
2073
+ }
2074
+ prevPage() {
2075
+ this.value.update(page => Math.max(1, page - 1));
2076
+ }
2077
+ nextPage() {
2078
+ this.value.update(page => Math.min(this.pageCount(), page + 1));
2079
+ }
2080
+ lastPage() {
2081
+ this.value.set(this.pageCount());
2082
+ }
2083
+ // Private methods
2084
+ /** Returns an inclusive array of integers from start to end. Returns [] if end < start. */
2085
+ _range(start, end) {
2086
+ const length = end - start + 1;
2087
+ return length > 0 ? Array.from({ length }, (_, i) => start + i) : [];
2088
+ }
2089
+ /** Computes the visible page items, inserting 'gap' where ellipsis should appear based on boundaries and siblings. */
2090
+ _buildPages(total, current, siblings, boundaries) {
2091
+ if (total <= 0)
2092
+ return [];
2093
+ // + 3: current page + two potential gap placeholders (left and right ellipsis)
2094
+ if (siblings * 2 + boundaries * 2 + 3 >= total)
2095
+ return this._range(1, total);
2096
+ const leftSiblingIndex = Math.max(current - siblings, boundaries + 1);
2097
+ const rightSiblingIndex = Math.min(current + siblings, total - boundaries);
2098
+ const showLeftGap = leftSiblingIndex > boundaries + 2;
2099
+ const showRightGap = rightSiblingIndex < total - boundaries - 1;
2100
+ const startPages = this._range(1, boundaries);
2101
+ const endPages = this._range(total - boundaries + 1, total);
2102
+ if (!showLeftGap && showRightGap) {
2103
+ // Expand left side to compensate for the missing left gap, keeping total item count stable
2104
+ return [...this._range(1, boundaries + siblings * 2 + 2), 'gap', ...endPages];
2105
+ }
2106
+ if (showLeftGap && !showRightGap) {
2107
+ // Expand right side to compensate for the missing right gap, keeping total item count stable
2108
+ return [...startPages, 'gap', ...this._range(total - boundaries - siblings * 2 - 1, total)];
2109
+ }
2110
+ return [
2111
+ ...startPages,
2112
+ 'gap',
2113
+ ...this._range(leftSiblingIndex, rightSiblingIndex),
2114
+ 'gap',
2115
+ ...endPages,
2116
+ ];
2117
+ }
2118
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Pagination, deps: [], target: i0.ɵɵFactoryTarget.Component });
2119
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: Pagination, isStandalone: true, selector: "tls-pagination", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, boundaries: { classPropertyName: "boundaries", publicName: "boundaries", isSignal: true, isRequired: false, transformFunction: null }, siblings: { classPropertyName: "siblings", publicName: "siblings", isSignal: true, isRequired: false, transformFunction: null }, showFirstButton: { classPropertyName: "showFirstButton", publicName: "showFirstButton", isSignal: true, isRequired: false, transformFunction: null }, showLastButton: { classPropertyName: "showLastButton", publicName: "showLastButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: "@if (showFirstButton()) {\n <button\n id=\"tls-pagination-first\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === 1\"\n (click)=\"firstPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"11 17 6 12 11 7\" />\n <polyline points=\"18 17 13 12 18 7\" />\n </svg>\n </span>\n </button>\n}\n\n<button\n id=\"tls-pagination-prev\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === 1\"\n (click)=\"prevPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n </span>\n</button>\n\n<ul class=\"tls-pagination__list\">\n @for (item of visiblePages(); track $index) {\n <li class=\"tls-pagination__item\">\n @if (item === 'gap') {\n <span class=\"tls-pagination__gap\">...</span>\n } @else {\n <button\n class=\"tls-pagination__item-button\"\n [class.tls-pagination__item-button--active]=\"value() === item\"\n (click)=\"setPage(item)\"\n >\n {{ item }}\n </button>\n }\n </li>\n }\n</ul>\n\n<button\n id=\"tls-pagination-next\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"nextPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n </span>\n</button>\n\n@if (showLastButton()) {\n <button\n id=\"tls-pagination-last\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"lastPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"13 17 18 12 13 7\" />\n <polyline points=\"6 17 11 12 6 7\" />\n </svg>\n </span>\n </button>\n}\n" });
2120
+ }
2121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Pagination, decorators: [{
2122
+ type: Component,
2123
+ args: [{ selector: 'tls-pagination', host: { '[class]': 'classes()' }, template: "@if (showFirstButton()) {\n <button\n id=\"tls-pagination-first\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === 1\"\n (click)=\"firstPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"11 17 6 12 11 7\" />\n <polyline points=\"18 17 13 12 18 7\" />\n </svg>\n </span>\n </button>\n}\n\n<button\n id=\"tls-pagination-prev\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === 1\"\n (click)=\"prevPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n </span>\n</button>\n\n<ul class=\"tls-pagination__list\">\n @for (item of visiblePages(); track $index) {\n <li class=\"tls-pagination__item\">\n @if (item === 'gap') {\n <span class=\"tls-pagination__gap\">...</span>\n } @else {\n <button\n class=\"tls-pagination__item-button\"\n [class.tls-pagination__item-button--active]=\"value() === item\"\n (click)=\"setPage(item)\"\n >\n {{ item }}\n </button>\n }\n </li>\n }\n</ul>\n\n<button\n id=\"tls-pagination-next\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"nextPage()\"\n>\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n </span>\n</button>\n\n@if (showLastButton()) {\n <button\n id=\"tls-pagination-last\"\n class=\"tls-pagination__button\"\n [disabled]=\"value() === pageCount()\"\n (click)=\"lastPage()\"\n >\n <span class=\"tls-pagination__button-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <polyline points=\"13 17 18 12 13 7\" />\n <polyline points=\"6 17 11 12 6 7\" />\n </svg>\n </span>\n </button>\n}\n" }]
2124
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], boundaries: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundaries", required: false }] }], siblings: [{ type: i0.Input, args: [{ isSignal: true, alias: "siblings", required: false }] }], showFirstButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstButton", required: false }] }], showLastButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLastButton", required: false }] }] } });
2125
+
1215
2126
  const DEFAULT_SKELETON_CONFIG = {
1216
2127
  size: 40,
1217
2128
  width: null,
@@ -1411,6 +2322,133 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
1411
2322
  }, providers: [StepperService], template: "<ul class=\"tls-stepper-header\" role=\"tablist\" [attr.aria-orientation]=\"orientation()\">\n @for (step of steps(); track step.value(); let index = $index; let last = $last) {\n <li role=\"presentation\"\n class=\"tls-stepper-header__item\"\n [class]=\"`tls-stepper-header--${step.color()}`\"\n [class.tls-stepper-header__item--active]=\"step.value() === active()\"\n [class.tls-stepper-header__item--disabled]=\"step.disabled()\"\n [class.tls-stepper-header__item--unreachable]=\"linear() && index > activeIndex() + 1\"\n [class.tls-stepper-header__item--completed]=\"activeIndex() > index || completed()\">\n @let id = 'tls-stepper-tab-' + step.value();\n <button\n #stepButton\n class=\"tls-stepper-header-button\"\n role=\"tab\"\n type=\"button\"\n [attr.aria-controls]=\"panelId\"\n [id]=\"id\"\n [tabindex]=\"step.value() === active() ? 0 : -1\"\n [disabled]=\"step.disabled()\"\n [attr.aria-selected]=\"step.value() === active()\"\n (click)=\"onSelect(step, index)\"\n (keydown)=\"onKeydown($event, index)\"\n >\n <span class=\"tls-stepper-header-button__index\">\n @let isCompleted = activeIndex() > index || completed();\n @if (isCompleted && step.completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (isCompleted && completedIconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"completedIconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else if (step.iconTemplateRef()) {\n <ng-container [ngTemplateOutlet]=\"step.iconTemplateRef() ?? null\"\n [ngTemplateOutletContext]=\"{ $implicit: index }\"></ng-container>\n } @else {\n {{ index + 1 }}\n }\n </span>\n\n <span class=\"tls-stepper-header-button__text\">\n @if (step.label()) {\n <span class=\"tls-stepper-header-button__label\">{{ step.label() }}</span>\n }\n @if (step.description()) {\n <span class=\"tls-stepper-header-button__description\">{{ step.description() }}</span>\n }\n </span>\n </button>\n @if (!last) {\n <div class=\"tls-stepper-header__divider\"></div>\n }\n </li>\n }\n</ul>\n<div class=\"tls-stepper-content\"\n [id]=\"panelId\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"'tls-stepper-tab-' + active()\">\n <ng-content></ng-content>\n @if (completed() && completedTemplateRef()) {\n <div class=\"tls-stepper-content__template\">\n <ng-container [ngTemplateOutlet]=\"completedTemplateRef()\"></ng-container>\n </div>\n }\n</div>\n" }]
1412
2323
  }], ctorParameters: () => [], propDecorators: { steps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Step), { isSignal: true }] }], completedTemplateRef: [{ type: i0.ContentChild, args: ['completedTemplate', { isSignal: true }] }], completedIconTemplateRef: [{ type: i0.ContentChild, args: ['stepCompletedIcon', { isSignal: true }] }], _stepButtons: [{ type: i0.ViewChildren, args: ['stepButton', { isSignal: true }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: true }] }, { type: i0.Output, args: ["activeChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], completed: [{ type: i0.Input, args: [{ isSignal: true, alias: "completed", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], stepSelect: [{ type: i0.Output, args: ["stepSelect"] }] } });
1413
2324
 
2325
+ class TableColumn {
2326
+ key = input.required(...(ngDevMode ? [{ debugName: "key" }] : []));
2327
+ header = input(...(ngDevMode ? [undefined, { debugName: "header" }] : []));
2328
+ hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : {}), transform: booleanAttribute });
2329
+ alignment = input(...(ngDevMode ? [undefined, { debugName: "alignment" }] : []));
2330
+ width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
2331
+ template = contentChild(TemplateRef, ...(ngDevMode ? [{ debugName: "template" }] : []));
2332
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TableColumn, deps: [], target: i0.ɵɵFactoryTarget.Component });
2333
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.1", type: TableColumn, isStandalone: true, selector: "tls-table-column", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], ngImport: i0, template: '', isInline: true });
2334
+ }
2335
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TableColumn, decorators: [{
2336
+ type: Component,
2337
+ args: [{
2338
+ selector: 'tls-table-column',
2339
+ imports: [],
2340
+ template: '',
2341
+ }]
2342
+ }], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], template: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
2343
+
2344
+ const DEFAULT_TABLE_CONFIG = {
2345
+ hideHeader: false,
2346
+ striped: false,
2347
+ };
2348
+
2349
+ const TABLE_CONFIG = new InjectionToken('TABLE_CONFIG', {
2350
+ factory: () => DEFAULT_TABLE_CONFIG,
2351
+ });
2352
+
2353
+ class Table {
2354
+ _config = inject(TABLE_CONFIG);
2355
+ data = input.required(...(ngDevMode ? [{ debugName: "data" }] : []));
2356
+ columnDefinitions = input([], ...(ngDevMode ? [{ debugName: "columnDefinitions" }] : []));
2357
+ hideHeader = input(this._config.hideHeader, { ...(ngDevMode ? { debugName: "hideHeader" } : {}), transform: booleanAttribute });
2358
+ striped = input(this._config.striped, { ...(ngDevMode ? { debugName: "striped" } : {}), transform: booleanAttribute });
2359
+ trackBy = input(...(ngDevMode ? [undefined, { debugName: "trackBy" }] : []));
2360
+ tableColumns = contentChildren(TableColumn, ...(ngDevMode ? [{ debugName: "tableColumns" }] : []));
2361
+ // Merges columnDefinitions input and tls-table-column content children into a single list.
2362
+ // Input drives order; content children override matching keys and append unmatched columns at the end.
2363
+ // Map keyed by content column key → O(1) lookup when applying overrides to each input column.
2364
+ // Set of input keys → O(1) membership check when finding content columns absent from input (extras).
2365
+ // extras: content columns with no matching input entry, appended after the merged input columns.
2366
+ effectiveColumnDefinitions = computed(() => {
2367
+ const fromContent = this._mapContentColumns(this.tableColumns());
2368
+ const fromInput = this.columnDefinitions();
2369
+ if (fromContent.length === 0)
2370
+ return fromInput;
2371
+ if (fromInput.length === 0)
2372
+ return fromContent;
2373
+ const contentByKey = new Map(fromContent.map(definition => [definition.key, definition]));
2374
+ const inputKeys = new Set(fromInput.map(definition => definition.key));
2375
+ const merged = fromInput.map(definition => ({
2376
+ ...definition,
2377
+ ...(contentByKey.get(definition.key) ?? {}),
2378
+ }));
2379
+ const extras = fromContent.filter(definition => !inputKeys.has(definition.key));
2380
+ return [...merged, ...extras];
2381
+ }, ...(ngDevMode ? [{ debugName: "effectiveColumnDefinitions" }] : []));
2382
+ columns = computed(() => this.effectiveColumnDefinitions().reduce((filtered, columnDefinition) => {
2383
+ if (!columnDefinition.hidden)
2384
+ filtered.push(columnDefinition.key);
2385
+ return filtered;
2386
+ }, []), ...(ngDevMode ? [{ debugName: "columns" }] : []));
2387
+ resolvedTrackBy = computed(() => {
2388
+ const trackBy = this.trackBy();
2389
+ if (trackBy === undefined)
2390
+ return (_, row) => row;
2391
+ if (typeof trackBy === 'string')
2392
+ return (_, row) => row[trackBy];
2393
+ return trackBy;
2394
+ }, ...(ngDevMode ? [{ debugName: "resolvedTrackBy" }] : []));
2395
+ classes = computed(() => {
2396
+ const className = 'tls-table';
2397
+ const array = [className];
2398
+ if (this.hideHeader())
2399
+ array.push(`${className}--hide-header`);
2400
+ if (this.striped())
2401
+ array.push(`${className}--striped`);
2402
+ return array;
2403
+ }, ...(ngDevMode ? [{ debugName: "classes" }] : []));
2404
+ dataSource = {
2405
+ connect: () => {
2406
+ return toObservable(this.data);
2407
+ },
2408
+ disconnect: () => {
2409
+ // no operation
2410
+ },
2411
+ };
2412
+ // Private methods
2413
+ _mapContentColumns(columns) {
2414
+ return columns.map((column) => this._mapContentColumn(column));
2415
+ }
2416
+ _mapContentColumn(column) {
2417
+ const definition = { key: column.key(), hidden: column.hidden() };
2418
+ const header = column.header();
2419
+ if (header !== undefined)
2420
+ definition.header = header;
2421
+ const alignment = column.alignment();
2422
+ if (alignment !== undefined)
2423
+ definition.alignment = alignment;
2424
+ const width = column.width();
2425
+ if (width !== undefined)
2426
+ definition.width = width;
2427
+ const template = column.template();
2428
+ if (template !== undefined)
2429
+ definition.template = template;
2430
+ return definition;
2431
+ }
2432
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
2433
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.1", type: Table, isStandalone: true, selector: "tls-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columnDefinitions: { classPropertyName: "columnDefinitions", publicName: "columnDefinitions", isSignal: true, isRequired: false, transformFunction: null }, hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "tableColumns", predicate: TableColumn, isSignal: true }], ngImport: i0, template: "<table cdk-table [class]=\"classes()\" [dataSource]=\"dataSource\" [trackBy]=\"resolvedTrackBy()\">\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"], dependencies: [{ kind: "component", type: CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout", "recycleRows"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "directive", type: CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "directive", type: CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["cdkColumnDef", "sticky", "stickyEnd"] }, { kind: "component", type: CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "directive", type: CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "component", type: CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
2434
+ }
2435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: Table, decorators: [{
2436
+ type: Component,
2437
+ args: [{ selector: 'tls-table', imports: [
2438
+ CdkTable,
2439
+ CdkHeaderCell,
2440
+ CdkCell,
2441
+ CdkCellDef,
2442
+ CdkHeaderCellDef,
2443
+ CdkColumnDef,
2444
+ CdkHeaderRow,
2445
+ CdkHeaderRowDef,
2446
+ CdkRow,
2447
+ CdkRowDef,
2448
+ NgTemplateOutlet,
2449
+ ], host: {}, template: "<table cdk-table [class]=\"classes()\" [dataSource]=\"dataSource\" [trackBy]=\"resolvedTrackBy()\">\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"] }]
2450
+ }], 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 }] }], tableColumns: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableColumn), { isSignal: true }] }] } });
2451
+
1414
2452
  class TabsService {
1415
2453
  selected = null;
1416
2454
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: TabsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -1575,142 +2613,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
1575
2613
  type: Injectable
1576
2614
  }] });
1577
2615
 
1578
- const DEFAULT_TOOLTIP_OFFSET = { x: 4, y: 4 };
1579
- const TOOLTIP_POSITION_MAP = {
1580
- top: {
1581
- originX: 'center',
1582
- originY: 'top',
1583
- overlayX: 'center',
1584
- overlayY: 'bottom',
1585
- offsetX: 0,
1586
- offsetY: -1,
1587
- },
1588
- right: {
1589
- originX: 'end',
1590
- originY: 'center',
1591
- overlayX: 'start',
1592
- overlayY: 'center',
1593
- offsetX: 1,
1594
- offsetY: 0,
1595
- },
1596
- bottom: {
1597
- originX: 'center',
1598
- originY: 'bottom',
1599
- overlayX: 'center',
1600
- overlayY: 'top',
1601
- offsetX: 1,
1602
- offsetY: 1,
1603
- },
1604
- left: {
1605
- originX: 'start',
1606
- originY: 'center',
1607
- overlayX: 'end',
1608
- overlayY: 'center',
1609
- offsetX: -1,
1610
- offsetY: 0,
1611
- },
1612
- 'top-start': {
1613
- originX: 'start',
1614
- originY: 'top',
1615
- overlayX: 'start',
1616
- overlayY: 'bottom',
1617
- offsetX: 0,
1618
- offsetY: -1,
1619
- },
1620
- 'top-end': {
1621
- originX: 'end',
1622
- originY: 'top',
1623
- overlayX: 'end',
1624
- overlayY: 'bottom',
1625
- offsetX: 0,
1626
- offsetY: -1,
1627
- },
1628
- 'right-start': {
1629
- originX: 'end',
1630
- originY: 'top',
1631
- overlayX: 'start',
1632
- overlayY: 'top',
1633
- offsetX: 1,
1634
- offsetY: 0,
1635
- },
1636
- 'right-end': {
1637
- originX: 'end',
1638
- originY: 'bottom',
1639
- overlayX: 'start',
1640
- overlayY: 'bottom',
1641
- offsetX: 1,
1642
- offsetY: 0,
1643
- },
1644
- 'bottom-start': {
1645
- originX: 'start',
1646
- originY: 'bottom',
1647
- overlayX: 'start',
1648
- overlayY: 'top',
1649
- offsetX: 0,
1650
- offsetY: 1,
1651
- },
1652
- 'bottom-end': {
1653
- originX: 'end',
1654
- originY: 'bottom',
1655
- overlayX: 'end',
1656
- overlayY: 'top',
1657
- offsetX: 0,
1658
- offsetY: 1,
1659
- },
1660
- 'left-start': {
1661
- originX: 'start',
1662
- originY: 'top',
1663
- overlayX: 'end',
1664
- overlayY: 'top',
1665
- offsetX: -1,
1666
- offsetY: 0,
1667
- },
1668
- 'left-end': {
1669
- originX: 'start',
1670
- originY: 'bottom',
1671
- overlayX: 'end',
1672
- overlayY: 'bottom',
1673
- offsetX: -1,
1674
- offsetY: 0,
1675
- },
1676
- 'top-left': {
1677
- originX: 'start',
1678
- originY: 'top',
1679
- overlayX: 'end',
1680
- overlayY: 'bottom',
1681
- offsetX: -1,
1682
- offsetY: -1,
1683
- },
1684
- 'top-right': {
1685
- originX: 'end',
1686
- originY: 'top',
1687
- overlayX: 'start',
1688
- overlayY: 'bottom',
1689
- offsetX: 1,
1690
- offsetY: -1,
1691
- },
1692
- 'bottom-left': {
1693
- originX: 'start',
1694
- originY: 'bottom',
1695
- overlayX: 'end',
1696
- overlayY: 'top',
1697
- offsetX: -1,
1698
- offsetY: 1,
1699
- },
1700
- 'bottom-right': {
1701
- originX: 'end',
1702
- originY: 'bottom',
1703
- overlayX: 'start',
1704
- overlayY: 'top',
1705
- offsetX: 1,
1706
- offsetY: 1,
1707
- },
1708
- };
1709
-
1710
2616
  const DEFAULT_TOOLTIP_CONFIG = {
1711
2617
  positions: undefined,
1712
2618
  position: 'top',
1713
- offset: DEFAULT_TOOLTIP_OFFSET,
2619
+ offset: { x: 4, y: 4 },
1714
2620
  origin: 'element',
1715
2621
  color: 'secondary',
1716
2622
  };
@@ -1719,17 +2625,6 @@ const TOOLTIP_CONFIG = new InjectionToken('TOOLTIP_CONFIG', {
1719
2625
  factory: () => DEFAULT_TOOLTIP_CONFIG,
1720
2626
  });
1721
2627
 
1722
- const buildTooltipPositions = (position, offset) => {
1723
- const preferred = TOOLTIP_POSITION_MAP[position];
1724
- const rest = Object.values(TOOLTIP_POSITION_MAP).filter(p => p !== preferred);
1725
- const positions = [preferred, ...rest];
1726
- return positions.map(position => ({
1727
- ...position,
1728
- offsetX: Math.sign(position.offsetX ?? 0) * offset.x,
1729
- offsetY: Math.sign(position.offsetY ?? 0) * offset.y,
1730
- }));
1731
- };
1732
-
1733
2628
  class TooltipDirective {
1734
2629
  _tooltipService = inject(TooltipService);
1735
2630
  _elementRef = inject(ElementRef);
@@ -1748,7 +2643,7 @@ class TooltipDirective {
1748
2643
  const positions = this.tooltipPositions();
1749
2644
  if (positions)
1750
2645
  return positions;
1751
- return buildTooltipPositions(this.tooltipPosition(), this.tooltipOffset());
2646
+ return buildOverlayPositions(this.tooltipPosition(), this.tooltipOffset());
1752
2647
  }, ...(ngDevMode ? [{ debugName: "_positions" }] : []));
1753
2648
  // Protected methods
1754
2649
  onMouseEnter(event) {
@@ -1815,22 +2710,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
1815
2710
 
1816
2711
  // Features
1817
2712
 
1818
- const isPlainObject = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
1819
-
1820
- const mergeConfig = (defaults, overrides) => {
1821
- if (!overrides)
1822
- return defaults;
1823
- const result = { ...defaults };
1824
- for (const key in overrides) {
1825
- const defaultValue = defaults[key];
1826
- const overrideValue = overrides[key];
1827
- result[key] = (isPlainObject(defaultValue) && isPlainObject(overrideValue)
1828
- ? mergeConfig(defaultValue, overrideValue)
1829
- : overrideValue);
1830
- }
1831
- return result;
1832
- };
1833
-
1834
2713
  const provideThalassicChartConfig = (config) => {
1835
2714
  return makeEnvironmentProviders([
1836
2715
  {
@@ -1851,6 +2730,14 @@ const provideThalassicUIConfig = (config) => {
1851
2730
  provide: BUTTON_CONFIG,
1852
2731
  useValue: mergeConfig(DEFAULT_BUTTON_CONFIG, config.components.button),
1853
2732
  },
2733
+ {
2734
+ provide: DATE_TIME_PICKER_CONFIG,
2735
+ useValue: mergeConfig(DEFAULT_DATE_TIME_PICKER_CONFIG, config.components.dateTimePicker),
2736
+ },
2737
+ {
2738
+ provide: DIALOG_CONFIG,
2739
+ useValue: mergeConfig(DEFAULT_DIALOG_CONFIG, config.components.dialog),
2740
+ },
1854
2741
  {
1855
2742
  provide: DIVIDER_CONFIG,
1856
2743
  useValue: mergeConfig(DEFAULT_DIVIDER_CONFIG, config.components.divider),
@@ -1860,6 +2747,10 @@ const provideThalassicUIConfig = (config) => {
1860
2747
  provide: PASSWORD_CONFIG,
1861
2748
  useValue: mergeConfig(DEFAULT_PASSWORD_CONFIG, config.components.password),
1862
2749
  },
2750
+ {
2751
+ provide: SELECT_CONFIG,
2752
+ useValue: mergeConfig(DEFAULT_SELECT_CONFIG, config.components.select),
2753
+ },
1863
2754
  {
1864
2755
  provide: SWITCH_CONFIG,
1865
2756
  useValue: mergeConfig(DEFAULT_SWITCH_CONFIG, config.components.switch),
@@ -1869,6 +2760,14 @@ const provideThalassicUIConfig = (config) => {
1869
2760
  useValue: mergeConfig(DEFAULT_FORM_ITEM_CONFIG, config.components.formItem),
1870
2761
  },
1871
2762
  { provide: ICON_CONFIG, useValue: mergeConfig(DEFAULT_ICON_CONFIG, config.components.icon) },
2763
+ {
2764
+ provide: PAGINATION_CONFIG,
2765
+ useValue: mergeConfig(DEFAULT_PAGINATION_CONFIG, config.components.pagination),
2766
+ },
2767
+ {
2768
+ provide: POPOVER_CONFIG,
2769
+ useValue: mergeConfig(DEFAULT_POPOVER_CONFIG, config.components.popover),
2770
+ },
1872
2771
  {
1873
2772
  provide: SKELETON_CONFIG,
1874
2773
  useValue: mergeConfig(DEFAULT_SKELETON_CONFIG, config.components.skeleton),
@@ -1877,6 +2776,7 @@ const provideThalassicUIConfig = (config) => {
1877
2776
  provide: STEPPER_CONFIG,
1878
2777
  useValue: mergeConfig(DEFAULT_STEPPER_CONFIG, config.components.stepper),
1879
2778
  },
2779
+ { provide: TABLE_CONFIG, useValue: mergeConfig(DEFAULT_TABLE_CONFIG, config.components.table) },
1880
2780
  { provide: TABS_CONFIG, useValue: mergeConfig(DEFAULT_TABS_CONFIG, config.components.tabs) },
1881
2781
  {
1882
2782
  provide: TOOLTIP_CONFIG,
@@ -1889,5 +2789,5 @@ const provideThalassicUIConfig = (config) => {
1889
2789
  * Generated bundle index. Do not edit.
1890
2790
  */
1891
2791
 
1892
- export { ALERT_CONFIG, Alert, BUTTON_CONFIG, BarChart, BubbleChart, Button, ButtonDirective, CHART_CONFIG, CHECKBOX_CONFIG, Chart, Checkbox, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHART_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIVIDER_CONFIG, Divider, DoughnutChart, FORM_ITEM_CONFIG, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, LineChart, Loader, PASSWORD_CONFIG, PIN_INPUT_CONFIG, Password, PieChart, PinInput, PolarAreaChart, RADIO_BUTTON_CONFIG, RadarChart, RadioButton, SKELETON_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, ScatterChart, Skeleton, Step, Stepper, Switch, TABS_CONFIG, TOOLTIP_CONFIG, Tab, Tabs, TooltipDirective, provideThalassicChartConfig, provideThalassicUIConfig };
2792
+ export { ALERT_CONFIG, Alert, BUTTON_CONFIG, BarChart, BubbleChart, Button, ButtonDirective, CHART_CONFIG, CHECKBOX_CONFIG, Chart, Checkbox, DATE_TIME_PICKER_CONFIG, DEFAULT_ALERT_CONFIG, DEFAULT_BUTTON_CONFIG, DEFAULT_CHART_CONFIG, DEFAULT_CHECKBOX_CONFIG, DEFAULT_DATE_TIME_PICKER_CONFIG, DEFAULT_DIALOG_CONFIG, DEFAULT_DIVIDER_CONFIG, DEFAULT_FORM_ITEM_CONFIG, DEFAULT_ICON_CONFIG, DEFAULT_INPUT_CONFIG, DEFAULT_LOADER_CONFIG, DEFAULT_PAGINATION_CONFIG, DEFAULT_PASSWORD_CONFIG, DEFAULT_PIN_INPUT_CONFIG, DEFAULT_POPOVER_CONFIG, DEFAULT_RADIO_BUTTON_CONFIG, DEFAULT_SELECT_CONFIG, DEFAULT_SKELETON_CONFIG, DEFAULT_STEPPER_CONFIG, DEFAULT_STEP_CONFIG, DEFAULT_SWITCH_CONFIG, DEFAULT_TABLE_CONFIG, DEFAULT_TABS_CONFIG, DEFAULT_TOOLTIP_CONFIG, DIALOG_CONFIG, DIVIDER_CONFIG, DateTimePicker, Dialog, DialogService, Divider, DoughnutChart, FORM_ITEM_CONFIG, FormItem, ICON_CONFIG, INPUT_CONFIG, Icon, Input, InputDirective, LOADER_CONFIG, LineChart, Loader, PAGINATION_CONFIG, PASSWORD_CONFIG, PIN_INPUT_CONFIG, POPOVER_CONFIG, Pagination, Password, PieChart, PinInput, PolarAreaChart, Popover, RADIO_BUTTON_CONFIG, RadarChart, RadioButton, SELECT_CONFIG, SKELETON_CONFIG, STEPPER_CONFIG, SWITCH_CONFIG, ScatterChart, Select, Skeleton, Step, Stepper, Switch, TABLE_CONFIG, TABS_CONFIG, TOOLTIP_CONFIG, Tab, Table, TableColumn, Tabs, TooltipDirective, provideThalassicChartConfig, provideThalassicUIConfig };
1893
2793
  //# sourceMappingURL=thalassic-ui.mjs.map