@fintatech/fintachart 3.1.0 → 3.1.1

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +6 -6
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/basic-objects.html +2 -6
  5. package/css/FintaChart.min.css +1 -1
  6. package/custom-indicator.html +2 -6
  7. package/d.ts/FintaChart.d.ts +490 -179
  8. package/d.ts/frameworks/bootstrap.v3.datetimepicker.d.ts +3 -3
  9. package/d.ts/frameworks/html2canvas.d.ts +0 -2
  10. package/d.ts/frameworks-modified/autocolumnlist.d.ts +8 -0
  11. package/d.ts/frameworks-modified/spectrum.d.ts +17 -26
  12. package/d.ts/frameworks-modified/toastr.d.ts +9 -10
  13. package/htmldialogs/Toolbar.html +2 -2
  14. package/index-dark.html +2 -6
  15. package/index.html +2 -6
  16. package/multiple-charts.html +2 -6
  17. package/package.json +1 -1
  18. package/scripts/FintaChart.min.js +2 -2
  19. package/scripts/frameworks/bootstrap.v3.datetimepicker.min.js +10 -10
  20. package/scripts/frameworks-modified/autocolumnlist.js +48 -0
  21. package/scripts/frameworks-modified/spectrum.js +187 -6
  22. package/scripts/frameworks-modified/switchery.js +1 -1
  23. package/scripts/frameworks-modified/toastr.js +283 -382
  24. package/d.ts/frameworks/jquery-i18next.d.ts +0 -14
  25. package/d.ts/frameworks/jquery-ui.d.ts +0 -1914
  26. package/d.ts/frameworks/jquery.d.ts +0 -3779
  27. package/d.ts/frameworks/jquery.ui.touch-punch.d.ts +0 -12
  28. package/d.ts/frameworks-modified/bootstrap-select.d.ts +0 -18
  29. package/d.ts/frameworks-modified/jquery.autocolumnlist.d.ts +0 -17
  30. package/d.ts/frameworks-modified/jquery.resizable.d.ts +0 -20
  31. package/scripts/frameworks/jquery-i18next.min.js +0 -1
  32. package/scripts/frameworks/jquery-ui.min.js +0 -8
  33. package/scripts/frameworks/jquery.min.js +0 -3
  34. package/scripts/frameworks/jquery.ui.touch-punch.min.js +0 -1
  35. package/scripts/frameworks-modified/bootstrap-select.js +0 -1024
  36. package/scripts/frameworks-modified/jquery.autocolumnlist.js +0 -48
  37. package/scripts/frameworks-modified/jquery.resizable.js +0 -229
@@ -1,48 +0,0 @@
1
- 'use strict';
2
-
3
- var FintaChart;
4
- (function (FintaChart) {
5
- var External;
6
- (function (External) {
7
- (function($) {
8
- var defaults = {
9
- columns: 4,
10
- classname: 'column',
11
- min: 1
12
- };
13
-
14
- $.fn.autocolumnlist = function(params){
15
-
16
- var options = $.extend({}, defaults, params);
17
-
18
- return this.each(function() {
19
-
20
- var els = $(this).find('li');
21
- var dimension = els.length;
22
-
23
- if (dimension > 0) {
24
- var elCol = Math.ceil(dimension/options.columns);
25
- if (elCol < options.min) {
26
- elCol = options.min;
27
- }
28
- var start = 0;
29
- var end = elCol;
30
-
31
- for (var i=0; i<options.columns; i++) {
32
- // Add "last" class for last column
33
- if ((i + 1) == options.columns) {
34
- els.slice(start, end).wrapAll('<div class="'+options.classname+' last" />');
35
- } else {
36
- els.slice(start, end).wrapAll('<div class="'+options.classname+'" />');
37
- }
38
- start = start+elCol;
39
- end = end+elCol;
40
- }
41
- }
42
- });
43
- };
44
- })(jQuery);
45
- })(External = FintaChart.External || (FintaChart.External = {}));
46
- })(FintaChart || (FintaChart = {}));
47
-
48
-
@@ -1,229 +0,0 @@
1
- 'use strict';
2
-
3
- var FintaChart;
4
- (function (FintaChart) {
5
- var External;
6
- (function (External) {
7
-
8
- (function ($) {
9
- $.fn.resizable = function(options) {
10
-
11
- var settings = $.extend({
12
- container: null,
13
- direction: ['top', 'right', 'bottom', 'left'],
14
- minWidth: 20,
15
- minHeight: 20
16
- }, options);
17
-
18
- return this.each(function() {
19
-
20
- var _this = this;
21
- var element = $(this);
22
-
23
- var isDragging = false;
24
- var initial = {};
25
- var prepareHandles = {
26
- top: false,
27
- right: false,
28
- bottom: false,
29
- left: false
30
- };
31
- var handles = {};
32
-
33
- element.addClass('tcdResizable');
34
-
35
- if(settings.direction instanceof Array)
36
- {
37
- for (var i = settings.direction.length - 1; i >= 0; i--) {
38
- switch(settings.direction[i])
39
- {
40
- case 'top':
41
- case 't':
42
- prepareHandles.top = true;
43
- break;
44
- case 'right':
45
- case 'r':
46
- prepareHandles.right = true;
47
- break;
48
- case 'bottom':
49
- case 'b':
50
- prepareHandles.bottom = true;
51
- break;
52
- case 'left':
53
- case 'l':
54
- prepareHandles.left = true;
55
- break;
56
- }
57
- }
58
- }
59
- else if(typeof settings.direction == 'string')
60
- {
61
- switch(settings.direction)
62
- {
63
- case 'vertical':
64
- case 'v':
65
- prepareHandles.top = true;
66
- prepareHandles.bottom = true;
67
- break;
68
- case 'horizontal':
69
- case 'h':
70
- prepareHandles.right = true;
71
- prepareHandles.left = true;
72
- break;
73
- case 'top':
74
- case 't':
75
- prepareHandles.top = true;
76
- break;
77
- case 'right':
78
- case 'r':
79
- prepareHandles.right = true;
80
- break;
81
- case 'bottom':
82
- case 'b':
83
- prepareHandles.bottom = true;
84
- break;
85
- case 'left':
86
- case 'l':
87
- prepareHandles.left = true;
88
- break;
89
- }
90
- }
91
-
92
- if(prepareHandles.top)
93
- {
94
- handles.top = $('<div />').addClass('tcdResizable-handle tcdResizable-t').appendTo(element);
95
- }
96
- if(prepareHandles.right)
97
- {
98
- handles.right = $('<div />').addClass('tcdResizable-handle tcdResizable-r').appendTo(element);
99
- }
100
- if(prepareHandles.bottom)
101
- {
102
- handles.bottom = $('<div />').addClass('tcdResizable-handle tcdResizable-b').appendTo(element);
103
- }
104
- if(prepareHandles.left)
105
- {
106
- handles.left = $('<div />').addClass('tcdResizable-handle tcdResizable-l').appendTo(element);
107
- }
108
-
109
- $(this).children('.tcdResizable-l, .tcdResizable-r, .tcdResizable-t, .tcdResizable-b').mousedown(function(e) {
110
- var dir;
111
-
112
- switch(true)
113
- {
114
- case $(this).hasClass('tcdResizable-l'):
115
- dir = 'l';
116
- break;
117
- case $(this).hasClass('tcdResizable-r'):
118
- dir = 'r';
119
- break;
120
- case $(this).hasClass('tcdResizable-t'):
121
- dir = 't';
122
- break;
123
- case $(this).hasClass('tcdResizable-b'):
124
- dir = 'b';
125
- break;
126
- }
127
- isDragging = true;
128
- initial = {
129
- x: e.clientX,
130
- y: e.clientY,
131
- height: element.height(),
132
- width: element.width(),
133
- direction: dir,
134
- left: element.position().left
135
- };
136
-
137
- $('html').addClass('tcdResizable-resizing tcdResizable-resizing-'+initial.direction);
138
-
139
- if (typeof options.start === 'function') {
140
- options.start.apply(_this);
141
- }
142
- });
143
-
144
- if (settings.container == null) {
145
- settings.container = $(window);
146
- }
147
-
148
- element.css({
149
- minWidth: settings.minWidth,
150
- minHeight: settings.minHeight,
151
- maxHeight: settings.container.height(),
152
- maxWidth: settings.container.width()
153
- });
154
-
155
- $(document)
156
- .mousemove(function(e) {
157
- resize(e);
158
- })
159
- .mouseup(function(e) {
160
- stop();
161
- })
162
- .mouseleave(function(e) {
163
- resize(e);
164
- stop();
165
- });
166
-
167
- function resize(e) {
168
- if(isDragging)
169
- {
170
- var moveX = e.clientX-initial.x;
171
- var moveY = e.clientY-initial.y;
172
- var container = {
173
- width: settings.container.width(),
174
- left: settings.container.position().left
175
- };
176
-
177
- switch(initial.direction)
178
- {
179
- case 'r':
180
- // Prevent of go out of container
181
- if (initial.left + initial.width + moveX > settings.container.width()) {
182
- moveX = settings.container.width() - (initial.left + initial.width)
183
- }
184
-
185
- element.width(initial.width + moveX);
186
- break;
187
- case 'l':
188
- // Prevent of go out of container
189
- if (initial.left + moveX < 0) {
190
- moveX = -initial.left;
191
- } else if (initial.width - moveX >= settings.minWidth) {
192
- element.width(initial.width - moveX);
193
- element.css('left', initial.left + moveX);
194
- }
195
- break;
196
- case 'b':
197
- element.height(initial.height + moveY);
198
- break;
199
- case 't':
200
- element.height(initial.height - moveY);
201
- break;
202
- }
203
-
204
- if (typeof options.resize === 'function') {
205
- options.resize.apply(_this);
206
- }
207
- }
208
- }
209
-
210
- function stop() {
211
- if(isDragging)
212
- {
213
- isDragging = false;
214
- $('html').removeClass('tcdResizable-resizing tcdResizable-resizing-'+initial.direction);
215
-
216
- if (typeof options.stop === 'function') {
217
- options.stop.apply(_this);
218
- }
219
- }
220
- }
221
- });
222
- }
223
- }(jQuery));
224
-
225
- })(External = FintaChart.External || (FintaChart.External = {}));
226
- })(FintaChart || (FintaChart = {}));
227
-
228
-
229
-