@tsed/schema-formio 8.5.0-beta.1 → 8.5.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"schema-formio.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,cAAeA,QAAQ,iBAC/B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,aAAc,gBAAiBJ,GACb,iBAAZC,QACdA,QAAQ,uBAAyBD,EAAQG,QAAQ,cAAeA,QAAQ,iBAExEJ,EAAK,uBAAyBC,EAAQD,EAAK,cAAeA,EAAK,gBAChE,CATD,CASGO,MAAM,CAACC,EAAkCC,I,kCCT5CN,EAAOD,QAAUM,C,UCAjBL,EAAOD,QAAUO,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaX,QAGrB,IAAIC,EAASO,EAAyBE,GAAY,CAGjDV,QAAS,CAAC,GAOX,OAHAa,EAAoBH,GAAUT,EAAQA,EAAOD,QAASS,GAG/CR,EAAOD,OACf,CCrBAS,EAAoBK,EAAI,CAACd,EAASe,KACjC,IAAI,IAAIC,KAAOD,EACXN,EAAoBQ,EAAEF,EAAYC,KAASP,EAAoBQ,EAAEjB,EAASgB,IAC5EE,OAAOC,eAAenB,EAASgB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDP,EAAoBQ,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFd,EAAoBkB,EAAK3B,IACH,oBAAX4B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAenB,EAAS4B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAenB,EAAS,aAAc,CAAE8B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AASD,GACT,OAAOD,GAAgBjD,GAAe5N,IAAI8Q,GAAQzP,GAEtD,MAAMyM,EAAS,EAAAkD,gBAAgBC,KAAKH,GAC9B1P,GAAS,IAAA8P,eAAcpD,EAAQ,IAC9BzM,EACH8P,aAAa,EACbC,YAAY,IAEVhD,EAAON,EAAO1M,OAAOiQ,UACrB/C,EAAcvG,EAAUqG,GACxBrD,EAAY,GACZ/B,EAAa7H,EAAW,aAAcC,EAAQ,IAAKC,EAASiQ,YAAalQ,EAAOkQ,YAAavG,cAC7FG,EAAO,CACTN,MAAOwD,EACPvN,KAAM,OACNkI,QAAS,OACTwI,KAAM,GACNC,OAAQ,GACRC,iBAAkB,MACf3D,EAAOtC,MAAMxL,IAAI,cAAe,CAAC,GACpCoO,KAAME,EACNA,cACAtF,cAGJ,aADM0I,QAAQC,IAAI5G,EAAU7H,KAAK2H,GAAaA,EAASK,EAAM7J,MACtD6J,CACX,C","sources":["webpack://@tsed/schema-formio/webpack/universalModuleDefinition","webpack://@tsed/schema-formio/external umd \"@tsed/core\"","webpack://@tsed/schema-formio/external umd \"@tsed/schema\"","webpack://@tsed/schema-formio/webpack/bootstrap","webpack://@tsed/schema-formio/webpack/runtime/define property getters","webpack://@tsed/schema-formio/webpack/runtime/hasOwnProperty shorthand","webpack://@tsed/schema-formio/webpack/runtime/make namespace object","webpack://@tsed/schema-formio/./src/registries/FormioMappersContainer.ts","webpack://@tsed/schema-formio/./src/utils/getRef.ts","webpack://@tsed/schema-formio/./src/components/anyToComponent.ts","webpack://@tsed/schema-formio/./src/components/arrayToComponent.ts","webpack://@tsed/schema-formio/./src/utils/getFormioProps.ts","webpack://@tsed/schema-formio/./src/components/defaultToComponent.ts","webpack://@tsed/schema-formio/./src/components/enumToComponent.ts","webpack://@tsed/schema-formio/./src/components/mapToComponent.ts","webpack://@tsed/schema-formio/./src/components/booleanToComponent.ts","webpack://@tsed/schema-formio/./src/components/dateToComponent.ts","webpack://@tsed/schema-formio/../../../node_modules/change-case/dist/index.js","webpack://@tsed/schema-formio/./src/components/nestedToComponent.ts","webpack://@tsed/schema-formio/./src/components/numberToComponent.ts","webpack://@tsed/schema-formio/./src/components/objectToEditGrid.ts","webpack://@tsed/schema-formio/./src/components/panelToComponent.ts","webpack://@tsed/schema-formio/./src/components/propertiesToComponents.ts","webpack://@tsed/schema-formio/./src/components/stringToComponent.ts","webpack://@tsed/schema-formio/./src/decorators/component.ts","webpack://@tsed/schema-formio/./src/decorators/conditional.ts","webpack://@tsed/schema-formio/./src/decorators/currency.ts","webpack://@tsed/schema-formio/./src/decorators/customClass.ts","webpack://@tsed/schema-formio/./src/decorators/customConditional.ts","webpack://@tsed/schema-formio/./src/decorators/dataSourceJson.ts","webpack://@tsed/schema-formio/./src/decorators/dataSourceUrl.ts","webpack://@tsed/schema-formio/./src/decorators/errorLabel.ts","webpack://@tsed/schema-formio/./src/decorators/validate.ts","webpack://@tsed/schema-formio/./src/decorators/errorMessage.ts","webpack://@tsed/schema-formio/./src/registries/FormsContainer.ts","webpack://@tsed/schema-formio/./src/decorators/label.ts","webpack://@tsed/schema-formio/./src/decorators/form.ts","webpack://@tsed/schema-formio/./src/decorators/hidden.ts","webpack://@tsed/schema-formio/./src/decorators/inputTags.ts","webpack://@tsed/schema-formio/./src/decorators/mask.ts","webpack://@tsed/schema-formio/./src/decorators/maxWords.ts","webpack://@tsed/schema-formio/./src/decorators/minWords.ts","webpack://@tsed/schema-formio/./src/decorators/modalEdit.ts","webpack://@tsed/schema-formio/./src/decorators/multiple.ts","webpack://@tsed/schema-formio/./src/decorators/openWhenEmpty.ts","webpack://@tsed/schema-formio/./src/decorators/password.ts","webpack://@tsed/schema-formio/./src/decorators/placeholder.ts","webpack://@tsed/schema-formio/./src/decorators/prefix.ts","webpack://@tsed/schema-formio/./src/decorators/select.ts","webpack://@tsed/schema-formio/./src/decorators/suffix.ts","webpack://@tsed/schema-formio/./src/decorators/tableView.ts","webpack://@tsed/schema-formio/./src/decorators/tabs.ts","webpack://@tsed/schema-formio/./src/decorators/textarea.ts","webpack://@tsed/schema-formio/./src/decorators/textCase.ts","webpack://@tsed/schema-formio/./src/decorators/tooltip.ts","webpack://@tsed/schema-formio/./src/utils/getFormioSchema.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@tsed/core\"), require(\"@tsed/schema\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@tsed/core\", \"@tsed/schema\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@tsed/schema-formio\"] = factory(require(\"@tsed/core\"), require(\"@tsed/schema\"));\n\telse\n\t\troot[\"@tsed/schema-formio\"] = factory(root[\"@tsed/core\"], root[\"@tsed/schema\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__414__, __WEBPACK_EXTERNAL_MODULE__538__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__414__;","module.exports = __WEBPACK_EXTERNAL_MODULE__538__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const FormioMappersContainer = new Map();\nexport function registerFormioMapper(type, mapper) {\n return FormioMappersContainer.set(type, mapper);\n}\nexport function getFormioMapper(type) {\n // istanbul ignore next\n if (!FormioMappersContainer.has(type)) {\n throw new Error(`Formio ${type} mapper doesn't exists`);\n }\n return FormioMappersContainer.get(type);\n}\nexport function execMapper(type, schema, options) {\n return getFormioMapper(type)(schema, options);\n}\n","import { getValue } from \"@tsed/core\";\nexport function getRef(schema, options) {\n if (schema.$ref) {\n return getValue(options, schema.$ref.replace(\"#/\", \"\").replace(/\\//g, \".\"));\n }\n return schema;\n}\n","import { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nimport { getRef } from \"../utils/getRef.js\";\nexport function anyToComponent(schema, options) {\n schema = getRef(schema, options);\n switch (schema?.type) {\n case \"object\":\n if (!schema.properties && !schema.$ref) {\n return execMapper(\"map\", schema, options);\n }\n return execMapper(\"nested\", schema, options);\n case \"array\":\n return execMapper(\"array\", schema, options);\n case \"string\":\n return execMapper(\"string\", schema, options);\n case \"boolean\":\n return execMapper(\"boolean\", schema, options);\n case \"integer\":\n case \"number\":\n return execMapper(\"number\", schema, options);\n }\n return {};\n}\nregisterFormioMapper(\"any\", anyToComponent);\n","import { cleanObject } from \"@tsed/core\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nimport { getRef } from \"../utils/getRef.js\";\nexport function arrayToComponent(schema, options) {\n const itemSchema = schema.items.$ref ? getRef(schema.items, options) : schema.items;\n const { type } = itemSchema;\n switch (type) {\n case \"object\": // editgrid\n return {\n ...execMapper(\"default\", schema, options),\n ...execMapper(\"editgrid\", itemSchema, options)\n };\n case \"string\": // tag or enum?\n if (itemSchema.enum) {\n const component = execMapper(\"enum\", itemSchema, options);\n return {\n ...component,\n inline: false,\n type: \"selectboxes\"\n };\n }\n const component = execMapper(type, itemSchema, options);\n return cleanObject({\n ...component,\n multiple: component.type === \"tags\" ? undefined : true\n });\n default:\n case \"number\":\n return {\n ...execMapper(type, itemSchema, options),\n multiple: true\n };\n }\n}\nregisterFormioMapper(\"array\", arrayToComponent);\n","export function getFormioProps(schema) {\n const formioProps = Object.entries(schema).reduce((props, [key, value]) => {\n if (key.startsWith(\"x-formio-\")) {\n return {\n ...props,\n [key.replace(\"x-formio-\", \"\")]: value\n };\n }\n return props;\n }, {});\n return formioProps;\n}\n","import { cleanObject } from \"@tsed/core\";\nimport { registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nimport { getFormioProps } from \"../utils/getFormioProps.js\";\nexport function defaultToComponent(schema, options) {\n const formioProps = getFormioProps(schema);\n return cleanObject({\n ...formioProps,\n disabled: !!schema.readOnly,\n description: schema.description,\n defaultValue: schema.default\n });\n}\nregisterFormioMapper(\"default\", defaultToComponent);\n","import { cleanObject } from \"@tsed/core\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function enumToComponent(schema, options) {\n const component = execMapper(\"default\", schema, options);\n const values = schema.enum.map((value) => {\n return {\n label: value,\n value\n };\n });\n if (component.type === \"select\") {\n return cleanObject({\n ...component,\n data: {\n json: component.data?.json || JSON.stringify(values)\n },\n dataSrc: \"json\",\n idPath: \"value\",\n valueProperty: \"value\",\n template: component.template || \"<span>{{ item.label }}</span>\"\n });\n }\n return cleanObject({\n ...component,\n values: schema[\"x-values\"] || values.map((value) => ({ ...value, shortcut: \"\" }))\n });\n}\nregisterFormioMapper(\"enum\", enumToComponent);\n","import { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function mapToComponent(schema, options) {\n return {\n ...execMapper(\"default\", schema, options),\n type: \"datamap\",\n tableView: false,\n input: true,\n valueComponent: {\n ...(schema.additionalProperties ? execMapper(\"any\", schema.additionalProperties, options) : {}),\n hideLabel: true,\n tableView: true\n }\n };\n}\nregisterFormioMapper(\"map\", mapToComponent);\n","import { cleanObject } from \"@tsed/core\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nfunction booleanToComponent(schema, options) {\n const component = execMapper(\"default\", schema, options);\n return cleanObject({\n ...component,\n input: true,\n type: component.type || \"checkbox\"\n });\n}\nregisterFormioMapper(\"boolean\", booleanToComponent);\n","import { getValue } from \"@tsed/core\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nfunction dateToComponent(schema, options) {\n const component = execMapper(\"default\", schema, options);\n const base = {\n enableMinDateInput: false,\n enableMaxDateInput: false,\n input: true,\n ...component,\n type: \"datetime\",\n datePicker: {\n disableWeekends: false,\n disableWeekdays: false,\n ...getValue(component, \"datePicker\")\n },\n widget: {\n type: \"calendar\",\n displayInTimezone: \"viewer\",\n locale: \"en\",\n useLocaleSettings: false,\n allowInput: true,\n mode: \"single\",\n noCalendar: false,\n hourIncrement: 1,\n minuteIncrement: 1,\n minDate: null,\n disableWeekends: false,\n disableWeekdays: false,\n maxDate: null,\n ...getValue(component, \"widget\")\n }\n };\n if (schema.format === \"date\") {\n return {\n ...base,\n format: \"yyyy-MM-dd\",\n enableTime: false,\n widget: {\n ...base.widget,\n enableTime: false,\n format: \"yyyy-MM-dd\",\n ...getValue(component, \"widget\")\n }\n };\n }\n return {\n ...base,\n timePicker: {\n showMeridian: false,\n ...getValue(component, \"timePicker\")\n },\n widget: {\n ...base.widget,\n enableTime: true,\n time_24hr: true,\n ...getValue(component, \"widget\")\n }\n };\n}\nregisterFormioMapper(\"date\", dateToComponent);\n","// Regexps involved with splitting words in various case formats.\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\n// Used to iterate over the initial split result and separate numbers.\nconst SPLIT_SEPARATE_NUMBER_RE = /(\\d)\\p{Ll}|(\\p{L})\\d/u;\n// Regexp involved with stripping non-word characters from the result.\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\n// The replacement value for splits.\nconst SPLIT_REPLACE_VALUE = \"$1\\0$2\";\n// The default characters to keep after transforming case.\nconst DEFAULT_PREFIX_SUFFIX_CHARACTERS = \"\";\n/**\n * Split any cased input strings into an array of words.\n */\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, \"\\0\");\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\")\n start++;\n if (start === end)\n return [];\n while (result.charAt(end - 1) === \"\\0\")\n end--;\n return result.slice(start, end).split(/\\0/g);\n}\n/**\n * Split the input string into an array of words, separating numbers.\n */\nexport function splitSeparateNumbers(value) {\n const words = split(value);\n for (let i = 0; i < words.length; i++) {\n const word = words[i];\n const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);\n if (match) {\n const offset = match.index + (match[1] ?? match[2]).length;\n words.splice(i, 1, word.slice(0, offset), word.slice(offset));\n }\n }\n return words;\n}\n/**\n * Convert a string to space separated lower case (`foo bar`).\n */\nexport function noCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to camel case (`fooBar`).\n */\nexport function camelCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return lower(word);\n return transform(word, index);\n })\n .join(options?.delimiter ?? \"\") +\n suffix);\n}\n/**\n * Convert a string to pascal case (`FooBar`).\n */\nexport function pascalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return prefix + words.map(transform).join(options?.delimiter ?? \"\") + suffix;\n}\n/**\n * Convert a string to pascal snake case (`Foo_Bar`).\n */\nexport function pascalSnakeCase(input, options) {\n return capitalCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to capital case (`Foo Bar`).\n */\nexport function capitalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n return (prefix +\n words\n .map(capitalCaseTransformFactory(lower, upper))\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to constant case (`FOO_BAR`).\n */\nexport function constantCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(upperFactory(options?.locale)).join(options?.delimiter ?? \"_\") +\n suffix);\n}\n/**\n * Convert a string to dot case (`foo.bar`).\n */\nexport function dotCase(input, options) {\n return noCase(input, { delimiter: \".\", ...options });\n}\n/**\n * Convert a string to kebab case (`foo-bar`).\n */\nexport function kebabCase(input, options) {\n return noCase(input, { delimiter: \"-\", ...options });\n}\n/**\n * Convert a string to path case (`foo/bar`).\n */\nexport function pathCase(input, options) {\n return noCase(input, { delimiter: \"/\", ...options });\n}\n/**\n * Convert a string to path case (`Foo bar`).\n */\nexport function sentenceCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = capitalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return transform(word);\n return lower(word);\n })\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to snake case (`foo_bar`).\n */\nexport function snakeCase(input, options) {\n return noCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to header case (`Foo-Bar`).\n */\nexport function trainCase(input, options) {\n return capitalCase(input, { delimiter: \"-\", ...options });\n}\nfunction lowerFactory(locale) {\n return locale === false\n ? (input) => input.toLowerCase()\n : (input) => input.toLocaleLowerCase(locale);\n}\nfunction upperFactory(locale) {\n return locale === false\n ? (input) => input.toUpperCase()\n : (input) => input.toLocaleUpperCase(locale);\n}\nfunction capitalCaseTransformFactory(lower, upper) {\n return (word) => `${upper(word[0])}${lower(word.slice(1))}`;\n}\nfunction pascalCaseTransformFactory(lower, upper) {\n return (word, index) => {\n const char0 = word[0];\n const initial = index > 0 && char0 >= \"0\" && char0 <= \"9\" ? \"_\" + char0 : upper(char0);\n return initial + lower(word.slice(1));\n };\n}\nfunction splitPrefixSuffix(input, options = {}) {\n const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);\n const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n let prefixIndex = 0;\n let suffixIndex = input.length;\n while (prefixIndex < input.length) {\n const char = input.charAt(prefixIndex);\n if (!prefixCharacters.includes(char))\n break;\n prefixIndex++;\n }\n while (suffixIndex > prefixIndex) {\n const index = suffixIndex - 1;\n const char = input.charAt(index);\n if (!suffixCharacters.includes(char))\n break;\n suffixIndex = index;\n }\n return [\n input.slice(0, prefixIndex),\n splitFn(input.slice(prefixIndex, suffixIndex)),\n input.slice(suffixIndex),\n ];\n}\n//# sourceMappingURL=index.js.map","import { sentenceCase } from \"change-case\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function nestedToComponent(schema, options) {\n return {\n ...execMapper(\"default\", schema, options),\n label: false,\n tableView: false,\n type: \"form\",\n display: \"form\",\n input: true,\n components: [\n {\n key: \"panel\",\n label: options.parentKey && sentenceCase(options.parentKey),\n ...execMapper(\"panel\", schema, options)\n }\n ]\n };\n}\nregisterFormioMapper(\"nested\", nestedToComponent);\n","import { cleanObject, getValue } from \"@tsed/core\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function numberToComponent(schema, options) {\n const component = execMapper(\"default\", schema, options);\n return cleanObject({\n ...component,\n input: true,\n delimiter: getValue(component, \"delimiter\", false),\n inputFormat: getValue(component, \"inputFormat\", \"plain\"),\n mask: getValue(component, \"mask\", false),\n requireDecimal: false,\n type: \"number\"\n });\n}\nregisterFormioMapper(\"number\", numberToComponent);\nregisterFormioMapper(\"integer\", numberToComponent);\n","import { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function objectToEditGrid(schema, options) {\n return {\n ...execMapper(\"default\", schema, options),\n rowDrafts: false,\n type: \"editgrid\",\n input: true,\n components: execMapper(\"properties\", schema, options)\n };\n}\nregisterFormioMapper(\"editgrid\", objectToEditGrid);\n","import { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function panelToComponent(schema, options) {\n return {\n ...execMapper(\"default\", schema, options),\n collapsible: false,\n input: false,\n tableView: false,\n components: execMapper(\"properties\", schema, options)\n };\n}\nregisterFormioMapper(\"panel\", panelToComponent);\n","import { cleanObject, isFunction } from \"@tsed/core\";\nimport { sentenceCase } from \"change-case\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nfunction bindResolvers(component, options) {\n if (component.data) {\n const data = { ...component.data };\n Object.entries(data).forEach(([key, resolver]) => {\n if (isFunction(resolver)) {\n options.resolvers.push(async (form) => {\n data[key] = await resolver({ ...options, component, form });\n });\n }\n });\n return {\n ...component,\n data\n };\n }\n return component;\n}\nfunction mapValidation(key, base, schema, propSchema) {\n const required = (schema.required || []).includes(key);\n const validate = {\n ...(base.validate || {}),\n required,\n pattern: propSchema.pattern,\n minLength: !required || (required && propSchema.minLength > 1) ? propSchema.minLength : undefined,\n maxLength: propSchema.maxLength,\n min: propSchema.minimum || propSchema.minItems,\n max: propSchema.maximum || propSchema.maxItems\n };\n switch (propSchema.type) {\n case \"string\":\n if (propSchema.minLength === 0 && validate.required) {\n validate.minLength = undefined;\n validate.required = false;\n }\n break;\n case \"boolean\":\n validate.required = false;\n break;\n }\n return cleanObject(validate);\n}\nexport function propertiesToComponents(schema, options) {\n const tabs = {\n label: \"Tabs\",\n key: \"tabs\",\n type: \"tabs\",\n input: false,\n tableView: false,\n components: new Map(),\n pushed: false\n };\n const components = [];\n Object.entries(schema.properties).forEach(([key, propSchema]) => {\n const tabsOptions = propSchema[\"x-formiotabs\"];\n const base = execMapper(\"any\", propSchema, { ...options, parentKey: key });\n let component = cleanObject({\n key,\n ...base,\n label: base.label == false ? undefined : base.label || propSchema.title || sentenceCase(key),\n validate: mapValidation(key, base, schema, propSchema)\n });\n component = bindResolvers(component, options);\n if (tabsOptions) {\n if (!tabs.pushed) {\n components.push(tabs);\n tabs.pushed = true;\n }\n if (!tabs.components.has(tabsOptions.key)) {\n tabs.components.set(tabsOptions.key, {\n ...tabsOptions,\n components: []\n });\n }\n tabs.components.get(tabsOptions.key).components.push(component);\n }\n else {\n components.push(component);\n }\n });\n if (tabs.components.size) {\n tabs.components = [...tabs.components.values()];\n }\n return components;\n}\nregisterFormioMapper(\"properties\", propertiesToComponents);\n","import { cleanObject } from \"@tsed/core\";\nimport { execMapper, registerFormioMapper } from \"../registries/FormioMappersContainer.js\";\nexport function stringToComponent(schema, options) {\n if (schema.format) {\n const component = execMapper(\"default\", schema, options);\n switch (schema.format) {\n case \"date\":\n case \"date-time\":\n return execMapper(\"date\", schema, options);\n case \"uri\":\n return cleanObject({\n input: true,\n ...component,\n type: component.type || \"url\"\n });\n default:\n return cleanObject({\n input: true,\n ...component,\n type: component.type || schema.format\n });\n }\n }\n if (schema.enum) {\n const component = execMapper(\"enum\", schema, options);\n return {\n ...component,\n type: component.type || \"radio\"\n };\n }\n const component = execMapper(\"default\", schema, options);\n return cleanObject({\n input: true,\n type: component.type || \"textfield\",\n ...component\n });\n}\nregisterFormioMapper(\"string\", stringToComponent);\n","import { JsonEntityFn } from \"@tsed/schema\";\n/**\n * Declare a formio Component schema on the decorated propertyKey.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Component(component) {\n component = Object.entries(component).reduce((component, [key, value]) => {\n if (key === \"validate\") {\n component[\"x-formio-validate\"] = {\n ...(component[\"x-formio-validate\"] || {}),\n ...value\n };\n }\n return {\n ...component,\n [`x-formio-${key}`]: value\n };\n }, {});\n return JsonEntityFn((store) => {\n Object.entries(component).forEach(([key, value]) => {\n store.itemSchema.customKey(key, value);\n if (store.isCollection) {\n store.schema.customKey(key, value);\n }\n });\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Adds a conditional display rule on the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param conditional\n */\nexport function Conditional(conditional) {\n return Component({\n conditional\n });\n}\n/**\n * Adds a conditional display rule on the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param property\n * @param eq\n */\nexport function ShowWhen(property, eq) {\n return Conditional({\n show: true,\n when: property,\n eq\n });\n}\n/**\n * Adds a conditional display rule on the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param property\n * @param eq\n */\nexport function HideWhen(property, eq) {\n return Conditional({\n show: false,\n when: property,\n eq\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Configure the property as Currency component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Currency(props = {}) {\n return Component({\n currency: \"USD\",\n inputFormat: \"plain\",\n mask: false,\n spellcheck: true,\n delimiter: true,\n ...props,\n type: \"currency\"\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Add a custom css class.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function CustomClass(customClass) {\n return Component({\n customClass\n });\n}\n","import { isArrowFn } from \"@tsed/core\";\nimport { Component } from \"./component.js\";\nfunction sanitize(customConditional) {\n const str = customConditional.toString();\n const [signature, ...fn] = str.split(\"=>\");\n let content = fn.join(\"=>\");\n if (!signature.includes(\"{\")) {\n content = content.replace(new RegExp(`${signature.trim()}.`, \"gi\"), \"\");\n }\n return `show = ${content.trim()}`;\n}\n/**\n * Adds custom conditional rule to display or not the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param customConditional\n */\nexport function CustomConditional(customConditional) {\n if (isArrowFn(customConditional)) {\n customConditional = sanitize(customConditional);\n }\n return Component({\n customConditional\n });\n}\n","import { isFunction } from \"@tsed/core\";\nimport { Component } from \"./component.js\";\nconst wrap = (resolver) => async (opts) => {\n const result = await resolver(opts);\n return JSON.stringify(result);\n};\n/**\n * Set custom json data source\n * @param data\n * @param props\n * @constructor\n */\nexport function DataSourceJson(data, props = {}) {\n return Component({\n ...props,\n dataSrc: \"json\",\n data: {\n ...props.data,\n json: isFunction(data) ? wrap(data) : JSON.stringify(data)\n }\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Set URL data on the current component.\n * @param url\n * @param props\n * @constructor\n */\nexport function DataSourceUrl(url, props = {}) {\n return Component({\n ...props,\n dataSrc: \"url\",\n data: {\n ...props.data,\n url\n }\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Set the error label when an error occur.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function ErrorLabel(message) {\n return Component({\n errorLabel: message\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Add validation rules.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param key\n * @param value\n */\nexport function Validate(key, value) {\n return Component({\n validate: {\n [key]: value\n }\n });\n}\n","import { Validate } from \"./validate.js\";\n/**\n * Add error message when an error occur.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param message\n */\nexport function ErrorMessage(message) {\n return Validate(\"customMessage\", message);\n}\n","// tslint:disable-next-line:variable-name\nexport const FormsContainer = new Map();\n","import { CustomKey, JsonEntityFn } from \"@tsed/schema\";\nimport { Component } from \"./component.js\";\n/**\n * Change the label field\n * @decorator\n * @formio\n * @property\n * @schema\n * @param label\n */\nexport function Label(label) {\n return JsonEntityFn((entity) => {\n return entity.decoratorType === \"property\"\n ? Component({\n label\n })\n : CustomKey(\"x-formio-label\", label);\n });\n}\n","import { nameOf, StoreSet, useDecorators } from \"@tsed/core\";\nimport { Name } from \"@tsed/schema\";\nimport { kebabCase } from \"change-case\";\nimport { FormsContainer } from \"../registries/FormsContainer.js\";\nimport { Label } from \"./label.js\";\n/**\n * Expose the model as Formio Form.\n * @param form\n */\nexport function Form(form = {}) {\n return useDecorators((target) => {\n const name = form.name || nameOf(target);\n const machineName = kebabCase(name);\n FormsContainer.set(name, target);\n FormsContainer.set(machineName, target);\n }, form.name && Name(form.name), form.label && Label(form.label), form && StoreSet(\"formio:form\", form));\n}\n","import { Component } from \"./component.js\";\n/**\n * Set hidden field.\n *\n * A hidden field is still a part of the form, but is hidden from view.\n *\n * @param bool\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Hidden(bool = true) {\n return Component({\n hidden: bool\n });\n}\n","import { useDecorators } from \"@tsed/core\";\nimport { CollectionOf } from \"@tsed/schema\";\nimport { Component } from \"./component.js\";\n/**\n * Configure the property as Tags component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function InputTags(props = {}) {\n return useDecorators(CollectionOf(String), Component({\n ...props,\n tableView: false,\n storeas: \"array\",\n type: \"tags\"\n }));\n}\n","import { Component } from \"./component.js\";\n/**\n * An input mask helps the user with input by ensuring a predefined format.\n *\n * - 9: numeric\n * - a: alphabetical\n * - *: alphanumeric\n *\n * Example telephone mask: (999) 999-9999\n *\n * See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.\n *\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Mask(inputMask, inputMaskPlaceholderChar = \"\") {\n return Component({\n inputMask,\n inputMaskPlaceholderChar\n });\n}\n/**\n * An input mask helps the user with input by ensuring a predefined format.\n *\n * - 9: numeric\n * - a: alphabetical\n * - *: alphanumeric\n *\n * Example telephone mask: (999) 999-9999\n *\n * See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.\n *\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Masks(...inputMasks) {\n return Component({\n inputMasks\n });\n}\n","import { Validate } from \"./validate.js\";\n/**\n * Add the minimum amount of words that can be added to this field.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param value\n */\nexport function MaxWords(value) {\n return Validate(\"maxWords\", value);\n}\n","import { Validate } from \"./validate.js\";\n/**\n * Add the maximum amount of words that can be added to this field.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param value\n */\nexport function MinWords(value) {\n return Validate(\"minWords\", value);\n}\n","import { Component } from \"./component.js\";\n/**\n * Opens up a modal to edit the value of this component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function ModalEdit(modalEdit = true) {\n return Component({\n modalEdit\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Change the multiple value on the decorated property.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Multiple(multiple = false) {\n return Component({\n multiple\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Open automatically the editgrid when the list is empty.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function OpenWhenEmpty(openWhenEmpty = true) {\n return Component({\n openWhenEmpty\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Configure the property as Password component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Password(props = {}) {\n return Component({\n ...props,\n type: \"password\",\n protected: true\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * The placeholder text that will appear when this field is empty.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param placeholder\n */\nexport function Placeholder(placeholder) {\n return Component({\n placeholder\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Add prefix word on the decorated field.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Prefix(prefix) {\n return Component({\n prefix\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Configure the property as Select component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Select(props = {}) {\n return Component({\n selectThreshold: 0.3,\n input: true,\n widget: \"choicesjs\",\n ...props,\n type: \"select\"\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Add suffix word on the decorated field.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Suffix(suffix) {\n return Component({\n suffix\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Change the visibility of the current property on a table.\n * @param bool\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function TableView(bool) {\n return Component({\n tableView: bool\n });\n}\n","import { JsonEntityFn } from \"@tsed/schema\";\nimport { camelCase } from \"change-case\";\n/**\n * Group the current property in tabs components.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Tabs(label) {\n return JsonEntityFn((store) => {\n store.schema.customKey(\"x-formiotabs\", {\n key: camelCase(label),\n label\n });\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Configure the property as Textarea component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Textarea(props = {}) {\n return Component({\n autoExpand: false,\n ...props,\n type: \"textarea\"\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Force the output of this field to be sanitized in a specific format.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param textCase\n */\nexport function TextCase(textCase) {\n return Component({\n case: textCase\n });\n}\n","import { Component } from \"./component.js\";\n/**\n * Adds a tooltip to the side of this field.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param tooltip\n */\nexport function Tooltip(tooltip) {\n return Component({\n tooltip\n });\n}\n","import \"../components/anyToComponent.js\";\nimport \"../components/arrayToComponent.js\";\nimport \"../components/booleanToComponent.js\";\nimport \"../components/dateToComponent.js\";\nimport \"../components/defaultToComponent.js\";\nimport \"../components/enumToComponent.js\";\nimport \"../components/mapToComponent.js\";\nimport \"../components/nestedToComponent.js\";\nimport \"../components/numberToComponent.js\";\nimport \"../components/objectToEditGrid.js\";\nimport \"../components/panelToComponent.js\";\nimport \"../components/propertiesToComponents.js\";\nimport \"../components/stringToComponent.js\";\nimport { isString } from \"@tsed/core\";\nimport { getJsonSchema, JsonEntityStore } from \"@tsed/schema\";\nimport { kebabCase } from \"change-case\";\nimport { execMapper } from \"../registries/FormioMappersContainer.js\";\nimport { FormsContainer } from \"../registries/FormsContainer.js\";\nexport async function getFormioSchema(model, options = {}) {\n if (!model) {\n return undefined;\n }\n if (isString(model)) {\n return getFormioSchema(FormsContainer.get(model), options);\n }\n const entity = JsonEntityStore.from(model);\n const schema = getJsonSchema(entity, {\n ...options,\n inlineEnums: true,\n customKeys: true\n });\n const name = entity.schema.getName();\n const machineName = kebabCase(name);\n const resolvers = [];\n const components = execMapper(\"properties\", schema, { ...options, definitions: schema.definitions, resolvers });\n const form = {\n title: name,\n type: \"form\",\n display: \"form\",\n tags: [],\n access: [],\n submissionAccess: [],\n ...entity.store.get(\"formio:form\", {}),\n name: machineName,\n machineName,\n components\n };\n await Promise.all(resolvers.map((resolver) => resolver(form, options)));\n return form;\n}\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE__414__","__WEBPACK_EXTERNAL_MODULE__538__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","FormioMappersContainer","Map","registerFormioMapper","type","mapper","set","getFormioMapper","has","Error","execMapper","schema","options","getRef","$ref","getValue","replace","anyToComponent","properties","arrayToComponent","itemSchema","items","enum","inline","component","cleanObject","multiple","getFormioProps","entries","reduce","props","startsWith","defaultToComponent","formioProps","disabled","readOnly","description","defaultValue","default","enumToComponent","values","map","label","data","json","JSON","stringify","dataSrc","idPath","valueProperty","template","shortcut","mapToComponent","tableView","input","valueComponent","additionalProperties","hideLabel","base","enableMinDateInput","enableMaxDateInput","datePicker","disableWeekends","disableWeekdays","widget","displayInTimezone","locale","useLocaleSettings","allowInput","mode","noCalendar","hourIncrement","minuteIncrement","minDate","maxDate","format","enableTime","timePicker","showMeridian","time_24hr","SPLIT_LOWER_UPPER_RE","SPLIT_UPPER_UPPER_RE","SPLIT_SEPARATE_NUMBER_RE","DEFAULT_STRIP_REGEXP","SPLIT_REPLACE_VALUE","DEFAULT_PREFIX_SUFFIX_CHARACTERS","split","result","trim","start","end","length","charAt","slice","splitSeparateNumbers","words","i","word","match","exec","offset","index","splice","camelCase","prefix","suffix","splitPrefixSuffix","lower","lowerFactory","upper","upperFactory","transform","mergeAmbiguousCharacters","capitalCaseTransformFactory","char0","pascalCaseTransformFactory","join","delimiter","kebabCase","noCase","sentenceCase","toLowerCase","toLocaleLowerCase","toUpperCase","toLocaleUpperCase","splitFn","separateNumbers","prefixCharacters","suffixCharacters","prefixIndex","suffixIndex","char","includes","nestedToComponent","display","components","parentKey","numberToComponent","inputFormat","mask","requireDecimal","objectToEditGrid","rowDrafts","panelToComponent","collapsible","mapValidation","propSchema","required","validate","pattern","minLength","maxLength","min","minimum","minItems","max","maximum","maxItems","propertiesToComponents","tabs","pushed","forEach","tabsOptions","title","resolver","isFunction","resolvers","push","async","form","bindResolvers","size","stringToComponent","Component","JsonEntityFn","store","customKey","isCollection","Conditional","conditional","ShowWhen","property","eq","show","when","HideWhen","Currency","currency","spellcheck","CustomClass","customClass","CustomConditional","customConditional","isArrowFn","str","toString","signature","fn","content","RegExp","sanitize","wrap","opts","DataSourceJson","DataSourceUrl","url","ErrorLabel","message","errorLabel","Validate","ErrorMessage","FormsContainer","Label","entity","decoratorType","CustomKey","Form","useDecorators","target","name","nameOf","machineName","Name","StoreSet","Hidden","bool","hidden","InputTags","CollectionOf","String","storeas","Mask","inputMask","inputMaskPlaceholderChar","Masks","inputMasks","MaxWords","MinWords","ModalEdit","modalEdit","Multiple","OpenWhenEmpty","openWhenEmpty","Password","protected","Placeholder","placeholder","Prefix","Select","selectThreshold","Suffix","TableView","Tabs","Textarea","autoExpand","TextCase","textCase","case","Tooltip","tooltip","getFormioSchema","model","isString","JsonEntityStore","from","getJsonSchema","inlineEnums","customKeys","getName","definitions","tags","access","submissionAccess","Promise","all"],"sourceRoot":""}
1
+ {"version":3,"file":"schema-formio.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,cAAeA,QAAQ,iBAC/B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,aAAc,gBAAiBJ,GACb,iBAAZC,QACdA,QAAQ,uBAAyBD,EAAQG,QAAQ,cAAeA,QAAQ,iBAExEJ,EAAK,uBAAyBC,EAAQD,EAAK,cAAeA,EAAK,gBAChE,CATD,CASGO,MAAM,CAACC,EAAkCC,I,kCCT5CN,EAAOD,QAAUM,C,UCAjBL,EAAOD,QAAUO,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaX,QAGrB,IAAIC,EAASO,EAAyBE,GAAY,CAGjDV,QAAS,CAAC,GAOX,OAHAa,EAAoBH,GAAUT,EAAQA,EAAOD,QAASS,GAG/CR,EAAOD,OACf,CCrBAS,EAAoBK,EAAI,CAACd,EAASe,KACjC,IAAI,IAAIC,KAAOD,EACXN,EAAoBQ,EAAEF,EAAYC,KAASP,EAAoBQ,EAAEjB,EAASgB,IAC5EE,OAAOC,eAAenB,EAASgB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDP,EAAoBQ,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFd,EAAoBkB,EAAK3B,IACH,oBAAX4B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAenB,EAAS4B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAenB,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AU,CACfsF,WAEJ,CCQO3F,eAAe4F,GACpBC,EACAzP,EAA6B,CAAC,GAE9B,IAAKyP,EACH,OAGF,IAAI,IAAAC,UAASD,GACX,OAAOD,GAAgBjD,GAAe5N,IAAI8Q,GAAqBzP,GAGjE,MAAMyM,EAAS,EAAAkD,gBAAgBC,KAAKH,GAC9B1P,GAAS,IAAA8P,eAAcpD,EAAQ,IAChCzM,EACH8P,aAAa,EACbC,YAAY,IAGRhD,EAAON,EAAO1M,OAAOiQ,UACrB/C,EAAcvG,EAAUqG,GACxBrD,EAA4B,GAC5B/B,EAAa7H,EAAW,aAAcC,EAAQ,IAAIC,EAASiQ,YAAalQ,EAAOkQ,YAAavG,cAC5FG,EAAO,CACXN,MAAOwD,EACPvN,KAAM,OACNkI,QAAS,OACTwI,KAAM,GACNC,OAAQ,GACRC,iBAAkB,MACf3D,EAAOtC,MAAMxL,IAAS,cAAe,CAAC,GACzCoO,KAAME,EACNA,cACAtF,cAKF,aAFM0I,QAAQC,IAAI5G,EAAU7H,KAAK2H,GAAkBA,EAASK,EAAM7J,MAE3D6J,CACT,C","sources":["webpack://@tsed/schema-formio/webpack/universalModuleDefinition","webpack://@tsed/schema-formio/external umd \"@tsed/core\"","webpack://@tsed/schema-formio/external umd \"@tsed/schema\"","webpack://@tsed/schema-formio/webpack/bootstrap","webpack://@tsed/schema-formio/webpack/runtime/define property getters","webpack://@tsed/schema-formio/webpack/runtime/hasOwnProperty shorthand","webpack://@tsed/schema-formio/webpack/runtime/make namespace object","webpack://@tsed/schema-formio/./src/registries/FormioMappersContainer.ts","webpack://@tsed/schema-formio/./src/utils/getRef.ts","webpack://@tsed/schema-formio/./src/components/anyToComponent.ts","webpack://@tsed/schema-formio/./src/components/arrayToComponent.ts","webpack://@tsed/schema-formio/./src/utils/getFormioProps.ts","webpack://@tsed/schema-formio/./src/components/defaultToComponent.ts","webpack://@tsed/schema-formio/./src/components/enumToComponent.ts","webpack://@tsed/schema-formio/./src/components/mapToComponent.ts","webpack://@tsed/schema-formio/./src/components/booleanToComponent.ts","webpack://@tsed/schema-formio/./src/components/dateToComponent.ts","webpack://@tsed/schema-formio/../../../node_modules/change-case/dist/index.js","webpack://@tsed/schema-formio/./src/components/nestedToComponent.ts","webpack://@tsed/schema-formio/./src/components/numberToComponent.ts","webpack://@tsed/schema-formio/./src/components/objectToEditGrid.ts","webpack://@tsed/schema-formio/./src/components/panelToComponent.ts","webpack://@tsed/schema-formio/./src/components/propertiesToComponents.ts","webpack://@tsed/schema-formio/./src/components/stringToComponent.ts","webpack://@tsed/schema-formio/./src/decorators/component.ts","webpack://@tsed/schema-formio/./src/decorators/conditional.ts","webpack://@tsed/schema-formio/./src/decorators/currency.ts","webpack://@tsed/schema-formio/./src/decorators/customClass.ts","webpack://@tsed/schema-formio/./src/decorators/customConditional.ts","webpack://@tsed/schema-formio/./src/decorators/dataSourceJson.ts","webpack://@tsed/schema-formio/./src/decorators/dataSourceUrl.ts","webpack://@tsed/schema-formio/./src/decorators/errorLabel.ts","webpack://@tsed/schema-formio/./src/decorators/validate.ts","webpack://@tsed/schema-formio/./src/decorators/errorMessage.ts","webpack://@tsed/schema-formio/./src/registries/FormsContainer.ts","webpack://@tsed/schema-formio/./src/decorators/label.ts","webpack://@tsed/schema-formio/./src/decorators/form.ts","webpack://@tsed/schema-formio/./src/decorators/hidden.ts","webpack://@tsed/schema-formio/./src/decorators/inputTags.ts","webpack://@tsed/schema-formio/./src/decorators/mask.ts","webpack://@tsed/schema-formio/./src/decorators/maxWords.ts","webpack://@tsed/schema-formio/./src/decorators/minWords.ts","webpack://@tsed/schema-formio/./src/decorators/modalEdit.ts","webpack://@tsed/schema-formio/./src/decorators/multiple.ts","webpack://@tsed/schema-formio/./src/decorators/openWhenEmpty.ts","webpack://@tsed/schema-formio/./src/decorators/password.ts","webpack://@tsed/schema-formio/./src/decorators/placeholder.ts","webpack://@tsed/schema-formio/./src/decorators/prefix.ts","webpack://@tsed/schema-formio/./src/decorators/select.ts","webpack://@tsed/schema-formio/./src/decorators/suffix.ts","webpack://@tsed/schema-formio/./src/decorators/tableView.ts","webpack://@tsed/schema-formio/./src/decorators/tabs.ts","webpack://@tsed/schema-formio/./src/decorators/textarea.ts","webpack://@tsed/schema-formio/./src/decorators/textCase.ts","webpack://@tsed/schema-formio/./src/decorators/tooltip.ts","webpack://@tsed/schema-formio/./src/utils/getFormioSchema.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@tsed/core\"), require(\"@tsed/schema\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@tsed/core\", \"@tsed/schema\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@tsed/schema-formio\"] = factory(require(\"@tsed/core\"), require(\"@tsed/schema\"));\n\telse\n\t\troot[\"@tsed/schema-formio\"] = factory(root[\"@tsed/core\"], root[\"@tsed/schema\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__414__, __WEBPACK_EXTERNAL_MODULE__538__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__414__;","module.exports = __WEBPACK_EXTERNAL_MODULE__538__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export interface FormioMapper {\n (schema: any, options: any): any;\n}\n\nconst FormioMappersContainer: Map<string, FormioMapper> = new Map();\n\nexport function registerFormioMapper(type: string, mapper: FormioMapper) {\n return FormioMappersContainer.set(type, mapper);\n}\n\nexport function getFormioMapper(type: string): FormioMapper {\n // istanbul ignore next\n if (!FormioMappersContainer.has(type)) {\n throw new Error(`Formio ${type} mapper doesn't exists`);\n }\n return FormioMappersContainer.get(type)!;\n}\n\nexport function execMapper(type: string, schema: any, options: any): any {\n return getFormioMapper(type)(schema, options);\n}\n","import {getValue} from \"@tsed/core\";\n\nexport function getRef(schema: any, options: any) {\n if (schema.$ref) {\n return getValue(options, schema.$ref.replace(\"#/\", \"\").replace(/\\//g, \".\"));\n }\n return schema;\n}\n","import {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\nimport {getRef} from \"../utils/getRef.js\";\n\nexport function anyToComponent(schema: any, options: any) {\n schema = getRef(schema, options);\n\n switch (schema?.type) {\n case \"object\":\n if (!schema.properties && !schema.$ref) {\n return execMapper(\"map\", schema, options);\n }\n\n return execMapper(\"nested\", schema, options);\n case \"array\":\n return execMapper(\"array\", schema, options);\n case \"string\":\n return execMapper(\"string\", schema, options);\n case \"boolean\":\n return execMapper(\"boolean\", schema, options);\n case \"integer\":\n case \"number\":\n return execMapper(\"number\", schema, options);\n }\n\n return {};\n}\n\nregisterFormioMapper(\"any\", anyToComponent);\n","import {cleanObject} from \"@tsed/core\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\nimport {getRef} from \"../utils/getRef.js\";\n\nexport function arrayToComponent(schema: any, options: any) {\n const itemSchema = schema.items.$ref ? getRef(schema.items, options) : schema.items;\n\n const {type} = itemSchema;\n\n switch (type) {\n case \"object\": // editgrid\n return {\n ...execMapper(\"default\", schema, options),\n ...execMapper(\"editgrid\", itemSchema, options)\n };\n case \"string\": // tag or enum?\n if (itemSchema.enum) {\n const component = execMapper(\"enum\", itemSchema, options);\n\n return {\n ...component,\n inline: false,\n type: \"selectboxes\"\n };\n }\n\n const component = execMapper(type, itemSchema, options);\n\n return cleanObject({\n ...component,\n multiple: component.type === \"tags\" ? undefined : true\n });\n default:\n case \"number\":\n return {\n ...execMapper(type, itemSchema, options),\n multiple: true\n };\n }\n}\n\nregisterFormioMapper(\"array\", arrayToComponent);\n","export function getFormioProps(schema: any) {\n const formioProps: any = Object.entries(schema).reduce((props, [key, value]) => {\n if (key.startsWith(\"x-formio-\")) {\n return {\n ...props,\n [key.replace(\"x-formio-\", \"\")]: value\n };\n }\n return props;\n }, {});\n return formioProps;\n}\n","import {cleanObject} from \"@tsed/core\";\n\nimport {registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\nimport {getFormioProps} from \"../utils/getFormioProps.js\";\n\nexport function defaultToComponent(schema: any, options: any): any {\n const formioProps = getFormioProps(schema);\n\n return cleanObject({\n ...formioProps,\n disabled: !!schema.readOnly,\n description: schema.description,\n defaultValue: schema.default\n });\n}\n\nregisterFormioMapper(\"default\", defaultToComponent);\n","import {cleanObject} from \"@tsed/core\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function enumToComponent(schema: any, options: any) {\n const component = execMapper(\"default\", schema, options);\n const values = schema.enum.map((value: any) => {\n return {\n label: value,\n value\n };\n });\n\n if (component.type === \"select\") {\n return cleanObject({\n ...component,\n data: {\n json: component.data?.json || JSON.stringify(values)\n },\n dataSrc: \"json\",\n idPath: \"value\",\n valueProperty: \"value\",\n template: component.template || \"<span>{{ item.label }}</span>\"\n });\n }\n\n return cleanObject({\n ...component,\n values: schema[\"x-values\"] || values.map((value: any) => ({...value, shortcut: \"\"}))\n });\n}\n\nregisterFormioMapper(\"enum\", enumToComponent);\n","import {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function mapToComponent(schema: any, options: any) {\n return {\n ...execMapper(\"default\", schema, options),\n type: \"datamap\",\n tableView: false,\n input: true,\n valueComponent: {\n ...(schema.additionalProperties ? execMapper(\"any\", schema.additionalProperties, options) : {}),\n hideLabel: true,\n tableView: true\n }\n };\n}\n\nregisterFormioMapper(\"map\", mapToComponent);\n","import {cleanObject} from \"@tsed/core\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nfunction booleanToComponent(schema: any, options: any) {\n const component = execMapper(\"default\", schema, options);\n\n return cleanObject({\n ...component,\n input: true,\n type: component.type || \"checkbox\"\n });\n}\n\nregisterFormioMapper(\"boolean\", booleanToComponent);\n","import {getValue} from \"@tsed/core\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nfunction dateToComponent(schema: any, options: any) {\n const component = execMapper(\"default\", schema, options);\n\n const base = {\n enableMinDateInput: false,\n enableMaxDateInput: false,\n input: true,\n ...component,\n type: \"datetime\",\n datePicker: {\n disableWeekends: false,\n disableWeekdays: false,\n ...getValue(component, \"datePicker\")\n },\n widget: {\n type: \"calendar\",\n displayInTimezone: \"viewer\",\n locale: \"en\",\n useLocaleSettings: false,\n allowInput: true,\n mode: \"single\",\n noCalendar: false,\n hourIncrement: 1,\n minuteIncrement: 1,\n minDate: null,\n disableWeekends: false,\n disableWeekdays: false,\n maxDate: null,\n ...getValue(component, \"widget\")\n }\n };\n\n if (schema.format === \"date\") {\n return {\n ...base,\n format: \"yyyy-MM-dd\",\n enableTime: false,\n widget: {\n ...base.widget,\n enableTime: false,\n format: \"yyyy-MM-dd\",\n ...getValue(component, \"widget\")\n }\n };\n }\n\n return {\n ...base,\n timePicker: {\n showMeridian: false,\n ...getValue(component, \"timePicker\")\n },\n widget: {\n ...base.widget,\n enableTime: true,\n time_24hr: true,\n ...getValue(component, \"widget\")\n }\n };\n}\n\nregisterFormioMapper(\"date\", dateToComponent);\n","// Regexps involved with splitting words in various case formats.\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\n// Used to iterate over the initial split result and separate numbers.\nconst SPLIT_SEPARATE_NUMBER_RE = /(\\d)\\p{Ll}|(\\p{L})\\d/u;\n// Regexp involved with stripping non-word characters from the result.\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\n// The replacement value for splits.\nconst SPLIT_REPLACE_VALUE = \"$1\\0$2\";\n// The default characters to keep after transforming case.\nconst DEFAULT_PREFIX_SUFFIX_CHARACTERS = \"\";\n/**\n * Split any cased input strings into an array of words.\n */\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, \"\\0\");\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\")\n start++;\n if (start === end)\n return [];\n while (result.charAt(end - 1) === \"\\0\")\n end--;\n return result.slice(start, end).split(/\\0/g);\n}\n/**\n * Split the input string into an array of words, separating numbers.\n */\nexport function splitSeparateNumbers(value) {\n const words = split(value);\n for (let i = 0; i < words.length; i++) {\n const word = words[i];\n const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);\n if (match) {\n const offset = match.index + (match[1] ?? match[2]).length;\n words.splice(i, 1, word.slice(0, offset), word.slice(offset));\n }\n }\n return words;\n}\n/**\n * Convert a string to space separated lower case (`foo bar`).\n */\nexport function noCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to camel case (`fooBar`).\n */\nexport function camelCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return lower(word);\n return transform(word, index);\n })\n .join(options?.delimiter ?? \"\") +\n suffix);\n}\n/**\n * Convert a string to pascal case (`FooBar`).\n */\nexport function pascalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return prefix + words.map(transform).join(options?.delimiter ?? \"\") + suffix;\n}\n/**\n * Convert a string to pascal snake case (`Foo_Bar`).\n */\nexport function pascalSnakeCase(input, options) {\n return capitalCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to capital case (`Foo Bar`).\n */\nexport function capitalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n return (prefix +\n words\n .map(capitalCaseTransformFactory(lower, upper))\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to constant case (`FOO_BAR`).\n */\nexport function constantCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(upperFactory(options?.locale)).join(options?.delimiter ?? \"_\") +\n suffix);\n}\n/**\n * Convert a string to dot case (`foo.bar`).\n */\nexport function dotCase(input, options) {\n return noCase(input, { delimiter: \".\", ...options });\n}\n/**\n * Convert a string to kebab case (`foo-bar`).\n */\nexport function kebabCase(input, options) {\n return noCase(input, { delimiter: \"-\", ...options });\n}\n/**\n * Convert a string to path case (`foo/bar`).\n */\nexport function pathCase(input, options) {\n return noCase(input, { delimiter: \"/\", ...options });\n}\n/**\n * Convert a string to path case (`Foo bar`).\n */\nexport function sentenceCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = capitalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return transform(word);\n return lower(word);\n })\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to snake case (`foo_bar`).\n */\nexport function snakeCase(input, options) {\n return noCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to header case (`Foo-Bar`).\n */\nexport function trainCase(input, options) {\n return capitalCase(input, { delimiter: \"-\", ...options });\n}\nfunction lowerFactory(locale) {\n return locale === false\n ? (input) => input.toLowerCase()\n : (input) => input.toLocaleLowerCase(locale);\n}\nfunction upperFactory(locale) {\n return locale === false\n ? (input) => input.toUpperCase()\n : (input) => input.toLocaleUpperCase(locale);\n}\nfunction capitalCaseTransformFactory(lower, upper) {\n return (word) => `${upper(word[0])}${lower(word.slice(1))}`;\n}\nfunction pascalCaseTransformFactory(lower, upper) {\n return (word, index) => {\n const char0 = word[0];\n const initial = index > 0 && char0 >= \"0\" && char0 <= \"9\" ? \"_\" + char0 : upper(char0);\n return initial + lower(word.slice(1));\n };\n}\nfunction splitPrefixSuffix(input, options = {}) {\n const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);\n const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n let prefixIndex = 0;\n let suffixIndex = input.length;\n while (prefixIndex < input.length) {\n const char = input.charAt(prefixIndex);\n if (!prefixCharacters.includes(char))\n break;\n prefixIndex++;\n }\n while (suffixIndex > prefixIndex) {\n const index = suffixIndex - 1;\n const char = input.charAt(index);\n if (!suffixCharacters.includes(char))\n break;\n suffixIndex = index;\n }\n return [\n input.slice(0, prefixIndex),\n splitFn(input.slice(prefixIndex, suffixIndex)),\n input.slice(suffixIndex),\n ];\n}\n//# sourceMappingURL=index.js.map","import {sentenceCase} from \"change-case\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function nestedToComponent(schema: any, options: any) {\n return {\n ...execMapper(\"default\", schema, options),\n label: false,\n tableView: false,\n type: \"form\",\n display: \"form\",\n input: true,\n components: [\n {\n key: \"panel\",\n label: options.parentKey && sentenceCase(options.parentKey),\n ...execMapper(\"panel\", schema, options)\n }\n ]\n };\n}\n\nregisterFormioMapper(\"nested\", nestedToComponent);\n","import {cleanObject, getValue} from \"@tsed/core\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function numberToComponent(schema: any, options: any) {\n const component = execMapper(\"default\", schema, options);\n\n return cleanObject({\n ...component,\n input: true,\n delimiter: getValue(component, \"delimiter\", false),\n inputFormat: getValue(component, \"inputFormat\", \"plain\"),\n mask: getValue(component, \"mask\", false),\n requireDecimal: false,\n type: \"number\"\n });\n}\n\nregisterFormioMapper(\"number\", numberToComponent);\nregisterFormioMapper(\"integer\", numberToComponent);\n","import {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function objectToEditGrid(schema: any, options: any) {\n return {\n ...execMapper(\"default\", schema, options),\n rowDrafts: false,\n type: \"editgrid\",\n input: true,\n components: execMapper(\"properties\", schema, options)\n };\n}\n\nregisterFormioMapper(\"editgrid\", objectToEditGrid);\n","import {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function panelToComponent(schema: any, options: any) {\n return {\n ...execMapper(\"default\", schema, options),\n collapsible: false,\n input: false,\n tableView: false,\n components: execMapper(\"properties\", schema, options)\n };\n}\n\nregisterFormioMapper(\"panel\", panelToComponent);\n","import {cleanObject, isFunction} from \"@tsed/core\";\nimport {FormioComponent, FormioForm} from \"@tsed/formio-types\";\nimport {sentenceCase} from \"change-case\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nfunction bindResolvers(component: FormioComponent, options: any) {\n if (component.data) {\n const data = {...component.data};\n\n Object.entries(data).forEach(([key, resolver]) => {\n if (isFunction(resolver)) {\n options.resolvers.push(async (form: FormioForm) => {\n data[key] = await resolver({...options, component, form});\n });\n }\n });\n\n return {\n ...component,\n data\n };\n }\n\n return component;\n}\n\nfunction mapValidation(key: string, base: FormioComponent, schema: any, propSchema: any) {\n const required = (schema.required || []).includes(key);\n const validate = {\n ...(base.validate || {}),\n required,\n pattern: propSchema.pattern,\n minLength: !required || (required && propSchema.minLength > 1) ? propSchema.minLength : undefined,\n maxLength: propSchema.maxLength,\n min: propSchema.minimum || propSchema.minItems,\n max: propSchema.maximum || propSchema.maxItems\n };\n\n switch (propSchema.type) {\n case \"string\":\n if (propSchema.minLength === 0 && validate.required) {\n validate.minLength = undefined;\n validate.required = false;\n }\n break;\n case \"boolean\":\n validate.required = false;\n break;\n }\n\n return cleanObject(validate);\n}\n\nexport function propertiesToComponents(schema: any, options: any): any[] {\n const tabs = {\n label: \"Tabs\",\n key: \"tabs\",\n type: \"tabs\",\n input: false,\n tableView: false,\n components: new Map<string, any>(),\n pushed: false\n };\n const components: any[] = [];\n\n Object.entries(schema.properties).forEach(([key, propSchema]: [string, any]) => {\n const tabsOptions = propSchema[\"x-formiotabs\"];\n const base = execMapper(\"any\", propSchema, {...options, parentKey: key});\n\n let component = cleanObject({\n key,\n ...base,\n label: base.label == false ? undefined : base.label || propSchema.title || sentenceCase(key),\n validate: mapValidation(key, base, schema, propSchema)\n });\n\n component = bindResolvers(component, options);\n\n if (tabsOptions) {\n if (!tabs.pushed) {\n components.push(tabs);\n tabs.pushed = true;\n }\n\n if (!tabs.components.has(tabsOptions.key)) {\n tabs.components.set(tabsOptions.key, {\n ...tabsOptions,\n components: []\n });\n }\n\n tabs.components.get(tabsOptions.key).components.push(component);\n } else {\n components.push(component);\n }\n });\n\n if (tabs.components.size) {\n tabs.components = [...tabs.components.values()] as any;\n }\n\n return components;\n}\n\nregisterFormioMapper(\"properties\", propertiesToComponents);\n","import {cleanObject} from \"@tsed/core\";\n\nimport {execMapper, registerFormioMapper} from \"../registries/FormioMappersContainer.js\";\n\nexport function stringToComponent(schema: any, options: any) {\n if (schema.format) {\n const component = execMapper(\"default\", schema, options);\n switch (schema.format) {\n case \"date\":\n case \"date-time\":\n return execMapper(\"date\", schema, options);\n case \"uri\":\n return cleanObject({\n input: true,\n ...component,\n type: component.type || \"url\"\n });\n default:\n return cleanObject({\n input: true,\n ...component,\n type: component.type || schema.format\n });\n }\n }\n\n if (schema.enum) {\n const component = execMapper(\"enum\", schema, options);\n\n return {\n ...component,\n type: component.type || \"radio\"\n };\n }\n\n const component = execMapper(\"default\", schema, options);\n return cleanObject({\n input: true,\n type: component.type || \"textfield\",\n ...component\n });\n}\n\nregisterFormioMapper(\"string\", stringToComponent);\n","import {JsonEntityFn, JsonEntityStore} from \"@tsed/schema\";\n\n/**\n * Declare a formio Component schema on the decorated propertyKey.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Component(component: Record<string, any>): PropertyDecorator {\n component = Object.entries(component).reduce((component: Record<string, any>, [key, value]) => {\n if (key === \"validate\") {\n component[\"x-formio-validate\"] = {\n ...(component[\"x-formio-validate\"] || {}),\n ...value\n };\n }\n\n return {\n ...component,\n [`x-formio-${key}`]: value\n };\n }, {});\n\n return JsonEntityFn((store: JsonEntityStore) => {\n Object.entries(component).forEach(([key, value]) => {\n store.itemSchema.customKey(key, value);\n\n if (store.isCollection) {\n store.schema.customKey(key, value);\n }\n });\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Adds a conditional display rule on the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param conditional\n */\nexport function Conditional(conditional: {show: boolean; when: string; eq: any}) {\n return Component({\n conditional\n });\n}\n\n/**\n * Adds a conditional display rule on the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param property\n * @param eq\n */\nexport function ShowWhen(property: string, eq: any) {\n return Conditional({\n show: true,\n when: property,\n eq\n });\n}\n\n/**\n * Adds a conditional display rule on the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param property\n * @param eq\n */\nexport function HideWhen(property: string, eq: any) {\n return Conditional({\n show: false,\n when: property,\n eq\n });\n}\n","import {Component} from \"./component.js\";\n/**\n * Configure the property as Currency component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Currency(props: Record<string, any> = {}): PropertyDecorator {\n return Component({\n currency: \"USD\",\n inputFormat: \"plain\",\n mask: false,\n spellcheck: true,\n delimiter: true,\n ...props,\n type: \"currency\"\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Add a custom css class.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function CustomClass(customClass: string) {\n return Component({\n customClass\n });\n}\n","import {isArrowFn} from \"@tsed/core\";\nimport {FormioComponent, FormioForm, FormioSubmission} from \"@tsed/formio-types\";\nimport type {Utils} from \"formiojs\";\nimport type {LoDashStatic} from \"lodash\";\nimport type {Moment} from \"moment\";\n\nimport {Component} from \"./component.js\";\n\nexport interface CustomConditionalCtx<Value = any, Data = any, Row = any> {\n /**\n * The complete submission object.\n */\n form: FormioForm;\n /**\n * The complete submission object.\n */\n submission: FormioSubmission<Data>;\n /**\n * The complete submission data object.\n */\n data: Data;\n /**\n * Contextual \"row\" data, used within DataGrid, EditGrid, and Container components\n */\n row: Row;\n /**\n * The current component JSON\n */\n component: FormioComponent;\n /**\n * The current component instance.\n */\n instance: any;\n /**\n * The current value of the component.\n */\n value: Value;\n /**\n * The moment.js library for date manipulation.\n */\n moment: Moment;\n /**\n * An instance of Lodash.\n */\n _: LoDashStatic;\n /**\n * An instance of the FormioUtils object.\n */\n utils: typeof Utils;\n /**\n * An alias for \"utils\".\n */\n util: typeof Utils;\n}\n\nfunction sanitize(customConditional: Function) {\n const str = customConditional.toString();\n\n const [signature, ...fn] = str.split(\"=>\");\n let content = fn.join(\"=>\");\n\n if (!signature.includes(\"{\")) {\n content = content.replace(new RegExp(`${signature.trim()}.`, \"gi\"), \"\");\n }\n\n return `show = ${content.trim()}`;\n}\n\n/**\n * Adds custom conditional rule to display or not the input form.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param customConditional\n */\nexport function CustomConditional(customConditional: string | ((ctx: CustomConditionalCtx) => any)) {\n if (isArrowFn(customConditional)) {\n customConditional = sanitize(customConditional);\n }\n\n return Component({\n customConditional\n });\n}\n","import {isFunction} from \"@tsed/core\";\n\nimport {FormioDataResolver, FormioDataResolverCtx} from \"../domain/FormioDataResolver.js\";\nimport {Component} from \"./component.js\";\n\nconst wrap = (resolver: FormioDataResolver) => async (opts: FormioDataResolverCtx) => {\n const result = await resolver(opts);\n return JSON.stringify(result);\n};\n\n/**\n * Set custom json data source\n * @param data\n * @param props\n * @constructor\n */\nexport function DataSourceJson(data: any | FormioDataResolver, props: Record<string, any> = {}) {\n return Component({\n ...props,\n dataSrc: \"json\",\n data: {\n ...props.data,\n json: isFunction(data) ? wrap(data) : JSON.stringify(data)\n }\n });\n}\n","import {FormioDataResolver} from \"../domain/FormioDataResolver.js\";\nimport {Component} from \"./component.js\";\n\n/**\n * Set URL data on the current component.\n * @param url\n * @param props\n * @constructor\n */\nexport function DataSourceUrl(url: string | FormioDataResolver, props: Record<string, any> = {}) {\n return Component({\n ...props,\n dataSrc: \"url\",\n data: {\n ...props.data,\n url\n }\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Set the error label when an error occur.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function ErrorLabel(message: string) {\n return Component({\n errorLabel: message\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Add validation rules.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param key\n * @param value\n */\nexport function Validate(key: string, value: any) {\n return Component({\n validate: {\n [key]: value\n }\n });\n}\n","import {Validate} from \"./validate.js\";\n\n/**\n * Add error message when an error occur.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param message\n */\nexport function ErrorMessage(message: string) {\n return Validate(\"customMessage\", message);\n}\n","import {Type} from \"@tsed/core\";\n\n// tslint:disable-next-line:variable-name\nexport const FormsContainer: Map<string, Type> = new Map();\n","import {CustomKey, JsonEntityFn} from \"@tsed/schema\";\n\nimport {Component} from \"./component.js\";\n\n/**\n * Change the label field\n * @decorator\n * @formio\n * @property\n * @schema\n * @param label\n */\nexport function Label(label: string) {\n return JsonEntityFn((entity) => {\n return entity.decoratorType === \"property\"\n ? Component({\n label\n })\n : CustomKey(\"x-formio-label\", label);\n });\n}\n","import {nameOf, StoreSet, useDecorators} from \"@tsed/core\";\nimport {FormioForm} from \"@tsed/formio-types\";\nimport {Name} from \"@tsed/schema\";\nimport {kebabCase} from \"change-case\";\n\nimport {FormsContainer} from \"../registries/FormsContainer.js\";\nimport {Label} from \"./label.js\";\n\n/**\n * Expose the model as Formio Form.\n * @param form\n */\nexport function Form(form: Partial<Omit<FormioForm, \"components\" | \"_id\">> = {}): ClassDecorator {\n return useDecorators(\n (target: any) => {\n const name = form.name || nameOf(target);\n const machineName = kebabCase(name);\n FormsContainer.set(name, target as any);\n FormsContainer.set(machineName, target as any);\n },\n form.name && Name(form.name),\n form.label && Label(form.label),\n form && StoreSet(\"formio:form\", form)\n );\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Set hidden field.\n *\n * A hidden field is still a part of the form, but is hidden from view.\n *\n * @param bool\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Hidden(bool: boolean = true): PropertyDecorator {\n return Component({\n hidden: bool\n });\n}\n","import {useDecorators} from \"@tsed/core\";\nimport {CollectionOf} from \"@tsed/schema\";\n\nimport {Component} from \"./component.js\";\n/**\n * Configure the property as Tags component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function InputTags(props: Record<string, any> = {}): PropertyDecorator {\n return useDecorators(\n CollectionOf(String),\n Component({\n ...props,\n tableView: false,\n storeas: \"array\",\n type: \"tags\"\n })\n );\n}\n","import {Component} from \"./component.js\";\n\n/**\n * An input mask helps the user with input by ensuring a predefined format.\n *\n * - 9: numeric\n * - a: alphabetical\n * - *: alphanumeric\n *\n * Example telephone mask: (999) 999-9999\n *\n * See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.\n *\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Mask(inputMask: string, inputMaskPlaceholderChar: string = \"\") {\n return Component({\n inputMask,\n inputMaskPlaceholderChar\n });\n}\n\n/**\n * An input mask helps the user with input by ensuring a predefined format.\n *\n * - 9: numeric\n * - a: alphabetical\n * - *: alphanumeric\n *\n * Example telephone mask: (999) 999-9999\n *\n * See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.\n *\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Masks(...inputMasks: {label: string; mask: string}[]) {\n return Component({\n inputMasks\n });\n}\n","import {Validate} from \"./validate.js\";\n\n/**\n * Add the minimum amount of words that can be added to this field.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param value\n */\nexport function MaxWords(value: number) {\n return Validate(\"maxWords\", value);\n}\n","import {Validate} from \"./validate.js\";\n\n/**\n * Add the maximum amount of words that can be added to this field.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param value\n */\nexport function MinWords(value: number) {\n return Validate(\"minWords\", value);\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Opens up a modal to edit the value of this component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function ModalEdit(modalEdit = true) {\n return Component({\n modalEdit\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Change the multiple value on the decorated property.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Multiple(multiple = false): PropertyDecorator {\n return Component({\n multiple\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Open automatically the editgrid when the list is empty.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function OpenWhenEmpty(openWhenEmpty = true): PropertyDecorator {\n return Component({\n openWhenEmpty\n });\n}\n","import {Component} from \"./component.js\";\n\nexport interface PasswordOpts extends Record<string, any> {\n showCharCount?: boolean;\n showWordCount?: boolean;\n}\n/**\n * Configure the property as Password component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Password(props: PasswordOpts = {}): PropertyDecorator {\n return Component({\n ...props,\n type: \"password\",\n protected: true\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * The placeholder text that will appear when this field is empty.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param placeholder\n */\nexport function Placeholder(placeholder: string) {\n return Component({\n placeholder\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Add prefix word on the decorated field.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Prefix(prefix: string) {\n return Component({\n prefix\n });\n}\n","import {Component} from \"./component.js\";\n\nexport interface SelectOpts extends Record<string, any> {\n idPath?: string;\n valueProperty?: string;\n template?: string;\n multiple?: boolean;\n}\n\n/**\n * Configure the property as Select component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Select(props: SelectOpts = {}): PropertyDecorator {\n return Component({\n selectThreshold: 0.3,\n input: true,\n widget: \"choicesjs\",\n ...props,\n type: \"select\"\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Add suffix word on the decorated field.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Suffix(suffix: string) {\n return Component({\n suffix\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Change the visibility of the current property on a table.\n * @param bool\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function TableView(bool: boolean): PropertyDecorator {\n return Component({\n tableView: bool\n });\n}\n","import {JsonEntityFn, JsonEntityStore} from \"@tsed/schema\";\nimport {camelCase} from \"change-case\";\n\n/**\n * Group the current property in tabs components.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Tabs(label: string) {\n return JsonEntityFn((store: JsonEntityStore) => {\n store.schema.customKey(\"x-formiotabs\", {\n key: camelCase(label),\n label\n });\n });\n}\n","import {Component} from \"./component.js\";\n\nexport interface TextareaOpts extends Record<string, any> {\n showCharCount?: boolean;\n showWordCount?: boolean;\n}\n\n/**\n * Configure the property as Textarea component.\n * @decorator\n * @formio\n * @property\n * @schema\n */\nexport function Textarea(props: TextareaOpts = {}): PropertyDecorator {\n return Component({\n autoExpand: false,\n ...props,\n type: \"textarea\"\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Force the output of this field to be sanitized in a specific format.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param textCase\n */\nexport function TextCase(textCase: \"uppercase\" | \"lowercase\") {\n return Component({\n case: textCase\n });\n}\n","import {Component} from \"./component.js\";\n\n/**\n * Adds a tooltip to the side of this field.\n * @decorator\n * @formio\n * @property\n * @schema\n * @param tooltip\n */\nexport function Tooltip(tooltip: string) {\n return Component({\n tooltip\n });\n}\n","import \"../components/anyToComponent.js\";\nimport \"../components/arrayToComponent.js\";\nimport \"../components/booleanToComponent.js\";\nimport \"../components/dateToComponent.js\";\nimport \"../components/defaultToComponent.js\";\nimport \"../components/enumToComponent.js\";\nimport \"../components/mapToComponent.js\";\nimport \"../components/nestedToComponent.js\";\nimport \"../components/numberToComponent.js\";\nimport \"../components/objectToEditGrid.js\";\nimport \"../components/panelToComponent.js\";\nimport \"../components/propertiesToComponents.js\";\nimport \"../components/stringToComponent.js\";\n\nimport {isString, Type} from \"@tsed/core\";\nimport {FormioForm} from \"@tsed/formio-types\";\nimport {getJsonSchema, JsonEntityStore, JsonSchemaOptions} from \"@tsed/schema\";\nimport {kebabCase} from \"change-case\";\n\nimport {execMapper} from \"../registries/FormioMappersContainer.js\";\nimport {FormsContainer} from \"../registries/FormsContainer.js\";\n\nexport async function getFormioSchema(\n model: string | any | undefined,\n options: JsonSchemaOptions = {}\n): Promise<Omit<FormioForm, \"_id\" | \"deleted\" | \"owner\"> | undefined> {\n if (!model) {\n return undefined;\n }\n\n if (isString(model)) {\n return getFormioSchema(FormsContainer.get(model) as Type<any>, options);\n }\n\n const entity = JsonEntityStore.from(model);\n const schema = getJsonSchema(entity, {\n ...options,\n inlineEnums: true,\n customKeys: true\n });\n\n const name = entity.schema.getName();\n const machineName = kebabCase(name);\n const resolvers: Promise<any>[] = [];\n const components = execMapper(\"properties\", schema, {...options, definitions: schema.definitions, resolvers});\n const form = {\n title: name,\n type: \"form\",\n display: \"form\",\n tags: [],\n access: [],\n submissionAccess: [],\n ...entity.store.get<any>(\"formio:form\", {}),\n name: machineName,\n machineName,\n components\n };\n\n await Promise.all(resolvers.map((resolver: any) => resolver(form, options)));\n\n return form as unknown as FormioForm;\n}\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE__414__","__WEBPACK_EXTERNAL_MODULE__538__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","FormioMappersContainer","Map","registerFormioMapper","type","mapper","set","getFormioMapper","has","Error","execMapper","schema","options","getRef","$ref","getValue","replace","anyToComponent","properties","arrayToComponent","itemSchema","items","enum","inline","component","cleanObject","multiple","getFormioProps","entries","reduce","props","startsWith","defaultToComponent","formioProps","disabled","readOnly","description","defaultValue","default","enumToComponent","values","map","label","data","json","JSON","stringify","dataSrc","idPath","valueProperty","template","shortcut","mapToComponent","tableView","input","valueComponent","additionalProperties","hideLabel","base","enableMinDateInput","enableMaxDateInput","datePicker","disableWeekends","disableWeekdays","widget","displayInTimezone","locale","useLocaleSettings","allowInput","mode","noCalendar","hourIncrement","minuteIncrement","minDate","maxDate","format","enableTime","timePicker","showMeridian","time_24hr","SPLIT_LOWER_UPPER_RE","SPLIT_UPPER_UPPER_RE","SPLIT_SEPARATE_NUMBER_RE","DEFAULT_STRIP_REGEXP","SPLIT_REPLACE_VALUE","DEFAULT_PREFIX_SUFFIX_CHARACTERS","split","result","trim","start","end","length","charAt","slice","splitSeparateNumbers","words","i","word","match","exec","offset","index","splice","camelCase","prefix","suffix","splitPrefixSuffix","lower","lowerFactory","upper","upperFactory","transform","mergeAmbiguousCharacters","capitalCaseTransformFactory","char0","pascalCaseTransformFactory","join","delimiter","kebabCase","noCase","sentenceCase","toLowerCase","toLocaleLowerCase","toUpperCase","toLocaleUpperCase","splitFn","separateNumbers","prefixCharacters","suffixCharacters","prefixIndex","suffixIndex","char","includes","nestedToComponent","display","components","parentKey","numberToComponent","inputFormat","mask","requireDecimal","objectToEditGrid","rowDrafts","panelToComponent","collapsible","mapValidation","propSchema","required","validate","pattern","minLength","maxLength","min","minimum","minItems","max","maximum","maxItems","propertiesToComponents","tabs","pushed","forEach","tabsOptions","title","resolver","isFunction","resolvers","push","async","form","bindResolvers","size","stringToComponent","Component","JsonEntityFn","store","customKey","isCollection","Conditional","conditional","ShowWhen","property","eq","show","when","HideWhen","Currency","currency","spellcheck","CustomClass","customClass","CustomConditional","customConditional","isArrowFn","str","toString","signature","fn","content","RegExp","sanitize","wrap","opts","DataSourceJson","DataSourceUrl","url","ErrorLabel","message","errorLabel","Validate","ErrorMessage","FormsContainer","Label","entity","decoratorType","CustomKey","Form","useDecorators","target","name","nameOf","machineName","Name","StoreSet","Hidden","bool","hidden","InputTags","CollectionOf","String","storeas","Mask","inputMask","inputMaskPlaceholderChar","Masks","inputMasks","MaxWords","MinWords","ModalEdit","modalEdit","Multiple","OpenWhenEmpty","openWhenEmpty","Password","protected","Placeholder","placeholder","Prefix","Select","selectThreshold","Suffix","TableView","Tabs","Textarea","autoExpand","TextCase","textCase","case","Tooltip","tooltip","getFormioSchema","model","isString","JsonEntityStore","from","getJsonSchema","inlineEnums","customKeys","getName","definitions","tags","access","submissionAccess","Promise","all"],"sourceRoot":""}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/schema-formio",
3
3
  "description": "Transform Ts.ED Schema & JsonSchema to a valid Formio schema",
4
4
  "type": "module",
5
- "version": "8.5.0-beta.1",
5
+ "version": "8.5.0",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -39,24 +39,24 @@
39
39
  "tsed"
40
40
  ],
41
41
  "dependencies": {
42
- "@tsed/formio-types": "8.5.0-beta.1",
42
+ "@tsed/formio-types": "8.5.0",
43
43
  "change-case": "^5.4.4",
44
44
  "tslib": "2.7.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@tsed/barrels": "8.5.0-beta.1",
48
- "@tsed/core": "8.5.0-beta.1",
49
- "@tsed/openspec": "8.5.0-beta.1",
50
- "@tsed/schema": "8.5.0-beta.1",
51
- "@tsed/typescript": "8.5.0-beta.1",
47
+ "@tsed/barrels": "8.5.0",
48
+ "@tsed/core": "8.5.0",
49
+ "@tsed/openspec": "8.5.0",
50
+ "@tsed/schema": "8.5.0",
51
+ "@tsed/typescript": "8.5.0",
52
52
  "eslint": "9.12.0",
53
53
  "typescript": "5.4.5",
54
54
  "vitest": "2.1.2"
55
55
  },
56
56
  "peerDependencies": {
57
- "@tsed/core": ">=8.5.0-beta.1",
58
- "@tsed/openspec": ">=8.5.0-beta.1",
59
- "@tsed/schema": ">=8.5.0-beta.1",
57
+ "@tsed/core": ">=8.5.0",
58
+ "@tsed/openspec": ">=8.5.0",
59
+ "@tsed/schema": ">=8.5.0",
60
60
  "formiojs": ">=4.0.0",
61
61
  "lodash": ">=4.0.0",
62
62
  "moment": ">=2.0.0"
@@ -87,8 +87,5 @@
87
87
  },
88
88
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/third-parties/schema-formio",
89
89
  "author": "Romain Lenzotti",
90
- "license": "MIT",
91
- "publishConfig": {
92
- "tag": "beta"
93
- }
90
+ "license": "MIT"
94
91
  }
@@ -8,10 +8,5 @@ module.exports = require("@tsed/webpack-config").create({
8
8
  formiojs: "formiojs",
9
9
  lodash: "lodash",
10
10
  moment: "moment"
11
- },
12
- resolve: {
13
- alias: {
14
- picomatch: require.resolve("picomatch-browser")
15
- }
16
11
  }
17
12
  });