@taiga-ui/experimental 5.19.0 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/calendar/calendar-multi.component.d.ts +24 -0
- package/components/calendar/calendar.component.d.ts +5 -19
- package/components/calendar/calendar.d.ts +3 -0
- package/components/calendar/date-picker.d.ts +24 -0
- package/components/calendar/index.d.ts +3 -0
- package/fesm2022/taiga-ui-experimental-components-calendar.mjs +137 -47
- package/fesm2022/taiga-ui-experimental-components-calendar.mjs.map +1 -1
- package/fesm2022/taiga-ui-experimental-components-data-grid.mjs +2 -2
- package/fesm2022/taiga-ui-experimental-components-data-grid.mjs.map +1 -1
- package/fesm2022/taiga-ui-experimental-components-file.mjs +2 -2
- package/fesm2022/taiga-ui-experimental-components-month.mjs +3 -10
- package/fesm2022/taiga-ui-experimental-components-month.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -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
|
+
}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TuiMonth } from '@taiga-ui/cdk/date-time';
|
|
2
2
|
import { type TuiBooleanHandler, type TuiContext } from '@taiga-ui/cdk/types';
|
|
3
|
-
import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
|
|
4
3
|
import { TuiCarouselComponent } from '@taiga-ui/core/components/carousel';
|
|
5
4
|
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
5
|
+
import { TuiDatePicker } from './date-picker';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
type DatePicker<T> = T extends 'single' ? TuiDay : T extends 'multi' ? readonly TuiDay[] : TuiDayRange;
|
|
8
7
|
/**
|
|
9
8
|
* @deprecated: work in progress, do not use!
|
|
10
9
|
*/
|
|
11
|
-
export declare class
|
|
12
|
-
protected readonly options: import("@taiga-ui/experimental/components/month").TuiMonthOptions;
|
|
10
|
+
export declare class TuiCalendarComponent<T extends 'multi' | 'range' | 'single'> extends TuiDatePicker<T> {
|
|
13
11
|
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
12
|
protected readonly content: import("@angular/core").Signal<PolymorpheusContent<TuiContext<TuiMonth>>>;
|
|
19
13
|
protected readonly years: import("@angular/core").Signal<number[]>;
|
|
20
14
|
protected readonly year: import("@angular/core").Signal<TuiMonth[]>;
|
|
@@ -22,28 +16,20 @@ export declare class TuiCalendar<T extends 'multi' | 'range' | 'single' = 'singl
|
|
|
22
16
|
protected readonly button: import("@angular/core").Signal<string>;
|
|
23
17
|
protected readonly yearMin: import("@angular/core").Signal<number>;
|
|
24
18
|
protected readonly yearMax: import("@angular/core").Signal<number>;
|
|
25
|
-
protected readonly disabledDay: import("@angular/core").Signal<(day: TuiDay) => boolean>;
|
|
26
19
|
protected readonly disabledMonth: import("@angular/core").Signal<TuiBooleanHandler<TuiMonth>>;
|
|
27
20
|
protected readonly disabledYear: import("@angular/core").Signal<(year: number) => boolean>;
|
|
28
21
|
protected readonly start: import("@angular/core").Signal<boolean>;
|
|
29
22
|
protected readonly end: import("@angular/core").Signal<boolean>;
|
|
30
23
|
protected readonly index: import("@angular/core").Signal<number>;
|
|
31
|
-
protected readonly sync: import("@angular/core").EffectRef;
|
|
32
24
|
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
25
|
readonly contentMonth: import("@angular/core").InputSignal<PolymorpheusContent<TuiContext<TuiMonth>>>;
|
|
36
26
|
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
27
|
readonly showAdjacent: import("@angular/core").InputSignal<boolean>;
|
|
39
|
-
readonly showWeek: import("@angular/core").InputSignal<boolean>;
|
|
40
28
|
protected getMonth(index: number): TuiMonth;
|
|
41
29
|
protected getItems(initial: number): readonly number[];
|
|
42
30
|
protected onSpin(step: number): void;
|
|
43
31
|
protected onYear(year: number): void;
|
|
44
32
|
protected onMonth(month: TuiMonth): void;
|
|
45
|
-
|
|
46
|
-
static
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiCalendar<any>, "tui-calendar[new]", 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>;
|
|
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>;
|
|
48
35
|
}
|
|
49
|
-
export {};
|
|
@@ -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 {};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { coerceArray } from '@angular/cdk/coercion';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, input, Component, ChangeDetectionStrategy,
|
|
3
|
+
import { inject, input, Component, ChangeDetectionStrategy, computed, effect, untracked, Directive, viewChild, model, signal, ElementRef } from '@angular/core';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
|
-
import { TuiDayRange,
|
|
5
|
+
import { TuiDayRange, TuiDay, TuiMonth } from '@taiga-ui/cdk/date-time';
|
|
6
6
|
import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
|
|
7
7
|
import { tuiProvide } from '@taiga-ui/cdk/utils/di';
|
|
8
|
-
import { tuiArrayToggle } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
9
8
|
import { TuiButton, tuiButtonOptionsProvider } from '@taiga-ui/core/components/button';
|
|
10
9
|
import { AbstractTuiCalendar } from '@taiga-ui/core/components/calendar';
|
|
11
10
|
import * as i1 from '@taiga-ui/core/components/carousel';
|
|
12
11
|
import { TuiCarouselComponent, TuiCarousel } from '@taiga-ui/core/components/carousel';
|
|
13
12
|
import { TuiLink } from '@taiga-ui/core/components/link';
|
|
14
13
|
import { tuiTextfieldOptionsProvider } from '@taiga-ui/core/components/textfield';
|
|
15
|
-
import { TUI_DROPDOWN_HOST } from '@taiga-ui/core/portals/dropdown';
|
|
16
14
|
import { TUI_COMMON_ICONS, TUI_SPIN_TEXTS, TUI_MONTHS, tuiAsAuxiliary } from '@taiga-ui/core/tokens';
|
|
17
15
|
import { TuiDataGrid } from '@taiga-ui/experimental/components/data-grid';
|
|
18
16
|
import { TUI_MONTH_OPTIONS, TuiMonthComponent } from '@taiga-ui/experimental/components/month';
|
|
@@ -20,10 +18,13 @@ import { TuiChevron } from '@taiga-ui/kit/directives/chevron';
|
|
|
20
18
|
import { TuiElasticContainer } from '@taiga-ui/layout/components/elastic-container';
|
|
21
19
|
import { TuiSlides } from '@taiga-ui/layout/components/slides';
|
|
22
20
|
import { __decorate } from 'tslib';
|
|
21
|
+
import { TUI_DROPDOWN_HOST } from '@taiga-ui/core/portals/dropdown';
|
|
23
22
|
import { tuiInputDateOptionsProvider, TuiInputDate } from '@taiga-ui/kit/components/input-date';
|
|
24
23
|
import { TuiInputDateMulti } from '@taiga-ui/kit/components/input-date-multi';
|
|
25
24
|
import { TuiInputDateRange } from '@taiga-ui/kit/components/input-date-range';
|
|
25
|
+
import { tuiArrayToggle } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
26
26
|
import * as i2 from '@taiga-ui/cdk/directives/item';
|
|
27
|
+
import { WaIntersectionObservee } from '@ng-web-apis/intersection-observer';
|
|
27
28
|
|
|
28
29
|
let TuiCalendarHeader = class TuiCalendarHeader {
|
|
29
30
|
constructor() {
|
|
@@ -92,18 +93,61 @@ TuiCalendarHeader = __decorate([
|
|
|
92
93
|
})
|
|
93
94
|
], TuiCalendarHeader);
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
* @deprecated: work in progress, do not use!
|
|
97
|
-
*/
|
|
98
|
-
class TuiCalendar extends AbstractTuiCalendar {
|
|
96
|
+
class TuiDatePicker extends AbstractTuiCalendar {
|
|
99
97
|
constructor() {
|
|
100
98
|
super(...arguments);
|
|
101
99
|
this.options = inject(TUI_MONTH_OPTIONS);
|
|
102
|
-
this.carousel = viewChild(TuiCarouselComponent);
|
|
103
100
|
this.icons = inject(TUI_COMMON_ICONS);
|
|
101
|
+
this.dropdown = inject(TUI_DROPDOWN_HOST, { optional: true });
|
|
104
102
|
this.texts = inject(TUI_SPIN_TEXTS);
|
|
105
103
|
this.i18n = inject(TUI_MONTHS);
|
|
106
|
-
this.
|
|
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);
|
|
107
151
|
this.content = computed(() => (c) => this.i18n()[c.$implicit.month]);
|
|
108
152
|
this.years = computed((value = this.value()) => value instanceof TuiDayRange
|
|
109
153
|
? Array.from({ length: value.to.year - value.from.year + 1 }, (_, index) => value.from.year + index)
|
|
@@ -117,7 +161,6 @@ class TuiCalendar extends AbstractTuiCalendar {
|
|
|
117
161
|
: this.month().formattedYear);
|
|
118
162
|
this.yearMin = computed(() => Math.ceil((this.min().year - this.month().year - 5) / 12));
|
|
119
163
|
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
164
|
this.disabledMonth = computed(() => (month) => month.monthBefore(this.min()) || month.monthAfter(this.max()));
|
|
122
165
|
this.disabledYear = computed(() => (year) => year < this.min().year || year > this.max().year);
|
|
123
166
|
this.start = computed((carousel = this.carousel()) => this.view() === 'month'
|
|
@@ -127,21 +170,10 @@ class TuiCalendar extends AbstractTuiCalendar {
|
|
|
127
170
|
? this.month().year === this.max().year
|
|
128
171
|
: carousel?.index() === carousel?.max());
|
|
129
172
|
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
173
|
this.view = model('day');
|
|
138
|
-
this.mode = input();
|
|
139
|
-
this.contentDay = input();
|
|
140
174
|
this.contentMonth = input();
|
|
141
175
|
this.contentYear = input();
|
|
142
|
-
this.dayType = input(this.options.dayType);
|
|
143
176
|
this.showAdjacent = input(this.options.showAdjacent);
|
|
144
|
-
this.showWeek = input(this.options.showWeek);
|
|
145
177
|
}
|
|
146
178
|
getMonth(index) {
|
|
147
179
|
return new TuiMonth(Math.floor(index / 12), index % 12);
|
|
@@ -163,32 +195,17 @@ class TuiCalendar extends AbstractTuiCalendar {
|
|
|
163
195
|
this.month.set(month);
|
|
164
196
|
this.view.set('day');
|
|
165
197
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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: TuiCalendar, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
182
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiCalendar, isStandalone: true, selector: "tui-calendar[new]", 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(TuiCalendar),
|
|
184
|
-
tuiProvide(AbstractTuiCalendar, TuiCalendar),
|
|
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),
|
|
185
202
|
tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
|
|
186
203
|
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('
|
|
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;min-inline-size:calc(20rem * var(--tui-font-scale));flex:1;box-sizing:content-box;overflow:hidden}:host-context(tui-dropdown){inline-size:calc(20rem * var(--tui-font-scale));padding-inline:.5rem}:host-context(tui-dropdown):has([tuiTitle]) .t-calendar{padding-block-end:.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;min-block-size:var(--tui-height-l);padding:0 .75rem;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,.t-calendar{padding:0 .5rem 1rem}.t-slides{margin: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:
|
|
188
205
|
// eslint-disable-next-line @taiga-ui/experience-next/short-tui-imports
|
|
189
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 }); }
|
|
190
207
|
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type:
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiCalendarComponent, decorators: [{
|
|
192
209
|
type: Component,
|
|
193
210
|
args: [{ selector: 'tui-calendar[new]', imports: [
|
|
194
211
|
FormsModule,
|
|
@@ -204,16 +221,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
204
221
|
TuiMonthComponent,
|
|
205
222
|
TuiSlides,
|
|
206
223
|
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
207
|
-
tuiAsAuxiliary(
|
|
208
|
-
tuiProvide(AbstractTuiCalendar,
|
|
224
|
+
tuiAsAuxiliary(TuiCalendarComponent),
|
|
225
|
+
tuiProvide(AbstractTuiCalendar, TuiCalendarComponent),
|
|
209
226
|
tuiButtonOptionsProvider({ size: 'xs', appearance: 'flat' }),
|
|
210
227
|
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('
|
|
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;min-inline-size:calc(20rem * var(--tui-font-scale));flex:1;box-sizing:content-box;overflow:hidden}:host-context(tui-dropdown){inline-size:calc(20rem * var(--tui-font-scale));padding-inline:.5rem}:host-context(tui-dropdown):has([tuiTitle]) .t-calendar{padding-block-end:.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;min-block-size:var(--tui-height-l);padding:0 .75rem;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,.t-calendar{padding:0 .5rem 1rem}.t-slides{margin:0 -.5rem}\n"] }]
|
|
212
229
|
}] });
|
|
213
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
|
+
|
|
214
304
|
/**
|
|
215
305
|
* Generated bundle index. Do not edit.
|
|
216
306
|
*/
|
|
217
307
|
|
|
218
|
-
export { TuiCalendar, TuiCalendarHeader };
|
|
308
|
+
export { TuiCalendar, TuiCalendarComponent, TuiCalendarHeader, TuiCalendarMultiComponent, TuiDatePicker };
|
|
219
309
|
//# sourceMappingURL=taiga-ui-experimental-components-calendar.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-components-calendar.mjs","sources":["../../../projects/experimental/components/calendar/calendar-header.component.ts","../../../projects/experimental/components/calendar/calendar.component.ts","../../../projects/experimental/components/calendar/calendar.component.html","../../../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 {\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 {TuiCalendarHeader} from './calendar-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-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(TuiCalendar),\n tuiProvide(AbstractTuiCalendar, TuiCalendar),\n tuiButtonOptionsProvider({size: 'xs', appearance: 'flat'}),\n tuiTextfieldOptionsProvider({size: signal('m'), cleaner: signal(false)}),\n ],\n})\nexport class TuiCalendar<\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-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","/**\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,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CAAA,MAAA,EAAA,CAAA,CAAA;;4FAYJ,WAAW,EAAA,UAAA,EAAA,CAAA;kBA1BvB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,EAAA,OAAA,EACpB;wBACL,WAAW;wBACX,SAAS;wBACT,iBAAiB;wBACjB,WAAW;wBACX,UAAU;wBACV,WAAW;wBACX,mBAAmB;wBACnB,OAAO;wBACP,aAAa;;wBAEb,iBAAiB;wBACjB,SAAS;qBACZ,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACP,wBAAA,cAAc,CAAA,WAAA,CAAa;wBAC3B,UAAU,CAAC,mBAAmB,EAAA,WAAA,CAAc;wBAC5C,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,QAAA,EAAA,i9GAAA,EAAA,MAAA,EAAA,CAAA,m7BAAA,CAAA,EAAA;;;AE3EL;;AAEG;;;;"}
|
|
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,C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AajB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAxBrC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAAA,OAAA,EACvB;wBACL,WAAW;wBACX,SAAS;wBACT,iBAAiB;wBACjB,WAAW;wBACX,aAAa;;wBAEb,iBAAiB;wBACjB,SAAS;wBACT,sBAAsB;qBACzB,EAAA,eAAA,EAGgB,uBAAuB,CAAC,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;;;;"}
|
|
@@ -16,11 +16,11 @@ class TuiDataGrid {
|
|
|
16
16
|
this.disabledItemHandler = input(TUI_FALSE_HANDLER);
|
|
17
17
|
}
|
|
18
18
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiDataGrid, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiDataGrid, isStandalone: true, selector: "tui-data-grid", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabledItemHandler: { classPropertyName: "disabledItemHandler", publicName: "disabledItemHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pick: "pick" }, ngImport: i0, template: "@for (item of items(); track item) {\n <button\n type=\"button\"\n class=\"t-item\"\n [class.t-item_active]=\"value().includes(item)\"\n [disabled]=\"disabledItemHandler()(item)\"\n (click)=\"pick.emit(item)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${item}` as text; context: {$implicit: item}\">\n {{ text }}\n </ng-container>\n </button>\n}\n", styles: [":host{display:grid;inline-size:100%;grid-template-columns:repeat(3,calc(33% - .625rem));gap:1rem .5rem;place-content:center;box-sizing:border-box}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);display:block;block-size:2.5rem;min-inline-size:0;border-radius:10rem;border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-primary);font:
|
|
19
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiDataGrid, isStandalone: true, selector: "tui-data-grid", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabledItemHandler: { classPropertyName: "disabledItemHandler", publicName: "disabledItemHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pick: "pick" }, ngImport: i0, template: "@for (item of items(); track item) {\n <button\n type=\"button\"\n class=\"t-item\"\n [class.t-item_active]=\"value().includes(item)\"\n [disabled]=\"disabledItemHandler()(item)\"\n (click)=\"pick.emit(item)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${item}` as text; context: {$implicit: item}\">\n {{ text }}\n </ng-container>\n </button>\n}\n", styles: [":host{display:grid;inline-size:100%;grid-template-columns:repeat(3,calc(33% - .625rem));gap:1rem .5rem;font:var(--tui-typography-body-m);place-content:center;box-sizing:border-box}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);display:block;block-size:2.5rem;min-inline-size:0;border-radius:10rem;border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-primary);font:inherit;white-space:nowrap}.t-item ::ng-deep [tuiTitle]{gap:.125rem;text-align:center}.t-item ::ng-deep [tuiTitle] [tuiSubtitle]{color:var(--tui-text-secondary);font:var(--tui-typography-ui-xs)}.t-item:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-item_active{background:var(--tui-background-accent-2);color:var(--tui-text-primary-on-accent-2)}.t-item_active ::ng-deep [tuiTitle] [tuiSubtitle]{color:inherit}@media(hover:hover)and (pointer:fine){.t-item:hover{background:var(--tui-background-neutral-1-hover);cursor:pointer}.t-item_active:hover{background:var(--tui-background-accent-2-hover)}}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
20
20
|
}
|
|
21
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiDataGrid, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
|
-
args: [{ selector: 'tui-data-grid', imports: [PolymorpheusOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "@for (item of items(); track item) {\n <button\n type=\"button\"\n class=\"t-item\"\n [class.t-item_active]=\"value().includes(item)\"\n [disabled]=\"disabledItemHandler()(item)\"\n (click)=\"pick.emit(item)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${item}` as text; context: {$implicit: item}\">\n {{ text }}\n </ng-container>\n </button>\n}\n", styles: [":host{display:grid;inline-size:100%;grid-template-columns:repeat(3,calc(33% - .625rem));gap:1rem .5rem;place-content:center;box-sizing:border-box}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);display:block;block-size:2.5rem;min-inline-size:0;border-radius:10rem;border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-primary);font:
|
|
23
|
+
args: [{ selector: 'tui-data-grid', imports: [PolymorpheusOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "@for (item of items(); track item) {\n <button\n type=\"button\"\n class=\"t-item\"\n [class.t-item_active]=\"value().includes(item)\"\n [disabled]=\"disabledItemHandler()(item)\"\n (click)=\"pick.emit(item)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${item}` as text; context: {$implicit: item}\">\n {{ text }}\n </ng-container>\n </button>\n}\n", styles: [":host{display:grid;inline-size:100%;grid-template-columns:repeat(3,calc(33% - .625rem));gap:1rem .5rem;font:var(--tui-typography-body-m);place-content:center;box-sizing:border-box}.t-item{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:var(--tui-curve-productive-standard);display:block;block-size:2.5rem;min-inline-size:0;border-radius:10rem;border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-primary);font:inherit;white-space:nowrap}.t-item ::ng-deep [tuiTitle]{gap:.125rem;text-align:center}.t-item ::ng-deep [tuiTitle] [tuiSubtitle]{color:var(--tui-text-secondary);font:var(--tui-typography-ui-xs)}.t-item:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-item_active{background:var(--tui-background-accent-2);color:var(--tui-text-primary-on-accent-2)}.t-item_active ::ng-deep [tuiTitle] [tuiSubtitle]{color:inherit}@media(hover:hover)and (pointer:fine){.t-item:hover{background:var(--tui-background-neutral-1-hover);cursor:pointer}.t-item_active:hover{background:var(--tui-background-accent-2-hover)}}\n"] }]
|
|
24
24
|
}] });
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-components-data-grid.mjs","sources":["../../../projects/experimental/components/data-grid/data-grid.component.ts","../../../projects/experimental/components/data-grid/data-grid.component.html","../../../projects/experimental/components/data-grid/taiga-ui-experimental-components-data-grid.ts"],"sourcesContent":["import {coerceArray} from '@angular/cdk/coercion';\nimport {ChangeDetectionStrategy, Component, input, output} from '@angular/core';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {type TuiBooleanHandler, type TuiContext} from '@taiga-ui/cdk/types';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-data-grid',\n imports: [PolymorpheusOutlet],\n templateUrl: './data-grid.component.html',\n styleUrl: './data-grid.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiDataGrid<T> {\n public readonly pick = output<T>();\n public readonly items = input<readonly T[]>([]);\n public readonly content = input<PolymorpheusContent<TuiContext<T>>>();\n public readonly value = input([], {transform: coerceArray<T>});\n public readonly disabledItemHandler = input<TuiBooleanHandler<T>>(TUI_FALSE_HANDLER);\n}\n","@for (item of items(); track item) {\n <button\n type=\"button\"\n class=\"t-item\"\n [class.t-item_active]=\"value().includes(item)\"\n [disabled]=\"disabledItemHandler()(item)\"\n (click)=\"pick.emit(item)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${item}` as text; context: {$implicit: item}\">\n {{ text }}\n </ng-container>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;AAEG;MAQU,WAAW,CAAA;AAPxB,IAAA,WAAA,GAAA;QAQoB,IAAA,CAAA,IAAI,GAAG,MAAM,EAAK;AAClB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAe,EAAE,CAAC;QAC/B,IAAA,CAAA,OAAO,GAAG,KAAK,EAAsC;AACrD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,EAAE,EAAE,EAAC,SAAS,GAAE,WAAc,CAAA,EAAC,CAAC;AAC9C,QAAA,IAAA,CAAA,mBAAmB,GAAG,KAAK,CAAuB,iBAAiB,CAAC;AACvF,IAAA;+GANY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,mBAAA,EAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChBxB,gbAaA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-components-data-grid.mjs","sources":["../../../projects/experimental/components/data-grid/data-grid.component.ts","../../../projects/experimental/components/data-grid/data-grid.component.html","../../../projects/experimental/components/data-grid/taiga-ui-experimental-components-data-grid.ts"],"sourcesContent":["import {coerceArray} from '@angular/cdk/coercion';\nimport {ChangeDetectionStrategy, Component, input, output} from '@angular/core';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {type TuiBooleanHandler, type TuiContext} from '@taiga-ui/cdk/types';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-data-grid',\n imports: [PolymorpheusOutlet],\n templateUrl: './data-grid.component.html',\n styleUrl: './data-grid.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiDataGrid<T> {\n public readonly pick = output<T>();\n public readonly items = input<readonly T[]>([]);\n public readonly content = input<PolymorpheusContent<TuiContext<T>>>();\n public readonly value = input([], {transform: coerceArray<T>});\n public readonly disabledItemHandler = input<TuiBooleanHandler<T>>(TUI_FALSE_HANDLER);\n}\n","@for (item of items(); track item) {\n <button\n type=\"button\"\n class=\"t-item\"\n [class.t-item_active]=\"value().includes(item)\"\n [disabled]=\"disabledItemHandler()(item)\"\n (click)=\"pick.emit(item)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${item}` as text; context: {$implicit: item}\">\n {{ text }}\n </ng-container>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;AAEG;MAQU,WAAW,CAAA;AAPxB,IAAA,WAAA,GAAA;QAQoB,IAAA,CAAA,IAAI,GAAG,MAAM,EAAK;AAClB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAe,EAAE,CAAC;QAC/B,IAAA,CAAA,OAAO,GAAG,KAAK,EAAsC;AACrD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,EAAE,EAAE,EAAC,SAAS,GAAE,WAAc,CAAA,EAAC,CAAC;AAC9C,QAAA,IAAA,CAAA,mBAAmB,GAAG,KAAK,CAAuB,iBAAiB,CAAC;AACvF,IAAA;+GANY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,C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CAAC,MAAM,EAAA,QAAA,EAAA,gbAAA,EAAA,MAAA,EAAA,CAAA,olCAAA,CAAA,EAAA;;;AEdnD;;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.
|
|
43
|
+
`, isInline: true, styles: ["[data-tui-version=\"5.20.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 }); }
|
|
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.
|
|
68
|
+
}, styles: ["[data-tui-version=\"5.20.0\"]{@import \"./file.styles.less\";}\n"] }]
|
|
69
69
|
}] });
|
|
70
70
|
|
|
71
71
|
class TuiFilePipe {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { coerceArray } from '@angular/cdk/coercion';
|
|
2
|
-
import { UpperCasePipe } from '@angular/common';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
3
|
import { signal, Pipe, inject, computed, output, input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
5
4
|
import { TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
|
|
@@ -88,20 +87,14 @@ class TuiMonthComponent {
|
|
|
88
87
|
return day === this.days()[5] || day === this.days()[6] ? 'weekend' : '';
|
|
89
88
|
}
|
|
90
89
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
91
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiMonthComponent, isStandalone: true, selector: "tui-month", inputs: { month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", 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 }, disabledItemHandler: { classPropertyName: "disabledItemHandler", publicName: "disabledItemHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pick: "pick" }, host: { listeners: { "mouseleave": "hovered.set(null)" }, properties: { "class._ww": "showWeek()" } }, ngImport: i0, template: "@if (showWeek()) {\n <span>#</span>\n}\n@for (day of week(); track $index) {\n <span
|
|
90
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: TuiMonthComponent, isStandalone: true, selector: "tui-month", inputs: { month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", 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 }, disabledItemHandler: { classPropertyName: "disabledItemHandler", publicName: "disabledItemHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pick: "pick" }, host: { listeners: { "mouseleave": "hovered.set(null)" }, properties: { "class._ww": "showWeek()" } }, ngImport: i0, template: "@if (showWeek()) {\n <span class=\"t-label\">#</span>\n}\n@for (day of week(); track $index) {\n <span\n class=\"t-label\"\n [attr.data-type]=\"getType(day)\"\n >\n {{ day.slice(0, 2) }}\n </span>\n}\n@for (week of month() | tuiCalendarSheet: true; track week) {\n @for (day of week; track day) {\n @if (day.monthSameOrBefore(month()) || showAdjacent()) {\n @if (showWeek() && $first) {\n <button\n disabled\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n >\n {{ day | tuiWeek }}\n </button>\n }\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n [attr.data-range]=\"getRange(day)\"\n [attr.data-type]=\"day | tuiMapper: dayType()\"\n [class.t-day_adjacent]=\"day.month !== month().month\"\n [class.t-day_end]=\"$last\"\n [class.t-day_hidden]=\"day.monthBefore(month()) && !showAdjacent()\"\n [class.t-day_start]=\"$first\"\n [class.t-day_today]=\"day.daySame(today)\"\n [disabled]=\"disabledItemHandler()(day)\"\n (click)=\"pick.emit(day)\"\n (mouseenter)=\"hovered.set(day)\"\n (pointerdown.prevent.zoneless)=\"(0)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${day.day}` as text; context: {$implicit: day}\">\n {{ text }}\n </ng-container>\n </button>\n }\n }\n}\n", styles: [":host{display:grid;inline-size:100%;min-block-size:var(--tui-height-s);color:var(--tui-text-secondary);font:var(--tui-typography-body-m);grid-template:2rem / repeat(7,1fr);gap:.25rem 0;place-items:center;isolation:isolate}:host._ww{grid-template:2rem / repeat(8,1fr)}.t-label{padding:.5rem 0 .375rem;font:var(--tui-typography-ui-s);text-transform:uppercase}.t-day{position:relative;inline-size:100%;min-block-size:inherit;padding:0;border:0;background:transparent;font:inherit;color:var(--tui-text-primary);cursor:pointer;overflow:hidden}.t-day:has([tuiTitle]){min-block-size:var(--tui-height-m)}.t-day:has([tuiTitle]):before{min-inline-size:var(--tui-height-m);border-radius:var(--tui-radius-m)}.t-day:has([tuiTitle]):after{display:none}.t-day ::ng-deep [tuiTitle]{gap:.125rem;text-align:center}.t-day ::ng-deep [tuiTitle] [tuiSubtitle]{color:var(--tui-text-secondary);font:var(--tui-typography-ui-xs)}.t-day ::ng-deep [tuiTitle] [tuiSubtitle]:before{content:\"\\200b\"}.t-day:before{content:\"\";position:absolute;inset:50%;z-index:-1;block-size:100%;min-inline-size:var(--tui-height-s);aspect-ratio:1;border-radius:100%;transform:translate(calc(var(--tui-inline) * -50%),-50%)}.t-day:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-day_adjacent{opacity:var(--tui-disabled-opacity)}.t-day_hidden{visibility:hidden}.t-day_today:after{content:\"\";position:absolute;inset-block-end:.25rem;inset-inline-start:50%;margin-inline-start:-.125rem;inline-size:.25rem;block-size:.25rem;border-radius:100%;background:var(--tui-background-accent-1)}.t-day_start{border-start-start-radius:var(--tui-radius-s);border-end-start-radius:var(--tui-radius-s)}.t-day_end{border-start-end-radius:var(--tui-radius-s);border-end-end-radius:var(--tui-radius-s)}.t-day[data-range=single],.t-day[data-range=start],.t-day[data-range=end]{color:var(--tui-text-primary-on-accent-1)}.t-day[data-range=single] ::ng-deep [tuiSubtitle],.t-day[data-range=start] ::ng-deep [tuiSubtitle],.t-day[data-range=end] ::ng-deep [tuiSubtitle]{color:inherit}.t-day[data-range=single]:before,.t-day[data-range=start]:before,.t-day[data-range=end]:before{background:var(--tui-background-accent-1)}.t-day[data-range=single]:after,.t-day[data-range=start]:after,.t-day[data-range=end]:after{background:currentColor}.t-day[data-range=start]:before{box-shadow:calc(var(--tui-inline) * 11rem) 0 0 10rem var(--tui-background-neutral-1)}.t-day[data-range=end]:before{box-shadow:calc(var(--tui-inline) * -11rem) 0 0 10rem var(--tui-background-neutral-1)}.t-day[data-range=middle]:before{box-shadow:0 0 0 10rem var(--tui-background-neutral-1),inset 0 0 0 10rem var(--tui-background-neutral-1)}@media(hover:hover)and (pointer:fine){.t-day:hover:before{background:var(--tui-background-neutral-1-hover)}.t-day[data-range=single]:hover:before,.t-day[data-range=start]:hover:before,.t-day[data-range=end]:hover:before{background:var(--tui-background-accent-1-hover)}}[data-type~=weekend]{color:var(--tui-text-action)}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "pipe", type: TuiCalendarSheetPipe, name: "tuiCalendarSheet" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }, { kind: "pipe", type: TuiWeekPipe, name: "tuiWeek" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
92
91
|
}
|
|
93
92
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiMonthComponent, decorators: [{
|
|
94
93
|
type: Component,
|
|
95
|
-
args: [{ selector: 'tui-month', imports: [
|
|
96
|
-
PolymorpheusOutlet,
|
|
97
|
-
TuiCalendarSheetPipe,
|
|
98
|
-
TuiMapperPipe,
|
|
99
|
-
TuiWeekPipe,
|
|
100
|
-
UpperCasePipe,
|
|
101
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
94
|
+
args: [{ selector: 'tui-month', imports: [PolymorpheusOutlet, TuiCalendarSheetPipe, TuiMapperPipe, TuiWeekPipe], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
102
95
|
'[class._ww]': 'showWeek()',
|
|
103
96
|
'(mouseleave)': 'hovered.set(null)',
|
|
104
|
-
}, template: "@if (showWeek()) {\n <span>#</span>\n}\n@for (day of week(); track $index) {\n <span
|
|
97
|
+
}, template: "@if (showWeek()) {\n <span class=\"t-label\">#</span>\n}\n@for (day of week(); track $index) {\n <span\n class=\"t-label\"\n [attr.data-type]=\"getType(day)\"\n >\n {{ day.slice(0, 2) }}\n </span>\n}\n@for (week of month() | tuiCalendarSheet: true; track week) {\n @for (day of week; track day) {\n @if (day.monthSameOrBefore(month()) || showAdjacent()) {\n @if (showWeek() && $first) {\n <button\n disabled\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n >\n {{ day | tuiWeek }}\n </button>\n }\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n [attr.data-range]=\"getRange(day)\"\n [attr.data-type]=\"day | tuiMapper: dayType()\"\n [class.t-day_adjacent]=\"day.month !== month().month\"\n [class.t-day_end]=\"$last\"\n [class.t-day_hidden]=\"day.monthBefore(month()) && !showAdjacent()\"\n [class.t-day_start]=\"$first\"\n [class.t-day_today]=\"day.daySame(today)\"\n [disabled]=\"disabledItemHandler()(day)\"\n (click)=\"pick.emit(day)\"\n (mouseenter)=\"hovered.set(day)\"\n (pointerdown.prevent.zoneless)=\"(0)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${day.day}` as text; context: {$implicit: day}\">\n {{ text }}\n </ng-container>\n </button>\n }\n }\n}\n", styles: [":host{display:grid;inline-size:100%;min-block-size:var(--tui-height-s);color:var(--tui-text-secondary);font:var(--tui-typography-body-m);grid-template:2rem / repeat(7,1fr);gap:.25rem 0;place-items:center;isolation:isolate}:host._ww{grid-template:2rem / repeat(8,1fr)}.t-label{padding:.5rem 0 .375rem;font:var(--tui-typography-ui-s);text-transform:uppercase}.t-day{position:relative;inline-size:100%;min-block-size:inherit;padding:0;border:0;background:transparent;font:inherit;color:var(--tui-text-primary);cursor:pointer;overflow:hidden}.t-day:has([tuiTitle]){min-block-size:var(--tui-height-m)}.t-day:has([tuiTitle]):before{min-inline-size:var(--tui-height-m);border-radius:var(--tui-radius-m)}.t-day:has([tuiTitle]):after{display:none}.t-day ::ng-deep [tuiTitle]{gap:.125rem;text-align:center}.t-day ::ng-deep [tuiTitle] [tuiSubtitle]{color:var(--tui-text-secondary);font:var(--tui-typography-ui-xs)}.t-day ::ng-deep [tuiTitle] [tuiSubtitle]:before{content:\"\\200b\"}.t-day:before{content:\"\";position:absolute;inset:50%;z-index:-1;block-size:100%;min-inline-size:var(--tui-height-s);aspect-ratio:1;border-radius:100%;transform:translate(calc(var(--tui-inline) * -50%),-50%)}.t-day:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-day_adjacent{opacity:var(--tui-disabled-opacity)}.t-day_hidden{visibility:hidden}.t-day_today:after{content:\"\";position:absolute;inset-block-end:.25rem;inset-inline-start:50%;margin-inline-start:-.125rem;inline-size:.25rem;block-size:.25rem;border-radius:100%;background:var(--tui-background-accent-1)}.t-day_start{border-start-start-radius:var(--tui-radius-s);border-end-start-radius:var(--tui-radius-s)}.t-day_end{border-start-end-radius:var(--tui-radius-s);border-end-end-radius:var(--tui-radius-s)}.t-day[data-range=single],.t-day[data-range=start],.t-day[data-range=end]{color:var(--tui-text-primary-on-accent-1)}.t-day[data-range=single] ::ng-deep [tuiSubtitle],.t-day[data-range=start] ::ng-deep [tuiSubtitle],.t-day[data-range=end] ::ng-deep [tuiSubtitle]{color:inherit}.t-day[data-range=single]:before,.t-day[data-range=start]:before,.t-day[data-range=end]:before{background:var(--tui-background-accent-1)}.t-day[data-range=single]:after,.t-day[data-range=start]:after,.t-day[data-range=end]:after{background:currentColor}.t-day[data-range=start]:before{box-shadow:calc(var(--tui-inline) * 11rem) 0 0 10rem var(--tui-background-neutral-1)}.t-day[data-range=end]:before{box-shadow:calc(var(--tui-inline) * -11rem) 0 0 10rem var(--tui-background-neutral-1)}.t-day[data-range=middle]:before{box-shadow:0 0 0 10rem var(--tui-background-neutral-1),inset 0 0 0 10rem var(--tui-background-neutral-1)}@media(hover:hover)and (pointer:fine){.t-day:hover:before{background:var(--tui-background-neutral-1-hover)}.t-day[data-range=single]:hover:before,.t-day[data-range=start]:hover:before,.t-day[data-range=end]:hover:before{background:var(--tui-background-accent-1-hover)}}[data-type~=weekend]{color:var(--tui-text-action)}\n"] }]
|
|
105
98
|
}] });
|
|
106
99
|
function convert(week) {
|
|
107
100
|
return [week[week.length - 1] || '', ...week.slice(0, week.length - 1)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-components-month.mjs","sources":["../../../projects/experimental/components/month/month.options.ts","../../../projects/experimental/components/month/week.pipe.ts","../../../projects/experimental/components/month/month.component.ts","../../../projects/experimental/components/month/month.component.html","../../../projects/experimental/components/month/taiga-ui-experimental-components-month.ts"],"sourcesContent":["import {type Signal, signal} from '@angular/core';\nimport {type TuiDay, TuiDayOfWeek} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiMonthOptions {\n readonly dayType: TuiHandler<TuiDay, string>;\n readonly weekFirstDay: Signal<number>;\n readonly showAdjacent: boolean;\n readonly showWeek: boolean;\n}\n\nexport const TUI_MONTH_DEFAULT_OPTIONS: TuiMonthOptions = {\n dayType: (day) => (day.isWeekend ? 'weekend' : 'weekday'),\n weekFirstDay: signal(TuiDayOfWeek.Monday),\n showAdjacent: false,\n showWeek: false,\n};\n\nexport const [TUI_MONTH_OPTIONS, tuiMonthOptionsProvider] = tuiCreateOptions(\n TUI_MONTH_DEFAULT_OPTIONS,\n);\n","import {Pipe, type PipeTransform} from '@angular/core';\nimport {TuiDay} from '@taiga-ui/cdk/date-time';\n\nconst ISO_MIN = 4;\n\n@Pipe({name: 'tuiWeek'})\nexport class TuiWeekPipe implements PipeTransform {\n public transform(day: TuiDay): number {\n const today = this.getWeek(day);\n const prev = this.getWeek(day.append({day: -7}));\n const next = this.getWeek(day.append({day: 7}));\n\n return next === 2 ? 1 : today || prev;\n }\n\n private getWeek(day: TuiDay): number {\n const beginning = new TuiDay(day.year, 0, 1);\n const delta = beginning.dayOfWeek();\n const first = ISO_MIN > 7 - delta ? 0 : 1;\n const sunday = day.append({day: 6 - day.dayOfWeek()});\n const offset = Math.floor(TuiDay.lengthBetween(beginning, sunday) / 7);\n\n return first + offset;\n }\n}\n","import {coerceArray} from '@angular/cdk/coercion';\nimport {UpperCasePipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\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 {TuiCalendarSheetPipe} from '@taiga-ui/core/components/calendar';\nimport {TUI_SHORT_WEEK_DAYS} from '@taiga-ui/core/tokens';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TUI_MONTH_OPTIONS} from './month.options';\nimport {TuiWeekPipe} from './week.pipe';\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-month',\n imports: [\n PolymorpheusOutlet,\n TuiCalendarSheetPipe,\n TuiMapperPipe,\n TuiWeekPipe,\n UpperCasePipe,\n ],\n templateUrl: './month.component.html',\n styleUrl: './month.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ww]': 'showWeek()',\n '(mouseleave)': 'hovered.set(null)',\n },\n})\nexport class TuiMonthComponent {\n private readonly days = inject(TUI_SHORT_WEEK_DAYS);\n private readonly options = inject(TUI_MONTH_OPTIONS);\n\n protected readonly today = TuiDay.currentLocal();\n protected readonly hovered = signal<TuiDay | null>(null);\n\n protected readonly week = computed((week = convert(this.days())) => [\n ...week.slice(this.options.weekFirstDay()),\n ...week.slice(0, this.options.weekFirstDay()),\n ]);\n\n public readonly pick = output<TuiDay>();\n public readonly month = input(TuiMonth.currentLocal());\n public readonly value = input<TuiDay | TuiDayRange | readonly TuiDay[] | null>(null);\n public readonly content = input<PolymorpheusContent<TuiContext<TuiDay>>>();\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 public readonly disabledItemHandler =\n input<TuiBooleanHandler<TuiDay>>(TUI_FALSE_HANDLER);\n\n protected getRange(day: TuiDay): 'end' | 'middle' | 'single' | 'start' | null {\n const value = this.value() || [];\n\n if (!(value instanceof TuiDayRange)) {\n return coerceArray(value).find((item) => day.daySame(item)) ? 'single' : null;\n }\n\n const hovered = this.hovered();\n\n const range =\n value.from === value.to && hovered\n ? TuiDayRange.sort(hovered, value.to)\n : value;\n\n if (range.isSingleDay && day.daySame(range.from)) {\n return 'single';\n }\n\n if (day.daySame(range.from)) {\n return 'start';\n }\n\n if (day.daySame(range.to)) {\n return 'end';\n }\n\n return range.dayInRange(day) ? 'middle' : null;\n }\n\n protected getType(day: string): string {\n return day === this.days()[5] || day === this.days()[6] ? 'weekend' : '';\n }\n}\n\nfunction convert(week: readonly string[]): readonly string[] {\n return [week[week.length - 1] || '', ...week.slice(0, week.length - 1)];\n}\n","@if (showWeek()) {\n <span>#</span>\n}\n@for (day of week(); track $index) {\n <span [attr.data-type]=\"getType(day)\">{{ day.slice(0, 2) | uppercase }}</span>\n}\n@for (week of month() | tuiCalendarSheet: true; track week) {\n @for (day of week; track day) {\n @if (day.monthSameOrBefore(month()) || showAdjacent()) {\n @if (showWeek() && $first) {\n <button\n disabled\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n >\n {{ day | tuiWeek }}\n </button>\n }\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n [attr.data-range]=\"getRange(day)\"\n [attr.data-type]=\"day | tuiMapper: dayType()\"\n [class.t-day_adjacent]=\"day.month !== month().month\"\n [class.t-day_end]=\"$last\"\n [class.t-day_hidden]=\"day.monthBefore(month()) && !showAdjacent()\"\n [class.t-day_start]=\"$first\"\n [class.t-day_today]=\"day.daySame(today)\"\n [disabled]=\"disabledItemHandler()(day)\"\n (click)=\"pick.emit(day)\"\n (mouseenter)=\"hovered.set(day)\"\n (pointerdown.prevent.zoneless)=\"(0)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${day.day}` as text; context: {$implicit: day}\">\n {{ text }}\n </ng-container>\n </button>\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAYO,MAAM,yBAAyB,GAAoB;AACtD,IAAA,OAAO,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AACzD,IAAA,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;AACzC,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,QAAQ,EAAE,KAAK;;AAGZ,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,GAAG,gBAAgB,CACxE,yBAAyB;;ACjB7B,MAAM,OAAO,GAAG,CAAC;MAGJ,WAAW,CAAA;AACb,IAAA,SAAS,CAAC,GAAW,EAAA;QACxB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;AAC/B,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;AAChD,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;AAE/C,QAAA,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,IAAI,IAAI;IACzC;AAEQ,IAAA,OAAO,CAAC,GAAW,EAAA;AAC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AA,IAAA,EAAA,SAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACX,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAUR,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAjB7B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,EAAA,OAAA,EACZ;wBACL,kBAAkB;wBAClB,oBAAoB;wBACpB,aAAa;wBACb,WAAW;wBACX,aAAa;qBAChB,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACF,wBAAA,aAAa,EAAE,YAAY;AAC3B,wBAAA,cAAc,EAAE,mBAAmB;AACtC,qBAAA,EAAA,QAAA,EAAA,gnDAAA,EAAA,MAAA,EAAA,CAAA,qzFAAA,CAAA,EAAA;;AA2DL,SAAS,OAAO,CAAC,IAAuB,EAAA;IACpC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC3E;;AErGA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-components-month.mjs","sources":["../../../projects/experimental/components/month/month.options.ts","../../../projects/experimental/components/month/week.pipe.ts","../../../projects/experimental/components/month/month.component.ts","../../../projects/experimental/components/month/month.component.html","../../../projects/experimental/components/month/taiga-ui-experimental-components-month.ts"],"sourcesContent":["import {type Signal, signal} from '@angular/core';\nimport {type TuiDay, TuiDayOfWeek} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiMonthOptions {\n readonly dayType: TuiHandler<TuiDay, string>;\n readonly weekFirstDay: Signal<number>;\n readonly showAdjacent: boolean;\n readonly showWeek: boolean;\n}\n\nexport const TUI_MONTH_DEFAULT_OPTIONS: TuiMonthOptions = {\n dayType: (day) => (day.isWeekend ? 'weekend' : 'weekday'),\n weekFirstDay: signal(TuiDayOfWeek.Monday),\n showAdjacent: false,\n showWeek: false,\n};\n\nexport const [TUI_MONTH_OPTIONS, tuiMonthOptionsProvider] = tuiCreateOptions(\n TUI_MONTH_DEFAULT_OPTIONS,\n);\n","import {Pipe, type PipeTransform} from '@angular/core';\nimport {TuiDay} from '@taiga-ui/cdk/date-time';\n\nconst ISO_MIN = 4;\n\n@Pipe({name: 'tuiWeek'})\nexport class TuiWeekPipe implements PipeTransform {\n public transform(day: TuiDay): number {\n const today = this.getWeek(day);\n const prev = this.getWeek(day.append({day: -7}));\n const next = this.getWeek(day.append({day: 7}));\n\n return next === 2 ? 1 : today || prev;\n }\n\n private getWeek(day: TuiDay): number {\n const beginning = new TuiDay(day.year, 0, 1);\n const delta = beginning.dayOfWeek();\n const first = ISO_MIN > 7 - delta ? 0 : 1;\n const sunday = day.append({day: 6 - day.dayOfWeek()});\n const offset = Math.floor(TuiDay.lengthBetween(beginning, sunday) / 7);\n\n return first + offset;\n }\n}\n","import {coerceArray} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\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 {TuiCalendarSheetPipe} from '@taiga-ui/core/components/calendar';\nimport {TUI_SHORT_WEEK_DAYS} from '@taiga-ui/core/tokens';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TUI_MONTH_OPTIONS} from './month.options';\nimport {TuiWeekPipe} from './week.pipe';\n\n/**\n * @deprecated: work in progress, do not use!\n */\n@Component({\n selector: 'tui-month',\n imports: [PolymorpheusOutlet, TuiCalendarSheetPipe, TuiMapperPipe, TuiWeekPipe],\n templateUrl: './month.component.html',\n styleUrl: './month.component.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._ww]': 'showWeek()',\n '(mouseleave)': 'hovered.set(null)',\n },\n})\nexport class TuiMonthComponent {\n private readonly days = inject(TUI_SHORT_WEEK_DAYS);\n private readonly options = inject(TUI_MONTH_OPTIONS);\n\n protected readonly today = TuiDay.currentLocal();\n protected readonly hovered = signal<TuiDay | null>(null);\n\n protected readonly week = computed((week = convert(this.days())) => [\n ...week.slice(this.options.weekFirstDay()),\n ...week.slice(0, this.options.weekFirstDay()),\n ]);\n\n public readonly pick = output<TuiDay>();\n public readonly month = input(TuiMonth.currentLocal());\n public readonly value = input<TuiDay | TuiDayRange | readonly TuiDay[] | null>(null);\n public readonly content = input<PolymorpheusContent<TuiContext<TuiDay>>>();\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 public readonly disabledItemHandler =\n input<TuiBooleanHandler<TuiDay>>(TUI_FALSE_HANDLER);\n\n protected getRange(day: TuiDay): 'end' | 'middle' | 'single' | 'start' | null {\n const value = this.value() || [];\n\n if (!(value instanceof TuiDayRange)) {\n return coerceArray(value).find((item) => day.daySame(item)) ? 'single' : null;\n }\n\n const hovered = this.hovered();\n\n const range =\n value.from === value.to && hovered\n ? TuiDayRange.sort(hovered, value.to)\n : value;\n\n if (range.isSingleDay && day.daySame(range.from)) {\n return 'single';\n }\n\n if (day.daySame(range.from)) {\n return 'start';\n }\n\n if (day.daySame(range.to)) {\n return 'end';\n }\n\n return range.dayInRange(day) ? 'middle' : null;\n }\n\n protected getType(day: string): string {\n return day === this.days()[5] || day === this.days()[6] ? 'weekend' : '';\n }\n}\n\nfunction convert(week: readonly string[]): readonly string[] {\n return [week[week.length - 1] || '', ...week.slice(0, week.length - 1)];\n}\n","@if (showWeek()) {\n <span class=\"t-label\">#</span>\n}\n@for (day of week(); track $index) {\n <span\n class=\"t-label\"\n [attr.data-type]=\"getType(day)\"\n >\n {{ day.slice(0, 2) }}\n </span>\n}\n@for (week of month() | tuiCalendarSheet: true; track week) {\n @for (day of week; track day) {\n @if (day.monthSameOrBefore(month()) || showAdjacent()) {\n @if (showWeek() && $first) {\n <button\n disabled\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n >\n {{ day | tuiWeek }}\n </button>\n }\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"t-day\"\n [attr.data-range]=\"getRange(day)\"\n [attr.data-type]=\"day | tuiMapper: dayType()\"\n [class.t-day_adjacent]=\"day.month !== month().month\"\n [class.t-day_end]=\"$last\"\n [class.t-day_hidden]=\"day.monthBefore(month()) && !showAdjacent()\"\n [class.t-day_start]=\"$first\"\n [class.t-day_today]=\"day.daySame(today)\"\n [disabled]=\"disabledItemHandler()(day)\"\n (click)=\"pick.emit(day)\"\n (mouseenter)=\"hovered.set(day)\"\n (pointerdown.prevent.zoneless)=\"(0)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || `${day.day}` as text; context: {$implicit: day}\">\n {{ text }}\n </ng-container>\n </button>\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAYO,MAAM,yBAAyB,GAAoB;AACtD,IAAA,OAAO,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AACzD,IAAA,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;AACzC,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,QAAQ,EAAE,KAAK;;AAGZ,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,GAAG,gBAAgB,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
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
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.
|
|
34
|
-
"@taiga-ui/cdk": "5.
|
|
35
|
-
"@taiga-ui/core": "5.
|
|
36
|
-
"@taiga-ui/kit": "5.
|
|
37
|
-
"@taiga-ui/layout": "5.
|
|
33
|
+
"@taiga-ui/addon-commerce": "5.20.0",
|
|
34
|
+
"@taiga-ui/cdk": "5.20.0",
|
|
35
|
+
"@taiga-ui/core": "5.20.0",
|
|
36
|
+
"@taiga-ui/kit": "5.20.0",
|
|
37
|
+
"@taiga-ui/layout": "5.20.0",
|
|
38
38
|
"@taiga-ui/polymorpheus": "^5.0.1",
|
|
39
39
|
"rxjs": ">=7.0.0"
|
|
40
40
|
},
|