@formio/js 5.0.0-dev.5759.a3476ed → 5.0.0-dev.5764.34bd69a
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 +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/signature/editForm/Signature.edit.display.d.ts +6 -0
- package/lib/cjs/components/signature/editForm/Signature.edit.display.js +1 -0
- package/lib/cjs/components/time/Time.js +0 -5
- package/lib/mjs/components/signature/editForm/Signature.edit.display.d.ts +6 -0
- package/lib/mjs/components/signature/editForm/Signature.edit.display.js +1 -0
- package/lib/mjs/components/time/Time.js +0 -11
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ declare const _default: ({
|
|
|
7
7
|
placeholder: string;
|
|
8
8
|
weight: number;
|
|
9
9
|
conditional?: undefined;
|
|
10
|
+
customConditional?: undefined;
|
|
10
11
|
ignore?: undefined;
|
|
11
12
|
} | {
|
|
12
13
|
type: string;
|
|
@@ -23,6 +24,7 @@ declare const _default: ({
|
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
weight: number;
|
|
27
|
+
customConditional?: undefined;
|
|
26
28
|
ignore?: undefined;
|
|
27
29
|
} | {
|
|
28
30
|
weight: number;
|
|
@@ -30,6 +32,9 @@ declare const _default: ({
|
|
|
30
32
|
label: string;
|
|
31
33
|
tooltip: string;
|
|
32
34
|
key: string;
|
|
35
|
+
customConditional: ({ options }: {
|
|
36
|
+
options: any;
|
|
37
|
+
}) => boolean;
|
|
33
38
|
input: boolean;
|
|
34
39
|
placeholder?: undefined;
|
|
35
40
|
conditional?: undefined;
|
|
@@ -44,5 +49,6 @@ declare const _default: ({
|
|
|
44
49
|
placeholder?: undefined;
|
|
45
50
|
weight?: undefined;
|
|
46
51
|
conditional?: undefined;
|
|
52
|
+
customConditional?: undefined;
|
|
47
53
|
})[];
|
|
48
54
|
export default _default;
|
|
@@ -39,6 +39,7 @@ exports.default = [
|
|
|
39
39
|
label: 'Keep Overlay Aspect Ratio',
|
|
40
40
|
tooltip: 'If checked, the field will have the same aspect ratio as its preview.',
|
|
41
41
|
key: 'keepOverlayRatio',
|
|
42
|
+
customConditional: ({ options }) => { var _a; return (((_a = options === null || options === void 0 ? void 0 : options.editForm) === null || _a === void 0 ? void 0 : _a.display) === 'pdf'); },
|
|
42
43
|
input: true
|
|
43
44
|
},
|
|
44
45
|
{
|
|
@@ -18,11 +18,6 @@ class TimeComponent extends TextField_1.default {
|
|
|
18
18
|
dataFormat: defaultDataFormat,
|
|
19
19
|
}, ...extend);
|
|
20
20
|
}
|
|
21
|
-
static get serverConditionSettings() {
|
|
22
|
-
return Object.assign(Object.assign({}, super.serverConditionSettings), { valueComponent(classComp) {
|
|
23
|
-
return Object.assign(Object.assign({}, classComp), { type: 'time' });
|
|
24
|
-
} });
|
|
25
|
-
}
|
|
26
21
|
constructor(component, options, data) {
|
|
27
22
|
super(component, options, data);
|
|
28
23
|
const { edge: isEdgeBrowser, version: edgeVersion } = (0, utils_1.getBrowserInfo)();
|
|
@@ -7,6 +7,7 @@ declare const _default: ({
|
|
|
7
7
|
placeholder: string;
|
|
8
8
|
weight: number;
|
|
9
9
|
conditional?: undefined;
|
|
10
|
+
customConditional?: undefined;
|
|
10
11
|
ignore?: undefined;
|
|
11
12
|
} | {
|
|
12
13
|
type: string;
|
|
@@ -23,6 +24,7 @@ declare const _default: ({
|
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
weight: number;
|
|
27
|
+
customConditional?: undefined;
|
|
26
28
|
ignore?: undefined;
|
|
27
29
|
} | {
|
|
28
30
|
weight: number;
|
|
@@ -30,6 +32,9 @@ declare const _default: ({
|
|
|
30
32
|
label: string;
|
|
31
33
|
tooltip: string;
|
|
32
34
|
key: string;
|
|
35
|
+
customConditional: ({ options }: {
|
|
36
|
+
options: any;
|
|
37
|
+
}) => boolean;
|
|
33
38
|
input: boolean;
|
|
34
39
|
placeholder?: undefined;
|
|
35
40
|
conditional?: undefined;
|
|
@@ -44,5 +49,6 @@ declare const _default: ({
|
|
|
44
49
|
placeholder?: undefined;
|
|
45
50
|
weight?: undefined;
|
|
46
51
|
conditional?: undefined;
|
|
52
|
+
customConditional?: undefined;
|
|
47
53
|
})[];
|
|
48
54
|
export default _default;
|
|
@@ -37,6 +37,7 @@ export default [
|
|
|
37
37
|
label: 'Keep Overlay Aspect Ratio',
|
|
38
38
|
tooltip: 'If checked, the field will have the same aspect ratio as its preview.',
|
|
39
39
|
key: 'keepOverlayRatio',
|
|
40
|
+
customConditional: ({ options }) => (options?.editForm?.display === 'pdf'),
|
|
40
41
|
input: true
|
|
41
42
|
},
|
|
42
43
|
{
|
|
@@ -13,17 +13,6 @@ export default class TimeComponent extends TextFieldComponent {
|
|
|
13
13
|
dataFormat: defaultDataFormat,
|
|
14
14
|
}, ...extend);
|
|
15
15
|
}
|
|
16
|
-
static get serverConditionSettings() {
|
|
17
|
-
return {
|
|
18
|
-
...super.serverConditionSettings,
|
|
19
|
-
valueComponent(classComp) {
|
|
20
|
-
return {
|
|
21
|
-
...classComp,
|
|
22
|
-
type: 'time',
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
16
|
constructor(component, options, data) {
|
|
28
17
|
super(component, options, data);
|
|
29
18
|
const { edge: isEdgeBrowser, version: edgeVersion } = getBrowserInfo();
|