@formio/uswds 2.4.6 → 2.4.8-rc.1

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.
@@ -75,6 +75,10 @@ span[role=link]:hover {
75
75
  border: 1px solid #565c65;
76
76
  }
77
77
 
78
+ .usa-form-group--month .usa-select {
79
+ opacity: 1;
80
+ }
81
+
78
82
  .formio-component-address .usa-checkbox {
79
83
  margin: 0.5em 0 0.3em;
80
84
  }
@@ -453,84 +457,72 @@ div[ref=modalContents] .usa-form-group--error {
453
457
  flex: 0 0 auto;
454
458
  width: 8.3333333333%;
455
459
  }
456
-
457
460
  div[class*=":grid-col-2"] {
458
461
  -webkit-box-flex: 0;
459
462
  -ms-flex: 0 0 auto;
460
463
  flex: 0 0 auto;
461
464
  width: 16.6666666667%;
462
465
  }
463
-
464
466
  div[class*=":grid-col-3"] {
465
467
  -webkit-box-flex: 0;
466
468
  -ms-flex: 0 0 auto;
467
469
  flex: 0 0 auto;
468
470
  width: 25%;
469
471
  }
470
-
471
472
  div[class*=":grid-col-4"] {
472
473
  -webkit-box-flex: 0;
473
474
  -ms-flex: 0 0 auto;
474
475
  flex: 0 0 auto;
475
476
  width: 33.3333333333%;
476
477
  }
477
-
478
478
  div[class*=":grid-col-5"] {
479
479
  -webkit-box-flex: 0;
480
480
  -ms-flex: 0 0 auto;
481
481
  flex: 0 0 auto;
482
482
  width: 41.6666666667%;
483
483
  }
484
-
485
484
  div[class*=":grid-col-6"] {
486
485
  -webkit-box-flex: 0;
487
486
  -ms-flex: 0 0 auto;
488
487
  flex: 0 0 auto;
489
488
  width: 50%;
490
489
  }
491
-
492
490
  div[class*=":grid-col-7"] {
493
491
  -webkit-box-flex: 0;
494
492
  -ms-flex: 0 0 auto;
495
493
  flex: 0 0 auto;
496
494
  width: 58.3333333333%;
497
495
  }
498
-
499
496
  div[class*=":grid-col-8"] {
500
497
  -webkit-box-flex: 0;
501
498
  -ms-flex: 0 0 auto;
502
499
  flex: 0 0 auto;
503
500
  width: 66.6666666667%;
504
501
  }
505
-
506
502
  div[class*=":grid-col-9"] {
507
503
  -webkit-box-flex: 0;
508
504
  -ms-flex: 0 0 auto;
509
505
  flex: 0 0 auto;
510
506
  width: 75%;
511
507
  }
512
-
513
508
  div[class*=":grid-col-10"] {
514
509
  -webkit-box-flex: 0;
515
510
  -ms-flex: 0 0 auto;
516
511
  flex: 0 0 auto;
517
512
  width: 83.3333333333%;
518
513
  }
519
-
520
514
  div[class*=":grid-col-11"] {
521
515
  -webkit-box-flex: 0;
522
516
  -ms-flex: 0 0 auto;
523
517
  flex: 0 0 auto;
524
518
  width: 91.6666666667%;
525
519
  }
526
-
527
520
  div[class*=":grid-col-12"] {
528
521
  -webkit-box-flex: 0;
529
522
  -ms-flex: 0 0 auto;
530
523
  flex: 0 0 auto;
531
524
  width: 100%;
532
525
  }
533
-
534
526
  .usa-checkbox__input:checked:disabled + .usa-checkbox__label::before {
535
527
  background-image: none;
536
528
  background-color: #c9c9c9;
package/lib/index.d.ts CHANGED
@@ -71,6 +71,7 @@ declare const _default: {
71
71
  };
72
72
  field: {
73
73
  form: string;
74
+ align: string;
74
75
  };
75
76
  fieldset: {
76
77
  form: string;
@@ -101,6 +101,10 @@ span[role="link"] {
101
101
  border: 1px solid #565c65;
102
102
  }
103
103
 
104
+ .usa-form-group--month .usa-select {
105
+ opacity: 1;
106
+ }
107
+
104
108
  .formio-component-address .usa-checkbox {
105
109
  margin: 0.5em 0 0.3em;
106
110
  }
@@ -69,6 +69,7 @@ declare const _default: {
69
69
  };
70
70
  field: {
71
71
  form: string;
72
+ align: string;
72
73
  };
73
74
  fieldset: {
74
75
  form: string;
@@ -72,23 +72,9 @@ __p += 'field-required';
72
72
  } ;
73
73
  __p += '"\n >' +
74
74
  ((__t = (ctx.t('Month'))) == null ? '' : __t) +
75
- '</label>\n\n <input class="usa-input usa-input--inline"\n ref="month"\n name="month"\n id="' +
76
- ((__t = (ctx.component.key)) == null ? '' : __t) +
77
- '-month"\n ';
78
- if (ctx.component.fields.month.placeholder) { ;
79
- __p += 'placeholder="' +
80
- ((__t = (ctx.component.fields.month.placeholder)) == null ? '' : __t) +
81
- '"';
82
- } ;
83
- __p += '\n ';
84
- if (ctx.component.description) { ;
85
- __p += '\n aria-describedby="d-' +
86
- ((__t = (ctx.instance.id)) == null ? '' : __t) +
87
- '-' +
88
- ((__t = (ctx.component.key)) == null ? '' : __t) +
89
- '"\n ';
90
- } ;
91
- __p += '\n type="number" min="1" max="12" step="1" value="">\n </div>\n ';
75
+ '</label>\n <div>' +
76
+ ((__t = (ctx.month)) == null ? '' : __t) +
77
+ '</div>\n </div>\n ';
92
78
  } ;
93
79
  __p += '\n\n ';
94
80
  if (!ctx.dayFirst && ctx.showDay) { ;
@@ -0,0 +1,41 @@
1
+ Object.defineProperty(exports, "__esModule", {
2
+ value: true
3
+ });
4
+ exports.default=function(ctx) {
5
+ var __t, __p = '', __j = Array.prototype.join;
6
+ function print() { __p += __j.call(arguments, '') }
7
+ __p += '<div class="field-wrapper\n ' +
8
+ ((__t = (ctx.isRightPosition ? 'field-wrapper--reverse' : '')) == null ? '' : __t) +
9
+ '">\n ';
10
+ if (!ctx.label.hidden) { ;
11
+ __p += '\n <div class="field-label\n ' +
12
+ ((__t = (ctx.isRightAlign ? 'field-label--right' : '')) == null ? '' : __t) +
13
+ '"\n style="' +
14
+ ((__t = (ctx.labelStyles)) == null ? '' : __t) +
15
+ '">\n ' +
16
+ ((__t = ( ctx.labelMarkup )) == null ? '' : __t) +
17
+ '\n </div>\n ';
18
+ } ;
19
+ __p += '\n\n ';
20
+ if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { ;
21
+ __p += '\n <div class="field-label\n ' +
22
+ ((__t = (ctx.isRightAlign ? 'field-label--right' : '')) == null ? '' : __t) +
23
+ '"\n style="' +
24
+ ((__t = (ctx.labelStyles)) == null ? '' : __t) +
25
+ '">\n <label class="' +
26
+ ((__t = (ctx.label.className)) == null ? '' : __t) +
27
+ '"></label>\n </div>\n ';
28
+ } ;
29
+ __p += '\n\n <div class="field-content" style="' +
30
+ ((__t = (ctx.contentStyles)) == null ? '' : __t) +
31
+ '">\n ' +
32
+ ((__t = (ctx.element)) == null ? '' : __t) +
33
+ '\n </div>\n</div>\n\n';
34
+ if (ctx.component.description) { ;
35
+ __p += '\n <div class="form-text text-muted">' +
36
+ ((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) +
37
+ '</div>\n';
38
+ } ;
39
+ __p += '\n';
40
+ return __p
41
+ }
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
2
  form: string;
3
+ align: string;
3
4
  };
4
5
  export default _default;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var form_ejs_1 = require("./form.ejs");
4
- exports.default = { form: form_ejs_1.default };
4
+ var align_ejs_1 = require("./align.ejs");
5
+ exports.default = { form: form_ejs_1.default, align: align_ejs_1.default };
@@ -68,6 +68,7 @@ declare const _default: {
68
68
  };
69
69
  field: {
70
70
  form: string;
71
+ align: string;
71
72
  };
72
73
  fieldset: {
73
74
  form: string;
@@ -8,7 +8,9 @@ function print() { __p += __j.call(arguments, '') }
8
8
  ctx.component.components.forEach(function(tab, index) { ;
9
9
  __p += '\n <div class="margin-bottom-2 formio-usa-card">\n <div class="formio-usa-card-header bg-base-lightest">\n <h4 class="margin-bottom-0 formio-usa-card-title">' +
10
10
  ((__t = ( ctx.t(tab.label) )) == null ? '' : __t) +
11
- '</h4>\n </div>\n <div class="formio-usa-card-body">\n ' +
11
+ '</h4>\n </div>\n <div class="formio-usa-card-body" ref="' +
12
+ ((__t = (ctx.tabKey)) == null ? '' : __t) +
13
+ '">\n ' +
12
14
  ((__t = ( ctx.tabComponents[index] )) == null ? '' : __t) +
13
15
  '\n </div>\n </div>\n';
14
16
  }) ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/uswds",
3
- "version": "2.4.6",
3
+ "version": "2.4.8-rc.1",
4
4
  "description": "US Web Design System templates for form.io",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/Changelog.md DELETED
@@ -1,329 +0,0 @@
1
- # Change Log
2
- All notable changes to this project will be documented in this file
3
-
4
- The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/).
6
-
7
- ## 2.4.6
8
- ### Changed
9
- - Official Release
10
-
11
- ## 2.4.6-rc.1
12
- ### Fixed
13
- - Fixing issues with viewer crashing when widget=null.
14
-
15
- ## 2.4.5
16
- ### Changed
17
- - Official Release
18
-
19
- ## 2.4.5-rc.1
20
- ### Fixed
21
- - FIO-4600: Fixed radio buttons inside of Survey component
22
-
23
- ## 2.4.4
24
- ### Changed
25
- - Official Release
26
-
27
- ## 2.4.4-rc.1
28
- ### Fixed
29
- - Styles declaration on the component template.
30
-
31
- ## 2.4.3
32
- ### Changed
33
- - Official Release
34
-
35
- ## 2.4.3-rc.1
36
- ### Changed
37
- - FIO-4314: Fixes viewer not having script and style resources
38
-
39
- ## 2.4.2
40
- ### Changed
41
- - Official Release
42
-
43
- ## 2.4.2-rc.1
44
- ### Fixed
45
- - FIO-4081 Fixed incorrect file pattern message
46
- - FIO-3990 Fixed issue with checkboxes inside of Fieldset in DataGrid
47
-
48
- ## 2.4.1
49
- ### Changed
50
- - Official Release
51
-
52
- ## 2.4.1-rc.1
53
- ### Fixed
54
- - FIO-4082, FIO-2984, FIO-4098: Fixed styles for checkbox, file, error indication
55
-
56
- ## 2.4.0
57
- ### Changed
58
- - Official Release
59
-
60
- ## 2.4.0-rc.3
61
- ### Fixed
62
- - FIO-3758: Duplication of radio ids inside nested forms
63
-
64
- ## 2.4.0-rc.2
65
- ### Fixed
66
- - FIO-3758: Duplication of radio ids inside nested forms
67
- - FIO-3782 Fixed outline for choicesjs select in PDF
68
-
69
- ## 2.4.0-rc.1
70
- ### Changed
71
- - Upgrade formiojs@4.14.0-rc.23
72
-
73
- ### Fixed
74
- - FIO-3656 Fixed issue when columns were not auto collapsing in some cases
75
- - FIO-3519 Made 'scroll on top' option in wizard to scroll to the top of progressbar
76
- - Changes for 2.4.0 uswds release:
77
- - FIO-3208 Fixed issue when description was displaying under charcount
78
- - FIO-3206 Fixed styles for labels
79
- - FIO-2648 Adjusted uswds styles to work with vpat
80
- - FIO-2546 Fixed focus outline of builder modal buttons, which were not fully visible for Content component
81
- - FIO-2544 Fixed issue when suffixes and prefixes were displayed wrong on a big scale
82
- - FIO-2535 Fixed modal buttons that were displaying outside of modal window in FMG
83
-
84
- ## 2.3.8
85
- ### Fixed
86
- - FIO-3598 Rolled back USWDS version to fix issues with radio and checkboxes
87
-
88
- ## 2.3.7
89
- ### Fixed
90
- - FIO-1627 Changed focus order in wizard header for tooltip to be included into intuitive flow
91
-
92
- ## 2.3.6
93
- ### Fixed
94
- - FIO-1627 Fixed wizard panel tooltip not being focusable
95
-
96
- ## 2.3.5
97
- ### Fixed
98
- - FIO-1627: Added tooltip to wizard header
99
-
100
- ## 2.3.4
101
- ### Fixed
102
- - FIO-3210 Fixed button component to have correct options and builder and to correctly display custom classes
103
-
104
- ## 2.3.3
105
- ### Changed
106
- - Released 2.3.3 as official release.
107
-
108
- ## 2.3.3-rc.1
109
- ### Fixed
110
- - FIO-3104: Fixes an issue where usa-button class makes buttons to be always visible event when they have formio-hidden class
111
-
112
- ### Changed
113
- - Upgrade dependencies.
114
-
115
- ## 2.3.2
116
- ### Fixed
117
- - FIO-2643 Fixed tooltips displaying 'null'
118
-
119
- ### Changed
120
- - Upgrade formiojs@4.13.0-rc.26
121
-
122
- ## 2.3.1
123
- ### Fixed
124
- - https://github.com/formio/uswds/pull/185
125
-
126
- ## 2.3.0-rc.2
127
- ### Changed
128
- - Upgrade formiojs@4.13.0-rc.13
129
-
130
- ## 2.3.0-rc.1
131
- ### Changed
132
- - https://github.com/formio/uswds/pull/176
133
-
134
- ## 2.2.0
135
- ### Changed
136
- - No changes. Released 2.2.0-rc.1 as 2.2.0
137
-
138
- ## 2.2.0-rc.1
139
- ### Changed
140
- - Upgrade formiojs@4.13.0-rc.6
141
-
142
- ## 2.1.0
143
- ### Changed
144
- - Upgrade formiojs@4.13.0-rc.5
145
- ### Changed
146
- - Changes for USWDS v2.1.0
147
-
148
- ## 2.0.3
149
- ### Fixed
150
- - Issue where the PDF upload is not showing the progress indicator.
151
-
152
- ## 2.0.2
153
- ### Changed
154
- - Upgrade formiojs@4.12.4
155
-
156
- ## 2.0.2-rc.3
157
- ### Fixed
158
- - Adding target to webpack so builds work with IE11.
159
- - Fixed viewer not working in IE
160
-
161
- ## 2.0.2-rc.2
162
- ### Changed
163
- - Upgrade formiojs@4.12.4-rc.2
164
-
165
- ## 2.0.2-rc.1
166
- ### Fixed
167
- - FJS-1488: Adding tabindex to datagrid elements.
168
-
169
- ### Changed
170
- - Upgrade formiojs@4.12.4-rc.1
171
- - Upgrade @types/node@14.14.12, sinon@9.2.2, ts-node@9.1.1, @types/mocha@8.2.0
172
-
173
- ## 2.0.1
174
- ### Fixed
175
- - VPAT-775 Changed wizardHeader from nav to div and fixed focus on progressbar
176
-
177
- ### Changed
178
- - Upgrade formiojs@4.12.2
179
-
180
- ## 2.0.1-rc.3
181
- ### Fixed
182
- - VPAT-758 Removed styling modifications for disabled dates in Datepicker
183
- - VPAT-757 Fixed text in li being wrapped at set width
184
- - VPAT-756 Made font weight bold for headings using strong tag in FMG
185
-
186
- ### Changed
187
- - Upgrade formiojs@4.12.2-rc.5
188
-
189
- ## 2.0.1-rc.2
190
- ### Changed
191
- - Changed renderer to official 4.12.1
192
-
193
- ## 2.0.1-rc.1
194
- ### Fixed
195
- - VPAT-623 Added address component to USWDS templates with correct styles
196
- - VPAT-592 Fixed incorrect presentation of the last cell in a table in IE/FF
197
- - VPAT-623 Fixed incorrect display of choicesjs selects in some cases
198
-
199
- ### Chnaged
200
- - Upgrade formiojs@4.12.2-rc.3
201
-
202
- ## 2.0.0
203
- ### Changed
204
- - Upgrade formiojs@4.12.1
205
-
206
- ### Fixed
207
- - VPAT-592 Changed data grid table to populate all available space
208
- - VPAT-594 Applied USWDS select styling to choicesjs selects
209
-
210
- ## 2.0.0-rc.9
211
- ### Changed
212
- - Upgrade formiojs@4.12.1-rc.28
213
-
214
- ## 2.0.0-rc.8
215
- ### Changed
216
- - Upgrade formiojs@4.12.1-rc.26
217
-
218
- ### Fixed
219
- - VPAT-719 Fixed disappearing fields when failing validation in USWDS
220
- - VPAT-697 Added border outlines to layout component in builder
221
-
222
- ## 2.0.0-rc.7
223
- ### Changed
224
- - Upgrade formiojs@4.12.1-rc.18
225
-
226
- ### Fixed
227
- - VPAT-672 Fixed failing EditGrid in builder options
228
-
229
- ## 2.0.0
230
- ### Added
231
- - Further accessibility support for DateTime component.
232
- - Accessibility support for modal edit.
233
-
234
- ### Changed
235
- - Reworked tooltips to make them accessible.
236
-
237
- ### Fixed
238
- - Several accessibility and PDF issues.
239
-
240
- ## 1.8.2-rc.5
241
- ### Changed
242
- - Upgrade uswds-viewer base to 2.97.0-rc.11
243
-
244
- ## 1.8.2-rc.4
245
- ### Changed
246
- - uswds-viewer Docker base to 2.97.0-rc.10
247
- - formiojs@4.11.1-rc.5
248
-
249
- ## 1.8.2-rc.3
250
- ### Changed
251
- - uswds-viewer Docker base to 2.97.0-rc.9
252
-
253
- ## 1.8.2-rc.2
254
- ### Changed
255
- - uswds-viewer Docker base to 2.97.0-rc.7
256
-
257
- ## 1.8.2-rc.1
258
- ### Changed
259
- - uswds-viewer Docker base to 2.97.0-rc.6
260
-
261
- ## 1.8.1
262
- ### Changed
263
- - Reverted docker base back to 2.96.0 for uswds-viewer
264
-
265
- ## 1.8.0
266
- ### Changed
267
- - Fixed viewer to show checked radios and checkboxes correctly.
268
- - Upgrade formiojs@4.11.0
269
-
270
- ## 1.8.0-rc.2
271
- ### Changed
272
- - Upgrade formiojs@4.11.0-rc.5
273
- - Fixed issue with DateTime icon showing incorrect.
274
-
275
- ## 1.7.0
276
- ### Added
277
- - Accessibility support for DateTime component.
278
-
279
- ## 1.6.0
280
- ### Fixed
281
- - Issue with stacked fields in PDFs.
282
- - Issue with Radio/Checkbox component not appearing selected in PDF.
283
- - Issue with Panel component header announcing excessive info on IE.
284
-
285
- ## 1.5.0
286
- ### Changed
287
- - Columns layout not spanning with the width of the page.
288
- - HTML component styles to be in accordance with USWDS.
289
-
290
- ### Fixed
291
- - Issue with components being too close to each other.
292
-
293
- ## 1.4.0
294
- ### Changed
295
- - Redesigned Wizard navigation and made it accessible.
296
- - General accessibility improvements.
297
-
298
- ### Fixed
299
- - Issue with legends not being distinguished.
300
- - Issue with announcements for numeric fields.
301
- - Issue with spacing of components in all forms.
302
-
303
- ## 1.3.2
304
- ### Changed
305
- - Added column size variable to columns template.
306
- - Added mapping function to map bootstrap columns sizes to uswds.
307
- - Fixed margins in component template.
308
-
309
- ## 1.3.1
310
- ### Changed
311
- - Fixed documentation.
312
- - Added way to add Form.io license.
313
-
314
- ### Fixed
315
- - Issue with duplicate input labels on Radio components.
316
-
317
- ## 1.3.0
318
- ### Changed
319
-
320
- ## 1.2.4
321
- ### Upgrade viewer to latest versions.
322
-
323
- ## 1.2.3
324
- ### Fixed
325
- - Viewer to use premium components.
326
-
327
- ## 1.2.2
328
- ### Fixed
329
- - Build processes.