ngx-tethys 19.1.0-next.5 → 19.1.0-next.7
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/CHANGELOG.md +25 -0
- package/color-picker/coordinates.directive.d.ts +1 -2
- package/date-picker/abstract-picker.component.d.ts +50 -52
- package/date-picker/abstract-picker.directive.d.ts +15 -40
- package/date-picker/base-picker.component.d.ts +12 -40
- package/date-picker/date-picker.config.d.ts +1 -0
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +24 -19
- package/date-picker/lib/calendar/calendar-header.component.d.ts +15 -15
- package/date-picker/lib/calendar/calendar-table.component.d.ts +15 -16
- package/date-picker/lib/date/date-table-cell.component.d.ts +2 -3
- package/date-picker/lib/date/date-table.component.d.ts +2 -3
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +2 -3
- package/date-picker/lib/decade/decade-header.component.d.ts +2 -5
- package/date-picker/lib/decade/decade-table.component.d.ts +3 -5
- package/date-picker/lib/month/month-table.component.d.ts +1 -2
- package/date-picker/lib/popups/date-popup.component.d.ts +33 -34
- package/date-picker/lib/popups/inner-popup.component.d.ts +22 -29
- package/date-picker/lib/quarter/quarter-table.component.d.ts +1 -4
- package/date-picker/lib/year/year-header.component.d.ts +2 -4
- package/date-picker/lib/year/year-table.component.d.ts +2 -4
- package/date-picker/month-picker.component.d.ts +2 -2
- package/date-picker/picker.component.d.ts +31 -36
- package/date-picker/picker.pipes.d.ts +4 -5
- package/date-picker/picker.util.d.ts +5 -5
- package/date-picker/picker.validators.d.ts +4 -8
- package/date-picker/quarter-picker.component.d.ts +2 -3
- package/date-picker/week-picker.component.d.ts +0 -1
- package/date-picker/year-picker.component.d.ts +2 -3
- package/dropdown/dropdown-menu.component.d.ts +1 -1
- package/dropdown/dropdown.directive.d.ts +4 -3
- package/fesm2022/ngx-tethys-autocomplete.mjs +4 -4
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +2 -2
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +4 -6
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +2 -2
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +841 -1068
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +9 -11
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +4 -5
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +11 -6
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +5 -7
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +291 -334
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +147 -166
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +1 -2
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +4 -4
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +164 -228
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +386 -569
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -2
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +215 -281
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/i18n/i18n.d.ts +2 -1
- package/i18n/locales/de-de.d.ts +2 -1
- package/i18n/locales/en-us.d.ts +2 -1
- package/i18n/locales/ja-jp.d.ts +2 -1
- package/i18n/locales/zh-hans.d.ts +2 -1
- package/i18n/locales/zh-hant.d.ts +2 -1
- package/image/preview/image-preview.component.d.ts +2 -2
- package/layout/header.component.d.ts +15 -19
- package/layout/layout.component.d.ts +3 -2
- package/layout/sidebar-header.component.d.ts +7 -8
- package/layout/sidebar.component.d.ts +32 -62
- package/list/selection/selection-list.d.ts +33 -46
- package/package.json +1 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/select/custom-select/custom-select.component.d.ts +33 -56
- package/select/native-select/native-select.component.d.ts +7 -13
- package/shared/base-form-check.component.d.ts +6 -8
- package/shared/directives/string-or-template-outlet.directive.d.ts +5 -6
- package/shared/directives/thy-autofocus.directive.d.ts +4 -6
- package/shared/directives/thy-contextmenu.directive.d.ts +2 -2
- package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
- package/shared/directives/thy-enter.directive.d.ts +2 -2
- package/shared/directives/thy-scroll.directive.d.ts +5 -8
- package/shared/directives/thy-show.d.ts +5 -6
- package/shared/directives/thy-stop-propagation.directive.d.ts +4 -4
- package/shared/directives/view-outlet.directive.d.ts +6 -7
- package/shared/ng-transclude.directive.d.ts +2 -3
- package/shared/option/group/option-group.component.d.ts +5 -9
- package/shared/option/list-option/list-option.component.d.ts +9 -13
- package/shared/option/option.component.d.ts +10 -17
- package/shared/option/option.token.d.ts +4 -3
- package/shared/option/options-container.component.d.ts +1 -1
- package/shared/select/select-control/select-control.component.d.ts +27 -47
- package/table/table-column.component.d.ts +15 -5
- package/tooltip/tooltip.directive.d.ts +20 -22
- package/tree-select/tree-select.component.d.ts +53 -70
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit, Signal, SimpleChanges, TemplateRef, OnChanges } from '@angular/core';
|
|
2
2
|
import { ThyDatePickerLocale } from 'ngx-tethys/i18n';
|
|
3
3
|
import { SafeAny } from 'ngx-tethys/types';
|
|
4
4
|
import { FunctionProp, isTemplateRef, TinyDate } from 'ngx-tethys/util';
|
|
5
5
|
import { DateBodyRow, DateCell } from '../date/types';
|
|
6
|
+
import { DisabledDateFn } from '../../standard-types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* @private
|
|
9
10
|
*/
|
|
10
11
|
export declare abstract class CalendarTable implements OnInit, OnChanges {
|
|
11
|
-
locale: Signal<ThyDatePickerLocale>;
|
|
12
|
+
protected locale: Signal<ThyDatePickerLocale>;
|
|
12
13
|
isTemplateRef: typeof isTemplateRef;
|
|
13
14
|
headRow: DateCell[];
|
|
14
15
|
bodyRows: DateBodyRow[];
|
|
15
16
|
MAX_ROW: number;
|
|
16
17
|
MAX_COL: number;
|
|
17
|
-
prefixCls: string
|
|
18
|
-
value: TinyDate
|
|
19
|
-
activeDate: TinyDate
|
|
20
|
-
showWeek: boolean
|
|
21
|
-
selectedValue: TinyDate[]
|
|
22
|
-
hoverValue: TinyDate[]
|
|
23
|
-
timeZone: string
|
|
24
|
-
disabledDate
|
|
25
|
-
cellRender
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
readonly cellHover: EventEmitter<TinyDate>;
|
|
29
|
-
constructor();
|
|
18
|
+
readonly prefixCls: import("@angular/core").InputSignal<string>;
|
|
19
|
+
readonly value: import("@angular/core").ModelSignal<TinyDate>;
|
|
20
|
+
readonly activeDate: import("@angular/core").ModelSignal<TinyDate>;
|
|
21
|
+
readonly showWeek: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
|
+
readonly selectedValue: import("@angular/core").InputSignal<TinyDate[]>;
|
|
23
|
+
readonly hoverValue: import("@angular/core").InputSignal<TinyDate[]>;
|
|
24
|
+
readonly timeZone: import("@angular/core").InputSignal<string>;
|
|
25
|
+
readonly disabledDate: import("@angular/core").InputSignal<DisabledDateFn>;
|
|
26
|
+
readonly cellRender: import("@angular/core").InputSignal<FunctionProp<string | TemplateRef<Date>>>;
|
|
27
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<TinyDate>;
|
|
28
|
+
readonly cellHover: import("@angular/core").OutputEmitterRef<TinyDate>;
|
|
30
29
|
protected render(): void;
|
|
31
30
|
trackByBodyRow(_index: number, item: DateBodyRow): SafeAny;
|
|
32
31
|
trackByBodyColumn(_index: number, item: DateCell): SafeAny;
|
|
@@ -38,5 +37,5 @@ export declare abstract class CalendarTable implements OnInit, OnChanges {
|
|
|
38
37
|
private isDateRealChange;
|
|
39
38
|
private isSameDate;
|
|
40
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarTable, never>;
|
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarTable, never, never, { "prefixCls": { "alias": "prefixCls"; "required": false; }; "value": { "alias": "value"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "hoverValue": { "alias": "hoverValue"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "cellRender": { "alias": "cellRender"; "required": false;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarTable, never, never, { "prefixCls": { "alias": "prefixCls"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "activeDate": { "alias": "activeDate"; "required": false; "isSignal": true; }; "showWeek": { "alias": "showWeek"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; "hoverValue": { "alias": "hoverValue"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "cellRender": { "alias": "cellRender"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "activeDate": "activeDateChange"; "valueChange": "valueChange"; "cellHover": "cellHover"; }, never, never, true, never>;
|
|
42
41
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { isTemplateRef } from 'ngx-tethys/util';
|
|
2
|
-
import { ThyDatePickerConfigService } from '../../date-picker.service';
|
|
3
2
|
import { DateCell } from './types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* @private
|
|
7
6
|
*/
|
|
8
7
|
export declare class DateTableCell {
|
|
8
|
+
private datePickerConfigService;
|
|
9
9
|
isTemplateRef: typeof isTemplateRef;
|
|
10
10
|
readonly prefixCls: import("@angular/core").InputSignal<"thy-calendar" | "thy-calendar-full">;
|
|
11
11
|
readonly cell: import("@angular/core").InputSignal<DateCell>;
|
|
12
12
|
isNonEmptyString: (v: any) => boolean;
|
|
13
|
-
functionRenderResult: import("@angular/core").Signal<boolean>;
|
|
14
|
-
datePickerConfigService: ThyDatePickerConfigService;
|
|
13
|
+
readonly functionRenderResult: import("@angular/core").Signal<boolean>;
|
|
15
14
|
cellRender: import("@angular/core").Signal<string | ((date: Date) => import("@angular/platform-browser").SafeHtml | undefined) | import("@angular/core").TemplateRef<Date>>;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTableCell, never>;
|
|
17
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateTableCell, "[date-table-cell]", ["dateTableCell"], { "prefixCls": { "alias": "prefixCls"; "required": false; "isSignal": true; }; "cell": { "alias": "cell"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
1
|
import { TinyDate } from 'ngx-tethys/util';
|
|
3
2
|
import { CalendarTable } from '../calendar/calendar-table.component';
|
|
4
3
|
import { DateBodyRow, DateCell } from './types';
|
|
@@ -6,10 +5,10 @@ import * as i0 from "@angular/core";
|
|
|
6
5
|
/**
|
|
7
6
|
* @private
|
|
8
7
|
*/
|
|
9
|
-
export declare class DateTable extends CalendarTable
|
|
8
|
+
export declare class DateTable extends CalendarTable {
|
|
10
9
|
private dateHelper;
|
|
11
10
|
private datePickerConfigService;
|
|
12
|
-
readonly dayHover:
|
|
11
|
+
readonly dayHover: import("@angular/core").OutputEmitterRef<TinyDate>;
|
|
13
12
|
constructor();
|
|
14
13
|
private chooseDate;
|
|
15
14
|
makeHeadRow(): DateCell[];
|
|
@@ -12,8 +12,7 @@ export declare class DateCarousel implements OnInit, ControlValueAccessor, OnDes
|
|
|
12
12
|
private cdr;
|
|
13
13
|
private dateHelper;
|
|
14
14
|
locale: Signal<ThyDatePickerLocale>;
|
|
15
|
-
|
|
16
|
-
activeDate: TinyDate;
|
|
15
|
+
readonly activeDate: import("@angular/core").InputSignal<TinyDate>;
|
|
17
16
|
set defaultValue(value: RangeAdvancedValue);
|
|
18
17
|
selectableData: {
|
|
19
18
|
year?: AdvancedSelectableCell[];
|
|
@@ -62,5 +61,5 @@ export declare class DateCarousel implements OnInit, ControlValueAccessor, OnDes
|
|
|
62
61
|
};
|
|
63
62
|
ngOnDestroy(): void;
|
|
64
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateCarousel, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateCarousel, "date-carousel", never, { "activeDate": { "alias": "activeDate"; "required": false; }; }, {}, never, never, true, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateCarousel, "date-carousel", never, { "activeDate": { "alias": "activeDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
65
|
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { DateHelperService } from '../../../date-picker/date-helper.service';
|
|
2
1
|
import { CalendarHeader, PanelSelector } from '../calendar/calendar-header.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* @private
|
|
6
5
|
*/
|
|
7
6
|
export declare class DecadeHeader extends CalendarHeader {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get startYear(): number;
|
|
11
|
-
get endYear(): number;
|
|
7
|
+
readonly startYear: import("@angular/core").Signal<number>;
|
|
8
|
+
readonly endYear: import("@angular/core").Signal<number>;
|
|
12
9
|
superPrevious(): void;
|
|
13
10
|
superNext(): void;
|
|
14
11
|
getSelectors(): PanelSelector[];
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
1
|
import { CalendarTable } from '../calendar/calendar-table.component';
|
|
3
2
|
import { DateCell, DecadeCell, DateBodyRow } from '../date/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* @private
|
|
7
6
|
*/
|
|
8
|
-
export declare class DecadeTable extends CalendarTable
|
|
7
|
+
export declare class DecadeTable extends CalendarTable {
|
|
9
8
|
MAX_ROW: number;
|
|
10
9
|
MAX_COL: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
constructor();
|
|
10
|
+
readonly startYear: import("@angular/core").Signal<number>;
|
|
11
|
+
readonly endYear: import("@angular/core").Signal<number>;
|
|
14
12
|
private chooseDecade;
|
|
15
13
|
makeHeadRow(): DateCell[];
|
|
16
14
|
makeBodyRows(): DateBodyRow[];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
1
|
import { CalendarTable } from '../calendar/calendar-table.component';
|
|
3
2
|
import { DateCell, DateBodyRow } from '../date/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* @private
|
|
7
6
|
*/
|
|
8
|
-
export declare class MonthTable extends CalendarTable
|
|
7
|
+
export declare class MonthTable extends CalendarTable {
|
|
9
8
|
private dateHelper;
|
|
10
9
|
MAX_ROW: number;
|
|
11
10
|
MAX_COL: number;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { FunctionProp, TinyDate } from 'ngx-tethys/util';
|
|
2
|
-
import {
|
|
2
|
+
import { OnInit, Signal, SimpleChanges, TemplateRef, OutputEmitterRef, OnChanges } from '@angular/core';
|
|
3
3
|
import { ThyDatePickerLocale } from 'ngx-tethys/i18n';
|
|
4
4
|
import { CompatibleValue, DatePickerFlexibleTab, RangeAdvancedValue, RangePartType } from '../../inner-types';
|
|
5
|
-
import {
|
|
5
|
+
import { ThyCompatibleDate, CompatiblePresets, DisabledDateFn, SupportTimeOptions, ThyDateChangeEvent, ThyDateGranularity, ThyPanelMode, ThyShortcutPosition, ThyShortcutPreset } from '../../standard-types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @private
|
|
9
9
|
*/
|
|
10
|
-
export declare class DatePopup implements
|
|
10
|
+
export declare class DatePopup implements OnInit, OnChanges {
|
|
11
11
|
private cdr;
|
|
12
12
|
private datePickerConfigService;
|
|
13
13
|
locale: Signal<ThyDatePickerLocale>;
|
|
14
|
-
isRange: boolean
|
|
15
|
-
showWeek: boolean
|
|
16
|
-
format: string
|
|
17
|
-
disabledDate: DisabledDateFn
|
|
18
|
-
minDate:
|
|
19
|
-
maxDate:
|
|
20
|
-
showToday: boolean
|
|
14
|
+
readonly isRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
readonly showWeek: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
readonly format: import("@angular/core").InputSignal<string>;
|
|
17
|
+
readonly disabledDate: import("@angular/core").ModelSignal<DisabledDateFn>;
|
|
18
|
+
readonly minDate: import("@angular/core").InputSignal<number | Date>;
|
|
19
|
+
readonly maxDate: import("@angular/core").InputSignal<number | Date>;
|
|
20
|
+
readonly showToday: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
21
|
/**
|
|
22
22
|
* 是否支持设置时间(时、分)
|
|
23
23
|
*/
|
|
24
|
-
showTime:
|
|
24
|
+
readonly showTime: import("@angular/core").InputSignal<boolean | SupportTimeOptions>;
|
|
25
25
|
/**
|
|
26
26
|
* 是否展示时间(时、分)
|
|
27
27
|
*/
|
|
28
|
-
mustShowTime: boolean
|
|
29
|
-
dateRender: FunctionProp<TemplateRef<Date
|
|
30
|
-
className: string
|
|
31
|
-
panelMode: ThyPanelMode | ThyPanelMode[]
|
|
32
|
-
value: CompatibleValue
|
|
33
|
-
defaultPickerValue:
|
|
34
|
-
showShortcut: boolean
|
|
35
|
-
shortcutPresets: CompatiblePresets
|
|
36
|
-
shortcutPosition: ThyShortcutPosition
|
|
37
|
-
flexible: boolean
|
|
38
|
-
flexibleDateGranularity: ThyDateGranularity
|
|
39
|
-
timestampPrecision:
|
|
40
|
-
timeZone: string
|
|
41
|
-
readonly panelModeChange:
|
|
42
|
-
readonly calendarChange:
|
|
43
|
-
readonly valueChange:
|
|
44
|
-
readonly resultOk:
|
|
45
|
-
readonly showTimePickerChange:
|
|
46
|
-
readonly dateValueChange:
|
|
28
|
+
readonly mustShowTime: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
readonly dateRender: import("@angular/core").InputSignal<FunctionProp<string | TemplateRef<Date>>>;
|
|
30
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
31
|
+
readonly panelMode: import("@angular/core").ModelSignal<ThyPanelMode | ThyPanelMode[]>;
|
|
32
|
+
readonly value: import("@angular/core").ModelSignal<CompatibleValue>;
|
|
33
|
+
readonly defaultPickerValue: import("@angular/core").InputSignal<number | ThyCompatibleDate>;
|
|
34
|
+
readonly showShortcut: import("@angular/core").ModelSignal<boolean>;
|
|
35
|
+
readonly shortcutPresets: import("@angular/core").ModelSignal<CompatiblePresets>;
|
|
36
|
+
readonly shortcutPosition: import("@angular/core").InputSignal<ThyShortcutPosition>;
|
|
37
|
+
readonly flexible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
readonly flexibleDateGranularity: import("@angular/core").ModelSignal<ThyDateGranularity>;
|
|
39
|
+
readonly timestampPrecision: import("@angular/core").InputSignal<"seconds" | "milliseconds">;
|
|
40
|
+
readonly timeZone: import("@angular/core").InputSignal<string>;
|
|
41
|
+
readonly panelModeChange: OutputEmitterRef<ThyPanelMode | ThyPanelMode[]>;
|
|
42
|
+
readonly calendarChange: OutputEmitterRef<CompatibleValue>;
|
|
43
|
+
readonly valueChange: OutputEmitterRef<CompatibleValue | RangeAdvancedValue>;
|
|
44
|
+
readonly resultOk: OutputEmitterRef<void>;
|
|
45
|
+
readonly showTimePickerChange: OutputEmitterRef<boolean>;
|
|
46
|
+
readonly dateValueChange: OutputEmitterRef<ThyDateChangeEvent>;
|
|
47
47
|
prefixCls: string;
|
|
48
48
|
showTimePicker: boolean;
|
|
49
49
|
timeOptions: SupportTimeOptions | SupportTimeOptions[] | null;
|
|
@@ -52,12 +52,11 @@ export declare class DatePopup implements OnChanges, OnInit {
|
|
|
52
52
|
hoverValue: TinyDate[];
|
|
53
53
|
advancedSelectedValue: RangeAdvancedValue;
|
|
54
54
|
flexibleActiveTab: DatePickerFlexibleTab;
|
|
55
|
-
get hasTimePicker(): boolean;
|
|
56
55
|
private partTypeMap;
|
|
57
56
|
[property: string]: any;
|
|
58
|
-
endPanelMode: ThyPanelMode | ThyPanelMode[]
|
|
57
|
+
readonly endPanelMode: import("@angular/core").WritableSignal<ThyPanelMode | ThyPanelMode[]>;
|
|
59
58
|
innerShortcutPresets: ThyShortcutPreset[];
|
|
60
|
-
disableTimeConfirm: boolean
|
|
59
|
+
readonly disableTimeConfirm: import("@angular/core").WritableSignal<boolean>;
|
|
61
60
|
setProperty<T extends keyof DatePopup>(key: T, value: this[T]): void;
|
|
62
61
|
ngOnInit(): void;
|
|
63
62
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -95,5 +94,5 @@ export declare class DatePopup implements OnChanges, OnInit {
|
|
|
95
94
|
shortcutSetValue(shortcutPresets: ThyShortcutPreset): void;
|
|
96
95
|
private createInZoneTime;
|
|
97
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePopup, never>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePopup, "date-popup", ["datePopup"], { "isRange": { "alias": "isRange"; "required": false; }; "showWeek": { "alias": "showWeek"; "required": false; }; "format": { "alias": "format"; "required": false; }; "disabledDate": { "alias": "disabledDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showToday": { "alias": "showToday"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "mustShowTime": { "alias": "mustShowTime"; "required": false; }; "dateRender": { "alias": "dateRender"; "required": false; }; "className": { "alias": "className"; "required": false; }; "panelMode": { "alias": "panelMode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "defaultPickerValue": { "alias": "defaultPickerValue"; "required": false; }; "showShortcut": { "alias": "showShortcut"; "required": false; }; "shortcutPresets": { "alias": "shortcutPresets"; "required": false; }; "shortcutPosition": { "alias": "shortcutPosition"; "required": false; }; "flexible": { "alias": "flexible"; "required": false; }; "flexibleDateGranularity": { "alias": "flexibleDateGranularity"; "required": false; }; "timestampPrecision": { "alias": "timestampPrecision"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; }, { "panelModeChange": "panelModeChange"; "calendarChange": "calendarChange"; "valueChange": "valueChange"; "resultOk": "resultOk"; "showTimePickerChange": "showTimePickerChange"; "dateValueChange": "dateValueChange"; }, never, never, true, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePopup, "date-popup", ["datePopup"], { "isRange": { "alias": "isRange"; "required": false; "isSignal": true; }; "showWeek": { "alias": "showWeek"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "showToday": { "alias": "showToday"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "mustShowTime": { "alias": "mustShowTime"; "required": false; "isSignal": true; }; "dateRender": { "alias": "dateRender"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "panelMode": { "alias": "panelMode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultPickerValue": { "alias": "defaultPickerValue"; "required": false; "isSignal": true; }; "showShortcut": { "alias": "showShortcut"; "required": false; "isSignal": true; }; "shortcutPresets": { "alias": "shortcutPresets"; "required": false; "isSignal": true; }; "shortcutPosition": { "alias": "shortcutPosition"; "required": false; "isSignal": true; }; "flexible": { "alias": "flexible"; "required": false; "isSignal": true; }; "flexibleDateGranularity": { "alias": "flexibleDateGranularity"; "required": false; "isSignal": true; }; "timestampPrecision": { "alias": "timestampPrecision"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; }, { "disabledDate": "disabledDateChange"; "panelMode": "panelModeChange"; "value": "valueChange"; "showShortcut": "showShortcutChange"; "shortcutPresets": "shortcutPresetsChange"; "flexibleDateGranularity": "flexibleDateGranularityChange"; "panelModeChange": "panelModeChange"; "calendarChange": "calendarChange"; "valueChange": "valueChange"; "resultOk": "resultOk"; "showTimePickerChange": "showTimePickerChange"; "dateValueChange": "dateValueChange"; }, never, never, true, never>;
|
|
99
98
|
}
|
|
@@ -1,41 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FunctionProp, TinyDate } from 'ngx-tethys/util';
|
|
3
3
|
import { RangePartType } from '../../inner-types';
|
|
4
4
|
import { DisabledDateFn, ThyPanelMode } from '../../standard-types';
|
|
5
5
|
import { ThyDatePickerLocale } from 'ngx-tethys/i18n';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "ngx-tethys/util";
|
|
8
7
|
/**
|
|
9
8
|
* @private
|
|
10
9
|
*/
|
|
11
|
-
export declare class InnerPopup
|
|
10
|
+
export declare class InnerPopup {
|
|
12
11
|
private dateHelper;
|
|
13
12
|
locale: Signal<ThyDatePickerLocale>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
readonly panelModeChange: EventEmitter<ThyPanelMode>;
|
|
33
|
-
value: TinyDate;
|
|
34
|
-
readonly headerChange: EventEmitter<TinyDate>;
|
|
35
|
-
readonly selectDate: EventEmitter<TinyDate>;
|
|
36
|
-
readonly dayHover: EventEmitter<TinyDate>;
|
|
13
|
+
readonly showWeek: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
readonly isRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
readonly activeDate: import("@angular/core").ModelSignal<TinyDate>;
|
|
16
|
+
readonly rangeActiveDate: import("@angular/core").InputSignal<TinyDate[]>;
|
|
17
|
+
readonly disabledDate: import("@angular/core").InputSignal<DisabledDateFn>;
|
|
18
|
+
readonly dateRender: import("@angular/core").InputSignal<FunctionProp<string | TemplateRef<Date>>>;
|
|
19
|
+
readonly selectedValue: import("@angular/core").InputSignal<TinyDate[]>;
|
|
20
|
+
readonly hoverValue: import("@angular/core").InputSignal<TinyDate[]>;
|
|
21
|
+
readonly panelMode: import("@angular/core").InputSignalWithTransform<ThyPanelMode, "time" | ThyPanelMode>;
|
|
22
|
+
readonly timeZone: import("@angular/core").InputSignal<string>;
|
|
23
|
+
readonly showDateRangeInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
readonly partType: import("@angular/core").InputSignal<RangePartType>;
|
|
25
|
+
readonly endPanelMode: import("@angular/core").InputSignal<ThyPanelMode>;
|
|
26
|
+
readonly value: import("@angular/core").ModelSignal<TinyDate>;
|
|
27
|
+
readonly panelModeChange: import("@angular/core").OutputEmitterRef<ThyPanelMode>;
|
|
28
|
+
readonly headerChange: import("@angular/core").OutputEmitterRef<TinyDate>;
|
|
29
|
+
readonly selectDate: import("@angular/core").OutputEmitterRef<TinyDate>;
|
|
30
|
+
readonly dayHover: import("@angular/core").OutputEmitterRef<TinyDate>;
|
|
37
31
|
prefixCls: string;
|
|
38
|
-
|
|
32
|
+
constructor();
|
|
39
33
|
getReadableValue(value: TinyDate): string;
|
|
40
34
|
onSelectDate(date: TinyDate): void;
|
|
41
35
|
onChooseMonth(value: TinyDate): void;
|
|
@@ -45,6 +39,5 @@ export declare class InnerPopup implements OnChanges {
|
|
|
45
39
|
enablePrevNext(direction: 'prev' | 'next', mode: ThyPanelMode): boolean;
|
|
46
40
|
enableSuperPrevNext(direction: 'prev' | 'next', panelMode: ThyPanelMode): boolean;
|
|
47
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<InnerPopup, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InnerPopup, "inner-popup", ["innerPopup"], { "showWeek": { "alias": "showWeek"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "rangeActiveDate": { "alias": "rangeActiveDate"; "required": false;
|
|
49
|
-
static ngAcceptInputType_showDateRangeInput: i1.ThyBooleanInput;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InnerPopup, "inner-popup", ["innerPopup"], { "showWeek": { "alias": "showWeek"; "required": false; "isSignal": true; }; "isRange": { "alias": "isRange"; "required": false; "isSignal": true; }; "activeDate": { "alias": "activeDate"; "required": false; "isSignal": true; }; "rangeActiveDate": { "alias": "rangeActiveDate"; "required": false; "isSignal": true; }; "disabledDate": { "alias": "disabledDate"; "required": false; "isSignal": true; }; "dateRender": { "alias": "dateRender"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; "hoverValue": { "alias": "hoverValue"; "required": false; "isSignal": true; }; "panelMode": { "alias": "panelMode"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "showDateRangeInput": { "alias": "showDateRangeInput"; "required": false; "isSignal": true; }; "partType": { "alias": "partType"; "required": false; "isSignal": true; }; "endPanelMode": { "alias": "endPanelMode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "activeDate": "activeDateChange"; "value": "valueChange"; "panelModeChange": "panelModeChange"; "headerChange": "headerChange"; "selectDate": "selectDate"; "dayHover": "dayHover"; }, never, never, true, never>;
|
|
50
43
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
1
|
import { TinyDate } from 'ngx-tethys/util';
|
|
3
2
|
import { CalendarTable } from '../calendar/calendar-table.component';
|
|
4
3
|
import { DateCell, DateBodyRow } from '../date/types';
|
|
@@ -6,11 +5,9 @@ import * as i0 from "@angular/core";
|
|
|
6
5
|
/**
|
|
7
6
|
* @private
|
|
8
7
|
*/
|
|
9
|
-
export declare class QuarterTable extends CalendarTable
|
|
10
|
-
private dateHelper;
|
|
8
|
+
export declare class QuarterTable extends CalendarTable {
|
|
11
9
|
MAX_ROW: number;
|
|
12
10
|
MAX_COL: number;
|
|
13
|
-
constructor();
|
|
14
11
|
private chooseQuarter;
|
|
15
12
|
makeHeadRow(): DateCell[];
|
|
16
13
|
makeBodyRows(): DateBodyRow[];
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { DateHelperService } from '../../../date-picker/date-helper.service';
|
|
2
1
|
import { CalendarHeader, PanelSelector } from '../calendar/calendar-header.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* @private
|
|
6
5
|
*/
|
|
7
6
|
export declare class YearHeader extends CalendarHeader {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get endYear(): number;
|
|
7
|
+
readonly startYear: import("@angular/core").Signal<number>;
|
|
8
|
+
readonly endYear: import("@angular/core").Signal<number>;
|
|
11
9
|
superPrevious(): void;
|
|
12
10
|
superNext(): void;
|
|
13
11
|
getSelectors(): PanelSelector[];
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
1
|
import { CalendarTable } from '../calendar/calendar-table.component';
|
|
3
2
|
import { DateCell, DateBodyRow, YearCell } from '../date/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* @private
|
|
7
6
|
*/
|
|
8
|
-
export declare class YearTable extends CalendarTable
|
|
7
|
+
export declare class YearTable extends CalendarTable {
|
|
9
8
|
MAX_ROW: number;
|
|
10
9
|
MAX_COL: number;
|
|
11
|
-
readonly decadePanelShow:
|
|
12
|
-
constructor();
|
|
10
|
+
readonly decadePanelShow: import("@angular/core").OutputEmitterRef<void>;
|
|
13
11
|
private chooseYear;
|
|
14
12
|
makeHeadRow(): DateCell[];
|
|
15
13
|
makeBodyRows(): DateBodyRow[];
|
|
@@ -11,9 +11,9 @@ export declare class ThyMonthPicker extends BasePicker {
|
|
|
11
11
|
/**
|
|
12
12
|
* 展示的月份格式
|
|
13
13
|
*/
|
|
14
|
-
thyFormat: string
|
|
14
|
+
readonly thyFormat: import("@angular/core").ModelSignal<string>;
|
|
15
15
|
private hostRenderer;
|
|
16
16
|
constructor();
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMonthPicker, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMonthPicker, "thy-month-picker", ["thyMonthPicker"], { "thyFormat": { "alias": "thyFormat"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMonthPicker, "thy-month-picker", ["thyMonthPicker"], { "thyFormat": { "alias": "thyFormat"; "required": false; "isSignal": true; }; }, { "thyFormat": "thyFormatChange"; }, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
import { ThyPlacement } from 'ngx-tethys/core';
|
|
2
2
|
import { TinyDate } from 'ngx-tethys/util';
|
|
3
3
|
import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
4
|
-
import { AfterViewInit, ElementRef
|
|
4
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
5
5
|
import { CompatibleValue, RangePartType } from './inner-types';
|
|
6
6
|
import { ThyDateGranularity } from './standard-types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "ngx-tethys/util";
|
|
9
8
|
/**
|
|
10
9
|
* @private
|
|
11
10
|
*/
|
|
12
|
-
export declare class ThyPicker implements
|
|
11
|
+
export declare class ThyPicker implements AfterViewInit {
|
|
13
12
|
private changeDetector;
|
|
14
13
|
private dateHelper;
|
|
15
14
|
private i18n;
|
|
16
|
-
isRange: boolean
|
|
17
|
-
|
|
18
|
-
disabled: boolean
|
|
19
|
-
placeholder: string | string[]
|
|
20
|
-
readonly: boolean
|
|
21
|
-
allowClear: boolean
|
|
22
|
-
autoFocus: boolean
|
|
23
|
-
className: string
|
|
24
|
-
size:
|
|
25
|
-
suffixIcon: string
|
|
26
|
-
placement: ThyPlacement
|
|
27
|
-
flexible: boolean
|
|
28
|
-
mode: string
|
|
29
|
-
hasBackdrop: boolean
|
|
30
|
-
separator: string
|
|
31
|
-
timeZone: string
|
|
32
|
-
blur:
|
|
33
|
-
readonly valueChange:
|
|
34
|
-
readonly openChange:
|
|
35
|
-
readonly inputChange:
|
|
36
|
-
origin: CdkOverlayOrigin
|
|
37
|
-
cdkConnectedOverlay: CdkConnectedOverlay
|
|
38
|
-
pickerInput: ElementRef
|
|
39
|
-
overlayContainer: ElementRef<HTMLElement
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
set flexibleDateGranularity(granularity: ThyDateGranularity);
|
|
44
|
-
get value(): TinyDate | TinyDate[] | null;
|
|
45
|
-
set value(value: TinyDate | TinyDate[] | null);
|
|
15
|
+
readonly isRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
readonly opened: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
readonly placeholder: import("@angular/core").InputSignal<string | string[]>;
|
|
19
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly allowClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly autoFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
|
+
readonly className: import("@angular/core").InputSignal<string>;
|
|
23
|
+
readonly size: import("@angular/core").InputSignal<"default" | "sm" | "lg" | "xs" | "md">;
|
|
24
|
+
readonly suffixIcon: import("@angular/core").InputSignal<string>;
|
|
25
|
+
readonly placement: import("@angular/core").InputSignal<ThyPlacement>;
|
|
26
|
+
readonly flexible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
readonly mode: import("@angular/core").InputSignal<string>;
|
|
28
|
+
readonly hasBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
readonly separator: import("@angular/core").InputSignal<string>;
|
|
30
|
+
readonly timeZone: import("@angular/core").InputSignal<string>;
|
|
31
|
+
readonly blur: import("@angular/core").OutputEmitterRef<Event>;
|
|
32
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<TinyDate | TinyDate[]>;
|
|
33
|
+
readonly openChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
34
|
+
readonly inputChange: import("@angular/core").OutputEmitterRef<string>;
|
|
35
|
+
readonly origin: import("@angular/core").Signal<CdkOverlayOrigin>;
|
|
36
|
+
readonly cdkConnectedOverlay: import("@angular/core").Signal<CdkConnectedOverlay>;
|
|
37
|
+
readonly pickerInput: import("@angular/core").Signal<ElementRef<any>>;
|
|
38
|
+
readonly overlayContainer: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
39
|
+
readonly format: import("@angular/core").InputSignal<string>;
|
|
40
|
+
readonly flexibleDateGranularity: import("@angular/core").InputSignal<ThyDateGranularity>;
|
|
41
|
+
readonly value: import("@angular/core").InputSignal<TinyDate | TinyDate[]>;
|
|
46
42
|
private innerflexibleDateGranularity;
|
|
47
43
|
private innerFormat;
|
|
48
44
|
private innerValue;
|
|
@@ -53,7 +49,7 @@ export declare class ThyPicker implements OnChanges, AfterViewInit {
|
|
|
53
49
|
overlayPositions: ConnectionPositionPair[];
|
|
54
50
|
get realOpenState(): boolean;
|
|
55
51
|
get readonlyState(): boolean;
|
|
56
|
-
|
|
52
|
+
constructor();
|
|
57
53
|
ngAfterViewInit(): void;
|
|
58
54
|
focus(): void;
|
|
59
55
|
onBlur(event: FocusEvent): void;
|
|
@@ -76,6 +72,5 @@ export declare class ThyPicker implements OnChanges, AfterViewInit {
|
|
|
76
72
|
getPlaceholder(): string;
|
|
77
73
|
private updateReadableDate;
|
|
78
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyPicker, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPicker, "thy-picker", ["thyPicker"], { "isRange": { "alias": "isRange"; "required": false; }; "
|
|
80
|
-
static ngAcceptInputType_hasBackdrop: i1.ThyBooleanInput;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPicker, "thy-picker", ["thyPicker"], { "isRange": { "alias": "isRange"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "flexible": { "alias": "flexible"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "flexibleDateGranularity": { "alias": "flexibleDateGranularity"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "blur": "blur"; "valueChange": "valueChange"; "openChange": "openChange"; "inputChange": "inputChange"; }, never, ["*"], true, never>;
|
|
81
76
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { ThyDatePickerConfigService } from './date-picker.service';
|
|
3
3
|
import { AdvancedSelectableCell } from './inner-types';
|
|
4
|
-
import {
|
|
4
|
+
import { ThyCompatibleDate, DateEntry, ThyDateGranularity, ThyDateRangeEntry } from './standard-types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* @private
|
|
@@ -10,14 +10,14 @@ export declare class ThyDatePickerFormatPipe implements PipeTransform {
|
|
|
10
10
|
private dateHelper;
|
|
11
11
|
private datePickerConfigService;
|
|
12
12
|
private i18n;
|
|
13
|
-
transform(originalValue:
|
|
13
|
+
transform(originalValue: ThyCompatibleDate | DateEntry | ThyDateRangeEntry, formatStr?: string, separator?: string): string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyDatePickerFormatPipe, never>;
|
|
15
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<ThyDatePickerFormatPipe, "thyDatePickerFormat", true>;
|
|
16
16
|
}
|
|
17
17
|
export declare class ThyQuarterPickerFormatPipe implements PipeTransform {
|
|
18
18
|
private datePickerConfigService;
|
|
19
19
|
constructor(datePickerConfigService: ThyDatePickerConfigService);
|
|
20
|
-
transform(originalValue:
|
|
20
|
+
transform(originalValue: ThyCompatibleDate | DateEntry | ThyDateRangeEntry, formatStr?: string, separator?: string): string;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyQuarterPickerFormatPipe, never>;
|
|
22
22
|
static ɵpipe: i0.ɵɵPipeDeclaration<ThyQuarterPickerFormatPipe, "thyQuarterPickerFormat", true>;
|
|
23
23
|
}
|
|
@@ -25,8 +25,7 @@ export declare class ThyQuarterPickerFormatPipe implements PipeTransform {
|
|
|
25
25
|
* @private
|
|
26
26
|
*/
|
|
27
27
|
export declare class ThyDatePickerFormatStringPipe implements PipeTransform {
|
|
28
|
-
|
|
29
|
-
transform(originalValue: CompatibleDate | DateEntry | ThyDateRangeEntry): string;
|
|
28
|
+
transform(originalValue: ThyCompatibleDate | DateEntry | ThyDateRangeEntry): string;
|
|
30
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyDatePickerFormatStringPipe, never>;
|
|
31
30
|
static ɵpipe: i0.ɵɵPipeDeclaration<ThyDatePickerFormatStringPipe, "thyDatePickerFormatString", true>;
|
|
32
31
|
}
|
|
@@ -3,16 +3,16 @@ import { ThyI18nLocale } from 'ngx-tethys/i18n';
|
|
|
3
3
|
import { SafeAny } from 'ngx-tethys/types';
|
|
4
4
|
import { TinyDate } from 'ngx-tethys/util';
|
|
5
5
|
import { CompatibleValue, RangeAdvancedValue } from './inner-types';
|
|
6
|
-
import {
|
|
7
|
-
export declare function transformDateValue(value:
|
|
8
|
-
value:
|
|
6
|
+
import { ThyCompatibleDate, DateEntry, ThyDateGranularity, ThyDateRangeEntry, ThyPanelMode, ThyShortcutValue } from './standard-types';
|
|
7
|
+
export declare function transformDateValue(value: ThyCompatibleDate | CompatibleValue | number | DateEntry | ThyDateRangeEntry | RangeAdvancedValue): {
|
|
8
|
+
value: ThyCompatibleDate;
|
|
9
9
|
withTime?: boolean;
|
|
10
10
|
flexibleDateGranularity?: ThyDateGranularity;
|
|
11
11
|
};
|
|
12
12
|
export declare function getFlexibleAdvancedReadableValue(tinyDates: TinyDate[], flexibleDateGranularity: ThyDateGranularity, separator: string, locale: Signal<ThyI18nLocale>): string;
|
|
13
13
|
export declare function convertDate(date: Date | number | TinyDate): Date;
|
|
14
14
|
export declare function hasValue(value: CompatibleValue): boolean;
|
|
15
|
-
export declare function makeValue(value:
|
|
15
|
+
export declare function makeValue(value: ThyCompatibleDate | null, isRange?: boolean, timeZone?: string): CompatibleValue;
|
|
16
16
|
export declare function dateAddAmount(value: TinyDate, amount: number, mode: ThyPanelMode): TinyDate;
|
|
17
17
|
export declare function isAfterMoreThanOneMonth(rightDate: TinyDate, leftDate: TinyDate): boolean;
|
|
18
18
|
export declare function isAfterMoreThanLessOneYear(rightDate: TinyDate, leftDate: TinyDate): boolean;
|
|
@@ -27,4 +27,4 @@ export declare function getShortcutValue(value: ThyShortcutValue): number | Date
|
|
|
27
27
|
export declare function isValidStringDate(dateStr: string, timeZone?: string): boolean;
|
|
28
28
|
export declare function parseStringDate(dateStr: string, timeZone?: string): TinyDate;
|
|
29
29
|
export declare function hasTimeInStringDate(dateStr: string, timeZone?: string): boolean;
|
|
30
|
-
export declare function setValueByTimestampPrecision(date:
|
|
30
|
+
export declare function setValueByTimestampPrecision(date: ThyCompatibleDate | number | Date | DateEntry | ThyDateRangeEntry | SafeAny, isRange: boolean, timestampPrecision: 'seconds' | 'milliseconds', timeZone?: string): number | number[];
|