@formio/js 5.0.0-dev.5670.4e330b8 → 5.0.0-dev.5670.71b75b1
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/dist/formio.form.js +7 -7
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +7 -7
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Webform.d.ts +7 -0
- package/lib/cjs/Webform.js +13 -4
- package/lib/cjs/components/_classes/component/Component.d.ts +13 -0
- package/lib/cjs/components/_classes/component/Component.js +23 -13
- package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +1 -1
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +8 -1
- package/lib/cjs/components/form/Form.d.ts +7 -0
- package/lib/cjs/components/form/Form.js +10 -1
- package/lib/cjs/components/number/Number.js +1 -1
- package/lib/cjs/components/number/fixtures/comp8.d.ts +32 -0
- package/lib/cjs/components/number/fixtures/comp8.js +28 -0
- package/lib/cjs/components/number/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/number/fixtures/index.js +3 -1
- package/lib/cjs/components/phonenumber/fixtures/comp2.d.ts +16 -0
- package/lib/cjs/components/phonenumber/fixtures/comp2.js +25 -0
- package/lib/cjs/components/phonenumber/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/phonenumber/fixtures/index.js +3 -1
- package/lib/cjs/components/select/Select.js +1 -2
- package/lib/cjs/components/signature/Signature.d.ts +0 -1
- package/lib/cjs/components/signature/Signature.js +1 -1
- package/lib/mjs/Webform.d.ts +7 -0
- package/lib/mjs/Webform.js +13 -4
- package/lib/mjs/components/_classes/component/Component.d.ts +13 -0
- package/lib/mjs/components/_classes/component/Component.js +31 -13
- package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +1 -1
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +8 -1
- package/lib/mjs/components/form/Form.d.ts +7 -0
- package/lib/mjs/components/form/Form.js +10 -1
- package/lib/mjs/components/number/Number.js +1 -1
- package/lib/mjs/components/number/fixtures/comp8.d.ts +32 -0
- package/lib/mjs/components/number/fixtures/comp8.js +26 -0
- package/lib/mjs/components/number/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/number/fixtures/index.js +2 -1
- package/lib/mjs/components/phonenumber/fixtures/comp2.d.ts +16 -0
- package/lib/mjs/components/phonenumber/fixtures/comp2.js +23 -0
- package/lib/mjs/components/phonenumber/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/phonenumber/fixtures/index.js +2 -1
- package/lib/mjs/components/select/Select.js +1 -2
- package/lib/mjs/components/signature/Signature.d.ts +0 -1
- package/lib/mjs/components/signature/Signature.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
components: [
|
|
3
|
+
{
|
|
4
|
+
"label": "Number",
|
|
5
|
+
"applyMaskOn": "change",
|
|
6
|
+
"mask": false,
|
|
7
|
+
"tableView": false,
|
|
8
|
+
"delimiter": false,
|
|
9
|
+
"requireDecimal": false,
|
|
10
|
+
"inputFormat": "plain",
|
|
11
|
+
"truncateMultipleSpaces": false,
|
|
12
|
+
"key": "number",
|
|
13
|
+
"type": "number",
|
|
14
|
+
"input": true,
|
|
15
|
+
"decimalSymbol": "-"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "button",
|
|
19
|
+
"label": "Submit",
|
|
20
|
+
"key": "submit",
|
|
21
|
+
"disableOnInvalid": true,
|
|
22
|
+
"input": true,
|
|
23
|
+
"tableView": false
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
};
|
|
@@ -5,4 +5,5 @@ import comp4 from './comp4';
|
|
|
5
5
|
import comp5 from './comp5';
|
|
6
6
|
import comp6 from './comp6';
|
|
7
7
|
import comp7 from './comp7';
|
|
8
|
-
|
|
8
|
+
import comp8 from './comp8';
|
|
9
|
+
export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
|
|
@@ -5,4 +5,5 @@ import comp4 from './comp4';
|
|
|
5
5
|
import comp5 from './comp5';
|
|
6
6
|
import comp6 from './comp6';
|
|
7
7
|
import comp7 from './comp7';
|
|
8
|
-
|
|
8
|
+
import comp8 from './comp8';
|
|
9
|
+
export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let components: {
|
|
3
|
+
label: string;
|
|
4
|
+
applyMaskOn: string;
|
|
5
|
+
allowMultipleMasks: boolean;
|
|
6
|
+
tableView: boolean;
|
|
7
|
+
key: string;
|
|
8
|
+
type: string;
|
|
9
|
+
inputMasks: {
|
|
10
|
+
label: string;
|
|
11
|
+
mask: string;
|
|
12
|
+
}[];
|
|
13
|
+
input: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
components: [
|
|
3
|
+
{
|
|
4
|
+
"label": "Phone Number",
|
|
5
|
+
"applyMaskOn": "change",
|
|
6
|
+
"allowMultipleMasks": true,
|
|
7
|
+
"tableView": true,
|
|
8
|
+
"key": "phoneNumber",
|
|
9
|
+
"type": "phoneNumber",
|
|
10
|
+
"inputMasks": [
|
|
11
|
+
{
|
|
12
|
+
"label": "Canada",
|
|
13
|
+
"mask": "(999) 999-9999"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"label": "Other",
|
|
17
|
+
"mask": ""
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"input": true
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { Formio } from '../../Formio';
|
|
3
3
|
import ListComponent from '../_classes/list/ListComponent';
|
|
4
|
-
import Input from '../_classes/input/Input';
|
|
5
4
|
import Form from '../../Form';
|
|
6
5
|
import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, isSelectResourceWithObjectValue, removeHTML } from '../../utils/utils';
|
|
7
6
|
import Choices from '../../utils/ChoicesWrapper';
|
|
@@ -863,7 +862,7 @@ export default class SelectComponent extends ListComponent {
|
|
|
863
862
|
this.choices.containerOuter.element.setAttribute('tabIndex', '-1');
|
|
864
863
|
this.addEventListener(this.choices.containerOuter.element, 'focus', () => this.focusableElement.focus());
|
|
865
864
|
}
|
|
866
|
-
|
|
865
|
+
this.addFocusBlurEvents(this.choices.input.element);
|
|
867
866
|
if (this.itemsFromUrl && !this.component.noRefreshOnScroll) {
|
|
868
867
|
this.scrollList = this.choices.choiceList.element;
|
|
869
868
|
this.addEventListener(this.scrollList, 'scroll', () => this.onScroll());
|
|
@@ -22,7 +22,6 @@ export default class SignatureComponent extends Input {
|
|
|
22
22
|
showCanvas(show: any): void;
|
|
23
23
|
onDisabled(): void;
|
|
24
24
|
checkSize(force: any, scale: any): void;
|
|
25
|
-
getModalPreviewTemplate(): any;
|
|
26
25
|
signaturePad: SignaturePad | null | undefined;
|
|
27
26
|
observer: any;
|
|
28
27
|
getValueAsString(value: any): "" | "Yes" | "No";
|
|
@@ -169,7 +169,7 @@ export default class SignatureComponent extends Input {
|
|
|
169
169
|
return false;
|
|
170
170
|
}
|
|
171
171
|
getModalPreviewTemplate() {
|
|
172
|
-
return this.
|
|
172
|
+
return this.renderModalPreview({
|
|
173
173
|
previewText: this.dataValue ?
|
|
174
174
|
`<img src=${this.dataValue} ${this._referenceAttributeName}='openModal' style="width: 100%;height: 100%;" />` :
|
|
175
175
|
this.t('Click to Sign')
|