@omegagrid/plugin-charts 0.10.2 → 0.10.4

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 (73) hide show
  1. package/dist/editorPlugin.d.ts +17 -0
  2. package/dist/editorPlugin.d.ts.map +1 -0
  3. package/dist/editorPlugin.js +79 -0
  4. package/dist/editorPlugin.js.map +1 -0
  5. package/dist/gridPlugin.d.ts +21 -0
  6. package/dist/gridPlugin.d.ts.map +1 -0
  7. package/dist/gridPlugin.js +83 -0
  8. package/dist/gridPlugin.js.map +1 -0
  9. package/dist/index.d.ts +10 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +10 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/loader.d.ts +17 -0
  14. package/dist/loader.d.ts.map +1 -0
  15. package/dist/loader.js +59 -0
  16. package/dist/loader.js.map +1 -0
  17. package/dist/model/chartModel.d.ts +46 -0
  18. package/dist/model/chartModel.d.ts.map +1 -0
  19. package/dist/model/chartModel.js +163 -0
  20. package/dist/model/chartModel.js.map +1 -0
  21. package/dist/model/index.d.ts +2 -0
  22. package/dist/model/index.d.ts.map +1 -0
  23. package/dist/model/index.js +2 -0
  24. package/dist/model/index.js.map +1 -0
  25. package/dist/themes/index.d.ts +3 -0
  26. package/dist/themes/index.d.ts.map +1 -0
  27. package/dist/themes/index.js +3 -0
  28. package/dist/themes/index.js.map +1 -0
  29. package/dist/themes/tmDark.d.ts +2 -0
  30. package/dist/themes/tmDark.d.ts.map +1 -0
  31. package/dist/themes/tmDark.js +227 -0
  32. package/dist/themes/tmDark.js.map +1 -0
  33. package/dist/themes/tmLight.d.ts +2 -0
  34. package/dist/themes/tmLight.d.ts.map +1 -0
  35. package/dist/themes/tmLight.js +249 -0
  36. package/dist/themes/tmLight.js.map +1 -0
  37. package/dist/types.d.ts +17 -0
  38. package/dist/types.d.ts.map +1 -0
  39. package/dist/types.js +2 -0
  40. package/dist/types.js.map +1 -0
  41. package/dist/ui/chart.d.ts +14 -0
  42. package/dist/ui/chart.d.ts.map +1 -0
  43. package/dist/ui/chart.js +44 -0
  44. package/dist/ui/chart.js.map +1 -0
  45. package/dist/ui/chart.style.d.ts +2 -0
  46. package/dist/ui/chart.style.d.ts.map +1 -0
  47. package/dist/ui/chart.style.js +1174 -0
  48. package/dist/ui/chart.style.js.map +1 -0
  49. package/dist/ui/chartForm.d.ts +20 -0
  50. package/dist/ui/chartForm.d.ts.map +1 -0
  51. package/dist/ui/chartForm.js +146 -0
  52. package/dist/ui/chartForm.js.map +1 -0
  53. package/dist/ui/chartForm.style.d.ts +2 -0
  54. package/dist/ui/chartForm.style.d.ts.map +1 -0
  55. package/dist/ui/chartForm.style.js +56 -0
  56. package/dist/ui/chartForm.style.js.map +1 -0
  57. package/dist/ui/chartList.d.ts +22 -0
  58. package/dist/ui/chartList.d.ts.map +1 -0
  59. package/dist/ui/chartList.js +108 -0
  60. package/dist/ui/chartList.js.map +1 -0
  61. package/dist/ui/chartList.style.d.ts +2 -0
  62. package/dist/ui/chartList.style.d.ts.map +1 -0
  63. package/dist/ui/chartList.style.js +36 -0
  64. package/dist/ui/chartList.style.js.map +1 -0
  65. package/dist/ui/index.d.ts +4 -0
  66. package/dist/ui/index.d.ts.map +1 -0
  67. package/dist/ui/index.js +4 -0
  68. package/dist/ui/index.js.map +1 -0
  69. package/dist/utils.d.ts +5 -0
  70. package/dist/utils.d.ts.map +1 -0
  71. package/dist/utils.js +39 -0
  72. package/dist/utils.js.map +1 -0
  73. package/package.json +5 -5
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tmDark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmDark.d.ts","sourceRoot":"","sources":["../../src/themes/tmDark.ts"],"names":[],"mappings":""}
@@ -0,0 +1,227 @@
1
+ import { getThemeManager } from "@omegagrid/core";
2
+ const baseTheme = getThemeManager().themes.get('dark');
3
+ Object.assign(baseTheme.definition, {
4
+ 'highcharts-title-font-size': '16px',
5
+ 'highcharts-subtitle-font-size': '14px',
6
+ /* Colors for data series and points */
7
+ 'highcharts-color-0': '#2caffe',
8
+ 'highcharts-color-1': '#544fc5',
9
+ 'highcharts-color-2': '#00e272',
10
+ 'highcharts-color-3': '#fe6a35',
11
+ 'highcharts-color-4': '#6b8abc',
12
+ 'highcharts-color-5': '#d568fb',
13
+ 'highcharts-color-6': '#2ee0ca',
14
+ 'highcharts-color-7': '#fa4b42',
15
+ 'highcharts-color-8': '#feb56a',
16
+ 'highcharts-color-9': '#91e8e1',
17
+ 'highcharts-background-color': 'rgb(48, 48, 48)',
18
+ /*
19
+ Neutral color variations
20
+ https://www.highcharts.com/samples/highcharts/css/palette-helper
21
+ */
22
+ 'highcharts-neutral-color-100': 'rgb(255, 255, 255)',
23
+ 'highcharts-neutral-color-80': 'rgb(214, 214, 214)',
24
+ 'highcharts-neutral-color-60': 'rgb(173, 173, 173)',
25
+ 'highcharts-neutral-color-40': 'rgb(133, 133, 133)',
26
+ 'highcharts-neutral-color-20': 'rgb(92, 92, 92)',
27
+ 'highcharts-neutral-color-10': 'rgb(71, 71, 71)',
28
+ 'highcharts-neutral-color-5': 'rgb(61, 61, 61)',
29
+ 'highcharts-neutral-color-3': 'rgb(57, 57, 57)',
30
+ /* Highlight color variations */
31
+ 'highcharts-highlight-color-100': 'rgb(122, 167, 255)',
32
+ 'highcharts-highlight-color-80': 'rgb(108, 144, 214)',
33
+ 'highcharts-highlight-color-60': 'rgb(94, 121, 173)',
34
+ 'highcharts-highlight-color-20': 'rgb(65, 74, 92)',
35
+ 'highcharts-highlight-color-10': 'rgb(58, 63, 71)',
36
+ });
37
+ // export const theme: DeepPartial<Highcharts.Options> = {
38
+ // colors: [
39
+ // '#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066',
40
+ // '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
41
+ // ],
42
+ // chart: {
43
+ // backgroundColor: {
44
+ // linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
45
+ // stops: [
46
+ // [0, '#2a2a2b'],
47
+ // [1, '#3e3e40']
48
+ // ]
49
+ // },
50
+ // style: {
51
+ // //fontFamily: '\'Unica One\', sans-serif'
52
+ // },
53
+ // plotBorderColor: '#606063'
54
+ // },
55
+ // title: {
56
+ // style: {
57
+ // color: '#E0E0E3',
58
+ // textTransform: 'uppercase',
59
+ // fontSize: '16px'
60
+ // }
61
+ // },
62
+ // subtitle: {
63
+ // style: {
64
+ // color: '#E0E0E3',
65
+ // textTransform: 'uppercase'
66
+ // }
67
+ // },
68
+ // xAxis: {
69
+ // gridLineColor: '#707073',
70
+ // labels: {
71
+ // style: {
72
+ // color: '#E0E0E3'
73
+ // }
74
+ // },
75
+ // lineColor: '#707073',
76
+ // minorGridLineColor: '#505053',
77
+ // tickColor: '#707073',
78
+ // title: {
79
+ // style: {
80
+ // color: '#A0A0A3'
81
+ // }
82
+ // }
83
+ // },
84
+ // yAxis: {
85
+ // gridLineColor: '#707073',
86
+ // labels: {
87
+ // style: {
88
+ // color: '#E0E0E3'
89
+ // }
90
+ // },
91
+ // lineColor: '#707073',
92
+ // minorGridLineColor: '#505053',
93
+ // tickColor: '#707073',
94
+ // tickWidth: 1,
95
+ // title: {
96
+ // style: {
97
+ // color: '#A0A0A3'
98
+ // }
99
+ // }
100
+ // },
101
+ // tooltip: {
102
+ // backgroundColor: 'rgba(0, 0, 0, 0.85)',
103
+ // style: {
104
+ // color: '#F0F0F0'
105
+ // }
106
+ // },
107
+ // plotOptions: {
108
+ // series: {
109
+ // dataLabels: {
110
+ // color: '#F0F0F3',
111
+ // style: {
112
+ // fontSize: '13px'
113
+ // }
114
+ // },
115
+ // marker: {
116
+ // lineColor: '#333'
117
+ // }
118
+ // },
119
+ // boxplot: {
120
+ // fillColor: '#505053'
121
+ // },
122
+ // candlestick: {
123
+ // lineColor: 'white'
124
+ // },
125
+ // errorbar: {
126
+ // color: 'white'
127
+ // }
128
+ // },
129
+ // legend: {
130
+ // backgroundColor: 'rgba(0, 0, 0, 0.5)',
131
+ // itemStyle: {
132
+ // color: '#E0E0E3'
133
+ // },
134
+ // itemHoverStyle: {
135
+ // color: '#FFF'
136
+ // },
137
+ // itemHiddenStyle: {
138
+ // color: '#606063'
139
+ // },
140
+ // title: {
141
+ // style: {
142
+ // color: '#C0C0C0'
143
+ // }
144
+ // }
145
+ // },
146
+ // credits: {
147
+ // style: {
148
+ // color: '#666'
149
+ // }
150
+ // },
151
+ // drilldown: {
152
+ // activeAxisLabelStyle: {
153
+ // color: '#F0F0F3'
154
+ // },
155
+ // activeDataLabelStyle: {
156
+ // color: '#F0F0F3'
157
+ // }
158
+ // },
159
+ // navigation: {
160
+ // buttonOptions: {
161
+ // symbolStroke: '#DDDDDD',
162
+ // theme: {
163
+ // fill: '#505053'
164
+ // }
165
+ // }
166
+ // },
167
+ // // Scroll charts
168
+ // rangeSelector: {
169
+ // buttonTheme: {
170
+ // fill: '#505053',
171
+ // stroke: '#000000',
172
+ // style: {
173
+ // color: '#CCC'
174
+ // },
175
+ // states: {
176
+ // hover: {
177
+ // fill: '#707073',
178
+ // stroke: '#000000',
179
+ // style: {
180
+ // color: 'white'
181
+ // }
182
+ // },
183
+ // select: {
184
+ // fill: '#000003',
185
+ // stroke: '#000000',
186
+ // style: {
187
+ // color: 'white'
188
+ // }
189
+ // }
190
+ // }
191
+ // },
192
+ // inputBoxBorderColor: '#505053',
193
+ // inputStyle: {
194
+ // backgroundColor: '#333',
195
+ // color: 'silver'
196
+ // },
197
+ // labelStyle: {
198
+ // color: 'silver'
199
+ // }
200
+ // },
201
+ // navigator: {
202
+ // handles: {
203
+ // backgroundColor: '#666',
204
+ // borderColor: '#AAA'
205
+ // },
206
+ // outlineColor: '#CCC',
207
+ // maskFill: 'rgba(255,255,255,0.1)',
208
+ // series: {
209
+ // color: '#7798BF',
210
+ // lineColor: '#A6C7ED'
211
+ // },
212
+ // xAxis: {
213
+ // gridLineColor: '#505053'
214
+ // }
215
+ // },
216
+ // scrollbar: {
217
+ // barBackgroundColor: '#808083',
218
+ // barBorderColor: '#808083',
219
+ // buttonArrowColor: '#CCC',
220
+ // buttonBackgroundColor: '#606063',
221
+ // buttonBorderColor: '#606063',
222
+ // rifleColor: '#FFF',
223
+ // trackBackgroundColor: '#404043',
224
+ // trackBorderColor: '#404043'
225
+ // }
226
+ // };
227
+ //# sourceMappingURL=tmDark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmDark.js","sourceRoot":"","sources":["../../src/themes/tmDark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,SAAS,GAAG,eAAe,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAEvD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE;IACnC,4BAA4B,EAAE,MAAM;IACpC,+BAA+B,EAAE,MAAM;IAEvC,uCAAuC;IACvC,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAE/B,6BAA6B,EAAE,iBAAiB;IAEhD;;;MAGE;IACF,8BAA8B,EAAE,oBAAoB;IACpD,6BAA6B,EAAE,oBAAoB;IACnD,6BAA6B,EAAE,oBAAoB;IACnD,6BAA6B,EAAE,oBAAoB;IACnD,6BAA6B,EAAE,iBAAiB;IAChD,6BAA6B,EAAE,iBAAiB;IAChD,4BAA4B,EAAE,iBAAiB;IAC/C,4BAA4B,EAAE,iBAAiB;IAE/C,gCAAgC;IAChC,gCAAgC,EAAE,oBAAoB;IACtD,+BAA+B,E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AA8B;AAC9B,sCAAsC;AACtC,kCAAkC;AAClC,wBAAwB;AACxB,qCAAqC;AACrC,gCAAgC;AAChC,KAAK;AACL,KAAK","sourcesContent":["import { getThemeManager } from \"@omegagrid/core\";\n\nconst baseTheme = getThemeManager().themes.get('dark');\n\nObject.assign(baseTheme.definition, {\n\t'highcharts-title-font-size': '16px',\n\t'highcharts-subtitle-font-size': '14px',\n\n\t/* Colors for data series and points */\n\t'highcharts-color-0': '#2caffe',\n\t'highcharts-color-1': '#544fc5',\n\t'highcharts-color-2': '#00e272',\n\t'highcharts-color-3': '#fe6a35',\n\t'highcharts-color-4': '#6b8abc',\n\t'highcharts-color-5': '#d568fb',\n\t'highcharts-color-6': '#2ee0ca',\n\t'highcharts-color-7': '#fa4b42',\n\t'highcharts-color-8': '#feb56a',\n\t'highcharts-color-9': '#91e8e1',\n\n\t'highcharts-background-color': 'rgb(48, 48, 48)',\n\n\t/*\n\t\tNeutral color variations\n\t\thttps://www.highcharts.com/samples/highcharts/css/palette-helper\n\t*/\n\t'highcharts-neutral-color-100': 'rgb(255, 255, 255)',\n\t'highcharts-neutral-color-80': 'rgb(214, 214, 214)',\n\t'highcharts-neutral-color-60': 'rgb(173, 173, 173)',\n\t'highcharts-neutral-color-40': 'rgb(133, 133, 133)',\n\t'highcharts-neutral-color-20': 'rgb(92, 92, 92)',\n\t'highcharts-neutral-color-10': 'rgb(71, 71, 71)',\n\t'highcharts-neutral-color-5': 'rgb(61, 61, 61)',\n\t'highcharts-neutral-color-3': 'rgb(57, 57, 57)',\n\n\t/* Highlight color variations */\n\t'highcharts-highlight-color-100': 'rgb(122, 167, 255)',\n\t'highcharts-highlight-color-80': 'rgb(108, 144, 214)',\n\t'highcharts-highlight-color-60': 'rgb(94, 121, 173)',\n\t'highcharts-highlight-color-20': 'rgb(65, 74, 92)',\n\t'highcharts-highlight-color-10': 'rgb(58, 63, 71)',\n\n});\n\n// export const theme: DeepPartial<Highcharts.Options> = {\n// \tcolors: [\n// \t\t'#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066',\n// \t\t'#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'\n// \t],\n// \tchart: {\n// \t\tbackgroundColor: {\n// \t\t\tlinearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },\n// \t\t\tstops: [\n// \t\t\t\t[0, '#2a2a2b'],\n// \t\t\t\t[1, '#3e3e40']\n// \t\t\t]\n// \t\t},\n// \t\tstyle: {\n// \t\t\t//fontFamily: '\\'Unica One\\', sans-serif'\n// \t\t},\n// \t\tplotBorderColor: '#606063'\n// \t},\n// \ttitle: {\n// \t\tstyle: {\n// \t\t\tcolor: '#E0E0E3',\n// \t\t\ttextTransform: 'uppercase',\n// \t\t\tfontSize: '16px'\n// \t\t}\n// \t},\n// \tsubtitle: {\n// \t\tstyle: {\n// \t\t\tcolor: '#E0E0E3',\n// \t\t\ttextTransform: 'uppercase'\n// \t\t}\n// \t},\n// \txAxis: {\n// \t\tgridLineColor: '#707073',\n// \t\tlabels: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#E0E0E3'\n// \t\t\t}\n// \t\t},\n// \t\tlineColor: '#707073',\n// \t\tminorGridLineColor: '#505053',\n// \t\ttickColor: '#707073',\n// \t\ttitle: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#A0A0A3'\n\n// \t\t\t}\n// \t\t}\n// \t},\n// \tyAxis: {\n// \t\tgridLineColor: '#707073',\n// \t\tlabels: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#E0E0E3'\n// \t\t\t}\n// \t\t},\n// \t\tlineColor: '#707073',\n// \t\tminorGridLineColor: '#505053',\n// \t\ttickColor: '#707073',\n// \t\ttickWidth: 1,\n// \t\ttitle: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#A0A0A3'\n// \t\t\t}\n// \t\t}\n// \t},\n// \ttooltip: {\n// \t\tbackgroundColor: 'rgba(0, 0, 0, 0.85)',\n// \t\tstyle: {\n// \t\t\tcolor: '#F0F0F0'\n// \t\t}\n// \t},\n// \tplotOptions: {\n// \t\tseries: {\n// \t\t\tdataLabels: {\n// \t\t\t\tcolor: '#F0F0F3',\n// \t\t\t\tstyle: {\n// \t\t\t\t\tfontSize: '13px'\n// \t\t\t\t}\n// \t\t\t},\n// \t\t\tmarker: {\n// \t\t\t\tlineColor: '#333'\n// \t\t\t}\n// \t\t},\n// \t\tboxplot: {\n// \t\t\tfillColor: '#505053'\n// \t\t},\n// \t\tcandlestick: {\n// \t\t\tlineColor: 'white'\n// \t\t},\n// \t\terrorbar: {\n// \t\t\tcolor: 'white'\n// \t\t}\n// \t},\n// \tlegend: {\n// \t\tbackgroundColor: 'rgba(0, 0, 0, 0.5)',\n// \t\titemStyle: {\n// \t\t\tcolor: '#E0E0E3'\n// \t\t},\n// \t\titemHoverStyle: {\n// \t\t\tcolor: '#FFF'\n// \t\t},\n// \t\titemHiddenStyle: {\n// \t\t\tcolor: '#606063'\n// \t\t},\n// \t\ttitle: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#C0C0C0'\n// \t\t\t}\n// \t\t}\n// \t},\n// \tcredits: {\n// \t\tstyle: {\n// \t\t\tcolor: '#666'\n// \t\t}\n// \t},\n\n// \tdrilldown: {\n// \t\tactiveAxisLabelStyle: {\n// \t\t\tcolor: '#F0F0F3'\n// \t\t},\n// \t\tactiveDataLabelStyle: {\n// \t\t\tcolor: '#F0F0F3'\n// \t\t}\n// \t},\n\n// \tnavigation: {\n// \t\tbuttonOptions: {\n// \t\t\tsymbolStroke: '#DDDDDD',\n// \t\t\ttheme: {\n// \t\t\t\tfill: '#505053'\n// \t\t\t}\n// \t\t}\n// \t},\n\n// \t// Scroll charts\n// \trangeSelector: {\n// \t\tbuttonTheme: {\n// \t\t\tfill: '#505053',\n// \t\t\tstroke: '#000000',\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#CCC'\n// \t\t\t},\n// \t\t\tstates: {\n// \t\t\t\thover: {\n// \t\t\t\t\tfill: '#707073',\n// \t\t\t\t\tstroke: '#000000',\n// \t\t\t\t\tstyle: {\n// \t\t\t\t\t\tcolor: 'white'\n// \t\t\t\t\t}\n// \t\t\t\t},\n// \t\t\t\tselect: {\n// \t\t\t\t\tfill: '#000003',\n// \t\t\t\t\tstroke: '#000000',\n// \t\t\t\t\tstyle: {\n// \t\t\t\t\t\tcolor: 'white'\n// \t\t\t\t\t}\n// \t\t\t\t}\n// \t\t\t}\n// \t\t},\n// \t\tinputBoxBorderColor: '#505053',\n// \t\tinputStyle: {\n// \t\t\tbackgroundColor: '#333',\n// \t\t\tcolor: 'silver'\n// \t\t},\n// \t\tlabelStyle: {\n// \t\t\tcolor: 'silver'\n// \t\t}\n// \t},\n\n// \tnavigator: {\n// \t\thandles: {\n// \t\t\tbackgroundColor: '#666',\n// \t\t\tborderColor: '#AAA'\n// \t\t},\n// \t\toutlineColor: '#CCC',\n// \t\tmaskFill: 'rgba(255,255,255,0.1)',\n// \t\tseries: {\n// \t\t\tcolor: '#7798BF',\n// \t\t\tlineColor: '#A6C7ED'\n// \t\t},\n// \t\txAxis: {\n// \t\t\tgridLineColor: '#505053'\n// \t\t}\n// \t},\n\n// \tscrollbar: {\n// \t\tbarBackgroundColor: '#808083',\n// \t\tbarBorderColor: '#808083',\n// \t\tbuttonArrowColor: '#CCC',\n// \t\tbuttonBackgroundColor: '#606063',\n// \t\tbuttonBorderColor: '#606063',\n// \t\trifleColor: '#FFF',\n// \t\ttrackBackgroundColor: '#404043',\n// \t\ttrackBorderColor: '#404043'\n// \t}\n// };\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tmLight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmLight.d.ts","sourceRoot":"","sources":["../../src/themes/tmLight.ts"],"names":[],"mappings":""}
@@ -0,0 +1,249 @@
1
+ import { getThemeManager } from "@omegagrid/core";
2
+ const baseTheme = getThemeManager().themes.get('light');
3
+ Object.assign(baseTheme.definition, {
4
+ 'highcharts-title-font-size': '16px',
5
+ 'chart-background-color': '#2a2a2b',
6
+ /* Colors for data series and points */
7
+ 'highcharts-color-0': '#2caffe',
8
+ 'highcharts-color-1': '#544fc5',
9
+ 'highcharts-color-2': '#00e272',
10
+ 'highcharts-color-3': '#fe6a35',
11
+ 'highcharts-color-4': '#6b8abc',
12
+ 'highcharts-color-5': '#d568fb',
13
+ 'highcharts-color-6': '#2ee0ca',
14
+ 'highcharts-color-7': '#fa4b42',
15
+ 'highcharts-color-8': '#feb56a',
16
+ 'highcharts-color-9': '#91e8e1',
17
+ 'highcharts-background-color': '#ffffff',
18
+ /* Strong text. */
19
+ 'highcharts-neutral-color-100': '#000000',
20
+ /* Main text, axis labels and some strokes. */
21
+ 'highcharts-neutral-color-80': '#333333',
22
+ /* Axis title, connector fallback. */
23
+ 'highcharts-neutral-color-60': '#666666',
24
+ /* Credits text, export menu stroke. */
25
+ 'highcharts-neutral-color-40': '#999999',
26
+ /* Disabled texts, button strokes, crosshair etc. */
27
+ 'highcharts-neutral-color-20': '#cccccc',
28
+ /* Grid lines etc. */
29
+ 'highcharts-neutral-color-10': '#e6e6e6',
30
+ /* Minor grid lines etc. */
31
+ 'highcharts-neutral-color-5': '#f2f2f2',
32
+ /* Tooltip backgroud, button fills, map null points. */
33
+ 'highcharts-neutral-color-3': '#f7f7f7',
34
+ /*
35
+ Highlights, shades of blue by default
36
+ */
37
+ /* Drilldown clickable labels, color axis max color. */
38
+ 'highcharts-highlight-color-100': '#0022ff',
39
+ /* Selection marker, menu hover, button hover, chart border, navigator
40
+ series. */
41
+ 'highcharts-highlight-color-80': '#334eff',
42
+ /* Navigator mask fill. */
43
+ 'highcharts-highlight-color-60': '#667aff',
44
+ /* Ticks and axis line. */
45
+ 'highcharts-highlight-color-20': '#ccd3ff',
46
+ /* Pressed button, color axis min color. */
47
+ 'highcharts-highlight-color-10': '#e6e9ff',
48
+ /* Indicators */
49
+ 'highcharts-positive-color': '#06b535',
50
+ 'highcharts-negative-color': '#f21313',
51
+ /* Transparent colors for annotations */
52
+ 'highcharts-annotation-color-0': 'rgba(130, 170, 255, 0.4)',
53
+ 'highcharts-annotation-color-1': 'rgba(139, 191, 216, 0.4)',
54
+ 'highcharts-annotation-color-2': 'rgba(150, 216, 192, 0.4)',
55
+ 'highcharts-annotation-color-3': 'rgba(156, 229, 161, 0.4)',
56
+ 'highcharts-annotation-color-4': 'rgba(162, 241, 130, 0.4)',
57
+ 'highcharts-annotation-color-5': 'rgba(169, 255, 101, 0.4)',
58
+ });
59
+ // export const theme: DeepPartial<Highcharts.Options> = {
60
+ // colors: [
61
+ // '#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066',
62
+ // '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
63
+ // ],
64
+ // chart: {
65
+ // backgroundColor: {
66
+ // linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
67
+ // stops: [
68
+ // [0, '#2a2a2b'],
69
+ // [1, '#3e3e40']
70
+ // ]
71
+ // },
72
+ // style: {
73
+ // //fontFamily: '\'Unica One\', sans-serif'
74
+ // },
75
+ // plotBorderColor: '#606063'
76
+ // },
77
+ // title: {
78
+ // style: {
79
+ // color: '#E0E0E3',
80
+ // textTransform: 'uppercase',
81
+ // fontSize: '16px'
82
+ // }
83
+ // },
84
+ // subtitle: {
85
+ // style: {
86
+ // color: '#E0E0E3',
87
+ // textTransform: 'uppercase'
88
+ // }
89
+ // },
90
+ // xAxis: {
91
+ // gridLineColor: '#707073',
92
+ // labels: {
93
+ // style: {
94
+ // color: '#E0E0E3'
95
+ // }
96
+ // },
97
+ // lineColor: '#707073',
98
+ // minorGridLineColor: '#505053',
99
+ // tickColor: '#707073',
100
+ // title: {
101
+ // style: {
102
+ // color: '#A0A0A3'
103
+ // }
104
+ // }
105
+ // },
106
+ // yAxis: {
107
+ // gridLineColor: '#707073',
108
+ // labels: {
109
+ // style: {
110
+ // color: '#E0E0E3'
111
+ // }
112
+ // },
113
+ // lineColor: '#707073',
114
+ // minorGridLineColor: '#505053',
115
+ // tickColor: '#707073',
116
+ // tickWidth: 1,
117
+ // title: {
118
+ // style: {
119
+ // color: '#A0A0A3'
120
+ // }
121
+ // }
122
+ // },
123
+ // tooltip: {
124
+ // backgroundColor: 'rgba(0, 0, 0, 0.85)',
125
+ // style: {
126
+ // color: '#F0F0F0'
127
+ // }
128
+ // },
129
+ // plotOptions: {
130
+ // series: {
131
+ // dataLabels: {
132
+ // color: '#F0F0F3',
133
+ // style: {
134
+ // fontSize: '13px'
135
+ // }
136
+ // },
137
+ // marker: {
138
+ // lineColor: '#333'
139
+ // }
140
+ // },
141
+ // boxplot: {
142
+ // fillColor: '#505053'
143
+ // },
144
+ // candlestick: {
145
+ // lineColor: 'white'
146
+ // },
147
+ // errorbar: {
148
+ // color: 'white'
149
+ // }
150
+ // },
151
+ // legend: {
152
+ // backgroundColor: 'rgba(0, 0, 0, 0.5)',
153
+ // itemStyle: {
154
+ // color: '#E0E0E3'
155
+ // },
156
+ // itemHoverStyle: {
157
+ // color: '#FFF'
158
+ // },
159
+ // itemHiddenStyle: {
160
+ // color: '#606063'
161
+ // },
162
+ // title: {
163
+ // style: {
164
+ // color: '#C0C0C0'
165
+ // }
166
+ // }
167
+ // },
168
+ // credits: {
169
+ // style: {
170
+ // color: '#666'
171
+ // }
172
+ // },
173
+ // drilldown: {
174
+ // activeAxisLabelStyle: {
175
+ // color: '#F0F0F3'
176
+ // },
177
+ // activeDataLabelStyle: {
178
+ // color: '#F0F0F3'
179
+ // }
180
+ // },
181
+ // navigation: {
182
+ // buttonOptions: {
183
+ // symbolStroke: '#DDDDDD',
184
+ // theme: {
185
+ // fill: '#505053'
186
+ // }
187
+ // }
188
+ // },
189
+ // // Scroll charts
190
+ // rangeSelector: {
191
+ // buttonTheme: {
192
+ // fill: '#505053',
193
+ // stroke: '#000000',
194
+ // style: {
195
+ // color: '#CCC'
196
+ // },
197
+ // states: {
198
+ // hover: {
199
+ // fill: '#707073',
200
+ // stroke: '#000000',
201
+ // style: {
202
+ // color: 'white'
203
+ // }
204
+ // },
205
+ // select: {
206
+ // fill: '#000003',
207
+ // stroke: '#000000',
208
+ // style: {
209
+ // color: 'white'
210
+ // }
211
+ // }
212
+ // }
213
+ // },
214
+ // inputBoxBorderColor: '#505053',
215
+ // inputStyle: {
216
+ // backgroundColor: '#333',
217
+ // color: 'silver'
218
+ // },
219
+ // labelStyle: {
220
+ // color: 'silver'
221
+ // }
222
+ // },
223
+ // navigator: {
224
+ // handles: {
225
+ // backgroundColor: '#666',
226
+ // borderColor: '#AAA'
227
+ // },
228
+ // outlineColor: '#CCC',
229
+ // maskFill: 'rgba(255,255,255,0.1)',
230
+ // series: {
231
+ // color: '#7798BF',
232
+ // lineColor: '#A6C7ED'
233
+ // },
234
+ // xAxis: {
235
+ // gridLineColor: '#505053'
236
+ // }
237
+ // },
238
+ // scrollbar: {
239
+ // barBackgroundColor: '#808083',
240
+ // barBorderColor: '#808083',
241
+ // buttonArrowColor: '#CCC',
242
+ // buttonBackgroundColor: '#606063',
243
+ // buttonBorderColor: '#606063',
244
+ // rifleColor: '#FFF',
245
+ // trackBackgroundColor: '#404043',
246
+ // trackBorderColor: '#404043'
247
+ // }
248
+ // };
249
+ //# sourceMappingURL=tmLight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmLight.js","sourceRoot":"","sources":["../../src/themes/tmLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,SAAS,GAAG,eAAe,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE;IACnC,4BAA4B,EAAE,MAAM;IAEpC,wBAAwB,EAAE,SAAS;IACnC,uCAAuC;IACvC,oBAAoB,EAAE,SAAS;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,oB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ACd,aAAa;AACb,mBAAmB;AACnB,MAAM;AACN,MAAM;AAEN,gBAAgB;AAChB,4BAA4B;AAC5B,sBAAsB;AACtB,OAAO;AACP,4BAA4B;AAC5B,sBAAsB;AACtB,MAAM;AACN,MAAM;AAEN,iBAAiB;AACjB,qBAAqB;AACrB,8BAA8B;AAC9B,cAAc;AACd,sBAAsB;AACtB,OAAO;AACP,MAAM;AACN,MAAM;AAEN,oBAAoB;AACpB,oBAAoB;AACpB,mBAAmB;AACnB,sBAAsB;AACtB,wBAAwB;AACxB,cAAc;AACd,oBAAoB;AACpB,QAAQ;AACR,eAAe;AACf,eAAe;AACf,wBAAwB;AACxB,0BAA0B;AAC1B,gBAAgB;AAChB,uBAAuB;AACvB,SAAS;AACT,SAAS;AACT,gBAAgB;AAChB,wBAAwB;AACxB,0BAA0B;AAC1B,gBAAgB;AAChB,uBAAuB;AACvB,SAAS;AACT,QAAQ;AACR,OAAO;AACP,OAAO;AACP,oCAAoC;AACpC,kBAAkB;AAClB,8BAA8B;AAC9B,qBAAqB;AACrB,OAAO;AACP,kBAAkB;AAClB,qBAAqB;AACrB,MAAM;AACN,MAAM;AAEN,gBAAgB;AAChB,eAAe;AACf,8BAA8B;AAC9B,yBAAyB;AACzB,OAAO;AACP,0BAA0B;AAC1B,uCAAuC;AACvC,cAAc;AACd,uBAAuB;AACvB,0BAA0B;AAC1B,OAAO;AACP,aAAa;AACb,8BAA8B;AAC9B,MAAM;AACN,MAAM;AAEN,gBAAgB;AAChB,mCAAmC;AACnC,+BAA+B;AAC/B,8BAA8B;AAC9B,sCAAsC;AACtC,kCAAkC;AAClC,wBAAwB;AACxB,qCAAqC;AACrC,gCAAgC;AAChC,KAAK;AACL,KAAK","sourcesContent":["import { getThemeManager } from \"@omegagrid/core\";\n\nconst baseTheme = getThemeManager().themes.get('light');\n\nObject.assign(baseTheme.definition, {\n\t'highcharts-title-font-size': '16px',\n\n\t'chart-background-color': '#2a2a2b',\n\t/* Colors for data series and points */\n\t'highcharts-color-0': '#2caffe',\n\t'highcharts-color-1': '#544fc5',\n\t'highcharts-color-2': '#00e272',\n\t'highcharts-color-3': '#fe6a35',\n\t'highcharts-color-4': '#6b8abc',\n\t'highcharts-color-5': '#d568fb',\n\t'highcharts-color-6': '#2ee0ca',\n\t'highcharts-color-7': '#fa4b42',\n\t'highcharts-color-8': '#feb56a',\n\t'highcharts-color-9': '#91e8e1',\n\n\t'highcharts-background-color': '#ffffff',\n\n\t/* Strong text. */\n\t'highcharts-neutral-color-100': '#000000',\n\n\t/* Main text, axis labels and some strokes. */\n\t'highcharts-neutral-color-80': '#333333',\n\n\t/* Axis title, connector fallback. */\n\t'highcharts-neutral-color-60': '#666666',\n\n\t/* Credits text, export menu stroke. */\n\t'highcharts-neutral-color-40': '#999999',\n\n\t/* Disabled texts, button strokes, crosshair etc. */\n\t'highcharts-neutral-color-20': '#cccccc',\n\n\t/* Grid lines etc. */\n\t'highcharts-neutral-color-10': '#e6e6e6',\n\n\t/* Minor grid lines etc. */\n\t'highcharts-neutral-color-5': '#f2f2f2',\n\n\t/* Tooltip backgroud, button fills, map null points. */\n\t'highcharts-neutral-color-3': '#f7f7f7',\n\n\t/*\n\tHighlights, shades of blue by default\n\t*/\n\n\t/* Drilldown clickable labels, color axis max color. */\n\t'highcharts-highlight-color-100': '#0022ff',\n\n\t/* Selection marker, menu hover, button hover, chart border, navigator\n\tseries. */\n\t'highcharts-highlight-color-80': '#334eff',\n\n\t/* Navigator mask fill. */\n\t'highcharts-highlight-color-60': '#667aff',\n\n\t/* Ticks and axis line. */\n\t'highcharts-highlight-color-20': '#ccd3ff',\n\n\t/* Pressed button, color axis min color. */\n\t'highcharts-highlight-color-10': '#e6e9ff',\n\n\t/* Indicators */\n\t'highcharts-positive-color': '#06b535',\n\t'highcharts-negative-color': '#f21313',\n\n\t/* Transparent colors for annotations */\n\t'highcharts-annotation-color-0': 'rgba(130, 170, 255, 0.4)',\n\t'highcharts-annotation-color-1': 'rgba(139, 191, 216, 0.4)',\n\t'highcharts-annotation-color-2': 'rgba(150, 216, 192, 0.4)',\n\t'highcharts-annotation-color-3': 'rgba(156, 229, 161, 0.4)',\n\t'highcharts-annotation-color-4': 'rgba(162, 241, 130, 0.4)',\n\t'highcharts-annotation-color-5': 'rgba(169, 255, 101, 0.4)',\n});\n\n// export const theme: DeepPartial<Highcharts.Options> = {\n// \tcolors: [\n// \t\t'#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066',\n// \t\t'#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'\n// \t],\n// \tchart: {\n// \t\tbackgroundColor: {\n// \t\t\tlinearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },\n// \t\t\tstops: [\n// \t\t\t\t[0, '#2a2a2b'],\n// \t\t\t\t[1, '#3e3e40']\n// \t\t\t]\n// \t\t},\n// \t\tstyle: {\n// \t\t\t//fontFamily: '\\'Unica One\\', sans-serif'\n// \t\t},\n// \t\tplotBorderColor: '#606063'\n// \t},\n// \ttitle: {\n// \t\tstyle: {\n// \t\t\tcolor: '#E0E0E3',\n// \t\t\ttextTransform: 'uppercase',\n// \t\t\tfontSize: '16px'\n// \t\t}\n// \t},\n// \tsubtitle: {\n// \t\tstyle: {\n// \t\t\tcolor: '#E0E0E3',\n// \t\t\ttextTransform: 'uppercase'\n// \t\t}\n// \t},\n// \txAxis: {\n// \t\tgridLineColor: '#707073',\n// \t\tlabels: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#E0E0E3'\n// \t\t\t}\n// \t\t},\n// \t\tlineColor: '#707073',\n// \t\tminorGridLineColor: '#505053',\n// \t\ttickColor: '#707073',\n// \t\ttitle: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#A0A0A3'\n\n// \t\t\t}\n// \t\t}\n// \t},\n// \tyAxis: {\n// \t\tgridLineColor: '#707073',\n// \t\tlabels: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#E0E0E3'\n// \t\t\t}\n// \t\t},\n// \t\tlineColor: '#707073',\n// \t\tminorGridLineColor: '#505053',\n// \t\ttickColor: '#707073',\n// \t\ttickWidth: 1,\n// \t\ttitle: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#A0A0A3'\n// \t\t\t}\n// \t\t}\n// \t},\n// \ttooltip: {\n// \t\tbackgroundColor: 'rgba(0, 0, 0, 0.85)',\n// \t\tstyle: {\n// \t\t\tcolor: '#F0F0F0'\n// \t\t}\n// \t},\n// \tplotOptions: {\n// \t\tseries: {\n// \t\t\tdataLabels: {\n// \t\t\t\tcolor: '#F0F0F3',\n// \t\t\t\tstyle: {\n// \t\t\t\t\tfontSize: '13px'\n// \t\t\t\t}\n// \t\t\t},\n// \t\t\tmarker: {\n// \t\t\t\tlineColor: '#333'\n// \t\t\t}\n// \t\t},\n// \t\tboxplot: {\n// \t\t\tfillColor: '#505053'\n// \t\t},\n// \t\tcandlestick: {\n// \t\t\tlineColor: 'white'\n// \t\t},\n// \t\terrorbar: {\n// \t\t\tcolor: 'white'\n// \t\t}\n// \t},\n// \tlegend: {\n// \t\tbackgroundColor: 'rgba(0, 0, 0, 0.5)',\n// \t\titemStyle: {\n// \t\t\tcolor: '#E0E0E3'\n// \t\t},\n// \t\titemHoverStyle: {\n// \t\t\tcolor: '#FFF'\n// \t\t},\n// \t\titemHiddenStyle: {\n// \t\t\tcolor: '#606063'\n// \t\t},\n// \t\ttitle: {\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#C0C0C0'\n// \t\t\t}\n// \t\t}\n// \t},\n// \tcredits: {\n// \t\tstyle: {\n// \t\t\tcolor: '#666'\n// \t\t}\n// \t},\n\n// \tdrilldown: {\n// \t\tactiveAxisLabelStyle: {\n// \t\t\tcolor: '#F0F0F3'\n// \t\t},\n// \t\tactiveDataLabelStyle: {\n// \t\t\tcolor: '#F0F0F3'\n// \t\t}\n// \t},\n\n// \tnavigation: {\n// \t\tbuttonOptions: {\n// \t\t\tsymbolStroke: '#DDDDDD',\n// \t\t\ttheme: {\n// \t\t\t\tfill: '#505053'\n// \t\t\t}\n// \t\t}\n// \t},\n\n// \t// Scroll charts\n// \trangeSelector: {\n// \t\tbuttonTheme: {\n// \t\t\tfill: '#505053',\n// \t\t\tstroke: '#000000',\n// \t\t\tstyle: {\n// \t\t\t\tcolor: '#CCC'\n// \t\t\t},\n// \t\t\tstates: {\n// \t\t\t\thover: {\n// \t\t\t\t\tfill: '#707073',\n// \t\t\t\t\tstroke: '#000000',\n// \t\t\t\t\tstyle: {\n// \t\t\t\t\t\tcolor: 'white'\n// \t\t\t\t\t}\n// \t\t\t\t},\n// \t\t\t\tselect: {\n// \t\t\t\t\tfill: '#000003',\n// \t\t\t\t\tstroke: '#000000',\n// \t\t\t\t\tstyle: {\n// \t\t\t\t\t\tcolor: 'white'\n// \t\t\t\t\t}\n// \t\t\t\t}\n// \t\t\t}\n// \t\t},\n// \t\tinputBoxBorderColor: '#505053',\n// \t\tinputStyle: {\n// \t\t\tbackgroundColor: '#333',\n// \t\t\tcolor: 'silver'\n// \t\t},\n// \t\tlabelStyle: {\n// \t\t\tcolor: 'silver'\n// \t\t}\n// \t},\n\n// \tnavigator: {\n// \t\thandles: {\n// \t\t\tbackgroundColor: '#666',\n// \t\t\tborderColor: '#AAA'\n// \t\t},\n// \t\toutlineColor: '#CCC',\n// \t\tmaskFill: 'rgba(255,255,255,0.1)',\n// \t\tseries: {\n// \t\t\tcolor: '#7798BF',\n// \t\t\tlineColor: '#A6C7ED'\n// \t\t},\n// \t\txAxis: {\n// \t\t\tgridLineColor: '#505053'\n// \t\t}\n// \t},\n\n// \tscrollbar: {\n// \t\tbarBackgroundColor: '#808083',\n// \t\tbarBorderColor: '#808083',\n// \t\tbuttonArrowColor: '#CCC',\n// \t\tbuttonBackgroundColor: '#606063',\n// \t\tbuttonBorderColor: '#606063',\n// \t\trifleColor: '#FFF',\n// \t\ttrackBackgroundColor: '#404043',\n// \t\ttrackBorderColor: '#404043'\n// \t}\n// };\n"]}
@@ -0,0 +1,17 @@
1
+ import { GridSource, ObjectModel, RangeAddress } from '@omegagrid/grid';
2
+ import type { Options } from 'highcharts/highcharts';
3
+ export type ChartType = 'column' | 'bar' | 'line' | 'pie';
4
+ export type ChartGrouping = 'standard' | 'stacked' | 'percentStacked' | 'clustered';
5
+ export type ChartSource = ObjectModel & {
6
+ type: ChartType;
7
+ dataRange: RangeAddress;
8
+ grouping?: ChartGrouping;
9
+ seriesRange?: RangeAddress;
10
+ categoriesRange?: RangeAddress;
11
+ title?: string;
12
+ highchartsOptions?: Options;
13
+ };
14
+ export type ChartGridSource = GridSource & {
15
+ charts?: ChartSource[];
16
+ };
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,GAAG,WAAW,CAAC;AAEpF,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IAC1C,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;CACvB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["import { GridSource, ObjectModel, RangeAddress } from '@omegagrid/grid';\nimport type { Options } from 'highcharts/highcharts';\n\nexport type ChartType = 'column' | 'bar' | 'line' | 'pie';\nexport type ChartGrouping = 'standard' | 'stacked' | 'percentStacked' | 'clustered';\n\nexport type ChartSource = ObjectModel & {\n\ttype: ChartType;\n\tdataRange: RangeAddress;\n\tgrouping?: ChartGrouping;\n\tseriesRange?: RangeAddress;\n\tcategoriesRange?: RangeAddress;\n\ttitle?: string;\n\thighchartsOptions?: Options;\n};\n\nexport type ChartGridSource = GridSource & {\n\tcharts?: ChartSource[];\n};\n"]}
@@ -0,0 +1,14 @@
1
+ import { Layout } from "@omegagrid/core";
2
+ import { LitElement } from "lit";
3
+ import { ChartModel } from "../model";
4
+ export declare class Chart extends LitElement implements Layout {
5
+ static styles: import("lit").CSSResult[];
6
+ chartWrapper: HTMLDivElement;
7
+ model: ChartModel;
8
+ chart: Highcharts.Chart;
9
+ updated(): Promise<void>;
10
+ refresh(): void;
11
+ render: () => import("lit-html").TemplateResult<1>;
12
+ layout(): void;
13
+ }
14
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/ui/chart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,qBACa,KAAM,SAAQ,UAAW,YAAW,MAAM;IAEtD,MAAM,CAAC,MAAM,4BAAW;IAGxB,YAAY,EAAE,cAAc,CAAC;IAG7B,KAAK,EAAE,UAAU,CAAC;IAElB,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IAElB,OAAO;IAKb,OAAO;IAMP,MAAM,6CAEJ;IAEF,MAAM;CAKN"}
@@ -0,0 +1,44 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { renderChart } from "../utils";
8
+ import { LitElement, html } from "lit";
9
+ import { customElement, property, query } from "lit/decorators.js";
10
+ import { style } from "./chart.style";
11
+ let Chart = class Chart extends LitElement {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.render = () => html `
15
+ <div id="chart">uninitialized chart</div>
16
+ `;
17
+ }
18
+ async updated() {
19
+ if (!this.model)
20
+ return;
21
+ this.chart = await renderChart(this.model, this.chartWrapper);
22
+ }
23
+ refresh() {
24
+ if (!this.model)
25
+ return;
26
+ this.model.invalidateData();
27
+ this.requestUpdate();
28
+ }
29
+ layout() {
30
+ this.chart?.reflow();
31
+ }
32
+ };
33
+ Chart.styles = [style];
34
+ __decorate([
35
+ query("#chart")
36
+ ], Chart.prototype, "chartWrapper", void 0);
37
+ __decorate([
38
+ property({ type: Object })
39
+ ], Chart.prototype, "model", void 0);
40
+ Chart = __decorate([
41
+ customElement("og-plugin-chart")
42
+ ], Chart);
43
+ export { Chart };
44
+ //# sourceMappingURL=chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.js","sourceRoot":"","sources":["../../src/ui/chart.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG/B,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,UAAU;IAA9B;;QAuBN,WAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAA;;EAElB,CAAC;IAOH,CAAC;IApBA,KAAK,CAAC,OAAO;QACZ,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO;QACxB,IAAI,CAAC,KAAK,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO;QACN,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO;QACxB,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;QAC5B,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAMD,MAAM;QACL,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACtB,CAAC;;AA3BM,YAAM,GAAG,CAAC,KAAK,CAAC,AAAV,CAAW;AAGxB;IADC,KAAK,CAAC,QAAQ,CAAC;2CACa;AAG7B;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;oCACP;AARN,KAAK;IADjB,aAAa,CAAC,iBAAiB,CAAC;GACpB,KAAK,CAgCjB","sourcesContent":["import { Layout } from \"@omegagrid/core\";\nimport { renderChart } from \"../utils\";\nimport { LitElement, html } from \"lit\";\nimport { customElement, property, query } from \"lit/decorators.js\";\nimport { ChartModel } from \"../model\";\nimport { style } from \"./chart.style\";\n\n@customElement(\"og-plugin-chart\")\nexport class Chart extends LitElement implements Layout {\n\t\n\tstatic styles = [style];\n\n\t@query(\"#chart\")\n\tchartWrapper: HTMLDivElement;\n\n\t@property({type: Object})\n\tmodel: ChartModel;\n\n\tchart: Highcharts.Chart;\n\n\tasync updated() {\n\t\tif (!this.model) return;\n\t\tthis.chart = await renderChart(this.model, this.chartWrapper);\n\t}\n\n\trefresh() {\n\t\tif (!this.model) return;\n\t\tthis.model.invalidateData();\n\t\tthis.requestUpdate();\n\t}\n\n\trender = () => html`\n\t\t<div id=\"chart\">uninitialized chart</div>\n\t`;\n\n\tlayout() {\n\t\tthis.chart?.reflow();\n\t}\n\n\n}"]}
@@ -0,0 +1,2 @@
1
+ export declare const style: import("lit").CSSResult;
2
+ //# sourceMappingURL=chart.style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.style.d.ts","sourceRoot":"","sources":["../../src/ui/chart.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,yBAmpCjB,CAAC"}