@formio/js 5.1.0-dev.6137.1f04cf3 → 5.1.0-dev.6137.25c880e
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 +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +1 -1
- 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/utils/index.d.ts +3 -0
- package/lib/cjs/utils/index.js +5 -1
- package/lib/mjs/utils/index.d.ts +3 -0
- package/lib/mjs/utils/index.js +5 -1
- package/package.json +1 -1
package/lib/cjs/utils/index.d.ts
CHANGED
@@ -7,6 +7,8 @@ declare const FormioUtils: {
|
|
7
7
|
ConditionOperators: {
|
8
8
|
[x: string]: typeof import("./conditionOperators/IsEqualTo").default | typeof import("./conditionOperators/DateGreaterThan").default;
|
9
9
|
};
|
10
|
+
_: any;
|
11
|
+
moment: typeof moment;
|
10
12
|
flattenComponents: typeof import("@formio/core/lib/utils/formUtil").flattenComponents;
|
11
13
|
guid: typeof import("@formio/core/lib/utils/formUtil").guid;
|
12
14
|
uniqueName: typeof import("@formio/core/lib/utils/formUtil").uniqueName;
|
@@ -163,4 +165,5 @@ declare const FormioUtils: {
|
|
163
165
|
};
|
164
166
|
import { Evaluator } from './Evaluator';
|
165
167
|
import { registerEvaluator } from './Evaluator';
|
168
|
+
import moment from 'moment';
|
166
169
|
export { FormioUtils as Utils, Evaluator, registerEvaluator };
|
package/lib/cjs/utils/index.js
CHANGED
@@ -36,9 +36,13 @@ const Evaluator_1 = require("./Evaluator");
|
|
36
36
|
Object.defineProperty(exports, "Evaluator", { enumerable: true, get: function () { return Evaluator_1.Evaluator; } });
|
37
37
|
Object.defineProperty(exports, "registerEvaluator", { enumerable: true, get: function () { return Evaluator_1.registerEvaluator; } });
|
38
38
|
const conditionOperators_1 = __importDefault(require("./conditionOperators"));
|
39
|
+
const lodash_1 = __importDefault(require("lodash"));
|
40
|
+
const moment_1 = __importDefault(require("moment"));
|
39
41
|
const FormioUtils = Object.assign(Object.assign(Object.assign({}, utils), formUtils), { Evaluator: Evaluator_1.Evaluator,
|
40
42
|
interpolate: Evaluator_1.interpolate,
|
41
|
-
ConditionOperators: conditionOperators_1.default
|
43
|
+
ConditionOperators: conditionOperators_1.default,
|
44
|
+
_: lodash_1.default,
|
45
|
+
moment: moment_1.default });
|
42
46
|
exports.Utils = FormioUtils;
|
43
47
|
if (typeof global === 'object') {
|
44
48
|
global.FormioUtils = FormioUtils;
|
package/lib/mjs/utils/index.d.ts
CHANGED
@@ -7,6 +7,8 @@ declare const FormioUtils: {
|
|
7
7
|
ConditionOperators: {
|
8
8
|
[x: string]: typeof import("./conditionOperators/IsEqualTo").default | typeof import("./conditionOperators/DateGreaterThan").default;
|
9
9
|
};
|
10
|
+
_: any;
|
11
|
+
moment: typeof moment;
|
10
12
|
flattenComponents: typeof import("@formio/core/lib/utils/formUtil").flattenComponents;
|
11
13
|
guid: typeof import("@formio/core/lib/utils/formUtil").guid;
|
12
14
|
uniqueName: typeof import("@formio/core/lib/utils/formUtil").uniqueName;
|
@@ -163,4 +165,5 @@ declare const FormioUtils: {
|
|
163
165
|
};
|
164
166
|
import { Evaluator } from './Evaluator';
|
165
167
|
import { registerEvaluator } from './Evaluator';
|
168
|
+
import moment from 'moment';
|
166
169
|
export { FormioUtils as Utils, Evaluator, registerEvaluator };
|
package/lib/mjs/utils/index.js
CHANGED
@@ -2,12 +2,16 @@ import * as utils from './utils';
|
|
2
2
|
import * as formUtils from './formUtils';
|
3
3
|
import { Evaluator, registerEvaluator, interpolate } from './Evaluator';
|
4
4
|
import ConditionOperators from './conditionOperators';
|
5
|
+
import _ from 'lodash';
|
6
|
+
import moment from 'moment';
|
5
7
|
const FormioUtils = {
|
6
8
|
...utils,
|
7
9
|
...formUtils,
|
8
10
|
Evaluator,
|
9
11
|
interpolate,
|
10
|
-
ConditionOperators
|
12
|
+
ConditionOperators,
|
13
|
+
_,
|
14
|
+
moment
|
11
15
|
};
|
12
16
|
if (typeof global === 'object') {
|
13
17
|
global.FormioUtils = FormioUtils;
|