@ng-nest/ui 15.0.16 → 15.0.18
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/checkbox/checkbox.component.d.ts +2 -0
- package/checkbox/checkbox.module.d.ts +4 -3
- package/checkbox/checkbox.property.d.ts +42 -1
- package/core/config/config.d.ts +6 -2
- package/core/functions/date.d.ts +2 -0
- package/date-picker/date-picker-portal.component.d.ts +1 -0
- package/date-picker/date-picker.module.d.ts +18 -16
- package/date-picker/date-picker.property.d.ts +120 -1
- package/date-picker/date-quarter.pipe.d.ts +9 -0
- package/date-picker/picker-date.component.d.ts +1 -0
- package/date-picker/picker-quarter.component.d.ts +45 -0
- package/date-picker/public-api.d.ts +2 -0
- package/esm2020/checkbox/checkbox.component.mjs +21 -4
- package/esm2020/checkbox/checkbox.module.mjs +5 -4
- package/esm2020/checkbox/checkbox.property.mjs +28 -2
- package/esm2020/core/config/config.mjs +1 -1
- package/esm2020/core/functions/date.mjs +15 -1
- package/esm2020/date-picker/date-picker-portal.component.mjs +16 -4
- package/esm2020/date-picker/date-picker.component.mjs +12 -3
- package/esm2020/date-picker/date-picker.module.mjs +18 -6
- package/esm2020/date-picker/date-picker.property.mjs +154 -1
- package/esm2020/date-picker/date-quarter.pipe.mjs +19 -0
- package/esm2020/date-picker/date-range-portal.component.mjs +7 -6
- package/esm2020/date-picker/date-range.component.mjs +28 -4
- package/esm2020/date-picker/picker-date.component.mjs +6 -3
- package/esm2020/date-picker/picker-quarter.component.mjs +237 -0
- package/esm2020/date-picker/public-api.mjs +3 -1
- package/esm2020/empty/empty.property.mjs +4 -1
- package/esm2020/i18n/i18n.property.mjs +1 -1
- package/esm2020/i18n/languages/en_GB.mjs +4 -1
- package/esm2020/i18n/languages/en_US.mjs +4 -1
- package/esm2020/i18n/languages/zh_CN.mjs +4 -1
- package/esm2020/i18n/languages/zh_TW.mjs +4 -1
- package/esm2020/radio/radio.component.mjs +28 -6
- package/esm2020/radio/radio.module.mjs +5 -4
- package/esm2020/radio/radio.property.mjs +28 -3
- package/esm2020/table/table-body.component.mjs +3 -3
- package/esm2020/table/table.property.mjs +18 -2
- package/esm2020/tag/tag.component.mjs +4 -4
- package/esm2020/tag/tag.property.mjs +22 -2
- package/fesm2015/ng-nest-ui-checkbox.mjs +51 -7
- package/fesm2015/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-core.mjs +15 -1
- package/fesm2015/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-date-picker.mjs +468 -18
- package/fesm2015/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-empty.mjs +3 -0
- package/fesm2015/ng-nest-ui-empty.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-i18n.mjs +12 -0
- package/fesm2015/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-radio.mjs +58 -10
- package/fesm2015/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-table.mjs +19 -3
- package/fesm2015/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-tag.mjs +24 -4
- package/fesm2015/ng-nest-ui-tag.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-checkbox.mjs +51 -7
- package/fesm2020/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-core.mjs +15 -1
- package/fesm2020/ng-nest-ui-core.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-date-picker.mjs +467 -18
- package/fesm2020/ng-nest-ui-date-picker.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-empty.mjs +3 -0
- package/fesm2020/ng-nest-ui-empty.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-i18n.mjs +12 -0
- package/fesm2020/ng-nest-ui-i18n.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-radio.mjs +58 -10
- package/fesm2020/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-table.mjs +19 -3
- package/fesm2020/ng-nest-ui-table.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-tag.mjs +24 -4
- package/fesm2020/ng-nest-ui-tag.mjs.map +1 -1
- package/i18n/i18n.property.d.ts +3 -0
- package/i18n/languages/en_GB.d.ts +3 -0
- package/i18n/languages/en_US.d.ts +3 -0
- package/i18n/languages/zh_CN.d.ts +3 -0
- package/i18n/languages/zh_TW.d.ts +3 -0
- package/package.json +1 -1
- package/radio/radio.component.d.ts +2 -0
- package/radio/radio.module.d.ts +4 -3
- package/radio/radio.property.d.ts +38 -3
- package/table/table.property.d.ts +16 -1
- package/tag/tag.property.d.ts +8 -3
|
@@ -8,6 +8,7 @@ export declare class XCheckboxComponent extends XCheckboxProperty implements OnC
|
|
|
8
8
|
cdr: ChangeDetectorRef;
|
|
9
9
|
configService: XConfigService;
|
|
10
10
|
checkbox: ElementRef<HTMLElement>;
|
|
11
|
+
checkboxType: 'initial' | 'button' | 'icon' | 'tag';
|
|
11
12
|
writeValue(value: boolean | Array<any>): void;
|
|
12
13
|
get beforeIsTemplate(): boolean;
|
|
13
14
|
get afterIsTemplate(): boolean;
|
|
@@ -20,6 +21,7 @@ export declare class XCheckboxComponent extends XCheckboxProperty implements OnC
|
|
|
20
21
|
ngOnChanges(changes: SimpleChanges): void;
|
|
21
22
|
ngOnDestroy(): void;
|
|
22
23
|
setClassMap(): void;
|
|
24
|
+
setCheckboxType(): void;
|
|
23
25
|
checkboxClick(event: Event, node: XCheckboxNode): void;
|
|
24
26
|
getChecked(id: any): boolean;
|
|
25
27
|
private setData;
|
|
@@ -4,10 +4,11 @@ import * as i2 from "./checkbox.property";
|
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
6
|
import * as i5 from "@ng-nest/ui/button";
|
|
7
|
-
import * as i6 from "@ng-nest/ui/
|
|
8
|
-
import * as i7 from "@ng-nest/ui/
|
|
7
|
+
import * as i6 from "@ng-nest/ui/tag";
|
|
8
|
+
import * as i7 from "@ng-nest/ui/outlet";
|
|
9
|
+
import * as i8 from "@ng-nest/ui/base-form";
|
|
9
10
|
export declare class XCheckboxModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<XCheckboxModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XCheckboxModule, [typeof i1.XCheckboxComponent, typeof i2.XCheckboxProperty], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.XButtonModule, typeof i6.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XCheckboxModule, [typeof i1.XCheckboxComponent, typeof i2.XCheckboxProperty], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.XButtonModule, typeof i6.XTagModule, typeof i7.XOutletModule, typeof i8.XBaseFormModule], [typeof i1.XCheckboxComponent]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<XCheckboxModule>;
|
|
13
14
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { XData, XTemplate, XIdentityProperty, XSize, XBoolean } from '@ng-nest/ui/core';
|
|
2
|
+
import { XButtonType } from '@ng-nest/ui/button';
|
|
2
3
|
import { XControlValueAccessor, XFormOption } from '@ng-nest/ui/base-form';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
@@ -26,6 +27,11 @@ export declare class XCheckboxProperty extends XControlValueAccessor<boolean | A
|
|
|
26
27
|
* @en_US Icon style
|
|
27
28
|
*/
|
|
28
29
|
icon?: XBoolean;
|
|
30
|
+
/**
|
|
31
|
+
* @zh_CN tag 标签样式
|
|
32
|
+
* @en_US Tag style
|
|
33
|
+
*/
|
|
34
|
+
tag?: XBoolean;
|
|
29
35
|
/**
|
|
30
36
|
* @zh_CN 不确定状态的样式
|
|
31
37
|
* @en_US Uncertain state style
|
|
@@ -36,6 +42,21 @@ export declare class XCheckboxProperty extends XControlValueAccessor<boolean | A
|
|
|
36
42
|
* @en_US Size
|
|
37
43
|
*/
|
|
38
44
|
size?: XSize;
|
|
45
|
+
/**
|
|
46
|
+
* @zh_CN 按钮/图标/ tag 标签样式时生效
|
|
47
|
+
* @en_US Take effect when button style
|
|
48
|
+
*/
|
|
49
|
+
type: XButtonType;
|
|
50
|
+
/**
|
|
51
|
+
* @zh_CN tag 标签边框
|
|
52
|
+
* @en_US Tag bordered
|
|
53
|
+
*/
|
|
54
|
+
tagBordered: XBoolean;
|
|
55
|
+
/**
|
|
56
|
+
* @zh_CN tag 标签深色主题
|
|
57
|
+
* @en_US Tag dark theme
|
|
58
|
+
*/
|
|
59
|
+
tagDark: XBoolean;
|
|
39
60
|
/**
|
|
40
61
|
* @zh_CN 前置标签
|
|
41
62
|
* @en_US Before label
|
|
@@ -47,7 +68,7 @@ export declare class XCheckboxProperty extends XControlValueAccessor<boolean | A
|
|
|
47
68
|
*/
|
|
48
69
|
after: XTemplate;
|
|
49
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<XCheckboxProperty, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XCheckboxProperty, "ng-component", never, { "data": "data"; "button": "button"; "icon": "icon"; "indeterminate": "indeterminate"; "size": "size"; "before": "before"; "after": "after"; }, {}, never, never, false, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XCheckboxProperty, "ng-component", never, { "data": "data"; "button": "button"; "icon": "icon"; "tag": "tag"; "indeterminate": "indeterminate"; "size": "size"; "type": "type"; "tagBordered": "tagBordered"; "tagDark": "tagDark"; "before": "before"; "after": "after"; }, {}, never, never, false, never>;
|
|
51
72
|
}
|
|
52
73
|
/**
|
|
53
74
|
* Checkbox Option
|
|
@@ -69,6 +90,11 @@ export interface XCheckboxOption extends XFormOption {
|
|
|
69
90
|
* @en_US Icon style
|
|
70
91
|
*/
|
|
71
92
|
icon?: XBoolean;
|
|
93
|
+
/**
|
|
94
|
+
* @zh_CN tag 标签样式
|
|
95
|
+
* @en_US Tag style
|
|
96
|
+
*/
|
|
97
|
+
tag?: XBoolean;
|
|
72
98
|
/**
|
|
73
99
|
* @zh_CN 不确定状态的样式
|
|
74
100
|
* @en_US Uncertain state style
|
|
@@ -79,6 +105,21 @@ export interface XCheckboxOption extends XFormOption {
|
|
|
79
105
|
* @en_US Size
|
|
80
106
|
*/
|
|
81
107
|
size?: XSize;
|
|
108
|
+
/**
|
|
109
|
+
* @zh_CN 按钮/图标/ tag 标签样式时生效
|
|
110
|
+
* @en_US Take effect when button style
|
|
111
|
+
*/
|
|
112
|
+
type?: XButtonType;
|
|
113
|
+
/**
|
|
114
|
+
* @zh_CN tag 标签边框
|
|
115
|
+
* @en_US Tag bordered
|
|
116
|
+
*/
|
|
117
|
+
tagBordered?: XBoolean;
|
|
118
|
+
/**
|
|
119
|
+
* @zh_CN tag 标签深色主题
|
|
120
|
+
* @en_US Tag dark theme
|
|
121
|
+
*/
|
|
122
|
+
tagDark?: XBoolean;
|
|
82
123
|
/**
|
|
83
124
|
* @zh_CN 前置标签
|
|
84
125
|
* @en_US Before label
|
package/core/config/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XSize, XBoolean, XType, XEffect, XNumber, XPositionLeftRight, XJustify, XShape, XFit, XShadow, XTrigger, XDisplayDirection, XCorner, XDirection, XPlace, XPosition, XPlacement, XPositionTopBottom, XStatus, XAlign } from '../interfaces';
|
|
1
|
+
import { XSize, XBoolean, XType, XEffect, XNumber, XPositionLeftRight, XJustify, XShape, XFit, XShadow, XTrigger, XDisplayDirection, XCorner, XDirection, XPlace, XPosition, XPlacement, XPositionTopBottom, XStatus, XAlign, XTemplate } from '../interfaces';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
3
|
import { XTheme } from '../theme';
|
|
4
4
|
export interface XConfig {
|
|
@@ -251,7 +251,8 @@ export interface XDescriptionConfig {
|
|
|
251
251
|
size?: XSize;
|
|
252
252
|
}
|
|
253
253
|
export interface XEmptyConfig {
|
|
254
|
-
|
|
254
|
+
img?: XTemplate;
|
|
255
|
+
content?: XTemplate;
|
|
255
256
|
}
|
|
256
257
|
export interface XFindConfig {
|
|
257
258
|
size?: XSize;
|
|
@@ -457,6 +458,9 @@ export interface XTableConfig {
|
|
|
457
458
|
expandedLevel?: XNumber;
|
|
458
459
|
hiddenPaginationBorder?: XBoolean;
|
|
459
460
|
hiddenWrapBorder?: XBoolean;
|
|
461
|
+
showEmpty?: XBoolean;
|
|
462
|
+
emptyImg?: XTemplate;
|
|
463
|
+
emptyContent?: XTemplate;
|
|
460
464
|
}
|
|
461
465
|
export interface XTabsConfig {
|
|
462
466
|
size?: XSize;
|
package/core/functions/date.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ export declare function XAddYears(date: XDate, amount: number): Date;
|
|
|
10
10
|
export declare function XDateWeek(date: XDate): number | undefined;
|
|
11
11
|
export declare function XDateWeekYear(date: XDate): number | undefined;
|
|
12
12
|
export declare function XDateYearWeek(date: XDate): string | undefined;
|
|
13
|
+
export declare function XDateYearQuarter(date: XDate): string | undefined;
|
|
14
|
+
export declare function XDateQuarter(date: XDate): string | undefined;
|
|
@@ -49,6 +49,7 @@ export declare class XDatePickerPortalComponent implements OnInit, OnDestroy, Af
|
|
|
49
49
|
setDisplay(date: Date): void;
|
|
50
50
|
dateChange(date: Date): void;
|
|
51
51
|
monthChange(date: Date): void;
|
|
52
|
+
quarterChange(date: Date): void;
|
|
52
53
|
yearChange(date: Date): void;
|
|
53
54
|
onToday(): void;
|
|
54
55
|
onYesterday(): void;
|
|
@@ -3,23 +3,25 @@ import * as i1 from "./date-picker.component";
|
|
|
3
3
|
import * as i2 from "./date-picker-portal.component";
|
|
4
4
|
import * as i3 from "./picker-date.component";
|
|
5
5
|
import * as i4 from "./picker-month.component";
|
|
6
|
-
import * as i5 from "./picker-
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./date-
|
|
9
|
-
import * as i8 from "./date-range
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@ng-nest/ui/
|
|
15
|
-
import * as i14 from "@ng-nest/ui/
|
|
16
|
-
import * as i15 from "@ng-nest/ui/
|
|
17
|
-
import * as i16 from "@ng-nest/ui/
|
|
18
|
-
import * as i17 from "@ng-nest/ui/
|
|
19
|
-
import * as i18 from "@ng-nest/ui/
|
|
20
|
-
import * as i19 from "@ng-nest/ui/
|
|
6
|
+
import * as i5 from "./picker-quarter.component";
|
|
7
|
+
import * as i6 from "./picker-year.component";
|
|
8
|
+
import * as i7 from "./date-picker.property";
|
|
9
|
+
import * as i8 from "./date-range.component";
|
|
10
|
+
import * as i9 from "./date-range-portal.component";
|
|
11
|
+
import * as i10 from "./date-quarter.pipe";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "@angular/forms";
|
|
14
|
+
import * as i13 from "@ng-nest/ui/portal";
|
|
15
|
+
import * as i14 from "@ng-nest/ui/time-picker";
|
|
16
|
+
import * as i15 from "@ng-nest/ui/input";
|
|
17
|
+
import * as i16 from "@ng-nest/ui/link";
|
|
18
|
+
import * as i17 from "@ng-nest/ui/button";
|
|
19
|
+
import * as i18 from "@ng-nest/ui/icon";
|
|
20
|
+
import * as i19 from "@ng-nest/ui/i18n";
|
|
21
|
+
import * as i20 from "@ng-nest/ui/base-form";
|
|
22
|
+
import * as i21 from "@ng-nest/ui/outlet";
|
|
21
23
|
export declare class XDatePickerModule {
|
|
22
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<XDatePickerModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XDatePickerModule, [typeof i1.XDatePickerComponent, typeof i2.XDatePickerPortalComponent, typeof i3.XPickerDateComponent, typeof i4.XPickerMonthComponent, typeof i5.
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XDatePickerModule, [typeof i1.XDatePickerComponent, typeof i2.XDatePickerPortalComponent, typeof i3.XPickerDateComponent, typeof i4.XPickerMonthComponent, typeof i5.XPickerQuarterComponent, typeof i6.XPickerYearComponent, typeof i7.XDatePickerProperty, typeof i7.XPickerDateProperty, typeof i7.XPickerMonthProperty, typeof i7.XPickerQuarterProperty, typeof i7.XPickerYearProperty, typeof i8.XDateRangeComponent, typeof i9.XDateRangePortalComponent, typeof i7.XDateRangeProperty, typeof i10.XDateQuarterPipe], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.XPortalModule, typeof i14.XTimePickerModule, typeof i15.XInputModule, typeof i16.XLinkModule, typeof i17.XButtonModule, typeof i18.XIconModule, typeof i19.XI18nModule, typeof i20.XBaseFormModule, typeof i21.XOutletModule], [typeof i1.XDatePickerComponent, typeof i8.XDateRangeComponent, typeof i2.XDatePickerPortalComponent, typeof i3.XPickerDateComponent, typeof i4.XPickerMonthComponent, typeof i5.XPickerQuarterComponent, typeof i6.XPickerYearComponent, typeof i10.XDateQuarterPipe]>;
|
|
24
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<XDatePickerModule>;
|
|
25
27
|
}
|
|
@@ -267,7 +267,7 @@ export interface XDateRangePreset extends XIdentityProperty {
|
|
|
267
267
|
* @zh_CN 日期选择类型
|
|
268
268
|
* @en_US Date selection type
|
|
269
269
|
*/
|
|
270
|
-
export declare type XDatePickerType = 'date' | 'week' | 'month' | 'year' | 'date-time' | 'date-hour' | 'date-minute';
|
|
270
|
+
export declare type XDatePickerType = 'date' | 'week' | 'month' | 'quarter' | 'year' | 'date-time' | 'date-hour' | 'date-minute';
|
|
271
271
|
/**
|
|
272
272
|
* @zh_CN 日期数据类型
|
|
273
273
|
* @en_US Date data type
|
|
@@ -657,6 +657,125 @@ export declare class XPickerMonthProperty extends XProperty {
|
|
|
657
657
|
static ɵfac: i0.ɵɵFactoryDeclaration<XPickerMonthProperty, never>;
|
|
658
658
|
static ɵcmp: i0.ɵɵComponentDeclaration<XPickerMonthProperty, "ng-component", never, { "type": "type"; "display": "display"; "model": "model"; "monthTemp": "monthTemp"; "showHeader": "showHeader"; "rangePicker": "rangePicker"; "lastYearBtn": "lastYearBtn"; "nextYearBtn": "nextYearBtn"; "rangeValue": "rangeValue"; "rangeType": "rangeType"; "disabledDate": "disabledDate"; }, { "modelChange": "modelChange"; "typeChange": "typeChange"; "rangeChange": "rangeChange"; "yearChange": "yearChange"; "monthChange": "monthChange"; "displayChange": "displayChange"; "rangeTdMouseenter": "rangeTdMouseenter"; "rangeTdMouseleave": "rangeTdMouseleave"; "rangeDateClick": "rangeDateClick"; }, never, never, false, never>;
|
|
659
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* PickerQuarter
|
|
662
|
+
* @selector x-picker-quarter
|
|
663
|
+
* @decorator component
|
|
664
|
+
*/
|
|
665
|
+
export declare const XPickerQuarterPrefix = "x-picker-quarter";
|
|
666
|
+
/**
|
|
667
|
+
* PickerQuarter Property
|
|
668
|
+
*/
|
|
669
|
+
export declare class XPickerQuarterProperty extends XProperty {
|
|
670
|
+
/**
|
|
671
|
+
* @zh_CN 选择类型
|
|
672
|
+
* @en_US Select type
|
|
673
|
+
*/
|
|
674
|
+
type: XDatePickerType;
|
|
675
|
+
/**
|
|
676
|
+
* @zh_CN 显示的日期
|
|
677
|
+
* @en_US Date displayed
|
|
678
|
+
*/
|
|
679
|
+
display: Date;
|
|
680
|
+
/**
|
|
681
|
+
* @zh_CN 选中的日期
|
|
682
|
+
* @en_US Selected date
|
|
683
|
+
*/
|
|
684
|
+
model?: Date | null;
|
|
685
|
+
/**
|
|
686
|
+
* @zh_CN 季度显示模板
|
|
687
|
+
* @en_US Month display template
|
|
688
|
+
*/
|
|
689
|
+
quarterTemp?: TemplateRef<any>;
|
|
690
|
+
/**
|
|
691
|
+
* @zh_CN 显示切换按钮
|
|
692
|
+
* @en_US Display switch button
|
|
693
|
+
*/
|
|
694
|
+
showHeader: XBoolean;
|
|
695
|
+
/**
|
|
696
|
+
* @zh_CN 范围选择
|
|
697
|
+
* @en_US Range picker
|
|
698
|
+
*/
|
|
699
|
+
rangePicker?: XBoolean;
|
|
700
|
+
/**
|
|
701
|
+
* @zh_CN 上一年
|
|
702
|
+
* @en_US Last year
|
|
703
|
+
*/
|
|
704
|
+
lastYearBtn: XBoolean;
|
|
705
|
+
/**
|
|
706
|
+
* @zh_CN 下一年
|
|
707
|
+
* @en_US Next year
|
|
708
|
+
*/
|
|
709
|
+
nextYearBtn: XBoolean;
|
|
710
|
+
/**
|
|
711
|
+
* @zh_CN 范围月份
|
|
712
|
+
* @en_US Range date
|
|
713
|
+
*/
|
|
714
|
+
rangeValue: (number | null)[];
|
|
715
|
+
/**
|
|
716
|
+
* @zh_CN 当前选择的是开始/结束日期
|
|
717
|
+
* @en_US The current choice is the start / end date
|
|
718
|
+
*/
|
|
719
|
+
rangeType: XDatePickerRangType;
|
|
720
|
+
/**
|
|
721
|
+
* @zh_CN 禁用的日期
|
|
722
|
+
* @en_US Disabled date
|
|
723
|
+
*/
|
|
724
|
+
disabledDate?: XDatePickerDisabledDate;
|
|
725
|
+
/**
|
|
726
|
+
* @zh_CN 选中的事件
|
|
727
|
+
* @en_US Selected event
|
|
728
|
+
*/
|
|
729
|
+
modelChange: EventEmitter<Date>;
|
|
730
|
+
/**
|
|
731
|
+
* @zh_CN 选择类型
|
|
732
|
+
* @en_US Select type
|
|
733
|
+
*/
|
|
734
|
+
typeChange: EventEmitter<XDatePickerType>;
|
|
735
|
+
/**
|
|
736
|
+
* @zh_CN 范围变化的事件
|
|
737
|
+
* @en_US Scope change event
|
|
738
|
+
*/
|
|
739
|
+
rangeChange: EventEmitter<Date[]>;
|
|
740
|
+
/**
|
|
741
|
+
* @zh_CN 选年的事件
|
|
742
|
+
* @en_US Year change event
|
|
743
|
+
*/
|
|
744
|
+
yearChange: EventEmitter<number>;
|
|
745
|
+
/**
|
|
746
|
+
* @zh_CN 选月的事件
|
|
747
|
+
* @en_US Month change event
|
|
748
|
+
*/
|
|
749
|
+
monthChange: EventEmitter<number>;
|
|
750
|
+
/**
|
|
751
|
+
* @zh_CN 显示季度事件
|
|
752
|
+
* @en_US display date event
|
|
753
|
+
*/
|
|
754
|
+
displayChange: EventEmitter<Date>;
|
|
755
|
+
/**
|
|
756
|
+
* @zh_CN 范围季度 mouseenter 事件
|
|
757
|
+
* @en_US Date mouseenter event
|
|
758
|
+
*/
|
|
759
|
+
rangeTdMouseenter: EventEmitter<XDateCell>;
|
|
760
|
+
/**
|
|
761
|
+
* @zh_CN 范围季度 mouseleave 事件
|
|
762
|
+
* @en_US Date mouseleave event
|
|
763
|
+
*/
|
|
764
|
+
rangeTdMouseleave: EventEmitter<XDateCell>;
|
|
765
|
+
/**
|
|
766
|
+
* @zh_CN 范围中的季度点击事件
|
|
767
|
+
* @en_US Range date click event
|
|
768
|
+
*/
|
|
769
|
+
rangeDateClick: EventEmitter<XDateCell>;
|
|
770
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XPickerQuarterProperty, never>;
|
|
771
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XPickerQuarterProperty, "ng-component", never, { "type": "type"; "display": "display"; "model": "model"; "quarterTemp": "quarterTemp"; "showHeader": "showHeader"; "rangePicker": "rangePicker"; "lastYearBtn": "lastYearBtn"; "nextYearBtn": "nextYearBtn"; "rangeValue": "rangeValue"; "rangeType": "rangeType"; "disabledDate": "disabledDate"; }, { "modelChange": "modelChange"; "typeChange": "typeChange"; "rangeChange": "rangeChange"; "yearChange": "yearChange"; "monthChange": "monthChange"; "displayChange": "displayChange"; "rangeTdMouseenter": "rangeTdMouseenter"; "rangeTdMouseleave": "rangeTdMouseleave"; "rangeDateClick": "rangeDateClick"; }, never, never, false, never>;
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* DateQuarter
|
|
775
|
+
* @selector xDateQuarter
|
|
776
|
+
* @decorator pipe
|
|
777
|
+
*/
|
|
778
|
+
export declare const XDateQuarterPrefix = "xDateQuarter";
|
|
660
779
|
/**
|
|
661
780
|
* PickerYear
|
|
662
781
|
* @selector x-picker-year
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { XDate } from '@ng-nest/ui/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class XDateQuarterPipe implements PipeTransform {
|
|
5
|
+
constructor();
|
|
6
|
+
transform(input?: XDate, includeYear?: boolean): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XDateQuarterPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<XDateQuarterPipe, "xDateQuarter", false>;
|
|
9
|
+
}
|
|
@@ -20,6 +20,7 @@ export declare class XPickerDateComponent extends XPickerDateProperty implements
|
|
|
20
20
|
private _unSubject;
|
|
21
21
|
get rangeStart(): number | "" | null;
|
|
22
22
|
get rangeEnd(): number | "" | null;
|
|
23
|
+
get isWeek(): boolean;
|
|
23
24
|
get isWeekRange(): import("@ng-nest/ui/core").XBoolean | undefined;
|
|
24
25
|
get isNotWeekRange(): import("@ng-nest/ui/core").XBoolean | undefined;
|
|
25
26
|
isDisabled(date: Date): boolean;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Renderer2, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { XConfigService } from '@ng-nest/ui/core';
|
|
3
|
+
import { XDateCell, XDatePickerType, XPickerQuarterProperty } from './date-picker.property';
|
|
4
|
+
import { DatePipe, LowerCasePipe } from '@angular/common';
|
|
5
|
+
import { XI18nDatePicker, XI18nService } from '@ng-nest/ui/i18n';
|
|
6
|
+
import { XDateQuarterPipe } from './date-quarter.pipe';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class XPickerQuarterComponent extends XPickerQuarterProperty implements OnChanges {
|
|
9
|
+
renderer: Renderer2;
|
|
10
|
+
datePipe: DatePipe;
|
|
11
|
+
lowerCasePipe: LowerCasePipe;
|
|
12
|
+
dateQuarterPipe: XDateQuarterPipe;
|
|
13
|
+
cdr: ChangeDetectorRef;
|
|
14
|
+
configService: XConfigService;
|
|
15
|
+
i18n: XI18nService;
|
|
16
|
+
now: Date;
|
|
17
|
+
dates: XDateCell[];
|
|
18
|
+
chunkDates: XDateCell[][];
|
|
19
|
+
locale: XI18nDatePicker;
|
|
20
|
+
private _unSubject;
|
|
21
|
+
get rangeStart(): number | "" | null;
|
|
22
|
+
get rangeEnd(): number | "" | null;
|
|
23
|
+
isDisabled(date: Date): boolean;
|
|
24
|
+
constructor(renderer: Renderer2, datePipe: DatePipe, lowerCasePipe: LowerCasePipe, dateQuarterPipe: XDateQuarterPipe, cdr: ChangeDetectorRef, configService: XConfigService, i18n: XI18nService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnChanges(simples: SimpleChanges): void;
|
|
27
|
+
init(): void;
|
|
28
|
+
isStartQuarter(date: Date): boolean | undefined;
|
|
29
|
+
isEndQuarter(date: Date): boolean | undefined;
|
|
30
|
+
setDatesState(cell: XDateCell): void;
|
|
31
|
+
onTdMouseenter(cell: XDateCell, isEmit?: boolean): void;
|
|
32
|
+
onTdMouseleave(cell: XDateCell, isEmit?: boolean): void;
|
|
33
|
+
clearState(...cells: XDateCell[]): void;
|
|
34
|
+
setQuarters(date: Date): void;
|
|
35
|
+
setDayState(cell: XDateCell): XDateCell;
|
|
36
|
+
quarterClick(cell: XDateCell): void;
|
|
37
|
+
getLocaleQuarter(date: Date): string;
|
|
38
|
+
rangeDisabled(date: Date): boolean;
|
|
39
|
+
setDisplay(date: Date): void;
|
|
40
|
+
nextYear(num: number): void;
|
|
41
|
+
typeOnChange(type: XDatePickerType): void;
|
|
42
|
+
trackByQuarter(_index: number, item: string | Date | XDateCell): string | Date | XDateCell;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<XPickerQuarterComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XPickerQuarterComponent, "x-picker-quarter", never, {}, {}, never, never, false, never>;
|
|
45
|
+
}
|
|
@@ -4,6 +4,8 @@ export * from './date-range.component';
|
|
|
4
4
|
export * from './date-range-portal.component';
|
|
5
5
|
export * from './picker-date.component';
|
|
6
6
|
export * from './picker-month.component';
|
|
7
|
+
export * from './picker-quarter.component';
|
|
7
8
|
export * from './picker-year.component';
|
|
8
9
|
export * from './date-picker.module';
|
|
9
10
|
export * from './date-picker.property';
|
|
11
|
+
export * from './date-quarter.pipe';
|