@formio/js 5.0.0-dev.5820.db7ef4f → 5.0.0-dev.5822.ae2ec5b
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/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.form.js +3 -3
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +3 -3
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/lib/cjs/CDN.d.ts +0 -1
- package/lib/cjs/CDN.js +1 -2
- package/lib/cjs/components/day/Day.js +1 -3
- package/lib/cjs/widgets/CalendarWidget.js +3 -3
- package/lib/mjs/CDN.d.ts +0 -1
- package/lib/mjs/CDN.js +1 -2
- package/lib/mjs/components/day/Day.js +1 -3
- package/lib/mjs/widgets/CalendarWidget.js +3 -3
- package/package.json +1 -1
package/lib/cjs/CDN.d.ts
CHANGED
package/lib/cjs/CDN.js
CHANGED
|
@@ -18,8 +18,7 @@ class CDN {
|
|
|
18
18
|
'bootstrap-icons': '1.11.1',
|
|
19
19
|
'ckeditor': '19.0.0',
|
|
20
20
|
'dragula': '3.7.3',
|
|
21
|
-
'flatpickr': '4.6.
|
|
22
|
-
'flatpickr-formio': '4.6.13-formio.3',
|
|
21
|
+
'flatpickr': '4.6.13',
|
|
23
22
|
'font-awesome': '4.7.0',
|
|
24
23
|
'grid': 'latest',
|
|
25
24
|
'moment-timezone': 'latest',
|
|
@@ -420,9 +420,7 @@ class DayComponent extends Field_1.default {
|
|
|
420
420
|
DAY = null;
|
|
421
421
|
}
|
|
422
422
|
if (!this.showMonth) {
|
|
423
|
-
|
|
424
|
-
DAY = DAY === 0 ? 0 : DAY - 1;
|
|
425
|
-
}
|
|
423
|
+
DAY = DAY === 0 ? 0 : DAY - 1;
|
|
426
424
|
YEAR = YEAR - 1;
|
|
427
425
|
MONTH = null;
|
|
428
426
|
}
|
|
@@ -124,7 +124,7 @@ class CalendarWidget extends InputWidget_1.default {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
Formio_1.Formio.requireLibrary('flatpickr-css', 'flatpickr', [
|
|
127
|
-
{ type: 'styles', src: `${Formio_1.Formio.cdn['flatpickr
|
|
127
|
+
{ type: 'styles', src: `${Formio_1.Formio.cdn['flatpickr']}/flatpickr.min.css` }
|
|
128
128
|
], true);
|
|
129
129
|
if (this.component.shortcutButtons) {
|
|
130
130
|
this.component.shortcutButtons = this.component.shortcutButtons.filter((btn) => btn.label && btn.onClick);
|
|
@@ -142,7 +142,7 @@ class CalendarWidget extends InputWidget_1.default {
|
|
|
142
142
|
}
|
|
143
143
|
})
|
|
144
144
|
.then((ShortcutButtonsPlugin) => {
|
|
145
|
-
return Formio_1.Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio_1.Formio.cdn['flatpickr
|
|
145
|
+
return Formio_1.Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio_1.Formio.cdn['flatpickr']}/flatpickr.min.js`, true)
|
|
146
146
|
.then((Flatpickr) => {
|
|
147
147
|
var _a;
|
|
148
148
|
if (((_a = this.component.shortcutButtons) === null || _a === void 0 ? void 0 : _a.length) && ShortcutButtonsPlugin) {
|
|
@@ -152,7 +152,7 @@ class CalendarWidget extends InputWidget_1.default {
|
|
|
152
152
|
if (this._input) {
|
|
153
153
|
const { locale } = this.settings;
|
|
154
154
|
if (locale && locale.length >= 2 && locale !== 'en') {
|
|
155
|
-
return Formio_1.Formio.requireLibrary(`flatpickr-${locale}`, `flatpickr
|
|
155
|
+
return Formio_1.Formio.requireLibrary(`flatpickr-${locale}`, `flatpickr.l10ns.${locale}`, `${Formio_1.Formio.cdn['flatpickr']}/l10n/${locale}.js`, true).then(() => this.initFlatpickr(Flatpickr));
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
158
|
this.initFlatpickr(Flatpickr);
|
package/lib/mjs/CDN.d.ts
CHANGED
package/lib/mjs/CDN.js
CHANGED
|
@@ -17,8 +17,7 @@ class CDN {
|
|
|
17
17
|
'bootstrap-icons': '1.11.1',
|
|
18
18
|
'ckeditor': '19.0.0',
|
|
19
19
|
'dragula': '3.7.3',
|
|
20
|
-
'flatpickr': '4.6.
|
|
21
|
-
'flatpickr-formio': '4.6.13-formio.3',
|
|
20
|
+
'flatpickr': '4.6.13',
|
|
22
21
|
'font-awesome': '4.7.0',
|
|
23
22
|
'grid': 'latest',
|
|
24
23
|
'moment-timezone': 'latest',
|
|
@@ -118,7 +118,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
Formio.requireLibrary('flatpickr-css', 'flatpickr', [
|
|
121
|
-
{ type: 'styles', src: `${Formio.cdn['flatpickr
|
|
121
|
+
{ type: 'styles', src: `${Formio.cdn['flatpickr']}/flatpickr.min.css` }
|
|
122
122
|
], true);
|
|
123
123
|
if (this.component.shortcutButtons) {
|
|
124
124
|
this.component.shortcutButtons = this.component.shortcutButtons.filter((btn) => btn.label && btn.onClick);
|
|
@@ -135,7 +135,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
135
135
|
}
|
|
136
136
|
})
|
|
137
137
|
.then((ShortcutButtonsPlugin) => {
|
|
138
|
-
return Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio.cdn['flatpickr
|
|
138
|
+
return Formio.requireLibrary('flatpickr', 'flatpickr', `${Formio.cdn['flatpickr']}/flatpickr.min.js`, true)
|
|
139
139
|
.then((Flatpickr) => {
|
|
140
140
|
if (this.component.shortcutButtons?.length && ShortcutButtonsPlugin) {
|
|
141
141
|
this.initShortcutButtonsPlugin(ShortcutButtonsPlugin);
|
|
@@ -144,7 +144,7 @@ export default class CalendarWidget extends InputWidget {
|
|
|
144
144
|
if (this._input) {
|
|
145
145
|
const { locale } = this.settings;
|
|
146
146
|
if (locale && locale.length >= 2 && locale !== 'en') {
|
|
147
|
-
return Formio.requireLibrary(`flatpickr-${locale}`, `flatpickr
|
|
147
|
+
return Formio.requireLibrary(`flatpickr-${locale}`, `flatpickr.l10ns.${locale}`, `${Formio.cdn['flatpickr']}/l10n/${locale}.js`, true).then(() => this.initFlatpickr(Flatpickr));
|
|
148
148
|
}
|
|
149
149
|
else {
|
|
150
150
|
this.initFlatpickr(Flatpickr);
|