@formio/js 5.0.0-rc.8 → 5.0.0-rc.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
  MIT License: http://getify.mit-license.org
6
6
  */
7
7
 
8
- /*! formiojs v5.0.0-rc.8 | https://unpkg.com/formiojs@5.0.0-rc.8/LICENSE.txt */
8
+ /*! formiojs v5.0.0-rc.9 | https://unpkg.com/formiojs@5.0.0-rc.9/LICENSE.txt */
9
9
 
10
10
  /**
11
11
  * @license
@@ -17,7 +17,7 @@
17
17
  MIT License: http://getify.mit-license.org
18
18
  */
19
19
 
20
- /*! formiojs v5.0.0-rc.8 | https://unpkg.com/formiojs@5.0.0-rc.8/LICENSE.txt */
20
+ /*! formiojs v5.0.0-rc.9 | https://unpkg.com/formiojs@5.0.0-rc.9/LICENSE.txt */
21
21
 
22
22
  /**
23
23
  * @license
@@ -1,8 +1,117 @@
1
1
  export default class Rules {
2
- static rules: typeof rules;
2
+ static rules: {
3
+ custom: {
4
+ new (component: any, settings: any, config: any): import("./rules/Custom");
5
+ };
6
+ date: {
7
+ new (component: any, settings: any, config: any): import("./rules/Date");
8
+ };
9
+ day: {
10
+ new (component: any, settings: any, config: any): import("./rules/Day");
11
+ };
12
+ email: {
13
+ new (component: any, settings: any, config: any): import("./rules/Email");
14
+ };
15
+ json: {
16
+ new (component: any, settings: any, config: any): import("./rules/JSON");
17
+ };
18
+ mask: typeof import("./rules/Mask");
19
+ max: {
20
+ new (component: any, settings: any, config: any): import("./rules/Max");
21
+ };
22
+ maxDate: typeof import("./rules/MaxDate");
23
+ maxLength: {
24
+ new (component: any, settings: any, config: any): import("./rules/MaxLength");
25
+ };
26
+ maxWords: {
27
+ new (component: any, settings: any, config: any): import("./rules/MaxWords");
28
+ };
29
+ min: {
30
+ new (component: any, settings: any, config: any): import("./rules/Min");
31
+ };
32
+ minDate: typeof import("./rules/MinDate");
33
+ minLength: {
34
+ new (component: any, settings: any, config: any): import("./rules/MinLength");
35
+ };
36
+ minWords: {
37
+ new (component: any, settings: any, config: any): import("./rules/MinWords");
38
+ };
39
+ pattern: {
40
+ new (component: any, settings: any, config: any): import("./rules/Pattern");
41
+ };
42
+ required: {
43
+ new (component: any, settings: any, config: any): import("./rules/Required");
44
+ };
45
+ select: typeof import("./rules/Select");
46
+ unique: typeof import("./rules/Unique");
47
+ url: {
48
+ new (component: any, settings: any, config: any): import("./rules/Url");
49
+ };
50
+ minYear: {
51
+ new (component: any, settings: any, config: any): import("./rules/MinYear");
52
+ };
53
+ maxYear: {
54
+ new (component: any, settings: any, config: any): import("./rules/MaxYear");
55
+ };
56
+ time: typeof import("./rules/Time");
57
+ };
3
58
  static addRule(name: any, rule: any): void;
4
59
  static addRules(rules: any): void;
5
60
  static getRule(name: any): any;
6
- static getRules(): typeof rules;
61
+ static getRules(): {
62
+ custom: {
63
+ new (component: any, settings: any, config: any): import("./rules/Custom");
64
+ };
65
+ date: {
66
+ new (component: any, settings: any, config: any): import("./rules/Date");
67
+ };
68
+ day: {
69
+ new (component: any, settings: any, config: any): import("./rules/Day");
70
+ };
71
+ email: {
72
+ new (component: any, settings: any, config: any): import("./rules/Email");
73
+ };
74
+ json: {
75
+ new (component: any, settings: any, config: any): import("./rules/JSON");
76
+ };
77
+ mask: typeof import("./rules/Mask");
78
+ max: {
79
+ new (component: any, settings: any, config: any): import("./rules/Max");
80
+ };
81
+ maxDate: typeof import("./rules/MaxDate");
82
+ maxLength: {
83
+ new (component: any, settings: any, config: any): import("./rules/MaxLength");
84
+ };
85
+ maxWords: {
86
+ new (component: any, settings: any, config: any): import("./rules/MaxWords");
87
+ };
88
+ min: {
89
+ new (component: any, settings: any, config: any): import("./rules/Min");
90
+ };
91
+ minDate: typeof import("./rules/MinDate");
92
+ minLength: {
93
+ new (component: any, settings: any, config: any): import("./rules/MinLength");
94
+ };
95
+ minWords: {
96
+ new (component: any, settings: any, config: any): import("./rules/MinWords");
97
+ };
98
+ pattern: {
99
+ new (component: any, settings: any, config: any): import("./rules/Pattern");
100
+ };
101
+ required: {
102
+ new (component: any, settings: any, config: any): import("./rules/Required");
103
+ };
104
+ select: typeof import("./rules/Select");
105
+ unique: typeof import("./rules/Unique");
106
+ url: {
107
+ new (component: any, settings: any, config: any): import("./rules/Url");
108
+ };
109
+ minYear: {
110
+ new (component: any, settings: any, config: any): import("./rules/MinYear");
111
+ };
112
+ maxYear: {
113
+ new (component: any, settings: any, config: any): import("./rules/MaxYear");
114
+ };
115
+ time: typeof import("./rules/Time");
116
+ };
7
117
  }
8
- import rules from './rules/index';
@@ -1,3 +1,28 @@
1
+ declare namespace _default {
2
+ export { custom };
3
+ export { date };
4
+ export { day };
5
+ export { email };
6
+ export { json };
7
+ export { mask };
8
+ export { max };
9
+ export { maxDate };
10
+ export { maxLength };
11
+ export { maxWords };
12
+ export { min };
13
+ export { minDate };
14
+ export { minLength };
15
+ export { minWords };
16
+ export { pattern };
17
+ export { required };
18
+ export { select };
19
+ export { unique };
20
+ export { url };
21
+ export { minYear };
22
+ export { maxYear };
23
+ export { time };
24
+ }
25
+ export default _default;
1
26
  import custom = require("./Custom");
2
27
  import date = require("./Date");
3
28
  import day = require("./Day");
@@ -20,4 +45,3 @@ import url = require("./Url");
20
45
  import minYear = require("./MinYear");
21
46
  import maxYear = require("./MaxYear");
22
47
  import time = require("./Time");
23
- export { custom, date, day, email, json, mask, max, maxDate, maxLength, maxWords, min, minDate, minLength, minWords, pattern, required, select, unique, url, minYear, maxYear, time };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  const custom = require('./Custom');
3
4
  const date = require('./Date');
4
5
  const day = require('./Day');
@@ -21,7 +22,7 @@ const url = require('./Url');
21
22
  const minYear = require('./MinYear');
22
23
  const maxYear = require('./MaxYear');
23
24
  const time = require('./Time');
24
- module.exports = {
25
+ exports.default = {
25
26
  custom,
26
27
  date,
27
28
  day,
@@ -1,8 +1,117 @@
1
1
  export default class Rules {
2
- static rules: typeof rules;
2
+ static rules: {
3
+ custom: {
4
+ new (component: any, settings: any, config: any): import("./rules/Custom");
5
+ };
6
+ date: {
7
+ new (component: any, settings: any, config: any): import("./rules/Date");
8
+ };
9
+ day: {
10
+ new (component: any, settings: any, config: any): import("./rules/Day");
11
+ };
12
+ email: {
13
+ new (component: any, settings: any, config: any): import("./rules/Email");
14
+ };
15
+ json: {
16
+ new (component: any, settings: any, config: any): import("./rules/JSON");
17
+ };
18
+ mask: typeof import("./rules/Mask");
19
+ max: {
20
+ new (component: any, settings: any, config: any): import("./rules/Max");
21
+ };
22
+ maxDate: typeof import("./rules/MaxDate");
23
+ maxLength: {
24
+ new (component: any, settings: any, config: any): import("./rules/MaxLength");
25
+ };
26
+ maxWords: {
27
+ new (component: any, settings: any, config: any): import("./rules/MaxWords");
28
+ };
29
+ min: {
30
+ new (component: any, settings: any, config: any): import("./rules/Min");
31
+ };
32
+ minDate: typeof import("./rules/MinDate");
33
+ minLength: {
34
+ new (component: any, settings: any, config: any): import("./rules/MinLength");
35
+ };
36
+ minWords: {
37
+ new (component: any, settings: any, config: any): import("./rules/MinWords");
38
+ };
39
+ pattern: {
40
+ new (component: any, settings: any, config: any): import("./rules/Pattern");
41
+ };
42
+ required: {
43
+ new (component: any, settings: any, config: any): import("./rules/Required");
44
+ };
45
+ select: typeof import("./rules/Select");
46
+ unique: typeof import("./rules/Unique");
47
+ url: {
48
+ new (component: any, settings: any, config: any): import("./rules/Url");
49
+ };
50
+ minYear: {
51
+ new (component: any, settings: any, config: any): import("./rules/MinYear");
52
+ };
53
+ maxYear: {
54
+ new (component: any, settings: any, config: any): import("./rules/MaxYear");
55
+ };
56
+ time: typeof import("./rules/Time");
57
+ };
3
58
  static addRule(name: any, rule: any): void;
4
59
  static addRules(rules: any): void;
5
60
  static getRule(name: any): any;
6
- static getRules(): typeof rules;
61
+ static getRules(): {
62
+ custom: {
63
+ new (component: any, settings: any, config: any): import("./rules/Custom");
64
+ };
65
+ date: {
66
+ new (component: any, settings: any, config: any): import("./rules/Date");
67
+ };
68
+ day: {
69
+ new (component: any, settings: any, config: any): import("./rules/Day");
70
+ };
71
+ email: {
72
+ new (component: any, settings: any, config: any): import("./rules/Email");
73
+ };
74
+ json: {
75
+ new (component: any, settings: any, config: any): import("./rules/JSON");
76
+ };
77
+ mask: typeof import("./rules/Mask");
78
+ max: {
79
+ new (component: any, settings: any, config: any): import("./rules/Max");
80
+ };
81
+ maxDate: typeof import("./rules/MaxDate");
82
+ maxLength: {
83
+ new (component: any, settings: any, config: any): import("./rules/MaxLength");
84
+ };
85
+ maxWords: {
86
+ new (component: any, settings: any, config: any): import("./rules/MaxWords");
87
+ };
88
+ min: {
89
+ new (component: any, settings: any, config: any): import("./rules/Min");
90
+ };
91
+ minDate: typeof import("./rules/MinDate");
92
+ minLength: {
93
+ new (component: any, settings: any, config: any): import("./rules/MinLength");
94
+ };
95
+ minWords: {
96
+ new (component: any, settings: any, config: any): import("./rules/MinWords");
97
+ };
98
+ pattern: {
99
+ new (component: any, settings: any, config: any): import("./rules/Pattern");
100
+ };
101
+ required: {
102
+ new (component: any, settings: any, config: any): import("./rules/Required");
103
+ };
104
+ select: typeof import("./rules/Select");
105
+ unique: typeof import("./rules/Unique");
106
+ url: {
107
+ new (component: any, settings: any, config: any): import("./rules/Url");
108
+ };
109
+ minYear: {
110
+ new (component: any, settings: any, config: any): import("./rules/MinYear");
111
+ };
112
+ maxYear: {
113
+ new (component: any, settings: any, config: any): import("./rules/MaxYear");
114
+ };
115
+ time: typeof import("./rules/Time");
116
+ };
7
117
  }
8
- import rules from './rules/index';
@@ -1,3 +1,28 @@
1
+ declare namespace _default {
2
+ export { custom };
3
+ export { date };
4
+ export { day };
5
+ export { email };
6
+ export { json };
7
+ export { mask };
8
+ export { max };
9
+ export { maxDate };
10
+ export { maxLength };
11
+ export { maxWords };
12
+ export { min };
13
+ export { minDate };
14
+ export { minLength };
15
+ export { minWords };
16
+ export { pattern };
17
+ export { required };
18
+ export { select };
19
+ export { unique };
20
+ export { url };
21
+ export { minYear };
22
+ export { maxYear };
23
+ export { time };
24
+ }
25
+ export default _default;
1
26
  import custom = require("./Custom");
2
27
  import date = require("./Date");
3
28
  import day = require("./Day");
@@ -20,4 +45,3 @@ import url = require("./Url");
20
45
  import minYear = require("./MinYear");
21
46
  import maxYear = require("./MaxYear");
22
47
  import time = require("./Time");
23
- export { custom, date, day, email, json, mask, max, maxDate, maxLength, maxWords, min, minDate, minLength, minWords, pattern, required, select, unique, url, minYear, maxYear, time };
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const custom = require('./Custom');
3
2
  const date = require('./Date');
4
3
  const day = require('./Day');
@@ -21,7 +20,7 @@ const url = require('./Url');
21
20
  const minYear = require('./MinYear');
22
21
  const maxYear = require('./MaxYear');
23
22
  const time = require('./Time');
24
- module.exports = {
23
+ export default {
25
24
  custom,
26
25
  date,
27
26
  day,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.8",
3
+ "version": "5.0.0-rc.9",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "homepage": "https://github.com/formio/formio.js#readme",
75
75
  "dependencies": {
76
- "@formio/bootstrap": "^3.0.0-rc.5",
76
+ "@formio/bootstrap": "^3.0.0-rc.6",
77
77
  "@formio/choices.js": "^10.2.0",
78
78
  "@formio/core": "1.3.0-rc.14",
79
79
  "@formio/text-mask-addons": "^3.8.0-formio.2",