ngx-tethys 18.2.0-next.0 → 18.2.0-next.1
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 +40 -0
- package/autocomplete/autocomplete.component.d.ts +2 -1
- package/calendar/calendar-header.component.d.ts +2 -0
- package/cascader/cascader.component.d.ts +1 -0
- package/color-picker/color-picker-panel.component.d.ts +3 -1
- package/copy/copy.directive.d.ts +1 -0
- package/core/theme/store.d.ts +2 -1
- package/date-picker/abstract-picker.component.d.ts +3 -1
- package/date-picker/date-helper.service.d.ts +3 -0
- package/date-picker/date-picker.config.d.ts +7 -1
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +3 -1
- package/date-picker/lib/calendar/calendar-header.component.d.ts +3 -1
- package/date-picker/lib/calendar/calendar-table.component.d.ts +3 -1
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +4 -1
- package/date-picker/lib/popups/date-popup.component.d.ts +3 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +3 -1
- package/date-range/date-range.component.d.ts +2 -0
- package/date-range/optional-dates/optional-dates.component.d.ts +1 -0
- package/dialog/confirm/confirm.component.d.ts +1 -0
- package/dialog/confirm.config.d.ts +14 -7
- package/empty/empty.component.d.ts +14 -9
- package/empty/empty.config.d.ts +3 -0
- package/esm2022/autocomplete/autocomplete.component.mjs +5 -3
- package/esm2022/calendar/calendar-header.component.mjs +9 -5
- package/esm2022/cascader/cascader.component.mjs +5 -3
- package/esm2022/checkbox/checkbox.component.mjs +1 -1
- package/esm2022/color-picker/color-picker-panel.component.mjs +5 -3
- package/esm2022/copy/copy.directive.mjs +7 -5
- package/esm2022/core/theme/store.mjs +7 -7
- package/esm2022/date-picker/abstract-picker.component.mjs +4 -2
- package/esm2022/date-picker/base-picker.component.mjs +2 -2
- package/esm2022/date-picker/date-helper.service.mjs +4 -2
- package/esm2022/date-picker/date-picker.component.mjs +1 -1
- package/esm2022/date-picker/date-picker.config.mjs +55 -2
- package/esm2022/date-picker/date-picker.directive.mjs +1 -1
- package/esm2022/date-picker/date-picker.service.mjs +3 -3
- package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +5 -3
- package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -1
- package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -1
- package/esm2022/date-picker/lib/date/date-header.component.mjs +6 -5
- package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
- package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +9 -4
- package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
- package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -2
- package/esm2022/date-picker/lib/popups/date-popup.component.mjs +5 -3
- package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +5 -3
- package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
- package/esm2022/date-picker/month-picker.component.mjs +1 -1
- package/esm2022/date-picker/quarter-picker.component.mjs +1 -1
- package/esm2022/date-picker/range-picker.component.mjs +1 -1
- package/esm2022/date-picker/range-picker.directive.mjs +1 -1
- package/esm2022/date-picker/week-picker.component.mjs +1 -1
- package/esm2022/date-picker/year-picker.component.mjs +1 -1
- package/esm2022/date-range/date-range.component.mjs +7 -4
- package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -2
- package/esm2022/dialog/confirm/confirm.component.mjs +14 -3
- package/esm2022/dialog/confirm.config.mjs +17 -2
- package/esm2022/empty/empty.component.mjs +7 -2
- package/esm2022/empty/empty.config.mjs +4 -1
- package/esm2022/form/form-validator-loader.mjs +17 -15
- package/esm2022/guider/guider-hint/guider-hint.component.mjs +5 -3
- package/esm2022/i18n/i18n.mjs +2 -0
- package/esm2022/i18n/i18n.service.mjs +39 -0
- package/esm2022/i18n/i18n.token.mjs +8 -0
- package/esm2022/i18n/index.mjs +7 -0
- package/esm2022/i18n/locale.mjs +14 -0
- package/esm2022/i18n/locales/en-us.mjs +147 -0
- package/esm2022/i18n/locales/zh-cn.mjs +127 -0
- package/esm2022/i18n/ngx-tethys-i18n.mjs +5 -0
- package/esm2022/pagination/pagination.component.mjs +22 -5
- package/esm2022/pagination/pagination.module.mjs +26 -5
- package/esm2022/pagination/pagination.pipe.mjs +22 -1
- package/esm2022/property/property-item.component.mjs +3 -3
- package/esm2022/radio/button/radio-button.component.mjs +1 -1
- package/esm2022/radio/radio.component.mjs +1 -1
- package/esm2022/select/custom-select/custom-select.component.mjs +9 -3
- package/esm2022/strength/strength.component.mjs +21 -20
- package/esm2022/time-picker/time-picker-panel.component.mjs +5 -3
- package/esm2022/time-picker/time-picker.component.mjs +4 -2
- package/esm2022/transfer/transfer-list.component.mjs +5 -3
- package/esm2022/tree-select/tree-select.component.mjs +5 -3
- package/esm2022/version.mjs +2 -2
- package/fesm2022/ngx-tethys-autocomplete.mjs +4 -2
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +8 -5
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +4 -2
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +4 -2
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +6 -4
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +6 -6
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +95 -30
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +8 -4
- package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +27 -2
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +9 -1
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +16 -14
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +4 -2
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +338 -0
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -0
- package/fesm2022/ngx-tethys-pagination.mjs +66 -7
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +2 -2
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +8 -2
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +20 -19
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +6 -3
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +4 -2
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +4 -2
- 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/form/form-validator-loader.d.ts +2 -0
- package/guider/guider-hint/guider-hint.component.d.ts +3 -1
- package/i18n/i18n.d.ts +143 -0
- package/i18n/i18n.service.d.ts +19 -0
- package/i18n/i18n.token.d.ts +5 -0
- package/i18n/index.d.ts +6 -0
- package/i18n/locale.d.ts +4 -0
- package/i18n/locales/en-us.d.ts +147 -0
- package/i18n/locales/zh-cn.d.ts +126 -0
- package/package.json +7 -1
- package/pagination/pagination.component.d.ts +4 -1
- package/pagination/pagination.module.d.ts +1 -1
- package/pagination/pagination.pipe.d.ts +6 -0
- package/radio/radio.component.d.ts +0 -2
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/select/custom-select/custom-select.component.d.ts +1 -0
- package/strength/strength.component.d.ts +21 -2
- package/styles/modules/cdk/drag-drop.scss +1 -1
- package/time-picker/time-picker-panel.component.d.ts +3 -1
- package/time-picker/time-picker.component.d.ts +3 -1
- package/transfer/transfer-list.component.d.ts +3 -1
- package/tree-select/tree-select.component.d.ts +1 -0
package/i18n/i18n.d.ts
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export type ThyModuleType = 'datePicker' | 'dateRange' | 'timePicker' | 'calendar' | 'autocomplete' | 'transfer' | 'colorPicker' | 'strength' | 'guider' | 'copy' | 'dialog' | 'select' | 'treeSelect' | 'cascader' | 'pagination' | 'form' | 'empty';
|
|
2
|
+
export type ThyModuleLocaleType<K extends ThyModuleType> = ThyI18nLocale[K];
|
|
3
|
+
export interface ThyI18nLocale {
|
|
4
|
+
id: string;
|
|
5
|
+
datePicker: ThyDatePickerLocale;
|
|
6
|
+
dateRange: ThyDateRangeLocale;
|
|
7
|
+
timePicker: ThyTimePickerLocale;
|
|
8
|
+
calendar: ThyCalendarLocale;
|
|
9
|
+
autocomplete: ThyAutoCompleteLocale;
|
|
10
|
+
transfer: ThyTransferLocale;
|
|
11
|
+
colorPicker: ThyColorPickerLocale;
|
|
12
|
+
strength: ThyStrengthLocale;
|
|
13
|
+
guider: ThyGuiderLocale;
|
|
14
|
+
copy: ThyCopyLocale;
|
|
15
|
+
dialog: ThyDialogLocale;
|
|
16
|
+
select: ThySelectLocale;
|
|
17
|
+
treeSelect: ThyTreeSelectLocale;
|
|
18
|
+
cascader: ThyCascaderLocale;
|
|
19
|
+
pagination: ThyPaginationLocale;
|
|
20
|
+
form: ThyFormLocale;
|
|
21
|
+
empty: ThyEmptyLocale;
|
|
22
|
+
}
|
|
23
|
+
export interface ThyDatePickerLocale {
|
|
24
|
+
yearFormat: string;
|
|
25
|
+
monthFormat: string;
|
|
26
|
+
zhMonthFormat: string;
|
|
27
|
+
weekFormat: string;
|
|
28
|
+
fullWeekFormat: string;
|
|
29
|
+
weekThFormat: string;
|
|
30
|
+
dateFormat: string;
|
|
31
|
+
yearText: string;
|
|
32
|
+
quarterText: string;
|
|
33
|
+
monthText: string;
|
|
34
|
+
week: string;
|
|
35
|
+
prefixWeek: string;
|
|
36
|
+
previousYear: string;
|
|
37
|
+
nextYear: string;
|
|
38
|
+
previousMonth: string;
|
|
39
|
+
nextMonth: string;
|
|
40
|
+
today: string;
|
|
41
|
+
tomorrow: string;
|
|
42
|
+
nextWeek: string;
|
|
43
|
+
lastSevenDays: string;
|
|
44
|
+
lastThirtyDays: string;
|
|
45
|
+
currentMonth: string;
|
|
46
|
+
currentWeek: string;
|
|
47
|
+
advance: string;
|
|
48
|
+
custom: string;
|
|
49
|
+
startDate: string;
|
|
50
|
+
endDate: string;
|
|
51
|
+
setTime: string;
|
|
52
|
+
placeholder: string;
|
|
53
|
+
ok: string;
|
|
54
|
+
clear: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ThyDateRangeLocale {
|
|
57
|
+
custom: string;
|
|
58
|
+
currentWeek: string;
|
|
59
|
+
currentMonth: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ThyTimePickerLocale {
|
|
62
|
+
placeholder: string;
|
|
63
|
+
now: string;
|
|
64
|
+
ok: string;
|
|
65
|
+
}
|
|
66
|
+
export interface ThyCalendarLocale {
|
|
67
|
+
today: string;
|
|
68
|
+
yearMonthFormat: string;
|
|
69
|
+
}
|
|
70
|
+
export interface ThyAutoCompleteLocale {
|
|
71
|
+
empty: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ThyTransferLocale {
|
|
74
|
+
maxLimit: string;
|
|
75
|
+
maxLockLimit: string;
|
|
76
|
+
unlocked: string;
|
|
77
|
+
}
|
|
78
|
+
export interface ThyColorPickerLocale {
|
|
79
|
+
defaultColor: string;
|
|
80
|
+
noFillColor: string;
|
|
81
|
+
recentUsedColor: string;
|
|
82
|
+
customColor: string;
|
|
83
|
+
none: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ThyStrengthLocale {
|
|
86
|
+
highest: string;
|
|
87
|
+
high: string;
|
|
88
|
+
medium: string;
|
|
89
|
+
low: string;
|
|
90
|
+
}
|
|
91
|
+
export interface ThyGuiderLocale {
|
|
92
|
+
skip: string;
|
|
93
|
+
prev: string;
|
|
94
|
+
next: string;
|
|
95
|
+
finish: string;
|
|
96
|
+
}
|
|
97
|
+
export interface ThyCopyLocale {
|
|
98
|
+
tips: string;
|
|
99
|
+
success: string;
|
|
100
|
+
error: string;
|
|
101
|
+
}
|
|
102
|
+
export interface ThyDialogLocale {
|
|
103
|
+
title: string;
|
|
104
|
+
ok: string;
|
|
105
|
+
cancel: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ThySelectLocale {
|
|
108
|
+
placeholder: string;
|
|
109
|
+
empty: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ThyTreeSelectLocale {
|
|
112
|
+
placeholder: string;
|
|
113
|
+
empty: string;
|
|
114
|
+
}
|
|
115
|
+
export interface ThyCascaderLocale {
|
|
116
|
+
placeholder: string;
|
|
117
|
+
empty: string;
|
|
118
|
+
}
|
|
119
|
+
export interface ThyPaginationLocale {
|
|
120
|
+
page: string;
|
|
121
|
+
total: string;
|
|
122
|
+
totalCount: string;
|
|
123
|
+
jumpTo: string;
|
|
124
|
+
firstPage: string;
|
|
125
|
+
lastPage: string;
|
|
126
|
+
defaultUnit: string;
|
|
127
|
+
}
|
|
128
|
+
export interface ThyFormLocale {
|
|
129
|
+
required: string;
|
|
130
|
+
maxlength: string;
|
|
131
|
+
minlength: string;
|
|
132
|
+
uniqueCheck: string;
|
|
133
|
+
email: string;
|
|
134
|
+
confirm: string;
|
|
135
|
+
pattern: string;
|
|
136
|
+
number: string;
|
|
137
|
+
url: string;
|
|
138
|
+
max: string;
|
|
139
|
+
min: string;
|
|
140
|
+
}
|
|
141
|
+
export interface ThyEmptyLocale {
|
|
142
|
+
noDataText: string;
|
|
143
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { ThyI18nLocale } from './index';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ThyI18nService {
|
|
5
|
+
private locales;
|
|
6
|
+
private defaultLocaleId;
|
|
7
|
+
private locale;
|
|
8
|
+
/**
|
|
9
|
+
* 设置语言,支持传入 zh-cn(或zh-CN)、 en-us(或en-US)
|
|
10
|
+
* @param id
|
|
11
|
+
*/
|
|
12
|
+
setLocale(id: string): void;
|
|
13
|
+
/**
|
|
14
|
+
* 获取当前语言
|
|
15
|
+
*/
|
|
16
|
+
getLocale(): Signal<ThyI18nLocale>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThyI18nService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThyI18nService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ThyI18nLocale } from './i18n';
|
|
3
|
+
export declare const THY_I18N_LOCALE_ID: InjectionToken<string>;
|
|
4
|
+
export declare const THY_I18N_ZH_CN: InjectionToken<ThyI18nLocale>;
|
|
5
|
+
export declare const THY_I18N_EN_US: InjectionToken<ThyI18nLocale>;
|
package/i18n/index.d.ts
ADDED
package/i18n/locale.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { ThyModuleType, ThyI18nLocale, ThyModuleLocaleType } from './index';
|
|
3
|
+
export declare function useLocale(): Signal<ThyI18nLocale>;
|
|
4
|
+
export declare function injectLocale<K extends ThyModuleType>(key: K): Signal<ThyModuleLocaleType<K>>;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
datePicker: {
|
|
4
|
+
yearFormat: string;
|
|
5
|
+
monthFormat: string;
|
|
6
|
+
zhMonthFormat: string;
|
|
7
|
+
weekFormat: string;
|
|
8
|
+
fullWeekFormat: string;
|
|
9
|
+
weekThFormat: string;
|
|
10
|
+
dateFormat: string;
|
|
11
|
+
yearText: string;
|
|
12
|
+
quarterText: string;
|
|
13
|
+
monthText: string;
|
|
14
|
+
week: string;
|
|
15
|
+
prefixWeek: string;
|
|
16
|
+
previousYear: string;
|
|
17
|
+
nextYear: string;
|
|
18
|
+
previousMonth: string;
|
|
19
|
+
nextMonth: string;
|
|
20
|
+
today: string;
|
|
21
|
+
tomorrow: string;
|
|
22
|
+
nextWeek: string;
|
|
23
|
+
lastSevenDays: string;
|
|
24
|
+
lastThirtyDays: string;
|
|
25
|
+
currentMonth: string;
|
|
26
|
+
currentWeek: string;
|
|
27
|
+
advance: string;
|
|
28
|
+
custom: string;
|
|
29
|
+
startDate: string;
|
|
30
|
+
endDate: string;
|
|
31
|
+
setTime: string;
|
|
32
|
+
placeholder: string;
|
|
33
|
+
ok: string;
|
|
34
|
+
clear: string;
|
|
35
|
+
};
|
|
36
|
+
dateRange: {
|
|
37
|
+
custom: string;
|
|
38
|
+
currentWeek: string;
|
|
39
|
+
currentMonth: string;
|
|
40
|
+
};
|
|
41
|
+
timePicker: {
|
|
42
|
+
placeholder: string;
|
|
43
|
+
now: string;
|
|
44
|
+
ok: string;
|
|
45
|
+
};
|
|
46
|
+
calendar: {
|
|
47
|
+
today: string;
|
|
48
|
+
yearMonthFormat: string;
|
|
49
|
+
};
|
|
50
|
+
autocomplete: {
|
|
51
|
+
empty: string;
|
|
52
|
+
};
|
|
53
|
+
transfer: {
|
|
54
|
+
maxLimit: string;
|
|
55
|
+
maxLockLimit: string;
|
|
56
|
+
unlocked: string;
|
|
57
|
+
};
|
|
58
|
+
colorPicker: {
|
|
59
|
+
defaultColor: string;
|
|
60
|
+
noFillColor: string;
|
|
61
|
+
recentUsedColor: string;
|
|
62
|
+
customColor: string;
|
|
63
|
+
none: string;
|
|
64
|
+
};
|
|
65
|
+
strength: {
|
|
66
|
+
highest: string;
|
|
67
|
+
high: string;
|
|
68
|
+
medium: string;
|
|
69
|
+
low: string;
|
|
70
|
+
};
|
|
71
|
+
guider: {
|
|
72
|
+
skip: string;
|
|
73
|
+
prev: string;
|
|
74
|
+
next: string;
|
|
75
|
+
finish: string;
|
|
76
|
+
};
|
|
77
|
+
copy: {
|
|
78
|
+
tips: string;
|
|
79
|
+
success: string;
|
|
80
|
+
error: string;
|
|
81
|
+
};
|
|
82
|
+
dialog: {
|
|
83
|
+
title: string;
|
|
84
|
+
ok: string;
|
|
85
|
+
cancel: string;
|
|
86
|
+
};
|
|
87
|
+
select: {
|
|
88
|
+
placeholder: string;
|
|
89
|
+
empty: string;
|
|
90
|
+
};
|
|
91
|
+
treeSelect: {
|
|
92
|
+
placeholder: string;
|
|
93
|
+
empty: string;
|
|
94
|
+
};
|
|
95
|
+
cascader: {
|
|
96
|
+
placeholder: string;
|
|
97
|
+
empty: string;
|
|
98
|
+
};
|
|
99
|
+
pagination: {
|
|
100
|
+
page: string;
|
|
101
|
+
order: string;
|
|
102
|
+
total: string;
|
|
103
|
+
totalCount: string;
|
|
104
|
+
jumpTo: string;
|
|
105
|
+
firstPage: string;
|
|
106
|
+
lastPage: string;
|
|
107
|
+
defaultUnit: string;
|
|
108
|
+
};
|
|
109
|
+
form: {
|
|
110
|
+
required: string;
|
|
111
|
+
maxlength: string;
|
|
112
|
+
minlength: string;
|
|
113
|
+
uniqueCheck: string;
|
|
114
|
+
email: string;
|
|
115
|
+
confirm: string;
|
|
116
|
+
pattern: string;
|
|
117
|
+
number: string;
|
|
118
|
+
url: string;
|
|
119
|
+
max: string;
|
|
120
|
+
min: string;
|
|
121
|
+
};
|
|
122
|
+
empty: {
|
|
123
|
+
noDataText: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export default _default;
|
|
127
|
+
/**
|
|
128
|
+
* Format options:
|
|
129
|
+
* | Field type | Format | Description | Example Value |
|
|
130
|
+
* |--------------------|-------------|--------------------------------------------|---------------------------------|
|
|
131
|
+
* | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
|
|
132
|
+
* | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
|
|
133
|
+
* | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
|
|
134
|
+
* | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
|
|
135
|
+
* | Month | M | Numeric: 1 digit | 9, 12 |
|
|
136
|
+
* | | MM | Numeric: 2 digits + zero padded | 09, 12 |
|
|
137
|
+
* | | MMM | Abbreviated | Sep |
|
|
138
|
+
* | | MMMM | Wide | September |
|
|
139
|
+
* | | MMMMM | Narrow | S |
|
|
140
|
+
* | Week day | E, EE & EEE | Abbreviated | Tue |
|
|
141
|
+
* | | EEEE | Wide | Tuesday |
|
|
142
|
+
* | | EEEEE | Narrow | T |
|
|
143
|
+
* | | EEEEEE | Short | Tu |
|
|
144
|
+
* | ISO Week of year | w | Numeric: minimum digits | 1... 53 |
|
|
145
|
+
* | | ww | Numeric: 2 digits + zero padded | 01... 53 |
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
datePicker: {
|
|
4
|
+
yearFormat: string;
|
|
5
|
+
monthFormat: string;
|
|
6
|
+
zhMonthFormat: string;
|
|
7
|
+
weekFormat: string;
|
|
8
|
+
fullWeekFormat: string;
|
|
9
|
+
weekThFormat: string;
|
|
10
|
+
dateFormat: string;
|
|
11
|
+
yearText: string;
|
|
12
|
+
quarterText: string;
|
|
13
|
+
monthText: string;
|
|
14
|
+
week: string;
|
|
15
|
+
prefixWeek: string;
|
|
16
|
+
previousYear: string;
|
|
17
|
+
nextYear: string;
|
|
18
|
+
previousMonth: string;
|
|
19
|
+
nextMonth: string;
|
|
20
|
+
today: string;
|
|
21
|
+
tomorrow: string;
|
|
22
|
+
nextWeek: string;
|
|
23
|
+
lastSevenDays: string;
|
|
24
|
+
lastThirtyDays: string;
|
|
25
|
+
currentMonth: string;
|
|
26
|
+
currentWeek: string;
|
|
27
|
+
advance: string;
|
|
28
|
+
custom: string;
|
|
29
|
+
startDate: string;
|
|
30
|
+
endDate: string;
|
|
31
|
+
setTime: string;
|
|
32
|
+
placeholder: string;
|
|
33
|
+
ok: string;
|
|
34
|
+
clear: string;
|
|
35
|
+
};
|
|
36
|
+
dateRange: {
|
|
37
|
+
custom: string;
|
|
38
|
+
currentWeek: string;
|
|
39
|
+
currentMonth: string;
|
|
40
|
+
};
|
|
41
|
+
timePicker: {
|
|
42
|
+
placeholder: string;
|
|
43
|
+
now: string;
|
|
44
|
+
ok: string;
|
|
45
|
+
};
|
|
46
|
+
calendar: {
|
|
47
|
+
today: string;
|
|
48
|
+
yearMonthFormat: string;
|
|
49
|
+
};
|
|
50
|
+
autocomplete: {
|
|
51
|
+
empty: string;
|
|
52
|
+
};
|
|
53
|
+
transfer: {
|
|
54
|
+
maxLimit: string;
|
|
55
|
+
maxLockLimit: string;
|
|
56
|
+
unlocked: string;
|
|
57
|
+
};
|
|
58
|
+
colorPicker: {
|
|
59
|
+
defaultColor: string;
|
|
60
|
+
noFillColor: string;
|
|
61
|
+
recentUsedColor: string;
|
|
62
|
+
customColor: string;
|
|
63
|
+
none: string;
|
|
64
|
+
};
|
|
65
|
+
strength: {
|
|
66
|
+
highest: string;
|
|
67
|
+
high: string;
|
|
68
|
+
medium: string;
|
|
69
|
+
low: string;
|
|
70
|
+
};
|
|
71
|
+
guider: {
|
|
72
|
+
skip: string;
|
|
73
|
+
prev: string;
|
|
74
|
+
next: string;
|
|
75
|
+
finish: string;
|
|
76
|
+
};
|
|
77
|
+
copy: {
|
|
78
|
+
tips: string;
|
|
79
|
+
success: string;
|
|
80
|
+
error: string;
|
|
81
|
+
};
|
|
82
|
+
dialog: {
|
|
83
|
+
title: string;
|
|
84
|
+
ok: string;
|
|
85
|
+
cancel: string;
|
|
86
|
+
};
|
|
87
|
+
select: {
|
|
88
|
+
placeholder: string;
|
|
89
|
+
empty: string;
|
|
90
|
+
};
|
|
91
|
+
treeSelect: {
|
|
92
|
+
placeholder: string;
|
|
93
|
+
empty: string;
|
|
94
|
+
};
|
|
95
|
+
cascader: {
|
|
96
|
+
placeholder: string;
|
|
97
|
+
empty: string;
|
|
98
|
+
};
|
|
99
|
+
pagination: {
|
|
100
|
+
page: string;
|
|
101
|
+
order: string;
|
|
102
|
+
total: string;
|
|
103
|
+
totalCount: string;
|
|
104
|
+
jumpTo: string;
|
|
105
|
+
firstPage: string;
|
|
106
|
+
lastPage: string;
|
|
107
|
+
defaultUnit: string;
|
|
108
|
+
};
|
|
109
|
+
form: {
|
|
110
|
+
required: string;
|
|
111
|
+
maxlength: string;
|
|
112
|
+
minlength: string;
|
|
113
|
+
uniqueCheck: string;
|
|
114
|
+
email: string;
|
|
115
|
+
confirm: string;
|
|
116
|
+
pattern: string;
|
|
117
|
+
number: string;
|
|
118
|
+
url: string;
|
|
119
|
+
max: string;
|
|
120
|
+
min: string;
|
|
121
|
+
};
|
|
122
|
+
empty: {
|
|
123
|
+
noDataText: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-tethys",
|
|
3
|
-
"version": "18.2.0-next.
|
|
3
|
+
"version": "18.2.0-next.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
|
|
@@ -232,6 +232,12 @@
|
|
|
232
232
|
"esm": "./esm2022/guider/ngx-tethys-guider.mjs",
|
|
233
233
|
"default": "./fesm2022/ngx-tethys-guider.mjs"
|
|
234
234
|
},
|
|
235
|
+
"./i18n": {
|
|
236
|
+
"types": "./i18n/index.d.ts",
|
|
237
|
+
"esm2022": "./esm2022/i18n/ngx-tethys-i18n.mjs",
|
|
238
|
+
"esm": "./esm2022/i18n/ngx-tethys-i18n.mjs",
|
|
239
|
+
"default": "./fesm2022/ngx-tethys-i18n.mjs"
|
|
240
|
+
},
|
|
235
241
|
"./icon": {
|
|
236
242
|
"types": "./icon/index.d.ts",
|
|
237
243
|
"esm2022": "./esm2022/icon/ngx-tethys-icon.mjs",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef, Signal } from '@angular/core';
|
|
2
2
|
import { isTemplateRef } from 'ngx-tethys/util';
|
|
3
3
|
import { ThyPaginationConfigModel } from './pagination.class';
|
|
4
|
+
import { ThyI18nLocale, ThyPaginationLocale } from 'ngx-tethys/i18n';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* 分页组件,当数据量过多时,使用分页分解数据。
|
|
@@ -10,6 +11,8 @@ import * as i0 from "@angular/core";
|
|
|
10
11
|
export declare class ThyPagination implements OnInit {
|
|
11
12
|
private paginationConfig;
|
|
12
13
|
private cdr;
|
|
14
|
+
allLocale: Signal<ThyI18nLocale>;
|
|
15
|
+
locale: Signal<ThyPaginationLocale>;
|
|
13
16
|
isTemplateRef: typeof isTemplateRef;
|
|
14
17
|
config: ThyPaginationConfigModel;
|
|
15
18
|
/**
|
|
@@ -8,6 +8,6 @@ import * as i6 from "./pagination.component";
|
|
|
8
8
|
import * as i7 from "./pagination.pipe";
|
|
9
9
|
export declare class ThyPaginationModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyPaginationModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ThyPaginationModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.ThySharedModule, typeof i4.ThyIconModule, typeof i5.ThySelectModule, typeof i6.ThyPagination, typeof i7.PaginationTotalCountFormat], [typeof i6.ThyPagination]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ThyPaginationModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.ThySharedModule, typeof i4.ThyIconModule, typeof i5.ThySelectModule, typeof i6.ThyPagination, typeof i7.PaginationTotalCountFormat, typeof i7.PaginationPerPageFormat], [typeof i6.ThyPagination]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<ThyPaginationModule>;
|
|
13
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ThyI18nLocale } from 'ngx-tethys/i18n';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* @private
|
|
@@ -9,3 +10,8 @@ export declare class PaginationTotalCountFormat implements PipeTransform {
|
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationTotalCountFormat, never>;
|
|
10
11
|
static ɵpipe: i0.ɵɵPipeDeclaration<PaginationTotalCountFormat, "paginationTotalPagesFormat", true>;
|
|
11
12
|
}
|
|
13
|
+
export declare class PaginationPerPageFormat implements PipeTransform {
|
|
14
|
+
transform(unit: string, locale: ThyI18nLocale): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationPerPageFormat, never>;
|
|
16
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PaginationPerPageFormat, "paginationPerPageFormat", true>;
|
|
17
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ThyTranslate } from 'ngx-tethys/core';
|
|
3
2
|
import { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';
|
|
4
3
|
import { ThyRadioGroup } from './group/radio-group.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -9,7 +8,6 @@ import * as i0 from "@angular/core";
|
|
|
9
8
|
* @order 10
|
|
10
9
|
*/
|
|
11
10
|
export declare class ThyRadio extends ThyFormCheckBaseComponent implements OnInit {
|
|
12
|
-
thyTranslate: ThyTranslate;
|
|
13
11
|
thyRadioGroupComponent: ThyRadioGroup;
|
|
14
12
|
name: string;
|
|
15
13
|
/**
|
package/schematics/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "18.2.0-next.
|
|
1
|
+
export declare const VERSION = "18.2.0-next.1";
|
package/schematics/version.js
CHANGED
|
@@ -45,6 +45,7 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
|
|
|
45
45
|
private overlay;
|
|
46
46
|
private thyClickDispatcher;
|
|
47
47
|
private platformId;
|
|
48
|
+
private locale;
|
|
48
49
|
scrollStrategyFactory: FunctionProp<ScrollStrategy>;
|
|
49
50
|
selectConfig: ThySelectConfig;
|
|
50
51
|
disabled: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThyTranslate } from 'ngx-tethys/core';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
2
|
+
import { OnInit, Signal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { ThyStrengthLocale } from 'ngx-tethys/i18n';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
declare enum ThyStrengthEnum {
|
|
6
7
|
highest = 4,
|
|
@@ -18,7 +19,25 @@ export declare class ThyStrength implements OnInit, ControlValueAccessor {
|
|
|
18
19
|
styleClass: boolean;
|
|
19
20
|
strengthTitle: string;
|
|
20
21
|
strength: ThyStrengthEnum;
|
|
21
|
-
|
|
22
|
+
locale: Signal<ThyStrengthLocale>;
|
|
23
|
+
strengthMap: {
|
|
24
|
+
4: {
|
|
25
|
+
level: string;
|
|
26
|
+
text: string;
|
|
27
|
+
};
|
|
28
|
+
3: {
|
|
29
|
+
level: string;
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
2: {
|
|
33
|
+
level: string;
|
|
34
|
+
text: string;
|
|
35
|
+
};
|
|
36
|
+
1: {
|
|
37
|
+
level: string;
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
22
41
|
/**
|
|
23
42
|
* 组件标题,描述程度所指类型
|
|
24
43
|
*/
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
// 拖入 cdkDropList 时要显示的元素,不是真正的元素。
|
|
54
54
|
.thy-sortable-ghost,
|
|
55
|
-
.cdk-drag-placeholder:not(.thy-tree-node) {
|
|
55
|
+
.cdk-drag-placeholder:not(.thy-tree-node):not(.thy-customize-drag-placeholder) {
|
|
56
56
|
color: transparent !important;
|
|
57
57
|
background: variables.$gray-200 !important;
|
|
58
58
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { ThyTimePickerLocale } from 'ngx-tethys/i18n';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* 时间选择面板组件
|
|
@@ -8,6 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
export declare class ThyTimePanel implements OnInit, OnDestroy, ControlValueAccessor {
|
|
9
10
|
private cdr;
|
|
10
11
|
private ngZone;
|
|
12
|
+
locale: Signal<ThyTimePickerLocale>;
|
|
11
13
|
hourListRef: ElementRef<HTMLElement>;
|
|
12
14
|
minuteListRef: ElementRef<HTMLElement>;
|
|
13
15
|
secondListRef: ElementRef<HTMLElement>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
2
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit, Signal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { ThyPlacement } from 'ngx-tethys/core';
|
|
5
|
+
import { ThyTimePickerLocale } from 'ngx-tethys/i18n';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'default';
|
|
7
8
|
/**
|
|
@@ -11,6 +12,7 @@ export type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'default';
|
|
|
11
12
|
export declare class ThyTimePicker implements OnInit, AfterViewInit, ControlValueAccessor {
|
|
12
13
|
private cdr;
|
|
13
14
|
private elementRef;
|
|
15
|
+
locale: Signal<ThyTimePickerLocale>;
|
|
14
16
|
cdkConnectedOverlay: CdkConnectedOverlay;
|
|
15
17
|
origin: CdkOverlayOrigin;
|
|
16
18
|
inputRef: ElementRef<HTMLInputElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { DoCheck, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { DoCheck, EventEmitter, OnInit, Signal, TemplateRef } from '@angular/core';
|
|
3
3
|
import { InnerTransferDragEvent, ThyTransferItem, ThyTransferSelectEvent } from './transfer.interface';
|
|
4
|
+
import { ThyTransferLocale } from 'ngx-tethys/i18n';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* @private
|
|
@@ -12,6 +13,7 @@ export declare class ThyTransferList implements OnInit, DoCheck {
|
|
|
12
13
|
private _diff;
|
|
13
14
|
private _lockDiff;
|
|
14
15
|
private _unlockDiff;
|
|
16
|
+
locale: Signal<ThyTransferLocale>;
|
|
15
17
|
title: string;
|
|
16
18
|
items: ThyTransferItem[];
|
|
17
19
|
draggable: boolean;
|
|
@@ -38,6 +38,7 @@ export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorM
|
|
|
38
38
|
};
|
|
39
39
|
private initialled;
|
|
40
40
|
private destroy$;
|
|
41
|
+
private locale;
|
|
41
42
|
valueIsObject: boolean;
|
|
42
43
|
originTreeNodes: ThyTreeSelectNode[];
|
|
43
44
|
thyTreeSelectTriggerDisplayRef: TemplateRef<any>;
|