@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
package/lib/components/Select.js
CHANGED
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
USWDSSelectComponent.prototype.choicesOptions = function () {
|
|
26
|
-
var choicesOptions = _super.prototype.choicesOptions.call(this);
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const SelectComponent = js_1.Components.components.select;
|
|
5
|
+
class USWDSSelectComponent extends SelectComponent {
|
|
6
|
+
choicesOptions() {
|
|
7
|
+
const choicesOptions = super.choicesOptions();
|
|
27
8
|
choicesOptions.classNames.containerInner += ' usa-select maxw-full';
|
|
28
9
|
return choicesOptions;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}(SelectComponent));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
32
12
|
exports.default = USWDSSelectComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import editForm from './Button.form';
|
|
2
|
-
declare const ButtonComponent:
|
|
2
|
+
declare const ButtonComponent: any;
|
|
3
3
|
export default class USWDSButtonComponent extends ButtonComponent {
|
|
4
4
|
static editForm: typeof editForm;
|
|
5
5
|
[x: string]: any;
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function default_1() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
key: 'display',
|
|
23
|
-
components: Button_edit_display_1.default,
|
|
24
|
-
},
|
|
25
|
-
]], extend, false));
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.button.editForm;
|
|
5
|
+
const Button_edit_display_1 = require("./editForm/Button.edit.display");
|
|
6
|
+
function default_1(...extend) {
|
|
7
|
+
return baseEditForm([
|
|
8
|
+
{
|
|
9
|
+
key: 'display',
|
|
10
|
+
components: Button_edit_display_1.default,
|
|
11
|
+
},
|
|
12
|
+
], ...extend);
|
|
26
13
|
}
|
|
27
14
|
exports.default = default_1;
|
|
@@ -1,31 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
USWDSButtonComponent.prototype.getInputInfo = function () {
|
|
28
|
-
var info = this.inputInfo;
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const Button_form_1 = require("./Button.form");
|
|
5
|
+
const ButtonComponent = js_1.Components.components.button;
|
|
6
|
+
const FieldComponent = js_1.Components.components.field;
|
|
7
|
+
class USWDSButtonComponent extends ButtonComponent {
|
|
8
|
+
getInputInfo() {
|
|
9
|
+
const info = this.inputInfo;
|
|
29
10
|
info.attr.class = 'usa-button';
|
|
30
11
|
switch (this.component.theme) {
|
|
31
12
|
case 'secondary':
|
|
@@ -52,11 +33,11 @@ var USWDSButtonComponent = /** @class */ (function (_super) {
|
|
|
52
33
|
break;
|
|
53
34
|
}
|
|
54
35
|
if (this.component.customClass) {
|
|
55
|
-
info.attr.class +=
|
|
36
|
+
info.attr.class += ` ${this.component.customClass}`;
|
|
56
37
|
}
|
|
57
38
|
return info;
|
|
58
|
-
}
|
|
59
|
-
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
60
41
|
if (this.viewOnly || this.options.hideButtons) {
|
|
61
42
|
this._visible = false;
|
|
62
43
|
}
|
|
@@ -64,8 +45,7 @@ var USWDSButtonComponent = /** @class */ (function (_super) {
|
|
|
64
45
|
component: this.component,
|
|
65
46
|
input: this.getInputInfo(),
|
|
66
47
|
}));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return USWDSButtonComponent;
|
|
70
|
-
}(ButtonComponent));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
71
50
|
exports.default = USWDSButtonComponent;
|
|
51
|
+
USWDSButtonComponent.editForm = Button_form_1.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import editForm from './Checkbox.form';
|
|
2
|
-
declare const CheckboxComponent:
|
|
2
|
+
declare const CheckboxComponent: any;
|
|
3
3
|
export default class USWDSCheckboxComponent extends CheckboxComponent {
|
|
4
4
|
noField: any;
|
|
5
5
|
static editForm: typeof editForm;
|
|
@@ -1,35 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function default_1() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
]], extend, false));
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.checkbox.editForm;
|
|
5
|
+
function default_1(...extend) {
|
|
6
|
+
return baseEditForm([
|
|
7
|
+
{
|
|
8
|
+
key: 'display',
|
|
9
|
+
components: [
|
|
10
|
+
{
|
|
11
|
+
type: 'checkbox',
|
|
12
|
+
input: true,
|
|
13
|
+
weight: 1000,
|
|
14
|
+
label: 'Tile view',
|
|
15
|
+
tooltip: 'Tile view for this component',
|
|
16
|
+
key: 'tileView',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
], ...extend);
|
|
34
21
|
}
|
|
35
22
|
exports.default = default_1;
|
|
@@ -1,33 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function USWDSCheckboxComponent() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
USWDSCheckboxComponent.prototype.render = function (element) {
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const Checkbox_form_1 = require("./Checkbox.form");
|
|
5
|
+
const CheckboxComponent = js_1.Components.components.checkbox;
|
|
6
|
+
class USWDSCheckboxComponent extends CheckboxComponent {
|
|
7
|
+
render(element) {
|
|
27
8
|
this.noField = true;
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return USWDSCheckboxComponent;
|
|
32
|
-
}(CheckboxComponent));
|
|
9
|
+
return super.render(element);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
33
12
|
exports.default = USWDSCheckboxComponent;
|
|
13
|
+
USWDSCheckboxComponent.editForm = Checkbox_form_1.default;
|
|
@@ -4,7 +4,7 @@ import USWDSCheckboxComponent from './checkbox/Checkbox';
|
|
|
4
4
|
import USWDSSelectBoxesComponent from './selectboxes/SelectBoxes';
|
|
5
5
|
declare const _default: {
|
|
6
6
|
select: typeof USWDSSelectComponent;
|
|
7
|
-
radio:
|
|
7
|
+
radio: any;
|
|
8
8
|
button: typeof USWDSButtonComponent;
|
|
9
9
|
checkbox: typeof USWDSCheckboxComponent;
|
|
10
10
|
selectboxes: typeof USWDSSelectBoxesComponent;
|
package/lib/components/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const Select_1 = require("./Select");
|
|
4
|
+
const Radio_1 = require("./radio/Radio");
|
|
5
|
+
const Button_1 = require("./button/Button");
|
|
6
|
+
const Checkbox_1 = require("./checkbox/Checkbox");
|
|
7
|
+
const SelectBoxes_1 = require("./selectboxes/SelectBoxes");
|
|
8
8
|
exports.default = {
|
|
9
9
|
select: Select_1.default,
|
|
10
10
|
radio: Radio_1.default,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const RadioComponent:
|
|
1
|
+
declare const RadioComponent: any;
|
|
2
2
|
export default RadioComponent;
|
|
@@ -1,35 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function default_1() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
]], extend, false));
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.radio.editForm;
|
|
5
|
+
function default_1(...extend) {
|
|
6
|
+
return baseEditForm([
|
|
7
|
+
{
|
|
8
|
+
key: 'display',
|
|
9
|
+
components: [
|
|
10
|
+
{
|
|
11
|
+
type: 'checkbox',
|
|
12
|
+
input: true,
|
|
13
|
+
weight: 1000,
|
|
14
|
+
label: 'Tile view',
|
|
15
|
+
tooltip: 'Tile view for this component',
|
|
16
|
+
key: 'tileView',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
], ...extend);
|
|
34
21
|
}
|
|
35
22
|
exports.default = default_1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const Radio_form_1 = require("./Radio.form");
|
|
5
|
+
const RadioComponent = js_1.Components.components.radio;
|
|
6
6
|
RadioComponent.editForm = Radio_form_1.default;
|
|
7
|
-
|
|
7
|
+
const render = RadioComponent.prototype.render;
|
|
8
8
|
RadioComponent.prototype.render = function () {
|
|
9
9
|
this.noField = true;
|
|
10
10
|
return render.call(this);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import editForm from './SelectBoxes.form';
|
|
2
|
-
declare const SelectBoxesComponent:
|
|
2
|
+
declare const SelectBoxesComponent: any;
|
|
3
3
|
export default class USWDSSelectBoxesComponent extends SelectBoxesComponent {
|
|
4
4
|
static editForm: typeof editForm;
|
|
5
5
|
}
|
|
@@ -1,35 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function default_1() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
]], extend, false));
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.selectboxes.editForm;
|
|
5
|
+
function default_1(...extend) {
|
|
6
|
+
return baseEditForm([
|
|
7
|
+
{
|
|
8
|
+
key: 'display',
|
|
9
|
+
components: [
|
|
10
|
+
{
|
|
11
|
+
type: 'checkbox',
|
|
12
|
+
input: true,
|
|
13
|
+
weight: 1000,
|
|
14
|
+
label: 'Tile view',
|
|
15
|
+
tooltip: 'Tile view for this component',
|
|
16
|
+
key: 'tileView',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
], ...extend);
|
|
34
21
|
}
|
|
35
22
|
exports.default = default_1;
|
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function USWDSSelectBoxesComponent() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
USWDSSelectBoxesComponent.editForm = SelectBoxes_form_1.default;
|
|
27
|
-
return USWDSSelectBoxesComponent;
|
|
28
|
-
}(SelectBoxesComponent));
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const SelectBoxes_form_1 = require("./SelectBoxes.form");
|
|
5
|
+
const SelectBoxesComponent = js_1.Components.components.selectboxes;
|
|
6
|
+
class USWDSSelectBoxesComponent extends SelectBoxesComponent {
|
|
7
|
+
}
|
|
29
8
|
exports.default = USWDSSelectBoxesComponent;
|
|
9
|
+
USWDSSelectBoxesComponent.editForm = SelectBoxes_form_1.default;
|
package/lib/index.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ declare const _default: {
|
|
|
192
192
|
};
|
|
193
193
|
components: {
|
|
194
194
|
select: typeof import("./components/Select").default;
|
|
195
|
-
radio:
|
|
195
|
+
radio: any;
|
|
196
196
|
button: typeof import("./components/button/Button").default;
|
|
197
197
|
checkbox: typeof import("./components/checkbox/Checkbox").default;
|
|
198
198
|
selectboxes: typeof import("./components/selectboxes/SelectBoxes").default;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const templates_1 = require("./templates");
|
|
4
|
+
const components_1 = require("./components");
|
|
5
5
|
exports.default = {
|
|
6
6
|
templates: templates_1.default,
|
|
7
7
|
components: components_1.default,
|
package/lib/templates/index.js
CHANGED
|
@@ -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 };
|