veams-component-form
Advanced tools
Comparing version 5.0.1 to 5.1.0
@@ -0,1 +1,4 @@ | ||
### v5.1.0 | ||
- Make component compatible with veams-cli@2.0.xx | ||
### v5.0.1 | ||
@@ -2,0 +5,0 @@ - Fix scss file reference in settings |
{ | ||
"type": "component", | ||
"displayName": "c-form", | ||
"contextData": "form-bp", | ||
"layout": "lyt-docs", | ||
"subTemplates": [ | ||
"c-form.hbs", | ||
"c-form__checkbox.hbs", | ||
"c-form__checkbox-item.hbs", | ||
"c-form__col.hbs", | ||
"c-form__datepicker.hbs", | ||
"c-form__fieldset.hbs", | ||
"c-form__input.hbs", | ||
"c-form__radio.hbs", | ||
"c-form__radio-item.hbs", | ||
"c-form__row.hbs", | ||
"c-form__select.hbs", | ||
"c-form__submit.hbs", | ||
"c-form__text.hbs", | ||
"c-form__textarea.hbs" | ||
"templates/form.hbs", | ||
"templates/form-fields/form__checkbox.hbs", | ||
"templates/form-fields/form__checkbox-item.hbs", | ||
"templates/form-fields/form__col.hbs", | ||
"templates/form-fields/form__datepicker.hbs", | ||
"templates/form-fields/form__fieldset.hbs", | ||
"templates/form-fields/form__input.hbs", | ||
"templates/form-fields/form__radio.hbs", | ||
"templates/form-fields/form__radio-item.hbs", | ||
"templates/form-fields/form__row.hbs", | ||
"templates/form-fields/form__select.hbs", | ||
"templates/form-fields/form__submit.hbs", | ||
"templates/form-fields/form__text.hbs", | ||
"templates/form-fields/form__textarea.hbs" | ||
], | ||
"scssFiles": [ | ||
"_c-form.scss", | ||
"_c-form__datepicker.scss" | ||
"styles/_form.scss", | ||
"styles/_form__datepicker.scss" | ||
], | ||
"jsFiles": [ | ||
"form-ajax.js", | ||
"form-datepicker.js" | ||
"scripts/form-ajax.js", | ||
"scripts/form-datepicker.js" | ||
] | ||
} |
@@ -9,5 +9,5 @@ ## Usage | ||
{{#with form-bp.variations.default}} | ||
{{#wrapWith "c-form" settings=settings}} | ||
{{#wrapWith "form" settings=settings}} | ||
{{#each content.fieldsets}} | ||
{{> c-form__fieldset}} | ||
{{> form__fieldset}} | ||
{{/each}} | ||
@@ -26,17 +26,7 @@ {{/wrapWith}} | ||
// @INSERT :: START @tag: js-init-v5 // | ||
, | ||
/** | ||
* Init AJAX Form | ||
*/ | ||
{ | ||
namespace: 'form-ajax', | ||
module: FormAjax | ||
}//, | ||
/** | ||
* Init Form Datepicker (requires moment.js and pikaday.js) | ||
*/ | ||
//{ | ||
//namespace: 'form-datepicker', | ||
//module: FormDatepicker | ||
//} | ||
// Init AJAX Form | ||
Veams.modules.add({ namespace: 'form-ajax', module: FormAjax }); | ||
// Init Form Datepicker (requires moment.js and pikaday.js) | ||
//Veams.modules.add({ namespace: 'form-datepicker', module: FormDatepicker }); | ||
// @INSERT :: END // | ||
@@ -43,0 +33,0 @@ ``` |
{ | ||
"name": "veams-component-form", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"description": "The form component is a complete solution for your forms. It provides ajax functionality, a datepicker (pikaday.js), custom styles for checkboxes and radio buttons, jQuery-free", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -5,8 +5,8 @@ /** | ||
* @module FormAjax | ||
* @version v5.0.1 | ||
* @version v5.1.0 | ||
* | ||
* @author Sebastian Fitzner | ||
*/ | ||
import { Veams } from 'app'; | ||
import VeamsComponent from 'veams/src/js/common/component'; | ||
import { Veams } from 'app.veams'; | ||
import VeamsComponent from 'veams/lib/common/component'; | ||
const $ = Veams.$; | ||
@@ -42,3 +42,3 @@ | ||
return { | ||
version: '5.0.1', | ||
version: '5.1.0', | ||
vc: true, | ||
@@ -45,0 +45,0 @@ mod: false // set to true if source was modified in project |
@@ -11,4 +11,4 @@ /** | ||
require('moment'); | ||
import { Veams } from 'app'; | ||
import VeamsComponent from 'veams/src/js/common/component'; | ||
import { Veams } from 'app.veams'; | ||
import VeamsComponent from 'veams/lib/common/component'; | ||
const $ = Veams.$; | ||
@@ -15,0 +15,0 @@ const Pikaday = require('pikaday'); |
37718
717