@formio/uswds 2.5.2-rc.1 → 2.6.0-dev.258.b5d0000
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 +5 -5
- package/dist/uswds.js +71 -71
- package/dist/uswds.min.js +1 -1
- package/lib/components/Select.js +7 -27
- package/lib/components/button/Button.d.ts +1 -1
- package/lib/components/button/Button.form.js +10 -23
- package/lib/components/button/Button.js +13 -33
- package/lib/components/checkbox/Checkbox.d.ts +1 -1
- package/lib/components/checkbox/Checkbox.form.js +18 -31
- package/lib/components/checkbox/Checkbox.js +9 -29
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +5 -5
- package/lib/components/radio/Radio.d.ts +1 -1
- package/lib/components/radio/Radio.form.js +18 -31
- package/lib/components/radio/Radio.js +4 -4
- package/lib/components/selectboxes/SelectBoxes.d.ts +1 -1
- package/lib/components/selectboxes/SelectBoxes.form.js +18 -31
- package/lib/components/selectboxes/SelectBoxes.js +6 -26
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/templates/index.js +1 -1
- package/lib/templates/uswds/address/index.js +1 -1
- package/lib/templates/uswds/alert/index.js +1 -1
- package/lib/templates/uswds/builder/index.js +1 -1
- package/lib/templates/uswds/builderComponent/index.js +1 -1
- package/lib/templates/uswds/builderComponents/index.js +1 -1
- package/lib/templates/uswds/builderEditForm/index.js +1 -1
- package/lib/templates/uswds/builderPlaceholder/index.js +1 -1
- package/lib/templates/uswds/builderSidebar/index.js +1 -1
- package/lib/templates/uswds/builderSidebarGroup/index.js +1 -1
- package/lib/templates/uswds/builderWizard/index.js +1 -1
- package/lib/templates/uswds/button/index.js +1 -1
- package/lib/templates/uswds/checkbox/index.js +2 -2
- package/lib/templates/uswds/columns/index.js +1 -1
- package/lib/templates/uswds/component/index.js +1 -1
- package/lib/templates/uswds/componentModal/index.js +1 -1
- package/lib/templates/uswds/components/index.js +1 -1
- package/lib/templates/uswds/container/index.js +1 -1
- package/lib/templates/uswds/datagrid/index.js +2 -2
- package/lib/templates/uswds/datatable/index.js +2 -2
- package/lib/templates/uswds/day/index.js +1 -1
- package/lib/templates/uswds/dialog/index.js +1 -1
- package/lib/templates/uswds/editgrid/index.js +2 -2
- package/lib/templates/uswds/errorsList/index.js +1 -1
- package/lib/templates/uswds/field/index.js +2 -2
- package/lib/templates/uswds/fieldset/index.js +1 -1
- package/lib/templates/uswds/file/form.ejs.js +157 -79
- package/lib/templates/uswds/file/index.js +1 -1
- package/lib/templates/uswds/html/index.js +1 -1
- package/lib/templates/uswds/icon/index.js +1 -1
- package/lib/templates/uswds/index.js +55 -55
- package/lib/templates/uswds/input/index.js +2 -2
- package/lib/templates/uswds/label/index.js +1 -1
- package/lib/templates/uswds/loader/index.js +1 -1
- package/lib/templates/uswds/loading/index.js +1 -1
- package/lib/templates/uswds/message/index.js +1 -1
- package/lib/templates/uswds/modalPreview/index.js +1 -1
- package/lib/templates/uswds/multiValueRow/index.js +1 -1
- package/lib/templates/uswds/multiValueTable/index.js +1 -1
- package/lib/templates/uswds/panel/index.js +1 -1
- package/lib/templates/uswds/pdf/index.js +1 -1
- package/lib/templates/uswds/pdfBuilder/index.js +1 -1
- package/lib/templates/uswds/pdfBuilderUpload/index.js +1 -1
- package/lib/templates/uswds/radio/index.js +2 -2
- package/lib/templates/uswds/resourceAdd/index.js +1 -1
- package/lib/templates/uswds/select/index.js +2 -2
- package/lib/templates/uswds/selectOption/index.js +2 -2
- package/lib/templates/uswds/size.js +2 -2
- package/lib/templates/uswds/survey/index.js +2 -2
- package/lib/templates/uswds/tab/index.js +2 -2
- package/lib/templates/uswds/table/index.js +1 -1
- package/lib/templates/uswds/warning/index.js +1 -1
- package/lib/templates/uswds/webform/index.js +2 -2
- package/lib/templates/uswds/well/index.js +1 -1
- package/lib/templates/uswds/wizard/index.js +2 -2
- package/lib/templates/uswds/wizardHeader/index.js +1 -1
- package/lib/templates/uswds/wizardNav/index.js +1 -1
- package/package.json +7 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const align_ejs_1 = require("./align.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, align: align_ejs_1.default };
|
|
@@ -12,43 +12,39 @@ __p += '<span tabindex="-1" class="usa-sr-only" id="invisible-' +
|
|
|
12
12
|
if (!ctx.self.imageUpload) { ;
|
|
13
13
|
__p += '\n <div class=\'filePattern\'>' +
|
|
14
14
|
((__t = ((!ctx.component.filePattern || ctx.component.filePattern === '*') ? 'Any file types are allowed' : ctx.t('Allowed file types: ') + ctx.component.filePattern)) == null ? '' : __t) +
|
|
15
|
-
'</div>\n <ul class="usa-list--unstyled">\n <li class="position-relative display-block padding-105 border-1px">\n <div class="grid-row">\n '
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} ;
|
|
19
|
-
__p += '\n <div class="tablet:grid-col-';
|
|
20
|
-
if (ctx.self.hasTypes) { ;
|
|
21
|
-
__p += '7';
|
|
22
|
-
} else { ;
|
|
23
|
-
__p += '9';
|
|
24
|
-
} ;
|
|
25
|
-
__p += '"><strong>' +
|
|
15
|
+
'</div>\n <ul class="usa-list--unstyled">\n <li class="position-relative display-block padding-105 border-1px">\n <div class="grid-row">\n <div class="tablet:grid-col-' +
|
|
16
|
+
((__t = (ctx.columns.name)) == null ? '' : __t) +
|
|
17
|
+
'"><strong>' +
|
|
26
18
|
((__t = (ctx.t('File Name'))) == null ? '' : __t) +
|
|
27
|
-
'</strong></div>\n <div class="tablet:grid-col-
|
|
19
|
+
'</strong></div>\n <div class="tablet:grid-col-' +
|
|
20
|
+
((__t = (ctx.columns.size)) == null ? '' : __t) +
|
|
21
|
+
'"><strong>' +
|
|
28
22
|
((__t = (ctx.t('Size'))) == null ? '' : __t) +
|
|
29
23
|
'</strong></div>\n ';
|
|
30
24
|
if (ctx.self.hasTypes) { ;
|
|
31
|
-
__p += '\n <div class="tablet:grid-col-
|
|
25
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
26
|
+
((__t = (ctx.columns.type)) == null ? '' : __t) +
|
|
27
|
+
'"><strong>' +
|
|
32
28
|
((__t = (ctx.t('Type'))) == null ? '' : __t) +
|
|
33
29
|
'</strong></div>\n ';
|
|
34
30
|
} ;
|
|
35
|
-
__p += '\n
|
|
36
|
-
ctx.
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
__p += '\n <
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
((__t = (file.originalName || file.name)) == null ? '' : __t) +
|
|
43
|
-
' file"></i></div>\n ';
|
|
31
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
32
|
+
((__t = (ctx.columns.actions)) == null ? '' : __t) +
|
|
33
|
+
' flex-justify-center">\n ';
|
|
34
|
+
if (ctx.showSyncButton) { ;
|
|
35
|
+
__p += '\n <button\n class="usa-button usa-button--accent-cool"\n ref="syncNow"\n ';
|
|
36
|
+
if (ctx.disabled || ctx.isSyncing) { ;
|
|
37
|
+
__p += 'disabled=true';
|
|
44
38
|
} ;
|
|
45
|
-
__p += '\n
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} else { ;
|
|
49
|
-
__p += '9';
|
|
39
|
+
__p += '\n >' +
|
|
40
|
+
((__t = (ctx.isSyncing ? ctx.t('Syncing...') : ctx.t('Sync Now'))) == null ? '' : __t) +
|
|
41
|
+
'</button>\n ';
|
|
50
42
|
} ;
|
|
51
|
-
__p += '
|
|
43
|
+
__p += '\n </div>\n </div>\n </li>\n ';
|
|
44
|
+
ctx.files.forEach(function(file) { ;
|
|
45
|
+
__p += '\n <li class="position-relative display-block padding-105 border-1px margin-top-neg-1px">\n <div class="grid-row flex-align-center">\n <div class="tablet:grid-col-' +
|
|
46
|
+
((__t = (ctx.columns.name)) == null ? '' : __t) +
|
|
47
|
+
' word-wrap">\n ';
|
|
52
48
|
if (ctx.component.uploadOnly) { ;
|
|
53
49
|
__p += '\n ' +
|
|
54
50
|
((__t = (file.originalName || file.name)) == null ? '' : __t) +
|
|
@@ -62,11 +58,15 @@ __p += '\n <a href="' +
|
|
|
62
58
|
((__t = (file.originalName || file.name)) == null ? '' : __t) +
|
|
63
59
|
'\n </a>\n ';
|
|
64
60
|
} ;
|
|
65
|
-
__p += '\n </div>\n <div class="tablet:grid-col-
|
|
61
|
+
__p += '\n </div>\n <div class="tablet:grid-col-' +
|
|
62
|
+
((__t = (ctx.columns.size)) == null ? '' : __t) +
|
|
63
|
+
'">' +
|
|
66
64
|
((__t = (ctx.fileSize(file.size))) == null ? '' : __t) +
|
|
67
65
|
'</div>\n ';
|
|
68
|
-
if (ctx.self.hasTypes) { ;
|
|
69
|
-
__p += '\n <div class="tablet:grid-col-
|
|
66
|
+
if (ctx.self.hasTypes && !ctx.disabled) { ;
|
|
67
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
68
|
+
((__t = (ctx.columns.type)) == null ? '' : __t) +
|
|
69
|
+
'">\n <select class="file-type">\n ';
|
|
70
70
|
ctx.component.fileTypes.map(function(type) { ;
|
|
71
71
|
__p += '\n <option class="test" value="' +
|
|
72
72
|
((__t = ( type.value )) == null ? '' : __t) +
|
|
@@ -80,6 +80,132 @@ __p += '>' +
|
|
|
80
80
|
}); ;
|
|
81
81
|
__p += '\n </select>\n </div>\n ';
|
|
82
82
|
} ;
|
|
83
|
+
__p += '\n ';
|
|
84
|
+
if (ctx.self.hasTypes && ctx.disabled) { ;
|
|
85
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
86
|
+
((__t = (ctx.columns.type)) == null ? '' : __t) +
|
|
87
|
+
'">' +
|
|
88
|
+
((__t = (file.fileType)) == null ? '' : __t) +
|
|
89
|
+
'</div>\n ';
|
|
90
|
+
} ;
|
|
91
|
+
__p += '\n ';
|
|
92
|
+
if (!ctx.disabled) { ;
|
|
93
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
94
|
+
((__t = (ctx.columns.actions)) == null ? '' : __t) +
|
|
95
|
+
' flex-justify-center"><i class="' +
|
|
96
|
+
((__t = (ctx.iconClass('remove'))) == null ? '' : __t) +
|
|
97
|
+
'" ref="removeLink" tabindex="0" aria-label="Remove button. Press to remove ' +
|
|
98
|
+
((__t = (file.originalName || file.name)) == null ? '' : __t) +
|
|
99
|
+
' file"></i></div>\n ';
|
|
100
|
+
} ;
|
|
101
|
+
__p += '\n </div>\n </li>\n ';
|
|
102
|
+
}) ;
|
|
103
|
+
__p += '\n ';
|
|
104
|
+
ctx.filesToDelete.forEach(function(file) { ;
|
|
105
|
+
__p += '\n <li class="position-relative display-block padding-105 border-1px margin-top-neg-1px">\n <div class="grid-row flex-align-center">\n <div class="tablet:grid-col-' +
|
|
106
|
+
((__t = (ctx.columns.name)) == null ? '' : __t) +
|
|
107
|
+
' word-wrap">\n <div>' +
|
|
108
|
+
((__t = (file.originalName || file.name)) == null ? '' : __t) +
|
|
109
|
+
'</div>\n <div class="status text-' +
|
|
110
|
+
((__t = (file.status === 'error' ? 'danger': file.status)) == null ? '' : __t) +
|
|
111
|
+
'">' +
|
|
112
|
+
((__t = (ctx.t(file.message))) == null ? '' : __t) +
|
|
113
|
+
'</div>\n </div>\n <div class="tablet:grid-col-' +
|
|
114
|
+
((__t = (ctx.columns.size)) == null ? '' : __t) +
|
|
115
|
+
'">' +
|
|
116
|
+
((__t = (ctx.fileSize(file.size))) == null ? '' : __t) +
|
|
117
|
+
'</div>\n ';
|
|
118
|
+
if (ctx.self.hasTypes) { ;
|
|
119
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
120
|
+
((__t = (ctx.columns.type)) == null ? '' : __t) +
|
|
121
|
+
'">\n <select class="file-type" ref="fileType">\n ';
|
|
122
|
+
ctx.component.fileTypes.map(function(type) { ;
|
|
123
|
+
__p += '\n <option class="test" value="' +
|
|
124
|
+
((__t = ( type.value )) == null ? '' : __t) +
|
|
125
|
+
'" ';
|
|
126
|
+
if (type.label === file.fileType) { ;
|
|
127
|
+
__p += 'selected="selected"';
|
|
128
|
+
} ;
|
|
129
|
+
__p += '>' +
|
|
130
|
+
((__t = (ctx.t(type.label))) == null ? '' : __t) +
|
|
131
|
+
'</option>\n ';
|
|
132
|
+
}); ;
|
|
133
|
+
__p += '\n </select>\n </div>\n ';
|
|
134
|
+
} ;
|
|
135
|
+
__p += '\n ';
|
|
136
|
+
if (!ctx.isSyncing && file.status !== 'success') { ;
|
|
137
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
138
|
+
((__t = (ctx.columns.actions)) == null ? '' : __t) +
|
|
139
|
+
' flex-justify-center"><i tabindex="0" class="' +
|
|
140
|
+
((__t = (ctx.iconClass('arrow-counterclockwise'))) == null ? '' : __t) +
|
|
141
|
+
'" ref="restoreFile"></i></div>\n ';
|
|
142
|
+
} ;
|
|
143
|
+
__p += '\n </div>\n </li>\n ';
|
|
144
|
+
}) ;
|
|
145
|
+
__p += '\n ';
|
|
146
|
+
ctx.filesToUpload.forEach(function(file) { ;
|
|
147
|
+
__p += '\n <li class="position-relative display-block padding-105 border-1px margin-top-neg-1px">\n <div class="grid-row flex-align-center">\n <div class="tablet:grid-col-' +
|
|
148
|
+
((__t = (ctx.columns.name)) == null ? '' : __t) +
|
|
149
|
+
' word-wrap">\n <div>' +
|
|
150
|
+
((__t = (file.originalName || file.name)) == null ? '' : __t) +
|
|
151
|
+
'</div>\n ';
|
|
152
|
+
if (file.status === 'progress') { ;
|
|
153
|
+
__p += '\n <div class="status progress">\n <div id="' +
|
|
154
|
+
((__t = (file.id)) == null ? '' : __t) +
|
|
155
|
+
'" class="progress-bar" role="progressbar" aria-valuenow="' +
|
|
156
|
+
((__t = (file.progress)) == null ? '' : __t) +
|
|
157
|
+
'" aria-valuemin="0" aria-valuemax="100" style="width: ' +
|
|
158
|
+
((__t = (file.progress)) == null ? '' : __t) +
|
|
159
|
+
'%" ref="progress">\n <span class="usa-sr-only">' +
|
|
160
|
+
((__t = (file.progress)) == null ? '' : __t) +
|
|
161
|
+
'% ' +
|
|
162
|
+
((__t = (ctx.t('Complete'))) == null ? '' : __t) +
|
|
163
|
+
'</span>\n </div>\n </div>\n ';
|
|
164
|
+
} else { ;
|
|
165
|
+
__p += '\n <div class="status text-' +
|
|
166
|
+
((__t = (file.status === 'error' ? 'danger': file.status)) == null ? '' : __t) +
|
|
167
|
+
'">' +
|
|
168
|
+
((__t = (ctx.t(file.message))) == null ? '' : __t) +
|
|
169
|
+
'</div>\n ';
|
|
170
|
+
} ;
|
|
171
|
+
__p += '\n </div>\n <div class="tablet:grid-col-' +
|
|
172
|
+
((__t = (ctx.columns.size)) == null ? '' : __t) +
|
|
173
|
+
'">' +
|
|
174
|
+
((__t = (ctx.fileSize(file.size))) == null ? '' : __t) +
|
|
175
|
+
'</div>\n ';
|
|
176
|
+
if (ctx.self.hasTypes) { ;
|
|
177
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
178
|
+
((__t = (ctx.columns.type)) == null ? '' : __t) +
|
|
179
|
+
'">\n <select class="file-type" ref="fileType">\n ';
|
|
180
|
+
ctx.component.fileTypes.map(function(type) { ;
|
|
181
|
+
__p += '\n <option class="test" value="' +
|
|
182
|
+
((__t = ( type.value )) == null ? '' : __t) +
|
|
183
|
+
'" ';
|
|
184
|
+
if (type.label === file.fileType) { ;
|
|
185
|
+
__p += 'selected="selected"';
|
|
186
|
+
} ;
|
|
187
|
+
__p += '>' +
|
|
188
|
+
((__t = (ctx.t(type.label))) == null ? '' : __t) +
|
|
189
|
+
'</option>\n ';
|
|
190
|
+
}); ;
|
|
191
|
+
__p += '\n </select>\n </div>\n ';
|
|
192
|
+
} ;
|
|
193
|
+
__p += '\n ';
|
|
194
|
+
if (file.status === 'progress') { ;
|
|
195
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
196
|
+
((__t = (ctx.columns.actions)) == null ? '' : __t) +
|
|
197
|
+
' flex-justify-center"><i id="abort-' +
|
|
198
|
+
((__t = (file.id)) == null ? '' : __t) +
|
|
199
|
+
'" tabindex="0" class="' +
|
|
200
|
+
((__t = (ctx.iconClass('ban'))) == null ? '' : __t) +
|
|
201
|
+
'"></i></div>\n ';
|
|
202
|
+
} else if (!ctx.isSyncing && file.status !== 'success') { ;
|
|
203
|
+
__p += '\n <div class="tablet:grid-col-' +
|
|
204
|
+
((__t = (ctx.columns.actions)) == null ? '' : __t) +
|
|
205
|
+
' flex-justify-center"><i tabindex="0" class="' +
|
|
206
|
+
((__t = (ctx.iconClass('remove'))) == null ? '' : __t) +
|
|
207
|
+
'" ref="fileToSyncRemove"></i></div>\n ';
|
|
208
|
+
} ;
|
|
83
209
|
__p += '\n </div>\n </li>\n ';
|
|
84
210
|
}) ;
|
|
85
211
|
__p += '\n </ul>\n';
|
|
@@ -136,54 +262,6 @@ __p += '\n <div>\n <video class="video" autoplay="true" ref="videoPlayer
|
|
|
136
262
|
} ;
|
|
137
263
|
__p += '\n';
|
|
138
264
|
} ;
|
|
139
|
-
__p += '\n';
|
|
140
|
-
ctx.statuses.forEach(function(status) { ;
|
|
141
|
-
__p += '\n <div class="file ' +
|
|
142
|
-
((__t = (ctx.statuses.status === 'error' ? 'usa-has-error' : '')) == null ? '' : __t) +
|
|
143
|
-
'">\n <div class="grid-row">\n <div class="fileName mobile:grid-col-10">\n <span ref="notUploaded">' +
|
|
144
|
-
((__t = (status.originalName)) == null ? '' : __t) +
|
|
145
|
-
'</span>\n <i class="' +
|
|
146
|
-
((__t = (ctx.iconClass('remove'))) == null ? '' : __t) +
|
|
147
|
-
'" ref="fileStatusRemove" tabindex="0">\n <span class="usa-sr-only">' +
|
|
148
|
-
((__t = (ctx.t('Remove button. Press to remove ' + status.originalName || status.name + '.'))) == null ? '' : __t) +
|
|
149
|
-
'</span>\n <span class="usa-sr-only">' +
|
|
150
|
-
((__t = (status.message ? status.message.replace(';', '.') : '')) == null ? '' : __t) +
|
|
151
|
-
'</span>\n </i></div>\n <div class="fileSize mobile:grid-col-2 text-right">' +
|
|
152
|
-
((__t = (ctx.fileSize(status.size))) == null ? '' : __t) +
|
|
153
|
-
'</div>\n </div>\n <div class="grid-row">\n <div class="mobile:grid-col-12">\n ';
|
|
154
|
-
if (status.status === 'progress') { ;
|
|
155
|
-
__p += '\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="' +
|
|
156
|
-
((__t = (status.progress)) == null ? '' : __t) +
|
|
157
|
-
'" aria-valuemin="0" aria-valuemax="100" style="width: ' +
|
|
158
|
-
((__t = (status.progress)) == null ? '' : __t) +
|
|
159
|
-
'%">\n <span class="usa-sr-only">' +
|
|
160
|
-
((__t = (status.progress)) == null ? '' : __t) +
|
|
161
|
-
'% ' +
|
|
162
|
-
((__t = (ctx.t('Complete'))) == null ? '' : __t) +
|
|
163
|
-
'</span>\n </div>\n </div>\n ';
|
|
164
|
-
} else { ;
|
|
165
|
-
__p += '\n <div class="\n ';
|
|
166
|
-
if (status.status === 'success') { ;
|
|
167
|
-
__p += ' bg-green ';
|
|
168
|
-
} ;
|
|
169
|
-
__p += '\n ';
|
|
170
|
-
if (status.status === 'info') { ;
|
|
171
|
-
__p += ' bg-cyan ';
|
|
172
|
-
} ;
|
|
173
|
-
__p += '\n ';
|
|
174
|
-
if (status.status === 'warning') { ;
|
|
175
|
-
__p += ' bg-gold ';
|
|
176
|
-
} ;
|
|
177
|
-
__p += '\n ';
|
|
178
|
-
if (status.status === 'danger') { ;
|
|
179
|
-
__p += ' bg-red ';
|
|
180
|
-
} ;
|
|
181
|
-
__p += '\n ">' +
|
|
182
|
-
((__t = (JSON.stringify(status.message))) == null ? '' : __t) +
|
|
183
|
-
'</div>\n ';
|
|
184
|
-
} ;
|
|
185
|
-
__p += '\n </div>\n </div>\n </div>\n';
|
|
186
|
-
}) ;
|
|
187
265
|
__p += '\n';
|
|
188
266
|
if (!ctx.component.storage || ctx.support.hasWarning) { ;
|
|
189
267
|
__p += '\n <div class="usa-alert usa-alert--warning">\n <div class="usa-alert__body">\n ';
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
3
|
+
const address_1 = require("./address");
|
|
4
|
+
const alert_1 = require("./alert");
|
|
5
|
+
const builder_1 = require("./builder");
|
|
6
|
+
const builderComponent_1 = require("./builderComponent");
|
|
7
|
+
const builderComponents_1 = require("./builderComponents");
|
|
8
|
+
const builderEditForm_1 = require("./builderEditForm");
|
|
9
|
+
const builderPlaceholder_1 = require("./builderPlaceholder");
|
|
10
|
+
const builderSidebar_1 = require("./builderSidebar");
|
|
11
|
+
const builderSidebarGroup_1 = require("./builderSidebarGroup");
|
|
12
|
+
const builderWizard_1 = require("./builderWizard");
|
|
13
|
+
const button_1 = require("./button");
|
|
14
|
+
const checkbox_1 = require("./checkbox");
|
|
15
|
+
const columns_1 = require("./columns");
|
|
16
|
+
const component_1 = require("./component");
|
|
17
|
+
const componentModal_1 = require("./componentModal");
|
|
18
|
+
const container_1 = require("./container");
|
|
19
|
+
const datagrid_1 = require("./datagrid");
|
|
20
|
+
const datatable_1 = require("./datatable");
|
|
21
|
+
const day_1 = require("./day");
|
|
22
|
+
const dialog_1 = require("./dialog");
|
|
23
|
+
const editgrid_1 = require("./editgrid");
|
|
24
|
+
const errorsList_1 = require("./errorsList");
|
|
25
|
+
const field_1 = require("./field");
|
|
26
|
+
const fieldset_1 = require("./fieldset");
|
|
27
|
+
const file_1 = require("./file");
|
|
28
|
+
const html_1 = require("./html");
|
|
29
|
+
const icon_1 = require("./icon");
|
|
30
|
+
const input_1 = require("./input");
|
|
31
|
+
const label_1 = require("./label");
|
|
32
|
+
const loader_1 = require("./loader");
|
|
33
|
+
const loading_1 = require("./loading");
|
|
34
|
+
const message_1 = require("./message");
|
|
35
|
+
const modalPreview_1 = require("./modalPreview");
|
|
36
|
+
const multiValueRow_1 = require("./multiValueRow");
|
|
37
|
+
const multiValueTable_1 = require("./multiValueTable");
|
|
38
|
+
const panel_1 = require("./panel");
|
|
39
|
+
const pdf_1 = require("./pdf");
|
|
40
|
+
const pdfBuilder_1 = require("./pdfBuilder");
|
|
41
|
+
const pdfBuilderUpload_1 = require("./pdfBuilderUpload");
|
|
42
|
+
const radio_1 = require("./radio");
|
|
43
|
+
const resourceAdd_1 = require("./resourceAdd");
|
|
44
|
+
const select_1 = require("./select");
|
|
45
|
+
const selectOption_1 = require("./selectOption");
|
|
46
|
+
const survey_1 = require("./survey");
|
|
47
|
+
const tab_1 = require("./tab");
|
|
48
|
+
const table_1 = require("./table");
|
|
49
|
+
const warning_1 = require("./warning");
|
|
50
|
+
const webform_1 = require("./webform");
|
|
51
|
+
const well_1 = require("./well");
|
|
52
|
+
const wizard_1 = require("./wizard");
|
|
53
|
+
const wizardHeader_1 = require("./wizardHeader");
|
|
54
|
+
const wizardNav_1 = require("./wizardNav");
|
|
55
|
+
const size_1 = require("./size");
|
|
56
|
+
const cssClasses_1 = require("./cssClasses");
|
|
57
57
|
exports.default = {
|
|
58
|
-
transform
|
|
58
|
+
transform(type, text) {
|
|
59
59
|
if (!text) {
|
|
60
60
|
return text;
|
|
61
61
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (
|
|
3
|
+
exports.default = (size) => {
|
|
4
4
|
switch (size) {
|
|
5
5
|
case 'xs': return '';
|
|
6
6
|
case 'sm': return 'mobile-lg';
|
|
@@ -8,4 +8,4 @@ exports.default = (function (size) {
|
|
|
8
8
|
case 'lg': return 'desktop';
|
|
9
9
|
default: return 'tablet';
|
|
10
10
|
}
|
|
11
|
-
}
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const form_ejs_1 = require("./form.ejs");
|
|
4
|
+
const html_ejs_1 = require("./html.ejs");
|
|
5
5
|
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const flat_ejs_1 = require("./flat.ejs");
|
|
4
|
+
const form_ejs_1 = require("./form.ejs");
|
|
5
5
|
exports.default = { flat: flat_ejs_1.default, form: form_ejs_1.default };
|