@tsed/schema-formio 7.83.3 → 8.0.0-alpha.10
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/lib/browser/schema-formio.umd.min.js +1 -1
- package/lib/browser/schema-formio.umd.min.js.map +1 -1
- package/lib/esm/components/anyToComponent.js.map +1 -1
- package/lib/esm/components/arrayToComponent.js.map +1 -1
- package/lib/esm/components/booleanToComponent.js.map +1 -1
- package/lib/esm/components/dateToComponent.js.map +1 -1
- package/lib/esm/components/defaultToComponent.js.map +1 -1
- package/lib/esm/components/enumToComponent.js.map +1 -1
- package/lib/esm/components/nestedToComponent.js.map +1 -1
- package/lib/esm/components/numberToComponent.js.map +1 -1
- package/lib/esm/components/propertiesToComponents.js.map +1 -1
- package/lib/esm/components/stringToComponent.js.map +1 -1
- package/lib/esm/decorators/component.js.map +1 -1
- package/lib/esm/decorators/customConditional.js +1 -1
- package/lib/esm/decorators/customConditional.js.map +1 -1
- package/lib/esm/decorators/dataSourceJson.js +1 -1
- package/lib/esm/decorators/dataSourceJson.js.map +1 -1
- package/lib/esm/decorators/dataSourceUrl.js.map +1 -1
- package/lib/esm/decorators/form.js +2 -2
- package/lib/esm/decorators/form.js.map +1 -1
- package/lib/esm/decorators/inputTags.js.map +1 -1
- package/lib/esm/decorators/label.js.map +1 -1
- package/lib/esm/registries/FormioMappersContainer.js.map +1 -1
- package/lib/esm/utils/getFormioProps.js.map +1 -1
- package/lib/esm/utils/getFormioSchema.js +6 -6
- package/lib/esm/utils/getFormioSchema.js.map +1 -1
- package/lib/esm/utils/getRef.js.map +1 -1
- package/lib/types/decorators/customConditional.d.ts +2 -2
- package/lib/types/utils/getFormioSchema.d.ts +14 -14
- package/package.json +22 -20
- package/vitest.config.mts +5 -5
- package/lib/cjs/components/anyToComponent.js +0 -28
- package/lib/cjs/components/anyToComponent.js.map +0 -1
- package/lib/cjs/components/arrayToComponent.js +0 -40
- package/lib/cjs/components/arrayToComponent.js.map +0 -1
- package/lib/cjs/components/booleanToComponent.js +0 -14
- package/lib/cjs/components/booleanToComponent.js.map +0 -1
- package/lib/cjs/components/dateToComponent.js +0 -63
- package/lib/cjs/components/dateToComponent.js.map +0 -1
- package/lib/cjs/components/defaultToComponent.js +0 -18
- package/lib/cjs/components/defaultToComponent.js.map +0 -1
- package/lib/cjs/components/enumToComponent.js +0 -33
- package/lib/cjs/components/enumToComponent.js.map +0 -1
- package/lib/cjs/components/mapToComponent.js +0 -20
- package/lib/cjs/components/mapToComponent.js.map +0 -1
- package/lib/cjs/components/nestedToComponent.js +0 -25
- package/lib/cjs/components/nestedToComponent.js.map +0 -1
- package/lib/cjs/components/numberToComponent.js +0 -21
- package/lib/cjs/components/numberToComponent.js.map +0 -1
- package/lib/cjs/components/objectToEditGrid.js +0 -16
- package/lib/cjs/components/objectToEditGrid.js.map +0 -1
- package/lib/cjs/components/panelToComponent.js +0 -16
- package/lib/cjs/components/panelToComponent.js.map +0 -1
- package/lib/cjs/components/propertiesToComponents.js +0 -93
- package/lib/cjs/components/propertiesToComponents.js.map +0 -1
- package/lib/cjs/components/stringToComponent.js +0 -43
- package/lib/cjs/components/stringToComponent.js.map +0 -1
- package/lib/cjs/decorators/component.js +0 -35
- package/lib/cjs/decorators/component.js.map +0 -1
- package/lib/cjs/decorators/conditional.js +0 -53
- package/lib/cjs/decorators/conditional.js.map +0 -1
- package/lib/cjs/decorators/currency.js +0 -24
- package/lib/cjs/decorators/currency.js.map +0 -1
- package/lib/cjs/decorators/customClass.js +0 -18
- package/lib/cjs/decorators/customClass.js.map +0 -1
- package/lib/cjs/decorators/customConditional.js +0 -32
- package/lib/cjs/decorators/customConditional.js.map +0 -1
- package/lib/cjs/decorators/dataSourceJson.js +0 -27
- package/lib/cjs/decorators/dataSourceJson.js.map +0 -1
- package/lib/cjs/decorators/dataSourceUrl.js +0 -22
- package/lib/cjs/decorators/dataSourceUrl.js.map +0 -1
- package/lib/cjs/decorators/errorLabel.js +0 -18
- package/lib/cjs/decorators/errorLabel.js.map +0 -1
- package/lib/cjs/decorators/errorMessage.js +0 -17
- package/lib/cjs/decorators/errorMessage.js.map +0 -1
- package/lib/cjs/decorators/form.js +0 -22
- package/lib/cjs/decorators/form.js.map +0 -1
- package/lib/cjs/decorators/hidden.js +0 -22
- package/lib/cjs/decorators/hidden.js.map +0 -1
- package/lib/cjs/decorators/inputTags.js +0 -23
- package/lib/cjs/decorators/inputTags.js.map +0 -1
- package/lib/cjs/decorators/label.js +0 -24
- package/lib/cjs/decorators/label.js.map +0 -1
- package/lib/cjs/decorators/mask.js +0 -50
- package/lib/cjs/decorators/mask.js.map +0 -1
- package/lib/cjs/decorators/maxWords.js +0 -17
- package/lib/cjs/decorators/maxWords.js.map +0 -1
- package/lib/cjs/decorators/minWords.js +0 -17
- package/lib/cjs/decorators/minWords.js.map +0 -1
- package/lib/cjs/decorators/modalEdit.js +0 -18
- package/lib/cjs/decorators/modalEdit.js.map +0 -1
- package/lib/cjs/decorators/multiple.js +0 -18
- package/lib/cjs/decorators/multiple.js.map +0 -1
- package/lib/cjs/decorators/openWhenEmpty.js +0 -18
- package/lib/cjs/decorators/openWhenEmpty.js.map +0 -1
- package/lib/cjs/decorators/password.js +0 -20
- package/lib/cjs/decorators/password.js.map +0 -1
- package/lib/cjs/decorators/placeholder.js +0 -19
- package/lib/cjs/decorators/placeholder.js.map +0 -1
- package/lib/cjs/decorators/prefix.js +0 -18
- package/lib/cjs/decorators/prefix.js.map +0 -1
- package/lib/cjs/decorators/select.js +0 -22
- package/lib/cjs/decorators/select.js.map +0 -1
- package/lib/cjs/decorators/suffix.js +0 -18
- package/lib/cjs/decorators/suffix.js.map +0 -1
- package/lib/cjs/decorators/tableView.js +0 -19
- package/lib/cjs/decorators/tableView.js.map +0 -1
- package/lib/cjs/decorators/tabs.js +0 -22
- package/lib/cjs/decorators/tabs.js.map +0 -1
- package/lib/cjs/decorators/textCase.js +0 -19
- package/lib/cjs/decorators/textCase.js.map +0 -1
- package/lib/cjs/decorators/textarea.js +0 -20
- package/lib/cjs/decorators/textarea.js.map +0 -1
- package/lib/cjs/decorators/tooltip.js +0 -19
- package/lib/cjs/decorators/tooltip.js.map +0 -1
- package/lib/cjs/decorators/validate.js +0 -22
- package/lib/cjs/decorators/validate.js.map +0 -1
- package/lib/cjs/domain/FormioDataResolver.js +0 -3
- package/lib/cjs/domain/FormioDataResolver.js.map +0 -1
- package/lib/cjs/index.js +0 -56
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/registries/FormioMappersContainer.js +0 -21
- package/lib/cjs/registries/FormioMappersContainer.js.map +0 -1
- package/lib/cjs/registries/FormsContainer.js +0 -6
- package/lib/cjs/registries/FormsContainer.js.map +0 -1
- package/lib/cjs/utils/getFormioProps.js +0 -17
- package/lib/cjs/utils/getFormioProps.js.map +0 -1
- package/lib/cjs/utils/getFormioSchema.js +0 -54
- package/lib/cjs/utils/getFormioSchema.js.map +0 -1
- package/lib/cjs/utils/getRef.js +0 -12
- package/lib/cjs/utils/getRef.js.map +0 -1
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/components/anyToComponent.d.ts +0 -1
- package/lib/types-esm/components/arrayToComponent.d.ts +0 -1
- package/lib/types-esm/components/booleanToComponent.d.ts +0 -1
- package/lib/types-esm/components/dateToComponent.d.ts +0 -1
- package/lib/types-esm/components/defaultToComponent.d.ts +0 -1
- package/lib/types-esm/components/enumToComponent.d.ts +0 -1
- package/lib/types-esm/components/mapToComponent.d.ts +0 -1
- package/lib/types-esm/components/nestedToComponent.d.ts +0 -1
- package/lib/types-esm/components/numberToComponent.d.ts +0 -1
- package/lib/types-esm/components/objectToEditGrid.d.ts +0 -1
- package/lib/types-esm/components/panelToComponent.d.ts +0 -1
- package/lib/types-esm/components/propertiesToComponents.d.ts +0 -1
- package/lib/types-esm/components/stringToComponent.d.ts +0 -1
- package/lib/types-esm/decorators/component.d.ts +0 -8
- package/lib/types-esm/decorators/conditional.d.ts +0 -33
- package/lib/types-esm/decorators/currency.d.ts +0 -8
- package/lib/types-esm/decorators/customClass.d.ts +0 -8
- package/lib/types-esm/decorators/customConditional.d.ts +0 -59
- package/lib/types-esm/decorators/dataSourceJson.d.ts +0 -8
- package/lib/types-esm/decorators/dataSourceUrl.d.ts +0 -8
- package/lib/types-esm/decorators/errorLabel.d.ts +0 -8
- package/lib/types-esm/decorators/errorMessage.d.ts +0 -9
- package/lib/types-esm/decorators/form.d.ts +0 -6
- package/lib/types-esm/decorators/hidden.d.ts +0 -12
- package/lib/types-esm/decorators/inputTags.d.ts +0 -8
- package/lib/types-esm/decorators/label.d.ts +0 -9
- package/lib/types-esm/decorators/mask.d.ts +0 -37
- package/lib/types-esm/decorators/maxWords.d.ts +0 -9
- package/lib/types-esm/decorators/minWords.d.ts +0 -9
- package/lib/types-esm/decorators/modalEdit.d.ts +0 -8
- package/lib/types-esm/decorators/multiple.d.ts +0 -8
- package/lib/types-esm/decorators/openWhenEmpty.d.ts +0 -8
- package/lib/types-esm/decorators/password.d.ts +0 -12
- package/lib/types-esm/decorators/placeholder.d.ts +0 -9
- package/lib/types-esm/decorators/prefix.d.ts +0 -8
- package/lib/types-esm/decorators/select.d.ts +0 -14
- package/lib/types-esm/decorators/suffix.d.ts +0 -8
- package/lib/types-esm/decorators/tableView.d.ts +0 -9
- package/lib/types-esm/decorators/tabs.d.ts +0 -8
- package/lib/types-esm/decorators/textCase.d.ts +0 -9
- package/lib/types-esm/decorators/textarea.d.ts +0 -12
- package/lib/types-esm/decorators/tooltip.d.ts +0 -9
- package/lib/types-esm/decorators/validate.d.ts +0 -10
- package/lib/types-esm/domain/FormioDataResolver.d.ts +0 -7
- package/lib/types-esm/index.d.ts +0 -52
- package/lib/types-esm/registries/FormioMappersContainer.d.ts +0 -6
- package/lib/types-esm/registries/FormsContainer.d.ts +0 -2
- package/lib/types-esm/utils/getFormioProps.d.ts +0 -1
- package/lib/types-esm/utils/getFormioSchema.d.ts +0 -16
- package/lib/types-esm/utils/getRef.d.ts +0 -1
- /package/{webpack.config.js → webpack.config.cjs} +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Masks = exports.Mask = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* An input mask helps the user with input by ensuring a predefined format.
|
|
7
|
-
*
|
|
8
|
-
* - 9: numeric
|
|
9
|
-
* - a: alphabetical
|
|
10
|
-
* - *: alphanumeric
|
|
11
|
-
*
|
|
12
|
-
* Example telephone mask: (999) 999-9999
|
|
13
|
-
*
|
|
14
|
-
* See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
|
|
15
|
-
*
|
|
16
|
-
* @decorator
|
|
17
|
-
* @formio
|
|
18
|
-
* @property
|
|
19
|
-
* @schema
|
|
20
|
-
*/
|
|
21
|
-
function Mask(inputMask, inputMaskPlaceholderChar = "") {
|
|
22
|
-
return (0, component_js_1.Component)({
|
|
23
|
-
inputMask,
|
|
24
|
-
inputMaskPlaceholderChar
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
exports.Mask = Mask;
|
|
28
|
-
/**
|
|
29
|
-
* An input mask helps the user with input by ensuring a predefined format.
|
|
30
|
-
*
|
|
31
|
-
* - 9: numeric
|
|
32
|
-
* - a: alphabetical
|
|
33
|
-
* - *: alphanumeric
|
|
34
|
-
*
|
|
35
|
-
* Example telephone mask: (999) 999-9999
|
|
36
|
-
*
|
|
37
|
-
* See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
|
|
38
|
-
*
|
|
39
|
-
* @decorator
|
|
40
|
-
* @formio
|
|
41
|
-
* @property
|
|
42
|
-
* @schema
|
|
43
|
-
*/
|
|
44
|
-
function Masks(...inputMasks) {
|
|
45
|
-
return (0, component_js_1.Component)({
|
|
46
|
-
inputMasks
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
exports.Masks = Masks;
|
|
50
|
-
//# sourceMappingURL=mask.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mask.js","sourceRoot":"","sources":["../../../src/decorators/mask.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,IAAI,CAAC,SAAiB,EAAE,2BAAmC,EAAE;IAC3E,OAAO,IAAA,wBAAS,EAAC;QACf,SAAS;QACT,wBAAwB;KACzB,CAAC,CAAC;AACL,CAAC;AALD,oBAKC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,KAAK,CAAC,GAAG,UAA2C;IAClE,OAAO,IAAA,wBAAS,EAAC;QACf,UAAU;KACX,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaxWords = void 0;
|
|
4
|
-
const validate_js_1 = require("./validate.js");
|
|
5
|
-
/**
|
|
6
|
-
* Add the minimum amount of words that can be added to this field.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
* @param value
|
|
12
|
-
*/
|
|
13
|
-
function MaxWords(value) {
|
|
14
|
-
return (0, validate_js_1.Validate)("maxWords", value);
|
|
15
|
-
}
|
|
16
|
-
exports.MaxWords = MaxWords;
|
|
17
|
-
//# sourceMappingURL=maxWords.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maxWords.js","sourceRoot":"","sources":["../../../src/decorators/maxWords.ts"],"names":[],"mappings":";;;AAAA,+CAAuC;AAEvC;;;;;;;GAOG;AACH,SAAgB,QAAQ,CAAC,KAAa;IACpC,OAAO,IAAA,sBAAQ,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AACrC,CAAC;AAFD,4BAEC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MinWords = void 0;
|
|
4
|
-
const validate_js_1 = require("./validate.js");
|
|
5
|
-
/**
|
|
6
|
-
* Add the maximum amount of words that can be added to this field.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
* @param value
|
|
12
|
-
*/
|
|
13
|
-
function MinWords(value) {
|
|
14
|
-
return (0, validate_js_1.Validate)("minWords", value);
|
|
15
|
-
}
|
|
16
|
-
exports.MinWords = MinWords;
|
|
17
|
-
//# sourceMappingURL=minWords.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"minWords.js","sourceRoot":"","sources":["../../../src/decorators/minWords.ts"],"names":[],"mappings":";;;AAAA,+CAAuC;AAEvC;;;;;;;GAOG;AACH,SAAgB,QAAQ,CAAC,KAAa;IACpC,OAAO,IAAA,sBAAQ,EAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AACrC,CAAC;AAFD,4BAEC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModalEdit = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Opens up a modal to edit the value of this component.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function ModalEdit(modalEdit = true) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
modalEdit
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.ModalEdit = ModalEdit;
|
|
18
|
-
//# sourceMappingURL=modalEdit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modalEdit.js","sourceRoot":"","sources":["../../../src/decorators/modalEdit.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,SAAS,CAAC,SAAS,GAAG,IAAI;IACxC,OAAO,IAAA,wBAAS,EAAC;QACf,SAAS;KACV,CAAC,CAAC;AACL,CAAC;AAJD,8BAIC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Multiple = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Change the multiple value on the decorated property.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function Multiple(multiple = false) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
multiple
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.Multiple = Multiple;
|
|
18
|
-
//# sourceMappingURL=multiple.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multiple.js","sourceRoot":"","sources":["../../../src/decorators/multiple.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,OAAO,IAAA,wBAAS,EAAC;QACf,QAAQ;KACT,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OpenWhenEmpty = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Open automatically the editgrid when the list is empty.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function OpenWhenEmpty(openWhenEmpty = true) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
openWhenEmpty
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.OpenWhenEmpty = OpenWhenEmpty;
|
|
18
|
-
//# sourceMappingURL=openWhenEmpty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openWhenEmpty.js","sourceRoot":"","sources":["../../../src/decorators/openWhenEmpty.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,aAAa,GAAG,IAAI;IAChD,OAAO,IAAA,wBAAS,EAAC;QACf,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAJD,sCAIC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Password = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Configure the property as Password component.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function Password(props = {}) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
...props,
|
|
15
|
-
type: "password",
|
|
16
|
-
protected: true
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
exports.Password = Password;
|
|
20
|
-
//# sourceMappingURL=password.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password.js","sourceRoot":"","sources":["../../../src/decorators/password.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAMzC;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,QAAsB,EAAE;IAC/C,OAAO,IAAA,wBAAS,EAAC;QACf,GAAG,KAAK;QACR,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACL,CAAC;AAND,4BAMC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Placeholder = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* The placeholder text that will appear when this field is empty.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
* @param placeholder
|
|
12
|
-
*/
|
|
13
|
-
function Placeholder(placeholder) {
|
|
14
|
-
return (0, component_js_1.Component)({
|
|
15
|
-
placeholder
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.Placeholder = Placeholder;
|
|
19
|
-
//# sourceMappingURL=placeholder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.js","sourceRoot":"","sources":["../../../src/decorators/placeholder.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,WAAmB;IAC7C,OAAO,IAAA,wBAAS,EAAC;QACf,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAJD,kCAIC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Prefix = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Add prefix word on the decorated field.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function Prefix(prefix) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
prefix
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.Prefix = Prefix;
|
|
18
|
-
//# sourceMappingURL=prefix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefix.js","sourceRoot":"","sources":["../../../src/decorators/prefix.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,MAAM,CAAC,MAAc;IACnC,OAAO,IAAA,wBAAS,EAAC;QACf,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAJD,wBAIC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Select = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Configure the property as Select component.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function Select(props = {}) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
selectThreshold: 0.3,
|
|
15
|
-
input: true,
|
|
16
|
-
widget: "choicesjs",
|
|
17
|
-
...props,
|
|
18
|
-
type: "select"
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
exports.Select = Select;
|
|
22
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/decorators/select.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AASzC;;;;;;GAMG;AACH,SAAgB,MAAM,CAAC,QAAoB,EAAE;IAC3C,OAAO,IAAA,wBAAS,EAAC;QACf,eAAe,EAAE,GAAG;QACpB,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,WAAW;QACnB,GAAG,KAAK;QACR,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;AACL,CAAC;AARD,wBAQC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Suffix = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Add suffix word on the decorated field.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function Suffix(suffix) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
suffix
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.Suffix = Suffix;
|
|
18
|
-
//# sourceMappingURL=suffix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suffix.js","sourceRoot":"","sources":["../../../src/decorators/suffix.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,MAAM,CAAC,MAAc;IACnC,OAAO,IAAA,wBAAS,EAAC;QACf,MAAM;KACP,CAAC,CAAC;AACL,CAAC;AAJD,wBAIC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableView = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Change the visibility of the current property on a table.
|
|
7
|
-
* @param bool
|
|
8
|
-
* @decorator
|
|
9
|
-
* @formio
|
|
10
|
-
* @property
|
|
11
|
-
* @schema
|
|
12
|
-
*/
|
|
13
|
-
function TableView(bool) {
|
|
14
|
-
return (0, component_js_1.Component)({
|
|
15
|
-
tableView: bool
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.TableView = TableView;
|
|
19
|
-
//# sourceMappingURL=tableView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableView.js","sourceRoot":"","sources":["../../../src/decorators/tableView.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,SAAS,CAAC,IAAa;IACrC,OAAO,IAAA,wBAAS,EAAC;QACf,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACL,CAAC;AAJD,8BAIC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tabs = void 0;
|
|
4
|
-
const schema_1 = require("@tsed/schema");
|
|
5
|
-
const change_case_1 = require("change-case");
|
|
6
|
-
/**
|
|
7
|
-
* Group the current property in tabs components.
|
|
8
|
-
* @decorator
|
|
9
|
-
* @formio
|
|
10
|
-
* @property
|
|
11
|
-
* @schema
|
|
12
|
-
*/
|
|
13
|
-
function Tabs(label) {
|
|
14
|
-
return (0, schema_1.JsonEntityFn)((store) => {
|
|
15
|
-
store.schema.customKey("x-formiotabs", {
|
|
16
|
-
key: (0, change_case_1.camelCase)(label),
|
|
17
|
-
label
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
exports.Tabs = Tabs;
|
|
22
|
-
//# sourceMappingURL=tabs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/decorators/tabs.ts"],"names":[],"mappings":";;;AAAA,yCAA2D;AAC3D,6CAAsC;AAEtC;;;;;;GAMG;AACH,SAAgB,IAAI,CAAC,KAAa;IAChC,OAAO,IAAA,qBAAY,EAAC,CAAC,KAAsB,EAAE,EAAE;QAC7C,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,EAAE;YACrC,GAAG,EAAE,IAAA,uBAAS,EAAC,KAAK,CAAC;YACrB,KAAK;SACN,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,oBAOC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextCase = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Force the output of this field to be sanitized in a specific format.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
* @param textCase
|
|
12
|
-
*/
|
|
13
|
-
function TextCase(textCase) {
|
|
14
|
-
return (0, component_js_1.Component)({
|
|
15
|
-
case: textCase
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.TextCase = TextCase;
|
|
19
|
-
//# sourceMappingURL=textCase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textCase.js","sourceRoot":"","sources":["../../../src/decorators/textCase.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,QAAQ,CAAC,QAAmC;IAC1D,OAAO,IAAA,wBAAS,EAAC;QACf,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Textarea = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Configure the property as Textarea component.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
*/
|
|
12
|
-
function Textarea(props = {}) {
|
|
13
|
-
return (0, component_js_1.Component)({
|
|
14
|
-
autoExpand: false,
|
|
15
|
-
...props,
|
|
16
|
-
type: "textarea"
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
exports.Textarea = Textarea;
|
|
20
|
-
//# sourceMappingURL=textarea.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/decorators/textarea.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAOzC;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,QAAsB,EAAE;IAC/C,OAAO,IAAA,wBAAS,EAAC;QACf,UAAU,EAAE,KAAK;QACjB,GAAG,KAAK;QACR,IAAI,EAAE,UAAU;KACjB,CAAC,CAAC;AACL,CAAC;AAND,4BAMC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tooltip = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Adds a tooltip to the side of this field.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
* @param tooltip
|
|
12
|
-
*/
|
|
13
|
-
function Tooltip(tooltip) {
|
|
14
|
-
return (0, component_js_1.Component)({
|
|
15
|
-
tooltip
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.Tooltip = Tooltip;
|
|
19
|
-
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/decorators/tooltip.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;GAOG;AACH,SAAgB,OAAO,CAAC,OAAe;IACrC,OAAO,IAAA,wBAAS,EAAC;QACf,OAAO;KACR,CAAC,CAAC;AACL,CAAC;AAJD,0BAIC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Validate = void 0;
|
|
4
|
-
const component_js_1 = require("./component.js");
|
|
5
|
-
/**
|
|
6
|
-
* Add validation rules.
|
|
7
|
-
* @decorator
|
|
8
|
-
* @formio
|
|
9
|
-
* @property
|
|
10
|
-
* @schema
|
|
11
|
-
* @param key
|
|
12
|
-
* @param value
|
|
13
|
-
*/
|
|
14
|
-
function Validate(key, value) {
|
|
15
|
-
return (0, component_js_1.Component)({
|
|
16
|
-
validate: {
|
|
17
|
-
[key]: value
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
exports.Validate = Validate;
|
|
22
|
-
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/decorators/validate.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AAEzC;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,GAAW,EAAE,KAAU;IAC9C,OAAO,IAAA,wBAAS,EAAC;QACf,QAAQ,EAAE;YACR,CAAC,GAAG,CAAC,EAAE,KAAK;SACb;KACF,CAAC,CAAC;AACL,CAAC;AAND,4BAMC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormioDataResolver.js","sourceRoot":"","sources":["../../../src/domain/FormioDataResolver.ts"],"names":[],"mappings":""}
|
package/lib/cjs/index.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
/**
|
|
5
|
-
* @file Automatically generated by @tsed/barrels.
|
|
6
|
-
*/
|
|
7
|
-
tslib_1.__exportStar(require("./components/anyToComponent.js"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./components/arrayToComponent.js"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./components/booleanToComponent.js"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./components/dateToComponent.js"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./components/defaultToComponent.js"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./components/enumToComponent.js"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./components/mapToComponent.js"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./components/nestedToComponent.js"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./components/numberToComponent.js"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./components/objectToEditGrid.js"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./components/panelToComponent.js"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./components/propertiesToComponents.js"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./components/stringToComponent.js"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./decorators/component.js"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./decorators/conditional.js"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./decorators/currency.js"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./decorators/customClass.js"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./decorators/customConditional.js"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./decorators/dataSourceJson.js"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./decorators/dataSourceUrl.js"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./decorators/errorLabel.js"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./decorators/errorMessage.js"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./decorators/form.js"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./decorators/hidden.js"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./decorators/inputTags.js"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./decorators/label.js"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./decorators/mask.js"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./decorators/maxWords.js"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./decorators/minWords.js"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./decorators/modalEdit.js"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./decorators/multiple.js"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./decorators/openWhenEmpty.js"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./decorators/password.js"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./decorators/placeholder.js"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./decorators/prefix.js"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./decorators/select.js"), exports);
|
|
43
|
-
tslib_1.__exportStar(require("./decorators/suffix.js"), exports);
|
|
44
|
-
tslib_1.__exportStar(require("./decorators/tableView.js"), exports);
|
|
45
|
-
tslib_1.__exportStar(require("./decorators/tabs.js"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./decorators/textarea.js"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./decorators/textCase.js"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./decorators/tooltip.js"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./decorators/validate.js"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./domain/FormioDataResolver.js"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./registries/FormioMappersContainer.js"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./registries/FormsContainer.js"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./utils/getFormioProps.js"), exports);
|
|
54
|
-
tslib_1.__exportStar(require("./utils/getFormioSchema.js"), exports);
|
|
55
|
-
tslib_1.__exportStar(require("./utils/getRef.js"), exports);
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yEAA+C;AAC/C,2EAAiD;AACjD,6EAAmD;AACnD,0EAAgD;AAChD,6EAAmD;AACnD,0EAAgD;AAChD,yEAA+C;AAC/C,4EAAkD;AAClD,4EAAkD;AAClD,2EAAiD;AACjD,2EAAiD;AACjD,iFAAuD;AACvD,4EAAkD;AAClD,oEAA0C;AAC1C,sEAA4C;AAC5C,mEAAyC;AACzC,sEAA4C;AAC5C,4EAAkD;AAClD,yEAA+C;AAC/C,wEAA8C;AAC9C,qEAA2C;AAC3C,uEAA6C;AAC7C,+DAAqC;AACrC,iEAAuC;AACvC,oEAA0C;AAC1C,gEAAsC;AACtC,+DAAqC;AACrC,mEAAyC;AACzC,mEAAyC;AACzC,oEAA0C;AAC1C,mEAAyC;AACzC,wEAA8C;AAC9C,mEAAyC;AACzC,sEAA4C;AAC5C,iEAAuC;AACvC,iEAAuC;AACvC,iEAAuC;AACvC,oEAA0C;AAC1C,+DAAqC;AACrC,mEAAyC;AACzC,mEAAyC;AACzC,kEAAwC;AACxC,mEAAyC;AACzC,yEAA+C;AAC/C,iFAAuD;AACvD,yEAA+C;AAC/C,oEAA0C;AAC1C,qEAA2C;AAC3C,4DAAkC"}
|
package/lib/cjs/package.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execMapper = exports.getFormioMapper = exports.registerFormioMapper = void 0;
|
|
4
|
-
const FormioMappersContainer = new Map();
|
|
5
|
-
function registerFormioMapper(type, mapper) {
|
|
6
|
-
return FormioMappersContainer.set(type, mapper);
|
|
7
|
-
}
|
|
8
|
-
exports.registerFormioMapper = registerFormioMapper;
|
|
9
|
-
function getFormioMapper(type) {
|
|
10
|
-
// istanbul ignore next
|
|
11
|
-
if (!FormioMappersContainer.has(type)) {
|
|
12
|
-
throw new Error(`Formio ${type} mapper doesn't exists`);
|
|
13
|
-
}
|
|
14
|
-
return FormioMappersContainer.get(type);
|
|
15
|
-
}
|
|
16
|
-
exports.getFormioMapper = getFormioMapper;
|
|
17
|
-
function execMapper(type, schema, options) {
|
|
18
|
-
return getFormioMapper(type)(schema, options);
|
|
19
|
-
}
|
|
20
|
-
exports.execMapper = execMapper;
|
|
21
|
-
//# sourceMappingURL=FormioMappersContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormioMappersContainer.js","sourceRoot":"","sources":["../../../src/registries/FormioMappersContainer.ts"],"names":[],"mappings":";;;AAIA,MAAM,sBAAsB,GAA8B,IAAI,GAAG,EAAE,CAAC;AAEpE,SAAgB,oBAAoB,CAAC,IAAY,EAAE,MAAoB;IACrE,OAAO,sBAAsB,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC;AAFD,oDAEC;AAED,SAAgB,eAAe,CAAC,IAAY;IAC1C,uBAAuB;IACvB,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,UAAU,IAAI,wBAAwB,CAAC,CAAC;KACzD;IACD,OAAO,sBAAsB,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;AAC3C,CAAC;AAND,0CAMC;AAED,SAAgB,UAAU,CAAC,IAAY,EAAE,MAAW,EAAE,OAAY;IAChE,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;AAFD,gCAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormsContainer.js","sourceRoot":"","sources":["../../../src/registries/FormsContainer.ts"],"names":[],"mappings":";;;AAEA,yCAAyC;AAC5B,QAAA,cAAc,GAAsB,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFormioProps = void 0;
|
|
4
|
-
function getFormioProps(schema) {
|
|
5
|
-
const formioProps = Object.entries(schema).reduce((props, [key, value]) => {
|
|
6
|
-
if (key.startsWith("x-formio-")) {
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
[key.replace("x-formio-", "")]: value
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
return props;
|
|
13
|
-
}, {});
|
|
14
|
-
return formioProps;
|
|
15
|
-
}
|
|
16
|
-
exports.getFormioProps = getFormioProps;
|
|
17
|
-
//# sourceMappingURL=getFormioProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFormioProps.js","sourceRoot":"","sources":["../../../src/utils/getFormioProps.ts"],"names":[],"mappings":";;;AAAA,SAAgB,cAAc,CAAC,MAAW;IACxC,MAAM,WAAW,GAAQ,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC7E,IAAI,GAAG,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;YAC/B,OAAO;gBACL,GAAG,KAAK;gBACR,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK;aACtC,CAAC;SACH;QACD,OAAO,KAAK,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,WAAW,CAAC;AACrB,CAAC;AAXD,wCAWC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFormioSchema = void 0;
|
|
4
|
-
const core_1 = require("@tsed/core");
|
|
5
|
-
const schema_1 = require("@tsed/schema");
|
|
6
|
-
const FormioMappersContainer_js_1 = require("../registries/FormioMappersContainer.js");
|
|
7
|
-
const FormsContainer_js_1 = require("../registries/FormsContainer.js");
|
|
8
|
-
const change_case_1 = require("change-case");
|
|
9
|
-
require("../components/anyToComponent");
|
|
10
|
-
require("../components/arrayToComponent");
|
|
11
|
-
require("../components/booleanToComponent");
|
|
12
|
-
require("../components/dateToComponent");
|
|
13
|
-
require("../components/defaultToComponent");
|
|
14
|
-
require("../components/enumToComponent");
|
|
15
|
-
require("../components/mapToComponent");
|
|
16
|
-
require("../components/nestedToComponent");
|
|
17
|
-
require("../components/numberToComponent");
|
|
18
|
-
require("../components/objectToEditGrid");
|
|
19
|
-
require("../components/panelToComponent");
|
|
20
|
-
require("../components/propertiesToComponents");
|
|
21
|
-
require("../components/stringToComponent");
|
|
22
|
-
async function getFormioSchema(model, options = {}) {
|
|
23
|
-
if (!model) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
if ((0, core_1.isString)(model)) {
|
|
27
|
-
return getFormioSchema(FormsContainer_js_1.FormsContainer.get(model), options);
|
|
28
|
-
}
|
|
29
|
-
const entity = schema_1.JsonEntityStore.from(model);
|
|
30
|
-
const schema = (0, schema_1.getJsonSchema)(entity, {
|
|
31
|
-
...options,
|
|
32
|
-
customKeys: true
|
|
33
|
-
});
|
|
34
|
-
const name = entity.schema.getName();
|
|
35
|
-
const machineName = (0, change_case_1.paramCase)(name);
|
|
36
|
-
const resolvers = [];
|
|
37
|
-
const components = (0, FormioMappersContainer_js_1.execMapper)("properties", schema, { ...options, definitions: schema.definitions, resolvers });
|
|
38
|
-
const form = {
|
|
39
|
-
title: name,
|
|
40
|
-
type: "form",
|
|
41
|
-
display: "form",
|
|
42
|
-
tags: [],
|
|
43
|
-
access: [],
|
|
44
|
-
submissionAccess: [],
|
|
45
|
-
...entity.store.get("formio:form", {}),
|
|
46
|
-
name: machineName,
|
|
47
|
-
machineName,
|
|
48
|
-
components
|
|
49
|
-
};
|
|
50
|
-
await Promise.all(resolvers.map((resolver) => resolver(form, options)));
|
|
51
|
-
return form;
|
|
52
|
-
}
|
|
53
|
-
exports.getFormioSchema = getFormioSchema;
|
|
54
|
-
//# sourceMappingURL=getFormioSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFormioSchema.js","sourceRoot":"","sources":["../../../src/utils/getFormioSchema.ts"],"names":[],"mappings":";;;AAAA,qCAA0C;AAC1C,yCAA+E;AAE/E,uFAAmE;AACnE,uEAA+D;AAC/D,6CAAsC;AACtC,wCAAsC;AACtC,0CAAwC;AACxC,4CAA0C;AAC1C,yCAAuC;AACvC,4CAA0C;AAC1C,yCAAuC;AACvC,wCAAsC;AACtC,2CAAyC;AACzC,2CAAyC;AACzC,0CAAwC;AACxC,0CAAwC;AACxC,gDAA8C;AAC9C,2CAAyC;AAElC,KAAK,UAAU,eAAe,CACnC,KAA+B,EAC/B,UAA6B,EAAE;IAE/B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,IAAA,eAAQ,EAAC,KAAK,CAAC,EAAE;QACnB,OAAO,eAAe,CAAC,kCAAc,CAAC,GAAG,CAAC,KAAK,CAAc,EAAE,OAAO,CAAC,CAAC;KACzE;IAED,MAAM,MAAM,GAAG,wBAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,IAAA,sBAAa,EAAC,MAAM,EAAE;QACnC,GAAG,OAAO;QACV,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IACrC,MAAM,WAAW,GAAG,IAAA,uBAAS,EAAC,IAAI,CAAC,CAAC;IACpC,MAAM,SAAS,GAAmB,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,IAAA,sCAAU,EAAC,YAAY,EAAE,MAAM,EAAE,EAAC,GAAG,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,EAAC,CAAC,CAAC;IAC9G,MAAM,IAAI,GAAG;QACX,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,EAAE;QACV,gBAAgB,EAAE,EAAE;QACpB,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAM,aAAa,EAAE,EAAE,CAAC;QAC3C,IAAI,EAAE,WAAW;QACjB,WAAW;QACX,UAAU;KACX,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAE7E,OAAO,IAA6B,CAAC;AACvC,CAAC;AAtCD,0CAsCC"}
|