@uportal/form-builder 1.3.1 → 2.0.0
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/README.md +10 -0
- package/dist/form-builder.js +699 -0
- package/dist/form-builder.js.map +1 -0
- package/dist/form-builder.min.js +317 -0
- package/dist/form-builder.min.js.map +1 -0
- package/package.json +35 -53
- package/src/form-builder.js +673 -0
- package/CHANGELOG.md +0 -219
- package/build/asset-manifest.json +0 -7
- package/build/favicon.ico +0 -0
- package/build/index.html +0 -1
- package/build/manifest.json +0 -15
- package/build/precache-manifest.bc02b68aae246724a7d787bc3e33c53d.js +0 -10
- package/build/sample/communication-preferences/form.json +0 -0
- package/build/service-worker.js +0 -34
- package/build/static/js/form-builder.js +0 -2
- package/build/static/js/form-builder.js.map +0 -1
- package/src/App.js +0 -301
- package/src/App.test.js +0 -9
- package/src/setupProxy.js +0 -8
package/CHANGELOG.md
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
|
-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased][]
|
|
9
|
-
|
|
10
|
-
## [1.3.1][] - 2019-06-20
|
|
11
|
-
|
|
12
|
-
### Fix
|
|
13
|
-
|
|
14
|
-
- Ensure IE and Edge are included in babel `browserslist` (#67)
|
|
15
|
-
|
|
16
|
-
### Chore
|
|
17
|
-
|
|
18
|
-
- update dependencies (#62)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## [1.3.0][] - 2019-05-21
|
|
22
|
-
|
|
23
|
-
### Feature
|
|
24
|
-
|
|
25
|
-
* add `styles` option for custom form styling
|
|
26
|
-
|
|
27
|
-
### Chore
|
|
28
|
-
|
|
29
|
-
* Update dependencies (#52, #61)
|
|
30
|
-
|
|
31
|
-
## [1.2.1][] - 2018-10-29
|
|
32
|
-
|
|
33
|
-
### Fix
|
|
34
|
-
|
|
35
|
-
- Include random number as query param to prevent Safari from caching unexpectedly (#60).
|
|
36
|
-
|
|
37
|
-
## [1.2.0][] - 2018-10-23
|
|
38
|
-
|
|
39
|
-
### Feature
|
|
40
|
-
|
|
41
|
-
- Support custom validation messages (#58).
|
|
42
|
-
|
|
43
|
-
```js
|
|
44
|
-
{
|
|
45
|
-
"example": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"pattern": "^[A-Z]{3}$",
|
|
48
|
-
"messages": {
|
|
49
|
-
"pattern": "Must be three upper case letters"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## [1.1.2][] - 2018-10-10
|
|
56
|
-
|
|
57
|
-
### Fix
|
|
58
|
-
|
|
59
|
-
- Add `safeRenderCompletion` to support rendering on Firefox (#56).
|
|
60
|
-
- Set icon size directly on font awesome icon (#57).
|
|
61
|
-
|
|
62
|
-
## [1.1.1][] - 2018-10-10
|
|
63
|
-
|
|
64
|
-
### Fix
|
|
65
|
-
|
|
66
|
-
- Remove embedded polyfills the can conflict with other polyfills (#55).
|
|
67
|
-
|
|
68
|
-
## [1.1.0][] - 2018-10-09
|
|
69
|
-
|
|
70
|
-
### Feature
|
|
71
|
-
|
|
72
|
-
- Support web component spec version 1 (#50).
|
|
73
|
-
- Don't show submit button when no input is requested (#51).
|
|
74
|
-
|
|
75
|
-
## [1.0.3][] - 2018-09-21
|
|
76
|
-
|
|
77
|
-
### Fix
|
|
78
|
-
|
|
79
|
-
- Form builder iterator now loops through data correctly (#49)
|
|
80
|
-
|
|
81
|
-
## [1.0.2][] - 2018-09-20
|
|
82
|
-
|
|
83
|
-
### Fix
|
|
84
|
-
|
|
85
|
-
- Correctly pass version number into the JSON Schema Form builder
|
|
86
|
-
|
|
87
|
-
## [1.0.1][] - 2018-09-11
|
|
88
|
-
|
|
89
|
-
### Fix
|
|
90
|
-
|
|
91
|
-
- allow form builder to be run in Internet Explorer 11 (#44).
|
|
92
|
-
|
|
93
|
-
## [1.0.0][] - 2018-09-07
|
|
94
|
-
|
|
95
|
-
### Feature
|
|
96
|
-
|
|
97
|
-
- display success messages after form submission (#42)
|
|
98
|
-
|
|
99
|
-
## [0.2.5][] - 2018-09-07
|
|
100
|
-
|
|
101
|
-
### Fix
|
|
102
|
-
|
|
103
|
-
- Use state instead of prop for mutable context (#43).
|
|
104
|
-
|
|
105
|
-
## [0.2.4][] - 2018-08-07
|
|
106
|
-
|
|
107
|
-
### Fix
|
|
108
|
-
|
|
109
|
-
- 0.2.3 release lost files during upload, this is a re-release of 0.2.3 with all the expected files.
|
|
110
|
-
|
|
111
|
-
## [0.2.3][] - 2018-08-07
|
|
112
|
-
|
|
113
|
-
### Fix
|
|
114
|
-
|
|
115
|
-
- prevent unexpected page scrolls
|
|
116
|
-
|
|
117
|
-
## [0.2.2][] - 2018-08-06
|
|
118
|
-
|
|
119
|
-
### Fix
|
|
120
|
-
|
|
121
|
-
- Keep form values when validation fails (#37).
|
|
122
|
-
|
|
123
|
-
## [0.2.1][] - 2018-08-01
|
|
124
|
-
|
|
125
|
-
### Fix
|
|
126
|
-
|
|
127
|
-
- Hide validation errors when issues have been resolved (#36).
|
|
128
|
-
|
|
129
|
-
### Build
|
|
130
|
-
|
|
131
|
-
- Automatically generate web component during `npm publish` (#35).
|
|
132
|
-
|
|
133
|
-
### Docs
|
|
134
|
-
|
|
135
|
-
- NPM, Maven Central and Travis CI status badges added to _README.md_
|
|
136
|
-
|
|
137
|
-
## [0.2.0][] - 2018-07-30
|
|
138
|
-
|
|
139
|
-
### Feature
|
|
140
|
-
|
|
141
|
-
- Show validation messages sent back from server (#33).
|
|
142
|
-
|
|
143
|
-
### Fix
|
|
144
|
-
|
|
145
|
-
- Add web component polyfill for Firefox and IE (#34).
|
|
146
|
-
- Ensure `error` is defined before reading error messages (#34).
|
|
147
|
-
|
|
148
|
-
### Build
|
|
149
|
-
|
|
150
|
-
- Move font awesome react to dev dependency, it is not directly included but is built into the bundle (#31)
|
|
151
|
-
- Include build in release (#31)
|
|
152
|
-
|
|
153
|
-
### Chore
|
|
154
|
-
|
|
155
|
-
- Update font awesome and font awesome react (#31).
|
|
156
|
-
- Remove unused files (#31).
|
|
157
|
-
- Reactive elements updated to version 0.10.0 (#32).
|
|
158
|
-
|
|
159
|
-
## [0.1.2][] - 2018-07-17
|
|
160
|
-
|
|
161
|
-
### Chore
|
|
162
|
-
|
|
163
|
-
- Update font awesome and font awesome react (#31).
|
|
164
|
-
- Remove unused files (#31).
|
|
165
|
-
|
|
166
|
-
## [0.1.1][] - 2018-07-16
|
|
167
|
-
|
|
168
|
-
### Refactor
|
|
169
|
-
|
|
170
|
-
- Move `react-scripts` to `devDependencies` reducing dependencies included in production install (#30)
|
|
171
|
-
|
|
172
|
-
### Docs
|
|
173
|
-
|
|
174
|
-
- Add changelog (#27)
|
|
175
|
-
- Add license (#25)
|
|
176
|
-
- Add html flag to example in readme (#28)
|
|
177
|
-
|
|
178
|
-
### Chore
|
|
179
|
-
|
|
180
|
-
- Configure continuous integration (#22)
|
|
181
|
-
- Configure renovate dependency manager (#21)
|
|
182
|
-
|
|
183
|
-
## [0.1.0][] - 2018-07-10
|
|
184
|
-
|
|
185
|
-
### Added
|
|
186
|
-
|
|
187
|
-
- Add react app template
|
|
188
|
-
- Wrap as web component
|
|
189
|
-
- Leverage Open ID Connect (OIDC) for authorization
|
|
190
|
-
- Support loading templates
|
|
191
|
-
- Support loading previous answers
|
|
192
|
-
- Support form forwarding
|
|
193
|
-
|
|
194
|
-
### Docs
|
|
195
|
-
|
|
196
|
-
- Create README
|
|
197
|
-
- Add Committers
|
|
198
|
-
|
|
199
|
-
[unreleased]: https://github.com/uPortal-contrib/form-builder/compare/v1.3.1...HEAD
|
|
200
|
-
[1.3.1]: https://github.com/uPortal-contrib/form-builder/compare/v1.3.0...v1.3.1
|
|
201
|
-
[1.3.0]: https://github.com/uPortal-contrib/form-builder/compare/v1.2.1...v1.3.0
|
|
202
|
-
[1.2.1]: https://github.com/uPortal-contrib/form-builder/compare/v1.2.0...v1.2.1
|
|
203
|
-
[1.2.0]: https://github.com/uPortal-contrib/form-builder/compare/v1.1.2...v1.2.0
|
|
204
|
-
[1.1.2]: https://github.com/uPortal-contrib/form-builder/compare/v1.1.1...v1.1.2
|
|
205
|
-
[1.1.1]: https://github.com/uPortal-contrib/form-builder/compare/v1.1.0...v1.1.1
|
|
206
|
-
[1.1.0]: https://github.com/uPortal-contrib/form-builder/compare/v1.0.3...v1.1.0
|
|
207
|
-
[1.0.3]: https://github.com/uPortal-contrib/form-builder/compare/v1.0.2...v1.0.3
|
|
208
|
-
[1.0.2]: https://github.com/uPortal-contrib/form-builder/compare/v1.0.1...v1.0.2
|
|
209
|
-
[1.0.1]: https://github.com/uPortal-contrib/form-builder/compare/v1.0.0...v1.0.1
|
|
210
|
-
[1.0.0]: https://github.com/uPortal-contrib/form-builder/compare/v0.2.5...v1.0.0
|
|
211
|
-
[0.2.5]: https://github.com/uPortal-contrib/form-builder/compare/v0.2.4...v0.2.5
|
|
212
|
-
[0.2.4]: https://github.com/uPortal-contrib/form-builder/compare/v0.2.3...v0.2.4
|
|
213
|
-
[0.2.3]: https://github.com/uPortal-contrib/form-builder/compare/v0.2.2...v0.2.3
|
|
214
|
-
[0.2.2]: https://github.com/uPortal-contrib/form-builder/compare/v0.2.1...v0.2.2
|
|
215
|
-
[0.2.1]: https://github.com/uPortal-contrib/form-builder/compare/v0.2.0...v0.2.1
|
|
216
|
-
[0.2.0]: https://github.com/uPortal-contrib/form-builder/compare/v0.1.2...v0.2.0
|
|
217
|
-
[0.1.2]: https://github.com/uPortal-contrib/form-builder/compare/v0.1.1...v0.1.2
|
|
218
|
-
[0.1.1]: https://github.com/uPortal-contrib/form-builder/compare/v0.1.0...v0.1.1
|
|
219
|
-
[0.1.0]: https://github.com/uPortal-contrib/form-builder/compare/bc446238d1735b424bd2a004d9b737c380592b2e...v0.1.0
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main.js": "/uPortal-contrib/form-builder/static/js/form-builder.js",
|
|
3
|
-
"main.js.map": "/uPortal-contrib/form-builder/static/js/form-builder.js.map",
|
|
4
|
-
"index.html": "/uPortal-contrib/form-builder/index.html",
|
|
5
|
-
"precache-manifest.bc02b68aae246724a7d787bc3e33c53d.js": "/uPortal-contrib/form-builder/precache-manifest.bc02b68aae246724a7d787bc3e33c53d.js",
|
|
6
|
-
"service-worker.js": "/uPortal-contrib/form-builder/service-worker.js"
|
|
7
|
-
}
|
package/build/favicon.ico
DELETED
|
Binary file
|
package/build/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/uPortal-contrib/form-builder/manifest.json"><link rel="shortcut icon" href="/uPortal-contrib/form-builder/favicon.ico"><script src="https://unpkg.com/core-js-bundle@3.0.0-beta.16"></script><script src="https://unpkg.com/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"><style>body{margin:0;padding:0;font-family:sans-serif}#root{padding:20px}.checkbox-inline,.radio-inline{margin-right:1.5rem}input[type=checkbox],input[type=radio]{margin-right:.5rem}</style><title>Form Builder</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><form-builder fbms-base-url="http://localhost:8091" fbms-form-fname="communication-preferences" oidc-url="http://localhost:8080/uPortal/api/v5-1/userinfo"></form-builder></div><script src="/uPortal-contrib/form-builder/static/js/form-builder.js"></script></body></html>
|
package/build/manifest.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"start_url": "./index.html",
|
|
12
|
-
"display": "standalone",
|
|
13
|
-
"theme_color": "#000000",
|
|
14
|
-
"background_color": "#ffffff"
|
|
15
|
-
}
|
|
File without changes
|
package/build/service-worker.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Welcome to your Workbox-powered service worker!
|
|
3
|
-
*
|
|
4
|
-
* You'll need to register this file in your web app and you should
|
|
5
|
-
* disable HTTP caching for this file too.
|
|
6
|
-
* See https://goo.gl/nhQhGp
|
|
7
|
-
*
|
|
8
|
-
* The rest of the code is auto-generated. Please don't update this file
|
|
9
|
-
* directly; instead, make changes to your Workbox build configuration
|
|
10
|
-
* and re-run your build process.
|
|
11
|
-
* See https://goo.gl/2aRDsh
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
|
|
15
|
-
|
|
16
|
-
importScripts(
|
|
17
|
-
"/uPortal-contrib/form-builder/precache-manifest.bc02b68aae246724a7d787bc3e33c53d.js"
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
workbox.clientsClaim();
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
|
24
|
-
* requests for URLs in the manifest.
|
|
25
|
-
* See https://goo.gl/S9QRab
|
|
26
|
-
*/
|
|
27
|
-
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
|
28
|
-
workbox.precaching.suppressWarnings();
|
|
29
|
-
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
|
30
|
-
|
|
31
|
-
workbox.routing.registerNavigationRoute("/uPortal-contrib/form-builder/index.html", {
|
|
32
|
-
|
|
33
|
-
blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/],
|
|
34
|
-
});
|