@formio/js 5.0.0-rc.15 → 5.0.0-rc.17
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 +3 -3
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +14 -90
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- 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 -4
- package/lib/cjs/templates/Templates.js +4 -0
- package/lib/mjs/WebformBuilder.js +1 -1
- package/lib/mjs/templates/Templates.js +4 -0
- package/package.json +2 -2
@@ -20,7 +20,7 @@ require("./components/builder");
|
|
20
20
|
if (typeof window !== 'undefined' && typeof window.global === 'undefined') {
|
21
21
|
window.global = window;
|
22
22
|
}
|
23
|
-
const
|
23
|
+
const dragula_min_js_1 = __importDefault(require("dragula/dist/dragula.min.js"));
|
24
24
|
class WebformBuilder extends Component_1.default {
|
25
25
|
// eslint-disable-next-line max-statements
|
26
26
|
constructor() {
|
@@ -50,7 +50,7 @@ class WebformBuilder extends Component_1.default {
|
|
50
50
|
}
|
51
51
|
};
|
52
52
|
this.setElement(element);
|
53
|
-
this.dragulaLib =
|
53
|
+
this.dragulaLib = dragula_min_js_1.default;
|
54
54
|
this.builderHeight = 0;
|
55
55
|
this.schemas = {};
|
56
56
|
this.repeatablePaths = [];
|
@@ -663,10 +663,10 @@ class WebformBuilder extends Component_1.default {
|
|
663
663
|
const containersArray = Array.prototype.slice.call(this.refs['sidebar-container']).filter(item => {
|
664
664
|
return item.id !== 'group-container-resource';
|
665
665
|
});
|
666
|
-
if (!
|
666
|
+
if (!dragula_min_js_1.default) {
|
667
667
|
return;
|
668
668
|
}
|
669
|
-
this.dragula = (0,
|
669
|
+
this.dragula = (0, dragula_min_js_1.default)(containersArray, {
|
670
670
|
moves(el) {
|
671
671
|
let moves = true;
|
672
672
|
const list = Array.from(el.classList).filter(item => item.indexOf('formio-component-') === 0);
|
@@ -4,8 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const lodash_1 = __importDefault(require("lodash"));
|
7
|
+
const index_1 = __importDefault(require("./index"));
|
7
8
|
class Templates {
|
8
9
|
static get templates() {
|
10
|
+
if (!Templates._templates) {
|
11
|
+
Templates._templates = index_1.default;
|
12
|
+
}
|
9
13
|
return Templates._templates;
|
10
14
|
}
|
11
15
|
static addTemplate(name, template) {
|
@@ -15,7 +15,7 @@ import './components/builder';
|
|
15
15
|
if (typeof window !== 'undefined' && typeof window.global === 'undefined') {
|
16
16
|
window.global = window;
|
17
17
|
}
|
18
|
-
import dragula from 'dragula';
|
18
|
+
import dragula from 'dragula/dist/dragula.min.js';
|
19
19
|
export default class WebformBuilder extends Component {
|
20
20
|
// eslint-disable-next-line max-statements
|
21
21
|
constructor() {
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import _ from 'lodash';
|
2
|
+
import templates from './index';
|
2
3
|
export default class Templates {
|
3
4
|
static get templates() {
|
5
|
+
if (!Templates._templates) {
|
6
|
+
Templates._templates = templates;
|
7
|
+
}
|
4
8
|
return Templates._templates;
|
5
9
|
}
|
6
10
|
static addTemplate(name, template) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@formio/js",
|
3
|
-
"version": "5.0.0-rc.
|
3
|
+
"version": "5.0.0-rc.17",
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
5
5
|
"main": "lib/cjs/index.js",
|
6
6
|
"module": "lib/mjs/index.js",
|
@@ -75,7 +75,7 @@
|
|
75
75
|
"dependencies": {
|
76
76
|
"@formio/bootstrap": "^3.0.0-rc.6",
|
77
77
|
"@formio/choices.js": "^10.2.0",
|
78
|
-
"@formio/core": "1.3.0-rc.
|
78
|
+
"@formio/core": "1.3.0-rc.15",
|
79
79
|
"@formio/text-mask-addons": "^3.8.0-formio.2",
|
80
80
|
"@formio/vanilla-text-mask": "^5.1.1-formio.1",
|
81
81
|
"autocompleter": "^8.0.3",
|