/**
 * Object with data-attributes (HTML5) with a special <markup>
 *
 * @namespace Lungo.Attributes
 * @class Data
 *
 * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
 * @author Guillermo Pascual <pasku@tapquo.com> || @pasku1
 */

Lungo.Attributes.Data = {
    search: {
        selector: '*',
        html: '<input type="search" placeholder="{{value}}"/><a href="#" class="button" data-icon="search"></a>'
    },
    count: {
        selector: '*',
        html: '<span class="tag theme count">{{value}}</span>'
    },
    pull: {
        selector: 'section',
        html: '<div class="{{value}}" data-control="pull" data-icon="down" data-loading="black">\
                    <strong>title</strong>\
                </div>'
    },
    progress: {
        selector: '*',
        html: '<div class="progress">\
                    <span class="bar"><span class="value" style="width:{{value}};"></span></span>\
                </div>'
    },
    label: {
        selector: '*',
        html: '<abbr>{{value}}</abbr>'
    },
    icon: {
        selector: '*',
        html: '<span class="icon {{value}}"></span>'
    },
    image: {
        selector: '*',
        html: '<img src="{{value}}" class="icon" />'
    },
    title: {
        selector: 'header',
        html: '<span class="title centered">{{value}}</span>'
    },
    loading: {
        selector: '*',
        html: '<div class="loading {{value}}">\
                    <span class="top"></span>\
                    <span class="right"></span>\
                    <span class="bottom"></span>\
                    <span class="left"></span>\
                </div>'
    },
    back: {
        selector: 'header',
        html: '<nav class="left"><a href="#back" data-router="section" class="left"><span class="icon {{value}}"></span></a></nav>'
    }
};
