Skip to content

Commit

Permalink
Merge pull request #325 from dynamic-forms/feature/16.0.x-improvements
Browse files Browse the repository at this point in the history
Release of 16.0.0-next.5
  • Loading branch information
AlexanderGebuhr committed Apr 10, 2023
2 parents 15076ba + 8c56817 commit 20e39fa
Show file tree
Hide file tree
Showing 33 changed files with 1,880 additions and 1,202 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
# Changelog

## 16.0.0-next.5 (2023-04-10)

* **core:** support of method ```clear()``` for ```DynamicFormField```
* **bootstrap:** implementation of ```DynamicFormControlAddOn``` suffix for datepicker and file
* **material:** implementation of ```DynamicFormControlAddOn``` suffix for datepicker and file

### Bug Fixes

* **bootstrap:** fixed issue of file input component not opening file dialog

## 16.0.0-next.4 (2023-04-03)

### Features

* **core:** support of floating label
* **bootstrap:** implementation of floating label for combobox, datepicker, file, numberbox, select, textarea and textbox
* **material:** implementation of floating label for combobox, datepicker, file, numberbox, select, textarea and textbox

## 16.0.0-next.3 (2023-03-24)

### Features

* **core:** extension of ```DynamicFormElementExpressionData```, ```DynamicFormFieldExpressionData``` and ```DynamicFormActionExpressionData``` with properties ```hidden```, ```disabled``` (only action and field) and ```readonly``` (only field)
* **core:** introduction of ```DynamicFormTextboxModule``` with action handler ```dynamicFormTextboxToggleAsTextTypeHandler``` to toggle textbox as text type (can be used for textbox add-on to show / hide password in example)

## 16.0.0-next.2 (2023-03-21)

### Features

* **core:** support of ```DynamicFormElement``` or ```DynamicFormAction``` as ```DynamicFormControlAddOn``` for ```DynamicFormControl``` (prefix and / or suffix)
* **core:** support of hidden ```DynamicFormElement``` and ```DynamicFormElementBase``` and improvements regarding hidden elements, actions and fields by using attribute instead of CSS class
* **core:** introduction of ```DynamicFormTextModule``` and ```DynamicFormTextComponent``` to render plain text
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is an [**Angular**](https://angular.io) project for dynamic forms based on

- Dynamic [**reactive forms**](https://angular.io/guide/reactive-forms) based on **JSON** definition
- Structuring / nesting dynamic forms by
- Dynamic form elements (container, accordion, tabs, content, markdown, modal)
- Dynamic form elements (container, accordion, tabs, text, content, markdown, modal)
- Dynamic form fields (control, group, array, dictionary)
- Dynamic form actions (button, icon)
- Dynamic form controls / inputs include
Expand Down Expand Up @@ -65,12 +65,12 @@ This is an [**Angular**](https://angular.io) project for dynamic forms based on

## **Packages**

### **Version 16** [![Build Status](https://dev.azure.com/alexandergebuhr/dynamic-forms/_apis/build/status/dynamic-forms-publish?branchName=refs/tags/16.0.0-next.4)](https://dev.azure.com/alexandergebuhr/dynamic-forms/_build/latest?definitionId=45&branchName=refs/tags/16.0.0-next.4)
### **Version 16** [![Build Status](https://dev.azure.com/alexandergebuhr/dynamic-forms/_apis/build/status/dynamic-forms-publish?branchName=refs/tags/16.0.0-next.5)](https://dev.azure.com/alexandergebuhr/dynamic-forms/_build/latest?definitionId=45&branchName=refs/tags/16.0.0-next.5)

- `npm install @dynamic-forms/core@16.0.0-next.4`
- `npm install @dynamic-forms/bootstrap@16.0.0-next.4`
- `npm install @dynamic-forms/material@16.0.0-next.4`
- `npm install @dynamic-forms/markdown@16.0.0-next.4`
- `npm install @dynamic-forms/core@16.0.0-next.5`
- `npm install @dynamic-forms/bootstrap@16.0.0-next.5`
- `npm install @dynamic-forms/material@16.0.0-next.5`
- `npm install @dynamic-forms/markdown@16.0.0-next.5`

### **Version 15** [![Build Status](https://dev.azure.com/alexandergebuhr/dynamic-forms/_apis/build/status/v15/dynamic-forms-v15-publish?branchName=refs/tags/15.1.0)](https://dev.azure.com/alexandergebuhr/dynamic-forms/_build/latest?definitionId=41&branchName=refs/tags/15.1.0)

Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/assets/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "16.0.0-next.4",
"version": "16.0.0-next.5",
"build": "187",
"buildUrl": "https://dev.azure.com/alexandergebuhr/dynamic-forms/_build?definitionId=39&_a=summary",
"release": "17",
Expand All @@ -16,7 +16,7 @@
},
"versions": [
{
"name": "16.0.0-next.4",
"name": "16.0.0-next.5",
"url": "https://dynamic-forms.azurewebsites.net/v16/dev"
},
{
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/assets/config.prod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "16.0.0-next.4",
"version": "16.0.0-next.5",
"build": "187",
"buildUrl": "https://dev.azure.com/alexandergebuhr/dynamic-forms/_build?definitionId=39&_a=summary",
"release": "17",
Expand All @@ -16,7 +16,7 @@
},
"versions": [
{
"name": "16.0.0-next.4",
"name": "16.0.0-next.5",
"url": "https://dynamic-forms.azurewebsites.net/v16"
},
{
Expand Down
8 changes: 8 additions & 0 deletions apps/demo/src/assets/examples-menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
"id": "inputs-add-ons-text",
"label": "Text"
},
{
"id": "inputs-add-ons-button",
"label": "Button"
},
{
"id": "inputs-add-ons-icon",
"label": "Icon"
},
{
"id": "inputs-add-ons-floating-label",
"label": "Floating label"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"template": {
"label": "Inputs with add-ons"
},
"children": [
{
"key": "combobox",
"type": "control",
"template": {
"label": "Combobox",
"input": {
"type": "combobox",
"placeholder": "Enter a text",
"defaultValue": "Value1",
"options": [
"Value1",
"Value2",
"Value3"
]
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
},
{
"key": "datepicker",
"type": "control",
"template": {
"label": "Datepicker",
"input": {
"type": "datepicker",
"placeholder": "Enter a date",
"defaultValue": "2019-01-01"
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
},
{
"key": "file",
"type": "control",
"template": {
"label": "File",
"input": {
"type": "file",
"placeholder": "Upload a file"
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
},
{
"key": "numberbox",
"type": "control",
"template": {
"label": "Numberbox",
"input": {
"type": "numberbox",
"placeholder": "Enter a number",
"defaultValue": 0.01
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
},
{
"key": "select",
"type": "control",
"template": {
"label": "Select",
"input": {
"type": "select",
"placeholder": "Select an option",
"defaultValue": 1,
"options": [
{
"value": 1,
"label": "Option 1"
},
{
"value": 2,
"label": "Option 2"
}
]
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
},
{
"key": "textarea",
"type": "control",
"template": {
"label": "Textarea",
"input": {
"type": "textarea",
"placeholder": "Enter a text",
"defaultValue": "Text line 1\nText line 2"
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
},
{
"key": "textbox",
"type": "control",
"template": {
"label": "Textbox",
"input": {
"type": "textbox",
"placeholder": "Enter a text",
"defaultValue": "Text 1, Text 2"
},
"validation": {
"required": true
}
},
"suffixAddOn": {
"type": "button",
"template": {
"type": "button",
"label": "Clear",
"action": "clear",
"color": "inputAction"
}
}
}
],
"footerActions": [
{
"id": "action-submit",
"type": "button",
"template": {
"type": "submit",
"label": "Submit"
},
"expressions": {
"disabled": "data.root.status !== 'VALID'"
}
},
{
"id": "action-reset",
"type": "button",
"template": {
"type": "reset",
"label": "Reset"
}
},
{
"id": "action-reset-default",
"type": "button",
"template": {
"type": "button",
"label": "Reset default",
"action": "resetDefault"
}
}
]
}
Loading

0 comments on commit 20e39fa

Please sign in to comment.