luda 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/luda-degradation.js +24 -9
- data/assets/javascripts/luda-degradation.js.map +1 -1
- data/assets/javascripts/luda-degradation.min.js +2 -2
- data/assets/javascripts/luda-degradation.min.js.map +1 -1
- data/assets/javascripts/luda-sprockets.js +9 -9
- data/assets/javascripts/luda.js +3 -3
- data/assets/javascripts/luda.js.map +1 -1
- data/assets/javascripts/luda.min.js +2 -2
- data/assets/javascripts/luda.min.js.map +1 -1
- data/assets/javascripts/luda/{behaviours → behaviors}/enter-click.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/focus.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/radio-tab.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/readonly.js +0 -0
- data/assets/javascripts/luda/{behaviours → behaviors}/toggle.js +1 -1
- data/assets/javascripts/luda/degradation.js +23 -8
- data/assets/javascripts/luda/index.js +11 -11
- data/assets/javascripts/luda/install.js +1 -1
- data/assets/javascripts/luda/{collections → patterns}/carousel.js +0 -0
- data/assets/javascripts/luda/{collections → patterns}/dropdown.js +1 -1
- data/assets/javascripts/luda/{collections → patterns}/form-dropdown.js +4 -4
- data/assets/javascripts/luda/{collections → patterns}/tab.js +0 -0
- data/assets/stylesheets/luda/_core/_variables.sass +76 -60
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_disabled.sass +0 -0
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_focus.sass +0 -0
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_readonly.sass +1 -1
- data/assets/stylesheets/luda/_core/{behaviours → behaviors}/_toggle.sass +0 -0
- data/assets/stylesheets/luda/_core/elements/_baseline.sass +2 -5
- data/assets/stylesheets/luda/_core/elements/_container.sass +1 -1
- data/assets/stylesheets/luda/_core/{collections → elements}/_media.sass +0 -4
- data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +1 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_alert.sass +0 -0
- data/assets/stylesheets/luda/_core/patterns/_avatar.sass +121 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_breadcrumb.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_button-group.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_button-icon.sass +1 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_carousel.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_dropdown.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-button.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-dropdown.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-group.sass +0 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_form-icon.sass +1 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_modal.sass +2 -2
- data/assets/stylesheets/luda/_core/{collections → patterns}/_nav.sass +3 -0
- data/assets/stylesheets/luda/_core/{collections → patterns}/_tab.sass +0 -0
- data/assets/stylesheets/luda/_core/utilities/_background.sass +3 -0
- data/assets/stylesheets/luda/_core/utilities/_position.sass +3 -0
- data/assets/stylesheets/luda/_default.sass +19 -19
- data/assets/stylesheets/luda/default/_banner.sass +1 -1
- data/assets/stylesheets/luda/default/behaviors/_disabled.sass +5 -0
- data/assets/stylesheets/luda/default/behaviors/_focus.sass +5 -0
- data/assets/stylesheets/luda/default/behaviors/_readonly.sass +5 -0
- data/assets/stylesheets/luda/default/behaviors/_toggle.sass +5 -0
- data/assets/stylesheets/luda/default/elements/_button.sass +1 -1
- data/assets/stylesheets/luda/default/elements/_form.sass +2 -2
- data/assets/stylesheets/luda/default/elements/_media.sass +6 -0
- data/assets/stylesheets/luda/default/index.sass +19 -19
- data/assets/stylesheets/luda/default/patterns/_alert.sass +6 -0
- data/assets/stylesheets/luda/default/patterns/_avatar.sass +7 -0
- data/assets/stylesheets/luda/default/patterns/_breadcrumb.sass +6 -0
- data/assets/stylesheets/luda/default/patterns/_button-group.sass +7 -0
- data/assets/stylesheets/luda/default/patterns/_button-icon.sass +8 -0
- data/assets/stylesheets/luda/default/patterns/_carousel.sass +7 -0
- data/assets/stylesheets/luda/default/patterns/_dropdown.sass +8 -0
- data/assets/stylesheets/luda/default/{collections → patterns}/_form-button.sass +1 -1
- data/assets/stylesheets/luda/default/patterns/_form-dropdown.sass +8 -0
- data/assets/stylesheets/luda/default/{collections → patterns}/_form-group.sass +1 -1
- data/assets/stylesheets/luda/default/{collections → patterns}/_form-icon.sass +1 -1
- data/assets/stylesheets/luda/default/patterns/_modal.sass +7 -0
- data/assets/stylesheets/luda/default/{collections → patterns}/_nav.sass +1 -1
- data/assets/stylesheets/luda/default/{collections → patterns}/_tab.sass +1 -1
- data/lib/luda/version.rb +1 -1
- metadata +49 -49
- data/assets/stylesheets/luda/_core/collections/_avatar.sass +0 -117
- data/assets/stylesheets/luda/default/behaviours/_disabled.sass +0 -5
- data/assets/stylesheets/luda/default/behaviours/_focus.sass +0 -5
- data/assets/stylesheets/luda/default/behaviours/_readonly.sass +0 -5
- data/assets/stylesheets/luda/default/behaviours/_toggle.sass +0 -5
- data/assets/stylesheets/luda/default/collections/_alert.sass +0 -6
- data/assets/stylesheets/luda/default/collections/_avatar.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +0 -6
- data/assets/stylesheets/luda/default/collections/_button-group.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_button-icon.sass +0 -8
- data/assets/stylesheets/luda/default/collections/_carousel.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_dropdown.sass +0 -8
- data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +0 -8
- data/assets/stylesheets/luda/default/collections/_media.sass +0 -7
- data/assets/stylesheets/luda/default/collections/_modal.sass +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd86f8dc588d4008c0ff986100ef7b49f44949e0fade2242591b7e82611c2747
|
4
|
+
data.tar.gz: 694003e4ecd93bbc1fcd3547de163b4383c6d42e3f25eb058ee7e7621d681ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17aff21a91a97c95070f57a8e62ece629c0e60406a4dce6e73c4a1848b708f78c601a66c6de1f8df56b4dbc4c93e84a7510f717f84e42f29284142c93550a2e6
|
7
|
+
data.tar.gz: e59521305009632994e680574ed1c4e36b42f465a4eaf456fe959c3d8b516896005766ab1105639531b5bf8024bddba32ebda9a7b89d3c6dcffdebf56978a869
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Luda degradation script 0.1.
|
2
|
+
* Luda degradation script 0.1.8 | https://luda.dev
|
3
3
|
* Copyright 2018 oatw | https://oatw.blog
|
4
4
|
* MIT license | http://opensource.org/licenses/MIT
|
5
5
|
*/
|
@@ -17,7 +17,7 @@
|
|
17
17
|
_CSS_PROPERTIES: [
|
18
18
|
{
|
19
19
|
display: 'flex',
|
20
|
-
position: ['sticky',
|
20
|
+
position: ['sticky||-webkit-sticky',
|
21
21
|
'fixed']
|
22
22
|
},
|
23
23
|
'transition',
|
@@ -25,7 +25,8 @@
|
|
25
25
|
],
|
26
26
|
_JS_PROPERTIES: {
|
27
27
|
es6Class: 'class X {}',
|
28
|
-
es6ArrowFunction: '((x) => x)()'
|
28
|
+
es6ArrowFunction: '((x) => x)()',
|
29
|
+
mutationObserver: 'new MutationObserver(function(){})'
|
29
30
|
},
|
30
31
|
_NOTIFY_MILLSECONDS: 500,
|
31
32
|
check: function() {
|
@@ -101,19 +102,33 @@
|
|
101
102
|
throw new Error('Unsupported CSS property: ' + property);
|
102
103
|
}
|
103
104
|
},
|
104
|
-
_CSSValueSupported: function(ele, property,
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
105
|
+
_CSSValueSupported: function(ele, property, valueStr) {
|
106
|
+
var i, len, value, values;
|
107
|
+
values = valueStr.split('||');
|
108
|
+
for (i = 0, len = values.length; i < len; i++) {
|
109
|
+
value = values[i];
|
110
|
+
ele.style[property] = value;
|
111
|
+
if (ele.style[property] === value) {
|
112
|
+
return;
|
113
|
+
}
|
109
114
|
}
|
115
|
+
this._notify();
|
116
|
+
throw new Error('Unsupported CSS property value: ' + property + ' ' + valueStr);
|
110
117
|
},
|
111
118
|
_notify: function() {
|
112
|
-
var _self, redirectUrl;
|
119
|
+
var _self, i, len, redirectUrl, ref, script;
|
113
120
|
redirectUrl = document.documentElement.getAttribute(this._URL_ATTRIBUTE);
|
114
121
|
if (redirectUrl) {
|
115
122
|
return location.href = redirectUrl;
|
116
123
|
}
|
124
|
+
ref = document.scripts;
|
125
|
+
for (i = 0, len = ref.length; i < len; i++) {
|
126
|
+
script = ref[i];
|
127
|
+
redirectUrl = script.getAttribute(this._URL_ATTRIBUTE);
|
128
|
+
if (redirectUrl) {
|
129
|
+
return location.href = redirectUrl;
|
130
|
+
}
|
131
|
+
}
|
117
132
|
_self = this;
|
118
133
|
return setInterval(function() {
|
119
134
|
if (!document.getElementById('luda-degradation-html')) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"luda-degradation.js","sources":["../../src/coffee/degradation.coffee"],"sourcesContent":["Degradation =\n\n _URL_ATTRIBUTE: 'data-degradation-url'\n\n _HTML: [\n '<div id=\"luda-degradation-html\" '\n 'style=\"padding:100px 30px;text-align:center\">'\n '<h1>Your Browser Is Too Old!</h1>'\n '<p>'\n 'Please visit this site with a modern browser '\n '<a target=\"_blank\" href=\"https://www.google.com/chrome/\">'\n '(Chrome recommended)'\n '</a>'\n '.</p>'\n '</div>'\n ].join('')\n\n _CSS_PROPERTIES: [\n display: 'flex'\n position: ['sticky', 'fixed']\n 'transition'\n 'animation'\n ]\n\n _JS_PROPERTIES:\n es6Class: 'class X {}'\n es6ArrowFunction: '((x) => x)()'\n\n _NOTIFY_MILLSECONDS: 500\n\n check: ->\n @_checkEnv()\n @_checkJS @_JS_PROPERTIES\n @_checkCSS @_CSS_PROPERTIES\n\n _eval: eval\n\n _checkEnv: ->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n\n _checkJS: (properties) ->\n for property, value of properties\n try\n @_eval value\n catch err\n @_notify()\n throw new Error property + ' ' + err\n\n _checkCSS: (properties) ->\n ele = document.createElement 'div'\n for property in properties\n if typeof property is 'string'\n @_CSSPropertySupported ele, property\n else\n for name, value of property\n @_CSSPropertySupported ele, name\n if value instanceof Array\n @_CSSValueSupported ele, name, valueEle for valueEle in value\n else\n @_CSSValueSupported ele, name, value\n\n _CSSPropertySupported: (ele, property) ->\n unless typeof ele.style[property] is 'string'\n @_notify()\n throw new Error 'Unsupported CSS property: ' + property\n\n _CSSValueSupported: (ele, property,
|
1
|
+
{"version":3,"file":"luda-degradation.js","sources":["../../src/coffee/degradation.coffee"],"sourcesContent":["Degradation =\n\n _URL_ATTRIBUTE: 'data-degradation-url'\n\n _HTML: [\n '<div id=\"luda-degradation-html\" '\n 'style=\"padding:100px 30px;text-align:center\">'\n '<h1>Your Browser Is Too Old!</h1>'\n '<p>'\n 'Please visit this site with a modern browser '\n '<a target=\"_blank\" href=\"https://www.google.com/chrome/\">'\n '(Chrome recommended)'\n '</a>'\n '.</p>'\n '</div>'\n ].join('')\n\n _CSS_PROPERTIES: [\n display: 'flex'\n position: ['sticky||-webkit-sticky', 'fixed']\n 'transition'\n 'animation'\n ]\n\n _JS_PROPERTIES:\n es6Class: 'class X {}'\n es6ArrowFunction: '((x) => x)()'\n mutationObserver: 'new MutationObserver(function(){})'\n\n _NOTIFY_MILLSECONDS: 500\n\n check: ->\n @_checkEnv()\n @_checkJS @_JS_PROPERTIES\n @_checkCSS @_CSS_PROPERTIES\n\n _eval: eval\n\n _checkEnv: ->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n\n _checkJS: (properties) ->\n for property, value of properties\n try\n @_eval value\n catch err\n @_notify()\n throw new Error property + ' ' + err\n\n _checkCSS: (properties) ->\n ele = document.createElement 'div'\n for property in properties\n if typeof property is 'string'\n @_CSSPropertySupported ele, property\n else\n for name, value of property\n @_CSSPropertySupported ele, name\n if value instanceof Array\n @_CSSValueSupported ele, name, valueEle for valueEle in value\n else\n @_CSSValueSupported ele, name, value\n\n _CSSPropertySupported: (ele, property) ->\n unless typeof ele.style[property] is 'string'\n @_notify()\n throw new Error 'Unsupported CSS property: ' + property\n\n _CSSValueSupported: (ele, property, valueStr) ->\n values = valueStr.split '||'\n for value in values\n ele.style[property] = value\n return if ele.style[property] is value\n @_notify()\n throw new Error 'Unsupported CSS property value: ' \\\n + property + ' ' + valueStr\n\n _notify: ->\n redirectUrl = document.documentElement.getAttribute @_URL_ATTRIBUTE\n return location.href = redirectUrl if redirectUrl\n for script in document.scripts\n redirectUrl = script.getAttribute @_URL_ATTRIBUTE\n return location.href = redirectUrl if redirectUrl\n _self = this\n setInterval(->\n unless document.getElementById 'luda-degradation-html'\n document.body.innerHTML = _self._HTML if document.body\n , @_NOTIFY_MILLSECONDS)\n\n\n\n\nDegradation.check()"],"names":[],"mappings":";;;;;;;;;;;EAAA,IAAA;;EAAA,WAAA,GAEE;IAAA,cAAA,EAAgB,sBAAhB;IAEA,KAAA,EAAO,CACL,kCADK,EAEL,+CAFK,EAGL,mCAHK,EAIL,KAJK,EAKL,+CALK,EAML,2DANK,EAOL,sBAPK,EAQL,MARK,EASL,OATK,EAUL,QAVK,CAWJ,CAAC,IAXG,CAWE,EAXF,CAFP;IAeA,eAAA,EAAiB;MACf;QAAA,OAAA,EAAS,MAAT;QACA,QAAA,EAAU,CAAC,wBAAD;MAA2B,OAA3B;OAFK;MAGf,YAHe;MAIf,WAJe;KAfjB;IAsBA,cAAA,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V,IAAA,CAAO,QAAQ,CAAC,cAAT,CAAwB,uBAAxB,CAAP;UACE,IAAyC,QAAQ,CAAC,IAAlD;mBAAA,QAAQ,CAAC,IAAI,CAAC,SAAd,GAA0B,KAAK,CAAC,MAAhC;WADF;;OADF,EAGE,IAAC,CAAA,mBAHH;;EApFF;;EA4FF,WAAW,CAAC,KAAZ;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
* Luda degradation script 0.1.
|
2
|
+
* Luda degradation script 0.1.8 | https://luda.dev
|
3
3
|
* Copyright 2018 oatw | https://oatw.blog
|
4
4
|
* MIT license | http://opensource.org/licenses/MIT
|
5
5
|
*/
|
6
|
-
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory():typeof define==="function"&&define.amd?define(factory):factory()})(this,function(){"use strict";var Degradation;Degradation={_URL_ATTRIBUTE:"data-degradation-url",_HTML:['<div id="luda-degradation-html" ','style="padding:100px 30px;text-align:center">',"<h1>Your Browser Is Too Old!</h1>","<p>","Please visit this site with a modern browser ",'<a target="_blank" href="https://www.google.com/chrome/">',"(Chrome recommended)","</a>",".</p>","</div>"].join(""),_CSS_PROPERTIES:[{display:"flex",position:["sticky","fixed"]},"transition","animation"],_JS_PROPERTIES:{es6Class:"class X {}",es6ArrowFunction:"((x) => x)()"},_NOTIFY_MILLSECONDS:500,check:function(){this._checkEnv();this._checkJS(this._JS_PROPERTIES);return this._checkCSS(this._CSS_PROPERTIES)},_eval:eval,_checkEnv:function(){if(typeof document!=="undefined"){if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}}throw new Error("Unsupported runtime environment.")},_checkJS:function(properties){var err,property,results,value;results=[];for(property in properties){value=properties[property];try{results.push(this._eval(value))}catch(error){err=error;this._notify();throw new Error(property+" "+err)}}return results},_checkCSS:function(properties){var ele,i,len,name,property,results,value,valueEle;ele=document.createElement("div");results=[];for(i=0,len=properties.length;i<len;i++){property=properties[i];if(typeof property==="string"){results.push(this._CSSPropertySupported(ele,property))}else{results.push(function(){var results1;results1=[];for(name in property){value=property[name];this._CSSPropertySupported(ele,name);if(value instanceof Array){results1.push(function(){var j,len1,results2;results2=[];for(j=0,len1=value.length;j<len1;j++){valueEle=value[j];results2.push(this._CSSValueSupported(ele,name,valueEle))}return results2}.call(this))}else{results1.push(this._CSSValueSupported(ele,name,value))}}return results1}.call(this))}}return results},_CSSPropertySupported:function(ele,property){if(typeof ele.style[property]!=="string"){this._notify();throw new Error("Unsupported CSS property: "+property)}},_CSSValueSupported:function(ele,property,value){ele.style[property]=value;if(ele.style[property]
|
6
|
+
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory():typeof define==="function"&&define.amd?define(factory):factory()})(this,function(){"use strict";var Degradation;Degradation={_URL_ATTRIBUTE:"data-degradation-url",_HTML:['<div id="luda-degradation-html" ','style="padding:100px 30px;text-align:center">',"<h1>Your Browser Is Too Old!</h1>","<p>","Please visit this site with a modern browser ",'<a target="_blank" href="https://www.google.com/chrome/">',"(Chrome recommended)","</a>",".</p>","</div>"].join(""),_CSS_PROPERTIES:[{display:"flex",position:["sticky||-webkit-sticky","fixed"]},"transition","animation"],_JS_PROPERTIES:{es6Class:"class X {}",es6ArrowFunction:"((x) => x)()",mutationObserver:"new MutationObserver(function(){})"},_NOTIFY_MILLSECONDS:500,check:function(){this._checkEnv();this._checkJS(this._JS_PROPERTIES);return this._checkCSS(this._CSS_PROPERTIES)},_eval:eval,_checkEnv:function(){if(typeof document!=="undefined"){if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}}throw new Error("Unsupported runtime environment.")},_checkJS:function(properties){var err,property,results,value;results=[];for(property in properties){value=properties[property];try{results.push(this._eval(value))}catch(error){err=error;this._notify();throw new Error(property+" "+err)}}return results},_checkCSS:function(properties){var ele,i,len,name,property,results,value,valueEle;ele=document.createElement("div");results=[];for(i=0,len=properties.length;i<len;i++){property=properties[i];if(typeof property==="string"){results.push(this._CSSPropertySupported(ele,property))}else{results.push(function(){var results1;results1=[];for(name in property){value=property[name];this._CSSPropertySupported(ele,name);if(value instanceof Array){results1.push(function(){var j,len1,results2;results2=[];for(j=0,len1=value.length;j<len1;j++){valueEle=value[j];results2.push(this._CSSValueSupported(ele,name,valueEle))}return results2}.call(this))}else{results1.push(this._CSSValueSupported(ele,name,value))}}return results1}.call(this))}}return results},_CSSPropertySupported:function(ele,property){if(typeof ele.style[property]!=="string"){this._notify();throw new Error("Unsupported CSS property: "+property)}},_CSSValueSupported:function(ele,property,valueStr){var i,len,value,values;values=valueStr.split("||");for(i=0,len=values.length;i<len;i++){value=values[i];ele.style[property]=value;if(ele.style[property]===value){return}}this._notify();throw new Error("Unsupported CSS property value: "+property+" "+valueStr)},_notify:function(){var _self,i,len,redirectUrl,ref,script;redirectUrl=document.documentElement.getAttribute(this._URL_ATTRIBUTE);if(redirectUrl){return location.href=redirectUrl}ref=document.scripts;for(i=0,len=ref.length;i<len;i++){script=ref[i];redirectUrl=script.getAttribute(this._URL_ATTRIBUTE);if(redirectUrl){return location.href=redirectUrl}}_self=this;return setInterval(function(){if(!document.getElementById("luda-degradation-html")){if(document.body){return document.body.innerHTML=_self._HTML}}},this._NOTIFY_MILLSECONDS)}};Degradation.check()});
|
7
7
|
//# sourceMappingURL=luda-degradation.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/coffee/degradation.coffee"],"names":["Degradation","_URL_ATTRIBUTE","_HTML","join","_CSS_PROPERTIES","display","position","_JS_PROPERTIES","es6Class","es6ArrowFunction","_NOTIFY_MILLSECONDS","check","this","_checkEnv","_checkJS","_checkCSS","_eval","eval","document","window","global","Error","properties","err","property","results","value","error","_notify","ele","i","len","name","valueEle","createElement","length","_CSSPropertySupported","results1","Array","results2","j","len1","_CSSValueSupported","style","_self","redirectUrl","documentElement","getAttribute","location","href","setInterval","getElementById","body","innerHTML"],"mappings":";;;;;2LAAA,IAAAA,YAAAA,YAEE,CAAAC,eAAgB,uBAEhBC,MAAO,CACL,mCACA,gDACA,oCACA,MACA,gDACA,4DACA,uBACA,OACA,QACA,UACEC,KAAK,IAETC,gBAAiB,CACf,CAAAC,QAAS,OACTC,SAAU,CAAC,
|
1
|
+
{"version":3,"sources":["../../src/coffee/degradation.coffee"],"names":["Degradation","_URL_ATTRIBUTE","_HTML","join","_CSS_PROPERTIES","display","position","_JS_PROPERTIES","es6Class","es6ArrowFunction","mutationObserver","_NOTIFY_MILLSECONDS","check","this","_checkEnv","_checkJS","_checkCSS","_eval","eval","document","window","global","Error","properties","err","property","results","value","error","_notify","ele","i","len","name","valueEle","createElement","length","_CSSPropertySupported","results1","Array","results2","j","len1","_CSSValueSupported","style","valueStr","values","split","_self","redirectUrl","ref","script","documentElement","getAttribute","location","href","scripts","setInterval","getElementById","body","innerHTML"],"mappings":";;;;;2LAAA,IAAAA,YAAAA,YAEE,CAAAC,eAAgB,uBAEhBC,MAAO,CACL,mCACA,gDACA,oCACA,MACA,gDACA,4DACA,uBACA,OACA,QACA,UACEC,KAAK,IAETC,gBAAiB,CACf,CAAAC,QAAS,OACTC,SAAU,CAAC,yBAA0B,UACrC,aACA,aAGFC,eACE,CAAAC,SAAU,aACVC,iBAAkB,eAClBC,iBAAkB,sCAEpBC,oBAAqB,IAErBC,MAAO,WACLC,KAACC,YACDD,KAACE,SAASF,KAACN,uBACXM,KAACG,UAAUH,KAACT,kBAEda,MAAOC,KAEPJ,UAAW,WACT,UAAUK,WAAc,YAAxB,CACE,UAAwBC,SAAY,YAApC,CAAA,OAAOA,OACP,UAAwBC,SAAY,YAApC,CAAA,OAAOA,QACT,MAAM,IAAIC,MAAM,qCAElBP,SAAU,SAACQ,YACT,IAAAC,IAAAC,SAAAC,QAAAC,MAAAD,QAAA,GAAA,IAAAD,YAAAF,WAAA,4BACE,iBACEV,KAACI,MAAMU,QADT,MAAAC,OAEMJ,IAAAI,MACJf,KAACgB,UACD,MAAM,IAAIP,MAAMG,SAAW,IAAMD,sBAEvCR,UAAW,SAACO,YACV,IAAAO,IAAAC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GAAsCgD,YAAtC,CAAA,OAAOK,SAASC,KAAON,aACzBD,MAAQnC,YACR4C,YAAY,WACV,IAAOtC,SAASuC,eAAe,yBAA/B,CACE,GAAyCvC,SAASwC,KAAlD,QAAAxC,SAASwC,KAAKC,UAAYZ,MAAM9C,SAClCW,KAACF,uBAKPX,YAAYY","sourcesContent":["Degradation =\n\n _URL_ATTRIBUTE: 'data-degradation-url'\n\n _HTML: [\n '<div id=\"luda-degradation-html\" '\n 'style=\"padding:100px 30px;text-align:center\">'\n '<h1>Your Browser Is Too Old!</h1>'\n '<p>'\n 'Please visit this site with a modern browser '\n '<a target=\"_blank\" href=\"https://www.google.com/chrome/\">'\n '(Chrome recommended)'\n '</a>'\n '.</p>'\n '</div>'\n ].join('')\n\n _CSS_PROPERTIES: [\n display: 'flex'\n position: ['sticky||-webkit-sticky', 'fixed']\n 'transition'\n 'animation'\n ]\n\n _JS_PROPERTIES:\n es6Class: 'class X {}'\n es6ArrowFunction: '((x) => x)()'\n mutationObserver: 'new MutationObserver(function(){})'\n\n _NOTIFY_MILLSECONDS: 500\n\n check: ->\n @_checkEnv()\n @_checkJS @_JS_PROPERTIES\n @_checkCSS @_CSS_PROPERTIES\n\n _eval: eval\n\n _checkEnv: ->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n\n _checkJS: (properties) ->\n for property, value of properties\n try\n @_eval value\n catch err\n @_notify()\n throw new Error property + ' ' + err\n\n _checkCSS: (properties) ->\n ele = document.createElement 'div'\n for property in properties\n if typeof property is 'string'\n @_CSSPropertySupported ele, property\n else\n for name, value of property\n @_CSSPropertySupported ele, name\n if value instanceof Array\n @_CSSValueSupported ele, name, valueEle for valueEle in value\n else\n @_CSSValueSupported ele, name, value\n\n _CSSPropertySupported: (ele, property) ->\n unless typeof ele.style[property] is 'string'\n @_notify()\n throw new Error 'Unsupported CSS property: ' + property\n\n _CSSValueSupported: (ele, property, valueStr) ->\n values = valueStr.split '||'\n for value in values\n ele.style[property] = value\n return if ele.style[property] is value\n @_notify()\n throw new Error 'Unsupported CSS property value: ' \\\n + property + ' ' + valueStr\n\n _notify: ->\n redirectUrl = document.documentElement.getAttribute @_URL_ATTRIBUTE\n return location.href = redirectUrl if redirectUrl\n for script in document.scripts\n redirectUrl = script.getAttribute @_URL_ATTRIBUTE\n return location.href = redirectUrl if redirectUrl\n _self = this\n setInterval(->\n unless document.getElementById 'luda-degradation-html'\n document.body.innerHTML = _self._HTML if document.body\n , @_NOTIFY_MILLSECONDS)\n\n\n\n\nDegradation.check()"]}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
//= require luda/
|
2
|
-
//= require luda/
|
3
|
-
//= require luda/
|
4
|
-
//= require luda/
|
5
|
-
//= require luda/
|
1
|
+
//= require luda/behaviors/enter-click
|
2
|
+
//= require luda/behaviors/focus
|
3
|
+
//= require luda/behaviors/radio-tab
|
4
|
+
//= require luda/behaviors/readonly
|
5
|
+
//= require luda/behaviors/toggle
|
6
6
|
//= require luda/elements/form-file
|
7
7
|
//= require luda/elements/form-select
|
8
|
-
//= require luda/
|
9
|
-
//= require luda/
|
10
|
-
//= require luda/
|
11
|
-
//= require luda/
|
8
|
+
//= require luda/patterns/carousel
|
9
|
+
//= require luda/patterns/dropdown
|
10
|
+
//= require luda/patterns/form-dropdown
|
11
|
+
//= require luda/patterns/tab
|
data/assets/javascripts/luda.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Luda 0.1.
|
2
|
+
* Luda 0.1.8 | https://luda.dev
|
3
3
|
* Copyright 2018 oatw | https://oatw.blog
|
4
4
|
* MIT license | http://opensource.org/licenses/MIT
|
5
5
|
*/
|
@@ -947,7 +947,7 @@
|
|
947
947
|
|
948
948
|
_Class._TOGGLE_FOR_ATTRIBUTE = 'data-toggle-for';
|
949
949
|
|
950
|
-
_Class._NONE_TOGGLE_ATTRIBUTE = 'data-
|
950
|
+
_Class._NONE_TOGGLE_ATTRIBUTE = 'data-toggle-disabled';
|
951
951
|
|
952
952
|
_Class._ACTIVE_CSS_CLASS = 'toggle-active';
|
953
953
|
|
@@ -1788,7 +1788,7 @@
|
|
1788
1788
|
|
1789
1789
|
_Class._TOGGLE_ATTRIBUTE = 'data-dropdown-toggle';
|
1790
1790
|
|
1791
|
-
_Class._NONE_TOGGLE_ATTRIBUTE = 'data-dropdown-
|
1791
|
+
_Class._NONE_TOGGLE_ATTRIBUTE = 'data-dropdown-toggle-disabled';
|
1792
1792
|
|
1793
1793
|
_Class._STANDALONE_ATTRIBUTE = 'data-dropdown-standalone';
|
1794
1794
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"luda.js","sources":["../../src/coffee/install.coffee","../../src/coffee/constants.coffee","../../src/coffee/dom.coffee","../../src/coffee/event.coffee","../../src/coffee/utilities.coffee","../../src/coffee/singleton.coffee","../../src/coffee/behaviours/enter-click.coffee","../../src/coffee/behaviours/focus.coffee","../../src/coffee/behaviours/radio-tab.coffee","../../src/coffee/component.coffee","../../src/coffee/behaviours/readonly.coffee","../../src/coffee/behaviours/toggle.coffee","../../src/coffee/elements/form-file.coffee","../../src/coffee/elements/form-select.coffee","../../src/coffee/collections/carousel.coffee","../../src/coffee/collections/dropdown.coffee","../../src/coffee/collections/form-dropdown.coffee","../../src/coffee/collections/tab.coffee"],"sourcesContent":["ENV = (->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n)()\n\n\n\nunless typeof ENV.luda is 'function'\n ENV.luda = (installer) ->\n throw new Error 'Installer cannot be detected.' unless installer\n unless ['object', 'function'].includes typeof installer\n throw new Error 'Installer must be object, array or function.'\n if installer.hasOwnProperty '_SCOPE'\n unless typeof installer._SCOPE is 'string'\n throw new Error '_SCOPE must be string'\n return ENV.luda._install installer._SCOPE, installer\n if installer instanceof Array or typeof installer is 'function'\n throw new Error 'Unscoped installer must be object.'\n installed = {}\n for name, property of installer\n installed[name] = ENV.luda._install name, property\n installed\n\n ENV.luda._install = (namespace, installer) ->\n if ENV.luda[namespace]\n console.warn \"Namespace #{namespace} is ocupied, sikp installation.\"\n return ENV.luda[namespace]\n for installedName, installedInstaller of ENV.luda\n if installer is installedInstaller\n console.warn \"Installer is installed with name #{installedName},\n skip installation.\"\n return ENV.luda[installedName]\n if installer._install\n if typeof installer._install is 'function'\n return ENV.luda[namespace] = installer._install()\n return ENV.luda[namespace] = installer._install\n ENV.luda[namespace] = installer","import './install.coffee'\n\n\n\nluda\n\n KEY_LEFT: 37\n KEY_UP: 38\n KEY_RIGHT: 39\n KEY_DOWN: 40\n KEY_TAB: 9\n KEY_ESC: 27\n KEY_ENTER: 13","import './install.coffee'\n\n\n\nluda\n \n $child: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $ancestor.querySelector selector\n\n $children: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $descendant = @$child selector, $ancestor\n if $descendant\n descendants = Array.from($ancestor.querySelectorAll selector)\n else\n descendants = []\n\n $unnested: (selector, $ancestor, ancestorSelector) ->\n descendants = @$children selector, $ancestor\n descendants.filter ($descendant) =>\n $descendant if @$parent(ancestorSelector, $descendant) is $ancestor\n\n $parent: (selector, $descendant) ->\n $ancestor = $descendant.parentNode\n if $ancestor\n if $ancestor.matches and $ancestor.matches selector\n $ancestor\n else\n @$parent selector, $ancestor\n\n $parents: (selector, $descendant, _ancestors) ->\n $ancestor = @$parent selector, $descendant\n _ancestors = [] unless _ancestors\n if $ancestor\n _ancestors.push($ancestor)\n @$parents selector, $ancestor, _ancestors\n else\n _ancestors\n\n $after: ($node, $target) ->\n $parent = $target.parentNode\n if $parent.lastChild is $target\n $parent.appendChild $node\n else\n $parent.insertBefore $node, $target.nextSibling\n\n $prepend: ($node, $target) ->\n if $target.firstChild\n $target.insertBefore $node, $target.firstChild\n else\n $target.appendChild $node\n\n reflow: ($element) -> $element.offsetHeight","import './install.coffee'\nimport './dom.coffee'\n\n\n\nluda\n \n _SWIPE_DISTANCE: 10\n _EVENT_TYPE_PREFIX: 'luda'\n _SWIPE_LEFT: 'swipeleft'\n _SWIPE_RIGHT: 'swiperight'\n _SWIPE_UP: 'swipeup'\n _SWIPE_DOWN: 'swipedown'\n _SWIPE_LEFT_OR_UP: 'swipeleft or swipeup'\n _SWIPE_RIGHT_OR_DOWN: 'swiperight or swipedown'\n _DOC_READY: 'docready'\n _FORM_RESET: 'reset'\n\n eventPath: (event) ->\n if event.composedPath\n path = event.composedPath()\n else if event.path\n path = event.path\n else\n path = [event.target].concat(luda.$parents '*', event.target)\n\n on: (event, selector..., handler) ->\n switch event\n when @_DOC_READY then @_onDocReady handler\n when @_FORM_RESET then @_onReset selector[0], handler\n when @_SWIPE_LEFT, \\\n @_SWIPE_RIGHT, \\\n @_SWIPE_UP, \\\n @_SWIPE_DOWN, \\\n @_SWIPE_LEFT_OR_UP, \\\n @_SWIPE_RIGHT_OR_DOWN\n then @_onSwipe event, selector[0], handler\n else @_on event, selector[0], handler\n\n onOpposite: (event, selector, handler) ->\n _self = this\n document.addEventListener event, (e) ->\n trigger = _self.eventPath(e).every ($element) ->\n not $element.matches or not $element.matches selector\n handler e if trigger\n\n dispatch: ($target, type, detail, options = {}) ->\n options.bubbles = true unless typeof options.bubbles is 'boolean'\n options.cancelable = true unless typeof options.cancelable is 'boolean'\n options.composed = true unless typeof options.composed is 'boolean'\n evt = new Event \"#{@_EVENT_TYPE_PREFIX}:#{type}\", options\n evt.detail = detail\n $target.dispatchEvent evt\n evt\n \n _onDocReady: (handler) ->\n if document.readyState is 'loading'\n document.addEventListener 'DOMContentLoaded', handler\n else\n handler()\n\n _onReset: (selector, handler) ->\n document.addEventListener 'reset', (e) ->\n if selector?\n luda.$children(selector, e.target).forEach ($element) ->\n handler.bind($element)(e)\n else\n handler e\n \n _onSwipe: (event, selector, handler) ->\n _self = this\n watch = false\n $touchStartElement = document\n touchStartE = null\n touchStartX = 0\n touchStartY = 0\n document.addEventListener 'touchstart', (e) ->\n if e.touches.length is 1\n touchStartX = e.touches[0].screenX\n touchStartY = e.touches[0].screenY\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n $touchStartElement = $element\n touchStartE = e\n watch = true\n return true\n else\n watch = true\n\n document.addEventListener 'touchmove', (e) ->\n if watch and e.touches.length is 1\n touchDistanceX = e.touches[0].screenX - touchStartX\n touchDistanceY = e.touches[0].screenY - touchStartY\n eventX = undefined\n eventY = undefined\n eventXOrY = undefined\n if Math.abs(touchDistanceX) >= _self._SWIPE_DISTANCE\n if touchDistanceX > 0\n eventX = _self._SWIPE_RIGHT\n else\n eventX = _self._SWIPE_LEFT\n if Math.abs(touchDistanceY) >= _self._SWIPE_DISTANCE\n if touchDistanceY > 0\n eventY = _self._SWIPE_DOWN\n else\n eventY = _self._SWIPE_UP\n if eventX is _self._SWIPE_LEFT \\\n or eventY is _self._SWIPE_UP\n eventXOrY = _self._SWIPE_LEFT_OR_UP\n if eventX is _self._SWIPE_RIGHT \\\n or eventY is _self._SWIPE_DOWN\n eventXOrY = _self._SWIPE_RIGHT_OR_DOWN\n if (eventX? and eventX is event) \\\n or (eventY? and eventY is event) \\\n or eventXOrY is event\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element is $touchStartElement\n watch = false\n handler.bind($element)(touchStartE, e)\n return true\n else\n watch = false\n handler touchStartE, e\n\n _on: (event, selector, handler) ->\n if selector is window\n window.addEventListener event, (e) -> handler e\n else\n _self = this\n document.addEventListener event, (e) ->\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n handler.bind($element)(e)\n return true\n else\n handler e","import './install.coffee'\n\n\n\nluda\n \n except: (element, arr) ->\n arr.splice(arr.indexOf(element), 1) if arr.includes element","import './install.coffee'\nimport './utilities.coffee'\n\n\n \nluda class Singleton\n\n @_SCOPE: 'Singleton'\n \n @_SELECTOR_INVALID_ERROR: '@param selector must be a css selector string'\n @_SELECTORS: []\n\n @_selector: ''\n @_actived: true\n\n @active: ->\n @_actived = true\n\n @deactive: ->\n @_actived = false\n\n @_add: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n @_SELECTORS.push selector unless @_SELECTORS.includes selector\n @_mergeSelectors()\n\n @_remove: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n luda.except selector, @_SELECTORS\n @_mergeSelectors()\n\n @_mergeSelectors: ->\n @_selector = @_SELECTORS.join ','\n\n @_install: ->\n return this if this is Singleton\n @_SELECTORS = [] unless @hasOwnProperty '_SELECTORS'\n @_mergeSelectors()\n exposed = @_init() if typeof @_init is 'function'\n if exposed then exposed else this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'enterClick'\n\n @_SELECTORS: [\n 'input[type=checkbox]'\n 'input[type=radio]'\n '[tabindex]'\n ]\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_ENTER \\\n and e.target.matches self._selector\n e.preventDefault()\n setTimeout(-> e.target.click())","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'focus'\n\n @_CSS_CLASS: 'focus'\n # mouse focusable selectors\n @_SELECTORS: ['select'\n 'textarea'\n ':not(.btn-check):not(.btn-radio):not(.btn-file) >\n input:not([type=button]):not([type=submit]):not([type=reset])'\n ]\n @_TOUCHSTART_FOCUS_SELECTOR: 'input[type=range]'\n @_PARENT_FOCUS_SELECTOR: 'select[multiple]'\n @_PARENT_FOCUS_CHILDREN_SELECTOR: \"#{@_PARENT_FOCUS_SELECTOR} *\"\n\n @_$focus: document.getElementsByClassName(@_CSS_CLASS)\n\n @_removeFocusClassExcept: ($exception) ->\n Array.from(@_$focus).forEach ($focus) =>\n $focus.classList.remove @_CSS_CLASS if $focus isnt $exception\n\n @_addFocusClassExceptHtmlAndBody: ($target) ->\n if $target isnt document.body and $target isnt document.documentElement\n $target.classList.add @_CSS_CLASS\n\n @_changeFocusStateOnKeyEvent: (e) ->\n if @_actived\n @_removeFocusClassExcept e.target\n @_addFocusClassExceptHtmlAndBody e.target\n\n @_changeFocusStateOnMouseDownEvent: (e) ->\n if @_actived\n if e.target.matches @_PARENT_FOCUS_CHILDREN_SELECTOR\n target = luda.$parent @_PARENT_FOCUS_SELECTOR, e.target\n else\n target = e.target\n if target.matches @_selector\n @_removeFocusClassExcept target\n @_addFocusClassExceptHtmlAndBody target\n else\n @_removeFocusClassExcept()\n\n @_setElementPrototype: ->\n focus = HTMLElement.prototype.focus\n blur = HTMLElement.prototype.blur\n self = this\n HTMLElement.prototype.focus = ->\n focus.apply this, arguments\n if self._actived and document.activeElement is this\n self._removeFocusClassExcept this\n self._addFocusClassExceptHtmlAndBody this\n HTMLElement.prototype.blur = ->\n blur.apply this, arguments\n this.classList.remove self._CSS_CLASS if self._actived\n\n @_init: ->\n self = this\n @_setElementPrototype()\n luda.on 'keydown', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'keyup', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'mousedown', @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'touchstart', @_TOUCHSTART_FOCUS_SELECTOR, \\\n @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'focusin', @_changeFocusStateOnMouseDownEvent.bind this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'radioTab'\n\n @_SELECTORS: ['input[type=radio]:not([disabled])']\n\n @_querySameName$radios: ($radio) ->\n if $radio.name\n selector = \"#{@_selector}[name=#{$radio.name}]\"\n else\n selector = @_selector\n $inputs = luda.$children selector\n $inputs.filter ($input) -> $input.tabIndex >= 0\n\n @_query$prev$next: ($radio) ->\n $sameNameRadios = @_querySameName$radios $radio\n radioIndex = $sameNameRadios.indexOf $radio\n $prev = $sameNameRadios[radioIndex - 1]\n $next = $sameNameRadios[radioIndex + 1]\n {$prev, $next}\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_TAB \\\n and e.target.nodeName.toUpperCase() is 'INPUT' \\\n and e.target.type is 'radio'\n if e.shiftKey\n if $prev = self._query$prev$next(e.target).$prev\n e.preventDefault()\n $prev.focus()\n else\n if $next = self._query$prev$next(e.target).$next\n e.preventDefault()\n $next.focus()","import './install.coffee'\nimport './utilities.coffee'\nimport './dom.coffee'\nimport './event.coffee'\n\n\n\n\nluda class Component\n\n @_SCOPE: 'Component'\n \n @_COMPONENT_NO_SELECTOR_ERROR: 'Extended component must has a css selector'\n @_$COMPONENT_INVALID_ERROR: '@param $component must be an instance of Element'\n @_SELECTOR: ''\n @_instances: []\n\n @_Observed: []\n @_observer: null\n @_observerConfig:\n childList: true\n subtree: true\n\n _hasDescendant: (descendant) ->\n if @_children.length and descendant\n return true if @_children.includes descendant\n return @_children.some (child) -> child._hasDescendant descendant\n else\n return false\n\n _observe: ->\n @_observer = new MutationObserver @_onMutations.bind this\n @_observer.observe @_$component, @constructor._observerConfig\n\n _disconnect: ->\n @_observer.disconnect()\n @_observer = null\n\n @create: ($component) ->\n componentIsElementInstance = $component instanceof Element\n throw new Error @_$COMPONENT_INVALID_ERROR unless componentIsElementInstance\n $family = @_query$family $component\n instance = @query $component\n if $family._$parent\n if parent = @query $family._$parent\n @_instances.push instance = @_createInstance $component unless instance\n if instance._parent isnt parent\n parent._children.push(instance) and (instance._parent = parent)\n $family._$children.forEach ($child) => @create $child\n return instance\n else\n @create $family._$parent\n return @query $component\n else\n @_instances.push instance = @_createInstance $component unless instance\n $family._$children.forEach ($child) => @create $child\n return instance\n\n @destroy: (instance$component) ->\n instance = @query instance$component\n if instance\n instance._disconnect() if instance._observer\n instance._destroy() if instance._destroy\n @destroy instance._children[0] while instance._children.length\n if instance._parent\n luda.except instance, instance._parent._children\n luda.except instance, @_instances\n for attribute, value of instance\n instance[attribute] = null\n \n @query: (instance$component) ->\n instance = null\n if instance$component instanceof this \\\n and @_instances.includes instance$component\n instance = instance$component\n else if instance$component instanceof Element\n @_instances.some (inited) ->\n if inited._$component is instance$component\n instance = inited\n return true\n return instance\n\n @_query$family: ($component) ->\n _$parent = null\n _$children = []\n if @_SELECTOR\n _$parent = luda.$parent @_SELECTOR, $component\n _$children = luda.$unnested @_SELECTOR, $component, @_SELECTOR\n {_$parent, _$children}\n\n @_createInstance: ($component) ->\n instance = new this()\n instance._$component = $component\n instance._parent = null\n instance._children = []\n instance._observer = null\n instance._constructor() if instance._constructor\n unless instance._observer and instance._onMutations and @_observerConfig\n instance._observe()\n instance\n\n @_observe: (classObj) ->\n unless Component._observer\n Component._observer = new MutationObserver (mutations) ->\n mutations.forEach (mutation) ->\n $removedNodes = Array.from mutation.removedNodes\n $addedNodes = Array.from mutation.addedNodes\n $removedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.destroy $node\n else\n $destroies = luda.$children Observed._SELECTOR, $node\n $destroies.forEach ($destroy) -> Observed.destroy $destroy\n $addedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.create $node\n else\n $creates = luda.$children Observed._SELECTOR, $node\n $creates.forEach ($create) -> Observed.create $create\n Component._observer.observe document.documentElement, \\\n Component._observerConfig\n unless Component._Observed.includes classObj\n Component._Observed.push classObj\n\n @_install: ->\n self = this\n return this if this is Component\n unless @_SELECTOR or typeof @_SELECTOR isnt 'string'\n throw new Error @_COMPONENT_NO_SELECTOR_ERROR\n @_instances = [] unless @hasOwnProperty '_instances'\n exposed = @_init() if typeof @_init is 'function'\n luda.on luda._DOC_READY, ->\n luda.$children(self._SELECTOR).forEach ($component) ->\n self.create $component\n Component._observe(self)\n if exposed then exposed else this","import '../install.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'readonly'\n @_READONLY_ATTRIBUTE: 'data-readonly'\n @_READONLY_FALSE_VALUE: 'false'\n @_SELECTOR: \"[#{@_READONLY_ATTRIBUTE}]\"\n\n @_observerConfig:\n attributes: true\n attributeFilter: [@_READONLY_ATTRIBUTE]\n\n _getConfig: ->\n readonly = @_$component.getAttribute @constructor._READONLY_ATTRIBUTE\n _isReadonly = readonly isnt @constructor._READONLY_FALSE_VALUE\n _originalTabIndex = @_$component.tabIndex\n {_isReadonly, _originalTabIndex}\n \n _constructor: ->\n {\n @_isReadonly,\n @_originalTabIndex\n } = @_getConfig()\n @_setTabIndex()\n\n _onMutations: ->\n @_constructor()\n\n _setTabIndex: ->\n if @_isReadonly\n @_$component.tabIndex = -1\n else\n @_$component.tabIndex = @_originalTabIndex","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'toggle'\n @_TOGGLE_TARGET_ATTRIBUTE: 'data-toggle-target'\n @_TOGGLE_ATTRIBUTE: 'data-toggle'\n @_TOGGLE_FOR_ATTRIBUTE: 'data-toggle-for'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-none-toggle'\n @_ACTIVE_CSS_CLASS: 'toggle-active'\n @_SELECTORS: [\n \"[#{@_TOGGLE_FOR_ATTRIBUTE}]\"\n \"[#{@_TOGGLE_ATTRIBUTE}]\"\n ]\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @active: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.add @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_ACTIVED_EVENT_TYPE)\n\n @deactive: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.remove @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_DEACTIVED_EVENT_TYPE)\n\n @toggle: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n if $target.classList.contains @_ACTIVE_CSS_CLASS\n @deactive($target)\n else\n @active($target)\n\n @_query$targets: (name$target) ->\n if name$target instanceof Element\n [name$target]\n else\n luda.$children \"[#{@_TOGGLE_TARGET_ATTRIBUTE}=#{name$target}]\"\n\n @_init: ->\n self = this\n luda.on 'click', @_selector, (e) ->\n toggleChecked = false\n luda.eventPath(e).some ($path) ->\n if $path instanceof Element\n if $path.hasAttribute(self._TOGGLE_ATTRIBUTE) \\\n or $path.hasAttribute(self._TOGGLE_FOR_ATTRIBUTE)\n if toggleName = $path.getAttribute self._TOGGLE_FOR_ATTRIBUTE\n self.toggle toggleName\n toggleChecked = true\n if $path.hasAttribute self._TOGGLE_ATTRIBUTE\n if $path.hasAttribute self._TOGGLE_TARGET_ATTRIBUTE\n $toggle = $path\n else\n $toggle = luda.$parent \\\n \"[#{self._TOGGLE_TARGET_ATTRIBUTE}]\", $path\n if $toggle\n self.toggle $toggle\n toggleChecked = true\n else if $path.hasAttribute self._NONE_TOGGLE_ATTRIBUTE\n toggleChecked = true","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmFile'\n\n @_VALUE_SPLITOR: ' '\n @_SELECTOR: '.fm-file'\n @_FILE_SELECTOR: 'input[type=file]'\n @_SIMULATOR_SELECTOR: 'input:not([type=file])'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_VALUE_ATTRIBUTE: 'value'\n\n @_observerConfig:\n childList: true\n subtree: true\n\n _getConfig: ->\n _$file = luda.$child @constructor._FILE_SELECTOR, @_$component\n _$simulator = luda.$child \\\n @constructor._SIMULATOR_SELECTOR, @_$component\n {_$file, _$simulator}\n\n _constructor: ->\n {\n @_$file,\n @_$simulator\n } = @_getConfig()\n @_init()\n\n _onMutations: ->\n @_constructor()\n\n _insertSimulator: ->\n @_$simulator = document.createElement 'input'\n @_$simulator.tabIndex = -1\n luda.$after @_$simulator, @_$file\n\n _setPlaceholderValue: ->\n @_$simulator.placeholder = \\\n @_$file.getAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSimulatorValue: ->\n values = []\n Array.from(@_$file.files).map (file) -> values.push file.name\n if values.length\n @_$simulator.value = values.join @constructor._VALUE_SPLITOR\n else if @_$file.hasAttribute(@constructor._VALUE_ATTRIBUTE)\n @_$simulator.value = @_$file.getAttribute @constructor._VALUE_ATTRIBUTE\n\n _init: ->\n if @_$file\n @_insertSimulator() unless @_$simulator\n if @_$file.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setPlaceholderValue()\n @_setSimulatorValue()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_FILE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setSimulatorValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setSimulatorValue()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmSelect'\n\n @_SELECTOR: '.fm-select'\n @_SELECT_SELECTOR: 'select'\n @_SINGLE_SELECT_SIMULATOR_SELECTOR: 'input'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS: 'fm-select-multiple-placeholder'\n @_DEFAULT_SELECTED_OPTION_ATTRIBUTE: 'data-fm-select-default-selected'\n @_INITED_ATTRIBUTE: 'data-fm-select-inited'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: ['selected']\n\n select: (indexOrIndexArray) ->\n if @_$select.multiple\n if @_$multipleSelectPlaceholder\n selectedIndexes = indexOrIndexArray\n else\n selectedIndexes = indexOrIndexArray.map (index) -> index + 1\n Array.from(@_$select.options).forEach ($option, index) ->\n $option.selected = selectedIndexes.includes index\n @_markSelectedOption()\n else\n @_$select.selectedIndex = selectedIndex\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _getConfig: ->\n _$select = luda.$child @constructor._SELECT_SELECTOR, @_$component\n _$singleSelectSimulator = luda.$child \\\n @constructor._SINGLE_SELECT_SIMULATOR_SELECTOR, @_$component\n _$multipleSelectPlaceholder = luda.$child \\\n \".#{@constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS}\", @_$component\n _$defaultSelectedOptions = luda.$children \\\n \"[#{@constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE}]\", @_$component\n _defaultSelectedOptionMarked = @_$component.hasAttribute \\\n @constructor._INITED_ATTRIBUTE\n {\n _$select,\n _$singleSelectSimulator,\n _$multipleSelectPlaceholder,\n _$defaultSelectedOptions,\n _defaultSelectedOptionMarked\n }\n\n _constructor: ->\n {\n @_$select,\n @_$singleSelectSimulator,\n @_$multipleSelectPlaceholder,\n @_$defaultSelectedOptions,\n @_defaultSelectedOptionMarked\n } = @_getConfig()\n if @_$select\n if @_$select.multiple\n @_initMultipleSelect()\n else\n @_initSingleSelect()\n \n _onMutations: ->\n @_constructor()\n\n _markSelectedOption: ->\n @_disconnect() if @_observer\n Array.from(@_$select.options).forEach ($option) ->\n if $option.selected\n $option.setAttribute 'selected', 'selected'\n else\n $option.removeAttribute 'selected'\n @_observe() unless @_observer\n\n _markDefaultSelectedOption: ->\n @_$component.setAttribute @constructor._INITED_ATTRIBUTE, ''\n Array.from(@_$select.options).forEach ($option) =>\n if $option.selected\n $option.setAttribute @constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE, ''\n\n _setSingleSelectedDefaultSelectedOption: ->\n hasSelected = Array.from(@_$select.options).some ($option) ->\n $option.getAttribute('selected') is 'selected'\n @_$select.selectedIndex = -1 unless hasSelected\n\n _insertSingleSelectSimulator: ->\n @_$singleSelectSimulator = document.createElement 'input'\n @_$singleSelectSimulator.tabIndex = -1\n luda.$after @_$singleSelectSimulator, @_$select\n\n _setSingleSelectPlaceholderValue: ->\n @_$singleSelectSimulator.placeholder = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSingleSelectSimulatorValue: ->\n if $selectedOption = @_$select.options[@_$select.selectedIndex]\n @_$singleSelectSimulator.value = $selectedOption.innerText\n else\n @_$singleSelectSimulator.value = ''\n\n _initSingleSelect: ->\n @_insertSingleSelectSimulator() unless @_$singleSelectSimulator\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setSingleSelectedDefaultSelectedOption()\n @_setSingleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _insertMultipleSelectBlankOption: ->\n @_$multipleSelectPlaceholder = document.createElement 'option'\n @_$multipleSelectPlaceholder.className = \\\n @constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS\n @_$multipleSelectPlaceholder.disabled = true\n luda.$prepend @_$multipleSelectPlaceholder, @_$select\n\n _setMultipleSelectPlaceholderValue: ->\n @_$multipleSelectPlaceholder.innerText = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _initMultipleSelect: ->\n unless @_$multipleSelectPlaceholder\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_insertMultipleSelectBlankOption()\n @_setMultipleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n\n _reset: ->\n if @_$select\n Array.from(@_$select.options).forEach ($option) =>\n $option.selected = @_$defaultSelectedOptions.includes $option\n @_setSingleSelectSimulatorValue() unless @_$select.multiple\n @_markSelectedOption()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_SELECT_SELECTOR}\", (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._setSingleSelectSimulatorValue() unless this.multiple\n instance._markSelectedOption()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._reset()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'carousel'\n\n @_SELECTOR: '.carousel'\n @_ITEMS_SELECTOR: '.carousel-item'\n @_PREV_CONTROL_SELECTOR: '.carousel-prev'\n @_NEXT_CONTROL_SELECTOR: '.carousel-next'\n @_INDICATORS_SELECTOR: '.carousel-indicators .btn'\n @_INTERVAL_ATTRIBUTE: 'data-carousel-interval'\n @_WRAP_ATTRIBUTE: 'data-carousel-wrap'\n @_ITEM_ACTIVE_CSS_CLASS: 'carousel-item-active'\n @_ITEM_NEXT_CSS_CLASS: 'carousel-item-next'\n @_ITEM_PREV_CSS_CLASS: 'carousel-item-prev'\n @_ACTIVE_INDEX: 0\n @_INTERVAL: 5000\n @_WRAP: true\n @_FALSE: 'false'\n @_ACTIVE_EVENT_TYPE: \"#{@_SCOPE}:active\"\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVE_EVENT_TYPE: \"#{@_SCOPE}:deactive\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [@_INTERVAL_ATTRIBUTE, @_WRAP_ATTRIBUTE]\n \n # public\n active: (index) ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n action = if index < activedIndex then '_slidePrev' else '_slideNext'\n @[action] @_$items[activedIndex], activedIndex\n\n next: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex + 1\n if index > @_$items.length - 1\n return unless @_wrap\n index = 0\n @_transiting = true\n @_activeIndex = index\n @_slideNext @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n prev: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex - 1\n if index < 0\n return unless @_wrap\n index = @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n @_slidePrev @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n pause: ->\n if @_intervaling?\n clearInterval @_intervaling\n @_intervaling = null\n @_pausedRemainTime = @_pausedRemainTime - (Date.now() - @_playTimeStamp)\n\n play: ->\n if @_interval and @_$items.length > 1\n @_playTimeStamp = Date.now()\n @pause()\n execute = =>\n @next()\n @_intervaling = setInterval @next.bind(this), @_interval\n @_intervaling = setTimeout execute, @_pausedRemainTime\n\n\n # private\n _getConfig: ->\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATORS_SELECTOR, @_$component, @constructor._SELECTOR\n _$prevControl = luda.$child \\\n @constructor._PREV_CONTROL_SELECTOR, @_$component\n _$nextControl = luda.$child \\\n @constructor._NEXT_CONTROL_SELECTOR, @_$component\n _activeIndex = _$items.indexOf \\\n luda.$child \".#{@constructor._ITEM_ACTIVE_CSS_CLASS}\", @_$component\n _activeIndex = @constructor._ACTIVE_INDEX if _activeIndex is -1\n _interval = @_$component.getAttribute(@constructor._INTERVAL_ATTRIBUTE)\n if _interval is @constructor._FALSE\n _interval = false\n else\n _interval = Math.abs(parseInt _interval, 10) or @constructor._INTERVAL\n _wrap = @_$component.getAttribute(@constructor._WRAP_ATTRIBUTE)\n _wrap = if _wrap is @constructor._FALSE then false else @constructor._WRAP\n {\n _$items,\n _$indicators,\n _$prevControl,\n _$nextControl,\n _activeIndex,\n _interval,\n _wrap\n }\n\n _constructor: ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_transiting = false\n @_intervaling = null\n @_playTimeStamp = 0\n @_pausedRemainTime = @_interval\n @_layout()\n @play()\n\n _onMutations: (mutations) ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_setIndicatorsState()\n @_setDirectionControlState()\n @play()\n\n _destroy: ->\n @pause()\n\n _layout: ->\n @_$items.forEach ($item, index) =>\n $item.style.transition = 'none'\n if index > @_activeIndex\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else if index < @_activeIndex\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else\n luda.dispatch($item, @constructor._ACTIVED_EVENT_TYPE, index)\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow($item)\n $item.style.transition = ''\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slideNext: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_PREV_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slidePrev: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n $indicator.disabled = index is @_activeIndex\n\n _setDirectionControlState: ->\n if @_$items.length <= 1\n @_$prevControl?.disabled = @_$nextControl?.disabled = true\n else\n @_$prevControl?.disabled = @_activeIndex is 0 and not @_wrap\n @_$nextControl?.disabled = \\\n @_activeIndex is @_$items.length - 1 and not @_wrap\n \n # static private\n @_init: ->\n self = this\n luda.on 'transitionend', @_ITEMS_SELECTOR, (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._transiting = false\n index = instance._$items.indexOf this\n if this.classList.contains self._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch(this, self._ACTIVED_EVENT_TYPE, index)\n else\n luda.dispatch(this, self._DEACTIVED_EVENT_TYPE, index)\n luda.on 'click', @_INDICATORS_SELECTOR, (e) ->\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this\n luda.on 'touchstart', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'touchend', @_SELECTOR, (e) ->\n setTimeout => self.query(this).play()\n luda.on 'mouseover', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'mouseout', @_SELECTOR, (e) ->\n self.query(this).play()\n luda.on luda._SWIPE_LEFT_OR_UP, @_SELECTOR, (startE, e) ->\n self.query(this).next()\n luda.on luda._SWIPE_RIGHT_OR_DOWN, @_SELECTOR, (startE, e) ->\n self.query(this).prev()\n luda.on 'click', @_PREV_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).prev()\n luda.on 'click', @_NEXT_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).next()","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'dropdown'\n @_SELECTOR: '.dropdown-fixed,.dropdown-absolute,\n .dropdown-static,.dropdown-absolute-m'\n @_MENU_SELECTOR: '.dropdown-menu'\n @_ITEMS_SELECTOR: 'a[href]:not([disabled]),button:not([disabled]),\n input:not([disabled]),[tabindex]:not([disabled])'\n @_TOGGLE_ATTRIBUTE: 'data-dropdown-toggle'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-dropdown-none-toggle'\n @_STANDALONE_ATTRIBUTE: 'data-dropdown-standalone'\n @_SWITCHES_SELECTOR: \"[#{@_TOGGLE_ATTRIBUTE}]\"\n @_NONE_SWITCHES_SELECTOR: \"[#{@_NONE_TOGGLE_ATTRIBUTE}]\"\n @_ACTIVE_CSS_CLASS: 'dropdown-active'\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n @_TOGGLE_ATTRIBUTE\n @_NONE_TOGGLE_ATTRIBUTE\n @_STANDALONE_ATTRIBUTE\n ]\n\n @_$focused: []\n\n active: ->\n unless @_actived()\n @_$component.classList.add @constructor._ACTIVE_CSS_CLASS\n @constructor._$focused.push document.activeElement\n @_parent?.active()\n luda.dispatch(@_$component, @constructor._ACTIVED_EVENT_TYPE)\n\n deactive: (focus) ->\n if @_actived()\n @_$component.classList.remove @constructor._ACTIVE_CSS_CLASS\n @_children.forEach (child) -> child.deactive()\n if focus\n @constructor._$focused[@constructor._$focused.length - 1]?.focus()\n @constructor._$focused.splice @constructor._$focused.length - 1, 1\n luda.dispatch(@_$component, @constructor._DEACTIVED_EVENT_TYPE)\n\n toggle: (focus) ->\n if @_actived() then @deactive(focus) else @active()\n\n prev: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) - 1\n focusIndex = 0 if focusIndex < 0\n @_$items[focusIndex].focus()\n\n next: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) + 1\n focusIndex = @_$items.length - 1 if focusIndex > @_$items.length - 1\n @_$items[focusIndex].focus()\n\n _getConfig: ->\n _$menu = luda.$child @constructor._MENU_SELECTOR, @_$component\n _$switches = luda.$unnested( \\\n @constructor._SWITCHES_SELECTOR, @_$component, @constructor._SELECTOR)\n .concat(luda.$unnested \\\n @constructor._SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$noneSwitches = luda.$unnested( \\\n @constructor._NONE_SWITCHES_SELECTOR, \\\n @_$component, @constructor._SELECTOR) \\\n .concat(luda.$unnested \\\n @constructor._NONE_SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, _$menu, @constructor._MENU_SELECTOR\n _isStandalone = @_$component.hasAttribute @constructor._STANDALONE_ATTRIBUTE\n {_$items, _$switches, _$noneSwitches, _isStandalone}\n\n _constructor: ->\n {\n @_$items,\n @_$switches,\n @_$noneSwitches,\n @_isStandalone\n } = @_getConfig()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _actived: ->\n @_$component.classList.contains @constructor._ACTIVE_CSS_CLASS\n\n _deactiveChildrenExcept: (exceptions) ->\n if exceptions and not (exceptions instanceof Array)\n exceptions = [exceptions]\n if exceptions\n @_children.forEach (child) ->\n child.deactive() if child._actived() and not exceptions.includes child\n else\n @_children.forEach (child) ->\n child.deactive() if child._actived()\n\n @deactiveExcept: (instances$dropdowns) ->\n exceptions = []\n if instances$dropdowns and not (instances$dropdowns instanceof Array)\n instances$dropdowns = [instances$dropdowns]\n if instances$dropdowns\n instances$dropdowns.forEach (instance$dropdown) =>\n exceptions.push exception if exception = @query instance$dropdown\n if exceptions.length\n @_instances.forEach (instance) ->\n instanceIsntInExceptions = not exceptions.includes instance\n instanceHasntExceptionChild = exceptions.every (exception) ->\n not instance._hasDescendant exception\n if instance._actived() \\\n and instanceIsntInExceptions \\\n and instanceHasntExceptionChild\n instance.deactive()\n else\n @_instances.forEach (instance) ->\n instance.deactive() if instance._actived()\n\n @_standaloneInstances: ->\n @_instances.filter (instance) -> instance if instance._isStandalone\n\n @_init: ->\n self = this\n luda.onOpposite 'click', @_SELECTOR, (e) ->\n self.deactiveExcept self._standaloneInstances()\n luda.on 'click', @_SELECTOR, (e) ->\n if instance = self.query this\n toggleChecked = false\n focus = not e.detail\n self.deactiveExcept(self._standaloneInstances().concat instance)\n instance._deactiveChildrenExcept()\n instance._parent._deactiveChildrenExcept(instance) if instance._parent\n if instance._$switches.length or instance._$noneSwitches.length\n luda.eventPath(e).some ($path) ->\n if instance._$switches.includes $path\n instance.toggle focus\n toggleChecked = true\n else if instance._$noneSwitches.includes $path\n toggleChecked = true\n instance.toggle focus unless toggleChecked\n\n luda.onOpposite 'keyup', @_SELECTOR, (e) -> self.deactiveExcept()\n luda.on 'keyup', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_TAB and instance = self.query this\n self.deactiveExcept(instance)\n instance.active()\n luda.on 'keydown', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_ESC and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.deactive true\n else\n instance._parent?.deactive true\n luda.on 'keydown', @_SELECTOR, (e) ->\n if [luda.KEY_LEFT, luda.KEY_UP].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.prev()\n else\n instance._parent?.prev()\n else if [luda.KEY_RIGHT, luda.KEY_DOWN].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.next()\n else\n instance._parent?.next()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\nimport '../behaviours/focus.coffee'\nimport '../behaviours/enter-click.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmDropdown'\n\n @_SELECTOR: '.fm-dropdown'\n @_VALUE_SPLITOR: ' '\n @_VALUE_ATTRIBUTE: 'data-fm-dropdown-value'\n @_VALUE_SELECTOR: '.dropdown-items .btn-radio input,\n .dropdown-items .btn-check input'\n @_DEFAULT_VALUE_SELECTOR: '.dropdown-items .btn-radio label,\n .dropdown-items .btn-check label'\n @_VALUE_HOLDER_SELECTOR: '.fm input'\n @_ENTER_CLICK_VALUE_HOLDER_SELECTOR: '.fm-dropdown .fm input'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n 'checked'\n @_VALUE_ATTRIBUTE\n ]\n\n _getConfig: ->\n _$values = luda.$children @constructor._VALUE_SELECTOR, @_$component\n _$defaultValues = luda.$children \\\n @constructor._DEFAULT_VALUE_SELECTOR, @_$component\n _$valueHolder = luda.$child \\\n @constructor._VALUE_HOLDER_SELECTOR, @_$component\n {_$values, _$valueHolder, _$defaultValues}\n\n _constructor: ->\n {\n @_$values,\n @_$valueHolder,\n @_$defaultValues\n } = @_getConfig()\n @_setValueHolderAttribute()\n @_setValueHolderValue()\n\n _onMutations: ->\n @_constructor()\n\n _setValueHolderValue: ->\n values = []\n @_$values.forEach ($value, index) =>\n if $value.checked\n if $value.hasAttribute @constructor._VALUE_ATTRIBUTE\n value = $value.getAttribute @constructor._VALUE_ATTRIBUTE\n else\n value = @_$defaultValues[index].innerText\n values.push value if value and not values.includes value\n if @_$valueHolder\n @_$valueHolder.value = values.join @constructor._VALUE_SPLITOR\n\n _setValueHolderAttribute: ->\n @_$valueHolder.setAttribute('readonly', '') if @_$valueHolder\n\n @_init: ->\n self = this\n luda.enterClick._add @_ENTER_CLICK_VALUE_HOLDER_SELECTOR\n luda.on 'change', \"#{@_SELECTOR} #{@_VALUE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setValueHolderValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setValueHolderValue()\n # prevent ios device pop out wired navigation pannel\n if /iphone/i.test(navigator.userAgent) or /ipad/i.test(navigator.userAgent)\n luda.on 'focusin', @_ENTER_CLICK_VALUE_HOLDER_SELECTOR, (e) ->\n this.blur()\n this.classList.add luda.focus._CSS_CLASS","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'tab'\n\n @_SELECTOR: '.tab'\n @_PANE_SELECTOR: '.tab-pane'\n @_INDICATOR_SELECTOR: '.tab-indicators .btn-radio input[type=radio]'\n @_PANE_ACTIVE_CSS_CLASS: 'tab-pane-active'\n @_ACTIVE_INDEX: 0\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n subtree: true\n \n # public\n active: (index) ->\n if @_$panes.length\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$panes.length - 1\n @_activeIndex = index\n @_active(activedIndex)\n\n # private\n _getConfig: ->\n _$panes = luda.$unnested \\\n @constructor._PANE_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATOR_SELECTOR, @_$component, @constructor._SELECTOR\n _activeIndex = @constructor._ACTIVE_INDEX\n _$indicators.some ($indicator, index) ->\n if $indicator.checked\n _activeIndex = index\n true\n {_$panes, _$indicators, _activeIndex}\n\n _constructor: ->\n {\n @_$panes,\n @_$indicators,\n @_activeIndex\n } = @_getConfig()\n @_active()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _active: (activedIndex) ->\n @_$panes.forEach ($pane, index) =>\n if index is @_activeIndex\n $pane.classList.add @constructor._PANE_ACTIVE_CSS_CLASS\n luda.dispatch($pane, @constructor._ACTIVED_EVENT_TYPE, index)\n else\n $pane.classList.remove @constructor._PANE_ACTIVE_CSS_CLASS\n if index is activedIndex\n luda.dispatch($pane, @constructor._DEACTIVED_EVENT_TYPE, index)\n @_setIndicatorsState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n if index is @_activeIndex\n $indicator.setAttribute 'checked', ''\n else\n $indicator.removeAttribute 'checked'\n\n # static private\n @_init: ->\n self = this\n luda.on 'change', @_INDICATOR_SELECTOR, (e) ->\n if this.checked\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this"],"names":[],"mappings":";;;;;;;;;;;EAAA,IAAA;;EAAA,GAAA,GAAM,CAAC;IACL,IAAG,OAAO,QAAP,KAAqB,WAAxB;MACE,IAAiB,OAAO,MAAP,KAAmB,WAApC;EAAA,aAAO,OAAP;;MACA,IAAiB,OAAO,MAAP,KAAmB,WAApC;EAAA,aAAO,OAAP;OAFF;;IAGA,MAAM,IAAI,KAAJ,CAAU,kCAAV;EAJD,CAAD;;EASN,IAAO,OAAO,GAAG,CAAC,IAAX,KAAmB,UAA1B;IACE,GAAG,CAAC,IAAJ,GAAW,SAAC,SAAD;EACT,QAAA,SAAA,EAAA,IAAA,EAAA;MAAA,IAAA,CAAuD,SAAvD;QAAA,MAAM,IAAI,KAAJ,CAAU,+BAAV,EAAN;;MACA,IAAA,CAAO,CAAC,QAAD,EAAW,UAAX,CAAsB,CAAC,QAAvB,CAAgC,OAAO,SAAvC,CAAP;QACE,MAAM,IAAI,KAAJ,CAAU,8CAAV,EADR;;MAEA,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MAAC,CAAA,sBAAD,GAAyB;;IACzB,MAAC,CAAA,aAAD,GAAgB;;IAChB,MAAC,CAAA,mBAAD,GAAsB,CAAA,EAAG,MAAC,CAAA,MAAJ,CAAW,QAAX;;IACtB,MAAC,CAAA,qBAAD,GAAwB,CAAA,EAAG,MAAC,CAAA,MAAJ,CAAW,UAAX;;IAExB,MAAC,CAAA,eAAD,GACE;MAAA,SAAA,EAAW,IAAX;MACA,OAAA,EAAS;;;;;eAdb;;;;"}
|
1
|
+
{"version":3,"file":"luda.js","sources":["../../src/coffee/install.coffee","../../src/coffee/constants.coffee","../../src/coffee/dom.coffee","../../src/coffee/event.coffee","../../src/coffee/utilities.coffee","../../src/coffee/singleton.coffee","../../src/coffee/behaviors/enter-click.coffee","../../src/coffee/behaviors/focus.coffee","../../src/coffee/behaviors/radio-tab.coffee","../../src/coffee/component.coffee","../../src/coffee/behaviors/readonly.coffee","../../src/coffee/behaviors/toggle.coffee","../../src/coffee/elements/form-file.coffee","../../src/coffee/elements/form-select.coffee","../../src/coffee/patterns/carousel.coffee","../../src/coffee/patterns/dropdown.coffee","../../src/coffee/patterns/form-dropdown.coffee","../../src/coffee/patterns/tab.coffee"],"sourcesContent":["ENV = (->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n)()\n\n\n\nunless typeof ENV.luda is 'function'\n ENV.luda = (installer) ->\n throw new Error 'Installer cannot be detected.' unless installer\n unless ['object', 'function'].includes typeof installer\n throw new Error 'Installer must be object, array or function.'\n if installer.hasOwnProperty '_SCOPE'\n unless typeof installer._SCOPE is 'string'\n throw new Error '_SCOPE must be string'\n return ENV.luda._install installer._SCOPE, installer\n if installer instanceof Array or typeof installer is 'function'\n throw new Error 'Unscoped installer must be object.'\n installed = {}\n for name, property of installer\n installed[name] = ENV.luda._install name, property\n installed\n\n ENV.luda._install = (namespace, installer) ->\n if ENV.luda[namespace]\n console.warn \"Namespace #{namespace} is ocupied, sikp installation.\"\n return ENV.luda[namespace]\n for installedName, installedInstaller of ENV.luda\n if installer is installedInstaller\n console.warn \"Installer is installed with name #{installedName},\n skip installation.\"\n return ENV.luda[installedName]\n if installer._install\n if typeof installer._install is 'function'\n return ENV.luda[namespace] = installer._install()\n return ENV.luda[namespace] = installer._install\n ENV.luda[namespace] = installer","import './install.coffee'\n\n\n\nluda\n\n KEY_LEFT: 37\n KEY_UP: 38\n KEY_RIGHT: 39\n KEY_DOWN: 40\n KEY_TAB: 9\n KEY_ESC: 27\n KEY_ENTER: 13","import './install.coffee'\n\n\n\nluda\n \n $child: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $ancestor.querySelector selector\n\n $children: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $descendant = @$child selector, $ancestor\n if $descendant\n descendants = Array.from($ancestor.querySelectorAll selector)\n else\n descendants = []\n\n $unnested: (selector, $ancestor, ancestorSelector) ->\n descendants = @$children selector, $ancestor\n descendants.filter ($descendant) =>\n $descendant if @$parent(ancestorSelector, $descendant) is $ancestor\n\n $parent: (selector, $descendant) ->\n $ancestor = $descendant.parentNode\n if $ancestor\n if $ancestor.matches and $ancestor.matches selector\n $ancestor\n else\n @$parent selector, $ancestor\n\n $parents: (selector, $descendant, _ancestors) ->\n $ancestor = @$parent selector, $descendant\n _ancestors = [] unless _ancestors\n if $ancestor\n _ancestors.push($ancestor)\n @$parents selector, $ancestor, _ancestors\n else\n _ancestors\n\n $after: ($node, $target) ->\n $parent = $target.parentNode\n if $parent.lastChild is $target\n $parent.appendChild $node\n else\n $parent.insertBefore $node, $target.nextSibling\n\n $prepend: ($node, $target) ->\n if $target.firstChild\n $target.insertBefore $node, $target.firstChild\n else\n $target.appendChild $node\n\n reflow: ($element) -> $element.offsetHeight","import './install.coffee'\nimport './dom.coffee'\n\n\n\nluda\n \n _SWIPE_DISTANCE: 10\n _EVENT_TYPE_PREFIX: 'luda'\n _SWIPE_LEFT: 'swipeleft'\n _SWIPE_RIGHT: 'swiperight'\n _SWIPE_UP: 'swipeup'\n _SWIPE_DOWN: 'swipedown'\n _SWIPE_LEFT_OR_UP: 'swipeleft or swipeup'\n _SWIPE_RIGHT_OR_DOWN: 'swiperight or swipedown'\n _DOC_READY: 'docready'\n _FORM_RESET: 'reset'\n\n eventPath: (event) ->\n if event.composedPath\n path = event.composedPath()\n else if event.path\n path = event.path\n else\n path = [event.target].concat(luda.$parents '*', event.target)\n\n on: (event, selector..., handler) ->\n switch event\n when @_DOC_READY then @_onDocReady handler\n when @_FORM_RESET then @_onReset selector[0], handler\n when @_SWIPE_LEFT, \\\n @_SWIPE_RIGHT, \\\n @_SWIPE_UP, \\\n @_SWIPE_DOWN, \\\n @_SWIPE_LEFT_OR_UP, \\\n @_SWIPE_RIGHT_OR_DOWN\n then @_onSwipe event, selector[0], handler\n else @_on event, selector[0], handler\n\n onOpposite: (event, selector, handler) ->\n _self = this\n document.addEventListener event, (e) ->\n trigger = _self.eventPath(e).every ($element) ->\n not $element.matches or not $element.matches selector\n handler e if trigger\n\n dispatch: ($target, type, detail, options = {}) ->\n options.bubbles = true unless typeof options.bubbles is 'boolean'\n options.cancelable = true unless typeof options.cancelable is 'boolean'\n options.composed = true unless typeof options.composed is 'boolean'\n evt = new Event \"#{@_EVENT_TYPE_PREFIX}:#{type}\", options\n evt.detail = detail\n $target.dispatchEvent evt\n evt\n \n _onDocReady: (handler) ->\n if document.readyState is 'loading'\n document.addEventListener 'DOMContentLoaded', handler\n else\n handler()\n\n _onReset: (selector, handler) ->\n document.addEventListener 'reset', (e) ->\n if selector?\n luda.$children(selector, e.target).forEach ($element) ->\n handler.bind($element)(e)\n else\n handler e\n \n _onSwipe: (event, selector, handler) ->\n _self = this\n watch = false\n $touchStartElement = document\n touchStartE = null\n touchStartX = 0\n touchStartY = 0\n document.addEventListener 'touchstart', (e) ->\n if e.touches.length is 1\n touchStartX = e.touches[0].screenX\n touchStartY = e.touches[0].screenY\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n $touchStartElement = $element\n touchStartE = e\n watch = true\n return true\n else\n watch = true\n\n document.addEventListener 'touchmove', (e) ->\n if watch and e.touches.length is 1\n touchDistanceX = e.touches[0].screenX - touchStartX\n touchDistanceY = e.touches[0].screenY - touchStartY\n eventX = undefined\n eventY = undefined\n eventXOrY = undefined\n if Math.abs(touchDistanceX) >= _self._SWIPE_DISTANCE\n if touchDistanceX > 0\n eventX = _self._SWIPE_RIGHT\n else\n eventX = _self._SWIPE_LEFT\n if Math.abs(touchDistanceY) >= _self._SWIPE_DISTANCE\n if touchDistanceY > 0\n eventY = _self._SWIPE_DOWN\n else\n eventY = _self._SWIPE_UP\n if eventX is _self._SWIPE_LEFT \\\n or eventY is _self._SWIPE_UP\n eventXOrY = _self._SWIPE_LEFT_OR_UP\n if eventX is _self._SWIPE_RIGHT \\\n or eventY is _self._SWIPE_DOWN\n eventXOrY = _self._SWIPE_RIGHT_OR_DOWN\n if (eventX? and eventX is event) \\\n or (eventY? and eventY is event) \\\n or eventXOrY is event\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element is $touchStartElement\n watch = false\n handler.bind($element)(touchStartE, e)\n return true\n else\n watch = false\n handler touchStartE, e\n\n _on: (event, selector, handler) ->\n if selector is window\n window.addEventListener event, (e) -> handler e\n else\n _self = this\n document.addEventListener event, (e) ->\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n handler.bind($element)(e)\n return true\n else\n handler e","import './install.coffee'\n\n\n\nluda\n \n except: (element, arr) ->\n arr.splice(arr.indexOf(element), 1) if arr.includes element","import './install.coffee'\nimport './utilities.coffee'\n\n\n \nluda class Singleton\n\n @_SCOPE: 'Singleton'\n \n @_SELECTOR_INVALID_ERROR: '@param selector must be a css selector string'\n @_SELECTORS: []\n\n @_selector: ''\n @_actived: true\n\n @active: ->\n @_actived = true\n\n @deactive: ->\n @_actived = false\n\n @_add: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n @_SELECTORS.push selector unless @_SELECTORS.includes selector\n @_mergeSelectors()\n\n @_remove: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n luda.except selector, @_SELECTORS\n @_mergeSelectors()\n\n @_mergeSelectors: ->\n @_selector = @_SELECTORS.join ','\n\n @_install: ->\n return this if this is Singleton\n @_SELECTORS = [] unless @hasOwnProperty '_SELECTORS'\n @_mergeSelectors()\n exposed = @_init() if typeof @_init is 'function'\n if exposed then exposed else this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'enterClick'\n\n @_SELECTORS: [\n 'input[type=checkbox]'\n 'input[type=radio]'\n '[tabindex]'\n ]\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_ENTER \\\n and e.target.matches self._selector\n e.preventDefault()\n setTimeout(-> e.target.click())","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'focus'\n\n @_CSS_CLASS: 'focus'\n # mouse focusable selectors\n @_SELECTORS: ['select'\n 'textarea'\n ':not(.btn-check):not(.btn-radio):not(.btn-file) >\n input:not([type=button]):not([type=submit]):not([type=reset])'\n ]\n @_TOUCHSTART_FOCUS_SELECTOR: 'input[type=range]'\n @_PARENT_FOCUS_SELECTOR: 'select[multiple]'\n @_PARENT_FOCUS_CHILDREN_SELECTOR: \"#{@_PARENT_FOCUS_SELECTOR} *\"\n\n @_$focus: document.getElementsByClassName(@_CSS_CLASS)\n\n @_removeFocusClassExcept: ($exception) ->\n Array.from(@_$focus).forEach ($focus) =>\n $focus.classList.remove @_CSS_CLASS if $focus isnt $exception\n\n @_addFocusClassExceptHtmlAndBody: ($target) ->\n if $target isnt document.body and $target isnt document.documentElement\n $target.classList.add @_CSS_CLASS\n\n @_changeFocusStateOnKeyEvent: (e) ->\n if @_actived\n @_removeFocusClassExcept e.target\n @_addFocusClassExceptHtmlAndBody e.target\n\n @_changeFocusStateOnMouseDownEvent: (e) ->\n if @_actived\n if e.target.matches @_PARENT_FOCUS_CHILDREN_SELECTOR\n target = luda.$parent @_PARENT_FOCUS_SELECTOR, e.target\n else\n target = e.target\n if target.matches @_selector\n @_removeFocusClassExcept target\n @_addFocusClassExceptHtmlAndBody target\n else\n @_removeFocusClassExcept()\n\n @_setElementPrototype: ->\n focus = HTMLElement.prototype.focus\n blur = HTMLElement.prototype.blur\n self = this\n HTMLElement.prototype.focus = ->\n focus.apply this, arguments\n if self._actived and document.activeElement is this\n self._removeFocusClassExcept this\n self._addFocusClassExceptHtmlAndBody this\n HTMLElement.prototype.blur = ->\n blur.apply this, arguments\n this.classList.remove self._CSS_CLASS if self._actived\n\n @_init: ->\n self = this\n @_setElementPrototype()\n luda.on 'keydown', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'keyup', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'mousedown', @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'touchstart', @_TOUCHSTART_FOCUS_SELECTOR, \\\n @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'focusin', @_changeFocusStateOnMouseDownEvent.bind this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'radioTab'\n\n @_SELECTORS: ['input[type=radio]:not([disabled])']\n\n @_querySameName$radios: ($radio) ->\n if $radio.name\n selector = \"#{@_selector}[name=#{$radio.name}]\"\n else\n selector = @_selector\n $inputs = luda.$children selector\n $inputs.filter ($input) -> $input.tabIndex >= 0\n\n @_query$prev$next: ($radio) ->\n $sameNameRadios = @_querySameName$radios $radio\n radioIndex = $sameNameRadios.indexOf $radio\n $prev = $sameNameRadios[radioIndex - 1]\n $next = $sameNameRadios[radioIndex + 1]\n {$prev, $next}\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_TAB \\\n and e.target.nodeName.toUpperCase() is 'INPUT' \\\n and e.target.type is 'radio'\n if e.shiftKey\n if $prev = self._query$prev$next(e.target).$prev\n e.preventDefault()\n $prev.focus()\n else\n if $next = self._query$prev$next(e.target).$next\n e.preventDefault()\n $next.focus()","import './install.coffee'\nimport './utilities.coffee'\nimport './dom.coffee'\nimport './event.coffee'\n\n\n\n\nluda class Component\n\n @_SCOPE: 'Component'\n \n @_COMPONENT_NO_SELECTOR_ERROR: 'Extended component must has a css selector'\n @_$COMPONENT_INVALID_ERROR: '@param $component must be an instance of Element'\n @_SELECTOR: ''\n @_instances: []\n\n @_Observed: []\n @_observer: null\n @_observerConfig:\n childList: true\n subtree: true\n\n _hasDescendant: (descendant) ->\n if @_children.length and descendant\n return true if @_children.includes descendant\n return @_children.some (child) -> child._hasDescendant descendant\n else\n return false\n\n _observe: ->\n @_observer = new MutationObserver @_onMutations.bind this\n @_observer.observe @_$component, @constructor._observerConfig\n\n _disconnect: ->\n @_observer.disconnect()\n @_observer = null\n\n @create: ($component) ->\n componentIsElementInstance = $component instanceof Element\n throw new Error @_$COMPONENT_INVALID_ERROR unless componentIsElementInstance\n $family = @_query$family $component\n instance = @query $component\n if $family._$parent\n if parent = @query $family._$parent\n @_instances.push instance = @_createInstance $component unless instance\n if instance._parent isnt parent\n parent._children.push(instance) and (instance._parent = parent)\n $family._$children.forEach ($child) => @create $child\n return instance\n else\n @create $family._$parent\n return @query $component\n else\n @_instances.push instance = @_createInstance $component unless instance\n $family._$children.forEach ($child) => @create $child\n return instance\n\n @destroy: (instance$component) ->\n instance = @query instance$component\n if instance\n instance._disconnect() if instance._observer\n instance._destroy() if instance._destroy\n @destroy instance._children[0] while instance._children.length\n if instance._parent\n luda.except instance, instance._parent._children\n luda.except instance, @_instances\n for attribute, value of instance\n instance[attribute] = null\n \n @query: (instance$component) ->\n instance = null\n if instance$component instanceof this \\\n and @_instances.includes instance$component\n instance = instance$component\n else if instance$component instanceof Element\n @_instances.some (inited) ->\n if inited._$component is instance$component\n instance = inited\n return true\n return instance\n\n @_query$family: ($component) ->\n _$parent = null\n _$children = []\n if @_SELECTOR\n _$parent = luda.$parent @_SELECTOR, $component\n _$children = luda.$unnested @_SELECTOR, $component, @_SELECTOR\n {_$parent, _$children}\n\n @_createInstance: ($component) ->\n instance = new this()\n instance._$component = $component\n instance._parent = null\n instance._children = []\n instance._observer = null\n instance._constructor() if instance._constructor\n unless instance._observer and instance._onMutations and @_observerConfig\n instance._observe()\n instance\n\n @_observe: (classObj) ->\n unless Component._observer\n Component._observer = new MutationObserver (mutations) ->\n mutations.forEach (mutation) ->\n $removedNodes = Array.from mutation.removedNodes\n $addedNodes = Array.from mutation.addedNodes\n $removedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.destroy $node\n else\n $destroies = luda.$children Observed._SELECTOR, $node\n $destroies.forEach ($destroy) -> Observed.destroy $destroy\n $addedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.create $node\n else\n $creates = luda.$children Observed._SELECTOR, $node\n $creates.forEach ($create) -> Observed.create $create\n Component._observer.observe document.documentElement, \\\n Component._observerConfig\n unless Component._Observed.includes classObj\n Component._Observed.push classObj\n\n @_install: ->\n self = this\n return this if this is Component\n unless @_SELECTOR or typeof @_SELECTOR isnt 'string'\n throw new Error @_COMPONENT_NO_SELECTOR_ERROR\n @_instances = [] unless @hasOwnProperty '_instances'\n exposed = @_init() if typeof @_init is 'function'\n luda.on luda._DOC_READY, ->\n luda.$children(self._SELECTOR).forEach ($component) ->\n self.create $component\n Component._observe(self)\n if exposed then exposed else this","import '../install.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'readonly'\n @_READONLY_ATTRIBUTE: 'data-readonly'\n @_READONLY_FALSE_VALUE: 'false'\n @_SELECTOR: \"[#{@_READONLY_ATTRIBUTE}]\"\n\n @_observerConfig:\n attributes: true\n attributeFilter: [@_READONLY_ATTRIBUTE]\n\n _getConfig: ->\n readonly = @_$component.getAttribute @constructor._READONLY_ATTRIBUTE\n _isReadonly = readonly isnt @constructor._READONLY_FALSE_VALUE\n _originalTabIndex = @_$component.tabIndex\n {_isReadonly, _originalTabIndex}\n \n _constructor: ->\n {\n @_isReadonly,\n @_originalTabIndex\n } = @_getConfig()\n @_setTabIndex()\n\n _onMutations: ->\n @_constructor()\n\n _setTabIndex: ->\n if @_isReadonly\n @_$component.tabIndex = -1\n else\n @_$component.tabIndex = @_originalTabIndex","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'toggle'\n @_TOGGLE_TARGET_ATTRIBUTE: 'data-toggle-target'\n @_TOGGLE_ATTRIBUTE: 'data-toggle'\n @_TOGGLE_FOR_ATTRIBUTE: 'data-toggle-for'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-toggle-disabled'\n @_ACTIVE_CSS_CLASS: 'toggle-active'\n @_SELECTORS: [\n \"[#{@_TOGGLE_FOR_ATTRIBUTE}]\"\n \"[#{@_TOGGLE_ATTRIBUTE}]\"\n ]\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @active: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.add @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_ACTIVED_EVENT_TYPE)\n\n @deactive: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.remove @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_DEACTIVED_EVENT_TYPE)\n\n @toggle: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n if $target.classList.contains @_ACTIVE_CSS_CLASS\n @deactive($target)\n else\n @active($target)\n\n @_query$targets: (name$target) ->\n if name$target instanceof Element\n [name$target]\n else\n luda.$children \"[#{@_TOGGLE_TARGET_ATTRIBUTE}=#{name$target}]\"\n\n @_init: ->\n self = this\n luda.on 'click', @_selector, (e) ->\n toggleChecked = false\n luda.eventPath(e).some ($path) ->\n if $path instanceof Element\n if $path.hasAttribute(self._TOGGLE_ATTRIBUTE) \\\n or $path.hasAttribute(self._TOGGLE_FOR_ATTRIBUTE)\n if toggleName = $path.getAttribute self._TOGGLE_FOR_ATTRIBUTE\n self.toggle toggleName\n toggleChecked = true\n if $path.hasAttribute self._TOGGLE_ATTRIBUTE\n if $path.hasAttribute self._TOGGLE_TARGET_ATTRIBUTE\n $toggle = $path\n else\n $toggle = luda.$parent \\\n \"[#{self._TOGGLE_TARGET_ATTRIBUTE}]\", $path\n if $toggle\n self.toggle $toggle\n toggleChecked = true\n else if $path.hasAttribute self._NONE_TOGGLE_ATTRIBUTE\n toggleChecked = true","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmFile'\n\n @_VALUE_SPLITOR: ' '\n @_SELECTOR: '.fm-file'\n @_FILE_SELECTOR: 'input[type=file]'\n @_SIMULATOR_SELECTOR: 'input:not([type=file])'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_VALUE_ATTRIBUTE: 'value'\n\n @_observerConfig:\n childList: true\n subtree: true\n\n _getConfig: ->\n _$file = luda.$child @constructor._FILE_SELECTOR, @_$component\n _$simulator = luda.$child \\\n @constructor._SIMULATOR_SELECTOR, @_$component\n {_$file, _$simulator}\n\n _constructor: ->\n {\n @_$file,\n @_$simulator\n } = @_getConfig()\n @_init()\n\n _onMutations: ->\n @_constructor()\n\n _insertSimulator: ->\n @_$simulator = document.createElement 'input'\n @_$simulator.tabIndex = -1\n luda.$after @_$simulator, @_$file\n\n _setPlaceholderValue: ->\n @_$simulator.placeholder = \\\n @_$file.getAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSimulatorValue: ->\n values = []\n Array.from(@_$file.files).map (file) -> values.push file.name\n if values.length\n @_$simulator.value = values.join @constructor._VALUE_SPLITOR\n else if @_$file.hasAttribute(@constructor._VALUE_ATTRIBUTE)\n @_$simulator.value = @_$file.getAttribute @constructor._VALUE_ATTRIBUTE\n\n _init: ->\n if @_$file\n @_insertSimulator() unless @_$simulator\n if @_$file.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setPlaceholderValue()\n @_setSimulatorValue()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_FILE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setSimulatorValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setSimulatorValue()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmSelect'\n\n @_SELECTOR: '.fm-select'\n @_SELECT_SELECTOR: 'select'\n @_SINGLE_SELECT_SIMULATOR_SELECTOR: 'input'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS: 'fm-select-multiple-placeholder'\n @_DEFAULT_SELECTED_OPTION_ATTRIBUTE: 'data-fm-select-default-selected'\n @_INITED_ATTRIBUTE: 'data-fm-select-inited'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: ['selected']\n\n select: (indexOrIndexArray) ->\n if @_$select.multiple\n if @_$multipleSelectPlaceholder\n selectedIndexes = indexOrIndexArray\n else\n selectedIndexes = indexOrIndexArray.map (index) -> index + 1\n Array.from(@_$select.options).forEach ($option, index) ->\n $option.selected = selectedIndexes.includes index\n @_markSelectedOption()\n else\n @_$select.selectedIndex = selectedIndex\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _getConfig: ->\n _$select = luda.$child @constructor._SELECT_SELECTOR, @_$component\n _$singleSelectSimulator = luda.$child \\\n @constructor._SINGLE_SELECT_SIMULATOR_SELECTOR, @_$component\n _$multipleSelectPlaceholder = luda.$child \\\n \".#{@constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS}\", @_$component\n _$defaultSelectedOptions = luda.$children \\\n \"[#{@constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE}]\", @_$component\n _defaultSelectedOptionMarked = @_$component.hasAttribute \\\n @constructor._INITED_ATTRIBUTE\n {\n _$select,\n _$singleSelectSimulator,\n _$multipleSelectPlaceholder,\n _$defaultSelectedOptions,\n _defaultSelectedOptionMarked\n }\n\n _constructor: ->\n {\n @_$select,\n @_$singleSelectSimulator,\n @_$multipleSelectPlaceholder,\n @_$defaultSelectedOptions,\n @_defaultSelectedOptionMarked\n } = @_getConfig()\n if @_$select\n if @_$select.multiple\n @_initMultipleSelect()\n else\n @_initSingleSelect()\n \n _onMutations: ->\n @_constructor()\n\n _markSelectedOption: ->\n @_disconnect() if @_observer\n Array.from(@_$select.options).forEach ($option) ->\n if $option.selected\n $option.setAttribute 'selected', 'selected'\n else\n $option.removeAttribute 'selected'\n @_observe() unless @_observer\n\n _markDefaultSelectedOption: ->\n @_$component.setAttribute @constructor._INITED_ATTRIBUTE, ''\n Array.from(@_$select.options).forEach ($option) =>\n if $option.selected\n $option.setAttribute @constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE, ''\n\n _setSingleSelectedDefaultSelectedOption: ->\n hasSelected = Array.from(@_$select.options).some ($option) ->\n $option.getAttribute('selected') is 'selected'\n @_$select.selectedIndex = -1 unless hasSelected\n\n _insertSingleSelectSimulator: ->\n @_$singleSelectSimulator = document.createElement 'input'\n @_$singleSelectSimulator.tabIndex = -1\n luda.$after @_$singleSelectSimulator, @_$select\n\n _setSingleSelectPlaceholderValue: ->\n @_$singleSelectSimulator.placeholder = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSingleSelectSimulatorValue: ->\n if $selectedOption = @_$select.options[@_$select.selectedIndex]\n @_$singleSelectSimulator.value = $selectedOption.innerText\n else\n @_$singleSelectSimulator.value = ''\n\n _initSingleSelect: ->\n @_insertSingleSelectSimulator() unless @_$singleSelectSimulator\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setSingleSelectedDefaultSelectedOption()\n @_setSingleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _insertMultipleSelectBlankOption: ->\n @_$multipleSelectPlaceholder = document.createElement 'option'\n @_$multipleSelectPlaceholder.className = \\\n @constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS\n @_$multipleSelectPlaceholder.disabled = true\n luda.$prepend @_$multipleSelectPlaceholder, @_$select\n\n _setMultipleSelectPlaceholderValue: ->\n @_$multipleSelectPlaceholder.innerText = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _initMultipleSelect: ->\n unless @_$multipleSelectPlaceholder\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_insertMultipleSelectBlankOption()\n @_setMultipleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n\n _reset: ->\n if @_$select\n Array.from(@_$select.options).forEach ($option) =>\n $option.selected = @_$defaultSelectedOptions.includes $option\n @_setSingleSelectSimulatorValue() unless @_$select.multiple\n @_markSelectedOption()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_SELECT_SELECTOR}\", (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._setSingleSelectSimulatorValue() unless this.multiple\n instance._markSelectedOption()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._reset()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'carousel'\n\n @_SELECTOR: '.carousel'\n @_ITEMS_SELECTOR: '.carousel-item'\n @_PREV_CONTROL_SELECTOR: '.carousel-prev'\n @_NEXT_CONTROL_SELECTOR: '.carousel-next'\n @_INDICATORS_SELECTOR: '.carousel-indicators .btn'\n @_INTERVAL_ATTRIBUTE: 'data-carousel-interval'\n @_WRAP_ATTRIBUTE: 'data-carousel-wrap'\n @_ITEM_ACTIVE_CSS_CLASS: 'carousel-item-active'\n @_ITEM_NEXT_CSS_CLASS: 'carousel-item-next'\n @_ITEM_PREV_CSS_CLASS: 'carousel-item-prev'\n @_ACTIVE_INDEX: 0\n @_INTERVAL: 5000\n @_WRAP: true\n @_FALSE: 'false'\n @_ACTIVE_EVENT_TYPE: \"#{@_SCOPE}:active\"\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVE_EVENT_TYPE: \"#{@_SCOPE}:deactive\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [@_INTERVAL_ATTRIBUTE, @_WRAP_ATTRIBUTE]\n \n # public\n active: (index) ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n action = if index < activedIndex then '_slidePrev' else '_slideNext'\n @[action] @_$items[activedIndex], activedIndex\n\n next: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex + 1\n if index > @_$items.length - 1\n return unless @_wrap\n index = 0\n @_transiting = true\n @_activeIndex = index\n @_slideNext @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n prev: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex - 1\n if index < 0\n return unless @_wrap\n index = @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n @_slidePrev @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n pause: ->\n if @_intervaling?\n clearInterval @_intervaling\n @_intervaling = null\n @_pausedRemainTime = @_pausedRemainTime - (Date.now() - @_playTimeStamp)\n\n play: ->\n if @_interval and @_$items.length > 1\n @_playTimeStamp = Date.now()\n @pause()\n execute = =>\n @next()\n @_intervaling = setInterval @next.bind(this), @_interval\n @_intervaling = setTimeout execute, @_pausedRemainTime\n\n\n # private\n _getConfig: ->\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATORS_SELECTOR, @_$component, @constructor._SELECTOR\n _$prevControl = luda.$child \\\n @constructor._PREV_CONTROL_SELECTOR, @_$component\n _$nextControl = luda.$child \\\n @constructor._NEXT_CONTROL_SELECTOR, @_$component\n _activeIndex = _$items.indexOf \\\n luda.$child \".#{@constructor._ITEM_ACTIVE_CSS_CLASS}\", @_$component\n _activeIndex = @constructor._ACTIVE_INDEX if _activeIndex is -1\n _interval = @_$component.getAttribute(@constructor._INTERVAL_ATTRIBUTE)\n if _interval is @constructor._FALSE\n _interval = false\n else\n _interval = Math.abs(parseInt _interval, 10) or @constructor._INTERVAL\n _wrap = @_$component.getAttribute(@constructor._WRAP_ATTRIBUTE)\n _wrap = if _wrap is @constructor._FALSE then false else @constructor._WRAP\n {\n _$items,\n _$indicators,\n _$prevControl,\n _$nextControl,\n _activeIndex,\n _interval,\n _wrap\n }\n\n _constructor: ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_transiting = false\n @_intervaling = null\n @_playTimeStamp = 0\n @_pausedRemainTime = @_interval\n @_layout()\n @play()\n\n _onMutations: (mutations) ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_setIndicatorsState()\n @_setDirectionControlState()\n @play()\n\n _destroy: ->\n @pause()\n\n _layout: ->\n @_$items.forEach ($item, index) =>\n $item.style.transition = 'none'\n if index > @_activeIndex\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else if index < @_activeIndex\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else\n luda.dispatch($item, @constructor._ACTIVED_EVENT_TYPE, index)\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow($item)\n $item.style.transition = ''\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slideNext: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_PREV_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slidePrev: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n $indicator.disabled = index is @_activeIndex\n\n _setDirectionControlState: ->\n if @_$items.length <= 1\n @_$prevControl?.disabled = @_$nextControl?.disabled = true\n else\n @_$prevControl?.disabled = @_activeIndex is 0 and not @_wrap\n @_$nextControl?.disabled = \\\n @_activeIndex is @_$items.length - 1 and not @_wrap\n \n # static private\n @_init: ->\n self = this\n luda.on 'transitionend', @_ITEMS_SELECTOR, (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._transiting = false\n index = instance._$items.indexOf this\n if this.classList.contains self._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch(this, self._ACTIVED_EVENT_TYPE, index)\n else\n luda.dispatch(this, self._DEACTIVED_EVENT_TYPE, index)\n luda.on 'click', @_INDICATORS_SELECTOR, (e) ->\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this\n luda.on 'touchstart', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'touchend', @_SELECTOR, (e) ->\n setTimeout => self.query(this).play()\n luda.on 'mouseover', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'mouseout', @_SELECTOR, (e) ->\n self.query(this).play()\n luda.on luda._SWIPE_LEFT_OR_UP, @_SELECTOR, (startE, e) ->\n self.query(this).next()\n luda.on luda._SWIPE_RIGHT_OR_DOWN, @_SELECTOR, (startE, e) ->\n self.query(this).prev()\n luda.on 'click', @_PREV_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).prev()\n luda.on 'click', @_NEXT_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).next()","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'dropdown'\n @_SELECTOR: '.dropdown-fixed,.dropdown-absolute,\n .dropdown-static,.dropdown-absolute-m'\n @_MENU_SELECTOR: '.dropdown-menu'\n @_ITEMS_SELECTOR: 'a[href]:not([disabled]),button:not([disabled]),\n input:not([disabled]),[tabindex]:not([disabled])'\n @_TOGGLE_ATTRIBUTE: 'data-dropdown-toggle'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-dropdown-toggle-disabled'\n @_STANDALONE_ATTRIBUTE: 'data-dropdown-standalone'\n @_SWITCHES_SELECTOR: \"[#{@_TOGGLE_ATTRIBUTE}]\"\n @_NONE_SWITCHES_SELECTOR: \"[#{@_NONE_TOGGLE_ATTRIBUTE}]\"\n @_ACTIVE_CSS_CLASS: 'dropdown-active'\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n @_TOGGLE_ATTRIBUTE\n @_NONE_TOGGLE_ATTRIBUTE\n @_STANDALONE_ATTRIBUTE\n ]\n\n @_$focused: []\n\n active: ->\n unless @_actived()\n @_$component.classList.add @constructor._ACTIVE_CSS_CLASS\n @constructor._$focused.push document.activeElement\n @_parent?.active()\n luda.dispatch(@_$component, @constructor._ACTIVED_EVENT_TYPE)\n\n deactive: (focus) ->\n if @_actived()\n @_$component.classList.remove @constructor._ACTIVE_CSS_CLASS\n @_children.forEach (child) -> child.deactive()\n if focus\n @constructor._$focused[@constructor._$focused.length - 1]?.focus()\n @constructor._$focused.splice @constructor._$focused.length - 1, 1\n luda.dispatch(@_$component, @constructor._DEACTIVED_EVENT_TYPE)\n\n toggle: (focus) ->\n if @_actived() then @deactive(focus) else @active()\n\n prev: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) - 1\n focusIndex = 0 if focusIndex < 0\n @_$items[focusIndex].focus()\n\n next: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) + 1\n focusIndex = @_$items.length - 1 if focusIndex > @_$items.length - 1\n @_$items[focusIndex].focus()\n\n _getConfig: ->\n _$menu = luda.$child @constructor._MENU_SELECTOR, @_$component\n _$switches = luda.$unnested( \\\n @constructor._SWITCHES_SELECTOR, @_$component, @constructor._SELECTOR)\n .concat(luda.$unnested \\\n @constructor._SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$noneSwitches = luda.$unnested( \\\n @constructor._NONE_SWITCHES_SELECTOR, \\\n @_$component, @constructor._SELECTOR) \\\n .concat(luda.$unnested \\\n @constructor._NONE_SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, _$menu, @constructor._MENU_SELECTOR\n _isStandalone = @_$component.hasAttribute @constructor._STANDALONE_ATTRIBUTE\n {_$items, _$switches, _$noneSwitches, _isStandalone}\n\n _constructor: ->\n {\n @_$items,\n @_$switches,\n @_$noneSwitches,\n @_isStandalone\n } = @_getConfig()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _actived: ->\n @_$component.classList.contains @constructor._ACTIVE_CSS_CLASS\n\n _deactiveChildrenExcept: (exceptions) ->\n if exceptions and not (exceptions instanceof Array)\n exceptions = [exceptions]\n if exceptions\n @_children.forEach (child) ->\n child.deactive() if child._actived() and not exceptions.includes child\n else\n @_children.forEach (child) ->\n child.deactive() if child._actived()\n\n @deactiveExcept: (instances$dropdowns) ->\n exceptions = []\n if instances$dropdowns and not (instances$dropdowns instanceof Array)\n instances$dropdowns = [instances$dropdowns]\n if instances$dropdowns\n instances$dropdowns.forEach (instance$dropdown) =>\n exceptions.push exception if exception = @query instance$dropdown\n if exceptions.length\n @_instances.forEach (instance) ->\n instanceIsntInExceptions = not exceptions.includes instance\n instanceHasntExceptionChild = exceptions.every (exception) ->\n not instance._hasDescendant exception\n if instance._actived() \\\n and instanceIsntInExceptions \\\n and instanceHasntExceptionChild\n instance.deactive()\n else\n @_instances.forEach (instance) ->\n instance.deactive() if instance._actived()\n\n @_standaloneInstances: ->\n @_instances.filter (instance) -> instance if instance._isStandalone\n\n @_init: ->\n self = this\n luda.onOpposite 'click', @_SELECTOR, (e) ->\n self.deactiveExcept self._standaloneInstances()\n luda.on 'click', @_SELECTOR, (e) ->\n if instance = self.query this\n toggleChecked = false\n focus = not e.detail\n self.deactiveExcept(self._standaloneInstances().concat instance)\n instance._deactiveChildrenExcept()\n instance._parent._deactiveChildrenExcept(instance) if instance._parent\n if instance._$switches.length or instance._$noneSwitches.length\n luda.eventPath(e).some ($path) ->\n if instance._$switches.includes $path\n instance.toggle focus\n toggleChecked = true\n else if instance._$noneSwitches.includes $path\n toggleChecked = true\n instance.toggle focus unless toggleChecked\n\n luda.onOpposite 'keyup', @_SELECTOR, (e) -> self.deactiveExcept()\n luda.on 'keyup', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_TAB and instance = self.query this\n self.deactiveExcept(instance)\n instance.active()\n luda.on 'keydown', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_ESC and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.deactive true\n else\n instance._parent?.deactive true\n luda.on 'keydown', @_SELECTOR, (e) ->\n if [luda.KEY_LEFT, luda.KEY_UP].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.prev()\n else\n instance._parent?.prev()\n else if [luda.KEY_RIGHT, luda.KEY_DOWN].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.next()\n else\n instance._parent?.next()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\nimport '../behaviors/focus.coffee'\nimport '../behaviors/enter-click.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmDropdown'\n\n @_SELECTOR: '.fm-dropdown'\n @_VALUE_SPLITOR: ' '\n @_VALUE_ATTRIBUTE: 'data-fm-dropdown-value'\n @_VALUE_SELECTOR: '.dropdown-items .btn-radio input,\n .dropdown-items .btn-check input'\n @_DEFAULT_VALUE_SELECTOR: '.dropdown-items .btn-radio label,\n .dropdown-items .btn-check label'\n @_VALUE_HOLDER_SELECTOR: '.fm input'\n @_ENTER_CLICK_VALUE_HOLDER_SELECTOR: '.fm-dropdown .fm input'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n 'checked'\n @_VALUE_ATTRIBUTE\n ]\n\n _getConfig: ->\n _$values = luda.$children @constructor._VALUE_SELECTOR, @_$component\n _$defaultValues = luda.$children \\\n @constructor._DEFAULT_VALUE_SELECTOR, @_$component\n _$valueHolder = luda.$child \\\n @constructor._VALUE_HOLDER_SELECTOR, @_$component\n {_$values, _$valueHolder, _$defaultValues}\n\n _constructor: ->\n {\n @_$values,\n @_$valueHolder,\n @_$defaultValues\n } = @_getConfig()\n @_setValueHolderAttribute()\n @_setValueHolderValue()\n\n _onMutations: ->\n @_constructor()\n\n _setValueHolderValue: ->\n values = []\n @_$values.forEach ($value, index) =>\n if $value.checked\n if $value.hasAttribute @constructor._VALUE_ATTRIBUTE\n value = $value.getAttribute @constructor._VALUE_ATTRIBUTE\n else\n value = @_$defaultValues[index].innerText\n values.push value if value and not values.includes value\n if @_$valueHolder\n @_$valueHolder.value = values.join @constructor._VALUE_SPLITOR\n\n _setValueHolderAttribute: ->\n @_$valueHolder.setAttribute('readonly', '') if @_$valueHolder\n\n @_init: ->\n self = this\n luda.enterClick._add @_ENTER_CLICK_VALUE_HOLDER_SELECTOR\n luda.on 'change', \"#{@_SELECTOR} #{@_VALUE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setValueHolderValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setValueHolderValue()\n # prevent ios device pop out wired navigation pannel\n if /iphone/i.test(navigator.userAgent) or /ipad/i.test(navigator.userAgent)\n luda.on 'focusin', @_ENTER_CLICK_VALUE_HOLDER_SELECTOR, (e) ->\n this.blur()\n this.classList.add luda.focus._CSS_CLASS","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'tab'\n\n @_SELECTOR: '.tab'\n @_PANE_SELECTOR: '.tab-pane'\n @_INDICATOR_SELECTOR: '.tab-indicators .btn-radio input[type=radio]'\n @_PANE_ACTIVE_CSS_CLASS: 'tab-pane-active'\n @_ACTIVE_INDEX: 0\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n subtree: true\n \n # public\n active: (index) ->\n if @_$panes.length\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$panes.length - 1\n @_activeIndex = index\n @_active(activedIndex)\n\n # private\n _getConfig: ->\n _$panes = luda.$unnested \\\n @constructor._PANE_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATOR_SELECTOR, @_$component, @constructor._SELECTOR\n _activeIndex = @constructor._ACTIVE_INDEX\n _$indicators.some ($indicator, index) ->\n if $indicator.checked\n _activeIndex = index\n true\n {_$panes, _$indicators, _activeIndex}\n\n _constructor: ->\n {\n @_$panes,\n @_$indicators,\n @_activeIndex\n } = @_getConfig()\n @_active()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _active: (activedIndex) ->\n @_$panes.forEach ($pane, index) =>\n if index is @_activeIndex\n $pane.classList.add @constructor._PANE_ACTIVE_CSS_CLASS\n luda.dispatch($pane, @constructor._ACTIVED_EVENT_TYPE, index)\n else\n $pane.classList.remove @constructor._PANE_ACTIVE_CSS_CLASS\n if index is activedIndex\n luda.dispatch($pane, @constructor._DEACTIVED_EVENT_TYPE, index)\n @_setIndicatorsState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n if index is @_activeIndex\n $indicator.setAttribute 'checked', ''\n else\n $indicator.removeAttribute 'checked'\n\n # static private\n @_init: ->\n self = this\n luda.on 'change', @_INDICATOR_SELECTOR, (e) ->\n if this.checked\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this"],"names":[],"mappings":";;;;;;;;;;;EAAA,IAAA;;EAAA,GAAA,GAAM,CAAC;IACL,IAAG,OAAO,QAAP,KAAqB,WAAxB;MACE,IAAiB,OAAO,MAAP,KAAmB,WAApC;EAAA,aAAO,OAAP;;MACA,IAAiB,OAAO,MAAP,KAAmB,WAApC;EAAA,aAAO,OAAP;OAFF;;IAGA,MAAM,IAAI,KAAJ,CAAU,kCAAV;EAJD,CAAD;;EASN,IAAO,OAAO,GAAG,CAAC,IAAX,KAAmB,UAA1B;IACE,GAAG,CAAC,IAAJ,GAAW,SAAC,SAAD;EACT,QAAA,SAAA,EAAA,IAAA,EAAA;MAAA,IAAA,CAAuD,SAAvD;QAAA,MAAM,IAAI,KAAJ,CAAU,+BAAV,EAAN;;MACA,IAAA,CAAO,CAAC,QAAD,EAAW,UAAX,CAAsB,CAAC,QAAvB,CAAgC,OAAO,SAAvC,CAAP;QACE,MAAM,IAAI,KAAJ,CAAU,8CAAV,EADR;;MAEA,IAAG,SAAS,CAAC,cAAV,CAAyB,QAAzB,CAAH;QACE,IAAO,OAAO,SAAS,CAAC,MAAjB,KAA2B,QAAlC;UACE,MAAM,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AAC,CAAA,MAAJ,CAAW,QAAX;;IACtB,MAAC,CAAA,qBAAD,GAAwB,CAAA,EAAG,MAAC,CAAA,MAAJ,CAAW,UAAX;;IAExB,MAAC,CAAA,eAAD,GACE;MAAA,SAAA,EAAW,IAAX;MACA,OAAA,EAAS;;;;;eAdb;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
* Luda 0.1.
|
2
|
+
* Luda 0.1.8 | https://luda.dev
|
3
3
|
* Copyright 2018 oatw | https://oatw.blog
|
4
4
|
* MIT license | http://opensource.org/licenses/MIT
|
5
5
|
*/
|
6
|
-
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory():typeof define==="function"&&define.amd?define(factory):factory()})(this,function(){"use strict";var ENV;ENV=function(){if(typeof document!=="undefined"){if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}}throw new Error("Unsupported runtime environment.")}();if(typeof ENV.luda!=="function"){ENV.luda=function(installer){var installed,name,property;if(!installer){throw new Error("Installer cannot be detected.")}if(!["object","function"].includes(typeof installer)){throw new Error("Installer must be object, array or function.")}if(installer.hasOwnProperty("_SCOPE")){if(typeof installer._SCOPE!=="string"){throw new Error("_SCOPE must be string")}return ENV.luda._install(installer._SCOPE,installer)}if(installer instanceof Array||typeof installer==="function"){throw new Error("Unscoped installer must be object.")}installed={};for(name in installer){property=installer[name];installed[name]=ENV.luda._install(name,property)}return installed};ENV.luda._install=function(namespace,installer){var installedInstaller,installedName,ref;if(ENV.luda[namespace]){console.warn(`Namespace ${namespace} is ocupied, sikp installation.`);return ENV.luda[namespace]}ref=ENV.luda;for(installedName in ref){installedInstaller=ref[installedName];if(installer===installedInstaller){console.warn(`Installer is installed with name ${installedName}, skip installation.`);return ENV.luda[installedName]}}if(installer._install){if(typeof installer._install==="function"){return ENV.luda[namespace]=installer._install()}return ENV.luda[namespace]=installer._install}return ENV.luda[namespace]=installer}}luda({KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_TAB:9,KEY_ESC:27,KEY_ENTER:13});luda({$child:function(selector,$ancestor){if(!$ancestor){$ancestor=document}return $ancestor.querySelector(selector)},$children:function(selector,$ancestor){var $descendant,descendants;if(!$ancestor){$ancestor=document}$descendant=this.$child(selector,$ancestor);if($descendant){return descendants=Array.from($ancestor.querySelectorAll(selector))}else{return descendants=[]}},$unnested:function(selector,$ancestor,ancestorSelector){var descendants;descendants=this.$children(selector,$ancestor);return descendants.filter($descendant=>{if(this.$parent(ancestorSelector,$descendant)===$ancestor){return $descendant}})},$parent:function(selector,$descendant){var $ancestor;$ancestor=$descendant.parentNode;if($ancestor){if($ancestor.matches&&$ancestor.matches(selector)){return $ancestor}else{return this.$parent(selector,$ancestor)}}},$parents:function(selector,$descendant,_ancestors){var $ancestor;$ancestor=this.$parent(selector,$descendant);if(!_ancestors){_ancestors=[]}if($ancestor){_ancestors.push($ancestor);return this.$parents(selector,$ancestor,_ancestors)}else{return _ancestors}},$after:function($node,$target){var $parent;$parent=$target.parentNode;if($parent.lastChild===$target){return $parent.appendChild($node)}else{return $parent.insertBefore($node,$target.nextSibling)}},$prepend:function($node,$target){if($target.firstChild){return $target.insertBefore($node,$target.firstChild)}else{return $target.appendChild($node)}},reflow:function($element){return $element.offsetHeight}});var splice=[].splice;luda({_SWIPE_DISTANCE:10,_EVENT_TYPE_PREFIX:"luda",_SWIPE_LEFT:"swipeleft",_SWIPE_RIGHT:"swiperight",_SWIPE_UP:"swipeup",_SWIPE_DOWN:"swipedown",_SWIPE_LEFT_OR_UP:"swipeleft or swipeup",_SWIPE_RIGHT_OR_DOWN:"swiperight or swipedown",_DOC_READY:"docready",_FORM_RESET:"reset",eventPath:function(event){var path;if(event.composedPath){return path=event.composedPath()}else if(event.path){return path=event.path}else{return path=[event.target].concat(luda.$parents("*",event.target))}},on:function(event,...selector){var handler,ref;ref=selector,[...selector]=ref,[handler]=splice.call(selector,-1);switch(event){case this._DOC_READY:return this._onDocReady(handler);case this._FORM_RESET:return this._onReset(selector[0],handler);case this._SWIPE_LEFT:case this._SWIPE_RIGHT:case this._SWIPE_UP:case this._SWIPE_DOWN:case this._SWIPE_LEFT_OR_UP:case this._SWIPE_RIGHT_OR_DOWN:return this._onSwipe(event,selector[0],handler);default:return this._on(event,selector[0],handler)}},onOpposite:function(event,selector,handler){var _self;_self=this;return document.addEventListener(event,function(e){var trigger;trigger=_self.eventPath(e).every(function($element){return!$element.matches||!$element.matches(selector)});if(trigger){return handler(e)}})},dispatch:function($target,type,detail,options={}){var evt;if(typeof options.bubbles!=="boolean"){options.bubbles=true}if(typeof options.cancelable!=="boolean"){options.cancelable=true}if(typeof options.composed!=="boolean"){options.composed=true}evt=new Event(`${this._EVENT_TYPE_PREFIX}:${type}`,options);evt.detail=detail;$target.dispatchEvent(evt);return evt},_onDocReady:function(handler){if(document.readyState==="loading"){return document.addEventListener("DOMContentLoaded",handler)}else{return handler()}},_onReset:function(selector,handler){return document.addEventListener("reset",function(e){if(selector!=null){return luda.$children(selector,e.target).forEach(function($element){return handler.bind($element)(e)})}else{return handler(e)}})},_onSwipe:function(event,selector,handler){var $touchStartElement,_self,touchStartE,touchStartX,touchStartY,watch;_self=this;watch=false;$touchStartElement=document;touchStartE=null;touchStartX=0;touchStartY=0;document.addEventListener("touchstart",function(e){if(e.touches.length===1){touchStartX=e.touches[0].screenX;touchStartY=e.touches[0].screenY;if(selector!=null){return _self.eventPath(e).some(function($element){if($element.matches&&$element.matches(selector)){$touchStartElement=$element;touchStartE=e;watch=true;return true}})}else{return watch=true}}});return document.addEventListener("touchmove",function(e){var eventX,eventXOrY,eventY,touchDistanceX,touchDistanceY;if(watch&&e.touches.length===1){touchDistanceX=e.touches[0].screenX-touchStartX;touchDistanceY=e.touches[0].screenY-touchStartY;eventX=void 0;eventY=void 0;eventXOrY=void 0;if(Math.abs(touchDistanceX)>=_self._SWIPE_DISTANCE){if(touchDistanceX>0){eventX=_self._SWIPE_RIGHT}else{eventX=_self._SWIPE_LEFT}}if(Math.abs(touchDistanceY)>=_self._SWIPE_DISTANCE){if(touchDistanceY>0){eventY=_self._SWIPE_DOWN}else{eventY=_self._SWIPE_UP}}if(eventX===_self._SWIPE_LEFT||eventY===_self._SWIPE_UP){eventXOrY=_self._SWIPE_LEFT_OR_UP}if(eventX===_self._SWIPE_RIGHT||eventY===_self._SWIPE_DOWN){eventXOrY=_self._SWIPE_RIGHT_OR_DOWN}if(eventX!=null&&eventX===event||eventY!=null&&eventY===event||eventXOrY===event){if(selector!=null){return _self.eventPath(e).some(function($element){if($element===$touchStartElement){watch=false;handler.bind($element)(touchStartE,e);return true}})}else{watch=false;return handler(touchStartE,e)}}}})},_on:function(event,selector,handler){var _self;if(selector===window){return window.addEventListener(event,function(e){return handler(e)})}else{_self=this;return document.addEventListener(event,function(e){if(selector!=null){return _self.eventPath(e).some(function($element){if($element.matches&&$element.matches(selector)){handler.bind($element)(e);return true}})}else{return handler(e)}})}}});luda({except:function(element,arr){if(arr.includes(element)){return arr.splice(arr.indexOf(element),1)}}});var Singleton;luda(Singleton=function(){class Singleton{static active(){return this._actived=true}static deactive(){return this._actived=false}static _add(selector){if(typeof selector!=="string"){throw new Error(this._SELECTOR_INVALID_ERROR)}if(!this._SELECTORS.includes(selector)){this._SELECTORS.push(selector)}return this._mergeSelectors()}static _remove(selector){if(typeof selector!=="string"){throw new Error(this._SELECTOR_INVALID_ERROR)}luda.except(selector,this._SELECTORS);return this._mergeSelectors()}static _mergeSelectors(){return this._selector=this._SELECTORS.join(",")}static _install(){var exposed;if(this===Singleton){return this}if(!this.hasOwnProperty("_SELECTORS")){this._SELECTORS=[]}this._mergeSelectors();if(typeof this._init==="function"){exposed=this._init()}if(exposed){return exposed}else{return this}}}Singleton._SCOPE="Singleton";Singleton._SELECTOR_INVALID_ERROR="@param selector must be a css selector string";Singleton._SELECTORS=[];Singleton._selector="";Singleton._actived=true;return Singleton}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static _init(){var self;self=this;return luda.on("keydown",function(e){if(self._actived&&e.keyCode===luda.KEY_ENTER&&e.target.matches(self._selector)){e.preventDefault();return setTimeout(function(){return e.target.click()})}})}};_Class._SCOPE="enterClick";_Class._SELECTORS=["input[type=checkbox]","input[type=radio]","[tabindex]"];return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static _removeFocusClassExcept($exception){return Array.from(this._$focus).forEach($focus=>{if($focus!==$exception){return $focus.classList.remove(this._CSS_CLASS)}})}static _addFocusClassExceptHtmlAndBody($target){if($target!==document.body&&$target!==document.documentElement){return $target.classList.add(this._CSS_CLASS)}}static _changeFocusStateOnKeyEvent(e){if(this._actived){this._removeFocusClassExcept(e.target);return this._addFocusClassExceptHtmlAndBody(e.target)}}static _changeFocusStateOnMouseDownEvent(e){var target;if(this._actived){if(e.target.matches(this._PARENT_FOCUS_CHILDREN_SELECTOR)){target=luda.$parent(this._PARENT_FOCUS_SELECTOR,e.target)}else{target=e.target}if(target.matches(this._selector)){this._removeFocusClassExcept(target);return this._addFocusClassExceptHtmlAndBody(target)}else{return this._removeFocusClassExcept()}}}static _setElementPrototype(){var blur,focus,self;focus=HTMLElement.prototype.focus;blur=HTMLElement.prototype.blur;self=this;HTMLElement.prototype.focus=function(){focus.apply(this,arguments);if(self._actived&&document.activeElement===this){self._removeFocusClassExcept(this);return self._addFocusClassExceptHtmlAndBody(this)}};return HTMLElement.prototype.blur=function(){blur.apply(this,arguments);if(self._actived){return this.classList.remove(self._CSS_CLASS)}}}static _init(){this._setElementPrototype();luda.on("keydown",this._changeFocusStateOnKeyEvent.bind(this));luda.on("keyup",this._changeFocusStateOnKeyEvent.bind(this));luda.on("mousedown",this._changeFocusStateOnMouseDownEvent.bind(this));luda.on("touchstart",this._TOUCHSTART_FOCUS_SELECTOR,this._changeFocusStateOnMouseDownEvent.bind(this));return luda.on("focusin",this._changeFocusStateOnMouseDownEvent.bind(this))}};_Class._SCOPE="focus";_Class._CSS_CLASS="focus";_Class._SELECTORS=["select","textarea",":not(.btn-check):not(.btn-radio):not(.btn-file) > input:not([type=button]):not([type=submit]):not([type=reset])"];_Class._TOUCHSTART_FOCUS_SELECTOR="input[type=range]";_Class._PARENT_FOCUS_SELECTOR="select[multiple]";_Class._PARENT_FOCUS_CHILDREN_SELECTOR=`${_Class._PARENT_FOCUS_SELECTOR} *`;_Class._$focus=document.getElementsByClassName(_Class._CSS_CLASS);return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static _querySameName$radios($radio){var $inputs,selector;if($radio.name){selector=`${this._selector}[name=${$radio.name}]`}else{selector=this._selector}$inputs=luda.$children(selector);return $inputs.filter(function($input){return $input.tabIndex>=0})}static _query$prev$next($radio){var $next,$prev,$sameNameRadios,radioIndex;$sameNameRadios=this._querySameName$radios($radio);radioIndex=$sameNameRadios.indexOf($radio);$prev=$sameNameRadios[radioIndex-1];$next=$sameNameRadios[radioIndex+1];return{$prev:$prev,$next:$next}}static _init(){var self;self=this;return luda.on("keydown",function(e){var $next,$prev;if(self._actived&&e.keyCode===luda.KEY_TAB&&e.target.nodeName.toUpperCase()==="INPUT"&&e.target.type==="radio"){if(e.shiftKey){if($prev=self._query$prev$next(e.target).$prev){e.preventDefault();return $prev.focus()}}else{if($next=self._query$prev$next(e.target).$next){e.preventDefault();return $next.focus()}}}})}};_Class._SCOPE="radioTab";_Class._SELECTORS=["input[type=radio]:not([disabled])"];return _Class}.call(this));var Component;luda(Component=function(){class Component{_hasDescendant(descendant){if(this._children.length&&descendant){if(this._children.includes(descendant)){return true}return this._children.some(function(child){return child._hasDescendant(descendant)})}else{return false}}_observe(){this._observer=new MutationObserver(this._onMutations.bind(this));return this._observer.observe(this._$component,this.constructor._observerConfig)}_disconnect(){this._observer.disconnect();return this._observer=null}static create($component){var $family,componentIsElementInstance,instance,parent;componentIsElementInstance=$component instanceof Element;if(!componentIsElementInstance){throw new Error(this._$COMPONENT_INVALID_ERROR)}$family=this._query$family($component);instance=this.query($component);if($family._$parent){if(parent=this.query($family._$parent)){if(!instance){this._instances.push(instance=this._createInstance($component))}if(instance._parent!==parent){parent._children.push(instance)&&(instance._parent=parent)}$family._$children.forEach($child=>{return this.create($child)});return instance}else{this.create($family._$parent);return this.query($component)}}else{if(!instance){this._instances.push(instance=this._createInstance($component))}$family._$children.forEach($child=>{return this.create($child)});return instance}}static destroy(instance$component){var attribute,instance,results,value;instance=this.query(instance$component);if(instance){if(instance._observer){instance._disconnect()}if(instance._destroy){instance._destroy()}while(instance._children.length){this.destroy(instance._children[0])}if(instance._parent){luda.except(instance,instance._parent._children)}luda.except(instance,this._instances);results=[];for(attribute in instance){value=instance[attribute];results.push(instance[attribute]=null)}return results}}static query(instance$component){var instance;instance=null;if(instance$component instanceof this&&this._instances.includes(instance$component)){instance=instance$component}else if(instance$component instanceof Element){this._instances.some(function(inited){if(inited._$component===instance$component){instance=inited;return true}})}return instance}static _query$family($component){var _$children,_$parent;_$parent=null;_$children=[];if(this._SELECTOR){_$parent=luda.$parent(this._SELECTOR,$component);_$children=luda.$unnested(this._SELECTOR,$component,this._SELECTOR)}return{_$parent:_$parent,_$children:_$children}}static _createInstance($component){var instance;instance=new this;instance._$component=$component;instance._parent=null;instance._children=[];instance._observer=null;if(instance._constructor){instance._constructor()}if(!(instance._observer&&instance._onMutations&&this._observerConfig)){instance._observe()}return instance}static _observe(classObj){if(!Component._observer){Component._observer=new MutationObserver(function(mutations){return mutations.forEach(function(mutation){var $addedNodes,$removedNodes;$removedNodes=Array.from(mutation.removedNodes);$addedNodes=Array.from(mutation.addedNodes);$removedNodes.forEach(function($node){if($node instanceof Element){return Component._Observed.forEach(function(Observed){var $destroies;if($node.matches(Observed._SELECTOR)){return Observed.destroy($node)}else{$destroies=luda.$children(Observed._SELECTOR,$node);return $destroies.forEach(function($destroy){return Observed.destroy($destroy)})}})}});return $addedNodes.forEach(function($node){if($node instanceof Element){return Component._Observed.forEach(function(Observed){var $creates;if($node.matches(Observed._SELECTOR)){return Observed.create($node)}else{$creates=luda.$children(Observed._SELECTOR,$node);return $creates.forEach(function($create){return Observed.create($create)})}})}})})});Component._observer.observe(document.documentElement,Component._observerConfig)}if(!Component._Observed.includes(classObj)){return Component._Observed.push(classObj)}}static _install(){var exposed,self;self=this;if(this===Component){return this}if(!(this._SELECTOR||typeof this._SELECTOR!=="string")){throw new Error(this._COMPONENT_NO_SELECTOR_ERROR)}if(!this.hasOwnProperty("_instances")){this._instances=[]}if(typeof this._init==="function"){exposed=this._init()}luda.on(luda._DOC_READY,function(){luda.$children(self._SELECTOR).forEach(function($component){return self.create($component)});return Component._observe(self)});if(exposed){return exposed}else{return this}}}Component._SCOPE="Component";Component._COMPONENT_NO_SELECTOR_ERROR="Extended component must has a css selector";Component._$COMPONENT_INVALID_ERROR="@param $component must be an instance of Element";Component._SELECTOR="";Component._instances=[];Component._Observed=[];Component._observer=null;Component._observerConfig={childList:true,subtree:true};return Component}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{_getConfig(){var _isReadonly,_originalTabIndex,readonly;readonly=this._$component.getAttribute(this.constructor._READONLY_ATTRIBUTE);_isReadonly=readonly!==this.constructor._READONLY_FALSE_VALUE;_originalTabIndex=this._$component.tabIndex;return{_isReadonly:_isReadonly,_originalTabIndex:_originalTabIndex}}_constructor(){({_isReadonly:this._isReadonly,_originalTabIndex:this._originalTabIndex}=this._getConfig());return this._setTabIndex()}_onMutations(){return this._constructor()}_setTabIndex(){if(this._isReadonly){return this._$component.tabIndex=-1}else{return this._$component.tabIndex=this._originalTabIndex}}};_Class._SCOPE="readonly";_Class._READONLY_ATTRIBUTE="data-readonly";_Class._READONLY_FALSE_VALUE="false";_Class._SELECTOR=`[${_Class._READONLY_ATTRIBUTE}]`;_Class._observerConfig={attributes:true,attributeFilter:[_Class._READONLY_ATTRIBUTE]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static active(name$target){return this._query$targets(name$target).forEach($target=>{$target.classList.add(this._ACTIVE_CSS_CLASS);return luda.dispatch($target,this._ACTIVED_EVENT_TYPE)})}static deactive(name$target){return this._query$targets(name$target).forEach($target=>{$target.classList.remove(this._ACTIVE_CSS_CLASS);return luda.dispatch($target,this._DEACTIVED_EVENT_TYPE)})}static toggle(name$target){return this._query$targets(name$target).forEach($target=>{if($target.classList.contains(this._ACTIVE_CSS_CLASS)){return this.deactive($target)}else{return this.active($target)}})}static _query$targets(name$target){if(name$target instanceof Element){return[name$target]}else{return luda.$children(`[${this._TOGGLE_TARGET_ATTRIBUTE}=${name$target}]`)}}static _init(){var self;self=this;return luda.on("click",this._selector,function(e){var toggleChecked;toggleChecked=false;return luda.eventPath(e).some(function($path){var $toggle,toggleName;if($path instanceof Element){if($path.hasAttribute(self._TOGGLE_ATTRIBUTE)||$path.hasAttribute(self._TOGGLE_FOR_ATTRIBUTE)){if(toggleName=$path.getAttribute(self._TOGGLE_FOR_ATTRIBUTE)){self.toggle(toggleName);toggleChecked=true}if($path.hasAttribute(self._TOGGLE_ATTRIBUTE)){if($path.hasAttribute(self._TOGGLE_TARGET_ATTRIBUTE)){$toggle=$path}else{$toggle=luda.$parent(`[${self._TOGGLE_TARGET_ATTRIBUTE}]`,$path)}if($toggle){self.toggle($toggle);return toggleChecked=true}}}else if($path.hasAttribute(self._NONE_TOGGLE_ATTRIBUTE)){return toggleChecked=true}}})})}};_Class._SCOPE="toggle";_Class._TOGGLE_TARGET_ATTRIBUTE="data-toggle-target";_Class._TOGGLE_ATTRIBUTE="data-toggle";_Class._TOGGLE_FOR_ATTRIBUTE="data-toggle-for";_Class._NONE_TOGGLE_ATTRIBUTE="data-none-toggle";_Class._ACTIVE_CSS_CLASS="toggle-active";_Class._SELECTORS=[`[${_Class._TOGGLE_FOR_ATTRIBUTE}]`,`[${_Class._TOGGLE_ATTRIBUTE}]`];_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{_getConfig(){var _$file,_$simulator;_$file=luda.$child(this.constructor._FILE_SELECTOR,this._$component);_$simulator=luda.$child(this.constructor._SIMULATOR_SELECTOR,this._$component);return{_$file:_$file,_$simulator:_$simulator}}_constructor(){({_$file:this._$file,_$simulator:this._$simulator}=this._getConfig());return this._init()}_onMutations(){return this._constructor()}_insertSimulator(){this._$simulator=document.createElement("input");this._$simulator.tabIndex=-1;return luda.$after(this._$simulator,this._$file)}_setPlaceholderValue(){return this._$simulator.placeholder=this._$file.getAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)}_setSimulatorValue(){var values;values=[];Array.from(this._$file.files).map(function(file){return values.push(file.name)});if(values.length){return this._$simulator.value=values.join(this.constructor._VALUE_SPLITOR)}else if(this._$file.hasAttribute(this.constructor._VALUE_ATTRIBUTE)){return this._$simulator.value=this._$file.getAttribute(this.constructor._VALUE_ATTRIBUTE)}}_init(){if(this._$file){if(!this._$simulator){this._insertSimulator()}if(this._$file.hasAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)){this._setPlaceholderValue()}return this._setSimulatorValue()}}static _init(){var self;self=this;luda.on("change",`${this._SELECTOR} ${this._FILE_SELECTOR}`,function(e){return self.query(luda.$parent(self._SELECTOR,this))._setSimulatorValue()});return luda.on(luda._FORM_RESET,this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this)._setSimulatorValue()})})}};_Class._SCOPE="fmFile";_Class._VALUE_SPLITOR=" ";_Class._SELECTOR=".fm-file";_Class._FILE_SELECTOR="input[type=file]";_Class._SIMULATOR_SELECTOR="input:not([type=file])";_Class._PLACEHOLDER_ATTRIBUTE="placeholder";_Class._VALUE_ATTRIBUTE="value";_Class._observerConfig={childList:true,subtree:true};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{select(indexOrIndexArray){var selectedIndexes;if(this._$select.multiple){if(this._$multipleSelectPlaceholder){selectedIndexes=indexOrIndexArray}else{selectedIndexes=indexOrIndexArray.map(function(index){return index+1})}Array.from(this._$select.options).forEach(function($option,index){return $option.selected=selectedIndexes.includes(index)});return this._markSelectedOption()}else{this._$select.selectedIndex=selectedIndex;this._setSingleSelectSimulatorValue();return this._markSelectedOption()}}_getConfig(){var _$defaultSelectedOptions,_$multipleSelectPlaceholder,_$select,_$singleSelectSimulator,_defaultSelectedOptionMarked;_$select=luda.$child(this.constructor._SELECT_SELECTOR,this._$component);_$singleSelectSimulator=luda.$child(this.constructor._SINGLE_SELECT_SIMULATOR_SELECTOR,this._$component);_$multipleSelectPlaceholder=luda.$child(`.${this.constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS}`,this._$component);_$defaultSelectedOptions=luda.$children(`[${this.constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE}]`,this._$component);_defaultSelectedOptionMarked=this._$component.hasAttribute(this.constructor._INITED_ATTRIBUTE);return{_$select:_$select,_$singleSelectSimulator:_$singleSelectSimulator,_$multipleSelectPlaceholder:_$multipleSelectPlaceholder,_$defaultSelectedOptions:_$defaultSelectedOptions,_defaultSelectedOptionMarked:_defaultSelectedOptionMarked}}_constructor(){({_$select:this._$select,_$singleSelectSimulator:this._$singleSelectSimulator,_$multipleSelectPlaceholder:this._$multipleSelectPlaceholder,_$defaultSelectedOptions:this._$defaultSelectedOptions,_defaultSelectedOptionMarked:this._defaultSelectedOptionMarked}=this._getConfig());if(this._$select){if(this._$select.multiple){return this._initMultipleSelect()}else{return this._initSingleSelect()}}}_onMutations(){return this._constructor()}_markSelectedOption(){if(this._observer){this._disconnect()}Array.from(this._$select.options).forEach(function($option){if($option.selected){return $option.setAttribute("selected","selected")}else{return $option.removeAttribute("selected")}});if(!this._observer){return this._observe()}}_markDefaultSelectedOption(){this._$component.setAttribute(this.constructor._INITED_ATTRIBUTE,"");return Array.from(this._$select.options).forEach($option=>{if($option.selected){return $option.setAttribute(this.constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE,"")}})}_setSingleSelectedDefaultSelectedOption(){var hasSelected;hasSelected=Array.from(this._$select.options).some(function($option){return $option.getAttribute("selected")==="selected"});if(!hasSelected){return this._$select.selectedIndex=-1}}_insertSingleSelectSimulator(){this._$singleSelectSimulator=document.createElement("input");this._$singleSelectSimulator.tabIndex=-1;return luda.$after(this._$singleSelectSimulator,this._$select)}_setSingleSelectPlaceholderValue(){return this._$singleSelectSimulator.placeholder=this._$select.getAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)}_setSingleSelectSimulatorValue(){var $selectedOption;if($selectedOption=this._$select.options[this._$select.selectedIndex]){return this._$singleSelectSimulator.value=$selectedOption.innerText}else{return this._$singleSelectSimulator.value=""}}_initSingleSelect(){if(!this._$singleSelectSimulator){this._insertSingleSelectSimulator()}if(this._$select.hasAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)){this._setSingleSelectedDefaultSelectedOption();this._setSingleSelectPlaceholderValue()}if(!this._defaultSelectedOptionMarked){this._markDefaultSelectedOption()}this._setSingleSelectSimulatorValue();return this._markSelectedOption()}_insertMultipleSelectBlankOption(){this._$multipleSelectPlaceholder=document.createElement("option");this._$multipleSelectPlaceholder.className=this.constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS;this._$multipleSelectPlaceholder.disabled=true;return luda.$prepend(this._$multipleSelectPlaceholder,this._$select)}_setMultipleSelectPlaceholderValue(){return this._$multipleSelectPlaceholder.innerText=this._$select.getAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)}_initMultipleSelect(){if(!this._$multipleSelectPlaceholder){if(this._$select.hasAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)){this._insertMultipleSelectBlankOption();this._setMultipleSelectPlaceholderValue()}}if(!this._defaultSelectedOptionMarked){return this._markDefaultSelectedOption()}}_reset(){if(this._$select){Array.from(this._$select.options).forEach($option=>{return $option.selected=this._$defaultSelectedOptions.includes($option)});if(!this._$select.multiple){this._setSingleSelectSimulatorValue()}return this._markSelectedOption()}}static _init(){var self;self=this;luda.on("change",`${this._SELECTOR} ${this._SELECT_SELECTOR}`,function(e){var instance;instance=self.query(luda.$parent(self._SELECTOR,this));if(!this.multiple){instance._setSingleSelectSimulatorValue()}return instance._markSelectedOption()});return luda.on(luda._FORM_RESET,this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this)._reset()})})}};_Class._SCOPE="fmSelect";_Class._SELECTOR=".fm-select";_Class._SELECT_SELECTOR="select";_Class._SINGLE_SELECT_SIMULATOR_SELECTOR="input";_Class._PLACEHOLDER_ATTRIBUTE="placeholder";_Class._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS="fm-select-multiple-placeholder";_Class._DEFAULT_SELECTED_OPTION_ATTRIBUTE="data-fm-select-default-selected";_Class._INITED_ATTRIBUTE="data-fm-select-inited";_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:["selected"]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{active(index){var action,activedIndex;if(this._$items.length&&!this._transiting){activedIndex=this._activeIndex;if(index!=null&&index!==this._activeIndex&&(0<=index&&index<=this._$items.length-1)){this._transiting=true;this._activeIndex=index;action=index<activedIndex?"_slidePrev":"_slideNext";return this[action](this._$items[activedIndex],activedIndex)}}}next(){var activedIndex,index;if(this._$items.length&&!this._transiting){activedIndex=this._activeIndex;index=activedIndex+1;if(index>this._$items.length-1){if(!this._wrap){return}index=0}this._transiting=true;this._activeIndex=index;this._slideNext(this._$items[activedIndex],activedIndex);this._playTimeStamp=Date.now();return this._pausedRemainTime=this._interval}}prev(){var activedIndex,index;if(this._$items.length&&!this._transiting){activedIndex=this._activeIndex;index=activedIndex-1;if(index<0){if(!this._wrap){return}index=this._$items.length-1}this._transiting=true;this._activeIndex=index;this._slidePrev(this._$items[activedIndex],activedIndex);this._playTimeStamp=Date.now();return this._pausedRemainTime=this._interval}}pause(){if(this._intervaling!=null){clearInterval(this._intervaling);this._intervaling=null;return this._pausedRemainTime=this._pausedRemainTime-(Date.now()-this._playTimeStamp)}}play(){var execute;if(this._interval&&this._$items.length>1){this._playTimeStamp=Date.now();this.pause();execute=(()=>{this.next();return this._intervaling=setInterval(this.next.bind(this),this._interval)});return this._intervaling=setTimeout(execute,this._pausedRemainTime)}}_getConfig(){var _$indicators,_$items,_$nextControl,_$prevControl,_activeIndex,_interval,_wrap;_$items=luda.$unnested(this.constructor._ITEMS_SELECTOR,this._$component,this.constructor._SELECTOR);_$indicators=luda.$unnested(this.constructor._INDICATORS_SELECTOR,this._$component,this.constructor._SELECTOR);_$prevControl=luda.$child(this.constructor._PREV_CONTROL_SELECTOR,this._$component);_$nextControl=luda.$child(this.constructor._NEXT_CONTROL_SELECTOR,this._$component);_activeIndex=_$items.indexOf(luda.$child(`.${this.constructor._ITEM_ACTIVE_CSS_CLASS}`,this._$component));if(_activeIndex===-1){_activeIndex=this.constructor._ACTIVE_INDEX}_interval=this._$component.getAttribute(this.constructor._INTERVAL_ATTRIBUTE);if(_interval===this.constructor._FALSE){_interval=false}else{_interval=Math.abs(parseInt(_interval,10))||this.constructor._INTERVAL}_wrap=this._$component.getAttribute(this.constructor._WRAP_ATTRIBUTE);_wrap=_wrap===this.constructor._FALSE?false:this.constructor._WRAP;return{_$items:_$items,_$indicators:_$indicators,_$prevControl:_$prevControl,_$nextControl:_$nextControl,_activeIndex:_activeIndex,_interval:_interval,_wrap:_wrap}}_constructor(){({_$items:this._$items,_$indicators:this._$indicators,_$prevControl:this._$prevControl,_$nextControl:this._$nextControl,_activeIndex:this._activeIndex,_interval:this._interval,_wrap:this._wrap}=this._getConfig());this._transiting=false;this._intervaling=null;this._playTimeStamp=0;this._pausedRemainTime=this._interval;this._layout();return this.play()}_onMutations(mutations){({_$items:this._$items,_$indicators:this._$indicators,_$prevControl:this._$prevControl,_$nextControl:this._$nextControl,_activeIndex:this._activeIndex,_interval:this._interval,_wrap:this._wrap}=this._getConfig());this._setIndicatorsState();this._setDirectionControlState();return this.play()}_destroy(){return this.pause()}_layout(){this._$items.forEach(($item,index)=>{$item.style.transition="none";if(index>this._activeIndex){$item.classList.add(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS)}else if(index<this._activeIndex){$item.classList.add(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS)}else{luda.dispatch($item,this.constructor._ACTIVED_EVENT_TYPE,index);$item.classList.add(this.constructor._ITEM_ACTIVE_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS)}luda.reflow($item);return $item.style.transition=""});this._setIndicatorsState();return this._setDirectionControlState()}_slideNext($activedItem,activedIndex){var $item;if(this._$items.length>1){$item=this._$items[this._activeIndex];luda.dispatch($item,this.constructor._ACTIVE_EVENT_TYPE,this._activeIndex);$item.style.transition="none";$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.add(this.constructor._ITEM_NEXT_CSS_CLASS);luda.reflow($item);$item.style.transition="";$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.add(this.constructor._ITEM_ACTIVE_CSS_CLASS);luda.dispatch($activedItem,this.constructor._DEACTIVE_EVENT_TYPE,activedIndex);$activedItem.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS);$activedItem.classList.add(this.constructor._ITEM_PREV_CSS_CLASS);this._setIndicatorsState();return this._setDirectionControlState()}}_slidePrev($activedItem,activedIndex){var $item;if(this._$items.length>1){$item=this._$items[this._activeIndex];luda.dispatch($item,this.constructor._ACTIVE_EVENT_TYPE,this._activeIndex);$item.style.transition="none";$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.add(this.constructor._ITEM_PREV_CSS_CLASS);luda.reflow($item);$item.style.transition="";$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.add(this.constructor._ITEM_ACTIVE_CSS_CLASS);luda.dispatch($activedItem,this.constructor._DEACTIVE_EVENT_TYPE,activedIndex);$activedItem.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS);$activedItem.classList.add(this.constructor._ITEM_NEXT_CSS_CLASS);this._setIndicatorsState();return this._setDirectionControlState()}}_setIndicatorsState(){return this._$indicators.forEach(($indicator,index)=>{return $indicator.disabled=index===this._activeIndex})}_setDirectionControlState(){var ref,ref1,ref2,ref3;if(this._$items.length<=1){return(ref=this._$prevControl)!=null?ref.disabled=(ref1=this._$nextControl)!=null?ref1.disabled=true:void 0:void 0}else{if((ref2=this._$prevControl)!=null){ref2.disabled=this._activeIndex===0&&!this._wrap}return(ref3=this._$nextControl)!=null?ref3.disabled=this._activeIndex===this._$items.length-1&&!this._wrap:void 0}}static _init(){var self;self=this;luda.on("transitionend",this._ITEMS_SELECTOR,function(e){var index,instance;instance=self.query(luda.$parent(self._SELECTOR,this));instance._transiting=false;index=instance._$items.indexOf(this);if(this.classList.contains(self._ITEM_ACTIVE_CSS_CLASS)){return luda.dispatch(this,self._ACTIVED_EVENT_TYPE,index)}else{return luda.dispatch(this,self._DEACTIVED_EVENT_TYPE,index)}});luda.on("click",this._INDICATORS_SELECTOR,function(e){var instance;instance=self.query(luda.$parent(self._SELECTOR,this));return instance.active(instance._$indicators.indexOf(this))});luda.on("touchstart",this._SELECTOR,function(e){return self.query(this).pause()});luda.on("touchend",this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this).play()})});luda.on("mouseover",this._SELECTOR,function(e){return self.query(this).pause()});luda.on("mouseout",this._SELECTOR,function(e){return self.query(this).play()});luda.on(luda._SWIPE_LEFT_OR_UP,this._SELECTOR,function(startE,e){return self.query(this).next()});luda.on(luda._SWIPE_RIGHT_OR_DOWN,this._SELECTOR,function(startE,e){return self.query(this).prev()});luda.on("click",this._PREV_CONTROL_SELECTOR,function(e){return self.query(luda.$parent(self._SELECTOR,this)).prev()});return luda.on("click",this._NEXT_CONTROL_SELECTOR,function(e){return self.query(luda.$parent(self._SELECTOR,this)).next()})}};_Class._SCOPE="carousel";_Class._SELECTOR=".carousel";_Class._ITEMS_SELECTOR=".carousel-item";_Class._PREV_CONTROL_SELECTOR=".carousel-prev";_Class._NEXT_CONTROL_SELECTOR=".carousel-next";_Class._INDICATORS_SELECTOR=".carousel-indicators .btn";_Class._INTERVAL_ATTRIBUTE="data-carousel-interval";_Class._WRAP_ATTRIBUTE="data-carousel-wrap";_Class._ITEM_ACTIVE_CSS_CLASS="carousel-item-active";_Class._ITEM_NEXT_CSS_CLASS="carousel-item-next";_Class._ITEM_PREV_CSS_CLASS="carousel-item-prev";_Class._ACTIVE_INDEX=0;_Class._INTERVAL=5e3;_Class._WRAP=true;_Class._FALSE="false";_Class._ACTIVE_EVENT_TYPE=`${_Class._SCOPE}:active`;_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVE_EVENT_TYPE=`${_Class._SCOPE}:deactive`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:[_Class._INTERVAL_ATTRIBUTE,_Class._WRAP_ATTRIBUTE]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{active(){var ref;if(!this._actived()){this._$component.classList.add(this.constructor._ACTIVE_CSS_CLASS);this.constructor._$focused.push(document.activeElement);if((ref=this._parent)!=null){ref.active()}return luda.dispatch(this._$component,this.constructor._ACTIVED_EVENT_TYPE)}}deactive(focus){var ref;if(this._actived()){this._$component.classList.remove(this.constructor._ACTIVE_CSS_CLASS);this._children.forEach(function(child){return child.deactive()});if(focus){if((ref=this.constructor._$focused[this.constructor._$focused.length-1])!=null){ref.focus()}}this.constructor._$focused.splice(this.constructor._$focused.length-1,1);return luda.dispatch(this._$component,this.constructor._DEACTIVED_EVENT_TYPE)}}toggle(focus){if(this._actived()){return this.deactive(focus)}else{return this.active()}}prev(){var focusIndex;if(this._$items.length&&this._actived()){focusIndex=this._$items.indexOf(document.activeElement)-1;if(focusIndex<0){focusIndex=0}return this._$items[focusIndex].focus()}}next(){var focusIndex;if(this._$items.length&&this._actived()){focusIndex=this._$items.indexOf(document.activeElement)+1;if(focusIndex>this._$items.length-1){focusIndex=this._$items.length-1}return this._$items[focusIndex].focus()}}_getConfig(){var _$items,_$menu,_$noneSwitches,_$switches,_isStandalone;_$menu=luda.$child(this.constructor._MENU_SELECTOR,this._$component);_$switches=luda.$unnested(this.constructor._SWITCHES_SELECTOR,this._$component,this.constructor._SELECTOR).concat(luda.$unnested(this.constructor._SWITCHES_SELECTOR,_$menu,this.constructor._MENU_SELECTOR));_$noneSwitches=luda.$unnested(this.constructor._NONE_SWITCHES_SELECTOR,this._$component,this.constructor._SELECTOR).concat(luda.$unnested(this.constructor._NONE_SWITCHES_SELECTOR,_$menu,this.constructor._MENU_SELECTOR));_$items=luda.$unnested(this.constructor._ITEMS_SELECTOR,_$menu,this.constructor._MENU_SELECTOR);_isStandalone=this._$component.hasAttribute(this.constructor._STANDALONE_ATTRIBUTE);return{_$items:_$items,_$switches:_$switches,_$noneSwitches:_$noneSwitches,_isStandalone:_isStandalone}}_constructor(){return({_$items:this._$items,_$switches:this._$switches,_$noneSwitches:this._$noneSwitches,_isStandalone:this._isStandalone}=this._getConfig())}_onMutations(mutations){return this._constructor()}_actived(){return this._$component.classList.contains(this.constructor._ACTIVE_CSS_CLASS)}_deactiveChildrenExcept(exceptions){if(exceptions&&!(exceptions instanceof Array)){exceptions=[exceptions]}if(exceptions){return this._children.forEach(function(child){if(child._actived()&&!exceptions.includes(child)){return child.deactive()}})}else{return this._children.forEach(function(child){if(child._actived()){return child.deactive()}})}}static deactiveExcept(instances$dropdowns){var exceptions;exceptions=[];if(instances$dropdowns&&!(instances$dropdowns instanceof Array)){instances$dropdowns=[instances$dropdowns]}if(instances$dropdowns){instances$dropdowns.forEach(instance$dropdown=>{var exception;if(exception=this.query(instance$dropdown)){return exceptions.push(exception)}})}if(exceptions.length){return this._instances.forEach(function(instance){var instanceHasntExceptionChild,instanceIsntInExceptions;instanceIsntInExceptions=!exceptions.includes(instance);instanceHasntExceptionChild=exceptions.every(function(exception){return!instance._hasDescendant(exception)});if(instance._actived()&&instanceIsntInExceptions&&instanceHasntExceptionChild){return instance.deactive()}})}else{return this._instances.forEach(function(instance){if(instance._actived()){return instance.deactive()}})}}static _standaloneInstances(){return this._instances.filter(function(instance){if(instance._isStandalone){return instance}})}static _init(){var self;self=this;luda.onOpposite("click",this._SELECTOR,function(e){return self.deactiveExcept(self._standaloneInstances())});luda.on("click",this._SELECTOR,function(e){var focus,instance,toggleChecked;if(instance=self.query(this)){toggleChecked=false;focus=!e.detail;self.deactiveExcept(self._standaloneInstances().concat(instance));instance._deactiveChildrenExcept();if(instance._parent){instance._parent._deactiveChildrenExcept(instance)}if(instance._$switches.length||instance._$noneSwitches.length){luda.eventPath(e).some(function($path){if(instance._$switches.includes($path)){instance.toggle(focus);return toggleChecked=true}else if(instance._$noneSwitches.includes($path)){return toggleChecked=true}})}if(!toggleChecked){return instance.toggle(focus)}}});luda.onOpposite("keyup",this._SELECTOR,function(e){return self.deactiveExcept()});luda.on("keyup",this._SELECTOR,function(e){var instance;if(e.keyCode===luda.KEY_TAB&&(instance=self.query(this))){self.deactiveExcept(instance);return instance.active()}});luda.on("keydown",this._SELECTOR,function(e){var instance,ref;if(e.keyCode===luda.KEY_ESC&&(instance=self.query(this))){e.preventDefault();if(instance._actived()){return instance.deactive(true)}else{return(ref=instance._parent)!=null?ref.deactive(true):void 0}}});return luda.on("keydown",this._SELECTOR,function(e){var instance,ref,ref1;if([luda.KEY_LEFT,luda.KEY_UP].includes(e.keyCode)&&(instance=self.query(this))){e.preventDefault();if(instance._actived()){return instance.prev()}else{return(ref=instance._parent)!=null?ref.prev():void 0}}else if([luda.KEY_RIGHT,luda.KEY_DOWN].includes(e.keyCode)&&(instance=self.query(this))){e.preventDefault();if(instance._actived()){return instance.next()}else{return(ref1=instance._parent)!=null?ref1.next():void 0}}})}};_Class._SCOPE="dropdown";_Class._SELECTOR=".dropdown-fixed,.dropdown-absolute, .dropdown-static,.dropdown-absolute-m";_Class._MENU_SELECTOR=".dropdown-menu";_Class._ITEMS_SELECTOR="a[href]:not([disabled]),button:not([disabled]), input:not([disabled]),[tabindex]:not([disabled])";_Class._TOGGLE_ATTRIBUTE="data-dropdown-toggle";_Class._NONE_TOGGLE_ATTRIBUTE="data-dropdown-none-toggle";_Class._STANDALONE_ATTRIBUTE="data-dropdown-standalone";_Class._SWITCHES_SELECTOR=`[${_Class._TOGGLE_ATTRIBUTE}]`;_Class._NONE_SWITCHES_SELECTOR=`[${_Class._NONE_TOGGLE_ATTRIBUTE}]`;_Class._ACTIVE_CSS_CLASS="dropdown-active";_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:[_Class._TOGGLE_ATTRIBUTE,_Class._NONE_TOGGLE_ATTRIBUTE,_Class._STANDALONE_ATTRIBUTE]};_Class._$focused=[];return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{_getConfig(){var _$defaultValues,_$valueHolder,_$values;_$values=luda.$children(this.constructor._VALUE_SELECTOR,this._$component);_$defaultValues=luda.$children(this.constructor._DEFAULT_VALUE_SELECTOR,this._$component);_$valueHolder=luda.$child(this.constructor._VALUE_HOLDER_SELECTOR,this._$component);return{_$values:_$values,_$valueHolder:_$valueHolder,_$defaultValues:_$defaultValues}}_constructor(){({_$values:this._$values,_$valueHolder:this._$valueHolder,_$defaultValues:this._$defaultValues}=this._getConfig());this._setValueHolderAttribute();return this._setValueHolderValue()}_onMutations(){return this._constructor()}_setValueHolderValue(){var values;values=[];this._$values.forEach(($value,index)=>{var value;if($value.checked){if($value.hasAttribute(this.constructor._VALUE_ATTRIBUTE)){value=$value.getAttribute(this.constructor._VALUE_ATTRIBUTE)}else{value=this._$defaultValues[index].innerText}}if(value&&!values.includes(value)){return values.push(value)}});if(this._$valueHolder){return this._$valueHolder.value=values.join(this.constructor._VALUE_SPLITOR)}}_setValueHolderAttribute(){if(this._$valueHolder){return this._$valueHolder.setAttribute("readonly","")}}static _init(){var self;self=this;luda.enterClick._add(this._ENTER_CLICK_VALUE_HOLDER_SELECTOR);luda.on("change",`${this._SELECTOR} ${this._VALUE_SELECTOR}`,function(e){return self.query(luda.$parent(self._SELECTOR,this))._setValueHolderValue()});luda.on(luda._FORM_RESET,this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this)._setValueHolderValue()})});if(/iphone/i.test(navigator.userAgent)||/ipad/i.test(navigator.userAgent)){return luda.on("focusin",this._ENTER_CLICK_VALUE_HOLDER_SELECTOR,function(e){this.blur();return this.classList.add(luda.focus._CSS_CLASS)})}}};_Class._SCOPE="fmDropdown";_Class._SELECTOR=".fm-dropdown";_Class._VALUE_SPLITOR=" ";_Class._VALUE_ATTRIBUTE="data-fm-dropdown-value";_Class._VALUE_SELECTOR=".dropdown-items .btn-radio input, .dropdown-items .btn-check input";_Class._DEFAULT_VALUE_SELECTOR=".dropdown-items .btn-radio label, .dropdown-items .btn-check label";_Class._VALUE_HOLDER_SELECTOR=".fm input";_Class._ENTER_CLICK_VALUE_HOLDER_SELECTOR=".fm-dropdown .fm input";_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:["checked",_Class._VALUE_ATTRIBUTE]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{active(index){var activedIndex;if(this._$panes.length){activedIndex=this._activeIndex;if(index!=null&&index!==this._activeIndex&&(0<=index&&index<=this._$panes.length-1)){this._activeIndex=index;return this._active(activedIndex)}}}_getConfig(){var _$indicators,_$panes,_activeIndex;_$panes=luda.$unnested(this.constructor._PANE_SELECTOR,this._$component,this.constructor._SELECTOR);_$indicators=luda.$unnested(this.constructor._INDICATOR_SELECTOR,this._$component,this.constructor._SELECTOR);_activeIndex=this.constructor._ACTIVE_INDEX;_$indicators.some(function($indicator,index){if($indicator.checked){_activeIndex=index;return true}});return{_$panes:_$panes,_$indicators:_$indicators,_activeIndex:_activeIndex}}_constructor(){({_$panes:this._$panes,_$indicators:this._$indicators,_activeIndex:this._activeIndex}=this._getConfig());return this._active()}_onMutations(mutations){return this._constructor()}_active(activedIndex){this._$panes.forEach(($pane,index)=>{if(index===this._activeIndex){$pane.classList.add(this.constructor._PANE_ACTIVE_CSS_CLASS);return luda.dispatch($pane,this.constructor._ACTIVED_EVENT_TYPE,index)}else{$pane.classList.remove(this.constructor._PANE_ACTIVE_CSS_CLASS);if(index===activedIndex){return luda.dispatch($pane,this.constructor._DEACTIVED_EVENT_TYPE,index)}}});return this._setIndicatorsState()}_setIndicatorsState(){return this._$indicators.forEach(($indicator,index)=>{if(index===this._activeIndex){return $indicator.setAttribute("checked","")}else{return $indicator.removeAttribute("checked")}})}static _init(){var self;self=this;return luda.on("change",this._INDICATOR_SELECTOR,function(e){var instance;if(this.checked){instance=self.query(luda.$parent(self._SELECTOR,this));return instance.active(instance._$indicators.indexOf(this))}})}};_Class._SCOPE="tab";_Class._SELECTOR=".tab";_Class._PANE_SELECTOR=".tab-pane";_Class._INDICATOR_SELECTOR=".tab-indicators .btn-radio input[type=radio]";_Class._PANE_ACTIVE_CSS_CLASS="tab-pane-active";_Class._ACTIVE_INDEX=0;_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;_Class._observerConfig={childList:true,subtree:true};return _Class}.call(this))});
|
6
|
+
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory():typeof define==="function"&&define.amd?define(factory):factory()})(this,function(){"use strict";var ENV;ENV=function(){if(typeof document!=="undefined"){if(typeof window!=="undefined"){return window}if(typeof global!=="undefined"){return global}}throw new Error("Unsupported runtime environment.")}();if(typeof ENV.luda!=="function"){ENV.luda=function(installer){var installed,name,property;if(!installer){throw new Error("Installer cannot be detected.")}if(!["object","function"].includes(typeof installer)){throw new Error("Installer must be object, array or function.")}if(installer.hasOwnProperty("_SCOPE")){if(typeof installer._SCOPE!=="string"){throw new Error("_SCOPE must be string")}return ENV.luda._install(installer._SCOPE,installer)}if(installer instanceof Array||typeof installer==="function"){throw new Error("Unscoped installer must be object.")}installed={};for(name in installer){property=installer[name];installed[name]=ENV.luda._install(name,property)}return installed};ENV.luda._install=function(namespace,installer){var installedInstaller,installedName,ref;if(ENV.luda[namespace]){console.warn(`Namespace ${namespace} is ocupied, sikp installation.`);return ENV.luda[namespace]}ref=ENV.luda;for(installedName in ref){installedInstaller=ref[installedName];if(installer===installedInstaller){console.warn(`Installer is installed with name ${installedName}, skip installation.`);return ENV.luda[installedName]}}if(installer._install){if(typeof installer._install==="function"){return ENV.luda[namespace]=installer._install()}return ENV.luda[namespace]=installer._install}return ENV.luda[namespace]=installer}}luda({KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_TAB:9,KEY_ESC:27,KEY_ENTER:13});luda({$child:function(selector,$ancestor){if(!$ancestor){$ancestor=document}return $ancestor.querySelector(selector)},$children:function(selector,$ancestor){var $descendant,descendants;if(!$ancestor){$ancestor=document}$descendant=this.$child(selector,$ancestor);if($descendant){return descendants=Array.from($ancestor.querySelectorAll(selector))}else{return descendants=[]}},$unnested:function(selector,$ancestor,ancestorSelector){var descendants;descendants=this.$children(selector,$ancestor);return descendants.filter($descendant=>{if(this.$parent(ancestorSelector,$descendant)===$ancestor){return $descendant}})},$parent:function(selector,$descendant){var $ancestor;$ancestor=$descendant.parentNode;if($ancestor){if($ancestor.matches&&$ancestor.matches(selector)){return $ancestor}else{return this.$parent(selector,$ancestor)}}},$parents:function(selector,$descendant,_ancestors){var $ancestor;$ancestor=this.$parent(selector,$descendant);if(!_ancestors){_ancestors=[]}if($ancestor){_ancestors.push($ancestor);return this.$parents(selector,$ancestor,_ancestors)}else{return _ancestors}},$after:function($node,$target){var $parent;$parent=$target.parentNode;if($parent.lastChild===$target){return $parent.appendChild($node)}else{return $parent.insertBefore($node,$target.nextSibling)}},$prepend:function($node,$target){if($target.firstChild){return $target.insertBefore($node,$target.firstChild)}else{return $target.appendChild($node)}},reflow:function($element){return $element.offsetHeight}});var splice=[].splice;luda({_SWIPE_DISTANCE:10,_EVENT_TYPE_PREFIX:"luda",_SWIPE_LEFT:"swipeleft",_SWIPE_RIGHT:"swiperight",_SWIPE_UP:"swipeup",_SWIPE_DOWN:"swipedown",_SWIPE_LEFT_OR_UP:"swipeleft or swipeup",_SWIPE_RIGHT_OR_DOWN:"swiperight or swipedown",_DOC_READY:"docready",_FORM_RESET:"reset",eventPath:function(event){var path;if(event.composedPath){return path=event.composedPath()}else if(event.path){return path=event.path}else{return path=[event.target].concat(luda.$parents("*",event.target))}},on:function(event,...selector){var handler,ref;ref=selector,[...selector]=ref,[handler]=splice.call(selector,-1);switch(event){case this._DOC_READY:return this._onDocReady(handler);case this._FORM_RESET:return this._onReset(selector[0],handler);case this._SWIPE_LEFT:case this._SWIPE_RIGHT:case this._SWIPE_UP:case this._SWIPE_DOWN:case this._SWIPE_LEFT_OR_UP:case this._SWIPE_RIGHT_OR_DOWN:return this._onSwipe(event,selector[0],handler);default:return this._on(event,selector[0],handler)}},onOpposite:function(event,selector,handler){var _self;_self=this;return document.addEventListener(event,function(e){var trigger;trigger=_self.eventPath(e).every(function($element){return!$element.matches||!$element.matches(selector)});if(trigger){return handler(e)}})},dispatch:function($target,type,detail,options={}){var evt;if(typeof options.bubbles!=="boolean"){options.bubbles=true}if(typeof options.cancelable!=="boolean"){options.cancelable=true}if(typeof options.composed!=="boolean"){options.composed=true}evt=new Event(`${this._EVENT_TYPE_PREFIX}:${type}`,options);evt.detail=detail;$target.dispatchEvent(evt);return evt},_onDocReady:function(handler){if(document.readyState==="loading"){return document.addEventListener("DOMContentLoaded",handler)}else{return handler()}},_onReset:function(selector,handler){return document.addEventListener("reset",function(e){if(selector!=null){return luda.$children(selector,e.target).forEach(function($element){return handler.bind($element)(e)})}else{return handler(e)}})},_onSwipe:function(event,selector,handler){var $touchStartElement,_self,touchStartE,touchStartX,touchStartY,watch;_self=this;watch=false;$touchStartElement=document;touchStartE=null;touchStartX=0;touchStartY=0;document.addEventListener("touchstart",function(e){if(e.touches.length===1){touchStartX=e.touches[0].screenX;touchStartY=e.touches[0].screenY;if(selector!=null){return _self.eventPath(e).some(function($element){if($element.matches&&$element.matches(selector)){$touchStartElement=$element;touchStartE=e;watch=true;return true}})}else{return watch=true}}});return document.addEventListener("touchmove",function(e){var eventX,eventXOrY,eventY,touchDistanceX,touchDistanceY;if(watch&&e.touches.length===1){touchDistanceX=e.touches[0].screenX-touchStartX;touchDistanceY=e.touches[0].screenY-touchStartY;eventX=void 0;eventY=void 0;eventXOrY=void 0;if(Math.abs(touchDistanceX)>=_self._SWIPE_DISTANCE){if(touchDistanceX>0){eventX=_self._SWIPE_RIGHT}else{eventX=_self._SWIPE_LEFT}}if(Math.abs(touchDistanceY)>=_self._SWIPE_DISTANCE){if(touchDistanceY>0){eventY=_self._SWIPE_DOWN}else{eventY=_self._SWIPE_UP}}if(eventX===_self._SWIPE_LEFT||eventY===_self._SWIPE_UP){eventXOrY=_self._SWIPE_LEFT_OR_UP}if(eventX===_self._SWIPE_RIGHT||eventY===_self._SWIPE_DOWN){eventXOrY=_self._SWIPE_RIGHT_OR_DOWN}if(eventX!=null&&eventX===event||eventY!=null&&eventY===event||eventXOrY===event){if(selector!=null){return _self.eventPath(e).some(function($element){if($element===$touchStartElement){watch=false;handler.bind($element)(touchStartE,e);return true}})}else{watch=false;return handler(touchStartE,e)}}}})},_on:function(event,selector,handler){var _self;if(selector===window){return window.addEventListener(event,function(e){return handler(e)})}else{_self=this;return document.addEventListener(event,function(e){if(selector!=null){return _self.eventPath(e).some(function($element){if($element.matches&&$element.matches(selector)){handler.bind($element)(e);return true}})}else{return handler(e)}})}}});luda({except:function(element,arr){if(arr.includes(element)){return arr.splice(arr.indexOf(element),1)}}});var Singleton;luda(Singleton=function(){class Singleton{static active(){return this._actived=true}static deactive(){return this._actived=false}static _add(selector){if(typeof selector!=="string"){throw new Error(this._SELECTOR_INVALID_ERROR)}if(!this._SELECTORS.includes(selector)){this._SELECTORS.push(selector)}return this._mergeSelectors()}static _remove(selector){if(typeof selector!=="string"){throw new Error(this._SELECTOR_INVALID_ERROR)}luda.except(selector,this._SELECTORS);return this._mergeSelectors()}static _mergeSelectors(){return this._selector=this._SELECTORS.join(",")}static _install(){var exposed;if(this===Singleton){return this}if(!this.hasOwnProperty("_SELECTORS")){this._SELECTORS=[]}this._mergeSelectors();if(typeof this._init==="function"){exposed=this._init()}if(exposed){return exposed}else{return this}}}Singleton._SCOPE="Singleton";Singleton._SELECTOR_INVALID_ERROR="@param selector must be a css selector string";Singleton._SELECTORS=[];Singleton._selector="";Singleton._actived=true;return Singleton}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static _init(){var self;self=this;return luda.on("keydown",function(e){if(self._actived&&e.keyCode===luda.KEY_ENTER&&e.target.matches(self._selector)){e.preventDefault();return setTimeout(function(){return e.target.click()})}})}};_Class._SCOPE="enterClick";_Class._SELECTORS=["input[type=checkbox]","input[type=radio]","[tabindex]"];return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static _removeFocusClassExcept($exception){return Array.from(this._$focus).forEach($focus=>{if($focus!==$exception){return $focus.classList.remove(this._CSS_CLASS)}})}static _addFocusClassExceptHtmlAndBody($target){if($target!==document.body&&$target!==document.documentElement){return $target.classList.add(this._CSS_CLASS)}}static _changeFocusStateOnKeyEvent(e){if(this._actived){this._removeFocusClassExcept(e.target);return this._addFocusClassExceptHtmlAndBody(e.target)}}static _changeFocusStateOnMouseDownEvent(e){var target;if(this._actived){if(e.target.matches(this._PARENT_FOCUS_CHILDREN_SELECTOR)){target=luda.$parent(this._PARENT_FOCUS_SELECTOR,e.target)}else{target=e.target}if(target.matches(this._selector)){this._removeFocusClassExcept(target);return this._addFocusClassExceptHtmlAndBody(target)}else{return this._removeFocusClassExcept()}}}static _setElementPrototype(){var blur,focus,self;focus=HTMLElement.prototype.focus;blur=HTMLElement.prototype.blur;self=this;HTMLElement.prototype.focus=function(){focus.apply(this,arguments);if(self._actived&&document.activeElement===this){self._removeFocusClassExcept(this);return self._addFocusClassExceptHtmlAndBody(this)}};return HTMLElement.prototype.blur=function(){blur.apply(this,arguments);if(self._actived){return this.classList.remove(self._CSS_CLASS)}}}static _init(){this._setElementPrototype();luda.on("keydown",this._changeFocusStateOnKeyEvent.bind(this));luda.on("keyup",this._changeFocusStateOnKeyEvent.bind(this));luda.on("mousedown",this._changeFocusStateOnMouseDownEvent.bind(this));luda.on("touchstart",this._TOUCHSTART_FOCUS_SELECTOR,this._changeFocusStateOnMouseDownEvent.bind(this));return luda.on("focusin",this._changeFocusStateOnMouseDownEvent.bind(this))}};_Class._SCOPE="focus";_Class._CSS_CLASS="focus";_Class._SELECTORS=["select","textarea",":not(.btn-check):not(.btn-radio):not(.btn-file) > input:not([type=button]):not([type=submit]):not([type=reset])"];_Class._TOUCHSTART_FOCUS_SELECTOR="input[type=range]";_Class._PARENT_FOCUS_SELECTOR="select[multiple]";_Class._PARENT_FOCUS_CHILDREN_SELECTOR=`${_Class._PARENT_FOCUS_SELECTOR} *`;_Class._$focus=document.getElementsByClassName(_Class._CSS_CLASS);return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static _querySameName$radios($radio){var $inputs,selector;if($radio.name){selector=`${this._selector}[name=${$radio.name}]`}else{selector=this._selector}$inputs=luda.$children(selector);return $inputs.filter(function($input){return $input.tabIndex>=0})}static _query$prev$next($radio){var $next,$prev,$sameNameRadios,radioIndex;$sameNameRadios=this._querySameName$radios($radio);radioIndex=$sameNameRadios.indexOf($radio);$prev=$sameNameRadios[radioIndex-1];$next=$sameNameRadios[radioIndex+1];return{$prev:$prev,$next:$next}}static _init(){var self;self=this;return luda.on("keydown",function(e){var $next,$prev;if(self._actived&&e.keyCode===luda.KEY_TAB&&e.target.nodeName.toUpperCase()==="INPUT"&&e.target.type==="radio"){if(e.shiftKey){if($prev=self._query$prev$next(e.target).$prev){e.preventDefault();return $prev.focus()}}else{if($next=self._query$prev$next(e.target).$next){e.preventDefault();return $next.focus()}}}})}};_Class._SCOPE="radioTab";_Class._SELECTORS=["input[type=radio]:not([disabled])"];return _Class}.call(this));var Component;luda(Component=function(){class Component{_hasDescendant(descendant){if(this._children.length&&descendant){if(this._children.includes(descendant)){return true}return this._children.some(function(child){return child._hasDescendant(descendant)})}else{return false}}_observe(){this._observer=new MutationObserver(this._onMutations.bind(this));return this._observer.observe(this._$component,this.constructor._observerConfig)}_disconnect(){this._observer.disconnect();return this._observer=null}static create($component){var $family,componentIsElementInstance,instance,parent;componentIsElementInstance=$component instanceof Element;if(!componentIsElementInstance){throw new Error(this._$COMPONENT_INVALID_ERROR)}$family=this._query$family($component);instance=this.query($component);if($family._$parent){if(parent=this.query($family._$parent)){if(!instance){this._instances.push(instance=this._createInstance($component))}if(instance._parent!==parent){parent._children.push(instance)&&(instance._parent=parent)}$family._$children.forEach($child=>{return this.create($child)});return instance}else{this.create($family._$parent);return this.query($component)}}else{if(!instance){this._instances.push(instance=this._createInstance($component))}$family._$children.forEach($child=>{return this.create($child)});return instance}}static destroy(instance$component){var attribute,instance,results,value;instance=this.query(instance$component);if(instance){if(instance._observer){instance._disconnect()}if(instance._destroy){instance._destroy()}while(instance._children.length){this.destroy(instance._children[0])}if(instance._parent){luda.except(instance,instance._parent._children)}luda.except(instance,this._instances);results=[];for(attribute in instance){value=instance[attribute];results.push(instance[attribute]=null)}return results}}static query(instance$component){var instance;instance=null;if(instance$component instanceof this&&this._instances.includes(instance$component)){instance=instance$component}else if(instance$component instanceof Element){this._instances.some(function(inited){if(inited._$component===instance$component){instance=inited;return true}})}return instance}static _query$family($component){var _$children,_$parent;_$parent=null;_$children=[];if(this._SELECTOR){_$parent=luda.$parent(this._SELECTOR,$component);_$children=luda.$unnested(this._SELECTOR,$component,this._SELECTOR)}return{_$parent:_$parent,_$children:_$children}}static _createInstance($component){var instance;instance=new this;instance._$component=$component;instance._parent=null;instance._children=[];instance._observer=null;if(instance._constructor){instance._constructor()}if(!(instance._observer&&instance._onMutations&&this._observerConfig)){instance._observe()}return instance}static _observe(classObj){if(!Component._observer){Component._observer=new MutationObserver(function(mutations){return mutations.forEach(function(mutation){var $addedNodes,$removedNodes;$removedNodes=Array.from(mutation.removedNodes);$addedNodes=Array.from(mutation.addedNodes);$removedNodes.forEach(function($node){if($node instanceof Element){return Component._Observed.forEach(function(Observed){var $destroies;if($node.matches(Observed._SELECTOR)){return Observed.destroy($node)}else{$destroies=luda.$children(Observed._SELECTOR,$node);return $destroies.forEach(function($destroy){return Observed.destroy($destroy)})}})}});return $addedNodes.forEach(function($node){if($node instanceof Element){return Component._Observed.forEach(function(Observed){var $creates;if($node.matches(Observed._SELECTOR)){return Observed.create($node)}else{$creates=luda.$children(Observed._SELECTOR,$node);return $creates.forEach(function($create){return Observed.create($create)})}})}})})});Component._observer.observe(document.documentElement,Component._observerConfig)}if(!Component._Observed.includes(classObj)){return Component._Observed.push(classObj)}}static _install(){var exposed,self;self=this;if(this===Component){return this}if(!(this._SELECTOR||typeof this._SELECTOR!=="string")){throw new Error(this._COMPONENT_NO_SELECTOR_ERROR)}if(!this.hasOwnProperty("_instances")){this._instances=[]}if(typeof this._init==="function"){exposed=this._init()}luda.on(luda._DOC_READY,function(){luda.$children(self._SELECTOR).forEach(function($component){return self.create($component)});return Component._observe(self)});if(exposed){return exposed}else{return this}}}Component._SCOPE="Component";Component._COMPONENT_NO_SELECTOR_ERROR="Extended component must has a css selector";Component._$COMPONENT_INVALID_ERROR="@param $component must be an instance of Element";Component._SELECTOR="";Component._instances=[];Component._Observed=[];Component._observer=null;Component._observerConfig={childList:true,subtree:true};return Component}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{_getConfig(){var _isReadonly,_originalTabIndex,readonly;readonly=this._$component.getAttribute(this.constructor._READONLY_ATTRIBUTE);_isReadonly=readonly!==this.constructor._READONLY_FALSE_VALUE;_originalTabIndex=this._$component.tabIndex;return{_isReadonly:_isReadonly,_originalTabIndex:_originalTabIndex}}_constructor(){({_isReadonly:this._isReadonly,_originalTabIndex:this._originalTabIndex}=this._getConfig());return this._setTabIndex()}_onMutations(){return this._constructor()}_setTabIndex(){if(this._isReadonly){return this._$component.tabIndex=-1}else{return this._$component.tabIndex=this._originalTabIndex}}};_Class._SCOPE="readonly";_Class._READONLY_ATTRIBUTE="data-readonly";_Class._READONLY_FALSE_VALUE="false";_Class._SELECTOR=`[${_Class._READONLY_ATTRIBUTE}]`;_Class._observerConfig={attributes:true,attributeFilter:[_Class._READONLY_ATTRIBUTE]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Singleton{static active(name$target){return this._query$targets(name$target).forEach($target=>{$target.classList.add(this._ACTIVE_CSS_CLASS);return luda.dispatch($target,this._ACTIVED_EVENT_TYPE)})}static deactive(name$target){return this._query$targets(name$target).forEach($target=>{$target.classList.remove(this._ACTIVE_CSS_CLASS);return luda.dispatch($target,this._DEACTIVED_EVENT_TYPE)})}static toggle(name$target){return this._query$targets(name$target).forEach($target=>{if($target.classList.contains(this._ACTIVE_CSS_CLASS)){return this.deactive($target)}else{return this.active($target)}})}static _query$targets(name$target){if(name$target instanceof Element){return[name$target]}else{return luda.$children(`[${this._TOGGLE_TARGET_ATTRIBUTE}=${name$target}]`)}}static _init(){var self;self=this;return luda.on("click",this._selector,function(e){var toggleChecked;toggleChecked=false;return luda.eventPath(e).some(function($path){var $toggle,toggleName;if($path instanceof Element){if($path.hasAttribute(self._TOGGLE_ATTRIBUTE)||$path.hasAttribute(self._TOGGLE_FOR_ATTRIBUTE)){if(toggleName=$path.getAttribute(self._TOGGLE_FOR_ATTRIBUTE)){self.toggle(toggleName);toggleChecked=true}if($path.hasAttribute(self._TOGGLE_ATTRIBUTE)){if($path.hasAttribute(self._TOGGLE_TARGET_ATTRIBUTE)){$toggle=$path}else{$toggle=luda.$parent(`[${self._TOGGLE_TARGET_ATTRIBUTE}]`,$path)}if($toggle){self.toggle($toggle);return toggleChecked=true}}}else if($path.hasAttribute(self._NONE_TOGGLE_ATTRIBUTE)){return toggleChecked=true}}})})}};_Class._SCOPE="toggle";_Class._TOGGLE_TARGET_ATTRIBUTE="data-toggle-target";_Class._TOGGLE_ATTRIBUTE="data-toggle";_Class._TOGGLE_FOR_ATTRIBUTE="data-toggle-for";_Class._NONE_TOGGLE_ATTRIBUTE="data-toggle-disabled";_Class._ACTIVE_CSS_CLASS="toggle-active";_Class._SELECTORS=[`[${_Class._TOGGLE_FOR_ATTRIBUTE}]`,`[${_Class._TOGGLE_ATTRIBUTE}]`];_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{_getConfig(){var _$file,_$simulator;_$file=luda.$child(this.constructor._FILE_SELECTOR,this._$component);_$simulator=luda.$child(this.constructor._SIMULATOR_SELECTOR,this._$component);return{_$file:_$file,_$simulator:_$simulator}}_constructor(){({_$file:this._$file,_$simulator:this._$simulator}=this._getConfig());return this._init()}_onMutations(){return this._constructor()}_insertSimulator(){this._$simulator=document.createElement("input");this._$simulator.tabIndex=-1;return luda.$after(this._$simulator,this._$file)}_setPlaceholderValue(){return this._$simulator.placeholder=this._$file.getAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)}_setSimulatorValue(){var values;values=[];Array.from(this._$file.files).map(function(file){return values.push(file.name)});if(values.length){return this._$simulator.value=values.join(this.constructor._VALUE_SPLITOR)}else if(this._$file.hasAttribute(this.constructor._VALUE_ATTRIBUTE)){return this._$simulator.value=this._$file.getAttribute(this.constructor._VALUE_ATTRIBUTE)}}_init(){if(this._$file){if(!this._$simulator){this._insertSimulator()}if(this._$file.hasAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)){this._setPlaceholderValue()}return this._setSimulatorValue()}}static _init(){var self;self=this;luda.on("change",`${this._SELECTOR} ${this._FILE_SELECTOR}`,function(e){return self.query(luda.$parent(self._SELECTOR,this))._setSimulatorValue()});return luda.on(luda._FORM_RESET,this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this)._setSimulatorValue()})})}};_Class._SCOPE="fmFile";_Class._VALUE_SPLITOR=" ";_Class._SELECTOR=".fm-file";_Class._FILE_SELECTOR="input[type=file]";_Class._SIMULATOR_SELECTOR="input:not([type=file])";_Class._PLACEHOLDER_ATTRIBUTE="placeholder";_Class._VALUE_ATTRIBUTE="value";_Class._observerConfig={childList:true,subtree:true};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{select(indexOrIndexArray){var selectedIndexes;if(this._$select.multiple){if(this._$multipleSelectPlaceholder){selectedIndexes=indexOrIndexArray}else{selectedIndexes=indexOrIndexArray.map(function(index){return index+1})}Array.from(this._$select.options).forEach(function($option,index){return $option.selected=selectedIndexes.includes(index)});return this._markSelectedOption()}else{this._$select.selectedIndex=selectedIndex;this._setSingleSelectSimulatorValue();return this._markSelectedOption()}}_getConfig(){var _$defaultSelectedOptions,_$multipleSelectPlaceholder,_$select,_$singleSelectSimulator,_defaultSelectedOptionMarked;_$select=luda.$child(this.constructor._SELECT_SELECTOR,this._$component);_$singleSelectSimulator=luda.$child(this.constructor._SINGLE_SELECT_SIMULATOR_SELECTOR,this._$component);_$multipleSelectPlaceholder=luda.$child(`.${this.constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS}`,this._$component);_$defaultSelectedOptions=luda.$children(`[${this.constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE}]`,this._$component);_defaultSelectedOptionMarked=this._$component.hasAttribute(this.constructor._INITED_ATTRIBUTE);return{_$select:_$select,_$singleSelectSimulator:_$singleSelectSimulator,_$multipleSelectPlaceholder:_$multipleSelectPlaceholder,_$defaultSelectedOptions:_$defaultSelectedOptions,_defaultSelectedOptionMarked:_defaultSelectedOptionMarked}}_constructor(){({_$select:this._$select,_$singleSelectSimulator:this._$singleSelectSimulator,_$multipleSelectPlaceholder:this._$multipleSelectPlaceholder,_$defaultSelectedOptions:this._$defaultSelectedOptions,_defaultSelectedOptionMarked:this._defaultSelectedOptionMarked}=this._getConfig());if(this._$select){if(this._$select.multiple){return this._initMultipleSelect()}else{return this._initSingleSelect()}}}_onMutations(){return this._constructor()}_markSelectedOption(){if(this._observer){this._disconnect()}Array.from(this._$select.options).forEach(function($option){if($option.selected){return $option.setAttribute("selected","selected")}else{return $option.removeAttribute("selected")}});if(!this._observer){return this._observe()}}_markDefaultSelectedOption(){this._$component.setAttribute(this.constructor._INITED_ATTRIBUTE,"");return Array.from(this._$select.options).forEach($option=>{if($option.selected){return $option.setAttribute(this.constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE,"")}})}_setSingleSelectedDefaultSelectedOption(){var hasSelected;hasSelected=Array.from(this._$select.options).some(function($option){return $option.getAttribute("selected")==="selected"});if(!hasSelected){return this._$select.selectedIndex=-1}}_insertSingleSelectSimulator(){this._$singleSelectSimulator=document.createElement("input");this._$singleSelectSimulator.tabIndex=-1;return luda.$after(this._$singleSelectSimulator,this._$select)}_setSingleSelectPlaceholderValue(){return this._$singleSelectSimulator.placeholder=this._$select.getAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)}_setSingleSelectSimulatorValue(){var $selectedOption;if($selectedOption=this._$select.options[this._$select.selectedIndex]){return this._$singleSelectSimulator.value=$selectedOption.innerText}else{return this._$singleSelectSimulator.value=""}}_initSingleSelect(){if(!this._$singleSelectSimulator){this._insertSingleSelectSimulator()}if(this._$select.hasAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)){this._setSingleSelectedDefaultSelectedOption();this._setSingleSelectPlaceholderValue()}if(!this._defaultSelectedOptionMarked){this._markDefaultSelectedOption()}this._setSingleSelectSimulatorValue();return this._markSelectedOption()}_insertMultipleSelectBlankOption(){this._$multipleSelectPlaceholder=document.createElement("option");this._$multipleSelectPlaceholder.className=this.constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS;this._$multipleSelectPlaceholder.disabled=true;return luda.$prepend(this._$multipleSelectPlaceholder,this._$select)}_setMultipleSelectPlaceholderValue(){return this._$multipleSelectPlaceholder.innerText=this._$select.getAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)}_initMultipleSelect(){if(!this._$multipleSelectPlaceholder){if(this._$select.hasAttribute(this.constructor._PLACEHOLDER_ATTRIBUTE)){this._insertMultipleSelectBlankOption();this._setMultipleSelectPlaceholderValue()}}if(!this._defaultSelectedOptionMarked){return this._markDefaultSelectedOption()}}_reset(){if(this._$select){Array.from(this._$select.options).forEach($option=>{return $option.selected=this._$defaultSelectedOptions.includes($option)});if(!this._$select.multiple){this._setSingleSelectSimulatorValue()}return this._markSelectedOption()}}static _init(){var self;self=this;luda.on("change",`${this._SELECTOR} ${this._SELECT_SELECTOR}`,function(e){var instance;instance=self.query(luda.$parent(self._SELECTOR,this));if(!this.multiple){instance._setSingleSelectSimulatorValue()}return instance._markSelectedOption()});return luda.on(luda._FORM_RESET,this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this)._reset()})})}};_Class._SCOPE="fmSelect";_Class._SELECTOR=".fm-select";_Class._SELECT_SELECTOR="select";_Class._SINGLE_SELECT_SIMULATOR_SELECTOR="input";_Class._PLACEHOLDER_ATTRIBUTE="placeholder";_Class._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS="fm-select-multiple-placeholder";_Class._DEFAULT_SELECTED_OPTION_ATTRIBUTE="data-fm-select-default-selected";_Class._INITED_ATTRIBUTE="data-fm-select-inited";_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:["selected"]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{active(index){var action,activedIndex;if(this._$items.length&&!this._transiting){activedIndex=this._activeIndex;if(index!=null&&index!==this._activeIndex&&(0<=index&&index<=this._$items.length-1)){this._transiting=true;this._activeIndex=index;action=index<activedIndex?"_slidePrev":"_slideNext";return this[action](this._$items[activedIndex],activedIndex)}}}next(){var activedIndex,index;if(this._$items.length&&!this._transiting){activedIndex=this._activeIndex;index=activedIndex+1;if(index>this._$items.length-1){if(!this._wrap){return}index=0}this._transiting=true;this._activeIndex=index;this._slideNext(this._$items[activedIndex],activedIndex);this._playTimeStamp=Date.now();return this._pausedRemainTime=this._interval}}prev(){var activedIndex,index;if(this._$items.length&&!this._transiting){activedIndex=this._activeIndex;index=activedIndex-1;if(index<0){if(!this._wrap){return}index=this._$items.length-1}this._transiting=true;this._activeIndex=index;this._slidePrev(this._$items[activedIndex],activedIndex);this._playTimeStamp=Date.now();return this._pausedRemainTime=this._interval}}pause(){if(this._intervaling!=null){clearInterval(this._intervaling);this._intervaling=null;return this._pausedRemainTime=this._pausedRemainTime-(Date.now()-this._playTimeStamp)}}play(){var execute;if(this._interval&&this._$items.length>1){this._playTimeStamp=Date.now();this.pause();execute=(()=>{this.next();return this._intervaling=setInterval(this.next.bind(this),this._interval)});return this._intervaling=setTimeout(execute,this._pausedRemainTime)}}_getConfig(){var _$indicators,_$items,_$nextControl,_$prevControl,_activeIndex,_interval,_wrap;_$items=luda.$unnested(this.constructor._ITEMS_SELECTOR,this._$component,this.constructor._SELECTOR);_$indicators=luda.$unnested(this.constructor._INDICATORS_SELECTOR,this._$component,this.constructor._SELECTOR);_$prevControl=luda.$child(this.constructor._PREV_CONTROL_SELECTOR,this._$component);_$nextControl=luda.$child(this.constructor._NEXT_CONTROL_SELECTOR,this._$component);_activeIndex=_$items.indexOf(luda.$child(`.${this.constructor._ITEM_ACTIVE_CSS_CLASS}`,this._$component));if(_activeIndex===-1){_activeIndex=this.constructor._ACTIVE_INDEX}_interval=this._$component.getAttribute(this.constructor._INTERVAL_ATTRIBUTE);if(_interval===this.constructor._FALSE){_interval=false}else{_interval=Math.abs(parseInt(_interval,10))||this.constructor._INTERVAL}_wrap=this._$component.getAttribute(this.constructor._WRAP_ATTRIBUTE);_wrap=_wrap===this.constructor._FALSE?false:this.constructor._WRAP;return{_$items:_$items,_$indicators:_$indicators,_$prevControl:_$prevControl,_$nextControl:_$nextControl,_activeIndex:_activeIndex,_interval:_interval,_wrap:_wrap}}_constructor(){({_$items:this._$items,_$indicators:this._$indicators,_$prevControl:this._$prevControl,_$nextControl:this._$nextControl,_activeIndex:this._activeIndex,_interval:this._interval,_wrap:this._wrap}=this._getConfig());this._transiting=false;this._intervaling=null;this._playTimeStamp=0;this._pausedRemainTime=this._interval;this._layout();return this.play()}_onMutations(mutations){({_$items:this._$items,_$indicators:this._$indicators,_$prevControl:this._$prevControl,_$nextControl:this._$nextControl,_activeIndex:this._activeIndex,_interval:this._interval,_wrap:this._wrap}=this._getConfig());this._setIndicatorsState();this._setDirectionControlState();return this.play()}_destroy(){return this.pause()}_layout(){this._$items.forEach(($item,index)=>{$item.style.transition="none";if(index>this._activeIndex){$item.classList.add(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS)}else if(index<this._activeIndex){$item.classList.add(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS)}else{luda.dispatch($item,this.constructor._ACTIVED_EVENT_TYPE,index);$item.classList.add(this.constructor._ITEM_ACTIVE_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS)}luda.reflow($item);return $item.style.transition=""});this._setIndicatorsState();return this._setDirectionControlState()}_slideNext($activedItem,activedIndex){var $item;if(this._$items.length>1){$item=this._$items[this._activeIndex];luda.dispatch($item,this.constructor._ACTIVE_EVENT_TYPE,this._activeIndex);$item.style.transition="none";$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.add(this.constructor._ITEM_NEXT_CSS_CLASS);luda.reflow($item);$item.style.transition="";$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.add(this.constructor._ITEM_ACTIVE_CSS_CLASS);luda.dispatch($activedItem,this.constructor._DEACTIVE_EVENT_TYPE,activedIndex);$activedItem.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS);$activedItem.classList.add(this.constructor._ITEM_PREV_CSS_CLASS);this._setIndicatorsState();return this._setDirectionControlState()}}_slidePrev($activedItem,activedIndex){var $item;if(this._$items.length>1){$item=this._$items[this._activeIndex];luda.dispatch($item,this.constructor._ACTIVE_EVENT_TYPE,this._activeIndex);$item.style.transition="none";$item.classList.remove(this.constructor._ITEM_NEXT_CSS_CLASS);$item.classList.add(this.constructor._ITEM_PREV_CSS_CLASS);luda.reflow($item);$item.style.transition="";$item.classList.remove(this.constructor._ITEM_PREV_CSS_CLASS);$item.classList.add(this.constructor._ITEM_ACTIVE_CSS_CLASS);luda.dispatch($activedItem,this.constructor._DEACTIVE_EVENT_TYPE,activedIndex);$activedItem.classList.remove(this.constructor._ITEM_ACTIVE_CSS_CLASS);$activedItem.classList.add(this.constructor._ITEM_NEXT_CSS_CLASS);this._setIndicatorsState();return this._setDirectionControlState()}}_setIndicatorsState(){return this._$indicators.forEach(($indicator,index)=>{return $indicator.disabled=index===this._activeIndex})}_setDirectionControlState(){var ref,ref1,ref2,ref3;if(this._$items.length<=1){return(ref=this._$prevControl)!=null?ref.disabled=(ref1=this._$nextControl)!=null?ref1.disabled=true:void 0:void 0}else{if((ref2=this._$prevControl)!=null){ref2.disabled=this._activeIndex===0&&!this._wrap}return(ref3=this._$nextControl)!=null?ref3.disabled=this._activeIndex===this._$items.length-1&&!this._wrap:void 0}}static _init(){var self;self=this;luda.on("transitionend",this._ITEMS_SELECTOR,function(e){var index,instance;instance=self.query(luda.$parent(self._SELECTOR,this));instance._transiting=false;index=instance._$items.indexOf(this);if(this.classList.contains(self._ITEM_ACTIVE_CSS_CLASS)){return luda.dispatch(this,self._ACTIVED_EVENT_TYPE,index)}else{return luda.dispatch(this,self._DEACTIVED_EVENT_TYPE,index)}});luda.on("click",this._INDICATORS_SELECTOR,function(e){var instance;instance=self.query(luda.$parent(self._SELECTOR,this));return instance.active(instance._$indicators.indexOf(this))});luda.on("touchstart",this._SELECTOR,function(e){return self.query(this).pause()});luda.on("touchend",this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this).play()})});luda.on("mouseover",this._SELECTOR,function(e){return self.query(this).pause()});luda.on("mouseout",this._SELECTOR,function(e){return self.query(this).play()});luda.on(luda._SWIPE_LEFT_OR_UP,this._SELECTOR,function(startE,e){return self.query(this).next()});luda.on(luda._SWIPE_RIGHT_OR_DOWN,this._SELECTOR,function(startE,e){return self.query(this).prev()});luda.on("click",this._PREV_CONTROL_SELECTOR,function(e){return self.query(luda.$parent(self._SELECTOR,this)).prev()});return luda.on("click",this._NEXT_CONTROL_SELECTOR,function(e){return self.query(luda.$parent(self._SELECTOR,this)).next()})}};_Class._SCOPE="carousel";_Class._SELECTOR=".carousel";_Class._ITEMS_SELECTOR=".carousel-item";_Class._PREV_CONTROL_SELECTOR=".carousel-prev";_Class._NEXT_CONTROL_SELECTOR=".carousel-next";_Class._INDICATORS_SELECTOR=".carousel-indicators .btn";_Class._INTERVAL_ATTRIBUTE="data-carousel-interval";_Class._WRAP_ATTRIBUTE="data-carousel-wrap";_Class._ITEM_ACTIVE_CSS_CLASS="carousel-item-active";_Class._ITEM_NEXT_CSS_CLASS="carousel-item-next";_Class._ITEM_PREV_CSS_CLASS="carousel-item-prev";_Class._ACTIVE_INDEX=0;_Class._INTERVAL=5e3;_Class._WRAP=true;_Class._FALSE="false";_Class._ACTIVE_EVENT_TYPE=`${_Class._SCOPE}:active`;_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVE_EVENT_TYPE=`${_Class._SCOPE}:deactive`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:[_Class._INTERVAL_ATTRIBUTE,_Class._WRAP_ATTRIBUTE]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{active(){var ref;if(!this._actived()){this._$component.classList.add(this.constructor._ACTIVE_CSS_CLASS);this.constructor._$focused.push(document.activeElement);if((ref=this._parent)!=null){ref.active()}return luda.dispatch(this._$component,this.constructor._ACTIVED_EVENT_TYPE)}}deactive(focus){var ref;if(this._actived()){this._$component.classList.remove(this.constructor._ACTIVE_CSS_CLASS);this._children.forEach(function(child){return child.deactive()});if(focus){if((ref=this.constructor._$focused[this.constructor._$focused.length-1])!=null){ref.focus()}}this.constructor._$focused.splice(this.constructor._$focused.length-1,1);return luda.dispatch(this._$component,this.constructor._DEACTIVED_EVENT_TYPE)}}toggle(focus){if(this._actived()){return this.deactive(focus)}else{return this.active()}}prev(){var focusIndex;if(this._$items.length&&this._actived()){focusIndex=this._$items.indexOf(document.activeElement)-1;if(focusIndex<0){focusIndex=0}return this._$items[focusIndex].focus()}}next(){var focusIndex;if(this._$items.length&&this._actived()){focusIndex=this._$items.indexOf(document.activeElement)+1;if(focusIndex>this._$items.length-1){focusIndex=this._$items.length-1}return this._$items[focusIndex].focus()}}_getConfig(){var _$items,_$menu,_$noneSwitches,_$switches,_isStandalone;_$menu=luda.$child(this.constructor._MENU_SELECTOR,this._$component);_$switches=luda.$unnested(this.constructor._SWITCHES_SELECTOR,this._$component,this.constructor._SELECTOR).concat(luda.$unnested(this.constructor._SWITCHES_SELECTOR,_$menu,this.constructor._MENU_SELECTOR));_$noneSwitches=luda.$unnested(this.constructor._NONE_SWITCHES_SELECTOR,this._$component,this.constructor._SELECTOR).concat(luda.$unnested(this.constructor._NONE_SWITCHES_SELECTOR,_$menu,this.constructor._MENU_SELECTOR));_$items=luda.$unnested(this.constructor._ITEMS_SELECTOR,_$menu,this.constructor._MENU_SELECTOR);_isStandalone=this._$component.hasAttribute(this.constructor._STANDALONE_ATTRIBUTE);return{_$items:_$items,_$switches:_$switches,_$noneSwitches:_$noneSwitches,_isStandalone:_isStandalone}}_constructor(){return({_$items:this._$items,_$switches:this._$switches,_$noneSwitches:this._$noneSwitches,_isStandalone:this._isStandalone}=this._getConfig())}_onMutations(mutations){return this._constructor()}_actived(){return this._$component.classList.contains(this.constructor._ACTIVE_CSS_CLASS)}_deactiveChildrenExcept(exceptions){if(exceptions&&!(exceptions instanceof Array)){exceptions=[exceptions]}if(exceptions){return this._children.forEach(function(child){if(child._actived()&&!exceptions.includes(child)){return child.deactive()}})}else{return this._children.forEach(function(child){if(child._actived()){return child.deactive()}})}}static deactiveExcept(instances$dropdowns){var exceptions;exceptions=[];if(instances$dropdowns&&!(instances$dropdowns instanceof Array)){instances$dropdowns=[instances$dropdowns]}if(instances$dropdowns){instances$dropdowns.forEach(instance$dropdown=>{var exception;if(exception=this.query(instance$dropdown)){return exceptions.push(exception)}})}if(exceptions.length){return this._instances.forEach(function(instance){var instanceHasntExceptionChild,instanceIsntInExceptions;instanceIsntInExceptions=!exceptions.includes(instance);instanceHasntExceptionChild=exceptions.every(function(exception){return!instance._hasDescendant(exception)});if(instance._actived()&&instanceIsntInExceptions&&instanceHasntExceptionChild){return instance.deactive()}})}else{return this._instances.forEach(function(instance){if(instance._actived()){return instance.deactive()}})}}static _standaloneInstances(){return this._instances.filter(function(instance){if(instance._isStandalone){return instance}})}static _init(){var self;self=this;luda.onOpposite("click",this._SELECTOR,function(e){return self.deactiveExcept(self._standaloneInstances())});luda.on("click",this._SELECTOR,function(e){var focus,instance,toggleChecked;if(instance=self.query(this)){toggleChecked=false;focus=!e.detail;self.deactiveExcept(self._standaloneInstances().concat(instance));instance._deactiveChildrenExcept();if(instance._parent){instance._parent._deactiveChildrenExcept(instance)}if(instance._$switches.length||instance._$noneSwitches.length){luda.eventPath(e).some(function($path){if(instance._$switches.includes($path)){instance.toggle(focus);return toggleChecked=true}else if(instance._$noneSwitches.includes($path)){return toggleChecked=true}})}if(!toggleChecked){return instance.toggle(focus)}}});luda.onOpposite("keyup",this._SELECTOR,function(e){return self.deactiveExcept()});luda.on("keyup",this._SELECTOR,function(e){var instance;if(e.keyCode===luda.KEY_TAB&&(instance=self.query(this))){self.deactiveExcept(instance);return instance.active()}});luda.on("keydown",this._SELECTOR,function(e){var instance,ref;if(e.keyCode===luda.KEY_ESC&&(instance=self.query(this))){e.preventDefault();if(instance._actived()){return instance.deactive(true)}else{return(ref=instance._parent)!=null?ref.deactive(true):void 0}}});return luda.on("keydown",this._SELECTOR,function(e){var instance,ref,ref1;if([luda.KEY_LEFT,luda.KEY_UP].includes(e.keyCode)&&(instance=self.query(this))){e.preventDefault();if(instance._actived()){return instance.prev()}else{return(ref=instance._parent)!=null?ref.prev():void 0}}else if([luda.KEY_RIGHT,luda.KEY_DOWN].includes(e.keyCode)&&(instance=self.query(this))){e.preventDefault();if(instance._actived()){return instance.next()}else{return(ref1=instance._parent)!=null?ref1.next():void 0}}})}};_Class._SCOPE="dropdown";_Class._SELECTOR=".dropdown-fixed,.dropdown-absolute, .dropdown-static,.dropdown-absolute-m";_Class._MENU_SELECTOR=".dropdown-menu";_Class._ITEMS_SELECTOR="a[href]:not([disabled]),button:not([disabled]), input:not([disabled]),[tabindex]:not([disabled])";_Class._TOGGLE_ATTRIBUTE="data-dropdown-toggle";_Class._NONE_TOGGLE_ATTRIBUTE="data-dropdown-toggle-disabled";_Class._STANDALONE_ATTRIBUTE="data-dropdown-standalone";_Class._SWITCHES_SELECTOR=`[${_Class._TOGGLE_ATTRIBUTE}]`;_Class._NONE_SWITCHES_SELECTOR=`[${_Class._NONE_TOGGLE_ATTRIBUTE}]`;_Class._ACTIVE_CSS_CLASS="dropdown-active";_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:[_Class._TOGGLE_ATTRIBUTE,_Class._NONE_TOGGLE_ATTRIBUTE,_Class._STANDALONE_ATTRIBUTE]};_Class._$focused=[];return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{_getConfig(){var _$defaultValues,_$valueHolder,_$values;_$values=luda.$children(this.constructor._VALUE_SELECTOR,this._$component);_$defaultValues=luda.$children(this.constructor._DEFAULT_VALUE_SELECTOR,this._$component);_$valueHolder=luda.$child(this.constructor._VALUE_HOLDER_SELECTOR,this._$component);return{_$values:_$values,_$valueHolder:_$valueHolder,_$defaultValues:_$defaultValues}}_constructor(){({_$values:this._$values,_$valueHolder:this._$valueHolder,_$defaultValues:this._$defaultValues}=this._getConfig());this._setValueHolderAttribute();return this._setValueHolderValue()}_onMutations(){return this._constructor()}_setValueHolderValue(){var values;values=[];this._$values.forEach(($value,index)=>{var value;if($value.checked){if($value.hasAttribute(this.constructor._VALUE_ATTRIBUTE)){value=$value.getAttribute(this.constructor._VALUE_ATTRIBUTE)}else{value=this._$defaultValues[index].innerText}}if(value&&!values.includes(value)){return values.push(value)}});if(this._$valueHolder){return this._$valueHolder.value=values.join(this.constructor._VALUE_SPLITOR)}}_setValueHolderAttribute(){if(this._$valueHolder){return this._$valueHolder.setAttribute("readonly","")}}static _init(){var self;self=this;luda.enterClick._add(this._ENTER_CLICK_VALUE_HOLDER_SELECTOR);luda.on("change",`${this._SELECTOR} ${this._VALUE_SELECTOR}`,function(e){return self.query(luda.$parent(self._SELECTOR,this))._setValueHolderValue()});luda.on(luda._FORM_RESET,this._SELECTOR,function(e){return setTimeout(()=>{return self.query(this)._setValueHolderValue()})});if(/iphone/i.test(navigator.userAgent)||/ipad/i.test(navigator.userAgent)){return luda.on("focusin",this._ENTER_CLICK_VALUE_HOLDER_SELECTOR,function(e){this.blur();return this.classList.add(luda.focus._CSS_CLASS)})}}};_Class._SCOPE="fmDropdown";_Class._SELECTOR=".fm-dropdown";_Class._VALUE_SPLITOR=" ";_Class._VALUE_ATTRIBUTE="data-fm-dropdown-value";_Class._VALUE_SELECTOR=".dropdown-items .btn-radio input, .dropdown-items .btn-check input";_Class._DEFAULT_VALUE_SELECTOR=".dropdown-items .btn-radio label, .dropdown-items .btn-check label";_Class._VALUE_HOLDER_SELECTOR=".fm input";_Class._ENTER_CLICK_VALUE_HOLDER_SELECTOR=".fm-dropdown .fm input";_Class._observerConfig={childList:true,attributes:true,subtree:true,attributeFilter:["checked",_Class._VALUE_ATTRIBUTE]};return _Class}.call(this));luda(function(){var _Class;_Class=class extends luda.Component{active(index){var activedIndex;if(this._$panes.length){activedIndex=this._activeIndex;if(index!=null&&index!==this._activeIndex&&(0<=index&&index<=this._$panes.length-1)){this._activeIndex=index;return this._active(activedIndex)}}}_getConfig(){var _$indicators,_$panes,_activeIndex;_$panes=luda.$unnested(this.constructor._PANE_SELECTOR,this._$component,this.constructor._SELECTOR);_$indicators=luda.$unnested(this.constructor._INDICATOR_SELECTOR,this._$component,this.constructor._SELECTOR);_activeIndex=this.constructor._ACTIVE_INDEX;_$indicators.some(function($indicator,index){if($indicator.checked){_activeIndex=index;return true}});return{_$panes:_$panes,_$indicators:_$indicators,_activeIndex:_activeIndex}}_constructor(){({_$panes:this._$panes,_$indicators:this._$indicators,_activeIndex:this._activeIndex}=this._getConfig());return this._active()}_onMutations(mutations){return this._constructor()}_active(activedIndex){this._$panes.forEach(($pane,index)=>{if(index===this._activeIndex){$pane.classList.add(this.constructor._PANE_ACTIVE_CSS_CLASS);return luda.dispatch($pane,this.constructor._ACTIVED_EVENT_TYPE,index)}else{$pane.classList.remove(this.constructor._PANE_ACTIVE_CSS_CLASS);if(index===activedIndex){return luda.dispatch($pane,this.constructor._DEACTIVED_EVENT_TYPE,index)}}});return this._setIndicatorsState()}_setIndicatorsState(){return this._$indicators.forEach(($indicator,index)=>{if(index===this._activeIndex){return $indicator.setAttribute("checked","")}else{return $indicator.removeAttribute("checked")}})}static _init(){var self;self=this;return luda.on("change",this._INDICATOR_SELECTOR,function(e){var instance;if(this.checked){instance=self.query(luda.$parent(self._SELECTOR,this));return instance.active(instance._$indicators.indexOf(this))}})}};_Class._SCOPE="tab";_Class._SELECTOR=".tab";_Class._PANE_SELECTOR=".tab-pane";_Class._INDICATOR_SELECTOR=".tab-indicators .btn-radio input[type=radio]";_Class._PANE_ACTIVE_CSS_CLASS="tab-pane-active";_Class._ACTIVE_INDEX=0;_Class._ACTIVED_EVENT_TYPE=`${_Class._SCOPE}:actived`;_Class._DEACTIVED_EVENT_TYPE=`${_Class._SCOPE}:deactived`;_Class._observerConfig={childList:true,subtree:true};return _Class}.call(this))});
|
7
7
|
//# sourceMappingURL=luda.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/coffee/install.coffee","../../src/coffee/constants.coffee","../../src/coffee/dom.coffee","../../src/coffee/event.coffee","../../src/coffee/utilities.coffee","../../src/coffee/singleton.coffee","../../src/coffee/behaviours/enter-click.coffee","../../src/coffee/behaviours/focus.coffee","../../src/coffee/behaviours/radio-tab.coffee","../../src/coffee/component.coffee","../../src/coffee/behaviours/readonly.coffee","../../src/coffee/behaviours/toggle.coffee","../../src/coffee/elements/form-file.coffee","../../src/coffee/elements/form-select.coffee","../../src/coffee/collections/carousel.coffee","../../src/coffee/collections/dropdown.coffee","../../src/coffee/collections/form-dropdown.coffee","../../src/coffee/collections/tab.coffee"],"names":["ENV","document","window","global","Error","luda","installer","installed","name","property","includes","hasOwnProperty","_SCOPE","_install","Array","namespace","installedInstaller","installedName","ref","console","warn","KEY_LEFT","KEY_UP","KEY_RIGHT","KEY_DOWN","KEY_TAB","KEY_ESC","KEY_ENTER","$child","selector","$ancestor","querySelector","$children","$descendant","descendants","this","from","querySelectorAll","$unnested","ancestorSelector","filter","$parent","parentNode","matches","$parents","_ancestors","push","$after","$node","$target","lastChild","appendChild","insertBefore","nextSibling","$prepend","firstChild","reflow","$element","offsetHeight","splice","_SWIPE_DISTANCE","_EVENT_TYPE_PREFIX","_SWIPE_LEFT","_SWIPE_RIGHT","_SWIPE_UP","_SWIPE_DOWN","_SWIPE_LEFT_OR_UP","_SWIPE_RIGHT_OR_DOWN","_DOC_READY","_FORM_RESET","eventPath","event","path","composedPath","target","concat","on","handler","call","_onDocReady","_onReset","_onSwipe","_on","onOpposite","_self","addEventListener","e","trigger","every","dispatch","type","detail","options","evt","bubbles","cancelable","composed","Event","dispatchEvent","readyState","forEach","bind","$touchStartElement","touchStartE","touchStartX","touchStartY","watch","touches","length","screenX","screenY","some","eventX","eventXOrY","eventY","touchDistanceX","touchDistanceY","Math","abs","except","element","arr","indexOf","Singleton","[object Object]","_actived","_SELECTOR_INVALID_ERROR","_SELECTORS","_mergeSelectors","_selector","join","exposed","_init","self","keyCode","preventDefault","setTimeout","click","_Class","$exception","_$focus","$focus","classList","remove","_CSS_CLASS","body","documentElement","add","_removeFocusClassExcept","_addFocusClassExceptHtmlAndBody","_PARENT_FOCUS_CHILDREN_SELECTOR","_PARENT_FOCUS_SELECTOR","blur","focus","HTMLElement","prototype","apply","arguments","activeElement","_setElementPrototype","_changeFocusStateOnKeyEvent","_changeFocusStateOnMouseDownEvent","_TOUCHSTART_FOCUS_SELECTOR","getElementsByClassName","$radio","$inputs","$input","tabIndex","$next","$prev","$sameNameRadios","radioIndex","_querySameName$radios","nodeName","toUpperCase","shiftKey","_query$prev$next","Component","descendant","_children","child","_hasDescendant","_observer","MutationObserver","_onMutations","observe","_$component","constructor","_observerConfig","disconnect","$component","$family","componentIsElementInstance","instance","parent","Element","_$COMPONENT_INVALID_ERROR","_query$family","query","_$parent","_instances","_createInstance","_parent","_$children","create","instance$component","attribute","results","value","_disconnect","_destroy","destroy","inited","_SELECTOR","_constructor","_observe","classObj","mutations","mutation","$addedNodes","$removedNodes","removedNodes","addedNodes","_Observed","Observed","$destroies","$destroy","$creates","$create","_COMPONENT_NO_SELECTOR_ERROR","childList","subtree","_isReadonly","_originalTabIndex","readonly","getAttribute","_READONLY_ATTRIBUTE","_READONLY_FALSE_VALUE","_getConfig","_setTabIndex","attributes","attributeFilter","name$target","_query$targets","_ACTIVE_CSS_CLASS","_ACTIVED_EVENT_TYPE","_DEACTIVED_EVENT_TYPE","contains","deactive","active","_TOGGLE_TARGET_ATTRIBUTE","toggleChecked","$path","$toggle","toggleName","hasAttribute","_TOGGLE_ATTRIBUTE","_TOGGLE_FOR_ATTRIBUTE","toggle","_NONE_TOGGLE_ATTRIBUTE","_$file","_$simulator","_FILE_SELECTOR","_SIMULATOR_SELECTOR","createElement","placeholder","_PLACEHOLDER_ATTRIBUTE","values","files","map","file","_VALUE_SPLITOR","_VALUE_ATTRIBUTE","_insertSimulator","_setPlaceholderValue","_setSimulatorValue","indexOrIndexArray","selectedIndexes","_$select","multiple","_$multipleSelectPlaceholder","index","$option","selected","_markSelectedOption","selectedIndex","_setSingleSelectSimulatorValue","_$defaultSelectedOptions","_$singleSelectSimulator","_defaultSelectedOptionMarked","_SELECT_SELECTOR","_SINGLE_SELECT_SIMULATOR_SELECTOR","_MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS","_DEFAULT_SELECTED_OPTION_ATTRIBUTE","_INITED_ATTRIBUTE","_initMultipleSelect","_initSingleSelect","setAttribute","removeAttribute","hasSelected","$selectedOption","innerText","_insertSingleSelectSimulator","_setSingleSelectedDefaultSelectedOption","_setSingleSelectPlaceholderValue","_markDefaultSelectedOption","className","disabled","_insertMultipleSelectBlankOption","_setMultipleSelectPlaceholderValue","_reset","action","activedIndex","_$items","_transiting","_activeIndex","_wrap","_slideNext","_playTimeStamp","Date","now","_pausedRemainTime","_interval","_slidePrev","_intervaling","clearInterval","execute","pause","next","setInterval","_$indicators","_$nextControl","_$prevControl","_ITEMS_SELECTOR","_INDICATORS_SELECTOR","_PREV_CONTROL_SELECTOR","_NEXT_CONTROL_SELECTOR","_ITEM_ACTIVE_CSS_CLASS","_ACTIVE_INDEX","_INTERVAL_ATTRIBUTE","_FALSE","parseInt","_INTERVAL","_WRAP_ATTRIBUTE","_WRAP","_layout","play","_setIndicatorsState","_setDirectionControlState","$item","style","transition","_ITEM_NEXT_CSS_CLASS","_ITEM_PREV_CSS_CLASS","$activedItem","_ACTIVE_EVENT_TYPE","_DEACTIVE_EVENT_TYPE","$indicator","ref1","ref2","ref3","startE","prev","_$focused","focusIndex","_$menu","_$noneSwitches","_$switches","_isStandalone","_MENU_SELECTOR","_SWITCHES_SELECTOR","_NONE_SWITCHES_SELECTOR","_STANDALONE_ATTRIBUTE","exceptions","instances$dropdowns","instance$dropdown","exception","instanceHasntExceptionChild","instanceIsntInExceptions","deactiveExcept","_standaloneInstances","_deactiveChildrenExcept","_$defaultValues","_$valueHolder","_$values","_VALUE_SELECTOR","_DEFAULT_VALUE_SELECTOR","_VALUE_HOLDER_SELECTOR","_setValueHolderAttribute","_setValueHolderValue","$value","checked","enterClick","_add","_ENTER_CLICK_VALUE_HOLDER_SELECTOR","test","navigator","userAgent","_$panes","_active","_PANE_SELECTOR","_INDICATOR_SELECTOR","$pane","_PANE_ACTIVE_CSS_CLASS"],"mappings":";;;;;2LAAA,IAAAA,IAAAA,IAAM,WACJ,UAAUC,WAAc,YAAxB,CACE,UAAwBC,SAAY,YAApC,CAAA,OAAOA,OACP,UAAwBC,SAAY,YAApC,CAAA,OAAOA,QACT,MAAM,IAAIC,MAAM,oCAJZ,GASN,UAAcJ,IAAIK,OAAQ,WAA1B,CACEL,IAAIK,KAAO,SAACC,WACV,IAAAC,UAAAC,KAAAC,SAAA,IAAuDH,UAAvD,CAAA,MAAM,IAAIF,MAAM,iCAChB,IAAO,CAAC,SAAU,YAAYM,gBAAgBJ,WAA9C,CACE,MAAM,IAAIF,MAAM,gDAClB,GAAGE,UAAUK,eAAe,UAA5B,CACE,UAAcL,UAAUM,SAAU,SAAlC,CACE,MAAM,IAAIR,MAAM,yBAClB,OAAOJ,IAAIK,KAAKQ,SAASP,UAAUM,OAAQN,WAC7C,GAAGA,qBAAqBQ,cAAgBR,YAAa,WAArD,CACE,MAAM,IAAIF,MAAM,sCAClBG,UAAY,GACZ,IAAAC,QAAAF,UAAA,0BACEC,UAAUC,MAAQR,IAAIK,KAAKQ,SAASL,KAAMC,iBAC5CF,WAEFP,IAAIK,KAAKQ,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A,KAAOlG,YACP9B,KAAKuE,GAAG,SAAUzC,KAAC8W,oBAAqB,SAAC3T,GACvC,IAAA2G,SAAA,GAAG9J,KAAKoW,QAAR,CACEtM,SAAW5D,KAAKiE,MAAMjM,KAAKoC,QAAQ4F,KAAKgF,UAAWlL,cACnD8J,SAASwD,OAAOxD,SAASyI,aAAahN,QAAQvF,YAxEpDuG,OAAC9H,OAAQ,MAET8H,OAAC2E,UAAW,OACZ3E,OAACsQ,eAAgB,YACjBtQ,OAACuQ,oBAAqB,+CACtBvQ,OAACyQ,uBAAwB,kBACzBzQ,OAACwM,cAAe,EAChBxM,OAAC2G,uBAAwB3G,OAAC9H,iBAC1B8H,OAAC4G,yBAA0B5G,OAAC9H,mBAE5B8H,OAACkD,gBACC,CAAA0C,UAAW,KACXC,QAAS","sourcesContent":["ENV = (->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n)()\n\n\n\nunless typeof ENV.luda is 'function'\n ENV.luda = (installer) ->\n throw new Error 'Installer cannot be detected.' unless installer\n unless ['object', 'function'].includes typeof installer\n throw new Error 'Installer must be object, array or function.'\n if installer.hasOwnProperty '_SCOPE'\n unless typeof installer._SCOPE is 'string'\n throw new Error '_SCOPE must be string'\n return ENV.luda._install installer._SCOPE, installer\n if installer instanceof Array or typeof installer is 'function'\n throw new Error 'Unscoped installer must be object.'\n installed = {}\n for name, property of installer\n installed[name] = ENV.luda._install name, property\n installed\n\n ENV.luda._install = (namespace, installer) ->\n if ENV.luda[namespace]\n console.warn \"Namespace #{namespace} is ocupied, sikp installation.\"\n return ENV.luda[namespace]\n for installedName, installedInstaller of ENV.luda\n if installer is installedInstaller\n console.warn \"Installer is installed with name #{installedName},\n skip installation.\"\n return ENV.luda[installedName]\n if installer._install\n if typeof installer._install is 'function'\n return ENV.luda[namespace] = installer._install()\n return ENV.luda[namespace] = installer._install\n ENV.luda[namespace] = installer","import './install.coffee'\n\n\n\nluda\n\n KEY_LEFT: 37\n KEY_UP: 38\n KEY_RIGHT: 39\n KEY_DOWN: 40\n KEY_TAB: 9\n KEY_ESC: 27\n KEY_ENTER: 13","import './install.coffee'\n\n\n\nluda\n \n $child: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $ancestor.querySelector selector\n\n $children: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $descendant = @$child selector, $ancestor\n if $descendant\n descendants = Array.from($ancestor.querySelectorAll selector)\n else\n descendants = []\n\n $unnested: (selector, $ancestor, ancestorSelector) ->\n descendants = @$children selector, $ancestor\n descendants.filter ($descendant) =>\n $descendant if @$parent(ancestorSelector, $descendant) is $ancestor\n\n $parent: (selector, $descendant) ->\n $ancestor = $descendant.parentNode\n if $ancestor\n if $ancestor.matches and $ancestor.matches selector\n $ancestor\n else\n @$parent selector, $ancestor\n\n $parents: (selector, $descendant, _ancestors) ->\n $ancestor = @$parent selector, $descendant\n _ancestors = [] unless _ancestors\n if $ancestor\n _ancestors.push($ancestor)\n @$parents selector, $ancestor, _ancestors\n else\n _ancestors\n\n $after: ($node, $target) ->\n $parent = $target.parentNode\n if $parent.lastChild is $target\n $parent.appendChild $node\n else\n $parent.insertBefore $node, $target.nextSibling\n\n $prepend: ($node, $target) ->\n if $target.firstChild\n $target.insertBefore $node, $target.firstChild\n else\n $target.appendChild $node\n\n reflow: ($element) -> $element.offsetHeight","import './install.coffee'\nimport './dom.coffee'\n\n\n\nluda\n \n _SWIPE_DISTANCE: 10\n _EVENT_TYPE_PREFIX: 'luda'\n _SWIPE_LEFT: 'swipeleft'\n _SWIPE_RIGHT: 'swiperight'\n _SWIPE_UP: 'swipeup'\n _SWIPE_DOWN: 'swipedown'\n _SWIPE_LEFT_OR_UP: 'swipeleft or swipeup'\n _SWIPE_RIGHT_OR_DOWN: 'swiperight or swipedown'\n _DOC_READY: 'docready'\n _FORM_RESET: 'reset'\n\n eventPath: (event) ->\n if event.composedPath\n path = event.composedPath()\n else if event.path\n path = event.path\n else\n path = [event.target].concat(luda.$parents '*', event.target)\n\n on: (event, selector..., handler) ->\n switch event\n when @_DOC_READY then @_onDocReady handler\n when @_FORM_RESET then @_onReset selector[0], handler\n when @_SWIPE_LEFT, \\\n @_SWIPE_RIGHT, \\\n @_SWIPE_UP, \\\n @_SWIPE_DOWN, \\\n @_SWIPE_LEFT_OR_UP, \\\n @_SWIPE_RIGHT_OR_DOWN\n then @_onSwipe event, selector[0], handler\n else @_on event, selector[0], handler\n\n onOpposite: (event, selector, handler) ->\n _self = this\n document.addEventListener event, (e) ->\n trigger = _self.eventPath(e).every ($element) ->\n not $element.matches or not $element.matches selector\n handler e if trigger\n\n dispatch: ($target, type, detail, options = {}) ->\n options.bubbles = true unless typeof options.bubbles is 'boolean'\n options.cancelable = true unless typeof options.cancelable is 'boolean'\n options.composed = true unless typeof options.composed is 'boolean'\n evt = new Event \"#{@_EVENT_TYPE_PREFIX}:#{type}\", options\n evt.detail = detail\n $target.dispatchEvent evt\n evt\n \n _onDocReady: (handler) ->\n if document.readyState is 'loading'\n document.addEventListener 'DOMContentLoaded', handler\n else\n handler()\n\n _onReset: (selector, handler) ->\n document.addEventListener 'reset', (e) ->\n if selector?\n luda.$children(selector, e.target).forEach ($element) ->\n handler.bind($element)(e)\n else\n handler e\n \n _onSwipe: (event, selector, handler) ->\n _self = this\n watch = false\n $touchStartElement = document\n touchStartE = null\n touchStartX = 0\n touchStartY = 0\n document.addEventListener 'touchstart', (e) ->\n if e.touches.length is 1\n touchStartX = e.touches[0].screenX\n touchStartY = e.touches[0].screenY\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n $touchStartElement = $element\n touchStartE = e\n watch = true\n return true\n else\n watch = true\n\n document.addEventListener 'touchmove', (e) ->\n if watch and e.touches.length is 1\n touchDistanceX = e.touches[0].screenX - touchStartX\n touchDistanceY = e.touches[0].screenY - touchStartY\n eventX = undefined\n eventY = undefined\n eventXOrY = undefined\n if Math.abs(touchDistanceX) >= _self._SWIPE_DISTANCE\n if touchDistanceX > 0\n eventX = _self._SWIPE_RIGHT\n else\n eventX = _self._SWIPE_LEFT\n if Math.abs(touchDistanceY) >= _self._SWIPE_DISTANCE\n if touchDistanceY > 0\n eventY = _self._SWIPE_DOWN\n else\n eventY = _self._SWIPE_UP\n if eventX is _self._SWIPE_LEFT \\\n or eventY is _self._SWIPE_UP\n eventXOrY = _self._SWIPE_LEFT_OR_UP\n if eventX is _self._SWIPE_RIGHT \\\n or eventY is _self._SWIPE_DOWN\n eventXOrY = _self._SWIPE_RIGHT_OR_DOWN\n if (eventX? and eventX is event) \\\n or (eventY? and eventY is event) \\\n or eventXOrY is event\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element is $touchStartElement\n watch = false\n handler.bind($element)(touchStartE, e)\n return true\n else\n watch = false\n handler touchStartE, e\n\n _on: (event, selector, handler) ->\n if selector is window\n window.addEventListener event, (e) -> handler e\n else\n _self = this\n document.addEventListener event, (e) ->\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n handler.bind($element)(e)\n return true\n else\n handler e","import './install.coffee'\n\n\n\nluda\n \n except: (element, arr) ->\n arr.splice(arr.indexOf(element), 1) if arr.includes element","import './install.coffee'\nimport './utilities.coffee'\n\n\n \nluda class Singleton\n\n @_SCOPE: 'Singleton'\n \n @_SELECTOR_INVALID_ERROR: '@param selector must be a css selector string'\n @_SELECTORS: []\n\n @_selector: ''\n @_actived: true\n\n @active: ->\n @_actived = true\n\n @deactive: ->\n @_actived = false\n\n @_add: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n @_SELECTORS.push selector unless @_SELECTORS.includes selector\n @_mergeSelectors()\n\n @_remove: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n luda.except selector, @_SELECTORS\n @_mergeSelectors()\n\n @_mergeSelectors: ->\n @_selector = @_SELECTORS.join ','\n\n @_install: ->\n return this if this is Singleton\n @_SELECTORS = [] unless @hasOwnProperty '_SELECTORS'\n @_mergeSelectors()\n exposed = @_init() if typeof @_init is 'function'\n if exposed then exposed else this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'enterClick'\n\n @_SELECTORS: [\n 'input[type=checkbox]'\n 'input[type=radio]'\n '[tabindex]'\n ]\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_ENTER \\\n and e.target.matches self._selector\n e.preventDefault()\n setTimeout(-> e.target.click())","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'focus'\n\n @_CSS_CLASS: 'focus'\n # mouse focusable selectors\n @_SELECTORS: ['select'\n 'textarea'\n ':not(.btn-check):not(.btn-radio):not(.btn-file) >\n input:not([type=button]):not([type=submit]):not([type=reset])'\n ]\n @_TOUCHSTART_FOCUS_SELECTOR: 'input[type=range]'\n @_PARENT_FOCUS_SELECTOR: 'select[multiple]'\n @_PARENT_FOCUS_CHILDREN_SELECTOR: \"#{@_PARENT_FOCUS_SELECTOR} *\"\n\n @_$focus: document.getElementsByClassName(@_CSS_CLASS)\n\n @_removeFocusClassExcept: ($exception) ->\n Array.from(@_$focus).forEach ($focus) =>\n $focus.classList.remove @_CSS_CLASS if $focus isnt $exception\n\n @_addFocusClassExceptHtmlAndBody: ($target) ->\n if $target isnt document.body and $target isnt document.documentElement\n $target.classList.add @_CSS_CLASS\n\n @_changeFocusStateOnKeyEvent: (e) ->\n if @_actived\n @_removeFocusClassExcept e.target\n @_addFocusClassExceptHtmlAndBody e.target\n\n @_changeFocusStateOnMouseDownEvent: (e) ->\n if @_actived\n if e.target.matches @_PARENT_FOCUS_CHILDREN_SELECTOR\n target = luda.$parent @_PARENT_FOCUS_SELECTOR, e.target\n else\n target = e.target\n if target.matches @_selector\n @_removeFocusClassExcept target\n @_addFocusClassExceptHtmlAndBody target\n else\n @_removeFocusClassExcept()\n\n @_setElementPrototype: ->\n focus = HTMLElement.prototype.focus\n blur = HTMLElement.prototype.blur\n self = this\n HTMLElement.prototype.focus = ->\n focus.apply this, arguments\n if self._actived and document.activeElement is this\n self._removeFocusClassExcept this\n self._addFocusClassExceptHtmlAndBody this\n HTMLElement.prototype.blur = ->\n blur.apply this, arguments\n this.classList.remove self._CSS_CLASS if self._actived\n\n @_init: ->\n self = this\n @_setElementPrototype()\n luda.on 'keydown', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'keyup', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'mousedown', @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'touchstart', @_TOUCHSTART_FOCUS_SELECTOR, \\\n @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'focusin', @_changeFocusStateOnMouseDownEvent.bind this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'radioTab'\n\n @_SELECTORS: ['input[type=radio]:not([disabled])']\n\n @_querySameName$radios: ($radio) ->\n if $radio.name\n selector = \"#{@_selector}[name=#{$radio.name}]\"\n else\n selector = @_selector\n $inputs = luda.$children selector\n $inputs.filter ($input) -> $input.tabIndex >= 0\n\n @_query$prev$next: ($radio) ->\n $sameNameRadios = @_querySameName$radios $radio\n radioIndex = $sameNameRadios.indexOf $radio\n $prev = $sameNameRadios[radioIndex - 1]\n $next = $sameNameRadios[radioIndex + 1]\n {$prev, $next}\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_TAB \\\n and e.target.nodeName.toUpperCase() is 'INPUT' \\\n and e.target.type is 'radio'\n if e.shiftKey\n if $prev = self._query$prev$next(e.target).$prev\n e.preventDefault()\n $prev.focus()\n else\n if $next = self._query$prev$next(e.target).$next\n e.preventDefault()\n $next.focus()","import './install.coffee'\nimport './utilities.coffee'\nimport './dom.coffee'\nimport './event.coffee'\n\n\n\n\nluda class Component\n\n @_SCOPE: 'Component'\n \n @_COMPONENT_NO_SELECTOR_ERROR: 'Extended component must has a css selector'\n @_$COMPONENT_INVALID_ERROR: '@param $component must be an instance of Element'\n @_SELECTOR: ''\n @_instances: []\n\n @_Observed: []\n @_observer: null\n @_observerConfig:\n childList: true\n subtree: true\n\n _hasDescendant: (descendant) ->\n if @_children.length and descendant\n return true if @_children.includes descendant\n return @_children.some (child) -> child._hasDescendant descendant\n else\n return false\n\n _observe: ->\n @_observer = new MutationObserver @_onMutations.bind this\n @_observer.observe @_$component, @constructor._observerConfig\n\n _disconnect: ->\n @_observer.disconnect()\n @_observer = null\n\n @create: ($component) ->\n componentIsElementInstance = $component instanceof Element\n throw new Error @_$COMPONENT_INVALID_ERROR unless componentIsElementInstance\n $family = @_query$family $component\n instance = @query $component\n if $family._$parent\n if parent = @query $family._$parent\n @_instances.push instance = @_createInstance $component unless instance\n if instance._parent isnt parent\n parent._children.push(instance) and (instance._parent = parent)\n $family._$children.forEach ($child) => @create $child\n return instance\n else\n @create $family._$parent\n return @query $component\n else\n @_instances.push instance = @_createInstance $component unless instance\n $family._$children.forEach ($child) => @create $child\n return instance\n\n @destroy: (instance$component) ->\n instance = @query instance$component\n if instance\n instance._disconnect() if instance._observer\n instance._destroy() if instance._destroy\n @destroy instance._children[0] while instance._children.length\n if instance._parent\n luda.except instance, instance._parent._children\n luda.except instance, @_instances\n for attribute, value of instance\n instance[attribute] = null\n \n @query: (instance$component) ->\n instance = null\n if instance$component instanceof this \\\n and @_instances.includes instance$component\n instance = instance$component\n else if instance$component instanceof Element\n @_instances.some (inited) ->\n if inited._$component is instance$component\n instance = inited\n return true\n return instance\n\n @_query$family: ($component) ->\n _$parent = null\n _$children = []\n if @_SELECTOR\n _$parent = luda.$parent @_SELECTOR, $component\n _$children = luda.$unnested @_SELECTOR, $component, @_SELECTOR\n {_$parent, _$children}\n\n @_createInstance: ($component) ->\n instance = new this()\n instance._$component = $component\n instance._parent = null\n instance._children = []\n instance._observer = null\n instance._constructor() if instance._constructor\n unless instance._observer and instance._onMutations and @_observerConfig\n instance._observe()\n instance\n\n @_observe: (classObj) ->\n unless Component._observer\n Component._observer = new MutationObserver (mutations) ->\n mutations.forEach (mutation) ->\n $removedNodes = Array.from mutation.removedNodes\n $addedNodes = Array.from mutation.addedNodes\n $removedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.destroy $node\n else\n $destroies = luda.$children Observed._SELECTOR, $node\n $destroies.forEach ($destroy) -> Observed.destroy $destroy\n $addedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.create $node\n else\n $creates = luda.$children Observed._SELECTOR, $node\n $creates.forEach ($create) -> Observed.create $create\n Component._observer.observe document.documentElement, \\\n Component._observerConfig\n unless Component._Observed.includes classObj\n Component._Observed.push classObj\n\n @_install: ->\n self = this\n return this if this is Component\n unless @_SELECTOR or typeof @_SELECTOR isnt 'string'\n throw new Error @_COMPONENT_NO_SELECTOR_ERROR\n @_instances = [] unless @hasOwnProperty '_instances'\n exposed = @_init() if typeof @_init is 'function'\n luda.on luda._DOC_READY, ->\n luda.$children(self._SELECTOR).forEach ($component) ->\n self.create $component\n Component._observe(self)\n if exposed then exposed else this","import '../install.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'readonly'\n @_READONLY_ATTRIBUTE: 'data-readonly'\n @_READONLY_FALSE_VALUE: 'false'\n @_SELECTOR: \"[#{@_READONLY_ATTRIBUTE}]\"\n\n @_observerConfig:\n attributes: true\n attributeFilter: [@_READONLY_ATTRIBUTE]\n\n _getConfig: ->\n readonly = @_$component.getAttribute @constructor._READONLY_ATTRIBUTE\n _isReadonly = readonly isnt @constructor._READONLY_FALSE_VALUE\n _originalTabIndex = @_$component.tabIndex\n {_isReadonly, _originalTabIndex}\n \n _constructor: ->\n {\n @_isReadonly,\n @_originalTabIndex\n } = @_getConfig()\n @_setTabIndex()\n\n _onMutations: ->\n @_constructor()\n\n _setTabIndex: ->\n if @_isReadonly\n @_$component.tabIndex = -1\n else\n @_$component.tabIndex = @_originalTabIndex","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'toggle'\n @_TOGGLE_TARGET_ATTRIBUTE: 'data-toggle-target'\n @_TOGGLE_ATTRIBUTE: 'data-toggle'\n @_TOGGLE_FOR_ATTRIBUTE: 'data-toggle-for'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-none-toggle'\n @_ACTIVE_CSS_CLASS: 'toggle-active'\n @_SELECTORS: [\n \"[#{@_TOGGLE_FOR_ATTRIBUTE}]\"\n \"[#{@_TOGGLE_ATTRIBUTE}]\"\n ]\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @active: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.add @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_ACTIVED_EVENT_TYPE)\n\n @deactive: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.remove @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_DEACTIVED_EVENT_TYPE)\n\n @toggle: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n if $target.classList.contains @_ACTIVE_CSS_CLASS\n @deactive($target)\n else\n @active($target)\n\n @_query$targets: (name$target) ->\n if name$target instanceof Element\n [name$target]\n else\n luda.$children \"[#{@_TOGGLE_TARGET_ATTRIBUTE}=#{name$target}]\"\n\n @_init: ->\n self = this\n luda.on 'click', @_selector, (e) ->\n toggleChecked = false\n luda.eventPath(e).some ($path) ->\n if $path instanceof Element\n if $path.hasAttribute(self._TOGGLE_ATTRIBUTE) \\\n or $path.hasAttribute(self._TOGGLE_FOR_ATTRIBUTE)\n if toggleName = $path.getAttribute self._TOGGLE_FOR_ATTRIBUTE\n self.toggle toggleName\n toggleChecked = true\n if $path.hasAttribute self._TOGGLE_ATTRIBUTE\n if $path.hasAttribute self._TOGGLE_TARGET_ATTRIBUTE\n $toggle = $path\n else\n $toggle = luda.$parent \\\n \"[#{self._TOGGLE_TARGET_ATTRIBUTE}]\", $path\n if $toggle\n self.toggle $toggle\n toggleChecked = true\n else if $path.hasAttribute self._NONE_TOGGLE_ATTRIBUTE\n toggleChecked = true","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmFile'\n\n @_VALUE_SPLITOR: ' '\n @_SELECTOR: '.fm-file'\n @_FILE_SELECTOR: 'input[type=file]'\n @_SIMULATOR_SELECTOR: 'input:not([type=file])'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_VALUE_ATTRIBUTE: 'value'\n\n @_observerConfig:\n childList: true\n subtree: true\n\n _getConfig: ->\n _$file = luda.$child @constructor._FILE_SELECTOR, @_$component\n _$simulator = luda.$child \\\n @constructor._SIMULATOR_SELECTOR, @_$component\n {_$file, _$simulator}\n\n _constructor: ->\n {\n @_$file,\n @_$simulator\n } = @_getConfig()\n @_init()\n\n _onMutations: ->\n @_constructor()\n\n _insertSimulator: ->\n @_$simulator = document.createElement 'input'\n @_$simulator.tabIndex = -1\n luda.$after @_$simulator, @_$file\n\n _setPlaceholderValue: ->\n @_$simulator.placeholder = \\\n @_$file.getAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSimulatorValue: ->\n values = []\n Array.from(@_$file.files).map (file) -> values.push file.name\n if values.length\n @_$simulator.value = values.join @constructor._VALUE_SPLITOR\n else if @_$file.hasAttribute(@constructor._VALUE_ATTRIBUTE)\n @_$simulator.value = @_$file.getAttribute @constructor._VALUE_ATTRIBUTE\n\n _init: ->\n if @_$file\n @_insertSimulator() unless @_$simulator\n if @_$file.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setPlaceholderValue()\n @_setSimulatorValue()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_FILE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setSimulatorValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setSimulatorValue()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmSelect'\n\n @_SELECTOR: '.fm-select'\n @_SELECT_SELECTOR: 'select'\n @_SINGLE_SELECT_SIMULATOR_SELECTOR: 'input'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS: 'fm-select-multiple-placeholder'\n @_DEFAULT_SELECTED_OPTION_ATTRIBUTE: 'data-fm-select-default-selected'\n @_INITED_ATTRIBUTE: 'data-fm-select-inited'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: ['selected']\n\n select: (indexOrIndexArray) ->\n if @_$select.multiple\n if @_$multipleSelectPlaceholder\n selectedIndexes = indexOrIndexArray\n else\n selectedIndexes = indexOrIndexArray.map (index) -> index + 1\n Array.from(@_$select.options).forEach ($option, index) ->\n $option.selected = selectedIndexes.includes index\n @_markSelectedOption()\n else\n @_$select.selectedIndex = selectedIndex\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _getConfig: ->\n _$select = luda.$child @constructor._SELECT_SELECTOR, @_$component\n _$singleSelectSimulator = luda.$child \\\n @constructor._SINGLE_SELECT_SIMULATOR_SELECTOR, @_$component\n _$multipleSelectPlaceholder = luda.$child \\\n \".#{@constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS}\", @_$component\n _$defaultSelectedOptions = luda.$children \\\n \"[#{@constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE}]\", @_$component\n _defaultSelectedOptionMarked = @_$component.hasAttribute \\\n @constructor._INITED_ATTRIBUTE\n {\n _$select,\n _$singleSelectSimulator,\n _$multipleSelectPlaceholder,\n _$defaultSelectedOptions,\n _defaultSelectedOptionMarked\n }\n\n _constructor: ->\n {\n @_$select,\n @_$singleSelectSimulator,\n @_$multipleSelectPlaceholder,\n @_$defaultSelectedOptions,\n @_defaultSelectedOptionMarked\n } = @_getConfig()\n if @_$select\n if @_$select.multiple\n @_initMultipleSelect()\n else\n @_initSingleSelect()\n \n _onMutations: ->\n @_constructor()\n\n _markSelectedOption: ->\n @_disconnect() if @_observer\n Array.from(@_$select.options).forEach ($option) ->\n if $option.selected\n $option.setAttribute 'selected', 'selected'\n else\n $option.removeAttribute 'selected'\n @_observe() unless @_observer\n\n _markDefaultSelectedOption: ->\n @_$component.setAttribute @constructor._INITED_ATTRIBUTE, ''\n Array.from(@_$select.options).forEach ($option) =>\n if $option.selected\n $option.setAttribute @constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE, ''\n\n _setSingleSelectedDefaultSelectedOption: ->\n hasSelected = Array.from(@_$select.options).some ($option) ->\n $option.getAttribute('selected') is 'selected'\n @_$select.selectedIndex = -1 unless hasSelected\n\n _insertSingleSelectSimulator: ->\n @_$singleSelectSimulator = document.createElement 'input'\n @_$singleSelectSimulator.tabIndex = -1\n luda.$after @_$singleSelectSimulator, @_$select\n\n _setSingleSelectPlaceholderValue: ->\n @_$singleSelectSimulator.placeholder = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSingleSelectSimulatorValue: ->\n if $selectedOption = @_$select.options[@_$select.selectedIndex]\n @_$singleSelectSimulator.value = $selectedOption.innerText\n else\n @_$singleSelectSimulator.value = ''\n\n _initSingleSelect: ->\n @_insertSingleSelectSimulator() unless @_$singleSelectSimulator\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setSingleSelectedDefaultSelectedOption()\n @_setSingleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _insertMultipleSelectBlankOption: ->\n @_$multipleSelectPlaceholder = document.createElement 'option'\n @_$multipleSelectPlaceholder.className = \\\n @constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS\n @_$multipleSelectPlaceholder.disabled = true\n luda.$prepend @_$multipleSelectPlaceholder, @_$select\n\n _setMultipleSelectPlaceholderValue: ->\n @_$multipleSelectPlaceholder.innerText = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _initMultipleSelect: ->\n unless @_$multipleSelectPlaceholder\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_insertMultipleSelectBlankOption()\n @_setMultipleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n\n _reset: ->\n if @_$select\n Array.from(@_$select.options).forEach ($option) =>\n $option.selected = @_$defaultSelectedOptions.includes $option\n @_setSingleSelectSimulatorValue() unless @_$select.multiple\n @_markSelectedOption()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_SELECT_SELECTOR}\", (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._setSingleSelectSimulatorValue() unless this.multiple\n instance._markSelectedOption()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._reset()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'carousel'\n\n @_SELECTOR: '.carousel'\n @_ITEMS_SELECTOR: '.carousel-item'\n @_PREV_CONTROL_SELECTOR: '.carousel-prev'\n @_NEXT_CONTROL_SELECTOR: '.carousel-next'\n @_INDICATORS_SELECTOR: '.carousel-indicators .btn'\n @_INTERVAL_ATTRIBUTE: 'data-carousel-interval'\n @_WRAP_ATTRIBUTE: 'data-carousel-wrap'\n @_ITEM_ACTIVE_CSS_CLASS: 'carousel-item-active'\n @_ITEM_NEXT_CSS_CLASS: 'carousel-item-next'\n @_ITEM_PREV_CSS_CLASS: 'carousel-item-prev'\n @_ACTIVE_INDEX: 0\n @_INTERVAL: 5000\n @_WRAP: true\n @_FALSE: 'false'\n @_ACTIVE_EVENT_TYPE: \"#{@_SCOPE}:active\"\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVE_EVENT_TYPE: \"#{@_SCOPE}:deactive\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [@_INTERVAL_ATTRIBUTE, @_WRAP_ATTRIBUTE]\n \n # public\n active: (index) ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n action = if index < activedIndex then '_slidePrev' else '_slideNext'\n @[action] @_$items[activedIndex], activedIndex\n\n next: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex + 1\n if index > @_$items.length - 1\n return unless @_wrap\n index = 0\n @_transiting = true\n @_activeIndex = index\n @_slideNext @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n prev: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex - 1\n if index < 0\n return unless @_wrap\n index = @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n @_slidePrev @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n pause: ->\n if @_intervaling?\n clearInterval @_intervaling\n @_intervaling = null\n @_pausedRemainTime = @_pausedRemainTime - (Date.now() - @_playTimeStamp)\n\n play: ->\n if @_interval and @_$items.length > 1\n @_playTimeStamp = Date.now()\n @pause()\n execute = =>\n @next()\n @_intervaling = setInterval @next.bind(this), @_interval\n @_intervaling = setTimeout execute, @_pausedRemainTime\n\n\n # private\n _getConfig: ->\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATORS_SELECTOR, @_$component, @constructor._SELECTOR\n _$prevControl = luda.$child \\\n @constructor._PREV_CONTROL_SELECTOR, @_$component\n _$nextControl = luda.$child \\\n @constructor._NEXT_CONTROL_SELECTOR, @_$component\n _activeIndex = _$items.indexOf \\\n luda.$child \".#{@constructor._ITEM_ACTIVE_CSS_CLASS}\", @_$component\n _activeIndex = @constructor._ACTIVE_INDEX if _activeIndex is -1\n _interval = @_$component.getAttribute(@constructor._INTERVAL_ATTRIBUTE)\n if _interval is @constructor._FALSE\n _interval = false\n else\n _interval = Math.abs(parseInt _interval, 10) or @constructor._INTERVAL\n _wrap = @_$component.getAttribute(@constructor._WRAP_ATTRIBUTE)\n _wrap = if _wrap is @constructor._FALSE then false else @constructor._WRAP\n {\n _$items,\n _$indicators,\n _$prevControl,\n _$nextControl,\n _activeIndex,\n _interval,\n _wrap\n }\n\n _constructor: ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_transiting = false\n @_intervaling = null\n @_playTimeStamp = 0\n @_pausedRemainTime = @_interval\n @_layout()\n @play()\n\n _onMutations: (mutations) ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_setIndicatorsState()\n @_setDirectionControlState()\n @play()\n\n _destroy: ->\n @pause()\n\n _layout: ->\n @_$items.forEach ($item, index) =>\n $item.style.transition = 'none'\n if index > @_activeIndex\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else if index < @_activeIndex\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else\n luda.dispatch($item, @constructor._ACTIVED_EVENT_TYPE, index)\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow($item)\n $item.style.transition = ''\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slideNext: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_PREV_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slidePrev: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n $indicator.disabled = index is @_activeIndex\n\n _setDirectionControlState: ->\n if @_$items.length <= 1\n @_$prevControl?.disabled = @_$nextControl?.disabled = true\n else\n @_$prevControl?.disabled = @_activeIndex is 0 and not @_wrap\n @_$nextControl?.disabled = \\\n @_activeIndex is @_$items.length - 1 and not @_wrap\n \n # static private\n @_init: ->\n self = this\n luda.on 'transitionend', @_ITEMS_SELECTOR, (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._transiting = false\n index = instance._$items.indexOf this\n if this.classList.contains self._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch(this, self._ACTIVED_EVENT_TYPE, index)\n else\n luda.dispatch(this, self._DEACTIVED_EVENT_TYPE, index)\n luda.on 'click', @_INDICATORS_SELECTOR, (e) ->\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this\n luda.on 'touchstart', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'touchend', @_SELECTOR, (e) ->\n setTimeout => self.query(this).play()\n luda.on 'mouseover', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'mouseout', @_SELECTOR, (e) ->\n self.query(this).play()\n luda.on luda._SWIPE_LEFT_OR_UP, @_SELECTOR, (startE, e) ->\n self.query(this).next()\n luda.on luda._SWIPE_RIGHT_OR_DOWN, @_SELECTOR, (startE, e) ->\n self.query(this).prev()\n luda.on 'click', @_PREV_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).prev()\n luda.on 'click', @_NEXT_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).next()","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'dropdown'\n @_SELECTOR: '.dropdown-fixed,.dropdown-absolute,\n .dropdown-static,.dropdown-absolute-m'\n @_MENU_SELECTOR: '.dropdown-menu'\n @_ITEMS_SELECTOR: 'a[href]:not([disabled]),button:not([disabled]),\n input:not([disabled]),[tabindex]:not([disabled])'\n @_TOGGLE_ATTRIBUTE: 'data-dropdown-toggle'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-dropdown-none-toggle'\n @_STANDALONE_ATTRIBUTE: 'data-dropdown-standalone'\n @_SWITCHES_SELECTOR: \"[#{@_TOGGLE_ATTRIBUTE}]\"\n @_NONE_SWITCHES_SELECTOR: \"[#{@_NONE_TOGGLE_ATTRIBUTE}]\"\n @_ACTIVE_CSS_CLASS: 'dropdown-active'\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n @_TOGGLE_ATTRIBUTE\n @_NONE_TOGGLE_ATTRIBUTE\n @_STANDALONE_ATTRIBUTE\n ]\n\n @_$focused: []\n\n active: ->\n unless @_actived()\n @_$component.classList.add @constructor._ACTIVE_CSS_CLASS\n @constructor._$focused.push document.activeElement\n @_parent?.active()\n luda.dispatch(@_$component, @constructor._ACTIVED_EVENT_TYPE)\n\n deactive: (focus) ->\n if @_actived()\n @_$component.classList.remove @constructor._ACTIVE_CSS_CLASS\n @_children.forEach (child) -> child.deactive()\n if focus\n @constructor._$focused[@constructor._$focused.length - 1]?.focus()\n @constructor._$focused.splice @constructor._$focused.length - 1, 1\n luda.dispatch(@_$component, @constructor._DEACTIVED_EVENT_TYPE)\n\n toggle: (focus) ->\n if @_actived() then @deactive(focus) else @active()\n\n prev: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) - 1\n focusIndex = 0 if focusIndex < 0\n @_$items[focusIndex].focus()\n\n next: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) + 1\n focusIndex = @_$items.length - 1 if focusIndex > @_$items.length - 1\n @_$items[focusIndex].focus()\n\n _getConfig: ->\n _$menu = luda.$child @constructor._MENU_SELECTOR, @_$component\n _$switches = luda.$unnested( \\\n @constructor._SWITCHES_SELECTOR, @_$component, @constructor._SELECTOR)\n .concat(luda.$unnested \\\n @constructor._SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$noneSwitches = luda.$unnested( \\\n @constructor._NONE_SWITCHES_SELECTOR, \\\n @_$component, @constructor._SELECTOR) \\\n .concat(luda.$unnested \\\n @constructor._NONE_SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, _$menu, @constructor._MENU_SELECTOR\n _isStandalone = @_$component.hasAttribute @constructor._STANDALONE_ATTRIBUTE\n {_$items, _$switches, _$noneSwitches, _isStandalone}\n\n _constructor: ->\n {\n @_$items,\n @_$switches,\n @_$noneSwitches,\n @_isStandalone\n } = @_getConfig()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _actived: ->\n @_$component.classList.contains @constructor._ACTIVE_CSS_CLASS\n\n _deactiveChildrenExcept: (exceptions) ->\n if exceptions and not (exceptions instanceof Array)\n exceptions = [exceptions]\n if exceptions\n @_children.forEach (child) ->\n child.deactive() if child._actived() and not exceptions.includes child\n else\n @_children.forEach (child) ->\n child.deactive() if child._actived()\n\n @deactiveExcept: (instances$dropdowns) ->\n exceptions = []\n if instances$dropdowns and not (instances$dropdowns instanceof Array)\n instances$dropdowns = [instances$dropdowns]\n if instances$dropdowns\n instances$dropdowns.forEach (instance$dropdown) =>\n exceptions.push exception if exception = @query instance$dropdown\n if exceptions.length\n @_instances.forEach (instance) ->\n instanceIsntInExceptions = not exceptions.includes instance\n instanceHasntExceptionChild = exceptions.every (exception) ->\n not instance._hasDescendant exception\n if instance._actived() \\\n and instanceIsntInExceptions \\\n and instanceHasntExceptionChild\n instance.deactive()\n else\n @_instances.forEach (instance) ->\n instance.deactive() if instance._actived()\n\n @_standaloneInstances: ->\n @_instances.filter (instance) -> instance if instance._isStandalone\n\n @_init: ->\n self = this\n luda.onOpposite 'click', @_SELECTOR, (e) ->\n self.deactiveExcept self._standaloneInstances()\n luda.on 'click', @_SELECTOR, (e) ->\n if instance = self.query this\n toggleChecked = false\n focus = not e.detail\n self.deactiveExcept(self._standaloneInstances().concat instance)\n instance._deactiveChildrenExcept()\n instance._parent._deactiveChildrenExcept(instance) if instance._parent\n if instance._$switches.length or instance._$noneSwitches.length\n luda.eventPath(e).some ($path) ->\n if instance._$switches.includes $path\n instance.toggle focus\n toggleChecked = true\n else if instance._$noneSwitches.includes $path\n toggleChecked = true\n instance.toggle focus unless toggleChecked\n\n luda.onOpposite 'keyup', @_SELECTOR, (e) -> self.deactiveExcept()\n luda.on 'keyup', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_TAB and instance = self.query this\n self.deactiveExcept(instance)\n instance.active()\n luda.on 'keydown', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_ESC and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.deactive true\n else\n instance._parent?.deactive true\n luda.on 'keydown', @_SELECTOR, (e) ->\n if [luda.KEY_LEFT, luda.KEY_UP].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.prev()\n else\n instance._parent?.prev()\n else if [luda.KEY_RIGHT, luda.KEY_DOWN].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.next()\n else\n instance._parent?.next()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\nimport '../behaviours/focus.coffee'\nimport '../behaviours/enter-click.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmDropdown'\n\n @_SELECTOR: '.fm-dropdown'\n @_VALUE_SPLITOR: ' '\n @_VALUE_ATTRIBUTE: 'data-fm-dropdown-value'\n @_VALUE_SELECTOR: '.dropdown-items .btn-radio input,\n .dropdown-items .btn-check input'\n @_DEFAULT_VALUE_SELECTOR: '.dropdown-items .btn-radio label,\n .dropdown-items .btn-check label'\n @_VALUE_HOLDER_SELECTOR: '.fm input'\n @_ENTER_CLICK_VALUE_HOLDER_SELECTOR: '.fm-dropdown .fm input'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n 'checked'\n @_VALUE_ATTRIBUTE\n ]\n\n _getConfig: ->\n _$values = luda.$children @constructor._VALUE_SELECTOR, @_$component\n _$defaultValues = luda.$children \\\n @constructor._DEFAULT_VALUE_SELECTOR, @_$component\n _$valueHolder = luda.$child \\\n @constructor._VALUE_HOLDER_SELECTOR, @_$component\n {_$values, _$valueHolder, _$defaultValues}\n\n _constructor: ->\n {\n @_$values,\n @_$valueHolder,\n @_$defaultValues\n } = @_getConfig()\n @_setValueHolderAttribute()\n @_setValueHolderValue()\n\n _onMutations: ->\n @_constructor()\n\n _setValueHolderValue: ->\n values = []\n @_$values.forEach ($value, index) =>\n if $value.checked\n if $value.hasAttribute @constructor._VALUE_ATTRIBUTE\n value = $value.getAttribute @constructor._VALUE_ATTRIBUTE\n else\n value = @_$defaultValues[index].innerText\n values.push value if value and not values.includes value\n if @_$valueHolder\n @_$valueHolder.value = values.join @constructor._VALUE_SPLITOR\n\n _setValueHolderAttribute: ->\n @_$valueHolder.setAttribute('readonly', '') if @_$valueHolder\n\n @_init: ->\n self = this\n luda.enterClick._add @_ENTER_CLICK_VALUE_HOLDER_SELECTOR\n luda.on 'change', \"#{@_SELECTOR} #{@_VALUE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setValueHolderValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setValueHolderValue()\n # prevent ios device pop out wired navigation pannel\n if /iphone/i.test(navigator.userAgent) or /ipad/i.test(navigator.userAgent)\n luda.on 'focusin', @_ENTER_CLICK_VALUE_HOLDER_SELECTOR, (e) ->\n this.blur()\n this.classList.add luda.focus._CSS_CLASS","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'tab'\n\n @_SELECTOR: '.tab'\n @_PANE_SELECTOR: '.tab-pane'\n @_INDICATOR_SELECTOR: '.tab-indicators .btn-radio input[type=radio]'\n @_PANE_ACTIVE_CSS_CLASS: 'tab-pane-active'\n @_ACTIVE_INDEX: 0\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n subtree: true\n \n # public\n active: (index) ->\n if @_$panes.length\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$panes.length - 1\n @_activeIndex = index\n @_active(activedIndex)\n\n # private\n _getConfig: ->\n _$panes = luda.$unnested \\\n @constructor._PANE_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATOR_SELECTOR, @_$component, @constructor._SELECTOR\n _activeIndex = @constructor._ACTIVE_INDEX\n _$indicators.some ($indicator, index) ->\n if $indicator.checked\n _activeIndex = index\n true\n {_$panes, _$indicators, _activeIndex}\n\n _constructor: ->\n {\n @_$panes,\n @_$indicators,\n @_activeIndex\n } = @_getConfig()\n @_active()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _active: (activedIndex) ->\n @_$panes.forEach ($pane, index) =>\n if index is @_activeIndex\n $pane.classList.add @constructor._PANE_ACTIVE_CSS_CLASS\n luda.dispatch($pane, @constructor._ACTIVED_EVENT_TYPE, index)\n else\n $pane.classList.remove @constructor._PANE_ACTIVE_CSS_CLASS\n if index is activedIndex\n luda.dispatch($pane, @constructor._DEACTIVED_EVENT_TYPE, index)\n @_setIndicatorsState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n if index is @_activeIndex\n $indicator.setAttribute 'checked', ''\n else\n $indicator.removeAttribute 'checked'\n\n # static private\n @_init: ->\n self = this\n luda.on 'change', @_INDICATOR_SELECTOR, (e) ->\n if this.checked\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this"]}
|
1
|
+
{"version":3,"sources":["../../src/coffee/install.coffee","../../src/coffee/constants.coffee","../../src/coffee/dom.coffee","../../src/coffee/event.coffee","../../src/coffee/utilities.coffee","../../src/coffee/singleton.coffee","../../src/coffee/behaviors/enter-click.coffee","../../src/coffee/behaviors/focus.coffee","../../src/coffee/behaviors/radio-tab.coffee","../../src/coffee/component.coffee","../../src/coffee/behaviors/readonly.coffee","../../src/coffee/behaviors/toggle.coffee","../../src/coffee/elements/form-file.coffee","../../src/coffee/elements/form-select.coffee","../../src/coffee/patterns/carousel.coffee","../../src/coffee/patterns/dropdown.coffee","../../src/coffee/patterns/form-dropdown.coffee","../../src/coffee/patterns/tab.coffee"],"names":["ENV","document","window","global","Error","luda","installer","installed","name","property","includes","hasOwnProperty","_SCOPE","_install","Array","namespace","installedInstaller","installedName","ref","console","warn","KEY_LEFT","KEY_UP","KEY_RIGHT","KEY_DOWN","KEY_TAB","KEY_ESC","KEY_ENTER","$child","selector","$ancestor","querySelector","$children","$descendant","descendants","this","from","querySelectorAll","$unnested","ancestorSelector","filter","$parent","parentNode","matches","$parents","_ancestors","push","$after","$node","$target","lastChild","appendChild","insertBefore","nextSibling","$prepend","firstChild","reflow","$element","offsetHeight","splice","_SWIPE_DISTANCE","_EVENT_TYPE_PREFIX","_SWIPE_LEFT","_SWIPE_RIGHT","_SWIPE_UP","_SWIPE_DOWN","_SWIPE_LEFT_OR_UP","_SWIPE_RIGHT_OR_DOWN","_DOC_READY","_FORM_RESET","eventPath","event","path","composedPath","target","concat","on","handler","call","_onDocReady","_onReset","_onSwipe","_on","onOpposite","_self","addEventListener","e","trigger","every","dispatch","type","detail","options","evt","bubbles","cancelable","composed","Event","dispatchEvent","readyState","forEach","bind","$touchStartElement","touchStartE","touchStartX","touchStartY","watch","touches","length","screenX","screenY","some","eventX","eventXOrY","eventY","touchDistanceX","touchDistanceY","Math","abs","except","element","arr","indexOf","Singleton","[object Object]","_actived","_SELECTOR_INVALID_ERROR","_SELECTORS","_mergeSelectors","_selector","join","exposed","_init","self","keyCode","preventDefault","setTimeout","click","_Class","$exception","_$focus","$focus","classList","remove","_CSS_CLASS","body","documentElement","add","_removeFocusClassExcept","_addFocusClassExceptHtmlAndBody","_PARENT_FOCUS_CHILDREN_SELECTOR","_PARENT_FOCUS_SELECTOR","blur","focus","HTMLElement","prototype","apply","arguments","activeElement","_setElementPrototype","_changeFocusStateOnKeyEvent","_changeFocusStateOnMouseDownEvent","_TOUCHSTART_FOCUS_SELECTOR","getElementsByClassName","$radio","$inputs","$input","tabIndex","$next","$prev","$sameNameRadios","radioIndex","_querySameName$radios","nodeName","toUpperCase","shiftKey","_query$prev$next","Component","descendant","_children","child","_hasDescendant","_observer","MutationObserver","_onMutations","observe","_$component","constructor","_observerConfig","disconnect","$component","$family","componentIsElementInstance","instance","parent","Element","_$COMPONENT_INVALID_ERROR","_query$family","query","_$parent","_instances","_createInstance","_parent","_$children","create","instance$component","attribute","results","value","_disconnect","_destroy","destroy","inited","_SELECTOR","_constructor","_observe","classObj","mutations","mutation","$addedNodes","$removedNodes","removedNodes","addedNodes","_Observed","Observed","$destroies","$destroy","$creates","$create","_COMPONENT_NO_SELECTOR_ERROR","childList","subtree","_isReadonly","_originalTabIndex","readonly","getAttribute","_READONLY_ATTRIBUTE","_READONLY_FALSE_VALUE","_getConfig","_setTabIndex","attributes","attributeFilter","name$target","_query$targets","_ACTIVE_CSS_CLASS","_ACTIVED_EVENT_TYPE","_DEACTIVED_EVENT_TYPE","contains","deactive","active","_TOGGLE_TARGET_ATTRIBUTE","toggleChecked","$path","$toggle","toggleName","hasAttribute","_TOGGLE_ATTRIBUTE","_TOGGLE_FOR_ATTRIBUTE","toggle","_NONE_TOGGLE_ATTRIBUTE","_$file","_$simulator","_FILE_SELECTOR","_SIMULATOR_SELECTOR","createElement","placeholder","_PLACEHOLDER_ATTRIBUTE","values","files","map","file","_VALUE_SPLITOR","_VALUE_ATTRIBUTE","_insertSimulator","_setPlaceholderValue","_setSimulatorValue","indexOrIndexArray","selectedIndexes","_$select","multiple","_$multipleSelectPlaceholder","index","$option","selected","_markSelectedOption","selectedIndex","_setSingleSelectSimulatorValue","_$defaultSelectedOptions","_$singleSelectSimulator","_defaultSelectedOptionMarked","_SELECT_SELECTOR","_SINGLE_SELECT_SIMULATOR_SELECTOR","_MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS","_DEFAULT_SELECTED_OPTION_ATTRIBUTE","_INITED_ATTRIBUTE","_initMultipleSelect","_initSingleSelect","setAttribute","removeAttribute","hasSelected","$selectedOption","innerText","_insertSingleSelectSimulator","_setSingleSelectedDefaultSelectedOption","_setSingleSelectPlaceholderValue","_markDefaultSelectedOption","className","disabled","_insertMultipleSelectBlankOption","_setMultipleSelectPlaceholderValue","_reset","action","activedIndex","_$items","_transiting","_activeIndex","_wrap","_slideNext","_playTimeStamp","Date","now","_pausedRemainTime","_interval","_slidePrev","_intervaling","clearInterval","execute","pause","next","setInterval","_$indicators","_$nextControl","_$prevControl","_ITEMS_SELECTOR","_INDICATORS_SELECTOR","_PREV_CONTROL_SELECTOR","_NEXT_CONTROL_SELECTOR","_ITEM_ACTIVE_CSS_CLASS","_ACTIVE_INDEX","_INTERVAL_ATTRIBUTE","_FALSE","parseInt","_INTERVAL","_WRAP_ATTRIBUTE","_WRAP","_layout","play","_setIndicatorsState","_setDirectionControlState","$item","style","transition","_ITEM_NEXT_CSS_CLASS","_ITEM_PREV_CSS_CLASS","$activedItem","_ACTIVE_EVENT_TYPE","_DEACTIVE_EVENT_TYPE","$indicator","ref1","ref2","ref3","startE","prev","_$focused","focusIndex","_$menu","_$noneSwitches","_$switches","_isStandalone","_MENU_SELECTOR","_SWITCHES_SELECTOR","_NONE_SWITCHES_SELECTOR","_STANDALONE_ATTRIBUTE","exceptions","instances$dropdowns","instance$dropdown","exception","instanceHasntExceptionChild","instanceIsntInExceptions","deactiveExcept","_standaloneInstances","_deactiveChildrenExcept","_$defaultValues","_$valueHolder","_$values","_VALUE_SELECTOR","_DEFAULT_VALUE_SELECTOR","_VALUE_HOLDER_SELECTOR","_setValueHolderAttribute","_setValueHolderValue","$value","checked","enterClick","_add","_ENTER_CLICK_VALUE_HOLDER_SELECTOR","test","navigator","userAgent","_$panes","_active","_PANE_SELECTOR","_INDICATOR_SELECTOR","$pane","_PANE_ACTIVE_CSS_CLASS"],"mappings":";;;;;2LAAA,IAAAA,IAAAA,IAAM,WACJ,UAAUC,WAAc,YAAxB,CACE,UAAwBC,SAAY,YAApC,CAAA,OAAOA,OACP,UAAwBC,SAAY,YAApC,CAAA,OAAOA,QACT,MAAM,IAAIC,MAAM,oCAJZ,GASN,UAAcJ,IAAIK,OAAQ,WAA1B,CACEL,IAAIK,KAAO,SAACC,WACV,IAAAC,UAAAC,KAAAC,SAAA,IAAuDH,UAAvD,CAAA,MAAM,IAAIF,MAAM,iCAChB,IAAO,CAAC,SAAU,YAAYM,gBAAgBJ,WAA9C,CACE,MAAM,IAAIF,MAAM,gDAClB,GAAGE,UAAUK,eAAe,UAA5B,CACE,UAAcL,UAAUM,SAAU,SAAlC,CACE,MAAM,IAAIR,MAAM,yBAClB,OAAOJ,IAAIK,KAAKQ,SAASP,UAAUM,OAAQN,WAC7C,GAAGA,qBAAqBQ,cAAgBR,YAAa,WAArD,CACE,MAAM,IAAIF,MAAM,sCAClBG,UAAY,GACZ,IAAAC,QAAAF,UAAA,0BACEC,UAAUC,MAAQR,IAAIK,KAAKQ,SAASL,KAAMC,iBAC5CF,WAEFP,IAAIK,KAAKQ,SAAW,SAACE,UAAWT,WAC9B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,GAAG,SAAUzC,KAAC8W,oBAAqB,SAAC3T,GACvC,IAAA2G,SAAA,GAAG9J,KAAKoW,QAAR,CACEtM,SAAW5D,KAAKiE,MAAMjM,KAAKoC,QAAQ4F,KAAKgF,UAAWlL,cACnD8J,SAASwD,OAAOxD,SAASyI,aAAahN,QAAQvF,YAxEpDuG,OAAC9H,OAAQ,MAET8H,OAAC2E,UAAW,OACZ3E,OAACsQ,eAAgB,YACjBtQ,OAACuQ,oBAAqB,+CACtBvQ,OAACyQ,uBAAwB,kBACzBzQ,OAACwM,cAAe,EAChBxM,OAAC2G,uBAAwB3G,OAAC9H,iBAC1B8H,OAAC4G,yBAA0B5G,OAAC9H,mBAE5B8H,OAACkD,gBACC,CAAA0C,UAAW,KACXC,QAAS","sourcesContent":["ENV = (->\n if typeof document isnt 'undefined'\n return window if typeof window isnt 'undefined'\n return global if typeof global isnt 'undefined'\n throw new Error 'Unsupported runtime environment.'\n)()\n\n\n\nunless typeof ENV.luda is 'function'\n ENV.luda = (installer) ->\n throw new Error 'Installer cannot be detected.' unless installer\n unless ['object', 'function'].includes typeof installer\n throw new Error 'Installer must be object, array or function.'\n if installer.hasOwnProperty '_SCOPE'\n unless typeof installer._SCOPE is 'string'\n throw new Error '_SCOPE must be string'\n return ENV.luda._install installer._SCOPE, installer\n if installer instanceof Array or typeof installer is 'function'\n throw new Error 'Unscoped installer must be object.'\n installed = {}\n for name, property of installer\n installed[name] = ENV.luda._install name, property\n installed\n\n ENV.luda._install = (namespace, installer) ->\n if ENV.luda[namespace]\n console.warn \"Namespace #{namespace} is ocupied, sikp installation.\"\n return ENV.luda[namespace]\n for installedName, installedInstaller of ENV.luda\n if installer is installedInstaller\n console.warn \"Installer is installed with name #{installedName},\n skip installation.\"\n return ENV.luda[installedName]\n if installer._install\n if typeof installer._install is 'function'\n return ENV.luda[namespace] = installer._install()\n return ENV.luda[namespace] = installer._install\n ENV.luda[namespace] = installer","import './install.coffee'\n\n\n\nluda\n\n KEY_LEFT: 37\n KEY_UP: 38\n KEY_RIGHT: 39\n KEY_DOWN: 40\n KEY_TAB: 9\n KEY_ESC: 27\n KEY_ENTER: 13","import './install.coffee'\n\n\n\nluda\n \n $child: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $ancestor.querySelector selector\n\n $children: (selector, $ancestor) ->\n $ancestor = document unless $ancestor\n $descendant = @$child selector, $ancestor\n if $descendant\n descendants = Array.from($ancestor.querySelectorAll selector)\n else\n descendants = []\n\n $unnested: (selector, $ancestor, ancestorSelector) ->\n descendants = @$children selector, $ancestor\n descendants.filter ($descendant) =>\n $descendant if @$parent(ancestorSelector, $descendant) is $ancestor\n\n $parent: (selector, $descendant) ->\n $ancestor = $descendant.parentNode\n if $ancestor\n if $ancestor.matches and $ancestor.matches selector\n $ancestor\n else\n @$parent selector, $ancestor\n\n $parents: (selector, $descendant, _ancestors) ->\n $ancestor = @$parent selector, $descendant\n _ancestors = [] unless _ancestors\n if $ancestor\n _ancestors.push($ancestor)\n @$parents selector, $ancestor, _ancestors\n else\n _ancestors\n\n $after: ($node, $target) ->\n $parent = $target.parentNode\n if $parent.lastChild is $target\n $parent.appendChild $node\n else\n $parent.insertBefore $node, $target.nextSibling\n\n $prepend: ($node, $target) ->\n if $target.firstChild\n $target.insertBefore $node, $target.firstChild\n else\n $target.appendChild $node\n\n reflow: ($element) -> $element.offsetHeight","import './install.coffee'\nimport './dom.coffee'\n\n\n\nluda\n \n _SWIPE_DISTANCE: 10\n _EVENT_TYPE_PREFIX: 'luda'\n _SWIPE_LEFT: 'swipeleft'\n _SWIPE_RIGHT: 'swiperight'\n _SWIPE_UP: 'swipeup'\n _SWIPE_DOWN: 'swipedown'\n _SWIPE_LEFT_OR_UP: 'swipeleft or swipeup'\n _SWIPE_RIGHT_OR_DOWN: 'swiperight or swipedown'\n _DOC_READY: 'docready'\n _FORM_RESET: 'reset'\n\n eventPath: (event) ->\n if event.composedPath\n path = event.composedPath()\n else if event.path\n path = event.path\n else\n path = [event.target].concat(luda.$parents '*', event.target)\n\n on: (event, selector..., handler) ->\n switch event\n when @_DOC_READY then @_onDocReady handler\n when @_FORM_RESET then @_onReset selector[0], handler\n when @_SWIPE_LEFT, \\\n @_SWIPE_RIGHT, \\\n @_SWIPE_UP, \\\n @_SWIPE_DOWN, \\\n @_SWIPE_LEFT_OR_UP, \\\n @_SWIPE_RIGHT_OR_DOWN\n then @_onSwipe event, selector[0], handler\n else @_on event, selector[0], handler\n\n onOpposite: (event, selector, handler) ->\n _self = this\n document.addEventListener event, (e) ->\n trigger = _self.eventPath(e).every ($element) ->\n not $element.matches or not $element.matches selector\n handler e if trigger\n\n dispatch: ($target, type, detail, options = {}) ->\n options.bubbles = true unless typeof options.bubbles is 'boolean'\n options.cancelable = true unless typeof options.cancelable is 'boolean'\n options.composed = true unless typeof options.composed is 'boolean'\n evt = new Event \"#{@_EVENT_TYPE_PREFIX}:#{type}\", options\n evt.detail = detail\n $target.dispatchEvent evt\n evt\n \n _onDocReady: (handler) ->\n if document.readyState is 'loading'\n document.addEventListener 'DOMContentLoaded', handler\n else\n handler()\n\n _onReset: (selector, handler) ->\n document.addEventListener 'reset', (e) ->\n if selector?\n luda.$children(selector, e.target).forEach ($element) ->\n handler.bind($element)(e)\n else\n handler e\n \n _onSwipe: (event, selector, handler) ->\n _self = this\n watch = false\n $touchStartElement = document\n touchStartE = null\n touchStartX = 0\n touchStartY = 0\n document.addEventListener 'touchstart', (e) ->\n if e.touches.length is 1\n touchStartX = e.touches[0].screenX\n touchStartY = e.touches[0].screenY\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n $touchStartElement = $element\n touchStartE = e\n watch = true\n return true\n else\n watch = true\n\n document.addEventListener 'touchmove', (e) ->\n if watch and e.touches.length is 1\n touchDistanceX = e.touches[0].screenX - touchStartX\n touchDistanceY = e.touches[0].screenY - touchStartY\n eventX = undefined\n eventY = undefined\n eventXOrY = undefined\n if Math.abs(touchDistanceX) >= _self._SWIPE_DISTANCE\n if touchDistanceX > 0\n eventX = _self._SWIPE_RIGHT\n else\n eventX = _self._SWIPE_LEFT\n if Math.abs(touchDistanceY) >= _self._SWIPE_DISTANCE\n if touchDistanceY > 0\n eventY = _self._SWIPE_DOWN\n else\n eventY = _self._SWIPE_UP\n if eventX is _self._SWIPE_LEFT \\\n or eventY is _self._SWIPE_UP\n eventXOrY = _self._SWIPE_LEFT_OR_UP\n if eventX is _self._SWIPE_RIGHT \\\n or eventY is _self._SWIPE_DOWN\n eventXOrY = _self._SWIPE_RIGHT_OR_DOWN\n if (eventX? and eventX is event) \\\n or (eventY? and eventY is event) \\\n or eventXOrY is event\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element is $touchStartElement\n watch = false\n handler.bind($element)(touchStartE, e)\n return true\n else\n watch = false\n handler touchStartE, e\n\n _on: (event, selector, handler) ->\n if selector is window\n window.addEventListener event, (e) -> handler e\n else\n _self = this\n document.addEventListener event, (e) ->\n if selector?\n _self.eventPath(e).some ($element) ->\n if $element.matches and $element.matches selector\n handler.bind($element)(e)\n return true\n else\n handler e","import './install.coffee'\n\n\n\nluda\n \n except: (element, arr) ->\n arr.splice(arr.indexOf(element), 1) if arr.includes element","import './install.coffee'\nimport './utilities.coffee'\n\n\n \nluda class Singleton\n\n @_SCOPE: 'Singleton'\n \n @_SELECTOR_INVALID_ERROR: '@param selector must be a css selector string'\n @_SELECTORS: []\n\n @_selector: ''\n @_actived: true\n\n @active: ->\n @_actived = true\n\n @deactive: ->\n @_actived = false\n\n @_add: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n @_SELECTORS.push selector unless @_SELECTORS.includes selector\n @_mergeSelectors()\n\n @_remove: (selector) ->\n throw new Error @_SELECTOR_INVALID_ERROR if typeof selector isnt 'string'\n luda.except selector, @_SELECTORS\n @_mergeSelectors()\n\n @_mergeSelectors: ->\n @_selector = @_SELECTORS.join ','\n\n @_install: ->\n return this if this is Singleton\n @_SELECTORS = [] unless @hasOwnProperty '_SELECTORS'\n @_mergeSelectors()\n exposed = @_init() if typeof @_init is 'function'\n if exposed then exposed else this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'enterClick'\n\n @_SELECTORS: [\n 'input[type=checkbox]'\n 'input[type=radio]'\n '[tabindex]'\n ]\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_ENTER \\\n and e.target.matches self._selector\n e.preventDefault()\n setTimeout(-> e.target.click())","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'focus'\n\n @_CSS_CLASS: 'focus'\n # mouse focusable selectors\n @_SELECTORS: ['select'\n 'textarea'\n ':not(.btn-check):not(.btn-radio):not(.btn-file) >\n input:not([type=button]):not([type=submit]):not([type=reset])'\n ]\n @_TOUCHSTART_FOCUS_SELECTOR: 'input[type=range]'\n @_PARENT_FOCUS_SELECTOR: 'select[multiple]'\n @_PARENT_FOCUS_CHILDREN_SELECTOR: \"#{@_PARENT_FOCUS_SELECTOR} *\"\n\n @_$focus: document.getElementsByClassName(@_CSS_CLASS)\n\n @_removeFocusClassExcept: ($exception) ->\n Array.from(@_$focus).forEach ($focus) =>\n $focus.classList.remove @_CSS_CLASS if $focus isnt $exception\n\n @_addFocusClassExceptHtmlAndBody: ($target) ->\n if $target isnt document.body and $target isnt document.documentElement\n $target.classList.add @_CSS_CLASS\n\n @_changeFocusStateOnKeyEvent: (e) ->\n if @_actived\n @_removeFocusClassExcept e.target\n @_addFocusClassExceptHtmlAndBody e.target\n\n @_changeFocusStateOnMouseDownEvent: (e) ->\n if @_actived\n if e.target.matches @_PARENT_FOCUS_CHILDREN_SELECTOR\n target = luda.$parent @_PARENT_FOCUS_SELECTOR, e.target\n else\n target = e.target\n if target.matches @_selector\n @_removeFocusClassExcept target\n @_addFocusClassExceptHtmlAndBody target\n else\n @_removeFocusClassExcept()\n\n @_setElementPrototype: ->\n focus = HTMLElement.prototype.focus\n blur = HTMLElement.prototype.blur\n self = this\n HTMLElement.prototype.focus = ->\n focus.apply this, arguments\n if self._actived and document.activeElement is this\n self._removeFocusClassExcept this\n self._addFocusClassExceptHtmlAndBody this\n HTMLElement.prototype.blur = ->\n blur.apply this, arguments\n this.classList.remove self._CSS_CLASS if self._actived\n\n @_init: ->\n self = this\n @_setElementPrototype()\n luda.on 'keydown', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'keyup', @_changeFocusStateOnKeyEvent.bind this\n luda.on 'mousedown', @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'touchstart', @_TOUCHSTART_FOCUS_SELECTOR, \\\n @_changeFocusStateOnMouseDownEvent.bind this\n luda.on 'focusin', @_changeFocusStateOnMouseDownEvent.bind this","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'radioTab'\n\n @_SELECTORS: ['input[type=radio]:not([disabled])']\n\n @_querySameName$radios: ($radio) ->\n if $radio.name\n selector = \"#{@_selector}[name=#{$radio.name}]\"\n else\n selector = @_selector\n $inputs = luda.$children selector\n $inputs.filter ($input) -> $input.tabIndex >= 0\n\n @_query$prev$next: ($radio) ->\n $sameNameRadios = @_querySameName$radios $radio\n radioIndex = $sameNameRadios.indexOf $radio\n $prev = $sameNameRadios[radioIndex - 1]\n $next = $sameNameRadios[radioIndex + 1]\n {$prev, $next}\n\n @_init: ->\n self = this\n luda.on 'keydown', (e) ->\n if self._actived \\\n and e.keyCode is luda.KEY_TAB \\\n and e.target.nodeName.toUpperCase() is 'INPUT' \\\n and e.target.type is 'radio'\n if e.shiftKey\n if $prev = self._query$prev$next(e.target).$prev\n e.preventDefault()\n $prev.focus()\n else\n if $next = self._query$prev$next(e.target).$next\n e.preventDefault()\n $next.focus()","import './install.coffee'\nimport './utilities.coffee'\nimport './dom.coffee'\nimport './event.coffee'\n\n\n\n\nluda class Component\n\n @_SCOPE: 'Component'\n \n @_COMPONENT_NO_SELECTOR_ERROR: 'Extended component must has a css selector'\n @_$COMPONENT_INVALID_ERROR: '@param $component must be an instance of Element'\n @_SELECTOR: ''\n @_instances: []\n\n @_Observed: []\n @_observer: null\n @_observerConfig:\n childList: true\n subtree: true\n\n _hasDescendant: (descendant) ->\n if @_children.length and descendant\n return true if @_children.includes descendant\n return @_children.some (child) -> child._hasDescendant descendant\n else\n return false\n\n _observe: ->\n @_observer = new MutationObserver @_onMutations.bind this\n @_observer.observe @_$component, @constructor._observerConfig\n\n _disconnect: ->\n @_observer.disconnect()\n @_observer = null\n\n @create: ($component) ->\n componentIsElementInstance = $component instanceof Element\n throw new Error @_$COMPONENT_INVALID_ERROR unless componentIsElementInstance\n $family = @_query$family $component\n instance = @query $component\n if $family._$parent\n if parent = @query $family._$parent\n @_instances.push instance = @_createInstance $component unless instance\n if instance._parent isnt parent\n parent._children.push(instance) and (instance._parent = parent)\n $family._$children.forEach ($child) => @create $child\n return instance\n else\n @create $family._$parent\n return @query $component\n else\n @_instances.push instance = @_createInstance $component unless instance\n $family._$children.forEach ($child) => @create $child\n return instance\n\n @destroy: (instance$component) ->\n instance = @query instance$component\n if instance\n instance._disconnect() if instance._observer\n instance._destroy() if instance._destroy\n @destroy instance._children[0] while instance._children.length\n if instance._parent\n luda.except instance, instance._parent._children\n luda.except instance, @_instances\n for attribute, value of instance\n instance[attribute] = null\n \n @query: (instance$component) ->\n instance = null\n if instance$component instanceof this \\\n and @_instances.includes instance$component\n instance = instance$component\n else if instance$component instanceof Element\n @_instances.some (inited) ->\n if inited._$component is instance$component\n instance = inited\n return true\n return instance\n\n @_query$family: ($component) ->\n _$parent = null\n _$children = []\n if @_SELECTOR\n _$parent = luda.$parent @_SELECTOR, $component\n _$children = luda.$unnested @_SELECTOR, $component, @_SELECTOR\n {_$parent, _$children}\n\n @_createInstance: ($component) ->\n instance = new this()\n instance._$component = $component\n instance._parent = null\n instance._children = []\n instance._observer = null\n instance._constructor() if instance._constructor\n unless instance._observer and instance._onMutations and @_observerConfig\n instance._observe()\n instance\n\n @_observe: (classObj) ->\n unless Component._observer\n Component._observer = new MutationObserver (mutations) ->\n mutations.forEach (mutation) ->\n $removedNodes = Array.from mutation.removedNodes\n $addedNodes = Array.from mutation.addedNodes\n $removedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.destroy $node\n else\n $destroies = luda.$children Observed._SELECTOR, $node\n $destroies.forEach ($destroy) -> Observed.destroy $destroy\n $addedNodes.forEach ($node) ->\n if $node instanceof Element\n Component._Observed.forEach (Observed) ->\n if $node.matches Observed._SELECTOR\n Observed.create $node\n else\n $creates = luda.$children Observed._SELECTOR, $node\n $creates.forEach ($create) -> Observed.create $create\n Component._observer.observe document.documentElement, \\\n Component._observerConfig\n unless Component._Observed.includes classObj\n Component._Observed.push classObj\n\n @_install: ->\n self = this\n return this if this is Component\n unless @_SELECTOR or typeof @_SELECTOR isnt 'string'\n throw new Error @_COMPONENT_NO_SELECTOR_ERROR\n @_instances = [] unless @hasOwnProperty '_instances'\n exposed = @_init() if typeof @_init is 'function'\n luda.on luda._DOC_READY, ->\n luda.$children(self._SELECTOR).forEach ($component) ->\n self.create $component\n Component._observe(self)\n if exposed then exposed else this","import '../install.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'readonly'\n @_READONLY_ATTRIBUTE: 'data-readonly'\n @_READONLY_FALSE_VALUE: 'false'\n @_SELECTOR: \"[#{@_READONLY_ATTRIBUTE}]\"\n\n @_observerConfig:\n attributes: true\n attributeFilter: [@_READONLY_ATTRIBUTE]\n\n _getConfig: ->\n readonly = @_$component.getAttribute @constructor._READONLY_ATTRIBUTE\n _isReadonly = readonly isnt @constructor._READONLY_FALSE_VALUE\n _originalTabIndex = @_$component.tabIndex\n {_isReadonly, _originalTabIndex}\n \n _constructor: ->\n {\n @_isReadonly,\n @_originalTabIndex\n } = @_getConfig()\n @_setTabIndex()\n\n _onMutations: ->\n @_constructor()\n\n _setTabIndex: ->\n if @_isReadonly\n @_$component.tabIndex = -1\n else\n @_$component.tabIndex = @_originalTabIndex","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../singleton.coffee'\n\n\n\nluda class extends luda.Singleton\n\n @_SCOPE: 'toggle'\n @_TOGGLE_TARGET_ATTRIBUTE: 'data-toggle-target'\n @_TOGGLE_ATTRIBUTE: 'data-toggle'\n @_TOGGLE_FOR_ATTRIBUTE: 'data-toggle-for'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-toggle-disabled'\n @_ACTIVE_CSS_CLASS: 'toggle-active'\n @_SELECTORS: [\n \"[#{@_TOGGLE_FOR_ATTRIBUTE}]\"\n \"[#{@_TOGGLE_ATTRIBUTE}]\"\n ]\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @active: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.add @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_ACTIVED_EVENT_TYPE)\n\n @deactive: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n $target.classList.remove @_ACTIVE_CSS_CLASS\n luda.dispatch($target, @_DEACTIVED_EVENT_TYPE)\n\n @toggle: (name$target) ->\n @_query$targets(name$target).forEach ($target) =>\n if $target.classList.contains @_ACTIVE_CSS_CLASS\n @deactive($target)\n else\n @active($target)\n\n @_query$targets: (name$target) ->\n if name$target instanceof Element\n [name$target]\n else\n luda.$children \"[#{@_TOGGLE_TARGET_ATTRIBUTE}=#{name$target}]\"\n\n @_init: ->\n self = this\n luda.on 'click', @_selector, (e) ->\n toggleChecked = false\n luda.eventPath(e).some ($path) ->\n if $path instanceof Element\n if $path.hasAttribute(self._TOGGLE_ATTRIBUTE) \\\n or $path.hasAttribute(self._TOGGLE_FOR_ATTRIBUTE)\n if toggleName = $path.getAttribute self._TOGGLE_FOR_ATTRIBUTE\n self.toggle toggleName\n toggleChecked = true\n if $path.hasAttribute self._TOGGLE_ATTRIBUTE\n if $path.hasAttribute self._TOGGLE_TARGET_ATTRIBUTE\n $toggle = $path\n else\n $toggle = luda.$parent \\\n \"[#{self._TOGGLE_TARGET_ATTRIBUTE}]\", $path\n if $toggle\n self.toggle $toggle\n toggleChecked = true\n else if $path.hasAttribute self._NONE_TOGGLE_ATTRIBUTE\n toggleChecked = true","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmFile'\n\n @_VALUE_SPLITOR: ' '\n @_SELECTOR: '.fm-file'\n @_FILE_SELECTOR: 'input[type=file]'\n @_SIMULATOR_SELECTOR: 'input:not([type=file])'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_VALUE_ATTRIBUTE: 'value'\n\n @_observerConfig:\n childList: true\n subtree: true\n\n _getConfig: ->\n _$file = luda.$child @constructor._FILE_SELECTOR, @_$component\n _$simulator = luda.$child \\\n @constructor._SIMULATOR_SELECTOR, @_$component\n {_$file, _$simulator}\n\n _constructor: ->\n {\n @_$file,\n @_$simulator\n } = @_getConfig()\n @_init()\n\n _onMutations: ->\n @_constructor()\n\n _insertSimulator: ->\n @_$simulator = document.createElement 'input'\n @_$simulator.tabIndex = -1\n luda.$after @_$simulator, @_$file\n\n _setPlaceholderValue: ->\n @_$simulator.placeholder = \\\n @_$file.getAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSimulatorValue: ->\n values = []\n Array.from(@_$file.files).map (file) -> values.push file.name\n if values.length\n @_$simulator.value = values.join @constructor._VALUE_SPLITOR\n else if @_$file.hasAttribute(@constructor._VALUE_ATTRIBUTE)\n @_$simulator.value = @_$file.getAttribute @constructor._VALUE_ATTRIBUTE\n\n _init: ->\n if @_$file\n @_insertSimulator() unless @_$simulator\n if @_$file.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setPlaceholderValue()\n @_setSimulatorValue()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_FILE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setSimulatorValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setSimulatorValue()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmSelect'\n\n @_SELECTOR: '.fm-select'\n @_SELECT_SELECTOR: 'select'\n @_SINGLE_SELECT_SIMULATOR_SELECTOR: 'input'\n @_PLACEHOLDER_ATTRIBUTE: 'placeholder'\n @_MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS: 'fm-select-multiple-placeholder'\n @_DEFAULT_SELECTED_OPTION_ATTRIBUTE: 'data-fm-select-default-selected'\n @_INITED_ATTRIBUTE: 'data-fm-select-inited'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: ['selected']\n\n select: (indexOrIndexArray) ->\n if @_$select.multiple\n if @_$multipleSelectPlaceholder\n selectedIndexes = indexOrIndexArray\n else\n selectedIndexes = indexOrIndexArray.map (index) -> index + 1\n Array.from(@_$select.options).forEach ($option, index) ->\n $option.selected = selectedIndexes.includes index\n @_markSelectedOption()\n else\n @_$select.selectedIndex = selectedIndex\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _getConfig: ->\n _$select = luda.$child @constructor._SELECT_SELECTOR, @_$component\n _$singleSelectSimulator = luda.$child \\\n @constructor._SINGLE_SELECT_SIMULATOR_SELECTOR, @_$component\n _$multipleSelectPlaceholder = luda.$child \\\n \".#{@constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS}\", @_$component\n _$defaultSelectedOptions = luda.$children \\\n \"[#{@constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE}]\", @_$component\n _defaultSelectedOptionMarked = @_$component.hasAttribute \\\n @constructor._INITED_ATTRIBUTE\n {\n _$select,\n _$singleSelectSimulator,\n _$multipleSelectPlaceholder,\n _$defaultSelectedOptions,\n _defaultSelectedOptionMarked\n }\n\n _constructor: ->\n {\n @_$select,\n @_$singleSelectSimulator,\n @_$multipleSelectPlaceholder,\n @_$defaultSelectedOptions,\n @_defaultSelectedOptionMarked\n } = @_getConfig()\n if @_$select\n if @_$select.multiple\n @_initMultipleSelect()\n else\n @_initSingleSelect()\n \n _onMutations: ->\n @_constructor()\n\n _markSelectedOption: ->\n @_disconnect() if @_observer\n Array.from(@_$select.options).forEach ($option) ->\n if $option.selected\n $option.setAttribute 'selected', 'selected'\n else\n $option.removeAttribute 'selected'\n @_observe() unless @_observer\n\n _markDefaultSelectedOption: ->\n @_$component.setAttribute @constructor._INITED_ATTRIBUTE, ''\n Array.from(@_$select.options).forEach ($option) =>\n if $option.selected\n $option.setAttribute @constructor._DEFAULT_SELECTED_OPTION_ATTRIBUTE, ''\n\n _setSingleSelectedDefaultSelectedOption: ->\n hasSelected = Array.from(@_$select.options).some ($option) ->\n $option.getAttribute('selected') is 'selected'\n @_$select.selectedIndex = -1 unless hasSelected\n\n _insertSingleSelectSimulator: ->\n @_$singleSelectSimulator = document.createElement 'input'\n @_$singleSelectSimulator.tabIndex = -1\n luda.$after @_$singleSelectSimulator, @_$select\n\n _setSingleSelectPlaceholderValue: ->\n @_$singleSelectSimulator.placeholder = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _setSingleSelectSimulatorValue: ->\n if $selectedOption = @_$select.options[@_$select.selectedIndex]\n @_$singleSelectSimulator.value = $selectedOption.innerText\n else\n @_$singleSelectSimulator.value = ''\n\n _initSingleSelect: ->\n @_insertSingleSelectSimulator() unless @_$singleSelectSimulator\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_setSingleSelectedDefaultSelectedOption()\n @_setSingleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n @_setSingleSelectSimulatorValue()\n @_markSelectedOption()\n\n _insertMultipleSelectBlankOption: ->\n @_$multipleSelectPlaceholder = document.createElement 'option'\n @_$multipleSelectPlaceholder.className = \\\n @constructor._MULTIPLE_SELECT_PLACEHOLDER_CSS_CLASS\n @_$multipleSelectPlaceholder.disabled = true\n luda.$prepend @_$multipleSelectPlaceholder, @_$select\n\n _setMultipleSelectPlaceholderValue: ->\n @_$multipleSelectPlaceholder.innerText = @_$select.getAttribute \\\n @constructor._PLACEHOLDER_ATTRIBUTE\n\n _initMultipleSelect: ->\n unless @_$multipleSelectPlaceholder\n if @_$select.hasAttribute @constructor._PLACEHOLDER_ATTRIBUTE\n @_insertMultipleSelectBlankOption()\n @_setMultipleSelectPlaceholderValue()\n @_markDefaultSelectedOption() unless @_defaultSelectedOptionMarked\n\n _reset: ->\n if @_$select\n Array.from(@_$select.options).forEach ($option) =>\n $option.selected = @_$defaultSelectedOptions.includes $option\n @_setSingleSelectSimulatorValue() unless @_$select.multiple\n @_markSelectedOption()\n\n @_init: ->\n self = this\n luda.on 'change', \"#{@_SELECTOR} #{@_SELECT_SELECTOR}\", (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._setSingleSelectSimulatorValue() unless this.multiple\n instance._markSelectedOption()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._reset()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'carousel'\n\n @_SELECTOR: '.carousel'\n @_ITEMS_SELECTOR: '.carousel-item'\n @_PREV_CONTROL_SELECTOR: '.carousel-prev'\n @_NEXT_CONTROL_SELECTOR: '.carousel-next'\n @_INDICATORS_SELECTOR: '.carousel-indicators .btn'\n @_INTERVAL_ATTRIBUTE: 'data-carousel-interval'\n @_WRAP_ATTRIBUTE: 'data-carousel-wrap'\n @_ITEM_ACTIVE_CSS_CLASS: 'carousel-item-active'\n @_ITEM_NEXT_CSS_CLASS: 'carousel-item-next'\n @_ITEM_PREV_CSS_CLASS: 'carousel-item-prev'\n @_ACTIVE_INDEX: 0\n @_INTERVAL: 5000\n @_WRAP: true\n @_FALSE: 'false'\n @_ACTIVE_EVENT_TYPE: \"#{@_SCOPE}:active\"\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVE_EVENT_TYPE: \"#{@_SCOPE}:deactive\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [@_INTERVAL_ATTRIBUTE, @_WRAP_ATTRIBUTE]\n \n # public\n active: (index) ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n action = if index < activedIndex then '_slidePrev' else '_slideNext'\n @[action] @_$items[activedIndex], activedIndex\n\n next: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex + 1\n if index > @_$items.length - 1\n return unless @_wrap\n index = 0\n @_transiting = true\n @_activeIndex = index\n @_slideNext @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n prev: ->\n if @_$items.length and not @_transiting\n activedIndex = @_activeIndex\n index = activedIndex - 1\n if index < 0\n return unless @_wrap\n index = @_$items.length - 1\n @_transiting = true\n @_activeIndex = index\n @_slidePrev @_$items[activedIndex], activedIndex\n @_playTimeStamp = Date.now()\n @_pausedRemainTime = @_interval\n\n pause: ->\n if @_intervaling?\n clearInterval @_intervaling\n @_intervaling = null\n @_pausedRemainTime = @_pausedRemainTime - (Date.now() - @_playTimeStamp)\n\n play: ->\n if @_interval and @_$items.length > 1\n @_playTimeStamp = Date.now()\n @pause()\n execute = =>\n @next()\n @_intervaling = setInterval @next.bind(this), @_interval\n @_intervaling = setTimeout execute, @_pausedRemainTime\n\n\n # private\n _getConfig: ->\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATORS_SELECTOR, @_$component, @constructor._SELECTOR\n _$prevControl = luda.$child \\\n @constructor._PREV_CONTROL_SELECTOR, @_$component\n _$nextControl = luda.$child \\\n @constructor._NEXT_CONTROL_SELECTOR, @_$component\n _activeIndex = _$items.indexOf \\\n luda.$child \".#{@constructor._ITEM_ACTIVE_CSS_CLASS}\", @_$component\n _activeIndex = @constructor._ACTIVE_INDEX if _activeIndex is -1\n _interval = @_$component.getAttribute(@constructor._INTERVAL_ATTRIBUTE)\n if _interval is @constructor._FALSE\n _interval = false\n else\n _interval = Math.abs(parseInt _interval, 10) or @constructor._INTERVAL\n _wrap = @_$component.getAttribute(@constructor._WRAP_ATTRIBUTE)\n _wrap = if _wrap is @constructor._FALSE then false else @constructor._WRAP\n {\n _$items,\n _$indicators,\n _$prevControl,\n _$nextControl,\n _activeIndex,\n _interval,\n _wrap\n }\n\n _constructor: ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_transiting = false\n @_intervaling = null\n @_playTimeStamp = 0\n @_pausedRemainTime = @_interval\n @_layout()\n @play()\n\n _onMutations: (mutations) ->\n {\n @_$items,\n @_$indicators,\n @_$prevControl,\n @_$nextControl,\n @_activeIndex,\n @_interval,\n @_wrap\n } = @_getConfig()\n @_setIndicatorsState()\n @_setDirectionControlState()\n @play()\n\n _destroy: ->\n @pause()\n\n _layout: ->\n @_$items.forEach ($item, index) =>\n $item.style.transition = 'none'\n if index > @_activeIndex\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else if index < @_activeIndex\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n else\n luda.dispatch($item, @constructor._ACTIVED_EVENT_TYPE, index)\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow($item)\n $item.style.transition = ''\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slideNext: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_PREV_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _slidePrev: ($activedItem, activedIndex) ->\n if @_$items.length > 1\n $item = @_$items[@_activeIndex]\n luda.dispatch($item, \\\n @constructor._ACTIVE_EVENT_TYPE, @_activeIndex)\n $item.style.transition = 'none'\n $item.classList.remove @constructor._ITEM_NEXT_CSS_CLASS\n $item.classList.add @constructor._ITEM_PREV_CSS_CLASS\n luda.reflow $item\n $item.style.transition = ''\n $item.classList.remove @constructor._ITEM_PREV_CSS_CLASS\n $item.classList.add @constructor._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch($activedItem, \\\n @constructor._DEACTIVE_EVENT_TYPE, activedIndex)\n $activedItem.classList.remove @constructor._ITEM_ACTIVE_CSS_CLASS\n $activedItem.classList.add @constructor._ITEM_NEXT_CSS_CLASS\n @_setIndicatorsState()\n @_setDirectionControlState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n $indicator.disabled = index is @_activeIndex\n\n _setDirectionControlState: ->\n if @_$items.length <= 1\n @_$prevControl?.disabled = @_$nextControl?.disabled = true\n else\n @_$prevControl?.disabled = @_activeIndex is 0 and not @_wrap\n @_$nextControl?.disabled = \\\n @_activeIndex is @_$items.length - 1 and not @_wrap\n \n # static private\n @_init: ->\n self = this\n luda.on 'transitionend', @_ITEMS_SELECTOR, (e) ->\n instance = self.query(luda.$parent self._SELECTOR, this)\n instance._transiting = false\n index = instance._$items.indexOf this\n if this.classList.contains self._ITEM_ACTIVE_CSS_CLASS\n luda.dispatch(this, self._ACTIVED_EVENT_TYPE, index)\n else\n luda.dispatch(this, self._DEACTIVED_EVENT_TYPE, index)\n luda.on 'click', @_INDICATORS_SELECTOR, (e) ->\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this\n luda.on 'touchstart', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'touchend', @_SELECTOR, (e) ->\n setTimeout => self.query(this).play()\n luda.on 'mouseover', @_SELECTOR, (e) ->\n self.query(this).pause()\n luda.on 'mouseout', @_SELECTOR, (e) ->\n self.query(this).play()\n luda.on luda._SWIPE_LEFT_OR_UP, @_SELECTOR, (startE, e) ->\n self.query(this).next()\n luda.on luda._SWIPE_RIGHT_OR_DOWN, @_SELECTOR, (startE, e) ->\n self.query(this).prev()\n luda.on 'click', @_PREV_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).prev()\n luda.on 'click', @_NEXT_CONTROL_SELECTOR, (e) ->\n self.query(luda.$parent self._SELECTOR, this).next()","import '../install.coffee'\nimport '../constants.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'dropdown'\n @_SELECTOR: '.dropdown-fixed,.dropdown-absolute,\n .dropdown-static,.dropdown-absolute-m'\n @_MENU_SELECTOR: '.dropdown-menu'\n @_ITEMS_SELECTOR: 'a[href]:not([disabled]),button:not([disabled]),\n input:not([disabled]),[tabindex]:not([disabled])'\n @_TOGGLE_ATTRIBUTE: 'data-dropdown-toggle'\n @_NONE_TOGGLE_ATTRIBUTE: 'data-dropdown-toggle-disabled'\n @_STANDALONE_ATTRIBUTE: 'data-dropdown-standalone'\n @_SWITCHES_SELECTOR: \"[#{@_TOGGLE_ATTRIBUTE}]\"\n @_NONE_SWITCHES_SELECTOR: \"[#{@_NONE_TOGGLE_ATTRIBUTE}]\"\n @_ACTIVE_CSS_CLASS: 'dropdown-active'\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n @_TOGGLE_ATTRIBUTE\n @_NONE_TOGGLE_ATTRIBUTE\n @_STANDALONE_ATTRIBUTE\n ]\n\n @_$focused: []\n\n active: ->\n unless @_actived()\n @_$component.classList.add @constructor._ACTIVE_CSS_CLASS\n @constructor._$focused.push document.activeElement\n @_parent?.active()\n luda.dispatch(@_$component, @constructor._ACTIVED_EVENT_TYPE)\n\n deactive: (focus) ->\n if @_actived()\n @_$component.classList.remove @constructor._ACTIVE_CSS_CLASS\n @_children.forEach (child) -> child.deactive()\n if focus\n @constructor._$focused[@constructor._$focused.length - 1]?.focus()\n @constructor._$focused.splice @constructor._$focused.length - 1, 1\n luda.dispatch(@_$component, @constructor._DEACTIVED_EVENT_TYPE)\n\n toggle: (focus) ->\n if @_actived() then @deactive(focus) else @active()\n\n prev: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) - 1\n focusIndex = 0 if focusIndex < 0\n @_$items[focusIndex].focus()\n\n next: ->\n if @_$items.length and @_actived()\n focusIndex = @_$items.indexOf(document.activeElement) + 1\n focusIndex = @_$items.length - 1 if focusIndex > @_$items.length - 1\n @_$items[focusIndex].focus()\n\n _getConfig: ->\n _$menu = luda.$child @constructor._MENU_SELECTOR, @_$component\n _$switches = luda.$unnested( \\\n @constructor._SWITCHES_SELECTOR, @_$component, @constructor._SELECTOR)\n .concat(luda.$unnested \\\n @constructor._SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$noneSwitches = luda.$unnested( \\\n @constructor._NONE_SWITCHES_SELECTOR, \\\n @_$component, @constructor._SELECTOR) \\\n .concat(luda.$unnested \\\n @constructor._NONE_SWITCHES_SELECTOR, _$menu, @constructor._MENU_SELECTOR)\n _$items = luda.$unnested \\\n @constructor._ITEMS_SELECTOR, _$menu, @constructor._MENU_SELECTOR\n _isStandalone = @_$component.hasAttribute @constructor._STANDALONE_ATTRIBUTE\n {_$items, _$switches, _$noneSwitches, _isStandalone}\n\n _constructor: ->\n {\n @_$items,\n @_$switches,\n @_$noneSwitches,\n @_isStandalone\n } = @_getConfig()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _actived: ->\n @_$component.classList.contains @constructor._ACTIVE_CSS_CLASS\n\n _deactiveChildrenExcept: (exceptions) ->\n if exceptions and not (exceptions instanceof Array)\n exceptions = [exceptions]\n if exceptions\n @_children.forEach (child) ->\n child.deactive() if child._actived() and not exceptions.includes child\n else\n @_children.forEach (child) ->\n child.deactive() if child._actived()\n\n @deactiveExcept: (instances$dropdowns) ->\n exceptions = []\n if instances$dropdowns and not (instances$dropdowns instanceof Array)\n instances$dropdowns = [instances$dropdowns]\n if instances$dropdowns\n instances$dropdowns.forEach (instance$dropdown) =>\n exceptions.push exception if exception = @query instance$dropdown\n if exceptions.length\n @_instances.forEach (instance) ->\n instanceIsntInExceptions = not exceptions.includes instance\n instanceHasntExceptionChild = exceptions.every (exception) ->\n not instance._hasDescendant exception\n if instance._actived() \\\n and instanceIsntInExceptions \\\n and instanceHasntExceptionChild\n instance.deactive()\n else\n @_instances.forEach (instance) ->\n instance.deactive() if instance._actived()\n\n @_standaloneInstances: ->\n @_instances.filter (instance) -> instance if instance._isStandalone\n\n @_init: ->\n self = this\n luda.onOpposite 'click', @_SELECTOR, (e) ->\n self.deactiveExcept self._standaloneInstances()\n luda.on 'click', @_SELECTOR, (e) ->\n if instance = self.query this\n toggleChecked = false\n focus = not e.detail\n self.deactiveExcept(self._standaloneInstances().concat instance)\n instance._deactiveChildrenExcept()\n instance._parent._deactiveChildrenExcept(instance) if instance._parent\n if instance._$switches.length or instance._$noneSwitches.length\n luda.eventPath(e).some ($path) ->\n if instance._$switches.includes $path\n instance.toggle focus\n toggleChecked = true\n else if instance._$noneSwitches.includes $path\n toggleChecked = true\n instance.toggle focus unless toggleChecked\n\n luda.onOpposite 'keyup', @_SELECTOR, (e) -> self.deactiveExcept()\n luda.on 'keyup', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_TAB and instance = self.query this\n self.deactiveExcept(instance)\n instance.active()\n luda.on 'keydown', @_SELECTOR, (e) ->\n if e.keyCode is luda.KEY_ESC and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.deactive true\n else\n instance._parent?.deactive true\n luda.on 'keydown', @_SELECTOR, (e) ->\n if [luda.KEY_LEFT, luda.KEY_UP].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.prev()\n else\n instance._parent?.prev()\n else if [luda.KEY_RIGHT, luda.KEY_DOWN].includes(e.keyCode) \\\n and instance = self.query this\n e.preventDefault()\n if instance._actived()\n instance.next()\n else\n instance._parent?.next()","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\nimport '../behaviors/focus.coffee'\nimport '../behaviors/enter-click.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'fmDropdown'\n\n @_SELECTOR: '.fm-dropdown'\n @_VALUE_SPLITOR: ' '\n @_VALUE_ATTRIBUTE: 'data-fm-dropdown-value'\n @_VALUE_SELECTOR: '.dropdown-items .btn-radio input,\n .dropdown-items .btn-check input'\n @_DEFAULT_VALUE_SELECTOR: '.dropdown-items .btn-radio label,\n .dropdown-items .btn-check label'\n @_VALUE_HOLDER_SELECTOR: '.fm input'\n @_ENTER_CLICK_VALUE_HOLDER_SELECTOR: '.fm-dropdown .fm input'\n\n @_observerConfig:\n childList: true\n attributes: true\n subtree: true\n attributeFilter: [\n 'checked'\n @_VALUE_ATTRIBUTE\n ]\n\n _getConfig: ->\n _$values = luda.$children @constructor._VALUE_SELECTOR, @_$component\n _$defaultValues = luda.$children \\\n @constructor._DEFAULT_VALUE_SELECTOR, @_$component\n _$valueHolder = luda.$child \\\n @constructor._VALUE_HOLDER_SELECTOR, @_$component\n {_$values, _$valueHolder, _$defaultValues}\n\n _constructor: ->\n {\n @_$values,\n @_$valueHolder,\n @_$defaultValues\n } = @_getConfig()\n @_setValueHolderAttribute()\n @_setValueHolderValue()\n\n _onMutations: ->\n @_constructor()\n\n _setValueHolderValue: ->\n values = []\n @_$values.forEach ($value, index) =>\n if $value.checked\n if $value.hasAttribute @constructor._VALUE_ATTRIBUTE\n value = $value.getAttribute @constructor._VALUE_ATTRIBUTE\n else\n value = @_$defaultValues[index].innerText\n values.push value if value and not values.includes value\n if @_$valueHolder\n @_$valueHolder.value = values.join @constructor._VALUE_SPLITOR\n\n _setValueHolderAttribute: ->\n @_$valueHolder.setAttribute('readonly', '') if @_$valueHolder\n\n @_init: ->\n self = this\n luda.enterClick._add @_ENTER_CLICK_VALUE_HOLDER_SELECTOR\n luda.on 'change', \"#{@_SELECTOR} #{@_VALUE_SELECTOR}\", (e) ->\n self.query(luda.$parent self._SELECTOR, this)._setValueHolderValue()\n luda.on luda._FORM_RESET, @_SELECTOR, (e) ->\n setTimeout => self.query(this)._setValueHolderValue()\n # prevent ios device pop out wired navigation pannel\n if /iphone/i.test(navigator.userAgent) or /ipad/i.test(navigator.userAgent)\n luda.on 'focusin', @_ENTER_CLICK_VALUE_HOLDER_SELECTOR, (e) ->\n this.blur()\n this.classList.add luda.focus._CSS_CLASS","import '../install.coffee'\nimport '../dom.coffee'\nimport '../event.coffee'\nimport '../component.coffee'\n\n\n\nluda class extends luda.Component\n\n @_SCOPE: 'tab'\n\n @_SELECTOR: '.tab'\n @_PANE_SELECTOR: '.tab-pane'\n @_INDICATOR_SELECTOR: '.tab-indicators .btn-radio input[type=radio]'\n @_PANE_ACTIVE_CSS_CLASS: 'tab-pane-active'\n @_ACTIVE_INDEX: 0\n @_ACTIVED_EVENT_TYPE: \"#{@_SCOPE}:actived\"\n @_DEACTIVED_EVENT_TYPE: \"#{@_SCOPE}:deactived\"\n\n @_observerConfig:\n childList: true\n subtree: true\n \n # public\n active: (index) ->\n if @_$panes.length\n activedIndex = @_activeIndex\n if index? \\\n and index isnt @_activeIndex \\\n and 0 <= index <= @_$panes.length - 1\n @_activeIndex = index\n @_active(activedIndex)\n\n # private\n _getConfig: ->\n _$panes = luda.$unnested \\\n @constructor._PANE_SELECTOR, @_$component, @constructor._SELECTOR\n _$indicators = luda.$unnested \\\n @constructor._INDICATOR_SELECTOR, @_$component, @constructor._SELECTOR\n _activeIndex = @constructor._ACTIVE_INDEX\n _$indicators.some ($indicator, index) ->\n if $indicator.checked\n _activeIndex = index\n true\n {_$panes, _$indicators, _activeIndex}\n\n _constructor: ->\n {\n @_$panes,\n @_$indicators,\n @_activeIndex\n } = @_getConfig()\n @_active()\n\n _onMutations: (mutations) ->\n @_constructor()\n\n _active: (activedIndex) ->\n @_$panes.forEach ($pane, index) =>\n if index is @_activeIndex\n $pane.classList.add @constructor._PANE_ACTIVE_CSS_CLASS\n luda.dispatch($pane, @constructor._ACTIVED_EVENT_TYPE, index)\n else\n $pane.classList.remove @constructor._PANE_ACTIVE_CSS_CLASS\n if index is activedIndex\n luda.dispatch($pane, @constructor._DEACTIVED_EVENT_TYPE, index)\n @_setIndicatorsState()\n\n _setIndicatorsState: ->\n @_$indicators.forEach ($indicator, index) =>\n if index is @_activeIndex\n $indicator.setAttribute 'checked', ''\n else\n $indicator.removeAttribute 'checked'\n\n # static private\n @_init: ->\n self = this\n luda.on 'change', @_INDICATOR_SELECTOR, (e) ->\n if this.checked\n instance = self.query luda.$parent self._SELECTOR, this\n instance.active instance._$indicators.indexOf this"]}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -12,7 +12,7 @@
|
|
12
12
|
_CSS_PROPERTIES: [
|
13
13
|
{
|
14
14
|
display: 'flex',
|
15
|
-
position: ['sticky',
|
15
|
+
position: ['sticky||-webkit-sticky',
|
16
16
|
'fixed']
|
17
17
|
},
|
18
18
|
'transition',
|
@@ -20,7 +20,8 @@
|
|
20
20
|
],
|
21
21
|
_JS_PROPERTIES: {
|
22
22
|
es6Class: 'class X {}',
|
23
|
-
es6ArrowFunction: '((x) => x)()'
|
23
|
+
es6ArrowFunction: '((x) => x)()',
|
24
|
+
mutationObserver: 'new MutationObserver(function(){})'
|
24
25
|
},
|
25
26
|
_NOTIFY_MILLSECONDS: 500,
|
26
27
|
check: function() {
|
@@ -96,19 +97,33 @@
|
|
96
97
|
throw new Error('Unsupported CSS property: ' + property);
|
97
98
|
}
|
98
99
|
},
|
99
|
-
_CSSValueSupported: function(ele, property,
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
100
|
+
_CSSValueSupported: function(ele, property, valueStr) {
|
101
|
+
var i, len, value, values;
|
102
|
+
values = valueStr.split('||');
|
103
|
+
for (i = 0, len = values.length; i < len; i++) {
|
104
|
+
value = values[i];
|
105
|
+
ele.style[property] = value;
|
106
|
+
if (ele.style[property] === value) {
|
107
|
+
return;
|
108
|
+
}
|
104
109
|
}
|
110
|
+
this._notify();
|
111
|
+
throw new Error('Unsupported CSS property value: ' + property + ' ' + valueStr);
|
105
112
|
},
|
106
113
|
_notify: function() {
|
107
|
-
var _self, redirectUrl;
|
114
|
+
var _self, i, len, redirectUrl, ref, script;
|
108
115
|
redirectUrl = document.documentElement.getAttribute(this._URL_ATTRIBUTE);
|
109
116
|
if (redirectUrl) {
|
110
117
|
return location.href = redirectUrl;
|
111
118
|
}
|
119
|
+
ref = document.scripts;
|
120
|
+
for (i = 0, len = ref.length; i < len; i++) {
|
121
|
+
script = ref[i];
|
122
|
+
redirectUrl = script.getAttribute(this._URL_ATTRIBUTE);
|
123
|
+
if (redirectUrl) {
|
124
|
+
return location.href = redirectUrl;
|
125
|
+
}
|
126
|
+
}
|
112
127
|
_self = this;
|
113
128
|
return setInterval(function() {
|
114
129
|
if (!document.getElementById('luda-degradation-html')) {
|
@@ -1,17 +1,17 @@
|
|
1
|
-
//= require ./
|
2
|
-
//= require ./
|
3
|
-
//= require ./
|
4
|
-
//= require ./
|
5
|
-
//= require ./
|
1
|
+
//= require ./behaviors/enter-click
|
2
|
+
//= require ./behaviors/focus
|
3
|
+
//= require ./behaviors/radio-tab
|
4
|
+
//= require ./behaviors/readonly
|
5
|
+
//= require ./behaviors/toggle
|
6
6
|
//= require ./elements/form-file
|
7
7
|
//= require ./elements/form-select
|
8
|
-
//= require ./
|
9
|
-
//= require ./
|
10
|
-
//= require ./
|
11
|
-
//= require ./
|
8
|
+
//= require ./patterns/carousel
|
9
|
+
//= require ./patterns/dropdown
|
10
|
+
//= require ./patterns/form-dropdown
|
11
|
+
//= require ./patterns/tab
|
12
12
|
(function (global, factory) {
|
13
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./
|
14
|
-
typeof define === 'function' && define.amd ? define(['./
|
13
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./behaviors/enter-click.js'), require('./behaviors/focus.js'), require('./behaviors/radio-tab.js'), require('./behaviors/readonly.js'), require('./behaviors/toggle.js'), require('./elements/form-file.js'), require('./elements/form-select.js'), require('./patterns/carousel.js'), require('./patterns/dropdown.js'), require('./patterns/form-dropdown.js'), require('./patterns/tab.js')) :
|
14
|
+
typeof define === 'function' && define.amd ? define(['./behaviors/enter-click.js', './behaviors/focus.js', './behaviors/radio-tab.js', './behaviors/readonly.js', './behaviors/toggle.js', './elements/form-file.js', './elements/form-select.js', './patterns/carousel.js', './patterns/dropdown.js', './patterns/form-dropdown.js', './patterns/tab.js'], factory) :
|
15
15
|
(factory());
|
16
16
|
}(this, (function () { 'use strict';
|
17
17
|
|
File without changes
|
@@ -239,7 +239,7 @@
|
|
239
239
|
|
240
240
|
_Class._TOGGLE_ATTRIBUTE = 'data-dropdown-toggle';
|
241
241
|
|
242
|
-
_Class._NONE_TOGGLE_ATTRIBUTE = 'data-dropdown-
|
242
|
+
_Class._NONE_TOGGLE_ATTRIBUTE = 'data-dropdown-toggle-disabled';
|
243
243
|
|
244
244
|
_Class._STANDALONE_ATTRIBUTE = 'data-dropdown-standalone';
|
245
245
|
|
@@ -2,11 +2,11 @@
|
|
2
2
|
//= require ../dom
|
3
3
|
//= require ../event
|
4
4
|
//= require ../component
|
5
|
-
//= require ../
|
6
|
-
//= require ../
|
5
|
+
//= require ../behaviors/focus
|
6
|
+
//= require ../behaviors/enter-click
|
7
7
|
(function (global, factory) {
|
8
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../install.js'), require('../dom.js'), require('../event.js'), require('../component.js'), require('../
|
9
|
-
typeof define === 'function' && define.amd ? define(['../install.js', '../dom.js', '../event.js', '../component.js', '../
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../install.js'), require('../dom.js'), require('../event.js'), require('../component.js'), require('../behaviors/focus.js'), require('../behaviors/enter-click.js')) :
|
9
|
+
typeof define === 'function' && define.amd ? define(['../install.js', '../dom.js', '../event.js', '../component.js', '../behaviors/focus.js', '../behaviors/enter-click.js'], factory) :
|
10
10
|
(factory());
|
11
11
|
}(this, (function () { 'use strict';
|
12
12
|
|
File without changes
|
@@ -10,7 +10,7 @@ $breakpoint-aspect-ratios: (p: 0, l: 1.0001) !default
|
|
10
10
|
$breakpoint-resolutions: (l: 0, h: 105.6dpi, xh: 201.6dpi) !default
|
11
11
|
|
12
12
|
|
13
|
-
$space-base-rem:
|
13
|
+
$space-base-rem: 1rem !default
|
14
14
|
$space-tiny-rem: $space-base-rem / 2 !default
|
15
15
|
$space-small-rem: $space-base-rem !default
|
16
16
|
$space-medium-rem: $space-base-rem * 2 !default
|
@@ -55,9 +55,10 @@ $background-color-secondary: lighten($color-secondary, 30%) !default
|
|
55
55
|
$background-color-danger: $color-danger !default
|
56
56
|
$background-color-dark: $color-dark !default
|
57
57
|
$background-color-light: $color-light !default
|
58
|
+
$background-color-muted: darken($background-color-light, 3%) !default
|
58
59
|
$background-emphasis: lighten($background-color-primary, 22%) !default
|
59
60
|
$background-main: $background-color-light !default
|
60
|
-
$background-muted:
|
61
|
+
$background-muted: $background-color-muted !default
|
61
62
|
$background-inverse-emphasis: lighten($background-color-primary, 22%) !default
|
62
63
|
$background-inverse-main: $background-color-dark !default
|
63
64
|
$background-inverse-muted: lighten($background-color-dark, 3%) !default
|
@@ -85,6 +86,21 @@ $border-radius-main: $border-radius-sharp !default
|
|
85
86
|
|
86
87
|
|
87
88
|
|
89
|
+
$box-shadow-low: null !default
|
90
|
+
$box-shadow-normal: null !default
|
91
|
+
$box-shadow-high: null !default
|
92
|
+
$box-shadow-inset-low: null !default
|
93
|
+
$box-shadow-inset-normal: null !default
|
94
|
+
$box-shadow-inset-high: null !default
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
$text-shadow-low: null !default
|
99
|
+
$text-shadow-normal: null !default
|
100
|
+
$text-shadow-high: null !default
|
101
|
+
|
102
|
+
|
103
|
+
|
88
104
|
// variables for base
|
89
105
|
$base-cursor: default !default
|
90
106
|
$base-word-break: break-word !default
|
@@ -152,9 +168,9 @@ $button-primary-active-background: darken($background-color-primary, 4%) !d
|
|
152
168
|
$button-primary-border-color: null !default
|
153
169
|
$button-primary-hover-border-color: null !default
|
154
170
|
$button-primary-active-border-color: null !default
|
155
|
-
$button-primary-box-shadow:
|
156
|
-
$button-primary-hover-box-shadow:
|
157
|
-
$button-primary-active-box-shadow:
|
171
|
+
$button-primary-box-shadow: $box-shadow-normal !default
|
172
|
+
$button-primary-hover-box-shadow: $box-shadow-high !default
|
173
|
+
$button-primary-active-box-shadow: $button-primary-box-shadow !default
|
158
174
|
|
159
175
|
|
160
176
|
|
@@ -167,9 +183,9 @@ $button-secondary-active-background: darken($background-color-secondary, 4%
|
|
167
183
|
$button-secondary-border-color: null !default
|
168
184
|
$button-secondary-hover-border-color: null !default
|
169
185
|
$button-secondary-active-border-color: null !default
|
170
|
-
$button-secondary-box-shadow:
|
171
|
-
$button-secondary-hover-box-shadow:
|
172
|
-
$button-secondary-active-box-shadow:
|
186
|
+
$button-secondary-box-shadow: $box-shadow-normal !default
|
187
|
+
$button-secondary-hover-box-shadow: $box-shadow-high !default
|
188
|
+
$button-secondary-active-box-shadow: $button-secondary-box-shadow !default
|
173
189
|
|
174
190
|
|
175
191
|
|
@@ -182,9 +198,9 @@ $button-danger-active-background: darken($background-color-danger, 4%) !def
|
|
182
198
|
$button-danger-border-color: null !default
|
183
199
|
$button-danger-hover-border-color: null !default
|
184
200
|
$button-danger-active-border-color: null !default
|
185
|
-
$button-danger-box-shadow:
|
186
|
-
$button-danger-hover-box-shadow:
|
187
|
-
$button-danger-active-box-shadow:
|
201
|
+
$button-danger-box-shadow: $box-shadow-normal !default
|
202
|
+
$button-danger-hover-box-shadow: $box-shadow-high !default
|
203
|
+
$button-danger-active-box-shadow: $button-danger-box-shadow !default
|
188
204
|
|
189
205
|
|
190
206
|
|
@@ -197,9 +213,9 @@ $button-dark-active-background: darken($background-color-dark, 4%) !default
|
|
197
213
|
$button-dark-border-color: null !default
|
198
214
|
$button-dark-hover-border-color: null !default
|
199
215
|
$button-dark-active-border-color: null !default
|
200
|
-
$button-dark-box-shadow:
|
201
|
-
$button-dark-hover-box-shadow:
|
202
|
-
$button-dark-active-box-shadow:
|
216
|
+
$button-dark-box-shadow: $box-shadow-normal !default
|
217
|
+
$button-dark-hover-box-shadow: $box-shadow-high !default
|
218
|
+
$button-dark-active-box-shadow: $button-dark-box-shadow !default
|
203
219
|
|
204
220
|
|
205
221
|
|
@@ -212,9 +228,9 @@ $button-light-active-background: darken($background-color-light, 4%) !defau
|
|
212
228
|
$button-light-border-color: null !default
|
213
229
|
$button-light-hover-border-color: null !default
|
214
230
|
$button-light-active-border-color: null !default
|
215
|
-
$button-light-box-shadow:
|
216
|
-
$button-light-hover-box-shadow:
|
217
|
-
$button-light-active-box-shadow:
|
231
|
+
$button-light-box-shadow: $box-shadow-normal !default
|
232
|
+
$button-light-hover-box-shadow: $box-shadow-high !default
|
233
|
+
$button-light-active-box-shadow: $button-light-box-shadow !default
|
218
234
|
|
219
235
|
|
220
236
|
|
@@ -333,8 +349,8 @@ $button-text-light-active-text-shadow: null !default
|
|
333
349
|
|
334
350
|
|
335
351
|
|
336
|
-
$container-max-width-
|
337
|
-
$container-padding-rem:
|
352
|
+
$container-max-width-rem: 105.076923rem !default
|
353
|
+
$container-padding-rem: $space-medium-rem $space-small-rem !default
|
338
354
|
|
339
355
|
|
340
356
|
|
@@ -366,7 +382,7 @@ $form-element-border-color: $line-color-main !default
|
|
366
382
|
$form-element-error-border-color: $line-color-danger !default
|
367
383
|
$form-element-focus-border-color: $line-color-primary !default
|
368
384
|
$form-element-box-shadow: null !default
|
369
|
-
$form-element-focus-box-shadow:
|
385
|
+
$form-element-focus-box-shadow: $box-shadow-inset-low !default
|
370
386
|
$form-element-error-box-shadow: null !default
|
371
387
|
$form-element-icon-size-em: 1.286em !default
|
372
388
|
$form-element-icon-color: $form-element-border-color !default
|
@@ -393,7 +409,7 @@ $form-element-focus-checked-icon-color: null !default
|
|
393
409
|
|
394
410
|
|
395
411
|
$form-element-track-height-em: 0.4em !default
|
396
|
-
$form-element-track-background: darken($background-muted, 4%) !default !default
|
412
|
+
$form-element-track-background: darken($background-color-muted, 4%) !default !default
|
397
413
|
$form-element-focus-track-background: null !default
|
398
414
|
$form-element-error-track-background: null !default
|
399
415
|
$form-element-track-border-radius: $border-radius-main !default
|
@@ -466,7 +482,7 @@ $table-cell-padding-rem: $space-small-rem !default
|
|
466
482
|
$table-border-style: solid !default
|
467
483
|
$table-border-width: 1px !default
|
468
484
|
$table-border-color: $line-color-main !default
|
469
|
-
$table-border-radius:
|
485
|
+
$table-border-radius: $border-radius-main !default
|
470
486
|
$table-head-background: $background-muted !default
|
471
487
|
$table-head-color: $color-emphasis !default
|
472
488
|
$table-body-color: $color-main !default
|
@@ -532,7 +548,7 @@ $typography-code-block-padding-rem: 0 $space-medium-rem !default
|
|
532
548
|
$typography-code-padding-em: 0.2em 0.4em !default
|
533
549
|
$typography-code-background: $background-muted !default
|
534
550
|
$typography-code-color: $color-main !default
|
535
|
-
$typography-code-border-radius:
|
551
|
+
$typography-code-border-radius: $border-radius-main !default
|
536
552
|
|
537
553
|
|
538
554
|
|
@@ -557,40 +573,41 @@ $turbolinks-progress-bar-background: $background-color-primary !default
|
|
557
573
|
|
558
574
|
|
559
575
|
|
560
|
-
// variables for
|
576
|
+
// variables for patterns
|
561
577
|
$alert-padding-rem: $space-small-rem !default
|
562
|
-
$alert-border-radius:
|
578
|
+
$alert-border-radius: $border-radius-main !default
|
563
579
|
$alert-background: $background-color-dark !default
|
564
|
-
$alert-box-shadow:
|
580
|
+
$alert-box-shadow: $box-shadow-normal !default
|
565
581
|
$alert-action-margin-left-rem: $space-small-rem !default
|
566
582
|
$alert-title-color: $color-inverse-emphasis !default
|
567
583
|
$alert-content-color: $color-inverse-main !default
|
568
584
|
|
569
585
|
|
570
586
|
|
571
|
-
$avatar-image-size-rem:
|
572
|
-
$avatar-large-image-size-rem:
|
573
|
-
$avatar-small-image-size-rem:
|
574
|
-
$avatar-image-border-radius:
|
575
|
-
$avatar-default-image-background-size:
|
576
|
-
$avatar-default-image:
|
577
|
-
$avatar-
|
578
|
-
$avatar-
|
579
|
-
$avatar-
|
580
|
-
$avatar-large-
|
581
|
-
$avatar-large-
|
582
|
-
$avatar-large-
|
583
|
-
$avatar-small-
|
584
|
-
$avatar-small-
|
585
|
-
$avatar-small-
|
586
|
-
$avatar-name-typography-size-level:
|
587
|
-
$avatar-large-name-typography-size-level:
|
588
|
-
$avatar-small-name-typography-size-level:
|
589
|
-
$avatar-description-typography-size-level:
|
590
|
-
$avatar-large-description-typography-size-level:
|
591
|
-
$avatar-small-description-typography-size-level:
|
592
|
-
$avatar-
|
593
|
-
$avatar-
|
587
|
+
$avatar-image-size-rem: 3rem !default
|
588
|
+
$avatar-large-image-size-rem: 6rem !default
|
589
|
+
$avatar-small-image-size-rem: 2rem !default
|
590
|
+
$avatar-image-border-radius: 100% !default
|
591
|
+
$avatar-default-image-background-size: 50% auto !default
|
592
|
+
$avatar-default-image: svg-icon('<svg viewBox="0 0 512 512"><path fill="#fill" d="M437.02,330.98c-27.883-27.882-61.071-48.523-97.281-61.018C378.521,243.251,404,198.548,404,148 C404,66.393,337.607,0,256,0S108,66.393,108,148c0,50.548,25.479,95.251,64.262,121.962 c-36.21,12.495-69.398,33.136-97.281,61.018C26.629,379.333,0,443.62,0,512h40c0-119.103,96.897-216,216-216s216,96.897,216,216 h40C512,443.62,485.371,379.333,437.02,330.98z M256,256c-59.551,0-108-48.448-108-108S196.449,40,256,40 c59.551,0,108,48.448,108,108S315.551,256,256,256z"/></svg>',$line-color-muted) !default
|
593
|
+
$avatar-info-height-rem: 3rem !default
|
594
|
+
$avatar-info-padding-top-rem: 0.3rem !default
|
595
|
+
$avatar-info-padding-left-rem: 0.5rem !default
|
596
|
+
$avatar-large-info-height-rem: 4rem !default
|
597
|
+
$avatar-large-info-padding-top-rem: 0.6rem !default
|
598
|
+
$avatar-large-info-padding-left-rem: 0.5rem !default
|
599
|
+
$avatar-small-info-height-rem: null !default
|
600
|
+
$avatar-small-info-padding-top-rem: null !default
|
601
|
+
$avatar-small-info-padding-left-rem: null !default
|
602
|
+
$avatar-name-typography-size-level: 5 !default
|
603
|
+
$avatar-large-name-typography-size-level: 4 !default
|
604
|
+
$avatar-small-name-typography-size-level: 6 !default
|
605
|
+
$avatar-description-typography-size-level: 6 !default
|
606
|
+
$avatar-large-description-typography-size-level: 5 !default
|
607
|
+
$avatar-small-description-typography-size-level: null !default
|
608
|
+
$avatar-background-color: $background-color-muted !default
|
609
|
+
$avatar-name-color: $color-muted !default
|
610
|
+
$avatar-description-color: $avatar-name-color !default
|
594
611
|
|
595
612
|
|
596
613
|
|
@@ -646,9 +663,9 @@ $dropdown-width-breakpoint: m !default
|
|
646
663
|
$dropdown-static-menu-margin-left-rem: $space-small-rem !default
|
647
664
|
$dropdown-absolute-max-height-rem: 33rem !default
|
648
665
|
$dropdown-absolute-drop-gap-rem: $space-tiny-rem !default
|
649
|
-
$dropdown-absolute-border-radius:
|
666
|
+
$dropdown-absolute-border-radius: $border-radius-main !default
|
650
667
|
$dropdown-absolute-fixed-background: $background-main !default
|
651
|
-
$dropdown-absolute-box-shadow:
|
668
|
+
$dropdown-absolute-box-shadow: $box-shadow-normal !default
|
652
669
|
|
653
670
|
|
654
671
|
|
@@ -659,16 +676,15 @@ $form-group-element-vertical-margin-rem: $space-small-rem !default
|
|
659
676
|
$media-content-aspect-ratio: 16 / 9 !default
|
660
677
|
$media-border-radius: $border-radius-main !default
|
661
678
|
$media-background-color: $background-muted !default
|
662
|
-
$media-description-color: $color-muted !default
|
663
679
|
|
664
680
|
|
665
681
|
|
666
|
-
$modal-padding-rem:
|
667
|
-
$modal-in-overlay-max-width-
|
668
|
-
$modal-in-overlay-min-width-
|
669
|
-
$modal-background:
|
670
|
-
$modal-border-radius:
|
671
|
-
$modal-box-shadow:
|
682
|
+
$modal-padding-rem: $space-medium-rem !default
|
683
|
+
$modal-in-overlay-max-width-rem: 46.153846rem !default
|
684
|
+
$modal-in-overlay-min-width-rem: 24.615384rem !default
|
685
|
+
$modal-background: $background-muted !default
|
686
|
+
$modal-border-radius: $border-radius-main !default
|
687
|
+
$modal-box-shadow: $box-shadow-normal !default
|
672
688
|
|
673
689
|
|
674
690
|
|
@@ -685,7 +701,7 @@ $nav-background: $background-color-dark !default
|
|
685
701
|
|
686
702
|
|
687
703
|
|
688
|
-
$nav-header-box-shadow:
|
704
|
+
$nav-header-box-shadow: $box-shadow-normal !default
|
689
705
|
$nav-header-breakpoint-search-margin-rem: 0 $space-small-rem !default
|
690
706
|
$nav-header-breakpoint-items-margin-rem: 0 auto 0 0 !default
|
691
707
|
$nav-header-breakpoint-sub-items-margin-rem: 0 !default
|
@@ -701,7 +717,7 @@ $nav-aside-breakpoint-logo-image-height-rem: 7rem !default
|
|
701
717
|
$nav-aside-breakpoint-logo-image-width-rem: 9rem !default
|
702
718
|
$nav-aside-breakpoint-min-width-rem: 18rem !default
|
703
719
|
$nav-aside-breakpoint-max-width-rem: 20rem !default
|
704
|
-
$nav-aside-breakpoint-box-shadow:
|
720
|
+
$nav-aside-breakpoint-box-shadow: $box-shadow-normal !default
|
705
721
|
|
706
722
|
|
707
723
|
|