@formio/js 5.0.0-rc.10 → 5.0.0-rc.12
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.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +24 -24
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +121 -25
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/WebformBuilder.js +4 -8
- package/lib/cjs/validator/rules/Custom.js +0 -1
- package/lib/cjs/validator/rules/Date.js +0 -1
- package/lib/cjs/validator/rules/Day.js +0 -1
- package/lib/cjs/validator/rules/Email.js +0 -1
- package/lib/cjs/validator/rules/JSON.js +0 -1
- package/lib/cjs/validator/rules/Mask.js +0 -1
- package/lib/cjs/validator/rules/Max.js +0 -1
- package/lib/cjs/validator/rules/MaxDate.js +0 -1
- package/lib/cjs/validator/rules/MaxLength.js +0 -1
- package/lib/cjs/validator/rules/MaxWords.js +0 -1
- package/lib/cjs/validator/rules/MaxYear.js +0 -1
- package/lib/cjs/validator/rules/Min.js +0 -1
- package/lib/cjs/validator/rules/MinDate.js +0 -1
- package/lib/cjs/validator/rules/MinLength.js +0 -1
- package/lib/cjs/validator/rules/MinWords.js +0 -1
- package/lib/cjs/validator/rules/MinYear.js +0 -1
- package/lib/cjs/validator/rules/Pattern.js +0 -1
- package/lib/cjs/validator/rules/Required.js +0 -1
- package/lib/cjs/validator/rules/Rule.js +0 -1
- package/lib/cjs/validator/rules/Select.js +0 -1
- package/lib/cjs/validator/rules/Time.js +0 -1
- package/lib/cjs/validator/rules/Unique.js +0 -1
- package/lib/cjs/validator/rules/Url.js +0 -1
- package/lib/mjs/WebformBuilder.js +2 -6
- package/lib/mjs/validator/rules/Custom.js +0 -1
- package/lib/mjs/validator/rules/Date.js +0 -1
- package/lib/mjs/validator/rules/Day.js +0 -1
- package/lib/mjs/validator/rules/Email.js +0 -1
- package/lib/mjs/validator/rules/JSON.js +0 -1
- package/lib/mjs/validator/rules/Mask.js +0 -1
- package/lib/mjs/validator/rules/Max.js +0 -1
- package/lib/mjs/validator/rules/MaxDate.js +0 -1
- package/lib/mjs/validator/rules/MaxLength.js +0 -1
- package/lib/mjs/validator/rules/MaxWords.js +0 -1
- package/lib/mjs/validator/rules/MaxYear.js +0 -1
- package/lib/mjs/validator/rules/Min.js +0 -1
- package/lib/mjs/validator/rules/MinDate.js +0 -1
- package/lib/mjs/validator/rules/MinLength.js +0 -1
- package/lib/mjs/validator/rules/MinWords.js +0 -1
- package/lib/mjs/validator/rules/MinYear.js +0 -1
- package/lib/mjs/validator/rules/Pattern.js +0 -1
- package/lib/mjs/validator/rules/Required.js +0 -1
- package/lib/mjs/validator/rules/Rule.js +0 -1
- package/lib/mjs/validator/rules/Select.js +0 -1
- package/lib/mjs/validator/rules/Time.js +0 -1
- package/lib/mjs/validator/rules/Unique.js +0 -1
- package/lib/mjs/validator/rules/Url.js +0 -1
- package/package.json +1 -1
@@ -15,12 +15,8 @@ const builder_1 = __importDefault(require("./utils/builder"));
|
|
15
15
|
const lodash_1 = __importDefault(require("lodash"));
|
16
16
|
const dom_autoscroller_1 = __importDefault(require("dom-autoscroller"));
|
17
17
|
const Templates_1 = __importDefault(require("./templates/Templates"));
|
18
|
-
require(
|
19
|
-
|
20
|
-
if (typeof window !== 'undefined') {
|
21
|
-
// Import from "dist" because it would require and "global" would not be defined in Angular apps.
|
22
|
-
dragula = require('dragula/dist/dragula');
|
23
|
-
}
|
18
|
+
require("./components/builder");
|
19
|
+
const dragula_1 = __importDefault(require("dragula"));
|
24
20
|
class WebformBuilder extends Component_1.default {
|
25
21
|
// eslint-disable-next-line max-statements
|
26
22
|
constructor() {
|
@@ -662,10 +658,10 @@ class WebformBuilder extends Component_1.default {
|
|
662
658
|
const containersArray = Array.prototype.slice.call(this.refs['sidebar-container']).filter(item => {
|
663
659
|
return item.id !== 'group-container-resource';
|
664
660
|
});
|
665
|
-
if (!
|
661
|
+
if (!dragula_1.default) {
|
666
662
|
return;
|
667
663
|
}
|
668
|
-
this.dragula =
|
664
|
+
this.dragula = (0, dragula_1.default)(containersArray, {
|
669
665
|
moves(el) {
|
670
666
|
let moves = true;
|
671
667
|
const list = Array.from(el.classList).filter(item => item.indexOf('formio-component-') === 0);
|
@@ -10,12 +10,8 @@ import BuilderUtils from './utils/builder';
|
|
10
10
|
import _ from 'lodash';
|
11
11
|
import autoScroll from 'dom-autoscroller';
|
12
12
|
import Templates from './templates/Templates';
|
13
|
-
|
14
|
-
|
15
|
-
if (typeof window !== 'undefined') {
|
16
|
-
// Import from "dist" because it would require and "global" would not be defined in Angular apps.
|
17
|
-
dragula = require('dragula/dist/dragula');
|
18
|
-
}
|
13
|
+
import './components/builder';
|
14
|
+
import dragula from 'dragula';
|
19
15
|
export default class WebformBuilder extends Component {
|
20
16
|
// eslint-disable-next-line max-statements
|
21
17
|
constructor() {
|