Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit d9880b8

Browse files
ShMcKShMcK
authored andcommitted
bower update to a-f@3.0.0
1 parent 39abf8f commit d9880b8

File tree

7 files changed

+47
-107
lines changed

7 files changed

+47
-107
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"angular": "~1.3.11",
2626
"angular-messages": "~1.3.11",
27-
"angular-formly": ">=2.0.0",
27+
"angular-formly": "!3.0.0",
2828
"lumx": "~0.3.*"
2929
}
3030
}

demo/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"angular": "~1.3.11",
77
"angular-messages": "~1.3.11",
88
"angular-sanitize": "~1.3.11",
9-
"angular-formly": "~2.0.0",
9+
"angular-formly": "~3.0.2",
1010
"lumx": "~0.3.2",
1111
"angular-formly-templates-lumx": "~1.0.1",
1212
"angular-ui-router": "~0.2.13",

demo/src/app/formFields/flex.formFields.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,39 @@
1616
this.fields = function () {
1717
return [{
1818
'key': 'row',
19-
type: 'lx-wrapper-flex-container',
20-
//'wrapper': 'lx-wrapper-flex-container',
19+
type: 'lx-flex',
2120
templateOptions: {
22-
flexContainer: {
21+
flex: {
2322
container: 'row',
2423
align: 'space-between'
2524
},
25+
model: this,
2626
'fields': [{
2727
key: 'rowItem1',
2828
type: 'lx-text',
29+
wrapper: 'lx-wrapper-flex-item',
2930
templateOptions: {
31+
flex: {},
3032
type: 'text',
3133
fixedLabel: true,
3234
label: 'Item 1'
3335
}
3436
}, {
3537
key: 'rowItem2',
3638
type: 'lx-text',
39+
wrapper: 'lx-wrapper-flex-item',
3740
templateOptions: {
41+
flex: {},
3842
type: 'text',
3943
fixedLabel: true,
4044
label: 'Item 2'
4145
}
4246
}, {
4347
key: 'rowItem3',
4448
type: 'lx-text',
49+
wrapper: 'lx-wrapper-flex-item',
4550
templateOptions: {
51+
flex: {},
4652
type: 'text',
4753
fixedLabel: true,
4854
label: 'Item 3'

gulpfile.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ var gulp = require('gulp'),
66
$ = require('gulp-load-plugins')();
77

88
var path = {
9-
src: ['./src/fields/*.html', './src/wrappers/*.html'],
10-
modules: './src/modules/',
9+
src: ['src/fields/*.html', 'src/wrappers/*.html'],
10+
modules: 'src/modules/',
1111
fileName: 'angular-formly-templates-lumx'
1212
};
1313

1414
var project = {
1515
module: 'formly.lumx',
1616
prefix: 'lx',
17-
dest: path.modules + path.fileName + '.js'
17+
dest: path.modules + path.fileName + '.js',
1818
};
1919

20+
var demoDest = 'demo/bower_components/' + project.fileName + project.dest;
21+
2022
gulp.task('build', ['templates'], function () {
2123
var root = path.modules + path.fileName;
2224
del([root + '.min.js']);
@@ -31,6 +33,12 @@ gulp.task('build', ['templates'], function () {
3133
});
3234

3335

36+
gulp.task('copyTemplatesToDemo', function () {
37+
gulp.src(project.dest)
38+
.pipe($.copy(demoDest))
39+
.pipe(gulp.dest(demoDest));
40+
});
41+
3442
gulp.task('templates', ['clean'], function () {
3543
var getFirstWrapper = new RegExp('\"' + project.prefix + '\-wrapper');
3644
var getPrefix = new RegExp('\"' + project.prefix + '\-', 'g');

src/fields/lx-flex.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div id="{{::id_container}}"
2+
ng-class="::options.templateOptions.flex.className"
3+
style="::options.templateOptions.flexContainer.style"
4+
flex-container="{{::options.templateOptions.flex.container}}"
5+
flex-align="{{::options.templateOptions.flex.align}}"
6+
flex-gutter="{{::options.templateOptions.flex.gutter}}">
7+
8+
<formly-form fields="options.templateOptions.fields"
9+
model="::$parent.model">
10+
</div>

src/modules/angular-formly-templates-lumx.js

Lines changed: 15 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wrappers/lx-wrapper-flex-container.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)