bobjoll 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +25 -0
- package/scss/layout/_footer.scss +10 -0
- package/scss/layout/_header.scss +10 -0
- package/scss/modules/_fonts.scss +26 -0
- package/scss/modules/_reset.scss +219 -0
- package/scss/modules/bourbon/addons/_clearfix.scss +25 -0
- package/scss/modules/bourbon/addons/_ellipsis.scss +30 -0
- package/scss/modules/bourbon/addons/_position.scss +48 -0
- package/scss/modules/bourbon/addons/_prefixer.scss +66 -0
- package/scss/modules/bourbon/addons/_size.scss +51 -0
- package/scss/modules/bourbon/addons/_timing-functions.scss +34 -0
- package/scss/modules/bourbon/addons/_triangle.scss +63 -0
- package/scss/modules/bourbon/css3/_calc.scss +4 -0
- package/scss/modules/bourbon/css3/_flex-box.scss +287 -0
- package/scss/modules/bourbon/css3/_keyframes.scss +36 -0
- package/scss/modules/bourbon/css3/_linear-gradient.scss +38 -0
- package/scss/modules/bourbon/css3/_placeholder.scss +8 -0
- package/scss/modules/bourbon/css3/_selection.scss +42 -0
- package/scss/modules/bourbon/css3/_transition.scss +71 -0
- package/scss/modules/mixins/_component.scss +9 -0
- package/scss/modules/mixins/_grid.scss +75 -0
- package/scss/modules/mixins/_helpers.scss +224 -0
- package/scss/modules/variables/_colors.scss +447 -0
- package/scss/modules/variables/_general.scss +235 -0
- package/scss/partials/_accordion-v1-0.scss +165 -0
- package/scss/partials/_autocomplete-v1-0.scss +55 -0
- package/scss/partials/_general-v1-0.scss +51 -0
- package/scss/partials/_grid-v1-0.scss +109 -0
- package/scss/partials/_helper-v1-0.scss +299 -0
- package/scss/partials/_icon-v2-0.scss +323 -0
- package/scss/partials/_list-v1-0.scss +100 -0
- package/scss/partials/_modal-v1-0.scss +159 -0
- package/scss/partials/_notification-v1-1.scss +297 -0
- package/scss/partials/_progress-bar-v1.0.scss +25 -0
- package/scss/partials/_range-v1.0.scss +75 -0
- package/scss/partials/_tooltipFixed-v1.0.scss +128 -0
- package/scss/partials/_typography-v1-0.scss +201 -0
- package/scss/partials/animations/_fade.scss +23 -0
- package/scss/partials/animations/_rotate.scss +11 -0
- package/scss/partials/animations/_scale.scss +23 -0
- package/scss/partials/animations/_slide.scss +31 -0
- package/scss/partials/button-v4-0/_component.scss +304 -0
- package/scss/partials/form/_checkbox-and-radio-v1-0.scss +187 -0
- package/scss/partials/form/_dropdowns-v1-0.scss +323 -0
- package/scss/partials/form/_general-v1-0.scss +166 -0
- package/scss/partials/form/_group-v1-0.scss +157 -0
- package/scss/partials/form/_password-v1-0.scss +28 -0
- package/scss/partials/form/_switch-v1-0.scss +128 -0
- package/scss/partials/form/_upload-v1-0.scss +91 -0
- package/ts/library/common.ts +30 -0
- package/ts/library/cookie.ts +47 -0
- package/ts/library/delegate.ts +122 -0
- package/ts/library/dom.ts +124 -0
- package/ts/library/event.ts +138 -0
- package/ts/library/extend.js +32 -0
- package/ts/library/gr/dom.q.ts +12 -0
- package/ts/library/gr/social/dependency/twitter_pu.js +66 -0
- package/ts/library/gr/social/facebook.ts +154 -0
- package/ts/library/gr/social/google.ts +127 -0
- package/ts/library/gr/social/index.ts +35 -0
- package/ts/library/gr/social/twitter.ts +65 -0
- package/ts/library/helpers.ts +9 -0
- package/ts/library/number-abbreviate.js +57 -0
- package/ts/library/settings.ts +7 -0
- package/ts/library/storage.ts +131 -0
- package/ts/library/svg4everybody.legacy.js +122 -0
- package/ts/partials/accordion-v1.0.ts +104 -0
- package/ts/partials/accordionTabs-v1.0.ts +27 -0
- package/ts/partials/alert-v1.0.ts +51 -0
- package/ts/partials/copy-v1.0.ts +17 -0
- package/ts/partials/countdown-v1.0.ts +119 -0
- package/ts/partials/dropdown-v1.0.ts +247 -0
- package/ts/partials/hbs-v1.0.ts +9 -0
- package/ts/partials/modal-v1.0.ts +213 -0
- package/ts/partials/notifications-v1.1.ts +376 -0
- package/ts/partials/notify-v1.0.ts +746 -0
- package/ts/partials/password-v1.0.ts +19 -0
- package/ts/partials/popover-v1.0.ts +125 -0
- package/ts/partials/progress-bar-v1.0.ts +29 -0
- package/ts/partials/scroll-v1.0.ts +169 -0
- package/ts/partials/scrollable-v1.0.ts +90 -0
- package/ts/partials/tabs-v1.0.ts +79 -0
- package/ts/partials/tags-v1.0.ts +21 -0
- package/ts/partials/trigger-v2.0.ts +155 -0
- package/ts/partials/upload-v1.0.ts +17 -0
- package/ts/views/hbs/alert-v1.0/element.html.hbs +35 -0
- package/ts/views/hbs/countdown-v1.0/countdown-inner.hbs +39 -0
- package/ts/views/hbs/countdown-v1.0/countdown.hbs +4 -0
- package/ts/views/hbs/dropdown-v1.0/element.html.hbs +70 -0
- package/ts/views/hbs/helpers.js +58 -0
- package/ts/views/hbs/modal-v1.0/element.html.hbs +17 -0
- package/ts/views/hbs/notification-v1.1/element-disable.html.hbs +26 -0
- package/ts/views/hbs/notification-v1.1/element.html.hbs +43 -0
- package/ts/views/hbs/notification-v1.1/wrapper.html.hbs +4 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { delegate } from 'bobjoll/ts/library/dom';
|
|
2
|
+
|
|
3
|
+
(function() {
|
|
4
|
+
var upload_wrapper: any = document.querySelectorAll(upload_wrapper);
|
|
5
|
+
|
|
6
|
+
delegate('.upload input', 'change', function(this: HTMLInputElement) {
|
|
7
|
+
let label = (this.nextElementSibling as HTMLElement | null);
|
|
8
|
+
|
|
9
|
+
if (label && this.files && this.files.length > 0) {
|
|
10
|
+
if (this.files.length > 1) {
|
|
11
|
+
label.innerText = this.files.length + ' files selected.';
|
|
12
|
+
} else {
|
|
13
|
+
label.innerText = this.files[0].name;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
})();
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
+
return parent[propertyName];
|
|
6
|
+
}
|
|
7
|
+
return undefined
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return " "
|
|
11
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"class") || (depth0 != null ? lookupProperty(depth0,"class") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"class","hash":{},"data":data,"loc":{"start":{"line":3,"column":54},"end":{"line":3,"column":63}}}) : helper)));
|
|
12
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
13
|
+
return " data-recurrent=\"true\" ";
|
|
14
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
15
|
+
return " <button class=\"notification__close button button--sm button--icon button--link-inverted\">\n <i class=\"icon--cross\"></i>\n </button>\n";
|
|
16
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
17
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
19
|
+
return parent[propertyName];
|
|
20
|
+
}
|
|
21
|
+
return undefined
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return "<div \n id=\""
|
|
25
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"id") || (depth0 != null ? lookupProperty(depth0,"id") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"id","hash":{},"data":data,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":11}}}) : helper)))
|
|
26
|
+
+ "\" \n class=\"notification notification--alert"
|
|
27
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"class") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":40},"end":{"line":3,"column":70}}})) != null ? stack1 : "")
|
|
28
|
+
+ "\" \n "
|
|
29
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"recurrent") : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":51}}})) != null ? stack1 : "")
|
|
30
|
+
+ ">\n\n"
|
|
31
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"fixed") : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":6,"column":1},"end":{"line":10,"column":8}}})) != null ? stack1 : "")
|
|
32
|
+
+ "\n <div class=\"notification__content\">\n <div class=\"notification__state\">\n <i class=\"icon icon--sm\"></i>\n </div>\n\n <div class=\"notification__message\">\n "
|
|
33
|
+
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"html") || (depth0 != null ? lookupProperty(depth0,"html") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"html","hash":{},"data":data,"loc":{"start":{"line":18,"column":3},"end":{"line":18,"column":13}}}) : helper))) != null ? stack1 : "")
|
|
34
|
+
+ "\n </div> \n </div>\n</div>";
|
|
35
|
+
},"useData":true});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
+
return parent[propertyName];
|
|
6
|
+
}
|
|
7
|
+
return undefined
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"date") : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":8},"end":{"line":8,"column":17}}})) != null ? stack1 : "");
|
|
11
|
+
},"2":function(container,depth0,helpers,partials,data) {
|
|
12
|
+
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14
|
+
return parent[propertyName];
|
|
15
|
+
}
|
|
16
|
+
return undefined
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
return " <li class=\"countdown__"
|
|
20
|
+
+ alias3(((helper = (helper = lookupProperty(helpers,"key") || (data && lookupProperty(data,"key"))) != null ? helper : alias2),(typeof helper === "function" ? helper.call(alias1,{"name":"key","hash":{},"data":data,"loc":{"start":{"line":4,"column":30},"end":{"line":4,"column":38}}}) : helper)))
|
|
21
|
+
+ "\">\n <span class=\"countdown__value\">"
|
|
22
|
+
+ alias3(container.lambda(depth0, depth0))
|
|
23
|
+
+ "</span>\n <span class=\"countdown__description\">"
|
|
24
|
+
+ alias3((lookupProperty(helpers,"language")||(depth0 && lookupProperty(depth0,"language"))||alias2).call(alias1,(data && lookupProperty(data,"key")),{"name":"language","hash":{},"data":data,"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":68}}}))
|
|
25
|
+
+ "</span>\n </li>\n";
|
|
26
|
+
},"4":function(container,depth0,helpers,partials,data) {
|
|
27
|
+
return " <li class=\"uppercase\">00:00:00</li>\n";
|
|
28
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
29
|
+
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
31
|
+
return parent[propertyName];
|
|
32
|
+
}
|
|
33
|
+
return undefined
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return "<ul>\n"
|
|
37
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"date") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(4, data, 0),"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":11,"column":11}}})) != null ? stack1 : "")
|
|
38
|
+
+ "</ul>";
|
|
39
|
+
},"useData":true});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
return "<div class=\"countdown\"></div>";
|
|
4
|
+
},"useData":true});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var stack1;
|
|
4
|
+
|
|
5
|
+
return ((stack1 = (helpers.compare||(depth0 && depth0.compare)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),"==",((stack1 = (data && data.root)) && stack1.selectedIndex),{"name":"compare","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":12},"end":{"line":6,"column":24}}})) != null ? stack1 : "");
|
|
6
|
+
},"2":function(container,depth0,helpers,partials,data) {
|
|
7
|
+
var stack1;
|
|
8
|
+
|
|
9
|
+
return " "
|
|
10
|
+
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.innerText : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.program(5, data, 0),"data":data,"loc":{"start":{"line":5,"column":16},"end":{"line":5,"column":78}}})) != null ? stack1 : "")
|
|
11
|
+
+ "\n";
|
|
12
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
13
|
+
var helper;
|
|
14
|
+
|
|
15
|
+
return " "
|
|
16
|
+
+ container.escapeExpression(((helper = (helper = helpers.innerText || (depth0 != null ? depth0.innerText : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"innerText","hash":{},"data":data,"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":47}}}) : helper)))
|
|
17
|
+
+ " ";
|
|
18
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
19
|
+
var helper;
|
|
20
|
+
|
|
21
|
+
return " "
|
|
22
|
+
+ container.escapeExpression(((helper = (helper = helpers.innerHTML || (depth0 != null ? depth0.innerHTML : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"innerHTML","hash":{},"data":data,"loc":{"start":{"line":5,"column":57},"end":{"line":5,"column":70}}}) : helper)))
|
|
23
|
+
+ " ";
|
|
24
|
+
},"7":function(container,depth0,helpers,partials,data) {
|
|
25
|
+
return " dropdown__check";
|
|
26
|
+
},"9":function(container,depth0,helpers,partials,data) {
|
|
27
|
+
var helper;
|
|
28
|
+
|
|
29
|
+
return " <div class=\"dropdown__search\">\n <div class=\"group mg-none\">\n <input type=\"text\"\n name=\""
|
|
30
|
+
+ container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"name","hash":{},"data":data,"loc":{"start":{"line":14,"column":30},"end":{"line":14,"column":38}}}) : helper)))
|
|
31
|
+
+ "-search\"\n placeholder=\"Search\">\n <i class=\"icon icon--sm icon--mg-md icon--search\"></i>\n </div>\n </div>\n";
|
|
32
|
+
},"11":function(container,depth0,helpers,partials,data) {
|
|
33
|
+
var stack1;
|
|
34
|
+
|
|
35
|
+
return ((stack1 = (helpers.compare||(depth0 && depth0.compare)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.disabled : depth0),"==",false,{"name":"compare","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":23,"column":20},"end":{"line":32,"column":32}}})) != null ? stack1 : "");
|
|
36
|
+
},"12":function(container,depth0,helpers,partials,data) {
|
|
37
|
+
var stack1;
|
|
38
|
+
|
|
39
|
+
return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.value : depth0),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":24,"column":24},"end":{"line":31,"column":31}}})) != null ? stack1 : "");
|
|
40
|
+
},"13":function(container,depth0,helpers,partials,data) {
|
|
41
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
|
|
42
|
+
|
|
43
|
+
return " <li data-value=\""
|
|
44
|
+
+ container.escapeExpression(((helper = (helper = helpers.value || (depth0 != null ? depth0.value : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"value","hash":{},"data":data,"loc":{"start":{"line":25,"column":44},"end":{"line":25,"column":53}}}) : helper)))
|
|
45
|
+
+ "\">\n"
|
|
46
|
+
+ ((stack1 = helpers["if"].call(alias1,((stack1 = (data && data.root)) && stack1.checkList),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":26,"column":32},"end":{"line":28,"column":39}}})) != null ? stack1 : "")
|
|
47
|
+
+ " "
|
|
48
|
+
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.innerText : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.program(5, data, 0),"data":data,"loc":{"start":{"line":29,"column":32},"end":{"line":29,"column":94}}})) != null ? stack1 : "")
|
|
49
|
+
+ "\n </li>\n";
|
|
50
|
+
},"14":function(container,depth0,helpers,partials,data) {
|
|
51
|
+
var stack1;
|
|
52
|
+
|
|
53
|
+
return " <i class=\""
|
|
54
|
+
+ ((stack1 = (helpers.compare||(depth0 && depth0.compare)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),"!=",((stack1 = (data && data.root)) && stack1.selectedIndex),{"name":"compare","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":27,"column":46},"end":{"line":27,"column":110}}})) != null ? stack1 : "")
|
|
55
|
+
+ "icon icon--md icon--check inline v-alignc\"></i>\n";
|
|
56
|
+
},"15":function(container,depth0,helpers,partials,data) {
|
|
57
|
+
return "invisible ";
|
|
58
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
59
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});
|
|
60
|
+
|
|
61
|
+
return "<div class=\"dropdown__container\">\n <p class=\"dropdown__button\">\n"
|
|
62
|
+
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.options : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":8},"end":{"line":7,"column":17}}})) != null ? stack1 : "")
|
|
63
|
+
+ " </p>\n <div class=\"dropdown__select"
|
|
64
|
+
+ ((stack1 = helpers["if"].call(alias1,((stack1 = (data && data.root)) && stack1.checkList),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":32},"end":{"line":9,"column":78}}})) != null ? stack1 : "")
|
|
65
|
+
+ "\">\n"
|
|
66
|
+
+ ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.dataset : depth0)) != null ? stack1.search : stack1),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":10,"column":8},"end":{"line":19,"column":15}}})) != null ? stack1 : "")
|
|
67
|
+
+ " <div class=\"scrollable\">\n <ul>\n"
|
|
68
|
+
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.options : depth0),{"name":"each","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":22,"column":16},"end":{"line":33,"column":25}}})) != null ? stack1 : "")
|
|
69
|
+
+ " </ul>\n </div>\n </div>\n</div>";
|
|
70
|
+
},"useData":true});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var Handlebars = require('handlebars-template-loader/runtime');
|
|
2
|
+
|
|
3
|
+
Handlebars.registerHelper('get_length', function (obj) {
|
|
4
|
+
return obj.length;
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
Handlebars.registerHelper('compare', function (lvalue, operator, rvalue, options) {
|
|
8
|
+
|
|
9
|
+
var operators, result;
|
|
10
|
+
|
|
11
|
+
if (arguments.length < 3) {
|
|
12
|
+
throw new Error("Handlerbars Helper 'compare' needs 2 parameters");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (options === undefined) {
|
|
16
|
+
options = rvalue;
|
|
17
|
+
rvalue = operator;
|
|
18
|
+
operator = "===";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
operators = {
|
|
22
|
+
'==': function (l, r) { return l == r; },
|
|
23
|
+
'===': function (l, r) { return l === r; },
|
|
24
|
+
'!=': function (l, r) { return l != r; },
|
|
25
|
+
'!==': function (l, r) { return l !== r; },
|
|
26
|
+
'<': function (l, r) { return l < r; },
|
|
27
|
+
'>': function (l, r) { return l > r; },
|
|
28
|
+
'<=': function (l, r) { return l <= r; },
|
|
29
|
+
'>=': function (l, r) { return l >= r; },
|
|
30
|
+
'typeof': function (l, r) { return typeof l == r; }
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
if (!operators[operator]) {
|
|
34
|
+
throw new Error("Handlerbars Helper 'compare' doesn't know the operator " + operator);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
result = operators[operator](lvalue, rvalue);
|
|
38
|
+
|
|
39
|
+
if (result) {
|
|
40
|
+
return options.fn(this);
|
|
41
|
+
} else {
|
|
42
|
+
return options.inverse(this);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
Handlebars.registerHelper("math", function(lvalue, operator, rvalue, options) {
|
|
48
|
+
lvalue = parseFloat(lvalue);
|
|
49
|
+
rvalue = parseFloat(rvalue);
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
"+": lvalue + rvalue,
|
|
53
|
+
"-": lvalue - rvalue,
|
|
54
|
+
"*": lvalue * rvalue,
|
|
55
|
+
"/": lvalue / rvalue,
|
|
56
|
+
"%": lvalue % rvalue
|
|
57
|
+
}[operator];
|
|
58
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
+
return parent[propertyName];
|
|
6
|
+
}
|
|
7
|
+
return undefined
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return "<div id=\"modal-"
|
|
11
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":23}}}) : helper)))
|
|
12
|
+
+ "\" class=\"modal\">\n <div class=\"modal__container\">\n <button class=\"modal__close button button--sm button--icon button--link-dark\">\n <i class=\"icon--cross\"></i>\n </button>\n <div class=\"content\">\n "
|
|
13
|
+
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"html") || (depth0 != null ? lookupProperty(depth0,"html") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"html","hash":{},"data":data,"loc":{"start":{"line":7,"column":9},"end":{"line":7,"column":19}}}) : helper))) != null ? stack1 : "")
|
|
14
|
+
+ "\n </div>\n </div>\n\n "
|
|
15
|
+
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"containerHtml") || (depth0 != null ? lookupProperty(depth0,"containerHtml") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"containerHtml","hash":{},"data":data,"loc":{"start":{"line":11,"column":4},"end":{"line":11,"column":23}}}) : helper))) != null ? stack1 : "")
|
|
16
|
+
+ "\n</div>";
|
|
17
|
+
},"useData":true});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
+
return parent[propertyName];
|
|
6
|
+
}
|
|
7
|
+
return undefined
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return " <label class=\"checkbox checkbox--sm checkbox--left mg-none-i\">\n <input type=\"checkbox\" name=\"notification-group\">\n <span class=\"checkbox__indicator\">\n <i class=\"icon icon--check\"></i>\n </span>\n <span class=\"checkbox__link font-xs\">Don't show any \""
|
|
11
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"group") || (depth0 != null ? lookupProperty(depth0,"group") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"group","hash":{},"data":data,"loc":{"start":{"line":8,"column":65},"end":{"line":8,"column":74}}}) : helper)))
|
|
12
|
+
+ "\" notifications again.</span>\n </label>\n";
|
|
13
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
14
|
+
return " <label class=\"checkbox checkbox--sm checkbox--left mg-none-i\">\n <input type=\"checkbox\" name=\"notification-persistant\">\n <span class=\"checkbox__indicator\">\n <i class=\"icon icon--check\"></i>\n </span>\n <span class=\"checkbox__link font-xs\">Don't show this notification again.</span>\n </label>\n";
|
|
15
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
16
|
+
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
18
|
+
return parent[propertyName];
|
|
19
|
+
}
|
|
20
|
+
return undefined
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return "<div class=\"notification__disable\">\n"
|
|
24
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"group") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":18,"column":11}}})) != null ? stack1 : "")
|
|
25
|
+
+ "</div>";
|
|
26
|
+
},"useData":true});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
+
return parent[propertyName];
|
|
6
|
+
}
|
|
7
|
+
return undefined
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
return " "
|
|
11
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"class") || (depth0 != null ? lookupProperty(depth0,"class") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"class","hash":{},"data":data,"loc":{"start":{"line":3,"column":34},"end":{"line":3,"column":43}}}) : helper)));
|
|
12
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
13
|
+
return " data-recurrent=\"true\" ";
|
|
14
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
15
|
+
return " <button class=\"notification__close button button--md button--icon button--link text__gray--oxford\">\n <i class=\"icon--cross\"></i>\n </button>\n";
|
|
16
|
+
},"7":function(container,depth0,helpers,partials,data) {
|
|
17
|
+
return " " + require("./element-disable.html.hbs").apply(null, Array.prototype.slice.call(arguments, arguments.length > 6)) + "\n";
|
|
18
|
+
},"9":function(container,depth0,helpers,partials,data) {
|
|
19
|
+
return "<div class=\"notification__triangle\"></div>";
|
|
20
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
21
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
23
|
+
return parent[propertyName];
|
|
24
|
+
}
|
|
25
|
+
return undefined
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return "<div \n id=\""
|
|
29
|
+
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"id") || (depth0 != null ? lookupProperty(depth0,"id") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"id","hash":{},"data":data,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":11}}}) : helper)))
|
|
30
|
+
+ "\" \n class=\"notification"
|
|
31
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"class") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":50}}})) != null ? stack1 : "")
|
|
32
|
+
+ "\" \n "
|
|
33
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"recurrent") : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":51}}})) != null ? stack1 : "")
|
|
34
|
+
+ ">\n\n"
|
|
35
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"fixed") : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":6,"column":4},"end":{"line":10,"column":11}}})) != null ? stack1 : "")
|
|
36
|
+
+ "\n <div class=\"notification__content\">\n "
|
|
37
|
+
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"html") || (depth0 != null ? lookupProperty(depth0,"html") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"html","hash":{},"data":data,"loc":{"start":{"line":13,"column":2},"end":{"line":13,"column":12}}}) : helper))) != null ? stack1 : "")
|
|
38
|
+
+ "\n\n"
|
|
39
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"recurrent") : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":2},"end":{"line":17,"column":9}}})) != null ? stack1 : "")
|
|
40
|
+
+ " </div>\n\n "
|
|
41
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"target") : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":20,"column":1},"end":{"line":20,"column":64}}})) != null ? stack1 : "")
|
|
42
|
+
+ "\n</div>";
|
|
43
|
+
},"useData":true});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var Handlebars = require('/workspace/code/node_modules/handlebars/runtime.js');
|
|
2
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
3
|
+
return "<div id=\"notifications\" class=\"notifications\"></div>";
|
|
4
|
+
},"useData":true});
|