@fintatech/fintachart 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +10 -8
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/basic-objects.html +2 -6
- package/css/FintaChart.min.css +1 -1
- package/custom-indicator.html +2 -6
- package/d.ts/FintaChart.d.ts +523 -179
- package/d.ts/frameworks/bootstrap.v3.datetimepicker.d.ts +3 -3
- package/d.ts/frameworks/html2canvas.d.ts +0 -2
- package/d.ts/frameworks-modified/autocolumnlist.d.ts +8 -0
- package/d.ts/frameworks-modified/spectrum.d.ts +17 -26
- package/d.ts/frameworks-modified/toastr.d.ts +9 -10
- package/htmldialogs/Toolbar.html +4 -4
- package/index-dark.html +2 -6
- package/index.html +2 -6
- package/multiple-charts.html +2 -6
- package/package.json +1 -1
- package/scripts/FintaChart.min.js +2 -2
- package/scripts/frameworks/bootstrap.v3.datetimepicker.min.js +10 -10
- package/scripts/frameworks-modified/autocolumnlist.js +48 -0
- package/scripts/frameworks-modified/spectrum.js +187 -6
- package/scripts/frameworks-modified/switchery.js +1 -1
- package/scripts/frameworks-modified/toastr.js +283 -382
- package/scripts/jsdataadapters/fileDataAdapter.js +2 -0
- package/d.ts/frameworks/jquery-i18next.d.ts +0 -14
- package/d.ts/frameworks/jquery-ui.d.ts +0 -1914
- package/d.ts/frameworks/jquery.d.ts +0 -3779
- package/d.ts/frameworks/jquery.ui.touch-punch.d.ts +0 -12
- package/d.ts/frameworks-modified/bootstrap-select.d.ts +0 -18
- package/d.ts/frameworks-modified/jquery.autocolumnlist.d.ts +0 -17
- package/d.ts/frameworks-modified/jquery.resizable.d.ts +0 -20
- package/scripts/frameworks/jquery-i18next.min.js +0 -1
- package/scripts/frameworks/jquery-ui.min.js +0 -8
- package/scripts/frameworks/jquery.min.js +0 -3
- package/scripts/frameworks/jquery.ui.touch-punch.min.js +0 -1
- package/scripts/frameworks-modified/bootstrap-select.js +0 -1024
- package/scripts/frameworks-modified/jquery.autocolumnlist.js +0 -48
- package/scripts/frameworks-modified/jquery.resizable.js +0 -229
|
@@ -2350,29 +2350,29 @@
|
|
|
2350
2350
|
|
|
2351
2351
|
/********************************************************************************
|
|
2352
2352
|
*
|
|
2353
|
-
*
|
|
2353
|
+
* Plugin constructor and defaults object
|
|
2354
2354
|
*
|
|
2355
2355
|
********************************************************************************/
|
|
2356
2356
|
|
|
2357
2357
|
/**
|
|
2358
|
-
* See
|
|
2359
|
-
* @name
|
|
2358
|
+
* See plugin documentation.
|
|
2359
|
+
* @name PluginAPI
|
|
2360
2360
|
* @class
|
|
2361
|
-
* See the
|
|
2362
|
-
* documents the
|
|
2361
|
+
* See the plugin library documentation for full details. This just
|
|
2362
|
+
* documents the functions and classes that are added by this plug-in.
|
|
2363
2363
|
*/
|
|
2364
2364
|
/**
|
|
2365
|
-
* See
|
|
2365
|
+
* See plugin documentation.
|
|
2366
2366
|
* @name fn
|
|
2367
2367
|
* @class
|
|
2368
|
-
* See the
|
|
2369
|
-
* documents the
|
|
2370
|
-
* @memberOf
|
|
2368
|
+
* See the plugin library documentation for full details. This just
|
|
2369
|
+
* documents the functions and classes that are added by this plug-in.
|
|
2370
|
+
* @memberOf plugin
|
|
2371
2371
|
*/
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Show comments
|
|
2374
2374
|
* @class datetimepicker
|
|
2375
|
-
* @memberOf
|
|
2375
|
+
* @memberOf plugin.fn
|
|
2376
2376
|
*/
|
|
2377
2377
|
$.fn.datetimepicker = function (options) {
|
|
2378
2378
|
options = options || {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var FintaChart;
|
|
4
|
+
(function (FintaChart) {
|
|
5
|
+
var External;
|
|
6
|
+
(function (External) {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Distributes <li> children of a container into N columns.
|
|
10
|
+
* Replaces the legacy .autocolumnlist() plugin with a native implementation.
|
|
11
|
+
*
|
|
12
|
+
* @param {HTMLElement} container - The UL/OL element containing <li> items.
|
|
13
|
+
* @param {{ columns?: number, classname?: string, min?: number }} [params]
|
|
14
|
+
*/
|
|
15
|
+
function autocolumnlist(container, params) {
|
|
16
|
+
var defaults = { columns: 4, classname: 'column', min: 1 };
|
|
17
|
+
var options = Object.assign({}, defaults, params);
|
|
18
|
+
|
|
19
|
+
var els = Array.from(container.querySelectorAll('li'));
|
|
20
|
+
var dimension = els.length;
|
|
21
|
+
|
|
22
|
+
if (dimension > 0) {
|
|
23
|
+
var elCol = Math.ceil(dimension / options.columns);
|
|
24
|
+
if (elCol < options.min) { elCol = options.min; }
|
|
25
|
+
|
|
26
|
+
var start = 0;
|
|
27
|
+
for (var i = 0; i < options.columns; i++) {
|
|
28
|
+
var end = start + elCol;
|
|
29
|
+
var slice = els.slice(start, end);
|
|
30
|
+
if (slice.length === 0) break;
|
|
31
|
+
|
|
32
|
+
var className = options.classname + (i + 1 === options.columns ? ' last' : '');
|
|
33
|
+
var col = document.createElement('div');
|
|
34
|
+
col.className = className;
|
|
35
|
+
|
|
36
|
+
// Move the <li> elements into the column div
|
|
37
|
+
slice.forEach(function(li) { col.appendChild(li); });
|
|
38
|
+
container.appendChild(col);
|
|
39
|
+
|
|
40
|
+
start = end;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
External.autocolumnlist = autocolumnlist;
|
|
46
|
+
|
|
47
|
+
})(External = FintaChart.External || (FintaChart.External = {}));
|
|
48
|
+
})(FintaChart || (FintaChart = {}));
|
|
@@ -5,7 +5,179 @@ var FintaChart;
|
|
|
5
5
|
var External;
|
|
6
6
|
var HtmlContainer = FintaChart.HtmlContainer;
|
|
7
7
|
(function (External) {
|
|
8
|
-
(function (window
|
|
8
|
+
(function (window) {
|
|
9
|
+
// Minimal compatibility shim - no external dependency needed
|
|
10
|
+
var $ = (function() {
|
|
11
|
+
var _dm = typeof WeakMap !== 'undefined' ? new WeakMap() : null;
|
|
12
|
+
var _em = typeof WeakMap !== 'undefined' ? new WeakMap() : null;
|
|
13
|
+
function _gd(el) { if (_dm) { if (!_dm.has(el)) _dm.set(el, {}); return _dm.get(el); } if (!el.__spd) el.__spd={}; return el.__spd; }
|
|
14
|
+
function _ge(el) { if (_em) { if (!_em.has(el)) _em.set(el, {}); return _em.get(el); } if (!el.__spe) el.__spe={}; return el.__spe; }
|
|
15
|
+
function JQ(s, ctx) {
|
|
16
|
+
if (typeof s === 'function') { if (document.readyState==='loading') document.addEventListener('DOMContentLoaded',s); else setTimeout(s,0); this._e=[]; this.length=0; return; }
|
|
17
|
+
var doc = ctx || document;
|
|
18
|
+
if (typeof s === 'string') {
|
|
19
|
+
if (s.trim().charAt(0) === '<') {
|
|
20
|
+
var fixed=s.trim().replace(/<(?!area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(([\w:-]+)[^>]*?)\/>/gi,'<$1></$2>');
|
|
21
|
+
var tmp=doc.createElement('div');
|
|
22
|
+
tmp.innerHTML=fixed;
|
|
23
|
+
this._e=Array.prototype.slice.call(tmp.children);
|
|
24
|
+
}
|
|
25
|
+
else { this._e=Array.prototype.slice.call(doc.querySelectorAll(s)); }
|
|
26
|
+
} else if (s instanceof JQ) { this._e=s._e.slice(); }
|
|
27
|
+
else if (s && (s.nodeType||s===window||s===doc)) { this._e=[s]; }
|
|
28
|
+
else if (s && typeof s.length==='number' && s!==window) { this._e=Array.prototype.slice.call(s).filter(Boolean); }
|
|
29
|
+
else { this._e=[]; }
|
|
30
|
+
this.length=this._e.length;
|
|
31
|
+
for (var i=0;i<this._e.length;i++) this[i]=this._e[i];
|
|
32
|
+
}
|
|
33
|
+
var P = JQ.prototype = {
|
|
34
|
+
constructor: JQ,
|
|
35
|
+
jquery: '1.x',
|
|
36
|
+
each: function(fn) { for(var i=0;i<this._e.length;i++) fn.call(this._e[i],i,this._e[i]); return this; },
|
|
37
|
+
is: function(s) { var el=this._e[0]; if(!el||!s) return false; try { return el.matches?el.matches(s):false; } catch(e){return false;} },
|
|
38
|
+
find: function(s) { return new JQ(this._e[0]?this._e[0].querySelectorAll(s):[]); },
|
|
39
|
+
addClass: function(c) { if(!c) return this; c.trim().split(/\s+/).forEach(function(cl){this._e.forEach(function(el){el.classList&&el.classList.add(cl);});},this); return this; },
|
|
40
|
+
removeClass: function(c) { if(!c) return this; c.trim().split(/\s+/).forEach(function(cl){this._e.forEach(function(el){el.classList&&el.classList.remove(cl);});},this); return this; },
|
|
41
|
+
hasClass: function(c) { return this._e[0]?this._e[0].classList.contains(c):false; },
|
|
42
|
+
toggleClass: function(c,b) { this._e.forEach(function(el){el.classList.toggle(c,b);}); return this; },
|
|
43
|
+
attr: function(n,v) { if(v===undefined) return this._e[0]?this._e[0].getAttribute(n):null; this._e.forEach(function(el){v===false?el.removeAttribute(n):el.setAttribute(n,v);}); return this; },
|
|
44
|
+
val: function(v) { if(v===undefined) return this._e[0]?this._e[0].value:''; this._e.forEach(function(el){el.value=v;}); return this; },
|
|
45
|
+
html: function(v) {
|
|
46
|
+
if(v===undefined) return this._e[0]?this._e[0].innerHTML:'';
|
|
47
|
+
var fixed=typeof v==='string'?v.replace(/<(?!area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(([\w:-]+)[^>]*?)\/>/gi,'<$1></$2>'):v;
|
|
48
|
+
this._e.forEach(function(el){el.innerHTML=fixed;});
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
text: function(v) { if(v===undefined) return this._e[0]?this._e[0].textContent:''; this._e.forEach(function(el){el.textContent=v;}); return this; },
|
|
52
|
+
css: function(p,v) {
|
|
53
|
+
var setCss=function(el,k,val){
|
|
54
|
+
if(!el||!el.style) return;
|
|
55
|
+
if(typeof val==='string'&&/^[+-]=/.test(val)){
|
|
56
|
+
var cur=parseFloat(el.style[k]||window.getComputedStyle(el)[k])||0;
|
|
57
|
+
var delta=parseFloat(val.slice(2))||0;
|
|
58
|
+
val=(val.charAt(0)==='+'?cur+delta:cur-delta)+'px';
|
|
59
|
+
}
|
|
60
|
+
if(k.indexOf('-')>=0) el.style.setProperty(k,val);
|
|
61
|
+
else el.style[k]=val;
|
|
62
|
+
};
|
|
63
|
+
if(typeof p==='object'){this._e.forEach(function(el){Object.keys(p).forEach(function(k){setCss(el,k,p[k]);});});return this;}
|
|
64
|
+
if(v===undefined) return this._e[0]?(this._e[0].style[p]||window.getComputedStyle(this._e[0])[p]):'';
|
|
65
|
+
this._e.forEach(function(el){setCss(el,p,v);});
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
show: function() { this._e.forEach(function(el){if(el.style)el.style.display='';}); return this; },
|
|
69
|
+
hide: function() { this._e.forEach(function(el){if(el.style)el.style.display='none';}); return this; },
|
|
70
|
+
width: function() { return this._e[0]?this._e[0].offsetWidth:0; },
|
|
71
|
+
height: function() { return this._e[0]?this._e[0].offsetHeight:0; },
|
|
72
|
+
outerWidth: function(m) { var el=this._e[0]; if(!el) return 0; var w=el.offsetWidth; if(m){var s=window.getComputedStyle(el);w+=(parseInt(s.marginLeft)||0)+(parseInt(s.marginRight)||0);} return w; },
|
|
73
|
+
outerHeight: function(m) { var el=this._e[0]; if(!el) return 0; var h=el.offsetHeight; if(m){var s=window.getComputedStyle(el);h+=(parseInt(s.marginTop)||0)+(parseInt(s.marginBottom)||0);} return h; },
|
|
74
|
+
offset: function(v) {
|
|
75
|
+
if(v!==undefined){this._e.forEach(function(el){el.style.top=v.top+'px';el.style.left=v.left+'px';});return this;}
|
|
76
|
+
if(!this._e[0]) return {top:0,left:0};
|
|
77
|
+
var r=this._e[0].getBoundingClientRect();
|
|
78
|
+
return {top:r.top+(window.pageYOffset||0),left:r.left+(window.pageXOffset||0)};
|
|
79
|
+
},
|
|
80
|
+
scrollLeft: function() { var el=this._e[0]; if(!el) return 0; if(el===document) return window.pageXOffset||0; return el.scrollLeft||0; },
|
|
81
|
+
scrollTop: function() { var el=this._e[0]; if(!el) return 0; if(el===document) return window.pageYOffset||0; return el.scrollTop||0; },
|
|
82
|
+
parent: function() { return new JQ(this._e[0]?[this._e[0].parentElement]:[]); },
|
|
83
|
+
closest: function(s) { var el=this._e[0]; while(el){if(el.matches&&el.matches(s)) return new JQ([el]); el=el.parentElement;} return new JQ([]); },
|
|
84
|
+
has: function(t) { var el=this._e[0]; return {length:(el&&el.contains&&el.contains(t))?1:0}; },
|
|
85
|
+
data: function(k,v) {
|
|
86
|
+
if(v!==undefined||(typeof k==='object'&&k)){var kv=typeof k==='object'?k:{[k]:v};this._e.forEach(function(el){Object.assign(_gd(el),kv);});return this;}
|
|
87
|
+
if(!this._e[0]) return undefined;
|
|
88
|
+
if(k===undefined) return _gd(this._e[0]);
|
|
89
|
+
var d=_gd(this._e[0]); return (k in d)?d[k]:(this._e[0].dataset?this._e[0].dataset[k]:undefined);
|
|
90
|
+
},
|
|
91
|
+
removeData: function(k) { this._e.forEach(function(el){delete _gd(el)[k];}); return this; },
|
|
92
|
+
_on: function(ev,fn) {
|
|
93
|
+
this._e.forEach(function(el){
|
|
94
|
+
ev.trim().split(/\s+/).forEach(function(e){
|
|
95
|
+
var t=e.split('.')[0],ns=e.split('.')[1]||'';
|
|
96
|
+
if(!t) return;
|
|
97
|
+
var st=_ge(el),key=t+'.'+ns;
|
|
98
|
+
if(!st[key]) st[key]=[];
|
|
99
|
+
var w=function(e){if(!e.originalEvent)e.originalEvent=e;fn.call(el,e);};
|
|
100
|
+
w._fn=fn; st[key].push(w); el.addEventListener(t,w);
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
return this;
|
|
104
|
+
},
|
|
105
|
+
_off: function(ev) {
|
|
106
|
+
this._e.forEach(function(el){
|
|
107
|
+
var st=_ge(el);
|
|
108
|
+
ev.trim().split(/\s+/).forEach(function(e){
|
|
109
|
+
var t=e.split('.')[0],ns=e.split('.')[1]||'';
|
|
110
|
+
Object.keys(st).forEach(function(k){
|
|
111
|
+
var kt=k.split('.')[0],kns=k.split('.')[1]||'';
|
|
112
|
+
if((t&&kt!==t)||(ns&&kns!==ns)) return;
|
|
113
|
+
st[k].forEach(function(w){el.removeEventListener(kt,w);});
|
|
114
|
+
delete st[k];
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
return this;
|
|
119
|
+
},
|
|
120
|
+
on: function(ev,fn) {
|
|
121
|
+
if(typeof ev==='object'&&!fn){var self=this;Object.keys(ev).forEach(function(k){k.trim().split(/\s+/).forEach(function(e){self._on(e,ev[k]);});});return this;}
|
|
122
|
+
return fn?this._on(ev,fn):this;
|
|
123
|
+
},
|
|
124
|
+
bind: function(ev,fn) {
|
|
125
|
+
if(typeof ev==='object'&&!fn){var self=this;Object.keys(ev).forEach(function(k){k.trim().split(/\s+/).forEach(function(e){self._on(e,ev[k]);});});return this;}
|
|
126
|
+
return this._on(ev,fn);
|
|
127
|
+
},
|
|
128
|
+
unbind: function(ev) {
|
|
129
|
+
if(typeof ev==='object'&&ev){var self=this;Object.keys(ev).forEach(function(k){self._off(k);});return this;}
|
|
130
|
+
return ev?this._off(ev):this;
|
|
131
|
+
},
|
|
132
|
+
off: function(ev) {
|
|
133
|
+
if(typeof ev==='object'&&ev){var self=this;Object.keys(ev).forEach(function(k){self._off(k);});return this;}
|
|
134
|
+
return ev?this._off(ev):this;
|
|
135
|
+
},
|
|
136
|
+
click: function(fn) { return fn?this._on('click',fn)||this:this; },
|
|
137
|
+
change: function(fn) { return fn?this._on('change',fn)||this:this; },
|
|
138
|
+
keydown: function(fn) { return fn?this._on('keydown',fn)||this:this; },
|
|
139
|
+
trigger: function(ev,data) {
|
|
140
|
+
var type=typeof ev==='string'?ev.split('.')[0]:(ev&&ev.type?ev.type.split('.')[0]:'');
|
|
141
|
+
if(!type) return this;
|
|
142
|
+
this._e.forEach(function(el){
|
|
143
|
+
var e=new CustomEvent(type,{bubbles:true,cancelable:true,detail:data});
|
|
144
|
+
e.isDefaultPrevented=function(){return e.defaultPrevented;};
|
|
145
|
+
el.dispatchEvent(e);
|
|
146
|
+
});
|
|
147
|
+
return this;
|
|
148
|
+
},
|
|
149
|
+
append: function(c) { var el=this._e[0]; if(!el) return this; if(typeof c==='string') el.insertAdjacentHTML('beforeend',c); else if(c instanceof JQ) c._e.forEach(function(ch){el.appendChild(ch);}); else if(c&&c.nodeType) el.appendChild(c); return this; },
|
|
150
|
+
appendTo: function(t) { t=t instanceof JQ?t._e[0]:(typeof t==='string'?document.querySelector(t):t); if(t) this._e.forEach(function(el){t.appendChild(el);}); return this; },
|
|
151
|
+
after: function(s) { var el=this._e[0]; if(!el||!el.parentNode) return this; if(typeof s==='string') el.insertAdjacentHTML('afterend',s); else if(s instanceof JQ){var nxt=el.nextSibling,par=el.parentNode;s._e.forEach(function(c){par.insertBefore(c,nxt);});} return this; },
|
|
152
|
+
remove: function() { this._e.forEach(function(el){el.parentNode&&el.parentNode.removeChild(el);}); return this; },
|
|
153
|
+
delegate: function(sel,ev,dataOrFn,fn) {
|
|
154
|
+
if(typeof dataOrFn==='function'){fn=dataOrFn;dataOrFn=null;}
|
|
155
|
+
this._e.forEach(function(container){
|
|
156
|
+
ev.trim().split(/\s+/).forEach(function(evStr){
|
|
157
|
+
var type=evStr.split('.')[0];
|
|
158
|
+
container.addEventListener(type,function(e){
|
|
159
|
+
var t=e.target;
|
|
160
|
+
while(t&&t!==container){if(t.matches&&t.matches(sel)){if(dataOrFn)e.data=dataOrFn;fn.call(t,e);return;}t=t.parentElement;}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
return this;
|
|
165
|
+
},
|
|
166
|
+
filter: function(fn) { return new JQ(this._e.filter(fn)); },
|
|
167
|
+
};
|
|
168
|
+
function $(s,ctx){
|
|
169
|
+
if(typeof s==='function'){var inst=new JQ(s); return inst;}
|
|
170
|
+
return new JQ(s,ctx);
|
|
171
|
+
}
|
|
172
|
+
$.extend=function(){return Object.assign.apply(null,arguments);};
|
|
173
|
+
$.isArray=Array.isArray;
|
|
174
|
+
$.inArray=function(v,arr){return arr.indexOf(v);};
|
|
175
|
+
$.each=function(obj,fn){if(Array.isArray(obj))obj.forEach(function(v,i){fn(i,v);});else Object.keys(obj).forEach(function(k){fn(k,obj[k]);});};
|
|
176
|
+
$.map=function(arr,fn){return arr.map(fn);};
|
|
177
|
+
$.Event=function(type){var e=new CustomEvent(type.split('.')[0],{bubbles:true,cancelable:true});e.isDefaultPrevented=function(){return e.defaultPrevented;};return e;};
|
|
178
|
+
$.fn=P;
|
|
179
|
+
return $;
|
|
180
|
+
})();
|
|
9
181
|
var defaultOpts = {
|
|
10
182
|
|
|
11
183
|
// Callbacks
|
|
@@ -951,7 +1123,7 @@ var FintaChart;
|
|
|
951
1123
|
|
|
952
1124
|
/**
|
|
953
1125
|
* checkOffset - get the offset below/above and left/right element depending on screen position
|
|
954
|
-
*
|
|
1126
|
+
* Based on ideas from UI datepicker positioning logic.
|
|
955
1127
|
*/
|
|
956
1128
|
function getOffset(picker, input) {
|
|
957
1129
|
var extraY = 0;
|
|
@@ -1105,7 +1277,7 @@ var FintaChart;
|
|
|
1105
1277
|
}
|
|
1106
1278
|
|
|
1107
1279
|
/**
|
|
1108
|
-
* Define a
|
|
1280
|
+
* Define a plugin API
|
|
1109
1281
|
*/
|
|
1110
1282
|
var dataID = "spectrum.id";
|
|
1111
1283
|
$.fn.spectrum = function (opts, extra) {
|
|
@@ -1170,6 +1342,15 @@ var FintaChart;
|
|
|
1170
1342
|
}
|
|
1171
1343
|
};
|
|
1172
1344
|
|
|
1345
|
+
// Standalone API for direct callers (window.spectrum)
|
|
1346
|
+
window.spectrum = function(elOrMethod, configOrEl, extra) {
|
|
1347
|
+
if (typeof elOrMethod === 'string') {
|
|
1348
|
+
return $.fn.spectrum.call($(configOrEl), elOrMethod, extra);
|
|
1349
|
+
} else {
|
|
1350
|
+
return $.fn.spectrum.call($(elOrMethod), configOrEl);
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1173
1354
|
// TinyColor v1.0.0
|
|
1174
1355
|
// https://github.com/bgrins/TinyColor
|
|
1175
1356
|
// Brian Grinstead, MIT License
|
|
@@ -1749,8 +1930,8 @@ var FintaChart;
|
|
|
1749
1930
|
|
|
1750
1931
|
// Combination Functions
|
|
1751
1932
|
// ---------------------
|
|
1752
|
-
// Thanks to
|
|
1753
|
-
// <https://github.com/infusion/
|
|
1933
|
+
// Thanks to xColor for some of the ideas behind these
|
|
1934
|
+
// <https://github.com/infusion/xcolor>
|
|
1754
1935
|
|
|
1755
1936
|
function complement(color) {
|
|
1756
1937
|
var hsl = tinycolor(color).toHsl();
|
|
@@ -2272,7 +2453,7 @@ var FintaChart;
|
|
|
2272
2453
|
}
|
|
2273
2454
|
});
|
|
2274
2455
|
|
|
2275
|
-
})(window
|
|
2456
|
+
})(window);
|
|
2276
2457
|
})(External = FintaChart.External || (FintaChart.External = {}));
|
|
2277
2458
|
})(FintaChart || (FintaChart = {}));
|
|
2278
2459
|
|
|
@@ -1808,7 +1808,7 @@ var FintaChart;
|
|
|
1808
1808
|
var self = this, el = this.element;
|
|
1809
1809
|
if (el.addEventListener) {
|
|
1810
1810
|
el.addEventListener("change", function () {
|
|
1811
|
-
|
|
1811
|
+
document.body.dispatchEvent(new CustomEvent('tcdSwitcherChanged', { bubbles: true, detail: { checked: self.isChecked(), target: self.element } }));
|
|
1812
1812
|
self.setPosition()
|
|
1813
1813
|
})
|
|
1814
1814
|
} else {
|