@ui5/webcomponents-localization 0.0.0-dc606098a → 0.0.0-dcd8e5389

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 (191) hide show
  1. package/.eslintignore +1 -0
  2. package/.npsrc.json +3 -0
  3. package/CHANGELOG.md +449 -0
  4. package/README.md +36 -6
  5. package/dist/Assets-static.d.ts +1 -0
  6. package/dist/Assets-static.js +3 -0
  7. package/dist/Assets-static.js.map +1 -0
  8. package/dist/Assets.d.ts +1 -0
  9. package/dist/Assets.js +1 -0
  10. package/dist/Assets.js.map +1 -0
  11. package/dist/DateFormat.d.ts +6 -0
  12. package/dist/DateFormat.js +6 -2
  13. package/dist/DateFormat.js.map +1 -0
  14. package/dist/LocaleData.d.ts +6 -0
  15. package/dist/LocaleData.js +6 -2
  16. package/dist/LocaleData.js.map +1 -0
  17. package/dist/dates/CalendarDate.d.ts +43 -0
  18. package/dist/dates/CalendarDate.js +171 -181
  19. package/dist/dates/CalendarDate.js.map +1 -0
  20. package/dist/dates/ExtremeDates.d.ts +5 -0
  21. package/dist/dates/ExtremeDates.js +29 -0
  22. package/dist/dates/ExtremeDates.js.map +1 -0
  23. package/dist/dates/UI5Date.d.ts +6 -0
  24. package/dist/dates/UI5Date.js +7 -0
  25. package/dist/dates/UI5Date.js.map +1 -0
  26. package/dist/dates/UniversalDate.d.ts +47 -0
  27. package/dist/dates/UniversalDate.js +5 -0
  28. package/dist/dates/UniversalDate.js.map +1 -0
  29. package/dist/dates/calculateWeekNumber.d.ts +5 -0
  30. package/dist/dates/calculateWeekNumber.js +42 -48
  31. package/dist/dates/calculateWeekNumber.js.map +1 -0
  32. package/dist/dates/convertMonthNumbersToMonthNames.d.ts +16 -0
  33. package/dist/dates/convertMonthNumbersToMonthNames.js +30 -0
  34. package/dist/dates/convertMonthNumbersToMonthNames.js.map +1 -0
  35. package/dist/dates/getDaysInMonth.d.ts +3 -0
  36. package/dist/dates/getDaysInMonth.js +10 -0
  37. package/dist/dates/getDaysInMonth.js.map +1 -0
  38. package/dist/dates/getRoundedTimestamp.d.ts +7 -0
  39. package/dist/dates/getRoundedTimestamp.js +15 -0
  40. package/dist/dates/getRoundedTimestamp.js.map +1 -0
  41. package/dist/dates/getTodayUTCTimestamp.d.ts +7 -0
  42. package/dist/dates/getTodayUTCTimestamp.js +9 -0
  43. package/dist/dates/getTodayUTCTimestamp.js.map +1 -0
  44. package/dist/dates/modifyDateBy.d.ts +13 -0
  45. package/dist/dates/modifyDateBy.js +40 -0
  46. package/dist/dates/modifyDateBy.js.map +1 -0
  47. package/dist/dates/transformDateToSecondaryType.d.ts +7 -0
  48. package/dist/dates/transformDateToSecondaryType.js +18 -0
  49. package/dist/dates/transformDateToSecondaryType.js.map +1 -0
  50. package/dist/features/calendar/Buddhist.js +1 -0
  51. package/dist/features/calendar/Buddhist.js.map +1 -0
  52. package/dist/features/calendar/Gregorian.js +1 -0
  53. package/dist/features/calendar/Gregorian.js.map +1 -0
  54. package/dist/features/calendar/Islamic.js +1 -0
  55. package/dist/features/calendar/Islamic.js.map +1 -0
  56. package/dist/features/calendar/Japanese.js +1 -0
  57. package/dist/features/calendar/Japanese.js.map +1 -0
  58. package/dist/features/calendar/Persian.js +1 -0
  59. package/dist/features/calendar/Persian.js.map +1 -0
  60. package/dist/generated/assets/cldr/ar.json +2816 -5904
  61. package/dist/generated/assets/cldr/ar_EG.json +2816 -5904
  62. package/dist/generated/assets/cldr/ar_SA.json +2815 -5904
  63. package/dist/generated/assets/cldr/bg.json +2733 -4977
  64. package/dist/generated/assets/cldr/ca.json +2680 -4994
  65. package/dist/generated/assets/cldr/cs.json +2716 -5496
  66. package/dist/generated/assets/cldr/cy.json +2799 -0
  67. package/dist/generated/assets/cldr/da.json +2597 -4886
  68. package/dist/generated/assets/cldr/de.json +2614 -4914
  69. package/dist/generated/assets/cldr/de_AT.json +2614 -4915
  70. package/dist/generated/assets/cldr/de_CH.json +2614 -4913
  71. package/dist/generated/assets/cldr/el.json +2595 -4881
  72. package/dist/generated/assets/cldr/el_CY.json +2595 -4881
  73. package/dist/generated/assets/cldr/en.json +2583 -4968
  74. package/dist/generated/assets/cldr/en_AU.json +2592 -4960
  75. package/dist/generated/assets/cldr/en_GB.json +2584 -4969
  76. package/dist/generated/assets/cldr/en_HK.json +2593 -4975
  77. package/dist/generated/assets/cldr/en_IE.json +2584 -4969
  78. package/dist/generated/assets/cldr/en_IN.json +2588 -4970
  79. package/dist/generated/assets/cldr/en_NZ.json +2584 -4969
  80. package/dist/generated/assets/cldr/en_PG.json +2584 -4970
  81. package/dist/generated/assets/cldr/en_SG.json +2588 -4971
  82. package/dist/generated/assets/cldr/en_ZA.json +2584 -4970
  83. package/dist/generated/assets/cldr/es.json +2640 -4910
  84. package/dist/generated/assets/cldr/es_AR.json +2645 -4912
  85. package/dist/generated/assets/cldr/es_BO.json +2645 -4911
  86. package/dist/generated/assets/cldr/es_CL.json +2645 -4912
  87. package/dist/generated/assets/cldr/es_CO.json +2644 -4911
  88. package/dist/generated/assets/cldr/es_MX.json +2645 -4913
  89. package/dist/generated/assets/cldr/es_PE.json +2645 -4911
  90. package/dist/generated/assets/cldr/es_UY.json +2645 -4913
  91. package/dist/generated/assets/cldr/es_VE.json +2645 -4912
  92. package/dist/generated/assets/cldr/et.json +2599 -4965
  93. package/dist/generated/assets/cldr/fa.json +2618 -4881
  94. package/dist/generated/assets/cldr/fi.json +2726 -5006
  95. package/dist/generated/assets/cldr/fr.json +2590 -4977
  96. package/dist/generated/assets/cldr/fr_BE.json +2590 -4977
  97. package/dist/generated/assets/cldr/fr_CA.json +2605 -4971
  98. package/dist/generated/assets/cldr/fr_CH.json +2607 -4995
  99. package/dist/generated/assets/cldr/fr_LU.json +2590 -4977
  100. package/dist/generated/assets/cldr/he.json +2711 -5376
  101. package/dist/generated/assets/cldr/hi.json +2602 -4827
  102. package/dist/generated/assets/cldr/hr.json +2652 -4917
  103. package/dist/generated/assets/cldr/hu.json +2598 -4854
  104. package/dist/generated/assets/cldr/id.json +2544 -4656
  105. package/dist/generated/assets/cldr/it.json +2590 -4948
  106. package/dist/generated/assets/cldr/it_CH.json +2590 -4948
  107. package/dist/generated/assets/cldr/ja.json +2663 -4828
  108. package/dist/generated/assets/cldr/kk.json +2589 -4723
  109. package/dist/generated/assets/cldr/ko.json +2641 -4736
  110. package/dist/generated/assets/cldr/lt.json +2720 -5479
  111. package/dist/generated/assets/cldr/lv.json +2644 -5110
  112. package/dist/generated/assets/cldr/ms.json +2538 -4513
  113. package/dist/generated/assets/cldr/nb.json +2621 -4975
  114. package/dist/generated/assets/cldr/nl.json +2601 -4882
  115. package/dist/generated/assets/cldr/nl_BE.json +2601 -4882
  116. package/dist/generated/assets/cldr/pl.json +2723 -5174
  117. package/dist/generated/assets/cldr/pt.json +2607 -4803
  118. package/dist/generated/assets/cldr/pt_PT.json +2658 -4938
  119. package/dist/generated/assets/cldr/ro.json +2645 -5088
  120. package/dist/generated/assets/cldr/ru.json +2704 -5405
  121. package/dist/generated/assets/cldr/ru_UA.json +2704 -5405
  122. package/dist/generated/assets/cldr/sk.json +2726 -5368
  123. package/dist/generated/assets/cldr/sl.json +2688 -5338
  124. package/dist/generated/assets/cldr/sr.json +2663 -5124
  125. package/dist/generated/assets/cldr/sr_Latn.json +2668 -0
  126. package/dist/generated/assets/cldr/sv.json +2631 -5009
  127. package/dist/generated/assets/cldr/th.json +2635 -4795
  128. package/dist/generated/assets/cldr/tr.json +2612 -4977
  129. package/dist/generated/assets/cldr/uk.json +2684 -5351
  130. package/dist/generated/assets/cldr/vi.json +2555 -4671
  131. package/dist/generated/assets/cldr/zh_CN.json +2555 -4630
  132. package/dist/generated/assets/cldr/zh_HK.json +2563 -4638
  133. package/dist/generated/assets/cldr/zh_SG.json +2562 -4638
  134. package/dist/generated/assets/cldr/zh_TW.json +2587 -4726
  135. package/dist/generated/json-imports/LocaleData-static.js +90 -0
  136. package/dist/generated/json-imports/LocaleData.js +88 -91
  137. package/dist/getCachedLocaleDataInstance.d.ts +4 -0
  138. package/dist/getCachedLocaleDataInstance.js +10 -0
  139. package/dist/getCachedLocaleDataInstance.js.map +1 -0
  140. package/dist/locale/getLocaleData.d.ts +11 -0
  141. package/dist/locale/getLocaleData.js +13 -17
  142. package/dist/locale/getLocaleData.js.map +1 -0
  143. package/dist/sap/base/Log.js +28 -37
  144. package/dist/sap/base/assert.js +5 -10
  145. package/dist/sap/base/util/LoaderExtensions.d.ts +4 -0
  146. package/dist/sap/base/util/LoaderExtensions.js +11 -4
  147. package/dist/sap/base/util/LoaderExtensions.js.map +1 -0
  148. package/dist/sap/base/util/array/uniqueSort.js +7 -7
  149. package/dist/sap/base/util/deepEqual.js +1 -5
  150. package/dist/sap/ui/base/Interface.js +3 -5
  151. package/dist/sap/ui/base/Metadata.js +1 -3
  152. package/dist/sap/ui/base/Object.js +26 -2
  153. package/dist/sap/ui/core/Configuration.d.ts +17 -0
  154. package/dist/sap/ui/core/Configuration.js +21 -0
  155. package/dist/sap/ui/core/Configuration.js.map +1 -0
  156. package/dist/sap/ui/core/Core.d.ts +26 -0
  157. package/dist/sap/ui/core/Core.js +7 -32
  158. package/dist/sap/ui/core/Core.js.map +1 -0
  159. package/dist/sap/ui/core/FormatSettings.d.ts +10 -0
  160. package/dist/sap/ui/core/FormatSettings.js +14 -0
  161. package/dist/sap/ui/core/FormatSettings.js.map +1 -0
  162. package/dist/sap/ui/core/Locale.js +70 -31
  163. package/dist/sap/ui/core/LocaleData.js +206 -1525
  164. package/dist/sap/ui/core/date/Buddhist.js +0 -6
  165. package/dist/sap/ui/core/date/CalendarUtils.js +36 -0
  166. package/dist/sap/ui/core/date/CalendarWeekNumbering.js +7 -0
  167. package/dist/sap/ui/core/date/Islamic.js +3 -3
  168. package/dist/sap/ui/core/date/Japanese.js +4 -4
  169. package/dist/sap/ui/core/date/UI5Date.js +305 -0
  170. package/dist/sap/ui/core/date/UniversalDate.js +85 -25
  171. package/dist/sap/ui/core/format/DateFormat.js +819 -497
  172. package/dist/sap/ui/core/format/TimezoneUtil.js +89 -0
  173. package/package-scripts.cjs +37 -0
  174. package/package.json +14 -13
  175. package/tsconfig.json +14 -0
  176. package/used-modules.txt +5 -1
  177. package/package-scripts.js +0 -31
  178. package/src/Assets.js +0 -2
  179. package/src/DateFormat.js +0 -3
  180. package/src/LocaleData.js +0 -3
  181. package/src/dates/CalendarDate.js +0 -203
  182. package/src/dates/calculateWeekNumber.js +0 -51
  183. package/src/locale/getLocaleData.js +0 -27
  184. package/src/sap/base/util/LoaderExtensions.js +0 -7
  185. package/src/sap/ui/core/Core.js +0 -38
  186. /package/{config/.eslintrc.js → .eslintrc.cjs} +0 -0
  187. /package/{src/features/calendar/Buddhist.js → dist/features/calendar/Buddhist.d.ts} +0 -0
  188. /package/{src/features/calendar/Gregorian.js → dist/features/calendar/Gregorian.d.ts} +0 -0
  189. /package/{src/features/calendar/Islamic.js → dist/features/calendar/Islamic.d.ts} +0 -0
  190. /package/{src/features/calendar/Japanese.js → dist/features/calendar/Japanese.d.ts} +0 -0
  191. /package/{src/features/calendar/Persian.js → dist/features/calendar/Persian.d.ts} +0 -0
package/.eslintignore CHANGED
@@ -2,3 +2,4 @@ dist
2
2
  lib
3
3
  overlay
4
4
  package-scripts.js
5
+ .eslintrc.cjs
package/.npsrc.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "config": "./package-scripts.cjs"
3
+ }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,455 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.13.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.2...v1.13.0-rc.3) (2023-04-27)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-localization
9
+
10
+
11
+
12
+
13
+
14
+ # [1.13.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.1...v1.13.0-rc.2) (2023-04-20)
15
+
16
+ **Note:** Version bump only for package @ui5/webcomponents-localization
17
+
18
+
19
+
20
+
21
+
22
+ # [1.13.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.13.0-rc.0...v1.13.0-rc.1) (2023-04-13)
23
+
24
+
25
+ ### Features
26
+
27
+ * **localization:** add `timezone` support [experimental] ([#6857](https://github.com/SAP/ui5-webcomponents/issues/6857)) ([aa91fd1](https://github.com/SAP/ui5-webcomponents/commit/aa91fd136f8bff757d476b83444f963d4299d562))
28
+
29
+
30
+
31
+
32
+
33
+ # [1.13.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0...v1.13.0-rc.0) (2023-04-06)
34
+
35
+ **Note:** Version bump only for package @ui5/webcomponents-localization
36
+
37
+
38
+
39
+
40
+
41
+ # [1.12.0](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.3...v1.12.0) (2023-04-04)
42
+
43
+ **Note:** Version bump only for package @ui5/webcomponents-localization
44
+
45
+
46
+
47
+
48
+
49
+ # [1.12.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.2...v1.12.0-rc.3) (2023-03-30)
50
+
51
+ **Note:** Version bump only for package @ui5/webcomponents-localization
52
+
53
+
54
+
55
+
56
+
57
+ # [1.12.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.1...v1.12.0-rc.2) (2023-03-23)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * fix eslint for JS 3rd party projects ([#6725](https://github.com/SAP/ui5-webcomponents/issues/6725)) ([215a888](https://github.com/SAP/ui5-webcomponents/commit/215a888b006e46d431edd6324812b9d39249aef4))
63
+ * inline sources in the .map file so the src folder is not mandatory ([#6732](https://github.com/SAP/ui5-webcomponents/issues/6732)) ([16771a6](https://github.com/SAP/ui5-webcomponents/commit/16771a64d7b13f418af9afa1a03b224fe3762775))
64
+
65
+
66
+
67
+
68
+
69
+ # [1.12.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.12.0-rc.0...v1.12.0-rc.1) (2023-03-16)
70
+
71
+ **Note:** Version bump only for package @ui5/webcomponents-localization
72
+
73
+
74
+
75
+
76
+
77
+ # [1.12.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0...v1.12.0-rc.0) (2023-03-09)
78
+
79
+ **Note:** Version bump only for package @ui5/webcomponents-localization
80
+
81
+
82
+
83
+
84
+
85
+ # [1.11.0](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.4...v1.11.0) (2023-03-06)
86
+
87
+ **Note:** Version bump only for package @ui5/webcomponents-localization
88
+
89
+
90
+
91
+
92
+
93
+ # [1.11.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.3...v1.11.0-rc.4) (2023-03-02)
94
+
95
+ **Note:** Version bump only for package @ui5/webcomponents-localization
96
+
97
+
98
+
99
+
100
+
101
+ # [1.11.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.2...v1.11.0-rc.3) (2023-02-23)
102
+
103
+
104
+ ### Features
105
+
106
+ * **framework:** support legacy date calendar customizing ([#6462](https://github.com/SAP/ui5-webcomponents/issues/6462)) ([27df89b](https://github.com/SAP/ui5-webcomponents/commit/27df89bc62aaccbfbec5f4d36c520dbd762dab34))
107
+
108
+
109
+
110
+
111
+
112
+ # [1.11.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.1...v1.11.0-rc.2) (2023-02-16)
113
+
114
+ **Note:** Version bump only for package @ui5/webcomponents-localization
115
+
116
+
117
+
118
+
119
+
120
+ # [1.11.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.11.0-rc.0...v1.11.0-rc.1) (2023-02-09)
121
+
122
+ **Note:** Version bump only for package @ui5/webcomponents-localization
123
+
124
+
125
+
126
+
127
+
128
+ # [1.11.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.10.4-rc.0...v1.11.0-rc.0) (2023-02-02)
129
+
130
+ **Note:** Version bump only for package @ui5/webcomponents-localization
131
+
132
+
133
+
134
+
135
+
136
+ ## [1.10.4-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.10.3...v1.10.4-rc.0) (2023-01-26)
137
+
138
+ **Note:** Version bump only for package @ui5/webcomponents-localization
139
+
140
+
141
+
142
+
143
+
144
+ ## [1.10.3](https://github.com/SAP/ui5-webcomponents/compare/v1.10.2...v1.10.3) (2023-01-25)
145
+
146
+ **Note:** Version bump only for package @ui5/webcomponents-localization
147
+
148
+
149
+
150
+
151
+
152
+ ## [1.10.2](https://github.com/SAP/ui5-webcomponents/compare/v1.10.1...v1.10.2) (2023-01-25)
153
+
154
+ **Note:** Version bump only for package ui5-webcomponents
155
+
156
+ ## [1.10.1](https://github.com/SAP/ui5-webcomponents/compare/v0.0.0-7b49a7ff1...v1.10.1) (2023-01-24)
157
+
158
+
159
+ ### Bug Fixes
160
+
161
+ * add openui5 types as a dependency ([#6346](https://github.com/SAP/ui5-webcomponents/issues/6346)) ([2f06c71](https://github.com/SAP/ui5-webcomponents/commit/2f06c71eefb455db179cdbb9bd4b293af5b5aa2b))
162
+
163
+
164
+
165
+
166
+
167
+ # [1.10.0](https://github.com/SAP/ui5-webcomponents/compare/v1.9.3...v1.10.0) (2023-01-20)
168
+
169
+
170
+ ### Features
171
+
172
+ * add TS types for localization packages ([#6147](https://github.com/SAP/ui5-webcomponents/issues/6147)) ([39dcbfd](https://github.com/SAP/ui5-webcomponents/commit/39dcbfd91e6bc728f1c3feaff5e229ae3a359b06))
173
+ * **ui5-button, ui5-date-picker, ui5-calendar:** migrate to TS ([#6173](https://github.com/SAP/ui5-webcomponents/issues/6173)) ([7232ca0](https://github.com/SAP/ui5-webcomponents/commit/7232ca08f286c5dde10080373fb62247f1acf7b7)), closes [#6080](https://github.com/SAP/ui5-webcomponents/issues/6080)
174
+
175
+
176
+
177
+
178
+
179
+ ## [1.9.3](https://github.com/SAP/ui5-webcomponents/compare/v1.9.2...v1.9.3) (2022-12-16)
180
+
181
+ **Note:** Version bump only for package @ui5/webcomponents-localization
182
+
183
+
184
+
185
+
186
+
187
+ ## [1.9.1](https://github.com/SAP/ui5-webcomponents/compare/v1.9.0...v1.9.1) (2022-11-10)
188
+
189
+ **Note:** Version bump only for package @ui5/webcomponents-localization
190
+
191
+
192
+
193
+
194
+
195
+ # [1.9.0](https://github.com/SAP/ui5-webcomponents/compare/v1.8.0...v1.9.0) (2022-10-31)
196
+
197
+ **Note:** Version bump only for package @ui5/webcomponents-localization
198
+
199
+
200
+
201
+
202
+
203
+ # [1.8.0](https://github.com/SAP/ui5-webcomponents/compare/v1.7.1...v1.8.0) (2022-10-03)
204
+
205
+ **Note:** Version bump only for package @ui5/webcomponents-localization
206
+
207
+
208
+
209
+
210
+
211
+ ## [1.7.1](https://github.com/SAP/ui5-webcomponents/compare/v1.7.0...v1.7.1) (2022-09-08)
212
+
213
+ **Note:** Version bump only for package @ui5/webcomponents-localization
214
+
215
+
216
+
217
+
218
+
219
+ # [1.7.0](https://github.com/SAP/ui5-webcomponents/compare/v1.6.0...v1.7.0) (2022-09-02)
220
+
221
+ **Note:** Version bump only for package @ui5/webcomponents-localization
222
+
223
+
224
+
225
+
226
+
227
+ # [1.6.0](https://github.com/SAP/ui5-webcomponents/compare/v1.5.0...v1.6.0) (2022-07-25)
228
+
229
+
230
+ ### Features
231
+
232
+ * **ui5-calendar:** show months and years from both primary and secon… ([#5412](https://github.com/SAP/ui5-webcomponents/issues/5412)) ([d5dc7ec](https://github.com/SAP/ui5-webcomponents/commit/d5dc7ec))
233
+
234
+
235
+
236
+
237
+
238
+ # [1.5.0](https://github.com/SAP/ui5-webcomponents/compare/v1.4.0...v1.5.0) (2022-07-03)
239
+
240
+ **Note:** Version bump only for package @ui5/webcomponents-localization
241
+
242
+
243
+
244
+
245
+
246
+ # [1.4.0](https://github.com/SAP/ui5-webcomponents/compare/v1.3.1...v1.4.0) (2022-05-25)
247
+
248
+ **Note:** Version bump only for package @ui5/webcomponents-localization
249
+
250
+
251
+
252
+
253
+
254
+ ## [1.3.1](https://github.com/SAP/ui5-webcomponents/compare/v1.3.0...v1.3.1) (2022-04-27)
255
+
256
+ **Note:** Version bump only for package @ui5/webcomponents-localization
257
+
258
+
259
+
260
+
261
+
262
+ # [1.3.0](https://github.com/SAP/ui5-webcomponents/compare/v1.2.4...v1.3.0) (2022-04-19)
263
+
264
+
265
+ ### Bug Fixes
266
+
267
+ * **localization:** fix js error if "sh" locale set ([#4905](https://github.com/SAP/ui5-webcomponents/issues/4905)) ([979bca2](https://github.com/SAP/ui5-webcomponents/commit/979bca2)), closes [#4904](https://github.com/SAP/ui5-webcomponents/issues/4904)
268
+
269
+
270
+
271
+
272
+
273
+ ## [1.2.4](https://github.com/SAP/ui5-webcomponents/compare/v1.2.3...v1.2.4) (2022-03-30)
274
+
275
+ **Note:** Version bump only for package @ui5/webcomponents-localization
276
+
277
+
278
+
279
+
280
+
281
+ ## [1.2.3](https://github.com/SAP/ui5-webcomponents/compare/v1.2.2...v1.2.3) (2022-03-23)
282
+
283
+ **Note:** Version bump only for package @ui5/webcomponents-localization
284
+
285
+
286
+
287
+
288
+
289
+ ## [1.2.2](https://github.com/SAP/ui5-webcomponents/compare/v1.2.1...v1.2.2) (2022-03-22)
290
+
291
+
292
+ ### Bug Fixes
293
+
294
+ * **localization:** fix js error if "sh" locale set ([#4905](https://github.com/SAP/ui5-webcomponents/issues/4905)) ([9ace82c](https://github.com/SAP/ui5-webcomponents/commit/9ace82c)), closes [#4904](https://github.com/SAP/ui5-webcomponents/issues/4904)
295
+
296
+
297
+
298
+
299
+
300
+
301
+ ## [1.2.1](https://github.com/SAP/ui5-webcomponents/compare/v1.2.0...v1.2.1) (2022-03-02)
302
+
303
+ **Note:** Version bump only for package @ui5/webcomponents-localization
304
+
305
+
306
+
307
+
308
+
309
+ # [1.2.0](https://github.com/SAP/ui5-webcomponents/compare/v1.1.2...v1.2.0) (2022-02-28)
310
+
311
+ **Note:** Version bump only for package @ui5/webcomponents-localization
312
+
313
+
314
+
315
+
316
+
317
+ ## [1.1.2](https://github.com/SAP/ui5-webcomponents/compare/v1.1.1...v1.1.2) (2022-01-26)
318
+
319
+ **Note:** Version bump only for package @ui5/webcomponents-localization
320
+
321
+
322
+
323
+
324
+
325
+ ## [1.1.1](https://github.com/SAP/ui5-webcomponents/compare/v1.1.0...v1.1.1) (2022-01-24)
326
+
327
+ **Note:** Version bump only for package @ui5/webcomponents-localization
328
+
329
+
330
+
331
+
332
+
333
+ # [1.1.0](https://github.com/SAP/ui5-webcomponents/compare/v1.0.2...v1.1.0) (2022-01-21)
334
+
335
+ **Note:** Version bump only for package @ui5/webcomponents-localization
336
+
337
+
338
+
339
+
340
+
341
+ ## [1.0.2](https://github.com/SAP/ui5-webcomponents/compare/v1.0.1...v1.0.2) (2021-11-29)
342
+
343
+ **Note:** Version bump only for package @ui5/webcomponents-localization
344
+
345
+
346
+
347
+
348
+
349
+ ## [1.0.1](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0...v1.0.1) (2021-11-10)
350
+
351
+ **Note:** Version bump only for package @ui5/webcomponents-localization
352
+
353
+
354
+
355
+
356
+
357
+ # [1.0.0](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.16...v1.0.0) (2021-11-10)
358
+
359
+
360
+ **Note:** Version bump only for package @ui5/webcomponents-localization
361
+
362
+
363
+
364
+
365
+
366
+ # [1.0.0-rc.16](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.15...v1.0.0-rc.16) (2021-11-09)
367
+
368
+
369
+ **Note:** Version bump only for package @ui5/webcomponents-localization
370
+
371
+
372
+
373
+
374
+
375
+ # [1.0.0-rc.15](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.14...v1.0.0-rc.15) (2021-07-23)
376
+
377
+
378
+ **Note:** Version bump only for package @ui5/webcomponents-icons-tnt
379
+
380
+
381
+
382
+
383
+ # [1.0.0-rc.14](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.13...v1.0.0-rc.14) (2021-04-01)
384
+
385
+
386
+
387
+
388
+
389
+ # [1.0.0-rc.13](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.12...v1.0.0-rc.13) (2021-03-26)
390
+
391
+
392
+
393
+
394
+ **Note:** Version bump only for package @ui5/webcomponents-localization
395
+
396
+
397
+
398
+
399
+
400
+ # [1.0.0-rc.12](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.11...v1.0.0-rc.12) (2021-02-18)
401
+
402
+
403
+ ### Bug Fixes
404
+
405
+ * **ui5-calendar:** Today date is now timezone aware ([#2660](https://github.com/SAP/ui5-webcomponents/issues/2660)) ([32dd0ef](https://github.com/SAP/ui5-webcomponents/commit/32dd0ef))
406
+
407
+
408
+
409
+
410
+ # [1.0.0-rc.11](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.10...v1.0.0-rc.11) (2020-12-21)
411
+
412
+ **Note:** Version bump only for package @ui5/webcomponents-localization
413
+
414
+
415
+
416
+
417
+
418
+ # [1.0.0-rc.10](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.9...v1.0.0-rc.10) (2020-11-12)
419
+
420
+
421
+ **Note:** Version bump only for package @ui5/webcomponents-localization
422
+
423
+
424
+
425
+
426
+
427
+ # [1.0.0-rc.9](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.8...v1.0.0-rc.9) (2020-10-08)
428
+
429
+
430
+ ### Features
431
+
432
+ **Note:** Version bump only for package @ui5/webcomponents-localization
433
+
434
+
435
+
436
+
437
+
438
+ # [1.0.0-rc.8](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.7...v1.0.0-rc.8) (2020-07-30)
439
+
440
+
441
+ **Note:** Version bump only for package @ui5/webcomponents-localization
442
+
443
+
444
+
445
+
446
+
447
+ # [1.0.0-rc.7](https://github.com/SAP/ui5-webcomponents/compare/v1.0.0-rc.6...v1.0.0-rc.7) (2020-04-30)
448
+
449
+ **Note:** Version bump only for package @ui5/webcomponents-localization
450
+
451
+
452
+
453
+
454
+
6
455
  # [0.19.0](https://github.com/SAP/ui5-webcomponents/compare/v0.18.0...v0.19.0) (2020-03-27)
7
456
 
8
457
  **Note:** Version bump only for package @ui5/webcomponents-localization
package/README.md CHANGED
@@ -1,23 +1,53 @@
1
- ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/master/docs/images/UI5_logo_wide.png)
1
+ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
2
 
3
3
  # UI5 Web Components - Localization
4
4
 
5
- [![Travis CI Build Status](https://travis-ci.org/SAP/ui5-webcomponents.svg?branch=master)](https://travis-ci.org/SAP/ui5-webcomponents)
6
5
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
7
6
 
8
7
  Provides date/time and CLDR functionality for the purposes of building UI5 Web Components.
9
8
 
9
+ ## Provided assets
10
+
11
+ The assets, provided by this package, are CLDR data:
12
+
13
+ `import "@ui5/webcomponents-localization/dist/Assets.js";`
14
+
15
+ *Note:* These assets are already imported by the UI5 Web Components packages that need them.
16
+
17
+ ## Provided features
18
+
19
+ | Feature Import | Description |
20
+ |----------------------------------------------------------------------|---------------------------|
21
+ | `@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js` | Buddhist calendar support |
22
+ | `@ui5/webcomponents-localization/dist/features/calendar/Islamic.js` | Islamic calendar support |
23
+ | `@ui5/webcomponents-localization/dist/features/calendar/Japanese.js` | Japanese calendar support |
24
+ | `@ui5/webcomponents-localization/dist/features/calendar/Persian.js` | Persian calendar support |
25
+
26
+ ### Advanced Calendar Types Feature
27
+
28
+ ```js
29
+ import "@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js";
30
+ import "@ui5/webcomponents-localization/dist/features/calendar/Islamic.js";
31
+ import "@ui5/webcomponents-localization/dist/features/calendar/Japanese.js";
32
+ import "@ui5/webcomponents-localization/dist/features/calendar/Persian.js";
33
+ ```
34
+
35
+ The `ui5-date-picker` and `ui5-datetime-picker` components supports Gregorian Calendar by default.
36
+
37
+ In order to be able to use Buddhist, Islamic, Japanese, or Persian calendar with these components
38
+ (by setting its `primaryCalendarType` property), you must import one or more of the modules above.
39
+
10
40
  ## Resources
11
- - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/master/README.md)
41
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
12
42
  - [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
13
43
  - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
14
44
 
15
45
  ## Support
16
- We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
46
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
17
47
 
18
48
  ## Contribute
19
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/CONTRIBUTING.md).
49
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
20
50
 
21
51
  ## License
22
52
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
23
- This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/master/LICENSE.txt) file.
53
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
@@ -0,0 +1 @@
1
+ import "./generated/json-imports/LocaleData-static.js";
@@ -0,0 +1,3 @@
1
+ // Currently the base package provides CLDR assets only
2
+ import "./generated/json-imports/LocaleData-static.js";
3
+ //# sourceMappingURL=Assets-static.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Assets-static.js","sourceRoot":"","sources":["../src/Assets-static.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,+CAA+C,CAAC","sourcesContent":["// Currently the base package provides CLDR assets only\nimport \"./generated/json-imports/LocaleData-static.js\";\n"]}
@@ -0,0 +1 @@
1
+ import "./generated/json-imports/LocaleData.js";
package/dist/Assets.js CHANGED
@@ -1,2 +1,3 @@
1
1
  // Currently the base package provides CLDR assets only
2
2
  import "./generated/json-imports/LocaleData.js";
3
+ //# sourceMappingURL=Assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Assets.js","sourceRoot":"","sources":["../src/Assets.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,wCAAwC,CAAC","sourcesContent":["// Currently the base package provides CLDR assets only\nimport \"./generated/json-imports/LocaleData.js\";\n"]}
@@ -0,0 +1,6 @@
1
+ /// <reference types="openui5" />
2
+ import type DateFormatT from "sap/ui/core/format/DateFormat";
3
+ declare const DateFormatWrapped: typeof DateFormatT;
4
+ declare class DateFormat extends DateFormatWrapped {
5
+ }
6
+ export default DateFormat;
@@ -1,3 +1,7 @@
1
- import DateFormat from "./sap/ui/core/format/DateFormat.js";
2
-
1
+ // @ts-ignore
2
+ import DateFormatNative from "./sap/ui/core/format/DateFormat.js";
3
+ const DateFormatWrapped = DateFormatNative;
4
+ class DateFormat extends DateFormatWrapped {
5
+ }
3
6
  export default DateFormat;
7
+ //# sourceMappingURL=DateFormat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateFormat.js","sourceRoot":"","sources":["../src/DateFormat.ts"],"names":[],"mappings":"AACA,aAAa;AACb,OAAO,gBAAgB,MAAM,oCAAoC,CAAC;AAElE,MAAM,iBAAiB,GAAG,gBAAsC,CAAC;AACjE,MAAM,UAAW,SAAQ,iBAAiB;CAAG;AAE7C,eAAe,UAAU,CAAC","sourcesContent":["import type DateFormatT from \"sap/ui/core/format/DateFormat\";\n// @ts-ignore\nimport DateFormatNative from \"./sap/ui/core/format/DateFormat.js\";\n\nconst DateFormatWrapped = DateFormatNative as typeof DateFormatT;\nclass DateFormat extends DateFormatWrapped {}\n\nexport default DateFormat;\n"]}
@@ -0,0 +1,6 @@
1
+ /// <reference types="openui5" />
2
+ import type LocaleDataOpenUI5T from "sap/ui/core/LocaleData";
3
+ declare const LocaleDataWrapped: typeof LocaleDataOpenUI5T;
4
+ declare class LocaleData extends LocaleDataWrapped {
5
+ }
6
+ export default LocaleData;
@@ -1,3 +1,7 @@
1
- import LocaleData from "./sap/ui/core/LocaleData.js";
2
-
1
+ // @ts-ignore
2
+ import LocaleDataNative from "./sap/ui/core/LocaleData.js";
3
+ const LocaleDataWrapped = LocaleDataNative;
4
+ class LocaleData extends LocaleDataWrapped {
5
+ }
3
6
  export default LocaleData;
7
+ //# sourceMappingURL=LocaleData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocaleData.js","sourceRoot":"","sources":["../src/LocaleData.ts"],"names":[],"mappings":"AACA,aAAa;AACb,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAE3D,MAAM,iBAAiB,GAAG,gBAA6C,CAAC;AACxE,MAAM,UAAW,SAAQ,iBAAiB;CAAG;AAE7C,eAAe,UAAU,CAAC","sourcesContent":["import type LocaleDataOpenUI5T from \"sap/ui/core/LocaleData\";\n// @ts-ignore\nimport LocaleDataNative from \"./sap/ui/core/LocaleData.js\";\n\nconst LocaleDataWrapped = LocaleDataNative as typeof LocaleDataOpenUI5T;\nclass LocaleData extends LocaleDataWrapped {}\n\nexport default LocaleData;\n"]}
@@ -0,0 +1,43 @@
1
+ /// <reference types="openui5" />
2
+ import type CalendarType from "@ui5/webcomponents-base/dist/types/CalendarType.js";
3
+ import UI5Date from "./UI5Date.js";
4
+ import UniversalDate from "./UniversalDate.js";
5
+ declare class CalendarDate {
6
+ _oUDate: UI5Date | Date | UniversalDate;
7
+ constructor(year?: number | CalendarDate, month?: number | string, date?: number, calendarType?: string);
8
+ getYear(): number;
9
+ setYear(year: number): this;
10
+ getMonth(): number;
11
+ /**
12
+ * Sets the given month as ordinal month of the year.
13
+ * @param {int} month An integer between 0 and 11, representing the months January through December( or their
14
+ * equivalent month names for the given calendar).
15
+ * If the specified value is is outside of the expected range, this method attempts to update the date information
16
+ * accordingly. For example, if 12 is given as a month, the year will be incremented by 1, and 1 will be used for month.
17
+ * @param {int} [date] An integer between 1 and 31, representing the day of the month, but other values are allowed.
18
+ * 0 will result in the previous month's last day.
19
+ * -1 will result in the day before the previous month's last day.
20
+ * 32 will result in:
21
+ * - first day of the next month if the current month has 31 days.
22
+ * - second day of the next month if the current month has 30 days.
23
+ * Other value will result in adding or subtracting days according to the given value.
24
+ * @returns {sap.ui.unified.calendar.CalendarDate} <code>this</code> for method chaining.
25
+ */
26
+ setMonth(month: number, date?: number): this;
27
+ getDate(): number;
28
+ setDate(date: number): this;
29
+ getDay(): number;
30
+ getCalendarType(): string;
31
+ isBefore(oCalendarDate: CalendarDate): boolean;
32
+ isAfter(oCalendarDate: CalendarDate): boolean;
33
+ isSameOrBefore(oCalendarDate: CalendarDate): boolean;
34
+ isSameOrAfter(oCalendarDate: CalendarDate): boolean;
35
+ isSame(oCalendarDate: CalendarDate): boolean;
36
+ toLocalJSDate(): import("sap/ui/core/date/UI5Date").default | Date;
37
+ toUTCJSDate(): import("sap/ui/core/date/UI5Date").default | Date;
38
+ toString(): string;
39
+ valueOf(): number;
40
+ static fromLocalJSDate(oJSDate: Date | UI5Date, sCalendarType?: CalendarType): CalendarDate;
41
+ static fromTimestamp(iTimestamp: number, sCalendarType?: CalendarType): CalendarDate;
42
+ }
43
+ export default CalendarDate;