Skip to content

Commit

Permalink
Merge branch 'release/0.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes committed Sep 11, 2014
2 parents 890942b + 4cd24c5 commit dd28f3f
Show file tree
Hide file tree
Showing 95 changed files with 6,776 additions and 5,137 deletions.
4 changes: 4 additions & 0 deletions apimocker_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"verbs": ["GET"],
"mockFile": "datagrid/children/sorted.json"
},
"admin/api/datagrid/fields": {
"verbs": ["GET"],
"mockFile": "datagrid/fields.json"
},

"admin/api/autocomplete": {
"verbs": ["GET"],
Expand Down
55 changes: 55 additions & 0 deletions apimocks/datagrid/fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[{
"name":"id",
"translation":"public.id",
"disabled":true,
"default":false,
"sortable":true,
"type":"",
"width":"",
"minWidth":"",
"editable":false
},
{
"name":"content1",
"translation":"Content 1",
"disabled":false,
"default":false,
"sortable":true,
"type":"title",
"width":"25%",
"minWidth":"",
"editable":false
},
{
"name":"content2",
"translation":"Content 2",
"disabled":false,
"default":false,
"sortable":true,
"type":"title",
"width":"25%",
"minWidth":"",
"editable":false
},
{
"name":"content3",
"translation":"Content 3",
"disabled":false,
"default":false,
"sortable":true,
"type":"bytes",
"width":"25%",
"minWidth":"",
"editable":false
},
{
"name":"date",
"translation":"Date",
"disabled":false,
"default":false,
"sortable":true,
"type":"",
"width":"25%",
"minWidth":"",
"editable":false
}]
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "husky",
"version": "0.6.5",
"version": "0.7.0",
"main": "js/husky.js",
"dependencies": {
"backbone": "~1.0.0",
Expand Down
44 changes: 5 additions & 39 deletions demos/datagrid/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ require(['lib/husky'], function(Husky) {
validation: true,
addRowTop: true,
showHead: true, // false to hide table-head
//fullWidth: true, // uncomment for full-width mode
fullWidth: true, // uncomment for full-width mode
contentContainer: '#content',
highlightSelected: true
highlightSelected: true,
croppedMaxLength: 5,
stickyHeader: true
},
thumbnail: {
}
Expand All @@ -49,43 +51,7 @@ require(['lib/husky'], function(Husky) {
searchFields: ['fullName'],
columnOptionsInstanceName: '',
el: '#datagrid',
matchings: [
{
content: 'Content 1',
width: "25%",
name: "content1",
editable: true,
sortable: true,
type: 'title',
validation: {
required: true
}
},
{
content: 'Content 2',
width: "25%",
name: "content2",
editable: false,
sortable: true,
type: 'bytes',
validation: {
required: true
}
},
{
content: 'Content 3',
width: "25%",
name: "content3",
type: 'thumbnails'
},
{
content: 'Date',
width: "25%",
sortable: true,
name: 'date',
type: 'date'
}
]
matchings: 'http://husky.lo:7878/admin/api/datagrid/fields'
}
},
{
Expand Down
19 changes: 19 additions & 0 deletions demos/input/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ <h1>Husky input demo</h1>
<div data-aura-component="input@husky"
data-aura-skin="date"
data-aura-instance-name="date"
data-aura-datepicker-options='{ "startDate": "2014-08-01", "endDate":"2014-09-03"}'
data-form="true"
data-type="husky-input"
data-validation-required="true"
Expand Down Expand Up @@ -124,6 +125,24 @@ <h1>Husky input demo</h1>
</div>
</div>
</div>

<div class="grid-row">
<div class="grid-col-6">
<div class="form-group">
<label>Disabled</label>
<div data-aura-component="input@husky"
data-aura-skin="email"
data-aura-instance-name="disabled-input"
data-aura-disabled="true"
data-form="true"
data-type="husky-input"
data-validation-required="true"
data-mapper-property="color"
data-value="#CCCCCC"></div>
</div>
</div>
</div>

<div class="grid-row m-top-30 m-bottom-30"></div>
<div class="grid-row">
<div class="grid-col-2">
Expand Down
3 changes: 2 additions & 1 deletion demos/overlay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@
sizeRelativeTo: '#overlaySlides .slide-0 .overlay-content',
wrapper: {height: 100},
showEdit: false,
showStatus: false
showStatus: false,
responsive: false
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion demos/select/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ <h1>Husky Select Demo</h1>
console.log(form.mapper.getData());
});

$('#ddms5').on('changed', function() {
$('#ddms5').on('change', function() {
alert("i got changed");
});
});
Expand Down
Loading

0 comments on commit dd28f3f

Please sign in to comment.