Browse Source

Add password field component

pull/4023/head
Andrew Kingston 5 years ago
parent
commit
78865ddef4
  1. 1
      packages/builder/src/components/design/AppPreview/componentStructure.json
  2. 28
      packages/standard-components/manifest.json
  3. 5
      packages/standard-components/src/forms/PasswordField.svelte
  4. 1
      packages/standard-components/src/forms/index.js

1
packages/builder/src/components/design/AppPreview/componentStructure.json

@ -12,6 +12,7 @@
"fieldgroup",
"stringfield",
"numberfield",
"passwordfield",
"optionsfield",
"booleanfield",
"longformfield",

28
packages/standard-components/manifest.json

@ -1295,6 +1295,34 @@
}
]
},
"passwordfield": {
"name": "Password Field",
"icon": "ri-lock-password-line",
"styleable": true,
"settings": [
{
"type": "field/string",
"label": "Field",
"key": "field"
},
{
"type": "text",
"label": "Label",
"key": "label"
},
{
"type": "text",
"label": "Placeholder",
"key": "placeholder"
},
{
"type": "boolean",
"label": "Disabled",
"key": "disabled",
"defaultValue": false
}
]
},
"optionsfield": {
"name": "Options Picker",
"icon": "ri-file-list-line",

5
packages/standard-components/src/forms/PasswordField.svelte

@ -0,0 +1,5 @@
<script>
import StringField from "./StringField.svelte"
</script>
<StringField {...$$props} type="password" />

1
packages/standard-components/src/forms/index.js

@ -8,3 +8,4 @@ export { default as longformfield } from "./LongFormField.svelte"
export { default as datetimefield } from "./DateTimeField.svelte"
export { default as attachmentfield } from "./AttachmentField.svelte"
export { default as relationshipfield } from "./RelationshipField.svelte"
export { default as passwordfield } from "./PasswordField.svelte"

Loading…
Cancel
Save