@formio/js 5.1.0-dev.6150.1c5377f → 5.1.0-dev.6152.95f2394
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.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.utils.js +1 -1
- package/dist/formio.utils.min.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +5 -10
- package/lib/cjs/components/textarea/TextArea.js +1 -6
- package/lib/cjs/utils/utils.js +0 -4
- package/lib/mjs/components/_classes/component/Component.js +5 -10
- package/lib/mjs/components/textarea/TextArea.js +1 -6
- package/lib/mjs/utils/utils.js +0 -4
- package/package.json +1 -1
@@ -2375,14 +2375,12 @@ class Component extends Element_1.default {
|
|
2375
2375
|
ckeditor: {
|
2376
2376
|
image: {
|
2377
2377
|
toolbar: [
|
2378
|
-
'toggleImageCaption',
|
2379
2378
|
'imageTextAlternative',
|
2380
2379
|
'|',
|
2381
|
-
'imageStyle:
|
2382
|
-
'imageStyle:
|
2383
|
-
'imageStyle:
|
2384
|
-
'
|
2385
|
-
'resizeImage'
|
2380
|
+
'imageStyle:full',
|
2381
|
+
'imageStyle:alignLeft',
|
2382
|
+
'imageStyle:alignCenter',
|
2383
|
+
'imageStyle:alignRight'
|
2386
2384
|
],
|
2387
2385
|
styles: [
|
2388
2386
|
'full',
|
@@ -2404,10 +2402,7 @@ class Component extends Element_1.default {
|
|
2404
2402
|
if (this.component.isUploadEnabled) {
|
2405
2403
|
settings.extraPlugins.push((0, uploadAdapter_1.getFormioUploadAdapterPlugin)(this.fileService, this));
|
2406
2404
|
}
|
2407
|
-
Formio_1.Formio.requireLibrary(
|
2408
|
-
{ type: 'styles', src: `${Formio_1.Formio.cdn.ckeditor}/ckeditor.css` }
|
2409
|
-
], true);
|
2410
|
-
return Formio_1.Formio.requireLibrary('ckeditor', isIEBrowser ? 'CKEDITOR' : 'ClassicEditor', lodash_1.default.get(this.options, 'editors.ckeditor.src', `${Formio_1.Formio.cdn.ckeditor}/ckeditor.umd.js`), true)
|
2405
|
+
return Formio_1.Formio.requireLibrary('ckeditor', isIEBrowser ? 'CKEDITOR' : 'ClassicEditor', lodash_1.default.get(this.options, 'editors.ckeditor.src', `${Formio_1.Formio.cdn.ckeditor}/ckeditor.js`), true)
|
2411
2406
|
.then(() => {
|
2412
2407
|
if (!element.parentNode) {
|
2413
2408
|
return Promise.reject();
|
@@ -193,12 +193,7 @@ class TextAreaComponent extends TextField_1.default {
|
|
193
193
|
const editorHeight = (numRows * 31) + 14;
|
194
194
|
editor.ui.view.editable.editableElement.style.height = `${(editorHeight)}px`;
|
195
195
|
}
|
196
|
-
|
197
|
-
editor.enableReadOnlyMode(this.id);
|
198
|
-
}
|
199
|
-
else {
|
200
|
-
editor.disableReadOnlyMode(this.id);
|
201
|
-
}
|
196
|
+
editor.isReadOnly = isReadOnly;
|
202
197
|
editor.data.set(value);
|
203
198
|
}
|
204
199
|
editorReady(editor);
|
package/lib/cjs/utils/utils.js
CHANGED
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = exports.observeOverload = exports.withSwitch = exports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToDayjs = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.dayjsDate = exports.shouldHandleTimezone = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.removeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getScriptPlugin = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = void 0;
|
7
7
|
exports.hasEncodedTimezone = exports.interpolateErrors = exports.getComponentSavedTypes = exports.componentValueTypes = exports.getFocusableElements = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.isChildOf = exports.getArrayFromComponentPath = exports.isInputComponent = exports.fastCloneDeep = exports.sanitize = void 0;
|
8
|
-
/* global jQuery */
|
9
8
|
const lodash_1 = __importDefault(require("lodash"));
|
10
9
|
const moment_timezone_1 = __importDefault(require("moment-timezone/moment-timezone"));
|
11
10
|
const jstimezonedetect_1 = __importDefault(require("jstimezonedetect"));
|
@@ -1057,9 +1056,6 @@ function bootstrapVersion(options) {
|
|
1057
1056
|
if (options.bootstrap) {
|
1058
1057
|
return options.bootstrap;
|
1059
1058
|
}
|
1060
|
-
if ((typeof jQuery === 'function') && (typeof jQuery().collapse === 'function')) {
|
1061
|
-
return parseInt(jQuery.fn.collapse.Constructor.VERSION.split('.')[0], 10);
|
1062
|
-
}
|
1063
1059
|
if (window.bootstrap && window.bootstrap.Collapse) {
|
1064
1060
|
return parseInt(window.bootstrap.Collapse.VERSION.split('.')[0], 10);
|
1065
1061
|
}
|
@@ -2364,14 +2364,12 @@ export default class Component extends Element {
|
|
2364
2364
|
ckeditor: {
|
2365
2365
|
image: {
|
2366
2366
|
toolbar: [
|
2367
|
-
'toggleImageCaption',
|
2368
2367
|
'imageTextAlternative',
|
2369
2368
|
'|',
|
2370
|
-
'imageStyle:
|
2371
|
-
'imageStyle:
|
2372
|
-
'imageStyle:
|
2373
|
-
'
|
2374
|
-
'resizeImage'
|
2369
|
+
'imageStyle:full',
|
2370
|
+
'imageStyle:alignLeft',
|
2371
|
+
'imageStyle:alignCenter',
|
2372
|
+
'imageStyle:alignRight'
|
2375
2373
|
],
|
2376
2374
|
styles: [
|
2377
2375
|
'full',
|
@@ -2393,10 +2391,7 @@ export default class Component extends Element {
|
|
2393
2391
|
if (this.component.isUploadEnabled) {
|
2394
2392
|
settings.extraPlugins.push(getFormioUploadAdapterPlugin(this.fileService, this));
|
2395
2393
|
}
|
2396
|
-
Formio.requireLibrary(
|
2397
|
-
{ type: 'styles', src: `${Formio.cdn.ckeditor}/ckeditor.css` }
|
2398
|
-
], true);
|
2399
|
-
return Formio.requireLibrary('ckeditor', isIEBrowser ? 'CKEDITOR' : 'ClassicEditor', _.get(this.options, 'editors.ckeditor.src', `${Formio.cdn.ckeditor}/ckeditor.umd.js`), true)
|
2394
|
+
return Formio.requireLibrary('ckeditor', isIEBrowser ? 'CKEDITOR' : 'ClassicEditor', _.get(this.options, 'editors.ckeditor.src', `${Formio.cdn.ckeditor}/ckeditor.js`), true)
|
2400
2395
|
.then(() => {
|
2401
2396
|
if (!element.parentNode) {
|
2402
2397
|
return Promise.reject();
|
@@ -188,12 +188,7 @@ export default class TextAreaComponent extends TextFieldComponent {
|
|
188
188
|
const editorHeight = (numRows * 31) + 14;
|
189
189
|
editor.ui.view.editable.editableElement.style.height = `${(editorHeight)}px`;
|
190
190
|
}
|
191
|
-
|
192
|
-
editor.enableReadOnlyMode(this.id);
|
193
|
-
}
|
194
|
-
else {
|
195
|
-
editor.disableReadOnlyMode(this.id);
|
196
|
-
}
|
191
|
+
editor.isReadOnly = isReadOnly;
|
197
192
|
editor.data.set(value);
|
198
193
|
}
|
199
194
|
editorReady(editor);
|
package/lib/mjs/utils/utils.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* global jQuery */
|
2
1
|
import _ from 'lodash';
|
3
2
|
import moment from 'moment-timezone/moment-timezone';
|
4
3
|
import jtz from 'jstimezonedetect';
|
@@ -1006,9 +1005,6 @@ export function bootstrapVersion(options) {
|
|
1006
1005
|
if (options.bootstrap) {
|
1007
1006
|
return options.bootstrap;
|
1008
1007
|
}
|
1009
|
-
if ((typeof jQuery === 'function') && (typeof jQuery().collapse === 'function')) {
|
1010
|
-
return parseInt(jQuery.fn.collapse.Constructor.VERSION.split('.')[0], 10);
|
1011
|
-
}
|
1012
1008
|
if (window.bootstrap && window.bootstrap.Collapse) {
|
1013
1009
|
return parseInt(window.bootstrap.Collapse.VERSION.split('.')[0], 10);
|
1014
1010
|
}
|