@mindfusion/scheduling 2.2.1 → 2.3.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/README.md +31 -20
- package/dist/cjs/scheduling.js +1 -1
- package/dist/esm/scheduling.js +1 -1
- package/dist/esm/scheduling.mjs +1 -1
- package/dist/umd/scheduling.js +1 -1
- package/localization/bg.json +0 -0
- package/localization/cn.json +1 -3
- package/localization/de.json +0 -0
- package/localization/en.json +0 -0
- package/localization/es.json +100 -103
- package/localization/fr.json +100 -103
- package/localization/it.json +1 -3
- package/localization/jp.json +101 -104
- package/localization/kr.json +101 -104
- package/localization/nl.json +100 -103
- package/localization/pl.json +100 -103
- package/localization/pt.json +100 -103
- package/localization/ru.json +0 -0
- package/localization/tr.json +101 -104
- package/package.json +16 -2
- package/scheduling.d.mts +143 -105
- package/scheduling.d.ts +143 -105
package/README.md
CHANGED
|
@@ -10,35 +10,48 @@ For the latest stable version:
|
|
|
10
10
|
npm i @mindfusion/scheduling
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
### New in version 2.
|
|
13
|
+
### New in version 2.3
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
- [realGroupType](https://www.mindfusion.dev/docs/javascript/scheduling/P_MindFusion_Scheduling_Calendar_realGroupType_0.htm) property returns the effective [GroupType](https://www.mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_GroupType.htm).
|
|
17
|
-
- [buttonClick](https://www.mindfusion.dev/docs/javascript/scheduling/E_MindFusion_Scheduling_Calendar_buttonClick.htm) eventnow alsoraised when calendar is disabled ([enabled](https://www.mindfusion.dev/docs/javascript/scheduling/P_MindFusion_Controls_Control_enabled_0.htm) property set to **false**).
|
|
18
|
-
- Improved React wrapper component in sample projects.
|
|
19
|
-
- Fixed exceptions when saving [Schedule](https://www.mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_Schedule_1.htm) with recurrent events to JSON.
|
|
15
|
+
#### Localization improvements
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
### New in version 2.0.4
|
|
23
|
-
|
|
24
|
-
The library registers the [Calendar](https://www.mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_Calendar_0.htm) class as a web component. You can use the <mindfusion-calendar> tag to create the control.
|
|
25
|
-
|
|
26
|
-
When instantiated as a web component, the control creates required HTML elements as internal shadow DOM. You can get the JavaScript object corresponding to a web component by calling the [find](https://www.mindfusion.dev/docs/javascript/scheduling/M_MindFusion_Common_Control_find_1_String.htm) method with id argument.
|
|
17
|
+
MindFusion.Scheduling now uses the **Intl API** ( [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)) for [localized formatting](https://mindfusion.dev/docs/javascript/scheduling/Localization_2.htm) of dates and times. All properties of the [Calendar](https://mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_Calendar_0.htm) control, that used to contain a format string, should now be set to an **Intl.DateTimeFormat** options object, e.g.:
|
|
27
18
|
|
|
28
19
|
```
|
|
29
|
-
|
|
30
|
-
</mindfusion-calendar>
|
|
20
|
+
settings.generalFormat = "dd MMMM";
|
|
31
21
|
```
|
|
32
22
|
|
|
23
|
+
must be changed to
|
|
24
|
+
|
|
33
25
|
```
|
|
34
|
-
|
|
35
|
-
calendar = ms.Calendar.find("calendar");
|
|
36
|
-
calendar.currentView = ms.CalendarView.SingleMonth;
|
|
26
|
+
settings.generalFormat = { day: '2-digit', month: 'long' };
|
|
37
27
|
```
|
|
38
28
|
|
|
29
|
+
The following list contains the fields and values that can be set in the options object:
|
|
30
|
+
- weekday: 'narrow' | 'short' | 'long'
|
|
31
|
+
- era: 'narrow' | 'short' | 'long'
|
|
32
|
+
- year: 'numeric' | '2-digit'
|
|
33
|
+
- month: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long'
|
|
34
|
+
- day: 'numeric' | '2-digit'
|
|
35
|
+
- hour: 'numeric' | '2-digit'
|
|
36
|
+
- minute: 'numeric' | '2-digit'
|
|
37
|
+
- second: 'numeric' | '2-digit'
|
|
38
|
+
- timeZoneName: 'short' | 'long'
|
|
39
|
+
- timeZone: 'Asia/Shanghai'
|
|
40
|
+
- hour12: true | false
|
|
41
|
+
- hourCycle: 'h11' | 'h12' | 'h23' | 'h24'
|
|
42
|
+
- formatMatcher: 'basic' | 'best fit'
|
|
43
|
+
|
|
44
|
+
### New in version 2.2
|
|
45
|
+
|
|
46
|
+
- [repainted](https://www.mindfusion.dev/docs/javascript/scheduling/E_MindFusion_Scheduling_Calendar_repainted.htm) event raised after [Calendar](https://www.mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_Calendar_0.htm) updates its DOM elements, letting you adjust their content or layout.
|
|
47
|
+
- [realGroupType](https://www.mindfusion.dev/docs/javascript/scheduling/P_MindFusion_Scheduling_Calendar_realGroupType_0.htm) property returns the effective [GroupType](https://www.mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_GroupType.htm).
|
|
48
|
+
- [buttonClick](https://www.mindfusion.dev/docs/javascript/scheduling/E_MindFusion_Scheduling_Calendar_buttonClick.htm) eventnow alsoraised when calendar is disabled ([enabled](https://www.mindfusion.dev/docs/javascript/scheduling/P_MindFusion_Controls_Control_enabled_0.htm) property set to **false**).
|
|
49
|
+
- Improved React wrapper component in sample projects.
|
|
50
|
+
- Fixed exceptions when saving [Schedule](https://www.mindfusion.dev/docs/javascript/scheduling/T_MindFusion_Scheduling_Schedule_1.htm) with recurrent events to JSON.
|
|
51
|
+
|
|
39
52
|
### Documentation
|
|
40
53
|
|
|
41
|
-
- [Detailed
|
|
54
|
+
- [Detailed Documentation](https://mindfusion.dev/docs/javascript/scheduling/Introduction_18.htm)
|
|
42
55
|
- [Getting started guide](https://www.mindfusion.dev/docs/javascript/scheduling/Your_First_Schedule.htm) and [tutorials](https://www.mindfusion.dev/docs/javascript/scheduling/Tutorials_12.htm)
|
|
43
56
|
|
|
44
57
|
|
|
@@ -62,5 +75,3 @@ Learn more about the JavaScript Scheduler [from the official product page.](http
|
|
|
62
75
|
### Licensing
|
|
63
76
|
|
|
64
77
|
The end-user license agreement for JS Scheduler is [here.](https://mindfusion.dev/eula.html)
|
|
65
|
-
|
|
66
|
-
|