fit-ui 3.3.1 → 3.3.2

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.
@@ -53,3 +53,10 @@ to the jQuery UI build is also necessary.
53
53
  a complete list of all locales which maps to their corresponding
54
54
  DateFormat strings - this list should be updated if localization
55
55
  files are updated.
56
+
57
+ 9) On November 10th 2025 an addition was made to the jQuery UI DatePicker which allows us to suppress automatic closing
58
+ of the calendar widget when a date is selected. Find the _selectDate function and locate the this._hideDatepicker() call.
59
+ This call is made conditional using a new callback named onBeforeAutoClose. The calendar is not closed if the callback returns false:
60
+ var onBeforeAutoClose = this._get(inst, "onBeforeAutoClose");
61
+ var hideCalendar = !onBeforeAutoClose || onBeforeAutoClose() !== false ? true : false;
62
+ hideCalendar && this._hideDatepicker();
@@ -1344,7 +1344,11 @@ $.extend(Datepicker.prototype, {
1344
1344
  if (inst.inline){
1345
1345
  this._updateDatepicker(inst);
1346
1346
  } else {
1347
- this._hideDatepicker();
1347
+ // Fit.UI specific callback - allow calendar to remain open when selecting a date in the calendar widget
1348
+ var onBeforeAutoClose = this._get(inst, "onBeforeAutoClose");
1349
+ var hideCalendar = !onBeforeAutoClose || onBeforeAutoClose() !== false ? true : false;
1350
+
1351
+ hideCalendar && this._hideDatepicker();
1348
1352
  this._lastInput = inst.input[0];
1349
1353
  if (typeof(inst.input[0]) !== "object") {
1350
1354
  inst.input.focus(); // restore focus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fit-ui",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "title": "Fit.UI",
5
5
  "description": "Object Oriented framework for building rich User Interfaces",
6
6
  "main": "dist/Fit.UI.js",