@taiga-ui/experimental 5.18.0 → 5.19.0-canary.b454a40

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,5 +1,5 @@
1
1
  import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
2
- export declare class TuiDatePickerHeader {
2
+ export declare class TuiCalendarHeader {
3
3
  protected readonly picker: AbstractTuiCalendar<import("@taiga-ui/cdk/date-time").TuiDay | import("@taiga-ui/cdk/date-time").TuiDayRange | readonly import("@taiga-ui/cdk/date-time").TuiDay[]>;
4
4
  protected readonly dropdown: import("@angular/core").ElementRef<Element> | null;
5
5
  readonly mode: import("@angular/core").InputSignal<"multi" | "range" | "single" | undefined>;
@@ -0,0 +1,24 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { TuiDay, TuiMonth } from '@taiga-ui/cdk/date-time';
3
+ import { TuiCarouselComponent } from '@taiga-ui/core/components/carousel';
4
+ import { TuiDatePicker } from './date-picker';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * @deprecated: work in progress, do not use!
8
+ */
9
+ export declare class TuiCalendarMultiComponent<T extends 'multi' | 'range' | 'single'> extends TuiDatePicker<T> {
10
+ protected readonly visible: import("@angular/core").WritableSignal<Record<string, number>>;
11
+ protected readonly carousel: import("@angular/core").Signal<TuiCarouselComponent | undefined>;
12
+ protected readonly scroll: import("@angular/core").Signal<ElementRef<any>>;
13
+ protected readonly height: import("@angular/core").Signal<number>;
14
+ protected readonly start: import("@angular/core").Signal<boolean>;
15
+ protected readonly end: import("@angular/core").Signal<boolean>;
16
+ protected readonly index: import("@angular/core").Signal<number>;
17
+ readonly months: import("@angular/core").InputSignal<3 | 2 | 1>;
18
+ protected updateMonth(day?: TuiDay | null): void;
19
+ protected getMonth(index: number): TuiMonth;
20
+ protected onSpin(step: number): void;
21
+ protected onIntersection(visible: boolean, month: TuiMonth, height: number): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiCalendarMultiComponent<any>, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiCalendarMultiComponent<any>, "tui-calendar[months]", never, { "months": { "alias": "months"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,35 @@
1
+ import { TuiMonth } from '@taiga-ui/cdk/date-time';
2
+ import { type TuiBooleanHandler, type TuiContext } from '@taiga-ui/cdk/types';
3
+ import { TuiCarouselComponent } from '@taiga-ui/core/components/carousel';
4
+ import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
5
+ import { TuiDatePicker } from './date-picker';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @deprecated: work in progress, do not use!
9
+ */
10
+ export declare class TuiCalendarComponent<T extends 'multi' | 'range' | 'single'> extends TuiDatePicker<T> {
11
+ protected readonly carousel: import("@angular/core").Signal<TuiCarouselComponent | undefined>;
12
+ protected readonly content: import("@angular/core").Signal<PolymorpheusContent<TuiContext<TuiMonth>>>;
13
+ protected readonly years: import("@angular/core").Signal<number[]>;
14
+ protected readonly year: import("@angular/core").Signal<TuiMonth[]>;
15
+ protected readonly months: import("@angular/core").Signal<TuiMonth[]>;
16
+ protected readonly button: import("@angular/core").Signal<string>;
17
+ protected readonly yearMin: import("@angular/core").Signal<number>;
18
+ protected readonly yearMax: import("@angular/core").Signal<number>;
19
+ protected readonly disabledMonth: import("@angular/core").Signal<TuiBooleanHandler<TuiMonth>>;
20
+ protected readonly disabledYear: import("@angular/core").Signal<(year: number) => boolean>;
21
+ protected readonly start: import("@angular/core").Signal<boolean>;
22
+ protected readonly end: import("@angular/core").Signal<boolean>;
23
+ protected readonly index: import("@angular/core").Signal<number>;
24
+ readonly view: import("@angular/core").ModelSignal<"day" | "month" | "year">;
25
+ readonly contentMonth: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<TuiMonth>>>;
26
+ readonly contentYear: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<number>>>;
27
+ readonly showAdjacent: import("@angular/core").InputSignal<boolean>;
28
+ protected getMonth(index: number): TuiMonth;
29
+ protected getItems(initial: number): readonly number[];
30
+ protected onSpin(step: number): void;
31
+ protected onYear(year: number): void;
32
+ protected onMonth(month: TuiMonth): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiCalendarComponent<any>, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiCalendarComponent<any>, "tui-calendar[new]", never, { "view": { "alias": "view"; "required": false; "isSignal": true; }; "contentMonth": { "alias": "contentMonth"; "required": false; "isSignal": true; }; "contentYear": { "alias": "contentYear"; "required": false; "isSignal": true; }; "showAdjacent": { "alias": "showAdjacent"; "required": false; "isSignal": true; }; }, { "view": "viewChange"; }, never, never, true, never>;
35
+ }
@@ -0,0 +1,3 @@
1
+ import { TuiCalendarComponent } from './calendar.component';
2
+ import { TuiCalendarMultiComponent } from './calendar-multi.component';
3
+ export declare const TuiCalendar: readonly [typeof TuiCalendarComponent, typeof TuiCalendarMultiComponent];
@@ -0,0 +1,24 @@
1
+ import { TuiDay, TuiDayRange } from '@taiga-ui/cdk/date-time';
2
+ import { type TuiContext } from '@taiga-ui/cdk/types';
3
+ import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
4
+ import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
5
+ import * as i0 from "@angular/core";
6
+ type DatePicker<T> = T extends 'single' ? TuiDay : T extends 'multi' ? readonly TuiDay[] : TuiDayRange;
7
+ export declare abstract class TuiDatePicker<T extends 'multi' | 'range' | 'single'> extends AbstractTuiCalendar<DatePicker<T>> {
8
+ protected readonly options: import("@taiga-ui/experimental/components/month").TuiMonthOptions;
9
+ protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
10
+ protected readonly dropdown: import("@angular/core").ElementRef<Element> | null;
11
+ protected readonly texts: import("@angular/core").Signal<readonly [previous: string, next: string]>;
12
+ protected readonly i18n: import("@angular/core").Signal<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>;
13
+ protected readonly disabledDay: import("@angular/core").Signal<(day: TuiDay) => boolean>;
14
+ protected readonly sync: import("@angular/core").EffectRef;
15
+ readonly mode: import("@angular/core").InputSignal<T | undefined>;
16
+ readonly contentDay: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<TuiDay>>>;
17
+ readonly dayType: import("@angular/core").InputSignal<import("@taiga-ui/cdk/types").TuiHandler<TuiDay, string>>;
18
+ readonly showWeek: import("@angular/core").InputSignal<boolean>;
19
+ protected updateMonth(day?: TuiDay | null): void;
20
+ protected onDay(day: TuiDay): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiDatePicker<any>, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDatePicker<any>, never, never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "contentDay": { "alias": "contentDay"; "required": false; "isSignal": true; }; "dayType": { "alias": "dayType"; "required": false; "isSignal": true; }; "showWeek": { "alias": "showWeek"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
+ }
24
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './calendar';
2
+ export * from './calendar.component';
3
+ export * from './calendar-header.component';
4
+ export * from './calendar-multi.component';
5
+ export * from './date-picker';
@@ -1,5 +1,5 @@
1
+ export * from '@taiga-ui/experimental/components/calendar';
1
2
  export * from '@taiga-ui/experimental/components/data-grid';
2
- export * from '@taiga-ui/experimental/components/date-picker';
3
3
  export * from '@taiga-ui/experimental/components/file';
4
4
  export * from '@taiga-ui/experimental/components/month';
5
5
  export * from '@taiga-ui/experimental/components/popout';
@@ -0,0 +1,309 @@
1
+ import { coerceArray } from '@angular/cdk/coercion';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, input, Component, ChangeDetectionStrategy, computed, effect, untracked, Directive, viewChild, model, signal, ElementRef } from '@angular/core';
4
+ import { FormsModule } from '@angular/forms';
5
+ import { TuiDayRange, TuiDay, TuiMonth } from '@taiga-ui/cdk/date-time';
6
+ import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
7
+ import { tuiProvide } from '@taiga-ui/cdk/utils/di';
8
+ import { TuiButton, tuiButtonOptionsProvider } from '@taiga-ui/core/components/button';
9
+ import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
10
+ import * as i1 from '@taiga-ui/core/components/carousel';
11
+ import { TuiCarouselComponent, TuiCarousel } from '@taiga-ui/core/components/carousel';
12
+ import { TuiLink } from '@taiga-ui/core/components/link';
13
+ import { tuiTextfieldOptionsProvider } from '@taiga-ui/core/components/textfield';
14
+ import { TUI_COMMON_ICONS, TUI_SPIN_TEXTS, TUI_MONTHS, tuiAsAuxiliary } from '@taiga-ui/core/tokens';
15
+ import { TuiDataGrid } from '@taiga-ui/experimental/components/data-grid';
16
+ import { TUI_MONTH_OPTIONS, TuiMonthComponent } from '@taiga-ui/experimental/components/month';
17
+ import { TuiChevron } from '@taiga-ui/kit/directives/chevron';
18
+ import { TuiElasticContainer } from '@taiga-ui/layout/components/elastic-container';
19
+ import { TuiSlides } from '@taiga-ui/layout/components/slides';
20
+ import { __decorate } from 'tslib';
21
+ import { TUI_DROPDOWN_HOST } from '@taiga-ui/core/portals/dropdown';
22
+ import { tuiInputDateOptionsProvider, TuiInputDate } from '@taiga-ui/kit/components/input-date';
23
+ import { TuiInputDateMulti } from '@taiga-ui/kit/components/input-date-multi';
24
+ import { TuiInputDateRange } from '@taiga-ui/kit/components/input-date-range';
25
+ import { tuiArrayToggle } from '@taiga-ui/cdk/utils/miscellaneous';
26
+ import * as i2 from '@taiga-ui/cdk/directives/item';
27
+ import { WaIntersectionObservee } from '@ng-web-apis/intersection-observer';
28
+
29
+ let TuiCalendarHeader = class TuiCalendarHeader {
30
+ constructor() {
31
+ this.picker = inject(AbstractTuiCalendar);
32
+ this.dropdown = inject(TUI_DROPDOWN_HOST, { optional: true });
33
+ this.mode = input();
34
+ }
35
+ };
36
+ TuiCalendarHeader = __decorate([
37
+ Component({
38
+ selector: 'tui-calendar-header',
39
+ imports: [FormsModule, TuiInputDate, TuiInputDateMulti, TuiInputDateRange],
40
+ template: `
41
+ @switch (mode()) {
42
+ @case ('multi') {
43
+ <tui-textfield multi>
44
+ <input
45
+ tuiInputDateMulti
46
+ [attr.aria-labelledby]="dropdown?.nativeElement?.id || null"
47
+ [max]="picker.max()"
48
+ [min]="picker.min()"
49
+ [(ngModel)]="picker.value"
50
+ />
51
+ </tui-textfield>
52
+ }
53
+ @case ('range') {
54
+ <tui-textfield>
55
+ <input
56
+ tuiInputDateRange
57
+ [attr.aria-labelledby]="dropdown?.nativeElement?.id || null"
58
+ [max]="picker.max()"
59
+ [min]="picker.min()"
60
+ [(ngModel)]="picker.value"
61
+ />
62
+ </tui-textfield>
63
+ }
64
+ @default {
65
+ <tui-textfield>
66
+ <input
67
+ tuiInputDate
68
+ [attr.aria-labelledby]="dropdown?.nativeElement?.id || null"
69
+ [max]="picker.max()"
70
+ [min]="picker.min()"
71
+ [(ngModel)]="picker.value"
72
+ />
73
+ </tui-textfield>
74
+ }
75
+ }
76
+ `,
77
+ styles: `
78
+ :host {
79
+ position: absolute;
80
+ inset: 0.125rem;
81
+ opacity: 0;
82
+ pointer-events: none;
83
+ visibility: visible;
84
+
85
+ &:focus-within {
86
+ opacity: 1;
87
+ pointer-events: auto;
88
+ }
89
+ }
90
+ `,
91
+ changeDetection: ChangeDetectionStrategy.OnPush,
92
+ providers: [tuiInputDateOptionsProvider({ icon: '' })],
93
+ })
94
+ ], TuiCalendarHeader);
95
+
96
+ class TuiDatePicker extends AbstractTuiCalendar {
97
+ constructor() {
98
+ super(...arguments);
99
+ this.options = inject(TUI_MONTH_OPTIONS);
100
+ this.icons = inject(TUI_COMMON_ICONS);
101
+ this.dropdown = inject(TUI_DROPDOWN_HOST, { optional: true });
102
+ this.texts = inject(TUI_SPIN_TEXTS);
103
+ this.i18n = inject(TUI_MONTHS);
104
+ this.disabledDay = computed(() => (day) => day < this.min() || day > this.max() || this.disabledItemHandler()(day));
105
+ this.sync = effect(() => {
106
+ const value = this.value();
107
+ const [day] = value instanceof TuiDayRange ? [value.from] : coerceArray(value);
108
+ this.min();
109
+ this.max();
110
+ if (!day || day.year < 9000) {
111
+ untracked(() => this.updateMonth(day));
112
+ }
113
+ });
114
+ this.mode = input();
115
+ this.contentDay = input();
116
+ this.dayType = input(this.options.dayType);
117
+ this.showWeek = input(this.options.showWeek);
118
+ }
119
+ updateMonth(day) {
120
+ this.month.update(({ month, year }) => (day || new TuiDay(year, month, 1)).dayLimit(this.min(), this.max()));
121
+ }
122
+ onDay(day) {
123
+ if (this.mode() === 'range') {
124
+ this.value.update((value) => value instanceof TuiDayRange && value.from === value.to
125
+ ? TuiDayRange.sort(value.to, day.append({}))
126
+ : new TuiDayRange(day, day));
127
+ }
128
+ else if (this.mode() === 'multi') {
129
+ this.value.update((value) => Array.isArray(value)
130
+ ? tuiArrayToggle(value, day, (a, b) => a.daySame(b))
131
+ : [day]);
132
+ }
133
+ else {
134
+ this.value.set(day);
135
+ }
136
+ }
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiDatePicker, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
138
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.25", type: TuiDatePicker, isStandalone: true, inputs: { mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, contentDay: { classPropertyName: "contentDay", publicName: "contentDay", isSignal: true, isRequired: false, transformFunction: null }, dayType: { classPropertyName: "dayType", publicName: "dayType", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
139
+ }
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiDatePicker, decorators: [{
141
+ type: Directive
142
+ }] });
143
+
144
+ /**
145
+ * @deprecated: work in progress, do not use!
146
+ */
147
+ class TuiCalendarComponent extends TuiDatePicker {
148
+ constructor() {
149
+ super(...arguments);
150
+ this.carousel = viewChild(TuiCarouselComponent);
151
+ this.content = computed(() => (c) => this.i18n()[c.$implicit.month]);
152
+ this.years = computed((value = this.value()) => value instanceof TuiDayRange
153
+ ? Array.from({ length: value.to.year - value.from.year + 1 }, (_, index) => value.from.year + index)
154
+ : Array.from(new Set(coerceArray(value ?? []).map(({ year }) => year))));
155
+ this.year = computed(() => Array.from({ length: 12 }, (_, index) => new TuiMonth(this.month().year, index)));
156
+ this.months = computed((value = this.value()) => this.year().filter((month) => value instanceof TuiDayRange
157
+ ? value.monthInRange(month)
158
+ : coerceArray(value ?? []).some((day) => day.monthSame(month))));
159
+ this.button = computed(() => this.view() === 'day'
160
+ ? `${this.i18n()[this.month().month]} ${this.month().formattedYear}`
161
+ : this.month().formattedYear);
162
+ this.yearMin = computed(() => Math.ceil((this.min().year - this.month().year - 5) / 12));
163
+ this.yearMax = computed(() => Math.floor((this.max().year - this.month().year + 6) / 12));
164
+ this.disabledMonth = computed(() => (month) => month.monthBefore(this.min()) || month.monthAfter(this.max()));
165
+ this.disabledYear = computed(() => (year) => year < this.min().year || year > this.max().year);
166
+ this.start = computed((carousel = this.carousel()) => this.view() === 'month'
167
+ ? this.month().year === this.min().year
168
+ : carousel?.index() === carousel?.min());
169
+ this.end = computed((carousel = this.carousel()) => this.view() === 'month'
170
+ ? this.month().year === this.max().year
171
+ : carousel?.index() === carousel?.max());
172
+ this.index = computed(() => this.month().year * 12 + this.month().month);
173
+ this.view = model('day');
174
+ this.contentMonth = input();
175
+ this.contentYear = input();
176
+ this.showAdjacent = input(this.options.showAdjacent);
177
+ }
178
+ getMonth(index) {
179
+ return new TuiMonth(Math.floor(index / 12), index % 12);
180
+ }
181
+ getItems(initial) {
182
+ return Array.from({ length: 12 }, (_, index) => initial + index);
183
+ }
184
+ onSpin(step) {
185
+ this.carousel()?.[step > 0 ? 'next' : 'prev']();
186
+ if (this.view() === 'month') {
187
+ this.month.update((month) => month.append({ year: step }));
188
+ }
189
+ }
190
+ onYear(year) {
191
+ this.month.update(({ month }) => new TuiMonth(year, month));
192
+ this.view.set('month');
193
+ }
194
+ onMonth(month) {
195
+ this.month.set(month);
196
+ this.view.set('day');
197
+ }
198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
199
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiCalendarComponent, isStandalone: true, selector: "tui-calendar[new]", inputs: { view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, contentMonth: { classPropertyName: "contentMonth", publicName: "contentMonth", isSignal: true, isRequired: false, transformFunction: null }, contentYear: { classPropertyName: "contentYear", publicName: "contentYear", isSignal: true, isRequired: false, transformFunction: null }, showAdjacent: { classPropertyName: "showAdjacent", publicName: "showAdjacent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { view: "viewChange" }, providers: [
200
+ tuiAsAuxiliary(TuiCalendarComponent),
201
+ tuiProvide(AbstractTuiCalendar, TuiCalendarComponent),
202
+ tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
203
+ tuiTextfieldOptionsProvider({ size: signal('m'), cleaner: signal(false) }),
204
+ ], viewQueries: [{ propertyName: "carousel", first: true, predicate: TuiCarouselComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<header class=\"t-header\">\n @if (view() !== 'year') {\n <button\n appearance=\"\"\n tabindex=\"-1\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [textContent]=\"button()\"\n [tuiChevron]=\"false\"\n (click)=\"view.set(view() === 'day' ? 'month' : 'year')\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n ></button>\n } @else {\n @let years = month().year + (carousel()?.index() || 0) * 12 - 6 | tuiMapper: getItems;\n <b>{{ years[0] }}-{{ years[years.length - 1] }}</b>\n }\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (!dropdown?.nativeElement?.matches('input')) {\n <tui-calendar-header [mode]=\"mode()\" />\n }\n</header>\n<tui-elastic-container class=\"t-slides\">\n <section tuiSlides>\n @switch (view()) {\n @case ('day') {\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n (indexChange)=\"month.set(getMonth($event))\"\n >\n <tui-month\n *tuiItem=\"let current\"\n class=\"t-calendar\"\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"current | tuiMapper: getMonth\"\n [showAdjacent]=\"showAdjacent()\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n />\n </tui-carousel>\n }\n\n @case ('month') {\n <tui-data-grid\n class=\"t-grid\"\n [content]=\"contentMonth() ?? content()\"\n [disabledItemHandler]=\"disabledMonth()\"\n [items]=\"year()\"\n [value]=\"months()\"\n (pick)=\"onMonth($event)\"\n />\n }\n\n @case ('year') {\n <tui-carousel\n [max]=\"yearMax()\"\n [min]=\"yearMin()\"\n >\n <tui-data-grid\n *tuiItem=\"let offset\"\n class=\"t-grid\"\n [content]=\"contentYear()\"\n [disabledItemHandler]=\"disabledYear()\"\n [items]=\"month().year + offset * 12 - 6 | tuiMapper: getItems\"\n [value]=\"years()\"\n (pick)=\"onYear($event)\"\n />\n </tui-carousel>\n }\n }\n </section>\n</tui-elastic-container>\n", styles: [":host{display:block;inline-size:calc(20rem * var(--tui-font-scale));min-inline-size:calc(20rem * var(--tui-font-scale));flex:1;box-sizing:content-box}:host-context(tui-dropdown){padding:.5rem}:host-context(tui-dropdown):not(:only-child){box-shadow:0 0 0 1px var(--tui-border-normal)}.t-header{position:relative;display:flex;gap:.25rem;align-items:center;justify-content:flex-end;padding:.5rem .75rem 1rem;font:var(--tui-typography-ui-l)}.t-header:focus-within{visibility:hidden}.t-header :first-child{margin-inline-end:auto}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);font:inherit;font-weight:700;text-decoration:none}@media(hover:hover)and (pointer:fine){.t-button:hover{opacity:var(--tui-disabled-opacity)}}.t-chevron{transform:scaleX(var(--tui-inline))}.t-grid{padding:0 .5rem .5rem}.t-slides{margin:0 -.5rem}.t-calendar{padding:0 .5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "component", type: TuiCalendarHeader, selector: "tui-calendar-header", inputs: ["mode"] }, { kind: "component", type: i1.TuiCarouselComponent, selector: "tui-carousel", inputs: ["index", "min", "max"], outputs: ["indexChange"] }, { kind: "directive", type: i2.TuiItem, selector: "[tuiItem]" }, { kind: "directive", type: TuiChevron, selector: "[tuiChevron]", inputs: ["tuiChevron"] }, { kind: "component", type: TuiDataGrid, selector: "tui-data-grid", inputs: ["items", "content", "value", "disabledItemHandler"], outputs: ["pick"] }, { kind: "component", type: TuiElasticContainer, selector: "tui-elastic-container" }, { kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }, { kind: "component", type:
205
+ // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
206
+ TuiMonthComponent, selector: "tui-month", inputs: ["month", "value", "content", "dayType", "showAdjacent", "showWeek", "disabledItemHandler"], outputs: ["pick"] }, { kind: "directive", type: TuiSlides, selector: "[tuiSlides]", inputs: ["tuiSlides"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
207
+ }
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiCalendarComponent, decorators: [{
209
+ type: Component,
210
+ args: [{ selector: 'tui-calendar[new]', imports: [
211
+ FormsModule,
212
+ TuiButton,
213
+ TuiCalendarHeader,
214
+ TuiCarousel,
215
+ TuiChevron,
216
+ TuiDataGrid,
217
+ TuiElasticContainer,
218
+ TuiLink,
219
+ TuiMapperPipe,
220
+ // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
221
+ TuiMonthComponent,
222
+ TuiSlides,
223
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
224
+ tuiAsAuxiliary(TuiCalendarComponent),
225
+ tuiProvide(AbstractTuiCalendar, TuiCalendarComponent),
226
+ tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
227
+ tuiTextfieldOptionsProvider({ size: signal('m'), cleaner: signal(false) }),
228
+ ], template: "<header class=\"t-header\">\n @if (view() !== 'year') {\n <button\n appearance=\"\"\n tabindex=\"-1\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [textContent]=\"button()\"\n [tuiChevron]=\"false\"\n (click)=\"view.set(view() === 'day' ? 'month' : 'year')\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n ></button>\n } @else {\n @let years = month().year + (carousel()?.index() || 0) * 12 - 6 | tuiMapper: getItems;\n <b>{{ years[0] }}-{{ years[years.length - 1] }}</b>\n }\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (!dropdown?.nativeElement?.matches('input')) {\n <tui-calendar-header [mode]=\"mode()\" />\n }\n</header>\n<tui-elastic-container class=\"t-slides\">\n <section tuiSlides>\n @switch (view()) {\n @case ('day') {\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n (indexChange)=\"month.set(getMonth($event))\"\n >\n <tui-month\n *tuiItem=\"let current\"\n class=\"t-calendar\"\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"current | tuiMapper: getMonth\"\n [showAdjacent]=\"showAdjacent()\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n />\n </tui-carousel>\n }\n\n @case ('month') {\n <tui-data-grid\n class=\"t-grid\"\n [content]=\"contentMonth() ?? content()\"\n [disabledItemHandler]=\"disabledMonth()\"\n [items]=\"year()\"\n [value]=\"months()\"\n (pick)=\"onMonth($event)\"\n />\n }\n\n @case ('year') {\n <tui-carousel\n [max]=\"yearMax()\"\n [min]=\"yearMin()\"\n >\n <tui-data-grid\n *tuiItem=\"let offset\"\n class=\"t-grid\"\n [content]=\"contentYear()\"\n [disabledItemHandler]=\"disabledYear()\"\n [items]=\"month().year + offset * 12 - 6 | tuiMapper: getItems\"\n [value]=\"years()\"\n (pick)=\"onYear($event)\"\n />\n </tui-carousel>\n }\n }\n </section>\n</tui-elastic-container>\n", styles: [":host{display:block;inline-size:calc(20rem * var(--tui-font-scale));min-inline-size:calc(20rem * var(--tui-font-scale));flex:1;box-sizing:content-box}:host-context(tui-dropdown){padding:.5rem}:host-context(tui-dropdown):not(:only-child){box-shadow:0 0 0 1px var(--tui-border-normal)}.t-header{position:relative;display:flex;gap:.25rem;align-items:center;justify-content:flex-end;padding:.5rem .75rem 1rem;font:var(--tui-typography-ui-l)}.t-header:focus-within{visibility:hidden}.t-header :first-child{margin-inline-end:auto}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);font:inherit;font-weight:700;text-decoration:none}@media(hover:hover)and (pointer:fine){.t-button:hover{opacity:var(--tui-disabled-opacity)}}.t-chevron{transform:scaleX(var(--tui-inline))}.t-grid{padding:0 .5rem .5rem}.t-slides{margin:0 -.5rem}.t-calendar{padding:0 .5rem}\n"] }]
229
+ }] });
230
+
231
+ /**
232
+ * @deprecated: work in progress, do not use!
233
+ */
234
+ class TuiCalendarMultiComponent extends TuiDatePicker {
235
+ constructor() {
236
+ super(...arguments);
237
+ this.visible = signal({});
238
+ this.carousel = viewChild(TuiCarouselComponent);
239
+ this.scroll = viewChild.required(TuiCarouselComponent, {
240
+ read: ElementRef,
241
+ });
242
+ this.height = computed(() => Math.max(...Object.values(this.visible())));
243
+ this.start = computed((carousel = this.carousel()) => carousel?.index() === carousel?.min());
244
+ this.end = computed((carousel = this.carousel()) => carousel?.index() === carousel?.max());
245
+ this.index = computed(() => this.month().year * 12 + this.month().month);
246
+ this.months = input(2);
247
+ }
248
+ updateMonth(day) {
249
+ this.month.update(({ year, month }) => {
250
+ const updated = new TuiDay(day?.year || year, day?.month || month, 1);
251
+ const limited = updated.dayLimit(this.min(), this.max());
252
+ return Object.keys(this.visible()).includes(limited.toJSON().slice(0, -3))
253
+ ? new TuiMonth(year, month)
254
+ : limited;
255
+ });
256
+ }
257
+ getMonth(index) {
258
+ return new TuiMonth(Math.floor(index / 12), index % 12);
259
+ }
260
+ onSpin(step) {
261
+ const el = this.scroll().nativeElement;
262
+ const sign = el.matches('[dir="rtl"] :scope') ? -1 : 1;
263
+ const left = el.offsetWidth / this.months();
264
+ el.scrollTo({ left: el.scrollLeft + left * sign * step, behavior: 'smooth' });
265
+ }
266
+ onIntersection(visible, month, height) {
267
+ this.visible.update((current) => {
268
+ const { [month.toJSON()]: removed, ...rest } = current;
269
+ return visible ? { ...current, [month.toJSON()]: removed || height } : rest;
270
+ });
271
+ }
272
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiCalendarMultiComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
273
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiCalendarMultiComponent, isStandalone: true, selector: "tui-calendar[months]", inputs: { months: { classPropertyName: "months", publicName: "months", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--t-months": "months()" } }, providers: [
274
+ tuiAsAuxiliary(TuiCalendarMultiComponent),
275
+ tuiProvide(AbstractTuiCalendar, TuiCalendarMultiComponent),
276
+ tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
277
+ tuiTextfieldOptionsProvider({ size: signal('m'), cleaner: signal(false) }),
278
+ ], viewQueries: [{ propertyName: "carousel", first: true, predicate: TuiCarouselComponent, descendants: true, isSignal: true }, { propertyName: "scroll", first: true, predicate: TuiCarouselComponent, descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<header class=\"t-buttons\">\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (!dropdown?.nativeElement?.matches('input')) {\n <tui-calendar-header [mode]=\"mode()\" />\n }\n</header>\n<section\n tuiSlides\n class=\"t-slides\"\n>\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n [style.max-block-size.px]=\"height()\"\n (indexChange)=\"month.set(getMonth(index() + ($event - index()) * months()))\"\n >\n <ng-container *tuiItem=\"let current\">\n @for (_ of '-'.repeat(months()); track $index) {\n @let month = index() + (current - index()) * months() + $index | tuiMapper: getMonth;\n <div\n #el\n class=\"t-calendar\"\n >\n <div class=\"t-header\">{{ i18n()[month.month] }} {{ month.year }}</div>\n <tui-month\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"month\"\n [showAdjacent]=\"false\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n (waIntersectionObservee)=\"onIntersection(!!$event[0]?.isIntersecting, month, el.offsetHeight)\"\n />\n </div>\n }\n </ng-container>\n </tui-carousel>\n</section>\n", styles: [":host{position:relative;display:block;inline-size:calc(20rem * var(--tui-font-scale) * var(--t-months));min-inline-size:calc(20rem * var(--tui-font-scale) * var(--t-months));flex:1;box-sizing:content-box}:host-context(tui-dropdown){padding:.5rem}:host-context(tui-dropdown):not(:only-child){box-shadow:0 0 0 1px var(--tui-border-normal)}.t-header{position:relative;display:flex;gap:.25rem;align-items:center;justify-content:center;padding:.5rem .25rem 1rem;font:var(--tui-typography-ui-l);font-weight:700}.t-chevron{transform:scaleX(var(--tui-inline))}.t-slides{margin:0 -.5rem}.t-calendar{inline-size:100%;align-self:flex-start;scroll-snap-align:start;scroll-snap-stop:always;padding:0 .5rem}.t-buttons{position:absolute;inset:0 0 auto;z-index:1;display:flex;justify-content:space-between;padding:.5rem .25rem}.t-buttons:focus-within{visibility:hidden}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "component", type: TuiCalendarHeader, selector: "tui-calendar-header", inputs: ["mode"] }, { kind: "component", type: i1.TuiCarouselComponent, selector: "tui-carousel", inputs: ["index", "min", "max"], outputs: ["indexChange"] }, { kind: "directive", type: i2.TuiItem, selector: "[tuiItem]" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }, { kind: "component", type:
279
+ // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
280
+ TuiMonthComponent, selector: "tui-month", inputs: ["month", "value", "content", "dayType", "showAdjacent", "showWeek", "disabledItemHandler"], outputs: ["pick"] }, { kind: "directive", type: TuiSlides, selector: "[tuiSlides]", inputs: ["tuiSlides"] }, { kind: "directive", type: WaIntersectionObservee, selector: "[waIntersectionObservee]", outputs: ["waIntersectionObservee"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
281
+ }
282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiCalendarMultiComponent, decorators: [{
283
+ type: Component,
284
+ args: [{ selector: 'tui-calendar[months]', imports: [
285
+ FormsModule,
286
+ TuiButton,
287
+ TuiCalendarHeader,
288
+ TuiCarousel,
289
+ TuiMapperPipe,
290
+ // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
291
+ TuiMonthComponent,
292
+ TuiSlides,
293
+ WaIntersectionObservee,
294
+ ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
295
+ tuiAsAuxiliary(TuiCalendarMultiComponent),
296
+ tuiProvide(AbstractTuiCalendar, TuiCalendarMultiComponent),
297
+ tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
298
+ tuiTextfieldOptionsProvider({ size: signal('m'), cleaner: signal(false) }),
299
+ ], host: { '[style.--t-months]': 'months()' }, template: "<header class=\"t-buttons\">\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (!dropdown?.nativeElement?.matches('input')) {\n <tui-calendar-header [mode]=\"mode()\" />\n }\n</header>\n<section\n tuiSlides\n class=\"t-slides\"\n>\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n [style.max-block-size.px]=\"height()\"\n (indexChange)=\"month.set(getMonth(index() + ($event - index()) * months()))\"\n >\n <ng-container *tuiItem=\"let current\">\n @for (_ of '-'.repeat(months()); track $index) {\n @let month = index() + (current - index()) * months() + $index | tuiMapper: getMonth;\n <div\n #el\n class=\"t-calendar\"\n >\n <div class=\"t-header\">{{ i18n()[month.month] }} {{ month.year }}</div>\n <tui-month\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"month\"\n [showAdjacent]=\"false\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n (waIntersectionObservee)=\"onIntersection(!!$event[0]?.isIntersecting, month, el.offsetHeight)\"\n />\n </div>\n }\n </ng-container>\n </tui-carousel>\n</section>\n", styles: [":host{position:relative;display:block;inline-size:calc(20rem * var(--tui-font-scale) * var(--t-months));min-inline-size:calc(20rem * var(--tui-font-scale) * var(--t-months));flex:1;box-sizing:content-box}:host-context(tui-dropdown){padding:.5rem}:host-context(tui-dropdown):not(:only-child){box-shadow:0 0 0 1px var(--tui-border-normal)}.t-header{position:relative;display:flex;gap:.25rem;align-items:center;justify-content:center;padding:.5rem .25rem 1rem;font:var(--tui-typography-ui-l);font-weight:700}.t-chevron{transform:scaleX(var(--tui-inline))}.t-slides{margin:0 -.5rem}.t-calendar{inline-size:100%;align-self:flex-start;scroll-snap-align:start;scroll-snap-stop:always;padding:0 .5rem}.t-buttons{position:absolute;inset:0 0 auto;z-index:1;display:flex;justify-content:space-between;padding:.5rem .25rem}.t-buttons:focus-within{visibility:hidden}\n"] }]
300
+ }] });
301
+
302
+ const TuiCalendar = [TuiCalendarComponent, TuiCalendarMultiComponent];
303
+
304
+ /**
305
+ * Generated bundle index. Do not edit.
306
+ */
307
+
308
+ export { TuiCalendar, TuiCalendarComponent, TuiCalendarHeader, TuiCalendarMultiComponent, TuiDatePicker };
309
+ //# sourceMappingURL=taiga-ui-experimental-components-calendar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-experimental-components-calendar.mjs","sources":["../../../projects/experimental/components/calendar/calendar-header.component.ts","../../../projects/experimental/components/calendar/date-picker.ts","../../../projects/experimental/components/calendar/calendar.component.ts","../../../projects/experimental/components/calendar/calendar.component.html","../../../projects/experimental/components/calendar/calendar-multi.component.ts","../../../projects/experimental/components/calendar/calendar-multi.component.html","../../../projects/experimental/components/calendar/calendar.ts","../../../projects/experimental/components/calendar/taiga-ui-experimental-components-calendar.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, inject, input} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {AbstractTuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TUI_DROPDOWN_HOST} from '@taiga-ui/core/portals/dropdown';\nimport {\n TuiInputDate,\n tuiInputDateOptionsProvider,\n} from '@taiga-ui/kit/components/input-date';\nimport {TuiInputDateMulti} from '@taiga-ui/kit/components/input-date-multi';\nimport {TuiInputDateRange} from '@taiga-ui/kit/components/input-date-range';\n\n@Component({\n selector: 'tui-calendar-header',\n imports: [FormsModule, TuiInputDate, TuiInputDateMulti, TuiInputDateRange],\n template: `\n @switch (mode()) {\n @case ('multi') {\n <tui-textfield multi>\n <input\n tuiInputDateMulti\n [attr.aria-labelledby]=\"dropdown?.nativeElement?.id || null\"\n [max]=\"picker.max()\"\n [min]=\"picker.min()\"\n [(ngModel)]=\"picker.value\"\n />\n </tui-textfield>\n }\n @case ('range') {\n <tui-textfield>\n <input\n tuiInputDateRange\n [attr.aria-labelledby]=\"dropdown?.nativeElement?.id || null\"\n [max]=\"picker.max()\"\n [min]=\"picker.min()\"\n [(ngModel)]=\"picker.value\"\n />\n </tui-textfield>\n }\n @default {\n <tui-textfield>\n <input\n tuiInputDate\n [attr.aria-labelledby]=\"dropdown?.nativeElement?.id || null\"\n [max]=\"picker.max()\"\n [min]=\"picker.min()\"\n [(ngModel)]=\"picker.value\"\n />\n </tui-textfield>\n }\n }\n `,\n styles: `\n :host {\n position: absolute;\n inset: 0.125rem;\n opacity: 0;\n pointer-events: none;\n visibility: visible;\n\n &:focus-within {\n opacity: 1;\n pointer-events: auto;\n }\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiInputDateOptionsProvider({icon: ''})],\n})\nexport class TuiCalendarHeader {\n protected readonly picker = inject(AbstractTuiCalendar);\n protected readonly dropdown = inject(TUI_DROPDOWN_HOST, {optional: true});\n\n public readonly mode = input<'multi' | 'range' | 'single'>();\n}\n","import {coerceArray} from '@angular/cdk/coercion';\nimport {computed, Directive, effect, inject, input, untracked} from '@angular/core';\nimport {TuiDay, TuiDayRange} from '@taiga-ui/cdk/date-time';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiArrayToggle} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TUI_DROPDOWN_HOST} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_COMMON_ICONS, TUI_MONTHS, TUI_SPIN_TEXTS} from '@taiga-ui/core/tokens';\nimport {TUI_MONTH_OPTIONS} from '@taiga-ui/experimental/components/month';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\ntype DatePicker<T> = T extends 'single'\n ? TuiDay\n : T extends 'multi'\n ? readonly TuiDay[]\n : TuiDayRange;\n\n@Directive()\nexport abstract class TuiDatePicker<\n T extends 'multi' | 'range' | 'single',\n> extends AbstractTuiCalendar<DatePicker<T>> {\n protected readonly options = inject(TUI_MONTH_OPTIONS);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly dropdown = inject(TUI_DROPDOWN_HOST, {optional: true});\n protected readonly texts = inject(TUI_SPIN_TEXTS);\n protected readonly i18n = inject(TUI_MONTHS);\n protected readonly disabledDay = computed(\n () => (day: TuiDay) =>\n day < this.min() || day > this.max() || this.disabledItemHandler()(day),\n );\n\n protected readonly sync = effect(() => {\n const value = this.value();\n const [day] = value instanceof TuiDayRange ? [value.from] : coerceArray(value);\n\n this.min();\n this.max();\n\n if (!day || day.year < 9000) {\n untracked(() => this.updateMonth(day));\n }\n });\n\n public readonly mode = input<T>();\n public readonly contentDay = input<PolymorpheusContent<TuiContext<TuiDay>>>();\n public readonly dayType = input(this.options.dayType);\n public readonly showWeek = input(this.options.showWeek);\n\n protected updateMonth(day?: TuiDay | null): void {\n this.month.update(({month, year}) =>\n (day || new TuiDay(year, month, 1)).dayLimit(this.min(), this.max()),\n );\n }\n\n protected onDay(day: TuiDay): void {\n if (this.mode() === 'range') {\n this.value.update((value): any =>\n value instanceof TuiDayRange && value.from === value.to\n ? TuiDayRange.sort(value.to, day.append({}))\n : new TuiDayRange(day, day),\n );\n } else if (this.mode() === 'multi') {\n this.value.update((value): any =>\n Array.isArray(value)\n ? tuiArrayToggle(value, day, (a: TuiDay, b: TuiDay) => a.daySame(b))\n : [day],\n );\n } else {\n this.value.set(day as any);\n }\n }\n}\n","import {coerceArray} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {type TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {type TuiBooleanHandler, type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\nimport {TuiButton, tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {AbstractTuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiCarousel, TuiCarouselComponent} from '@taiga-ui/core/components/carousel';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {tuiTextfieldOptionsProvider} from '@taiga-ui/core/components/textfield';\nimport {tuiAsAuxiliary} from '@taiga-ui/core/tokens';\nimport {TuiDataGrid} from '@taiga-ui/experimental/components/data-grid';\nimport {TuiMonthComponent} from '@taiga-ui/experimental/components/month';\nimport {TuiChevron} from '@taiga-ui/kit/directives/chevron';\nimport {TuiElasticContainer} from '@taiga-ui/layout/components/elastic-container';\nimport {TuiSlides} from '@taiga-ui/layout/components/slides';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport {TuiCalendarHeader} from './calendar-header.component';\nimport {TuiDatePicker} from './date-picker';\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-calendar[new]',\n imports: [\n FormsModule,\n TuiButton,\n TuiCalendarHeader,\n TuiCarousel,\n TuiChevron,\n TuiDataGrid,\n TuiElasticContainer,\n TuiLink,\n TuiMapperPipe,\n // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports\n TuiMonthComponent,\n TuiSlides,\n ],\n templateUrl: './calendar.component.html',\n styleUrl: './calendar.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsAuxiliary(TuiCalendarComponent),\n tuiProvide(AbstractTuiCalendar, TuiCalendarComponent),\n tuiButtonOptionsProvider({size: 'xs', appearance: 'flat'}),\n tuiTextfieldOptionsProvider({size: signal('m'), cleaner: signal(false)}),\n ],\n})\nexport class TuiCalendarComponent<\n T extends 'multi' | 'range' | 'single',\n> extends TuiDatePicker<T> {\n protected readonly carousel = viewChild(TuiCarouselComponent);\n protected readonly content = computed<PolymorpheusContent<TuiContext<TuiMonth>>>(\n () => (c) => this.i18n()[c.$implicit.month],\n );\n\n protected readonly years = computed((value = this.value()) =>\n value instanceof TuiDayRange\n ? Array.from(\n {length: value.to.year - value.from.year + 1},\n (_, index) => value.from.year + index,\n )\n : Array.from(new Set(coerceArray<TuiDay>(value ?? []).map(({year}) => year))),\n );\n\n protected readonly year = computed(() =>\n Array.from({length: 12}, (_, index) => new TuiMonth(this.month().year, index)),\n );\n\n protected readonly months = computed((value = this.value()) =>\n this.year().filter((month) =>\n value instanceof TuiDayRange\n ? value.monthInRange(month)\n : coerceArray<TuiDay>(value ?? []).some((day) => day.monthSame(month)),\n ),\n );\n\n protected readonly button = computed(() =>\n this.view() === 'day'\n ? `${this.i18n()[this.month().month]} ${this.month().formattedYear}`\n : this.month().formattedYear,\n );\n\n protected readonly yearMin = computed(() =>\n Math.ceil((this.min().year - this.month().year - 5) / 12),\n );\n\n protected readonly yearMax = computed(() =>\n Math.floor((this.max().year - this.month().year + 6) / 12),\n );\n\n protected readonly disabledMonth = computed<TuiBooleanHandler<TuiMonth>>(\n () => (month) => month.monthBefore(this.min()) || month.monthAfter(this.max()),\n );\n\n protected readonly disabledYear = computed(\n () => (year: number) => year < this.min().year || year > this.max().year,\n );\n\n protected readonly start = computed((carousel = this.carousel()) =>\n this.view() === 'month'\n ? this.month().year === this.min().year\n : carousel?.index() === carousel?.min(),\n );\n\n protected readonly end = computed((carousel = this.carousel()) =>\n this.view() === 'month'\n ? this.month().year === this.max().year\n : carousel?.index() === carousel?.max(),\n );\n\n protected readonly index = computed(\n () => this.month().year * 12 + this.month().month,\n );\n\n public readonly view = model<'day' | 'month' | 'year'>('day');\n public readonly contentMonth = input<PolymorpheusContent<TuiContext<TuiMonth>>>();\n public readonly contentYear = input<PolymorpheusContent<TuiContext<number>>>();\n public readonly showAdjacent = input(this.options.showAdjacent);\n\n protected getMonth(index: number): TuiMonth {\n return new TuiMonth(Math.floor(index / 12), index % 12);\n }\n\n protected getItems(initial: number): readonly number[] {\n return Array.from({length: 12}, (_, index) => initial + index);\n }\n\n protected onSpin(step: number): void {\n this.carousel()?.[step > 0 ? 'next' : 'prev']();\n\n if (this.view() === 'month') {\n this.month.update((month) => month.append({year: step}));\n }\n }\n\n protected onYear(year: number): void {\n this.month.update(({month}) => new TuiMonth(year, month));\n this.view.set('month');\n }\n\n protected onMonth(month: TuiMonth): void {\n this.month.set(month);\n this.view.set('day');\n }\n}\n","<header class=\"t-header\">\n @if (view() !== 'year') {\n <button\n appearance=\"\"\n tabindex=\"-1\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [textContent]=\"button()\"\n [tuiChevron]=\"false\"\n (click)=\"view.set(view() === 'day' ? 'month' : 'year')\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n ></button>\n } @else {\n @let years = month().year + (carousel()?.index() || 0) * 12 - 6 | tuiMapper: getItems;\n <b>{{ years[0] }}-{{ years[years.length - 1] }}</b>\n }\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (!dropdown?.nativeElement?.matches('input')) {\n <tui-calendar-header [mode]=\"mode()\" />\n }\n</header>\n<tui-elastic-container class=\"t-slides\">\n <section tuiSlides>\n @switch (view()) {\n @case ('day') {\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n (indexChange)=\"month.set(getMonth($event))\"\n >\n <tui-month\n *tuiItem=\"let current\"\n class=\"t-calendar\"\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"current | tuiMapper: getMonth\"\n [showAdjacent]=\"showAdjacent()\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n />\n </tui-carousel>\n }\n\n @case ('month') {\n <tui-data-grid\n class=\"t-grid\"\n [content]=\"contentMonth() ?? content()\"\n [disabledItemHandler]=\"disabledMonth()\"\n [items]=\"year()\"\n [value]=\"months()\"\n (pick)=\"onMonth($event)\"\n />\n }\n\n @case ('year') {\n <tui-carousel\n [max]=\"yearMax()\"\n [min]=\"yearMin()\"\n >\n <tui-data-grid\n *tuiItem=\"let offset\"\n class=\"t-grid\"\n [content]=\"contentYear()\"\n [disabledItemHandler]=\"disabledYear()\"\n [items]=\"month().year + offset * 12 - 6 | tuiMapper: getItems\"\n [value]=\"years()\"\n (pick)=\"onYear($event)\"\n />\n </tui-carousel>\n }\n }\n </section>\n</tui-elastic-container>\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {WaIntersectionObservee} from '@ng-web-apis/intersection-observer';\nimport {TuiDay, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\nimport {TuiButton, tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {AbstractTuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiCarousel, TuiCarouselComponent} from '@taiga-ui/core/components/carousel';\nimport {tuiTextfieldOptionsProvider} from '@taiga-ui/core/components/textfield';\nimport {tuiAsAuxiliary} from '@taiga-ui/core/tokens';\nimport {TuiMonthComponent} from '@taiga-ui/experimental/components/month';\nimport {TuiSlides} from '@taiga-ui/layout/components/slides';\n\nimport {TuiCalendarHeader} from './calendar-header.component';\nimport {TuiDatePicker} from './date-picker';\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-calendar[months]',\n imports: [\n FormsModule,\n TuiButton,\n TuiCalendarHeader,\n TuiCarousel,\n TuiMapperPipe,\n // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports\n TuiMonthComponent,\n TuiSlides,\n WaIntersectionObservee,\n ],\n templateUrl: './calendar-multi.component.html',\n styleUrl: './calendar-multi.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsAuxiliary(TuiCalendarMultiComponent),\n tuiProvide(AbstractTuiCalendar, TuiCalendarMultiComponent),\n tuiButtonOptionsProvider({size: 'xs', appearance: 'flat'}),\n tuiTextfieldOptionsProvider({size: signal('m'), cleaner: signal(false)}),\n ],\n host: {'[style.--t-months]': 'months()'},\n})\nexport class TuiCalendarMultiComponent<\n T extends 'multi' | 'range' | 'single',\n> extends TuiDatePicker<T> {\n protected readonly visible = signal<Record<string, number>>({});\n protected readonly carousel = viewChild(TuiCarouselComponent);\n protected readonly scroll = viewChild.required(TuiCarouselComponent, {\n read: ElementRef,\n });\n\n protected readonly height = computed(() =>\n Math.max(...Object.values(this.visible())),\n );\n\n protected readonly start = computed(\n (carousel = this.carousel()) => carousel?.index() === carousel?.min(),\n );\n\n protected readonly end = computed(\n (carousel = this.carousel()) => carousel?.index() === carousel?.max(),\n );\n\n protected readonly index = computed(\n () => this.month().year * 12 + this.month().month,\n );\n\n public readonly months = input<1 | 2 | 3>(2);\n\n protected override updateMonth(day?: TuiDay | null): void {\n this.month.update(({year, month}) => {\n const updated = new TuiDay(day?.year || year, day?.month || month, 1);\n const limited = updated.dayLimit(this.min(), this.max());\n\n return Object.keys(this.visible()).includes(limited.toJSON().slice(0, -3))\n ? new TuiMonth(year, month)\n : limited;\n });\n }\n\n protected getMonth(index: number): TuiMonth {\n return new TuiMonth(Math.floor(index / 12), index % 12);\n }\n\n protected onSpin(step: number): void {\n const el: HTMLElement = this.scroll().nativeElement;\n const sign = el.matches('[dir=\"rtl\"] :scope') ? -1 : 1;\n const left = el.offsetWidth / this.months();\n\n el.scrollTo({left: el.scrollLeft + left * sign * step, behavior: 'smooth'});\n }\n\n protected onIntersection(visible: boolean, month: TuiMonth, height: number): void {\n this.visible.update((current) => {\n const {[month.toJSON()]: removed, ...rest} = current;\n\n return visible ? {...current, [month.toJSON()]: removed || height} : rest;\n });\n }\n}\n","<header class=\"t-buttons\">\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (!dropdown?.nativeElement?.matches('input')) {\n <tui-calendar-header [mode]=\"mode()\" />\n }\n</header>\n<section\n tuiSlides\n class=\"t-slides\"\n>\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n [style.max-block-size.px]=\"height()\"\n (indexChange)=\"month.set(getMonth(index() + ($event - index()) * months()))\"\n >\n <ng-container *tuiItem=\"let current\">\n @for (_ of '-'.repeat(months()); track $index) {\n @let month = index() + (current - index()) * months() + $index | tuiMapper: getMonth;\n <div\n #el\n class=\"t-calendar\"\n >\n <div class=\"t-header\">{{ i18n()[month.month] }} {{ month.year }}</div>\n <tui-month\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"month\"\n [showAdjacent]=\"false\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n (waIntersectionObservee)=\"onIntersection(!!$event[0]?.isIntersecting, month, el.offsetHeight)\"\n />\n </div>\n }\n </ng-container>\n </tui-carousel>\n</section>\n","import {TuiCalendarComponent} from './calendar.component';\nimport {TuiCalendarMultiComponent} from './calendar-multi.component';\n\nexport const TuiCalendar = [TuiCalendarComponent, TuiCalendarMultiComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEO,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GAAA;AACgB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC;QACpC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QAEzD,IAAA,CAAA,IAAI,GAAG,KAAK,EAAgC;IAChE;;AALa,iBAAiB,GAAA,UAAA,CAAA;AAzD7B,IAAA,SAAS,CAAC;AACP,QAAA,QAAQ,EAAE,qBAAqB;QAC/B,OAAO,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;AAC1E,QAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCT,IAAA,CAAA;AACD,QAAA,MAAM,EAAE;;;;;;;;;;;;;AAaP,IAAA,CAAA;QACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,2BAA2B,CAAC,EAAC,IAAI,EAAE,EAAE,EAAC,CAAC,CAAC;KACvD;AACY,CAAA,EAAA,iBAAiB,CAK7B;;ACvDK,MAAgB,aAEpB,SAAQ,mBAAkC,CAAA;AAH5C,IAAA,WAAA,GAAA;;AAIuB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,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MAAM,EAAA,SAAA,EACpC;AACP,wBAAA,cAAc,CAAA,yBAAA,CAA2B;wBACzC,UAAU,CAAC,mBAAmB,EAAA,yBAAA,CAA4B;wBAC1D,wBAAwB,CAAC,EAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAC,CAAC;AAC1D,wBAAA,2BAA2B,CAAC,EAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EAAC,CAAC;AAC3E,qBAAA,EAAA,IAAA,EACK,EAAC,oBAAoB,EAAE,UAAU,EAAC,EAAA,QAAA,EAAA,irEAAA,EAAA,MAAA,EAAA,CAAA,y1BAAA,CAAA,EAAA;;;ME/C/B,WAAW,GAAG,CAAC,oBAAoB,EAAE,yBAAyB;;ACH3E;;AAEG;;;;"}
@@ -40,7 +40,7 @@ class TuiFile {
40
40
  <ng-content select="[tuiTitle]" />
41
41
  </label>
42
42
  <ng-content select="[tuiButtonX]" />
43
- `, isInline: true, styles: ["[data-tui-version=\"5.18.0\"]{@import \"./file.styles.less\";}\n"], dependencies: [{ kind: "directive", type: TuiAvatar, selector: "[tuiAvatar]", inputs: ["size", "round", "badge"] }, { kind: "directive", type: TuiSlides, selector: "[tuiSlides]", inputs: ["tuiSlides"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
43
+ `, isInline: true, styles: ["[data-tui-version=\"5.19.0-canary.b454a40\"]{@import \"./file.styles.less\";}\n"], dependencies: [{ kind: "directive", type: TuiAvatar, selector: "[tuiAvatar]", inputs: ["size", "round", "badge"] }, { kind: "directive", type: TuiSlides, selector: "[tuiSlides]", inputs: ["tuiSlides"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
44
44
  }
45
45
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiFile, decorators: [{
46
46
  type: Component,
@@ -65,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
65
65
  ], hostDirectives: [{ directive: TuiCell, inputs: ['tuiCell: size'] }], host: {
66
66
  tuiFile: '',
67
67
  '[attr.data-orientation]': 'orientation()',
68
- }, styles: ["[data-tui-version=\"5.18.0\"]{@import \"./file.styles.less\";}\n"] }]
68
+ }, styles: ["[data-tui-version=\"5.19.0-canary.b454a40\"]{@import \"./file.styles.less\";}\n"] }]
69
69
  }] });
70
70
 
71
71
  class TuiFilePipe {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-experimental-components-file.mjs","sources":["../../../projects/experimental/components/file/file.options.ts","../../../projects/experimental/components/file/file.directive.ts","../../../projects/experimental/components/file/file.pipe.ts","../../../projects/experimental/components/file/taiga-ui-experimental-components-file.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiOrientation, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiFileOptions {\n readonly size: TuiSizeL | TuiSizeS | '';\n readonly orientation: TuiOrientation;\n}\n\nexport const TUI_FILE_OPTIONS_DEFAULT_OPTIONS: TuiFileOptions = {\n size: 'l',\n orientation: 'vertical',\n};\n\nexport const [TUI_FILE_OPTIONS_OPTIONS, tuiFileOptionsProvider] = tuiCreateOptions(\n TUI_FILE_OPTIONS_DEFAULT_OPTIONS,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiCell, tuiCellOptionsProvider} from '@taiga-ui/core/components/cell';\nimport {tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {tuiButtonXOptionsProvider} from '@taiga-ui/core/directives/button-x';\nimport {tuiHintOptionsProvider} from '@taiga-ui/core/portals/hint';\nimport {TuiAvatar, tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {TuiSlides} from '@taiga-ui/layout/components/slides';\n\nimport {TUI_FILE_OPTIONS_OPTIONS} from './file.options';\n\n@Component({\n selector: '[tuiFile]',\n imports: [TuiAvatar, TuiSlides],\n template: `\n <label>\n <span\n tuiSlides\n tuiAvatar\n >\n <ng-content />\n </span>\n <ng-content select=\"[tuiTitle]\" />\n </label>\n <ng-content select=\"[tuiButtonX]\" />\n `,\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './file.styles.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiCellOptionsProvider(() => ({size: inject(TUI_FILE_OPTIONS_OPTIONS).size})),\n tuiAvatarOptionsProvider({round: false, appearance: 'secondary-grayscale'}),\n tuiButtonOptionsProvider({size: 's', appearance: 'action'}),\n tuiButtonXOptionsProvider({size: 'xs', appearance: 'icon'}),\n tuiLoaderOptionsProvider({size: 'm', inheritColor: true}),\n tuiHintOptionsProvider({appearance: 'floating', direction: 'top'}),\n ],\n hostDirectives: [{directive: TuiCell, inputs: ['tuiCell: size']}],\n host: {\n tuiFile: '',\n '[attr.data-orientation]': 'orientation()',\n },\n})\nexport class TuiFile {\n public readonly orientation = input(inject(TUI_FILE_OPTIONS_OPTIONS).orientation);\n}\n","import {type OnDestroy, Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({name: 'tuiFile'})\nexport class TuiFilePipe implements PipeTransform, OnDestroy {\n private url = '';\n\n public transform(value: File): string {\n URL.revokeObjectURL(this.url);\n this.url = URL.createObjectURL(value);\n\n return this.url;\n }\n\n public ngOnDestroy(): void {\n URL.revokeObjectURL(this.url);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAQO,MAAM,gCAAgC,GAAmB;AAC5D,IAAA,IAAI,EAAE,GAAG;AACT,IAAA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,EAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAC,CAAC;wBAC3D,wBAAwB,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAC,CAAC;wBACzD,sBAAsB,CAAC,EAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC;AACrE,qBAAA,EAAA,cAAA,EACe,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,eAAe,CAAC,EAAC,CAAC,EAAA,IAAA,EAC3D;AACF,wBAAA,OAAO,EAAE,EAAE;AACX,wBAAA,yBAAyB,EAAE,eAAe;AAC7C,qBAAA,EAAA,MAAA,EAAA,CAAA,kEAAA,CAAA,EAAA;;;MCjDQ,WAAW,CAAA;AADxB,IAAA,WAAA,GAAA;QAEY,IAAA,CAAA,GAAG,GAAG,EAAE;AAYnB,IAAA;AAVU,IAAA,SAAS,CAAC,KAAW,EAAA;AACxB,QAAA,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC;QAErC,OAAO,IAAI,CAAC,GAAG;IACnB;IAEO,WAAW,GAAA;AACd,QAAA,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC;IACjC;+GAZS,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,IAAI;mBAAC,EAAC,IAAI,EAAE,SAAS,EAAC;;;ACFvB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-experimental-components-file.mjs","sources":["../../../projects/experimental/components/file/file.options.ts","../../../projects/experimental/components/file/file.directive.ts","../../../projects/experimental/components/file/file.pipe.ts","../../../projects/experimental/components/file/taiga-ui-experimental-components-file.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiOrientation, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiFileOptions {\n readonly size: TuiSizeL | TuiSizeS | '';\n readonly orientation: TuiOrientation;\n}\n\nexport const TUI_FILE_OPTIONS_DEFAULT_OPTIONS: TuiFileOptions = {\n size: 'l',\n orientation: 'vertical',\n};\n\nexport const [TUI_FILE_OPTIONS_OPTIONS, tuiFileOptionsProvider] = tuiCreateOptions(\n TUI_FILE_OPTIONS_DEFAULT_OPTIONS,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiCell, tuiCellOptionsProvider} from '@taiga-ui/core/components/cell';\nimport {tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {tuiButtonXOptionsProvider} from '@taiga-ui/core/directives/button-x';\nimport {tuiHintOptionsProvider} from '@taiga-ui/core/portals/hint';\nimport {TuiAvatar, tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {TuiSlides} from '@taiga-ui/layout/components/slides';\n\nimport {TUI_FILE_OPTIONS_OPTIONS} from './file.options';\n\n@Component({\n selector: '[tuiFile]',\n imports: [TuiAvatar, TuiSlides],\n template: `\n <label>\n <span\n tuiSlides\n tuiAvatar\n >\n <ng-content />\n </span>\n <ng-content select=\"[tuiTitle]\" />\n </label>\n <ng-content select=\"[tuiButtonX]\" />\n `,\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './file.styles.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiCellOptionsProvider(() => ({size: inject(TUI_FILE_OPTIONS_OPTIONS).size})),\n tuiAvatarOptionsProvider({round: false, appearance: 'secondary-grayscale'}),\n tuiButtonOptionsProvider({size: 's', appearance: 'action'}),\n tuiButtonXOptionsProvider({size: 'xs', appearance: 'icon'}),\n tuiLoaderOptionsProvider({size: 'm', inheritColor: true}),\n tuiHintOptionsProvider({appearance: 'floating', direction: 'top'}),\n ],\n hostDirectives: [{directive: TuiCell, inputs: ['tuiCell: size']}],\n host: {\n tuiFile: '',\n '[attr.data-orientation]': 'orientation()',\n },\n})\nexport class TuiFile {\n public readonly orientation = input(inject(TUI_FILE_OPTIONS_OPTIONS).orientation);\n}\n","import {type OnDestroy, Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({name: 'tuiFile'})\nexport class TuiFilePipe implements PipeTransform, OnDestroy {\n private url = '';\n\n public transform(value: File): string {\n URL.revokeObjectURL(this.url);\n this.url = URL.createObjectURL(value);\n\n return this.url;\n }\n\n public ngOnDestroy(): void {\n URL.revokeObjectURL(this.url);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAQO,MAAM,gCAAgC,GAAmB;AAC5D,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,WAAW,EAAE,UAAU;;AAGpB,MAAM,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,GAAG,gBAAgB,CAC9E,gCAAgC;;MCwCvB,OAAO,CAAA;AApCpB,IAAA,WAAA,GAAA;QAqCoB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,WAAW,CAAC;AACpF,IAAA;+GAFY,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAP,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAA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AA,iFAAA,CAAA,EAAA;;;MCjDQ,WAAW,CAAA;AADxB,IAAA,WAAA,GAAA;QAEY,IAAA,CAAA,GAAG,GAAG,EAAE;AAYnB,IAAA;AAVU,IAAA,SAAS,CAAC,KAAW,EAAA;AACxB,QAAA,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC;QAErC,OAAO,IAAI,CAAC,GAAG;IACnB;IAEO,WAAW,GAAA;AACd,QAAA,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC;IACjC;+GAZS,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,IAAI;mBAAC,EAAC,IAAI,EAAE,SAAS,EAAC;;;ACFvB;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
+ export * from '@taiga-ui/experimental/components/calendar';
1
2
  export * from '@taiga-ui/experimental/components/data-grid';
2
- export * from '@taiga-ui/experimental/components/date-picker';
3
3
  export * from '@taiga-ui/experimental/components/file';
4
4
  export * from '@taiga-ui/experimental/components/month';
5
5
  export * from '@taiga-ui/experimental/components/popout';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/experimental",
3
- "version": "5.18.0",
3
+ "version": "5.19.0-canary.b454a40",
4
4
  "description": "A package with Taiga UI experimental components",
5
5
  "keywords": [
6
6
  "angular",
@@ -30,11 +30,11 @@
30
30
  "peerDependencies": {
31
31
  "@angular/common": ">=19.0.0",
32
32
  "@angular/core": ">=19.0.0",
33
- "@taiga-ui/addon-commerce": "5.18.0",
34
- "@taiga-ui/cdk": "5.18.0",
35
- "@taiga-ui/core": "5.18.0",
36
- "@taiga-ui/kit": "5.18.0",
37
- "@taiga-ui/layout": "5.18.0",
33
+ "@taiga-ui/addon-commerce": "5.19.0",
34
+ "@taiga-ui/cdk": "5.19.0",
35
+ "@taiga-ui/core": "5.19.0",
36
+ "@taiga-ui/kit": "5.19.0",
37
+ "@taiga-ui/layout": "5.19.0",
38
38
  "@taiga-ui/polymorpheus": "^5.0.1",
39
39
  "rxjs": ">=7.0.0"
40
40
  },
@@ -52,14 +52,18 @@
52
52
  "types": "./components/index.d.ts",
53
53
  "default": "./fesm2022/taiga-ui-experimental-components.mjs"
54
54
  },
55
- "./components/date-picker": {
56
- "types": "./components/date-picker/index.d.ts",
57
- "default": "./fesm2022/taiga-ui-experimental-components-date-picker.mjs"
55
+ "./components/calendar": {
56
+ "types": "./components/calendar/index.d.ts",
57
+ "default": "./fesm2022/taiga-ui-experimental-components-calendar.mjs"
58
58
  },
59
59
  "./components/file": {
60
60
  "types": "./components/file/index.d.ts",
61
61
  "default": "./fesm2022/taiga-ui-experimental-components-file.mjs"
62
62
  },
63
+ "./components/data-grid": {
64
+ "types": "./components/data-grid/index.d.ts",
65
+ "default": "./fesm2022/taiga-ui-experimental-components-data-grid.mjs"
66
+ },
63
67
  "./components/month": {
64
68
  "types": "./components/month/index.d.ts",
65
69
  "default": "./fesm2022/taiga-ui-experimental-components-month.mjs"
@@ -71,10 +75,6 @@
71
75
  "./components/search-results": {
72
76
  "types": "./components/search-results/index.d.ts",
73
77
  "default": "./fesm2022/taiga-ui-experimental-components-search-results.mjs"
74
- },
75
- "./components/data-grid": {
76
- "types": "./components/data-grid/index.d.ts",
77
- "default": "./fesm2022/taiga-ui-experimental-components-data-grid.mjs"
78
78
  }
79
79
  },
80
80
  "sideEffects": false,
@@ -1,49 +0,0 @@
1
- import { TuiDay, TuiDayRange, TuiMonth } from '@taiga-ui/cdk/date-time';
2
- import { type TuiBooleanHandler, type TuiContext } from '@taiga-ui/cdk/types';
3
- import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
4
- import { TuiCarouselComponent } from '@taiga-ui/core/components/carousel';
5
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
6
- import * as i0 from "@angular/core";
7
- type DatePicker<T> = T extends 'single' ? TuiDay : T extends 'multi' ? readonly TuiDay[] : TuiDayRange;
8
- /**
9
- * @deprecated: work in progress, do not use!
10
- */
11
- export declare class TuiDatePicker<T extends 'multi' | 'range' | 'single' = 'single'> extends AbstractTuiCalendar<DatePicker<T>> {
12
- protected readonly options: import("@taiga-ui/experimental/components/month").TuiMonthOptions;
13
- protected readonly carousel: import("@angular/core").Signal<TuiCarouselComponent | undefined>;
14
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
15
- protected readonly texts: import("@angular/core").Signal<readonly [previous: string, next: string]>;
16
- protected readonly i18n: import("@angular/core").Signal<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>;
17
- protected readonly dropdown: import("@angular/core").ElementRef<Element> | null;
18
- protected readonly content: import("@angular/core").Signal<PolymorpheusContent<TuiContext<TuiMonth>>>;
19
- protected readonly years: import("@angular/core").Signal<number[]>;
20
- protected readonly year: import("@angular/core").Signal<TuiMonth[]>;
21
- protected readonly months: import("@angular/core").Signal<TuiMonth[]>;
22
- protected readonly button: import("@angular/core").Signal<string>;
23
- protected readonly yearMin: import("@angular/core").Signal<number>;
24
- protected readonly yearMax: import("@angular/core").Signal<number>;
25
- protected readonly disabledDay: import("@angular/core").Signal<(day: TuiDay) => boolean>;
26
- protected readonly disabledMonth: import("@angular/core").Signal<TuiBooleanHandler<TuiMonth>>;
27
- protected readonly disabledYear: import("@angular/core").Signal<(year: number) => boolean>;
28
- protected readonly start: import("@angular/core").Signal<boolean>;
29
- protected readonly end: import("@angular/core").Signal<boolean>;
30
- protected readonly index: import("@angular/core").Signal<number>;
31
- protected readonly sync: import("@angular/core").EffectRef;
32
- readonly view: import("@angular/core").ModelSignal<"day" | "month" | "year">;
33
- readonly mode: import("@angular/core").InputSignal<T | undefined>;
34
- readonly contentDay: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<TuiDay>>>;
35
- readonly contentMonth: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<TuiMonth>>>;
36
- readonly contentYear: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<number>>>;
37
- readonly dayType: import("@angular/core").InputSignal<import("@taiga-ui/cdk/types").TuiHandler<TuiDay, string>>;
38
- readonly showAdjacent: import("@angular/core").InputSignal<boolean>;
39
- readonly showWeek: import("@angular/core").InputSignal<boolean>;
40
- protected getMonth(index: number): TuiMonth;
41
- protected getItems(initial: number): readonly number[];
42
- protected onSpin(step: number): void;
43
- protected onYear(year: number): void;
44
- protected onMonth(month: TuiMonth): void;
45
- protected onDay(day: TuiDay): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDatePicker<any>, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDatePicker<any>, "tui-date-picker", never, { "view": { "alias": "view"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "contentDay": { "alias": "contentDay"; "required": false; "isSignal": true; }; "contentMonth": { "alias": "contentMonth"; "required": false; "isSignal": true; }; "contentYear": { "alias": "contentYear"; "required": false; "isSignal": true; }; "dayType": { "alias": "dayType"; "required": false; "isSignal": true; }; "showAdjacent": { "alias": "showAdjacent"; "required": false; "isSignal": true; }; "showWeek": { "alias": "showWeek"; "required": false; "isSignal": true; }; }, { "view": "viewChange"; }, never, never, true, never>;
48
- }
49
- export {};
@@ -1,2 +0,0 @@
1
- export * from './date-picker.component';
2
- export * from './date-picker-header.component';
@@ -1,219 +0,0 @@
1
- import { coerceArray } from '@angular/cdk/coercion';
2
- import * as i0 from '@angular/core';
3
- import { inject, input, Component, ChangeDetectionStrategy, viewChild, computed, effect, model, signal } from '@angular/core';
4
- import { FormsModule } from '@angular/forms';
5
- import { TuiDayRange, TuiMonth, TuiDay } from '@taiga-ui/cdk/date-time';
6
- import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
7
- import { tuiProvide } from '@taiga-ui/cdk/utils/di';
8
- import { tuiArrayToggle } from '@taiga-ui/cdk/utils/miscellaneous';
9
- import { TuiButton, tuiButtonOptionsProvider } from '@taiga-ui/core/components/button';
10
- import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
11
- import * as i1 from '@taiga-ui/core/components/carousel';
12
- import { TuiCarouselComponent, TuiCarousel } from '@taiga-ui/core/components/carousel';
13
- import { TuiLink } from '@taiga-ui/core/components/link';
14
- import { tuiTextfieldOptionsProvider } from '@taiga-ui/core/components/textfield';
15
- import { TUI_DROPDOWN_HOST } from '@taiga-ui/core/portals/dropdown';
16
- import { TUI_COMMON_ICONS, TUI_SPIN_TEXTS, TUI_MONTHS, tuiAsAuxiliary } from '@taiga-ui/core/tokens';
17
- import { TuiDataGrid } from '@taiga-ui/experimental/components/data-grid';
18
- import { TUI_MONTH_OPTIONS, TuiMonthComponent } from '@taiga-ui/experimental/components/month';
19
- import { TuiChevron } from '@taiga-ui/kit/directives/chevron';
20
- import { TuiElasticContainer } from '@taiga-ui/layout/components/elastic-container';
21
- import { TuiSlides } from '@taiga-ui/layout/components/slides';
22
- import { __decorate } from 'tslib';
23
- import { tuiInputDateOptionsProvider, TuiInputDate } from '@taiga-ui/kit/components/input-date';
24
- import { TuiInputDateMulti } from '@taiga-ui/kit/components/input-date-multi';
25
- import { TuiInputDateRange } from '@taiga-ui/kit/components/input-date-range';
26
- import * as i2 from '@taiga-ui/cdk/directives/item';
27
-
28
- let TuiDatePickerHeader = class TuiDatePickerHeader {
29
- constructor() {
30
- this.picker = inject(AbstractTuiCalendar);
31
- this.dropdown = inject(TUI_DROPDOWN_HOST, { optional: true });
32
- this.mode = input();
33
- }
34
- };
35
- TuiDatePickerHeader = __decorate([
36
- Component({
37
- selector: 'tui-date-picker-header',
38
- imports: [FormsModule, TuiInputDate, TuiInputDateMulti, TuiInputDateRange],
39
- template: `
40
- @switch (mode()) {
41
- @case ('multi') {
42
- <tui-textfield multi>
43
- <input
44
- tuiInputDateMulti
45
- [attr.aria-labelledby]="dropdown?.nativeElement?.id || null"
46
- [max]="picker.max()"
47
- [min]="picker.min()"
48
- [(ngModel)]="picker.value"
49
- />
50
- </tui-textfield>
51
- }
52
- @case ('range') {
53
- <tui-textfield>
54
- <input
55
- tuiInputDateRange
56
- [attr.aria-labelledby]="dropdown?.nativeElement?.id || null"
57
- [max]="picker.max()"
58
- [min]="picker.min()"
59
- [(ngModel)]="picker.value"
60
- />
61
- </tui-textfield>
62
- }
63
- @default {
64
- <tui-textfield>
65
- <input
66
- tuiInputDate
67
- [attr.aria-labelledby]="dropdown?.nativeElement?.id || null"
68
- [max]="picker.max()"
69
- [min]="picker.min()"
70
- [(ngModel)]="picker.value"
71
- />
72
- </tui-textfield>
73
- }
74
- }
75
- `,
76
- styles: `
77
- :host {
78
- position: absolute;
79
- inset: 0.125rem;
80
- opacity: 0;
81
- pointer-events: none;
82
- visibility: visible;
83
-
84
- &:focus-within {
85
- opacity: 1;
86
- pointer-events: auto;
87
- }
88
- }
89
- `,
90
- changeDetection: ChangeDetectionStrategy.OnPush,
91
- providers: [tuiInputDateOptionsProvider({ icon: '' })],
92
- })
93
- ], TuiDatePickerHeader);
94
-
95
- /**
96
- * @deprecated: work in progress, do not use!
97
- */
98
- class TuiDatePicker extends AbstractTuiCalendar {
99
- constructor() {
100
- super(...arguments);
101
- this.options = inject(TUI_MONTH_OPTIONS);
102
- this.carousel = viewChild(TuiCarouselComponent);
103
- this.icons = inject(TUI_COMMON_ICONS);
104
- this.texts = inject(TUI_SPIN_TEXTS);
105
- this.i18n = inject(TUI_MONTHS);
106
- this.dropdown = inject(TUI_DROPDOWN_HOST, { optional: true });
107
- this.content = computed(() => (c) => this.i18n()[c.$implicit.month]);
108
- this.years = computed((value = this.value()) => value instanceof TuiDayRange
109
- ? Array.from({ length: value.to.year - value.from.year + 1 }, (_, index) => value.from.year + index)
110
- : Array.from(new Set(coerceArray(value ?? []).map(({ year }) => year))));
111
- this.year = computed(() => Array.from({ length: 12 }, (_, index) => new TuiMonth(this.month().year, index)));
112
- this.months = computed((value = this.value()) => this.year().filter((month) => value instanceof TuiDayRange
113
- ? value.monthInRange(month)
114
- : coerceArray(value ?? []).some((day) => day.monthSame(month))));
115
- this.button = computed(() => this.view() === 'day'
116
- ? `${this.i18n()[this.month().month]} ${this.month().formattedYear}`
117
- : this.month().formattedYear);
118
- this.yearMin = computed(() => Math.ceil((this.min().year - this.month().year - 5) / 12));
119
- this.yearMax = computed(() => Math.floor((this.max().year - this.month().year + 6) / 12));
120
- this.disabledDay = computed(() => (day) => day < this.min() || day > this.max() || this.disabledItemHandler()(day));
121
- this.disabledMonth = computed(() => (month) => month.monthBefore(this.min()) || month.monthAfter(this.max()));
122
- this.disabledYear = computed(() => (year) => year < this.min().year || year > this.max().year);
123
- this.start = computed((carousel = this.carousel()) => this.view() === 'month'
124
- ? this.month().year === this.min().year
125
- : carousel?.index() === carousel?.min());
126
- this.end = computed((carousel = this.carousel()) => this.view() === 'month'
127
- ? this.month().year === this.max().year
128
- : carousel?.index() === carousel?.max());
129
- this.index = computed(() => this.month().year * 12 + this.month().month);
130
- this.sync = effect(() => {
131
- const value = this.value();
132
- const [day] = value instanceof TuiDayRange ? [value.from] : coerceArray(value);
133
- if (!day || day.year < 9000) {
134
- this.month.update(({ month, year }) => (day || new TuiDay(year, month, 1)).dayLimit(this.min(), this.max()));
135
- }
136
- });
137
- this.view = model('day');
138
- this.mode = input();
139
- this.contentDay = input();
140
- this.contentMonth = input();
141
- this.contentYear = input();
142
- this.dayType = input(this.options.dayType);
143
- this.showAdjacent = input(this.options.showAdjacent);
144
- this.showWeek = input(this.options.showWeek);
145
- }
146
- getMonth(index) {
147
- return new TuiMonth(Math.floor(index / 12), index % 12);
148
- }
149
- getItems(initial) {
150
- return Array.from({ length: 12 }, (_, index) => initial + index);
151
- }
152
- onSpin(step) {
153
- this.carousel()?.[step > 0 ? 'next' : 'prev']();
154
- if (this.view() === 'month') {
155
- this.month.update((month) => month.append({ year: step }));
156
- }
157
- }
158
- onYear(year) {
159
- this.month.update(({ month }) => new TuiMonth(year, month));
160
- this.view.set('month');
161
- }
162
- onMonth(month) {
163
- this.month.set(month);
164
- this.view.set('day');
165
- }
166
- onDay(day) {
167
- if (this.mode() === 'range') {
168
- this.value.update((value) => value instanceof TuiDayRange && value.from === value.to
169
- ? TuiDayRange.sort(value.to, day.append({}))
170
- : new TuiDayRange(day, day));
171
- }
172
- else if (this.mode() === 'multi') {
173
- this.value.update((value) => Array.isArray(value)
174
- ? tuiArrayToggle(value, day, (a, b) => a.daySame(b))
175
- : [day]);
176
- }
177
- else {
178
- this.value.set(day);
179
- }
180
- }
181
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiDatePicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
182
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiDatePicker, isStandalone: true, selector: "tui-date-picker", inputs: { view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, contentDay: { classPropertyName: "contentDay", publicName: "contentDay", isSignal: true, isRequired: false, transformFunction: null }, contentMonth: { classPropertyName: "contentMonth", publicName: "contentMonth", isSignal: true, isRequired: false, transformFunction: null }, contentYear: { classPropertyName: "contentYear", publicName: "contentYear", isSignal: true, isRequired: false, transformFunction: null }, dayType: { classPropertyName: "dayType", publicName: "dayType", isSignal: true, isRequired: false, transformFunction: null }, showAdjacent: { classPropertyName: "showAdjacent", publicName: "showAdjacent", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { view: "viewChange" }, providers: [
183
- tuiAsAuxiliary(TuiDatePicker),
184
- tuiProvide(AbstractTuiCalendar, TuiDatePicker),
185
- tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
186
- tuiTextfieldOptionsProvider({ size: signal('m'), cleaner: signal(false) }),
187
- ], viewQueries: [{ propertyName: "carousel", first: true, predicate: TuiCarouselComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<header class=\"t-header\">\n @if (view() !== 'year') {\n <button\n appearance=\"\"\n tabindex=\"-1\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [textContent]=\"button()\"\n [tuiChevron]=\"false\"\n (click)=\"view.set(view() === 'day' ? 'month' : 'year')\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n ></button>\n } @else {\n @let years = month().year + (carousel()?.index() || 0) * 12 - 6 | tuiMapper: getItems;\n <b>{{ years[0] }}-{{ years[years.length - 1] }}</b>\n }\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (dropdown?.nativeElement?.matches(':not(input)')) {\n <tui-date-picker-header [mode]=\"mode()\" />\n }\n</header>\n<tui-elastic-container class=\"t-slides\">\n <section tuiSlides>\n @switch (view()) {\n @case ('day') {\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n (indexChange)=\"month.set(getMonth($event))\"\n >\n <tui-month\n *tuiItem=\"let current\"\n class=\"t-calendar\"\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"current | tuiMapper: getMonth\"\n [showAdjacent]=\"showAdjacent()\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n />\n </tui-carousel>\n }\n\n @case ('month') {\n <tui-data-grid\n class=\"t-grid\"\n [content]=\"contentMonth() ?? content()\"\n [disabledItemHandler]=\"disabledMonth()\"\n [items]=\"year()\"\n [value]=\"months()\"\n (pick)=\"onMonth($event)\"\n />\n }\n\n @case ('year') {\n <tui-carousel\n [max]=\"yearMax()\"\n [min]=\"yearMin()\"\n >\n <tui-data-grid\n *tuiItem=\"let offset\"\n class=\"t-grid\"\n [content]=\"contentYear()\"\n [disabledItemHandler]=\"disabledYear()\"\n [items]=\"month().year + offset * 12 - 6 | tuiMapper: getItems\"\n [value]=\"years()\"\n (pick)=\"onYear($event)\"\n />\n </tui-carousel>\n }\n }\n </section>\n</tui-elastic-container>\n", styles: [":host{display:block;inline-size:calc(20rem * var(--tui-font-scale));min-inline-size:calc(20rem * var(--tui-font-scale));flex:1;box-sizing:content-box}:host-context(tui-dropdown){padding:.5rem}:host-context(tui-dropdown):not(:only-child){box-shadow:0 0 0 1px var(--tui-border-normal)}.t-header{position:relative;display:flex;gap:.25rem;align-items:center;justify-content:flex-end;padding:.5rem .75rem 1rem;font:var(--tui-typography-ui-l)}.t-header:focus-within{visibility:hidden}.t-header :first-child{margin-inline-end:auto}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);font:inherit;font-weight:700;text-decoration:none}@media(hover:hover)and (pointer:fine){.t-button:hover{opacity:var(--tui-disabled-opacity)}}.t-chevron{transform:scaleX(var(--tui-inline))}.t-grid{padding:0 .5rem .5rem}.t-slides{margin:0 -.5rem}.t-calendar{padding:0 .5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "component", type: i1.TuiCarouselComponent, selector: "tui-carousel", inputs: ["index", "min", "max"], outputs: ["indexChange"] }, { kind: "directive", type: i2.TuiItem, selector: "[tuiItem]" }, { kind: "directive", type: TuiChevron, selector: "[tuiChevron]", inputs: ["tuiChevron"] }, { kind: "component", type: TuiDataGrid, selector: "tui-data-grid", inputs: ["items", "content", "value", "disabledItemHandler"], outputs: ["pick"] }, { kind: "component", type: TuiDatePickerHeader, selector: "tui-date-picker-header", inputs: ["mode"] }, { kind: "component", type: TuiElasticContainer, selector: "tui-elastic-container" }, { kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }, { kind: "component", type:
188
- // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
189
- TuiMonthComponent, selector: "tui-month", inputs: ["month", "value", "content", "dayType", "showAdjacent", "showWeek", "disabledItemHandler"], outputs: ["pick"] }, { kind: "directive", type: TuiSlides, selector: "[tuiSlides]", inputs: ["tuiSlides"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
190
- }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiDatePicker, decorators: [{
192
- type: Component,
193
- args: [{ selector: 'tui-date-picker', imports: [
194
- FormsModule,
195
- TuiButton,
196
- TuiCarousel,
197
- TuiChevron,
198
- TuiDataGrid,
199
- TuiDatePickerHeader,
200
- TuiElasticContainer,
201
- TuiLink,
202
- TuiMapperPipe,
203
- // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
204
- TuiMonthComponent,
205
- TuiSlides,
206
- ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
207
- tuiAsAuxiliary(TuiDatePicker),
208
- tuiProvide(AbstractTuiCalendar, TuiDatePicker),
209
- tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
210
- tuiTextfieldOptionsProvider({ size: signal('m'), cleaner: signal(false) }),
211
- ], template: "<header class=\"t-header\">\n @if (view() !== 'year') {\n <button\n appearance=\"\"\n tabindex=\"-1\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [textContent]=\"button()\"\n [tuiChevron]=\"false\"\n (click)=\"view.set(view() === 'day' ? 'month' : 'year')\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n ></button>\n } @else {\n @let years = month().year + (carousel()?.index() || 0) * 12 - 6 | tuiMapper: getItems;\n <b>{{ years[0] }}-{{ years[years.length - 1] }}</b>\n }\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (dropdown?.nativeElement?.matches(':not(input)')) {\n <tui-date-picker-header [mode]=\"mode()\" />\n }\n</header>\n<tui-elastic-container class=\"t-slides\">\n <section tuiSlides>\n @switch (view()) {\n @case ('day') {\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n (indexChange)=\"month.set(getMonth($event))\"\n >\n <tui-month\n *tuiItem=\"let current\"\n class=\"t-calendar\"\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"current | tuiMapper: getMonth\"\n [showAdjacent]=\"showAdjacent()\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n />\n </tui-carousel>\n }\n\n @case ('month') {\n <tui-data-grid\n class=\"t-grid\"\n [content]=\"contentMonth() ?? content()\"\n [disabledItemHandler]=\"disabledMonth()\"\n [items]=\"year()\"\n [value]=\"months()\"\n (pick)=\"onMonth($event)\"\n />\n }\n\n @case ('year') {\n <tui-carousel\n [max]=\"yearMax()\"\n [min]=\"yearMin()\"\n >\n <tui-data-grid\n *tuiItem=\"let offset\"\n class=\"t-grid\"\n [content]=\"contentYear()\"\n [disabledItemHandler]=\"disabledYear()\"\n [items]=\"month().year + offset * 12 - 6 | tuiMapper: getItems\"\n [value]=\"years()\"\n (pick)=\"onYear($event)\"\n />\n </tui-carousel>\n }\n }\n </section>\n</tui-elastic-container>\n", styles: [":host{display:block;inline-size:calc(20rem * var(--tui-font-scale));min-inline-size:calc(20rem * var(--tui-font-scale));flex:1;box-sizing:content-box}:host-context(tui-dropdown){padding:.5rem}:host-context(tui-dropdown):not(:only-child){box-shadow:0 0 0 1px var(--tui-border-normal)}.t-header{position:relative;display:flex;gap:.25rem;align-items:center;justify-content:flex-end;padding:.5rem .75rem 1rem;font:var(--tui-typography-ui-l)}.t-header:focus-within{visibility:hidden}.t-header :first-child{margin-inline-end:auto}.t-button{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);font:inherit;font-weight:700;text-decoration:none}@media(hover:hover)and (pointer:fine){.t-button:hover{opacity:var(--tui-disabled-opacity)}}.t-chevron{transform:scaleX(var(--tui-inline))}.t-grid{padding:0 .5rem .5rem}.t-slides{margin:0 -.5rem}.t-calendar{padding:0 .5rem}\n"] }]
212
- }] });
213
-
214
- /**
215
- * Generated bundle index. Do not edit.
216
- */
217
-
218
- export { TuiDatePicker, TuiDatePickerHeader };
219
- //# sourceMappingURL=taiga-ui-experimental-components-date-picker.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-experimental-components-date-picker.mjs","sources":["../../../projects/experimental/components/date-picker/date-picker-header.component.ts","../../../projects/experimental/components/date-picker/date-picker.component.ts","../../../projects/experimental/components/date-picker/date-picker.component.html","../../../projects/experimental/components/date-picker/taiga-ui-experimental-components-date-picker.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, inject, input} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {AbstractTuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TUI_DROPDOWN_HOST} from '@taiga-ui/core/portals/dropdown';\nimport {\n TuiInputDate,\n tuiInputDateOptionsProvider,\n} from '@taiga-ui/kit/components/input-date';\nimport {TuiInputDateMulti} from '@taiga-ui/kit/components/input-date-multi';\nimport {TuiInputDateRange} from '@taiga-ui/kit/components/input-date-range';\n\n@Component({\n selector: 'tui-date-picker-header',\n imports: [FormsModule, TuiInputDate, TuiInputDateMulti, TuiInputDateRange],\n template: `\n @switch (mode()) {\n @case ('multi') {\n <tui-textfield multi>\n <input\n tuiInputDateMulti\n [attr.aria-labelledby]=\"dropdown?.nativeElement?.id || null\"\n [max]=\"picker.max()\"\n [min]=\"picker.min()\"\n [(ngModel)]=\"picker.value\"\n />\n </tui-textfield>\n }\n @case ('range') {\n <tui-textfield>\n <input\n tuiInputDateRange\n [attr.aria-labelledby]=\"dropdown?.nativeElement?.id || null\"\n [max]=\"picker.max()\"\n [min]=\"picker.min()\"\n [(ngModel)]=\"picker.value\"\n />\n </tui-textfield>\n }\n @default {\n <tui-textfield>\n <input\n tuiInputDate\n [attr.aria-labelledby]=\"dropdown?.nativeElement?.id || null\"\n [max]=\"picker.max()\"\n [min]=\"picker.min()\"\n [(ngModel)]=\"picker.value\"\n />\n </tui-textfield>\n }\n }\n `,\n styles: `\n :host {\n position: absolute;\n inset: 0.125rem;\n opacity: 0;\n pointer-events: none;\n visibility: visible;\n\n &:focus-within {\n opacity: 1;\n pointer-events: auto;\n }\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiInputDateOptionsProvider({icon: ''})],\n})\nexport class TuiDatePickerHeader {\n protected readonly picker = inject(AbstractTuiCalendar);\n protected readonly dropdown = inject(TUI_DROPDOWN_HOST, {optional: true});\n\n public readonly mode = input<'multi' | 'range' | 'single'>();\n}\n","import {coerceArray} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {type TuiBooleanHandler, type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\nimport {tuiArrayToggle} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton, tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {AbstractTuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiCarousel, TuiCarouselComponent} from '@taiga-ui/core/components/carousel';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {tuiTextfieldOptionsProvider} from '@taiga-ui/core/components/textfield';\nimport {TUI_DROPDOWN_HOST} from '@taiga-ui/core/portals/dropdown';\nimport {\n TUI_COMMON_ICONS,\n TUI_MONTHS,\n TUI_SPIN_TEXTS,\n tuiAsAuxiliary,\n} from '@taiga-ui/core/tokens';\nimport {TuiDataGrid} from '@taiga-ui/experimental/components/data-grid';\nimport {\n TUI_MONTH_OPTIONS,\n TuiMonthComponent,\n} from '@taiga-ui/experimental/components/month';\nimport {TuiChevron} from '@taiga-ui/kit/directives/chevron';\nimport {TuiElasticContainer} from '@taiga-ui/layout/components/elastic-container';\nimport {TuiSlides} from '@taiga-ui/layout/components/slides';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport {TuiDatePickerHeader} from './date-picker-header.component';\n\ntype DatePicker<T> = T extends 'single'\n ? TuiDay\n : T extends 'multi'\n ? readonly TuiDay[]\n : TuiDayRange;\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-date-picker',\n imports: [\n FormsModule,\n TuiButton,\n TuiCarousel,\n TuiChevron,\n TuiDataGrid,\n TuiDatePickerHeader,\n TuiElasticContainer,\n TuiLink,\n TuiMapperPipe,\n // eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports\n TuiMonthComponent,\n TuiSlides,\n ],\n templateUrl: './date-picker.component.html',\n styleUrl: './date-picker.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsAuxiliary(TuiDatePicker),\n tuiProvide(AbstractTuiCalendar, TuiDatePicker),\n tuiButtonOptionsProvider({size: 'xs', appearance: 'flat'}),\n tuiTextfieldOptionsProvider({size: signal('m'), cleaner: signal(false)}),\n ],\n})\nexport class TuiDatePicker<\n T extends 'multi' | 'range' | 'single' = 'single',\n> extends AbstractTuiCalendar<DatePicker<T>> {\n protected readonly options = inject(TUI_MONTH_OPTIONS);\n protected readonly carousel = viewChild(TuiCarouselComponent);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly texts = inject(TUI_SPIN_TEXTS);\n protected readonly i18n = inject(TUI_MONTHS);\n protected readonly dropdown = inject(TUI_DROPDOWN_HOST, {optional: true});\n\n protected readonly content = computed<PolymorpheusContent<TuiContext<TuiMonth>>>(\n () => (c) => this.i18n()[c.$implicit.month],\n );\n\n protected readonly years = computed((value = this.value()) =>\n value instanceof TuiDayRange\n ? Array.from(\n {length: value.to.year - value.from.year + 1},\n (_, index) => value.from.year + index,\n )\n : Array.from(new Set(coerceArray<TuiDay>(value ?? []).map(({year}) => year))),\n );\n\n protected readonly year = computed(() =>\n Array.from({length: 12}, (_, index) => new TuiMonth(this.month().year, index)),\n );\n\n protected readonly months = computed((value = this.value()) =>\n this.year().filter((month) =>\n value instanceof TuiDayRange\n ? value.monthInRange(month)\n : coerceArray<TuiDay>(value ?? []).some((day) => day.monthSame(month)),\n ),\n );\n\n protected readonly button = computed(() =>\n this.view() === 'day'\n ? `${this.i18n()[this.month().month]} ${this.month().formattedYear}`\n : this.month().formattedYear,\n );\n\n protected readonly yearMin = computed(() =>\n Math.ceil((this.min().year - this.month().year - 5) / 12),\n );\n\n protected readonly yearMax = computed(() =>\n Math.floor((this.max().year - this.month().year + 6) / 12),\n );\n\n protected readonly disabledDay = computed(\n () => (day: TuiDay) =>\n day < this.min() || day > this.max() || this.disabledItemHandler()(day),\n );\n\n protected readonly disabledMonth = computed<TuiBooleanHandler<TuiMonth>>(\n () => (month) => month.monthBefore(this.min()) || month.monthAfter(this.max()),\n );\n\n protected readonly disabledYear = computed(\n () => (year: number) => year < this.min().year || year > this.max().year,\n );\n\n protected readonly start = computed((carousel = this.carousel()) =>\n this.view() === 'month'\n ? this.month().year === this.min().year\n : carousel?.index() === carousel?.min(),\n );\n\n protected readonly end = computed((carousel = this.carousel()) =>\n this.view() === 'month'\n ? this.month().year === this.max().year\n : carousel?.index() === carousel?.max(),\n );\n\n protected readonly index = computed(\n () => this.month().year * 12 + this.month().month,\n );\n\n protected readonly sync = effect(() => {\n const value = this.value();\n const [day] = value instanceof TuiDayRange ? [value.from] : coerceArray(value);\n\n if (!day || day.year < 9000) {\n this.month.update(({month, year}) =>\n (day || new TuiDay(year, month, 1)).dayLimit(this.min(), this.max()),\n );\n }\n });\n\n public readonly view = model<'day' | 'month' | 'year'>('day');\n public readonly mode = input<T>();\n public readonly contentDay = input<PolymorpheusContent<TuiContext<TuiDay>>>();\n public readonly contentMonth = input<PolymorpheusContent<TuiContext<TuiMonth>>>();\n public readonly contentYear = input<PolymorpheusContent<TuiContext<number>>>();\n public readonly dayType = input(this.options.dayType);\n public readonly showAdjacent = input(this.options.showAdjacent);\n public readonly showWeek = input(this.options.showWeek);\n\n protected getMonth(index: number): TuiMonth {\n return new TuiMonth(Math.floor(index / 12), index % 12);\n }\n\n protected getItems(initial: number): readonly number[] {\n return Array.from({length: 12}, (_, index) => initial + index);\n }\n\n protected onSpin(step: number): void {\n this.carousel()?.[step > 0 ? 'next' : 'prev']();\n\n if (this.view() === 'month') {\n this.month.update((month) => month.append({year: step}));\n }\n }\n\n protected onYear(year: number): void {\n this.month.update(({month}) => new TuiMonth(year, month));\n this.view.set('month');\n }\n\n protected onMonth(month: TuiMonth): void {\n this.month.set(month);\n this.view.set('day');\n }\n\n protected onDay(day: TuiDay): void {\n if (this.mode() === 'range') {\n this.value.update((value): any =>\n value instanceof TuiDayRange && value.from === value.to\n ? TuiDayRange.sort(value.to, day.append({}))\n : new TuiDayRange(day, day),\n );\n } else if (this.mode() === 'multi') {\n this.value.update((value): any =>\n Array.isArray(value)\n ? tuiArrayToggle(value, day, (a: TuiDay, b: TuiDay) => a.daySame(b))\n : [day],\n );\n } else {\n this.value.set(day as any);\n }\n }\n}\n","<header class=\"t-header\">\n @if (view() !== 'year') {\n <button\n appearance=\"\"\n tabindex=\"-1\"\n tuiLink\n type=\"button\"\n class=\"t-button\"\n [textContent]=\"button()\"\n [tuiChevron]=\"false\"\n (click)=\"view.set(view() === 'day' ? 'month' : 'year')\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n ></button>\n } @else {\n @let years = month().year + (carousel()?.index() || 0) * 12 - 6 | tuiMapper: getItems;\n <b>{{ years[0] }}-{{ years[years.length - 1] }}</b>\n }\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"start()\"\n [iconStart]=\"icons.decrement\"\n (click)=\"onSpin(-1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <button\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-chevron\"\n [disabled]=\"end()\"\n [iconStart]=\"icons.increment\"\n (click)=\"onSpin(1)\"\n (pointerdown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n\n @if (dropdown?.nativeElement?.matches(':not(input)')) {\n <tui-date-picker-header [mode]=\"mode()\" />\n }\n</header>\n<tui-elastic-container class=\"t-slides\">\n <section tuiSlides>\n @switch (view()) {\n @case ('day') {\n <tui-carousel\n [index]=\"index()\"\n [max]=\"max().year * 12 + max().month\"\n [min]=\"min().year * 12 + min().month\"\n (indexChange)=\"month.set(getMonth($event))\"\n >\n <tui-month\n *tuiItem=\"let current\"\n class=\"t-calendar\"\n [content]=\"contentDay()\"\n [dayType]=\"dayType()\"\n [disabledItemHandler]=\"disabledDay()\"\n [month]=\"current | tuiMapper: getMonth\"\n [showAdjacent]=\"showAdjacent()\"\n [showWeek]=\"showWeek()\"\n [value]=\"value()\"\n (pick)=\"onDay($event)\"\n />\n </tui-carousel>\n }\n\n @case ('month') {\n <tui-data-grid\n class=\"t-grid\"\n [content]=\"contentMonth() ?? content()\"\n [disabledItemHandler]=\"disabledMonth()\"\n [items]=\"year()\"\n [value]=\"months()\"\n (pick)=\"onMonth($event)\"\n />\n }\n\n @case ('year') {\n <tui-carousel\n [max]=\"yearMax()\"\n [min]=\"yearMin()\"\n >\n <tui-data-grid\n *tuiItem=\"let offset\"\n class=\"t-grid\"\n [content]=\"contentYear()\"\n [disabledItemHandler]=\"disabledYear()\"\n [items]=\"month().year + offset * 12 - 6 | tuiMapper: getItems\"\n [value]=\"years()\"\n (pick)=\"onYear($event)\"\n />\n </tui-carousel>\n }\n }\n </section>\n</tui-elastic-container>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEO,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB,CAAA;AAAzB,IAAA,WAAA,GAAA;AACgB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC;QACpC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QAEzD,IAAA,CAAA,IAAI,GAAG,KAAK,EAAgC;IAChE;;AALa,mBAAmB,GAAA,UAAA,CAAA;AAzD/B,IAAA,SAAS,CAAC;AACP,QAAA,QAAQ,EAAE,wBAAwB;QAClC,OAAO,EAAE,CAA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