@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,10 +1,10 @@
1
1
  /* */
2
2
 
3
- interface DatePickerChangeEvent extends JQueryEventObject {
3
+ interface DatePickerChangeEvent extends Event {
4
4
  date: any;
5
5
  oldDate: any;
6
6
  }
7
7
 
8
- interface DatePickerEvent extends JQueryEventObject {
8
+ interface DatePickerEvent extends Event {
9
9
  date: any;
10
- }
10
+ }
@@ -3,8 +3,6 @@
3
3
  // Definitions by: Richard Hepburn <https://github.com/rwhepburn/>
4
4
  // Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
 
6
- /// <reference path="jquery.d.ts"/>
7
-
8
6
  /* */
9
7
 
10
8
  declare module Html2Canvas {
@@ -0,0 +1,8 @@
1
+ declare namespace FintaChart {
2
+ namespace External {
3
+ function autocolumnlist(
4
+ container: HTMLElement,
5
+ options?: { columns?: number; classname?: string; min?: number }
6
+ ): void;
7
+ }
8
+ }
@@ -5,20 +5,21 @@
5
5
  // Definitions by: Mordechai Zuber <https://github.com/M-Zuber>
6
6
  // Definitions: https://github.com/borisyankov/DefinitelyTyped
7
7
 
8
- /// <reference path="../frameworks/jquery.d.ts"/>
9
8
  /// <reference path="../frameworks/tinycolor.d.ts"/>
10
9
 
10
+ type SpectrumChainable = JQuery;
11
+
11
12
  interface JQuery {
12
13
 
13
14
  /**
14
15
  * Shows the colorpicker.
15
16
  */
16
- spectrum(methodName: "show"): JQuery;
17
+ spectrum(methodName: "show"): SpectrumChainable;
17
18
 
18
19
  /**
19
20
  * Hides the colorpicker.
20
21
  */
21
- spectrum(methodName: "hide"): JQuery;
22
+ spectrum(methodName: "hide"): SpectrumChainable;
22
23
 
23
24
  /**
24
25
  * Toggles the colorpicker.
@@ -26,7 +27,7 @@ interface JQuery {
26
27
  * Warning: If you are calling toggle from a click handler,
27
28
  * make sure you return false to prevent the colorpicker from immediately hiding after it is toggled.
28
29
  */
29
- spectrum(methodName: "toggle"): JQuery;
30
+ spectrum(methodName: "toggle"): SpectrumChainable;
30
31
 
31
32
  /**
32
33
  * Gets the current value from the colorpicker.
@@ -40,45 +41,45 @@ interface JQuery {
40
41
  *
41
42
  * @param colorString the new color for the colorpicker.
42
43
  */
43
- spectrum(methodName: "set", colorString?: string): JQuery;
44
+ spectrum(methodName: "set", colorString?: string): SpectrumChainable;
44
45
 
45
46
  /**
46
47
  * Retrieves the container element of the colorpicker,
47
48
  * in case you want to manaully position it or do other things.
48
49
  */
49
- spectrum(methodName: "container"): JQuery;
50
+ spectrum(methodName: "container"): SpectrumChainable;
50
51
 
51
52
  /**
52
53
  * Resets the positioning of the container element.
53
54
  * This could be used if the colorpicker was hidden when initialized,
54
55
  * or if the colorpicker is inside of a moving area.
55
56
  */
56
- spectrum(methodName: "reflow"): JQuery;
57
+ spectrum(methodName: "reflow"): SpectrumChainable;
57
58
 
58
59
  /**
59
60
  * Removes the colorpicker functionality and restores the element to its original state.
60
61
  */
61
- spectrum(methodName: "destroy"): JQuery;
62
+ spectrum(methodName: "destroy"): SpectrumChainable;
62
63
 
63
64
  /**
64
65
  * Allows selection of the colorpicker component. if it is already enabled, this method does nothing.
65
66
  * Additionally, this will cause the original (now hidden) input to be set as disabled.
66
67
  */
67
- spectrum(methodName: "enable"): JQuery;
68
+ spectrum(methodName: "enable"): SpectrumChainable;
68
69
 
69
70
  /**
70
71
  * Disables selection of the colorpicker component. adds the sp-disabled class onto the replacer element.
71
72
  * If it is already disabled, this method does nothing.
72
73
  * Additionally, this will remove the disabled property on the original (now hidden).
73
74
  */
74
- spectrum(methodName: "disable"): JQuery;
75
+ spectrum(methodName: "disable"): SpectrumChainable;
75
76
 
76
77
  /**
77
78
  * Retrieves the current value for the option name.
78
79
  *
79
80
  * @param optionName the option to retrieve the value for.
80
81
  */
81
- spectrum(methodName: "option", optionName?: string): JQuery;
82
+ spectrum(methodName: "option", optionName?: string): SpectrumChainable;
82
83
 
83
84
  /**
84
85
  * Sets the value of the option name with the value passed in.
@@ -86,28 +87,18 @@ interface JQuery {
86
87
  * @param optionName the option to set.
87
88
  * @param newOptionValue the new value for the option.
88
89
  */
89
- spectrum(methodName: "option", optionName?: string, newOptionValue?: any): JQuery;
90
+ spectrum(methodName: "option", optionName?: string, newOptionValue?: any): SpectrumChainable;
90
91
 
91
92
  /**
92
93
  * Calls the method.
93
94
  */
94
- spectrum(methodName: string): any; // in most cases this is JQuery except for the get method which returns a tinycolorInstance
95
+ spectrum(methodName: string): any; // In most cases this returns a chainable object, except for the get method which returns a tinycolorInstance
95
96
 
96
97
  /**
97
98
  * Initializes the input element that it is called on
98
99
  * as a spectrum colorpicker instance.
99
100
  */
100
- spectrum(options?: Spectrum.Options): JQuery;
101
-
102
- /**
103
- * Called at the beginning of a drag event on either hue slider, alpha slider, or main color picker areas.
104
- */
105
- on(events: "dragstart.spectrum", handler: (eventObject: JQueryEventObject, color: tinycolorInstance) => any): JQuery;
106
-
107
- /**
108
- * Called at the end of a drag event on either hue slider, alpha slider, or main color picker areas.
109
- */
110
- on(events: "dragstop.spectrum", handler: (eventObject: JQueryEventObject, color: tinycolorInstance) => any): JQuery;
101
+ spectrum(options?: Spectrum.Options): SpectrumChainable;
111
102
  }
112
103
 
113
104
  declare module Spectrum {
@@ -246,11 +237,11 @@ declare module Spectrum {
246
237
 
247
238
  /**
248
239
  * Sets which element the colorpicker container is appended to (default is "body").
249
- * This can be any valid object taken into the jQuery appendTo function.
240
+ * This can be any valid object accepted by appendTo.
250
241
  * Changing this can help resolve issues with opening the colorpicker in a modal dialog
251
242
  * or fixed position container, for instance.
252
243
  */
253
- appendTo?: any //same as JQuery appendTo : JQuery| any[] | Element| string
244
+ appendTo?: any // Same as appendTo: chainable object | any[] | Element | string
254
245
 
255
246
  /**
256
247
  * Sets the max size for the palette.
@@ -3,28 +3,27 @@
3
3
  // Definitions by: Boris Yankov <https://github.com/borisyankov/>
4
4
  // Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
 
6
-
7
- /// <reference path="../frameworks/jquery.d.ts"/>
6
+ type ToastrChainable = JQuery;
8
7
 
9
8
  interface ToastrOptions {
10
9
 
11
10
  /**
12
- * Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are built into jQuery.
11
+ * Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are widely available.
13
12
  */
14
13
  showEasing?: string;
15
14
 
16
15
  /**
17
- * Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are built into jQuery.
16
+ * Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are widely available.
18
17
  */
19
18
  hideEasing?: string;
20
19
 
21
20
  /**
22
- * Use the jQuery show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are built into jQuery.
21
+ * Use the show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are widely available.
23
22
  */
24
23
  showMethod?: string;
25
24
 
26
25
  /**
27
- * Use the jQuery show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are built into jQuery.
26
+ * Use the show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are widely available.
28
27
  */
29
28
  hideMethod?: string;
30
29
 
@@ -159,7 +158,7 @@ interface ToastrDisplayMethod {
159
158
  *
160
159
  * @param message Message to display in toast
161
160
  */
162
- (message: string): JQuery;
161
+ (message: string): ToastrChainable;
163
162
 
164
163
  /**
165
164
  * Create a toast
@@ -167,7 +166,7 @@ interface ToastrDisplayMethod {
167
166
  * @param message Message to display in toast
168
167
  * @param title Title to display on toast
169
168
  */
170
- (message: string, title: string): JQuery;
169
+ (message: string, title: string): ToastrChainable;
171
170
 
172
171
  /**
173
172
  * Create a toast
@@ -176,7 +175,7 @@ interface ToastrDisplayMethod {
176
175
  * @param title Title to display on toast
177
176
  * @param overrides Option values for toast
178
177
  */
179
- (message: string, title: string, overrides: ToastrOptions): JQuery;
178
+ (message: string, title: string, overrides: ToastrOptions): ToastrChainable;
180
179
  }
181
180
 
182
181
  interface Toastr {
@@ -193,7 +192,7 @@ interface Toastr {
193
192
  *
194
193
  * @param toast Toast to clear
195
194
  */
196
- (toast: JQuery): void;
195
+ (toast: ToastrChainable): void;
197
196
  };
198
197
  /**
199
198
  * Create an error toast
@@ -722,7 +722,7 @@
722
722
  <ul class="tcdToolbar tcdToolbarNav tcdToolbar-align-right">
723
723
  <li class="tcdToolbarDivider"></li>
724
724
 
725
- <li class="tcdToolbarViewMode tcdToolbarButton tcdToolbarButtonViewMode tcdToolbarButtonWithDropdown tcdToolbarCanFireFromHead toolbar-title drop"
725
+ <li class="tcdToolbarViewMode tcdToolbarButton tcdToolbarButtonViewMode tcdToolbarButtonWithDropdown toolbar-title drop"
726
726
  data-i18n="[title]toolbar.title.viewMode" style="margin: 0px !important;">
727
727
  <div class="tcdToolbarButton-buttonWrapper">
728
728
  <div class="tcdToolbarButton-activateBtn">
@@ -790,7 +790,7 @@
790
790
  <span class="tcdToolbarButton-dropdownElement-image tcdSVGIcon" tcdSVGData="extended-line" style="display: none;"></span>
791
791
  <span class="tcdToolbarButton-dropdownElement-image tcdSVGIcon" tcdSVGData="horizontal-ray" style="display: none;"></span>
792
792
  </div>
793
- <button class="tcdToolbarButton-toggleDropdownBtn"></button>
793
+ <button class="tcdToolbarButton-toggleDropdownBtn">
794
794
  <span class="tcdToolbarButton-dropdownElement-image tcd-icon"></span>
795
795
  </button>
796
796
  </div>
package/index-dark.html CHANGED
@@ -14,15 +14,11 @@
14
14
  <link rel="stylesheet" href="css/external/jqNumericField.min.css">
15
15
  <link rel="stylesheet" href="css/FintaChart.min.css">
16
16
 
17
- <script src="scripts/frameworks/jquery.min.js"></script>
18
- <script src="scripts/frameworks/jquery-ui.min.js"></script>
19
17
  <script src="scripts/frameworks/Intl.min.js"></script>
20
18
  <script src="scripts/frameworks/moment.min.js"></script>
21
19
  <script src="scripts/frameworks/detectizr.min.js"></script>
22
20
  <script src="scripts/frameworks/dom-to-image-more.min.js"></script>
23
21
  <script src="scripts/frameworks/i18nextXHRBackend.min.js"></script>
24
- <script src="scripts/frameworks/jquery-i18next.min.js"></script>
25
- <script src="scripts/frameworks/jquery.ui.touch-punch.min.js"></script>
26
22
  <script src="scripts/FintaChart.min.js"></script>
27
23
  <script src="scripts/jsdataadapters/fileDataAdapter.js"></script>
28
24
  <script src="scripts/jsdataadapters/restDataAdapter.js"></script>
@@ -60,7 +56,7 @@
60
56
  FintaChart.ResourcePath.localization = 'localization/';
61
57
  const datafeed = fileDatafeed;
62
58
 
63
- $(function () {
59
+ document.addEventListener('DOMContentLoaded', function () {
64
60
  datafeed.init().then(df => {
65
61
  let config = {
66
62
  chartContainer: '#chartContainer',
@@ -96,7 +92,7 @@
96
92
  timeFrame: { interval: 1, periodicity: FintaChart.Periodicity.DAY },
97
93
  };
98
94
 
99
- window.globalChart = $(config.chartContainer).FintaChart(config);
95
+ window.globalChart = FintaChart.createChart(document.querySelector(config.chartContainer), config);
100
96
  window.globalChart.exchanges = () => (['FOREX', 'CRYPTO'])
101
97
 
102
98
  const position = new FintaChart.PositionBar({
package/index.html CHANGED
@@ -14,15 +14,11 @@
14
14
  <link rel="stylesheet" href="css/external/jqNumericField.min.css">
15
15
  <link rel="stylesheet" href="css/FintaChart.min.css">
16
16
 
17
- <script src="scripts/frameworks/jquery.min.js"></script>
18
- <script src="scripts/frameworks/jquery-ui.min.js"></script>
19
17
  <script src="scripts/frameworks/Intl.min.js"></script>
20
18
  <script src="scripts/frameworks/moment.min.js"></script>
21
19
  <script src="scripts/frameworks/detectizr.min.js"></script>
22
20
  <script src="scripts/frameworks/dom-to-image-more.min.js"></script>
23
21
  <script src="scripts/frameworks/i18nextXHRBackend.min.js"></script>
24
- <script src="scripts/frameworks/jquery-i18next.min.js"></script>
25
- <script src="scripts/frameworks/jquery.ui.touch-punch.min.js"></script>
26
22
  <script src="scripts/FintaChart.min.js"></script>
27
23
  <script src="scripts/jsdataadapters/fileDataAdapter.js"></script>
28
24
  <script src="scripts/jsdataadapters/restDataAdapter.js"></script>
@@ -117,7 +113,7 @@
117
113
  const datafeed = fileDatafeed;
118
114
  let chart;
119
115
 
120
- $(function () {
116
+ document.addEventListener('DOMContentLoaded', function () {
121
117
  datafeed.init().then(df => {
122
118
  const config = {
123
119
  chartContainer: '#chartContainer',
@@ -142,7 +138,7 @@
142
138
  }
143
139
  };
144
140
 
145
- chart = window.globalChart = $(config.chartContainer).FintaChart(config);
141
+ chart = window.globalChart = FintaChart.createChart(document.querySelector(config.chartContainer), config);
146
142
  window.globalChart.exchanges = () => (['FOREX', 'CRYPTO'])
147
143
 
148
144
  const arrowShape = new FintaChart.MultiArrowUpShape({id: '33654', })
@@ -14,15 +14,11 @@
14
14
  <link rel="stylesheet" href="css/external/jqNumericField.min.css">
15
15
  <link rel="stylesheet" href="css/FintaChart.min.css">
16
16
 
17
- <script src="scripts/frameworks/jquery.min.js"></script>
18
- <script src="scripts/frameworks/jquery-ui.min.js"></script>
19
17
  <script src="scripts/frameworks/Intl.min.js"></script>
20
18
  <script src="scripts/frameworks/moment.min.js"></script>
21
19
  <script src="scripts/frameworks/detectizr.min.js"></script>
22
20
  <script src="scripts/frameworks/dom-to-image-more.min.js"></script>
23
21
  <script src="scripts/frameworks/i18nextXHRBackend.min.js"></script>
24
- <script src="scripts/frameworks/jquery-i18next.min.js"></script>
25
- <script src="scripts/frameworks/jquery.ui.touch-punch.min.js"></script>
26
22
  <script src="scripts/FintaChart.min.js"></script>
27
23
  <script src="scripts/jsdataadapters/fileDataAdapter.js"></script>
28
24
  <script src="scripts/jsdataadapters/restDataAdapter.js"></script>
@@ -70,9 +66,9 @@
70
66
  FintaChart.ResourcePath.localization = 'localization/';
71
67
 
72
68
  const datafeed = fileDatafeed;
73
- const chartsContainer = new FintaChart.ChartContainer($('#chartsContainer'));
69
+ const chartsContainer = new FintaChart.ChartContainer(document.querySelector('#chartsContainer'));
74
70
 
75
- $(function () {
71
+ document.addEventListener('DOMContentLoaded', function () {
76
72
  datafeed.init().then(df => {
77
73
  chartsContainer.createMultipleCharts([
78
74
  {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fintatech/fintachart",
3
3
  "description": "FintaChart financial charting component",
4
4
  "homepage": "https://fintatech.com",
5
- "version": "3.1.0",
5
+ "version": "3.1.1",
6
6
  "types": "./d.ts/FintaChart.d.ts",
7
7
  "license": "SEE LICENSE IN LICENSE.md",
8
8
  "repository": {