UNPKG

ember-cli-bootstrap-sass

Version:

Include bootstrap-sass and bootstrap-for-ember into an ember-cli app

230 lines (196 loc) 9.88 kB
(function() { Bootstrap.BsWellComponent = Ember.Component.extend({ layoutName: 'components/bs-well', classNameBindings: ['small:well-sm', 'large:well-lg'], classNames: ['well'], click: function() { return this.sendAction('clicked'); } }); Ember.Handlebars.helper('bs-well', Bootstrap.BsWellComponent); }).call(this); (function() { Bootstrap.BsPageHeaderComponent = Ember.Component.extend({ layoutName: 'components/bs-page-header', classNames: ['page-header'] }); Ember.Handlebars.helper('bs-page-header', Bootstrap.BsPageHeaderComponent); }).call(this); (function() { Bootstrap.BsPanelComponent = Ember.Component.extend(Bootstrap.TypeSupport, { layoutName: 'components/bs-panel', classNames: ['panel'], classTypePrefix: ['panel'], classNameBindings: ['fade', 'fade:in'], clicked: null, onClose: null, fade: true, collapsible: false, open: true, actions: { close: function(event) { this.sendAction('onClose'); this.$().removeClass('in'); return setTimeout((function() { return this.destroy(); }).bind(this), 250); } }, click: function(event) { return this.sendAction('clicked'); }, collapsibleBodyId: (function() { return "" + (this.get('elementId')) + "_body"; }).property('collapsible'), collapsibleBodyLink: (function() { return "#" + (this.get('elementId')) + "_body"; }).property('collapsibleBodyId') }); Ember.Handlebars.helper('bs-panel', Bootstrap.BsPanelComponent); }).call(this); this["Ember"] = this["Ember"] || {}; this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; this["Ember"]["TEMPLATES"]["components/bs-page-header"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { this.compilerInfo = [4,'>= 1.0.0']; helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; var buffer = '', stack1, hashTypes, hashContexts, escapeExpression=this.escapeExpression, self=this; function program1(depth0,data) { var buffer = '', hashTypes, hashContexts; data.buffer.push("\n <small>"); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "sub", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("</small>\n "); return buffer; } data.buffer.push("<h1>\n "); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "title", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("\n "); hashTypes = {}; hashContexts = {}; stack1 = helpers['if'].call(depth0, "sub", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); if(stack1 || stack1 === 0) { data.buffer.push(stack1); } data.buffer.push("\n</h1>"); return buffer; }); this["Ember"]["TEMPLATES"]["components/bs-well"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { this.compilerInfo = [4,'>= 1.0.0']; helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; var hashTypes, hashContexts, escapeExpression=this.escapeExpression; hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); }); this["Ember"]["TEMPLATES"]["components/bs-panel"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { this.compilerInfo = [4,'>= 1.0.0']; helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; var buffer = '', stack1, hashTypes, hashContexts, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; function program1(depth0,data) { var buffer = '', stack1, hashTypes, hashContexts; data.buffer.push("\n <div class=\"panel-heading\">\n "); hashTypes = {}; hashContexts = {}; stack1 = helpers['if'].call(depth0, "collapsible", {hash:{},inverse:self.program(4, program4, data),fn:self.program(2, program2, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); if(stack1 || stack1 === 0) { data.buffer.push(stack1); } data.buffer.push("\n "); hashTypes = {}; hashContexts = {}; stack1 = helpers['if'].call(depth0, "dismiss", {hash:{},inverse:self.noop,fn:self.program(6, program6, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); if(stack1 || stack1 === 0) { data.buffer.push(stack1); } data.buffer.push("\n </div>\n"); return buffer; } function program2(depth0,data) { var buffer = '', stack1, hashContexts, hashTypes, options; data.buffer.push("\n <a class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion\" "); hashContexts = {'href': depth0}; hashTypes = {'href': "ID"}; options = {hash:{ 'href': ("collapsibleBodyLink") },contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data}; data.buffer.push(escapeExpression(((stack1 = helpers['bind-attr'] || depth0['bind-attr']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bind-attr", options)))); data.buffer.push(">\n "); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "heading", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("\n </a>\n "); return buffer; } function program4(depth0,data) { var buffer = '', hashTypes, hashContexts; data.buffer.push("\n "); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "heading", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("\n "); return buffer; } function program6(depth0,data) { var buffer = '', hashTypes, hashContexts; data.buffer.push("\n <a class=\"close\" data-dismiss=\"panel\" "); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers.action.call(depth0, "close", {hash:{},contexts:[depth0],types:["STRING"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push(">&times;</a>\n "); return buffer; } function program8(depth0,data) { var buffer = '', stack1, hashContexts, hashTypes, options; data.buffer.push("\n <div "); hashContexts = {'id': depth0}; hashTypes = {'id': "ID"}; options = {hash:{ 'id': ("collapsibleBodyId") },contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data}; data.buffer.push(escapeExpression(((stack1 = helpers['bind-attr'] || depth0['bind-attr']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bind-attr", options)))); data.buffer.push(" "); hashContexts = {'class': depth0}; hashTypes = {'class': "STRING"}; options = {hash:{ 'class': (":panel-collapse :collapse open:in") },contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data}; data.buffer.push(escapeExpression(((stack1 = helpers['bind-attr'] || depth0['bind-attr']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bind-attr", options)))); data.buffer.push(">\n <div class=\"panel-body\">"); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("</div>\n </div>\n"); return buffer; } function program10(depth0,data) { var buffer = '', hashTypes, hashContexts; data.buffer.push("\n <div id=\"collapseOne\" class=\"panel-body\">"); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("</div>\n"); return buffer; } function program12(depth0,data) { var buffer = '', hashTypes, hashContexts; data.buffer.push("\n <div class=\"panel-footer\">"); hashTypes = {}; hashContexts = {}; data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "footer", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); data.buffer.push("</div>\n"); return buffer; } hashTypes = {}; hashContexts = {}; stack1 = helpers['if'].call(depth0, "heading", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); if(stack1 || stack1 === 0) { data.buffer.push(stack1); } data.buffer.push("\n\n"); hashTypes = {}; hashContexts = {}; stack1 = helpers['if'].call(depth0, "collapsible", {hash:{},inverse:self.program(10, program10, data),fn:self.program(8, program8, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); if(stack1 || stack1 === 0) { data.buffer.push(stack1); } data.buffer.push("\n\n"); hashTypes = {}; hashContexts = {}; stack1 = helpers['if'].call(depth0, "footer", {hash:{},inverse:self.noop,fn:self.program(12, program12, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); if(stack1 || stack1 === 0) { data.buffer.push(stack1); } data.buffer.push("\n"); return buffer; });