ngx-tethys 18.2.0-next.1 → 18.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/autocomplete/autocomplete.component.d.ts +2 -1
  3. package/cascader/cascader.component.d.ts +2 -1
  4. package/core/overlay/abstract-overlay-ref.d.ts +4 -0
  5. package/core/overlay/abstract-overlay.service.d.ts +1 -1
  6. package/core/theme/theme.d.ts +2 -0
  7. package/dialog/dialog-ref.d.ts +10 -2
  8. package/dialog/dialog.service.d.ts +6 -0
  9. package/esm2022/autocomplete/autocomplete.component.mjs +5 -3
  10. package/esm2022/cascader/cascader.component.mjs +5 -4
  11. package/esm2022/core/overlay/abstract-overlay-ref.mjs +2 -2
  12. package/esm2022/core/overlay/abstract-overlay.service.mjs +2 -2
  13. package/esm2022/core/theme/theme.mjs +9 -2
  14. package/esm2022/dialog/dialog-ref.mjs +9 -6
  15. package/esm2022/dialog/dialog.service.mjs +27 -3
  16. package/esm2022/i18n/i18n.mjs +9 -2
  17. package/esm2022/i18n/i18n.service.mjs +13 -7
  18. package/esm2022/i18n/i18n.token.mjs +6 -4
  19. package/esm2022/i18n/index.mjs +5 -2
  20. package/esm2022/i18n/locales/de-de.mjs +130 -0
  21. package/esm2022/i18n/locales/en-us.mjs +8 -4
  22. package/esm2022/i18n/locales/ja-jp.mjs +130 -0
  23. package/esm2022/i18n/locales/{zh-cn.mjs → zh-hans.mjs} +6 -3
  24. package/esm2022/i18n/locales/zh-hant.mjs +130 -0
  25. package/esm2022/nav/nav.component.mjs +5 -3
  26. package/esm2022/pagination/pagination.pipe.mjs +9 -6
  27. package/esm2022/select/custom-select/custom-select.component.mjs +5 -4
  28. package/esm2022/tooltip/tooltip-ref.mjs +4 -1
  29. package/esm2022/tree-select/tree-select.component.mjs +5 -4
  30. package/esm2022/version.mjs +2 -2
  31. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -3
  32. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  33. package/fesm2022/ngx-tethys-cascader.mjs +4 -3
  34. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  35. package/fesm2022/ngx-tethys-core.mjs +8 -1
  36. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  37. package/fesm2022/ngx-tethys-dialog.mjs +34 -8
  38. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  39. package/fesm2022/ngx-tethys-i18n.mjs +424 -15
  40. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
  41. package/fesm2022/ngx-tethys-nav.mjs +4 -2
  42. package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
  43. package/fesm2022/ngx-tethys-pagination.mjs +8 -5
  44. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  45. package/fesm2022/ngx-tethys-select.mjs +4 -3
  46. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  47. package/fesm2022/ngx-tethys-tooltip.mjs +3 -0
  48. package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
  49. package/fesm2022/ngx-tethys-tree-select.mjs +4 -3
  50. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  51. package/fesm2022/ngx-tethys.mjs +1 -1
  52. package/fesm2022/ngx-tethys.mjs.map +1 -1
  53. package/i18n/i18n.d.ts +13 -2
  54. package/i18n/i18n.service.d.ts +1 -1
  55. package/i18n/i18n.token.d.ts +6 -3
  56. package/i18n/index.d.ts +4 -1
  57. package/i18n/locales/{zh-cn.d.ts → de-de.d.ts} +5 -1
  58. package/i18n/locales/en-us.d.ts +5 -1
  59. package/i18n/locales/ja-jp.d.ts +130 -0
  60. package/i18n/locales/zh-hans.d.ts +130 -0
  61. package/i18n/locales/zh-hant.d.ts +130 -0
  62. package/nav/nav.component.d.ts +3 -1
  63. package/package.json +1 -1
  64. package/schematics/version.d.ts +1 -1
  65. package/schematics/version.js +1 -1
  66. package/select/custom-select/custom-select.component.d.ts +2 -1
  67. package/tree-select/tree-select.component.d.ts +2 -1
@@ -0,0 +1,130 @@
1
+ import { ThyLocaleType } from '../i18n';
2
+ declare const _default: {
3
+ id: ThyLocaleType;
4
+ datePicker: {
5
+ yearFormat: string;
6
+ monthFormat: string;
7
+ zhMonthFormat: string;
8
+ weekFormat: string;
9
+ fullWeekFormat: string;
10
+ weekThFormat: string;
11
+ dateFormat: string;
12
+ yearText: string;
13
+ quarterText: string;
14
+ monthText: string;
15
+ week: string;
16
+ prefixWeek: string;
17
+ previousYear: string;
18
+ nextYear: string;
19
+ previousMonth: string;
20
+ nextMonth: string;
21
+ today: string;
22
+ tomorrow: string;
23
+ nextWeek: string;
24
+ lastSevenDays: string;
25
+ lastThirtyDays: string;
26
+ currentMonth: string;
27
+ currentWeek: string;
28
+ advance: string;
29
+ custom: string;
30
+ startDate: string;
31
+ endDate: string;
32
+ setTime: string;
33
+ placeholder: string;
34
+ ok: string;
35
+ clear: string;
36
+ };
37
+ dateRange: {
38
+ custom: string;
39
+ currentWeek: string;
40
+ currentMonth: string;
41
+ };
42
+ timePicker: {
43
+ placeholder: string;
44
+ now: string;
45
+ ok: string;
46
+ };
47
+ calendar: {
48
+ today: string;
49
+ yearMonthFormat: string;
50
+ };
51
+ autocomplete: {
52
+ empty: string;
53
+ };
54
+ transfer: {
55
+ maxLimit: string;
56
+ maxLockLimit: string;
57
+ unlocked: string;
58
+ };
59
+ colorPicker: {
60
+ defaultColor: string;
61
+ noFillColor: string;
62
+ recentUsedColor: string;
63
+ customColor: string;
64
+ none: string;
65
+ };
66
+ strength: {
67
+ highest: string;
68
+ high: string;
69
+ medium: string;
70
+ low: string;
71
+ };
72
+ guider: {
73
+ skip: string;
74
+ prev: string;
75
+ next: string;
76
+ finish: string;
77
+ };
78
+ copy: {
79
+ tips: string;
80
+ success: string;
81
+ error: string;
82
+ };
83
+ nav: {
84
+ more: string;
85
+ };
86
+ dialog: {
87
+ title: string;
88
+ ok: string;
89
+ cancel: string;
90
+ };
91
+ select: {
92
+ placeholder: string;
93
+ empty: string;
94
+ };
95
+ treeSelect: {
96
+ placeholder: string;
97
+ empty: string;
98
+ };
99
+ cascader: {
100
+ placeholder: string;
101
+ empty: string;
102
+ };
103
+ pagination: {
104
+ page: string;
105
+ order: string;
106
+ total: string;
107
+ totalCount: string;
108
+ jumpTo: string;
109
+ firstPage: string;
110
+ lastPage: string;
111
+ defaultUnit: string;
112
+ };
113
+ form: {
114
+ required: string;
115
+ maxlength: string;
116
+ minlength: string;
117
+ uniqueCheck: string;
118
+ email: string;
119
+ confirm: string;
120
+ pattern: string;
121
+ number: string;
122
+ url: string;
123
+ max: string;
124
+ min: string;
125
+ };
126
+ empty: {
127
+ noDataText: string;
128
+ };
129
+ };
130
+ export default _default;
@@ -0,0 +1,130 @@
1
+ import { ThyLocaleType } from '../i18n';
2
+ declare const _default: {
3
+ id: ThyLocaleType;
4
+ datePicker: {
5
+ yearFormat: string;
6
+ monthFormat: string;
7
+ zhMonthFormat: string;
8
+ weekFormat: string;
9
+ fullWeekFormat: string;
10
+ weekThFormat: string;
11
+ dateFormat: string;
12
+ yearText: string;
13
+ quarterText: string;
14
+ monthText: string;
15
+ week: string;
16
+ prefixWeek: string;
17
+ previousYear: string;
18
+ nextYear: string;
19
+ previousMonth: string;
20
+ nextMonth: string;
21
+ today: string;
22
+ tomorrow: string;
23
+ nextWeek: string;
24
+ lastSevenDays: string;
25
+ lastThirtyDays: string;
26
+ currentMonth: string;
27
+ currentWeek: string;
28
+ advance: string;
29
+ custom: string;
30
+ startDate: string;
31
+ endDate: string;
32
+ setTime: string;
33
+ placeholder: string;
34
+ ok: string;
35
+ clear: string;
36
+ };
37
+ dateRange: {
38
+ custom: string;
39
+ currentWeek: string;
40
+ currentMonth: string;
41
+ };
42
+ timePicker: {
43
+ placeholder: string;
44
+ now: string;
45
+ ok: string;
46
+ };
47
+ calendar: {
48
+ today: string;
49
+ yearMonthFormat: string;
50
+ };
51
+ autocomplete: {
52
+ empty: string;
53
+ };
54
+ transfer: {
55
+ maxLimit: string;
56
+ maxLockLimit: string;
57
+ unlocked: string;
58
+ };
59
+ colorPicker: {
60
+ defaultColor: string;
61
+ noFillColor: string;
62
+ recentUsedColor: string;
63
+ customColor: string;
64
+ none: string;
65
+ };
66
+ strength: {
67
+ highest: string;
68
+ high: string;
69
+ medium: string;
70
+ low: string;
71
+ };
72
+ guider: {
73
+ skip: string;
74
+ prev: string;
75
+ next: string;
76
+ finish: string;
77
+ };
78
+ copy: {
79
+ tips: string;
80
+ success: string;
81
+ error: string;
82
+ };
83
+ nav: {
84
+ more: string;
85
+ };
86
+ dialog: {
87
+ title: string;
88
+ ok: string;
89
+ cancel: string;
90
+ };
91
+ select: {
92
+ placeholder: string;
93
+ empty: string;
94
+ };
95
+ treeSelect: {
96
+ placeholder: string;
97
+ empty: string;
98
+ };
99
+ cascader: {
100
+ placeholder: string;
101
+ empty: string;
102
+ };
103
+ pagination: {
104
+ page: string;
105
+ order: string;
106
+ total: string;
107
+ totalCount: string;
108
+ jumpTo: string;
109
+ firstPage: string;
110
+ lastPage: string;
111
+ defaultUnit: string;
112
+ };
113
+ form: {
114
+ required: string;
115
+ maxlength: string;
116
+ minlength: string;
117
+ uniqueCheck: string;
118
+ email: string;
119
+ confirm: string;
120
+ pattern: string;
121
+ number: string;
122
+ url: string;
123
+ max: string;
124
+ min: string;
125
+ };
126
+ empty: {
127
+ noDataText: string;
128
+ };
129
+ };
130
+ export default _default;
@@ -1,8 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
- import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
2
+ import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnInit, QueryList, Signal, SimpleChanges, TemplateRef } from '@angular/core';
3
3
  import { RouterLinkActive } from '@angular/router';
4
4
  import { ThyNavInkBarDirective } from './nav-ink-bar.directive';
5
5
  import { ThyNavItemDirective } from './nav-item.directive';
6
+ import { ThyNavLocale } from 'ngx-tethys/i18n';
6
7
  import * as i0 from "@angular/core";
7
8
  export type ThyNavType = 'pulled' | 'tabs' | 'pills' | 'lite' | 'primary' | 'secondary' | 'thirdly' | 'secondary-divider';
8
9
  export type ThyNavSize = 'lg' | 'md' | 'sm';
@@ -34,6 +35,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
34
35
  private moreBtnOffset;
35
36
  private hostRenderer;
36
37
  private innerLinks;
38
+ locale: Signal<ThyNavLocale>;
37
39
  /**
38
40
  * 导航类型
39
41
  * @type pulled | tabs | pills | lite | primary | secondary | thirdly | secondary-divider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "18.2.0-next.1",
3
+ "version": "18.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/atinc/ngx-tethys.git"
@@ -1 +1 @@
1
- export declare const VERSION = "18.2.0-next.1";
1
+ export declare const VERSION = "18.2.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '18.2.0-next.1';
4
+ exports.VERSION = '18.2.0';
@@ -5,7 +5,7 @@ import { Observable } from 'rxjs';
5
5
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
6
6
  import { SelectionModel } from '@angular/cdk/collections';
7
7
  import { CdkConnectedOverlay, ConnectionPositionPair, ScrollStrategy } from '@angular/cdk/overlay';
8
- import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
8
+ import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, TemplateRef, Signal } from '@angular/core';
9
9
  import { ControlValueAccessor } from '@angular/forms';
10
10
  import { ThyDropdownWidthMode, ThySelectConfig } from '../select.config';
11
11
  import * as i0 from "@angular/core";
@@ -48,6 +48,7 @@ export declare class ThySelect extends TabIndexDisabledControlValueAccessorMixin
48
48
  private locale;
49
49
  scrollStrategyFactory: FunctionProp<ScrollStrategy>;
50
50
  selectConfig: ThySelectConfig;
51
+ emptyIcon: Signal<string>;
51
52
  disabled: boolean;
52
53
  size: SelectControlSize;
53
54
  mode: SelectMode;
@@ -1,7 +1,7 @@
1
1
  import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
4
- import { ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
4
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef, Signal } from '@angular/core';
5
5
  import { ControlValueAccessor } from '@angular/forms';
6
6
  import { ThyTreeSelectNode, ThyTreeSelectType } from './tree-select.class';
7
7
  import * as i0 from "@angular/core";
@@ -189,6 +189,7 @@ export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorM
189
189
  */
190
190
  export declare class ThyTreeSelectNodes implements OnInit {
191
191
  parent: ThyTreeSelect;
192
+ emptyIcon: Signal<string>;
192
193
  class: string;
193
194
  nodeList: ThyTreeSelectNode[];
194
195
  set treeNodes(value: ThyTreeSelectNode[]);