ngx-tethys 18.1.1 → 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.
Files changed (265) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/alert/styles/mixin.scss +1 -1
  3. package/anchor/style/anchor.scss +4 -2
  4. package/autocomplete/autocomplete.component.d.ts +2 -1
  5. package/avatar/styles/avatar.scss +1 -1
  6. package/back-top/styles/back-top.scss +3 -3
  7. package/button/styles/button-group.scss +9 -9
  8. package/button/styles/button.scss +2 -6
  9. package/button/styles/mixin.scss +6 -53
  10. package/calendar/calendar-header.component.d.ts +2 -0
  11. package/calendar/styles/calendar.scss +3 -11
  12. package/card/styles/card.scss +3 -3
  13. package/carousel/styles/carousel.scss +10 -10
  14. package/cascader/cascader.component.d.ts +1 -0
  15. package/cascader/styles/cascader.scss +3 -2
  16. package/collapse/styles/collapse.scss +4 -2
  17. package/color-picker/color-picker-panel.component.d.ts +3 -1
  18. package/color-picker/styles/alpha.scss +1 -1
  19. package/color-picker/styles/color-picker-panel.scss +1 -1
  20. package/color-picker/styles/hue.scss +1 -1
  21. package/color-picker/styles/saturation.scss +1 -1
  22. package/comment/styles/mixin.scss +1 -1
  23. package/copy/copy.directive.d.ts +1 -0
  24. package/core/index.d.ts +1 -0
  25. package/core/theme/index.d.ts +2 -0
  26. package/core/theme/store.d.ts +12 -0
  27. package/core/theme/theme.d.ts +5 -0
  28. package/date-picker/abstract-picker.component.d.ts +3 -1
  29. package/date-picker/date-helper.service.d.ts +3 -0
  30. package/date-picker/date-picker.config.d.ts +7 -1
  31. package/date-picker/lib/calendar/calendar-footer.component.d.ts +3 -1
  32. package/date-picker/lib/calendar/calendar-header.component.d.ts +3 -1
  33. package/date-picker/lib/calendar/calendar-table.component.d.ts +3 -1
  34. package/date-picker/lib/date-carousel/date-carousel.component.d.ts +4 -1
  35. package/date-picker/lib/popups/date-popup.component.d.ts +3 -1
  36. package/date-picker/lib/popups/inner-popup.component.d.ts +3 -1
  37. package/date-picker/styles/calendar.scss +1 -1
  38. package/date-picker/styles/decade-panel.scss +1 -1
  39. package/date-picker/styles/picker.scss +1 -1
  40. package/date-picker/styles/range-picker.scss +3 -3
  41. package/date-picker/styles/year-panel.scss +2 -2
  42. package/date-range/date-range.component.d.ts +2 -0
  43. package/date-range/optional-dates/optional-dates.component.d.ts +1 -0
  44. package/dialog/confirm/confirm.component.d.ts +1 -0
  45. package/dialog/confirm.config.d.ts +14 -7
  46. package/dialog/styles/dialog.scss +6 -6
  47. package/dropdown/styles/dropdown.scss +3 -3
  48. package/empty/empty.component.d.ts +14 -9
  49. package/empty/empty.config.d.ts +3 -0
  50. package/empty/styles/empty.scss +22 -2
  51. package/esm2022/autocomplete/autocomplete.component.mjs +5 -3
  52. package/esm2022/calendar/calendar-header.component.mjs +9 -5
  53. package/esm2022/carousel/carousel.component.mjs +3 -3
  54. package/esm2022/cascader/cascader.component.mjs +5 -3
  55. package/esm2022/checkbox/checkbox.component.mjs +1 -1
  56. package/esm2022/color-picker/color-picker-panel.component.mjs +5 -3
  57. package/esm2022/copy/copy.directive.mjs +7 -5
  58. package/esm2022/core/index.mjs +2 -1
  59. package/esm2022/core/theme/index.mjs +3 -0
  60. package/esm2022/core/theme/store.mjs +42 -0
  61. package/esm2022/core/theme/theme.mjs +2 -0
  62. package/esm2022/date-picker/abstract-picker.component.mjs +4 -2
  63. package/esm2022/date-picker/base-picker.component.mjs +2 -2
  64. package/esm2022/date-picker/date-helper.service.mjs +4 -2
  65. package/esm2022/date-picker/date-picker.component.mjs +1 -1
  66. package/esm2022/date-picker/date-picker.config.mjs +55 -2
  67. package/esm2022/date-picker/date-picker.directive.mjs +1 -1
  68. package/esm2022/date-picker/date-picker.service.mjs +3 -3
  69. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +5 -3
  70. package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -1
  71. package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -1
  72. package/esm2022/date-picker/lib/date/date-header.component.mjs +6 -5
  73. package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
  74. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +9 -4
  75. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
  76. package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
  77. package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -2
  78. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +5 -3
  79. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +5 -3
  80. package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
  81. package/esm2022/date-picker/month-picker.component.mjs +1 -1
  82. package/esm2022/date-picker/quarter-picker.component.mjs +1 -1
  83. package/esm2022/date-picker/range-picker.component.mjs +1 -1
  84. package/esm2022/date-picker/range-picker.directive.mjs +1 -1
  85. package/esm2022/date-picker/week-picker.component.mjs +1 -1
  86. package/esm2022/date-picker/year-picker.component.mjs +1 -1
  87. package/esm2022/date-range/date-range.component.mjs +7 -4
  88. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -2
  89. package/esm2022/dialog/confirm/confirm.component.mjs +14 -3
  90. package/esm2022/dialog/confirm.config.mjs +17 -2
  91. package/esm2022/empty/empty.component.mjs +7 -2
  92. package/esm2022/empty/empty.config.mjs +4 -1
  93. package/esm2022/empty/svgs.mjs +103 -8
  94. package/esm2022/form/form-validator-loader.mjs +17 -15
  95. package/esm2022/guider/guider-hint/guider-hint.component.mjs +5 -3
  96. package/esm2022/i18n/i18n.mjs +2 -0
  97. package/esm2022/i18n/i18n.service.mjs +39 -0
  98. package/esm2022/i18n/i18n.token.mjs +8 -0
  99. package/esm2022/i18n/index.mjs +7 -0
  100. package/esm2022/i18n/locale.mjs +14 -0
  101. package/esm2022/i18n/locales/en-us.mjs +147 -0
  102. package/esm2022/i18n/locales/zh-cn.mjs +127 -0
  103. package/esm2022/i18n/ngx-tethys-i18n.mjs +5 -0
  104. package/esm2022/notify/notify.component.mjs +3 -3
  105. package/esm2022/pagination/pagination.component.mjs +22 -5
  106. package/esm2022/pagination/pagination.module.mjs +26 -5
  107. package/esm2022/pagination/pagination.pipe.mjs +22 -1
  108. package/esm2022/radio/button/radio-button.component.mjs +1 -1
  109. package/esm2022/radio/radio.component.mjs +1 -1
  110. package/esm2022/result/result.component.mjs +3 -3
  111. package/esm2022/select/custom-select/custom-select.component.mjs +9 -3
  112. package/esm2022/strength/strength.component.mjs +21 -20
  113. package/esm2022/table/table-skeleton.component.mjs +3 -3
  114. package/esm2022/time-picker/time-picker-panel.component.mjs +5 -3
  115. package/esm2022/time-picker/time-picker.component.mjs +4 -2
  116. package/esm2022/transfer/transfer-list.component.mjs +5 -3
  117. package/esm2022/tree-select/tree-select.component.mjs +5 -3
  118. package/esm2022/version.mjs +2 -2
  119. package/esm2022/watermark/config.mjs +2 -2
  120. package/esm2022/watermark/watermark.directive.mjs +18 -10
  121. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -2
  122. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  123. package/fesm2022/ngx-tethys-calendar.mjs +8 -5
  124. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  125. package/fesm2022/ngx-tethys-carousel.mjs +2 -2
  126. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  127. package/fesm2022/ngx-tethys-cascader.mjs +4 -2
  128. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  129. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  130. package/fesm2022/ngx-tethys-color-picker.mjs +4 -2
  131. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  132. package/fesm2022/ngx-tethys-copy.mjs +6 -4
  133. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  134. package/fesm2022/ngx-tethys-core.mjs +42 -2
  135. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  136. package/fesm2022/ngx-tethys-date-picker.mjs +95 -30
  137. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  138. package/fesm2022/ngx-tethys-date-range.mjs +8 -4
  139. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  140. package/fesm2022/ngx-tethys-dialog.mjs +27 -2
  141. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  142. package/fesm2022/ngx-tethys-empty.mjs +111 -8
  143. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  144. package/fesm2022/ngx-tethys-form.mjs +16 -14
  145. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  146. package/fesm2022/ngx-tethys-guider.mjs +4 -2
  147. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  148. package/fesm2022/ngx-tethys-i18n.mjs +338 -0
  149. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -0
  150. package/fesm2022/ngx-tethys-notify.mjs +2 -2
  151. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  152. package/fesm2022/ngx-tethys-pagination.mjs +66 -7
  153. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  154. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  155. package/fesm2022/ngx-tethys-result.mjs +2 -2
  156. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  157. package/fesm2022/ngx-tethys-select.mjs +8 -2
  158. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  159. package/fesm2022/ngx-tethys-strength.mjs +20 -19
  160. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  161. package/fesm2022/ngx-tethys-table.mjs +2 -2
  162. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  163. package/fesm2022/ngx-tethys-time-picker.mjs +6 -3
  164. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  165. package/fesm2022/ngx-tethys-transfer.mjs +4 -2
  166. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  167. package/fesm2022/ngx-tethys-tree-select.mjs +4 -2
  168. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  169. package/fesm2022/ngx-tethys-watermark.mjs +18 -10
  170. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  171. package/fesm2022/ngx-tethys.mjs +1 -1
  172. package/fesm2022/ngx-tethys.mjs.map +1 -1
  173. package/form/form-validator-loader.d.ts +2 -0
  174. package/form/styles/form-check.scss +1 -1
  175. package/form/styles/forms.scss +2 -3
  176. package/form/styles/mixin.scss +6 -5
  177. package/guider/guider-hint/guider-hint.component.d.ts +3 -1
  178. package/guider/styles/guider-tip.scss +2 -1
  179. package/i18n/i18n.d.ts +143 -0
  180. package/i18n/i18n.service.d.ts +19 -0
  181. package/i18n/i18n.token.d.ts +5 -0
  182. package/i18n/index.d.ts +6 -0
  183. package/i18n/locale.d.ts +4 -0
  184. package/i18n/locales/en-us.d.ts +147 -0
  185. package/i18n/locales/zh-cn.d.ts +126 -0
  186. package/icon/examples/all/all.component.scss +3 -1
  187. package/image/styles/image.scss +15 -11
  188. package/input/styles/input-group.scss +1 -1
  189. package/input/styles/input.scss +2 -2
  190. package/layout/examples/sidebar/sidebar.component.scss +1 -1
  191. package/layout/styles/layout.scss +3 -3
  192. package/menu/examples/theme/theme.component.scss +0 -8
  193. package/menu/styles/theme.scss +4 -4
  194. package/message/styles/message.scss +1 -1
  195. package/nav/examples/basic/basic.component.scss +1 -1
  196. package/nav/examples/extra/extra.component.scss +1 -1
  197. package/nav/examples/fill/fill.component.scss +1 -1
  198. package/nav/examples/lite/lite.component.scss +1 -1
  199. package/nav/examples/pills/pills.component.scss +1 -1
  200. package/nav/examples/responsive/responsive.component.scss +1 -1
  201. package/nav/examples/size/size.component.scss +1 -1
  202. package/nav/examples/tabs/tabs.component.scss +1 -1
  203. package/nav/examples/type/type.component.scss +1 -1
  204. package/nav/examples/vertical/vertical.component.scss +1 -1
  205. package/notify/styles/notify.scss +4 -4
  206. package/package.json +7 -1
  207. package/pagination/pagination.component.d.ts +4 -1
  208. package/pagination/pagination.module.d.ts +1 -1
  209. package/pagination/pagination.pipe.d.ts +6 -0
  210. package/pagination/styles/pagination.scss +2 -2
  211. package/popover/styles.scss +3 -3
  212. package/property/styles/properties.scss +1 -1
  213. package/radio/radio.component.d.ts +0 -2
  214. package/resizable/examples/line/line.component.scss +3 -1
  215. package/resizable/examples/style.scss +7 -5
  216. package/result/styles/result.scss +25 -1
  217. package/schematics/version.d.ts +1 -1
  218. package/schematics/version.js +1 -1
  219. package/segment/styles/mixin.scss +2 -3
  220. package/segment/styles/segment.scss +1 -1
  221. package/select/custom-select/custom-select.component.d.ts +1 -0
  222. package/select/styles/select.scss +1 -1
  223. package/shared/option/styles/option.mixin.scss +1 -1
  224. package/shared/select/styles/select.mixin.scss +2 -2
  225. package/slide/examples/drawer-container/drawer-container.component.scss +1 -1
  226. package/slide/examples/layout/layout.component.scss +4 -2
  227. package/slide/styles/slide.scss +3 -2
  228. package/slider/slider.scss +2 -2
  229. package/stepper/examples/basic/basic.component.scss +3 -1
  230. package/stepper/examples/icon/icon.component.scss +3 -1
  231. package/stepper/styles/stepper.scss +7 -3
  232. package/strength/strength.component.d.ts +21 -2
  233. package/styles/bootstrap/_variables.scss +14 -876
  234. package/styles/bootstrap/utilities/_background.scss +27 -5
  235. package/styles/bootstrap/utilities/_text.scss +29 -31
  236. package/styles/index.scss +2 -1
  237. package/styles/mixins/background-variant.scss +2 -10
  238. package/styles/mixins/utilities.scss +2 -11
  239. package/styles/modules/cdk/drag-drop.scss +6 -8
  240. package/styles/modules/close.scss +1 -1
  241. package/styles/modules/reboot.scss +1 -1
  242. package/styles/modules/tables.scss +1 -1
  243. package/styles/modules/utils.scss +0 -17
  244. package/styles/theme/dark.scss +70 -0
  245. package/styles/theme/default.scss +70 -0
  246. package/styles/theme/index.scss +2 -0
  247. package/styles/variables.scss +114 -76
  248. package/switch/styles/mixin.scss +0 -13
  249. package/table/styles/table.scss +7 -19
  250. package/tabs/styles/tabs.scss +1 -1
  251. package/tag/styles/mixin.scss +7 -42
  252. package/tag/styles/tag.scss +2 -2
  253. package/time-picker/styles/time-panel.scss +1 -1
  254. package/time-picker/time-picker-panel.component.d.ts +3 -1
  255. package/time-picker/time-picker.component.d.ts +3 -1
  256. package/timeline/styles/timeline.scss +2 -2
  257. package/tooltip/styles.scss +4 -4
  258. package/transfer/styles/transfer.scss +2 -2
  259. package/transfer/transfer-list.component.d.ts +3 -1
  260. package/tree/styles/tree.scss +3 -5
  261. package/tree-select/tree-select.component.d.ts +1 -0
  262. package/watermark/config.d.ts +1 -1
  263. package/watermark/watermark.directive.d.ts +23 -2
  264. package/carousel/styles/index.scss +0 -1
  265. package/carousel/styles/variables.scss +0 -5
@@ -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;
@@ -1,3 +1,5 @@
1
+ @use 'variables.scss' as variables2;
2
+
1
3
  :host {
2
4
  .thy-icon {
3
5
  margin-right: 10px;
@@ -25,7 +27,7 @@
25
27
  &:hover {
26
28
  cursor: pointer;
27
29
  border-radius: 4px;
28
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
30
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
29
31
  }
30
32
 
31
33
  .thy-icon {
@@ -20,7 +20,7 @@ $image-preview-prefix-cls: 'thy-image-preview';
20
20
  .#{$image-preview-prefix-cls} {
21
21
  pointer-events: none;
22
22
  height: 100%;
23
- color: variables.$white;
23
+ color: variables.$image-preview-text-color;
24
24
  &-img-wrapper {
25
25
  position: absolute;
26
26
  top: 0;
@@ -54,7 +54,7 @@ $image-preview-prefix-cls: 'thy-image-preview';
54
54
  pointer-events: all;
55
55
  bottom: bootstrapVariables.$spacer * 1.25;
56
56
  border-radius: bootstrapVariables.$spacer * 0.5;
57
- background: variables.$gray-800;
57
+ background: variables.$image-preview-bg-color;
58
58
  left: 50%;
59
59
  transform: translateX(-50%);
60
60
  &-text {
@@ -71,7 +71,11 @@ $image-preview-prefix-cls: 'thy-image-preview';
71
71
  .thy-action {
72
72
  pointer-events: all;
73
73
  cursor: variables.$hand-cursor;
74
- @include basic.action-variant(variables.$white, variables.$white, rgba(variables.$white, 0.2));
74
+ @include basic.action-variant(
75
+ variables.$image-preview-action-icon-color,
76
+ variables.$image-preview-action-icon-color,
77
+ variables.$image-preview-action-bg-color
78
+ );
75
79
  }
76
80
 
77
81
  .#{$image-preview-prefix-cls}-exit-fullscreen {
@@ -83,7 +87,7 @@ $image-preview-prefix-cls: 'thy-image-preview';
83
87
 
84
88
  &-switch-left,
85
89
  &-switch-right {
86
- color: variables.$gray-500;
90
+ color: variables.$image-preview-switch-icon-color;
87
91
  position: fixed;
88
92
  top: 50%;
89
93
  z-index: 1;
@@ -93,14 +97,14 @@ $image-preview-prefix-cls: 'thy-image-preview';
93
97
  width: bootstrapVariables.$spacer * 2.5;
94
98
  height: bootstrapVariables.$spacer * 2.5;
95
99
  margin-top: -22px;
96
- background: variables.$gray-700;
100
+ background: variables.$image-preview-switch-bg-color;
97
101
  border-radius: 50%;
98
102
  cursor: variables.$hand-cursor;
99
103
  pointer-events: auto;
100
104
  transition: all 0.3s;
101
105
  &:hover {
102
- color: variables.$gray-700;
103
- background: variables.$gray-500;
106
+ color: variables.$image-preview-switch-icon-hover-color;
107
+ background: variables.$image-preview-switch-hover-bg-color;
104
108
  }
105
109
 
106
110
  &-disabled {
@@ -109,8 +113,8 @@ $image-preview-prefix-cls: 'thy-image-preview';
109
113
  cursor: variables.$disabled-cursor;
110
114
  }
111
115
  &:hover {
112
- color: variables.$gray-500;
113
- background: variables.$gray-700;
116
+ color: variables.$image-preview-switch-icon-color;
117
+ background: variables.$image-preview-switch-bg-color;
114
118
  }
115
119
  }
116
120
  }
@@ -135,7 +139,7 @@ $image-preview-prefix-cls: 'thy-image-preview';
135
139
  top: 0;
136
140
  width: 100%;
137
141
  z-index: 1;
138
- background: variables.$gray-800;
142
+ background: variables.$image-preview-bg-color;
139
143
  display: flex;
140
144
  justify-content: space-between;
141
145
  align-items: center;
@@ -171,7 +175,7 @@ $image-preview-prefix-cls: 'thy-image-preview';
171
175
  }
172
176
 
173
177
  .#{$image-preview-prefix-cls}-backdrop {
174
- background: rgba(variables.$gray-800, 0.95);
178
+ background: variables.$image-preview-backdrop-bg-color;
175
179
  }
176
180
 
177
181
  .thy-image {
@@ -70,7 +70,7 @@
70
70
 
71
71
  &:not(.disabled) {
72
72
  .input-group-suffix {
73
- background-color: variables.$white;
73
+ background-color: variables.$bg-default;
74
74
  }
75
75
  }
76
76
  }
@@ -36,7 +36,7 @@
36
36
  position: absolute;
37
37
  top: 1px;
38
38
  left: variables.$input-padding-x-fixed;
39
- background: variables.$white;
39
+ background: variables.$bg-default;
40
40
  padding: 0 5px;
41
41
  font-size: variables.$font-size-sm;
42
42
  transition: all 0.3s ease-out 0.1s;
@@ -180,7 +180,7 @@
180
180
  position: absolute;
181
181
  top: 1px;
182
182
  left: 10px;
183
- background: variables.$white;
183
+ background: variables.$bg-default;
184
184
  padding: 0 5px;
185
185
  font-size: variables.$font-size-sm;
186
186
  transition: all 0.3s ease-out 0.1s;
@@ -14,6 +14,6 @@
14
14
  }
15
15
 
16
16
  .thy-layout-content {
17
- background: variables2.$white; // #e4e9f2;
17
+ background: variables2.$bg-default;
18
18
  }
19
19
  }
@@ -85,7 +85,7 @@
85
85
  border-right: variables.$layout-sidebar-border-right;
86
86
  display: flex;
87
87
  flex-direction: column;
88
- background: variables.$white;
88
+ background: variables.$bg-default;
89
89
 
90
90
  &.sidebar-theme-light {
91
91
  background: variables.$layout-sidebar-background-light;
@@ -201,9 +201,9 @@
201
201
  right: 0;
202
202
  transform: translateX(50%);
203
203
  color: variables.$gray-600;
204
- background-color: variables.$white;
204
+ background-color: variables.$bg-float;
205
205
  border-radius: 50%;
206
- box-shadow: 0px 2px 6px 0px rgb(0 0 0 / 10%);
206
+ box-shadow: variables.$float-btn-box-shadow;
207
207
  z-index: variables.$z-index-6;
208
208
  &:hover {
209
209
  visibility: visible;
@@ -16,14 +16,6 @@
16
16
  .content-title {
17
17
  flex: 1;
18
18
  }
19
- .title {
20
- color: variables2.$gray-700;
21
- margin-right: 8px;
22
- &.testhub {
23
- font-size: 15px;
24
- color: variables2.$gray-800;
25
- }
26
- }
27
19
  }
28
20
  }
29
21
  }
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  .thy-menu-item-icon {
71
- color: variables.$menu-theme-dark-color;
71
+ color: variables.$menu-theme-dark-icon-color;
72
72
  }
73
73
 
74
74
  .thy-menu-item-name {
@@ -87,15 +87,15 @@
87
87
  }
88
88
 
89
89
  .thy-menu-group-arrow {
90
- color: variables.$menu-theme-dark-color;
90
+ color: variables.$menu-theme-dark-icon-color;
91
91
  }
92
92
 
93
93
  .thy-menu-group-title-icon {
94
- color: variables.$menu-theme-dark-color;
94
+ color: variables.$menu-theme-dark-icon-color;
95
95
  }
96
96
 
97
97
  .thy-menu-group-operation {
98
- color: variables.$menu-theme-dark-color;
98
+ color: variables.$menu-theme-dark-icon-color;
99
99
  }
100
100
  }
101
101
  }
@@ -20,7 +20,7 @@
20
20
  align-items: center;
21
21
  border: variables.$message-border;
22
22
  border-radius: variables.$message-border-radius-width;
23
- background: variables.$message-bg;
23
+ background: variables.$bg-panel;
24
24
  box-shadow: variables.$message-box-shadow;
25
25
 
26
26
  &-icon {
@@ -2,5 +2,5 @@
2
2
 
3
3
  :host {
4
4
  display: block;
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  :host {
4
4
  .thy-nav {
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  }
7
7
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  :host {
4
4
  .thy-nav {
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  }
7
7
  }
@@ -2,5 +2,5 @@
2
2
 
3
3
  :host {
4
4
  display: block;
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  :host {
4
4
  display: block;
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  padding: 8px;
7
7
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  :host {
4
4
  .thy-nav {
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  }
7
7
  }
@@ -3,7 +3,7 @@
3
3
  .bg-example {
4
4
  padding: 12px;
5
5
  .thy-nav {
6
- background: variables2.$white;
6
+ background: variables2.$bg-default;
7
7
  margin-bottom: 12px;
8
8
 
9
9
  &.thy-nav-pills {
@@ -2,6 +2,6 @@
2
2
 
3
3
  :host {
4
4
  display: block;
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  padding-bottom: 12px;
7
7
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  :host {
4
4
  .thy-nav {
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  &:not(:last-child) {
7
7
  margin-bottom: 20px;
8
8
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  :host {
4
4
  .thy-nav {
5
- background: variables2.$white;
5
+ background: variables2.$bg-default;
6
6
  }
7
7
  }
@@ -1,5 +1,5 @@
1
- @use "../../styles/variables";
2
- @use "mixin";
1
+ @use '../../styles/variables';
2
+ @use 'mixin';
3
3
 
4
4
  .thy-notify-container > div {
5
5
  position: fixed;
@@ -14,8 +14,8 @@
14
14
  position: relative;
15
15
  display: flex;
16
16
  border-radius: variables.$notify-border-radius-width;
17
- background: variables.$notify-bg;
18
- box-shadow: variables.$notify-box-shadow;
17
+ background: variables.$bg-panel;
18
+ box-shadow: variables.$box-shadow;
19
19
 
20
20
  &-icon-container {
21
21
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-tethys",
3
- "version": "18.1.1",
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
+ }
@@ -84,7 +84,7 @@
84
84
  border: variables.$pagination-border-width solid variables.$pagination-border-color;
85
85
  @include border-radius.border-radius(variables.$border-radius);
86
86
  color: variables.$pagination-jumper-input-color;
87
- background: variables.$white;
87
+ background: variables.$bg-default;
88
88
  width: calc(#{variables.$font-size-base} * 3);
89
89
  text-align: center;
90
90
  margin: 0 6px;
@@ -120,7 +120,7 @@
120
120
 
121
121
  &:focus {
122
122
  outline: bootstrap-variables.$pagination-focus-outline;
123
- box-shadow: variables.$pagination-focus-box-shadow;
123
+ box-shadow: variables.$box-shadow-none;
124
124
  }
125
125
  }
126
126
 
@@ -1,5 +1,5 @@
1
- @use "../styles/variables.scss";
2
- @use "../styles/mixins/shadow.scss";
1
+ @use '../styles/variables.scss';
2
+ @use '../styles/mixins/shadow.scss';
3
3
 
4
4
  $offset: 4px;
5
5
  .thy-popover-panel {
@@ -29,7 +29,7 @@ $offset: 4px;
29
29
  }
30
30
 
31
31
  .thy-popover-container {
32
- background: variables.$white;
32
+ background: variables.$bg-panel;
33
33
  width: 100%;
34
34
  border-radius: variables.$border-radius;
35
35
  @include shadow.section-box-shadow();
@@ -79,7 +79,7 @@
79
79
  }
80
80
 
81
81
  &:before {
82
- background: variables.$white;
82
+ background: variables.$bg-default;
83
83
  }
84
84
 
85
85
  &:not(.thy-property-item-content-editing):after {
@@ -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
  /**
@@ -1,9 +1,11 @@
1
+ @use 'variables.scss' as variables2;
2
+
1
3
  .container {
2
4
  display: flex;
3
5
  flex-direction: row;
4
6
  height: 200px;
5
7
  .left {
6
- border-right: 1px solid #eee;
8
+ border-right: 1px solid variables2.$gray-200;
7
9
  }
8
10
 
9
11
  .right {
@@ -1,3 +1,5 @@
1
+ @use 'variables.scss' as variables2;
2
+
1
3
  :host {
2
4
  display: block;
3
5
  height: 200px;
@@ -6,8 +8,8 @@
6
8
  display: flex;
7
9
  align-items: center;
8
10
  justify-content: center;
9
- background: #eee;
10
- border: 1px solid #ddd;
11
+ background: variables2.$gray-200;
12
+ border: 1px solid variables2.$gray-300;
11
13
  }
12
14
 
13
15
  .bottom-right {
@@ -23,8 +25,8 @@
23
25
  justify-content: center;
24
26
  }
25
27
  .right {
26
- background: #fff;
27
- border: 1px solid #ddd;
28
+ background: variables2.$bg-default;
29
+ border: 1px solid variables2.$gray-300;
28
30
  text-align: center;
29
31
  font-size: 12px;
30
32
  height: 22px;
@@ -43,7 +45,7 @@ thy-resizable-grid-example:host {
43
45
  margin-top: 8px;
44
46
  margin-bottom: 8px;
45
47
  background: rgba(0, 160, 233, 0.7);
46
- color: #fff;
48
+ color: variables2.$white;
47
49
  }
48
50
 
49
51
  .col-right {
@@ -1,4 +1,4 @@
1
- @use "../../styles/variables";
1
+ @use '../../styles/variables';
2
2
 
3
3
  .thy-result {
4
4
  display: block;
@@ -20,3 +20,27 @@
20
20
  }
21
21
  }
22
22
  }
23
+
24
+ .thy-result-svg-success,
25
+ .thy-result-svg-error,
26
+ .thy-result-svg-warning {
27
+ display: inline-block;
28
+ }
29
+ .thy-result-svg-success-dark,
30
+ .thy-result-svg-error-dark,
31
+ .thy-result-svg-warning-dark {
32
+ display: none;
33
+ }
34
+
35
+ :root[theme='dark'] {
36
+ .thy-result-svg-success,
37
+ .thy-result-svg-error,
38
+ .thy-result-svg-warning {
39
+ display: none;
40
+ }
41
+ .thy-result-svg-success-dark,
42
+ .thy-result-svg-error-dark,
43
+ .thy-result-svg-warning-dark {
44
+ display: inline-block;
45
+ }
46
+ }
@@ -1 +1 @@
1
- export declare const VERSION = "18.1.1";
1
+ export declare const VERSION = "18.2.0-next.1";
@@ -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.1.1';
4
+ exports.VERSION = '18.2.0-next.1';