UNPKG

semantic-network

Version:

A utility library for manipulating a list of links that form a semantic interface to a network of resources.

54 lines 2.84 kB
/** * Known set of field types from the semantic link. Maps the representation types to the known types that * can be rendered (input not select at this stage) * * @see https://bootstrap-vue.js.org/docs/components/form-input * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input * * Caveats with input types: * - Not all browsers support all input types, nor do some types render in the same format across browser types/version. * - Browsers that do not support a particular type will fall back to a text input type. As an example, * Firefox desktop doesn't support date, datetime, or time, while Firefox mobile does. * - Chrome lost support for datetime in version 26, Opera in version 15, and Safari in iOS 7. Instead * of using datetime, since support should be deprecated, use date and time as two separate input types. * - For date and time style input, where supported, the displayed value in the GUI may be different than what * is returned by its value. * - Regardless of input type, the value is always returned as a string representation. */ export var FieldType; (function (FieldType) { // html field types FieldType["Text"] = "//types/form/text"; FieldType["Password"] = "//types/form/text/password"; FieldType["Email"] = "//types/form/text/email"; FieldType["Uri"] = "//types/form/text/uri"; FieldType["Tel"] = "//types/form/text/tel"; FieldType["Currency"] = "//types/form/text/currency"; FieldType["Color"] = "//types/form/color"; FieldType["Number"] = "//types/form/number"; FieldType["Height"] = "//types/form/number/height"; FieldType["Checkbox"] = "//types/form/check"; FieldType["Date"] = "//types/form/date"; FieldType["DateTime"] = "//types/form/datetime"; FieldType["DateRange"] = "//types/form/date/range"; FieldType["Week"] = "//types/form/date/week"; FieldType["Month"] = "//types/form/date/month"; FieldType["Range"] = "//types/form/range"; FieldType["Time"] = "//types/form/time"; FieldType["Select"] = "//types/form/select"; FieldType["Hidden"] = "//types/form/hidden"; FieldType["File"] = "//types/form/file"; // Non-html field types FieldType["Address"] = "//types/form/text/address"; FieldType["AddressPostal"] = "//types/form/text/address/postal"; FieldType["EmailList"] = "//types/form/text/email/list"; FieldType["Signature"] = "//types/form/signature"; FieldType["TextArea"] = "//types/form/text/area"; FieldType["TextHtml"] = "//types/form/text/html"; // grouping field types FieldType["Collection"] = "//types/form/collection"; FieldType["Group"] = "//types/form/group"; // FieldType["Enum"] = "//types/form/enum"; })(FieldType || (FieldType = {})); //# sourceMappingURL=formTypes.js.map