@formio/js 5.0.0-dev.5855.daa98f8 → 5.0.0-dev.5859.5c76cd6
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 +70 -37
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +70 -37
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.js +50 -6
- package/dist/formio.min.js +1 -1
- package/dist/formio.utils.js +69 -36
- package/dist/formio.utils.min.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +2 -2
- package/lib/cjs/utils/formUtils.d.ts +2 -2
- package/lib/mjs/components/_classes/component/Component.js +2 -2
- package/lib/mjs/utils/formUtils.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1757,12 +1757,12 @@ class Component extends Element_1.default {
|
|
|
1757
1757
|
var _a, _b, _c;
|
|
1758
1758
|
if ((_a = this.root) === null || _a === void 0 ? void 0 : _a.currentSelection) {
|
|
1759
1759
|
if ((_b = this.refs.input) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1760
|
-
const {
|
|
1760
|
+
const { index } = this.root.currentSelection;
|
|
1761
1761
|
let input = this.refs.input[index];
|
|
1762
1762
|
const isInputRangeSelectable = (i) => /text|search|password|tel|url/i.test((i === null || i === void 0 ? void 0 : i.type) || '');
|
|
1763
1763
|
if (input) {
|
|
1764
1764
|
if (isInputRangeSelectable(input)) {
|
|
1765
|
-
input.setSelectionRange(
|
|
1765
|
+
input.setSelectionRange(input.value.length, input.value.length);
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
else {
|
|
@@ -15,8 +15,8 @@ export const getComponentPath: typeof Utils.getComponentPath;
|
|
|
15
15
|
export const isComponentNestedDataType: typeof Utils.isComponentNestedDataType;
|
|
16
16
|
export const componentPath: typeof Utils.componentPath;
|
|
17
17
|
export const componentChildPath: any;
|
|
18
|
-
export const eachComponentDataAsync: (components: Component[], data: DataObject, fn:
|
|
19
|
-
export const eachComponentData: (components: Component[], data: DataObject, fn:
|
|
18
|
+
export const eachComponentDataAsync: (components: Component[], data: DataObject, fn: EachComponentDataAsyncCallback, path?: string | undefined, index?: number | undefined, parent?: any, includeAll?: boolean | undefined) => Promise<void>;
|
|
19
|
+
export const eachComponentData: (components: Component[], data: DataObject, fn: EachComponentDataCallback, path?: string | undefined, index?: number | undefined, parent?: any, includeAll?: boolean | undefined) => void;
|
|
20
20
|
export const getComponentKey: typeof Utils.getComponentKey;
|
|
21
21
|
export const getContextualRowPath: typeof Utils.getContextualRowPath;
|
|
22
22
|
export const getContextualRowData: typeof Utils.getContextualRowData;
|
|
@@ -1720,12 +1720,12 @@ export default class Component extends Element {
|
|
|
1720
1720
|
restoreCaretPosition() {
|
|
1721
1721
|
if (this.root?.currentSelection) {
|
|
1722
1722
|
if (this.refs.input?.length) {
|
|
1723
|
-
const {
|
|
1723
|
+
const { index } = this.root.currentSelection;
|
|
1724
1724
|
let input = this.refs.input[index];
|
|
1725
1725
|
const isInputRangeSelectable = (i) => /text|search|password|tel|url/i.test(i?.type || '');
|
|
1726
1726
|
if (input) {
|
|
1727
1727
|
if (isInputRangeSelectable(input)) {
|
|
1728
|
-
input.setSelectionRange(
|
|
1728
|
+
input.setSelectionRange(input.value.length, input.value.length);
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
else {
|
|
@@ -15,8 +15,8 @@ export const getComponentPath: typeof Utils.getComponentPath;
|
|
|
15
15
|
export const isComponentNestedDataType: typeof Utils.isComponentNestedDataType;
|
|
16
16
|
export const componentPath: typeof Utils.componentPath;
|
|
17
17
|
export const componentChildPath: any;
|
|
18
|
-
export const eachComponentDataAsync: (components: Component[], data: DataObject, fn:
|
|
19
|
-
export const eachComponentData: (components: Component[], data: DataObject, fn:
|
|
18
|
+
export const eachComponentDataAsync: (components: Component[], data: DataObject, fn: EachComponentDataAsyncCallback, path?: string | undefined, index?: number | undefined, parent?: any, includeAll?: boolean | undefined) => Promise<void>;
|
|
19
|
+
export const eachComponentData: (components: Component[], data: DataObject, fn: EachComponentDataCallback, path?: string | undefined, index?: number | undefined, parent?: any, includeAll?: boolean | undefined) => void;
|
|
20
20
|
export const getComponentKey: typeof Utils.getComponentKey;
|
|
21
21
|
export const getContextualRowPath: typeof Utils.getContextualRowPath;
|
|
22
22
|
export const getContextualRowData: typeof Utils.getContextualRowData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/js",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.5859.5c76cd6",
|
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@formio/bootstrap": "3.0.0-dev.98.17ba6ea",
|
|
84
84
|
"@formio/choices.js": "^10.2.1",
|
|
85
|
-
"@formio/core": "v2.1.0-dev.
|
|
85
|
+
"@formio/core": "v2.1.0-dev.165.e6994a9",
|
|
86
86
|
"@formio/text-mask-addons": "^3.8.0-formio.2",
|
|
87
87
|
"@formio/vanilla-text-mask": "^5.1.1-formio.1",
|
|
88
88
|
"abortcontroller-polyfill": "^1.7.5",
|