datavis-glide 4.0.0-PRE.0

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 (62) hide show
  1. package/LICENSE +45 -0
  2. package/README.md +129 -0
  3. package/datavis.js +101 -0
  4. package/dist/wcdatavis.css +1957 -0
  5. package/dist/wcdatavis.min.js +1 -0
  6. package/global-jquery.js +4 -0
  7. package/ie-fixes.js +13 -0
  8. package/index.js +70 -0
  9. package/meteor.js +1 -0
  10. package/package.json +102 -0
  11. package/src/flags.js +6 -0
  12. package/src/graph.js +1079 -0
  13. package/src/graph_renderer.js +85 -0
  14. package/src/grid.js +2777 -0
  15. package/src/grid_control.js +1957 -0
  16. package/src/grid_filter.js +1073 -0
  17. package/src/grid_renderer.js +276 -0
  18. package/src/group_fun_win.js +121 -0
  19. package/src/lang/en-US.js +188 -0
  20. package/src/lang/es-MX.js +188 -0
  21. package/src/lang/fr-FR.js +188 -0
  22. package/src/lang/id-ID.js +188 -0
  23. package/src/lang/nl-NL.js +188 -0
  24. package/src/lang/pt-BR.js +188 -0
  25. package/src/lang/ru-RU.js +188 -0
  26. package/src/lang/th-TH.js +188 -0
  27. package/src/lang/vi-VN.js +188 -0
  28. package/src/lang/zh-Hans-CN.js +188 -0
  29. package/src/operations_palette.js +176 -0
  30. package/src/prefs_modules.js +132 -0
  31. package/src/reg/graph_renderer.js +17 -0
  32. package/src/renderers/graph/chartjs.js +457 -0
  33. package/src/renderers/graph/google.js +584 -0
  34. package/src/renderers/graph/jit.js +61 -0
  35. package/src/renderers/graph/svelte-gantt.js +168 -0
  36. package/src/renderers/grid/dummy.js +79 -0
  37. package/src/renderers/grid/handlebars.js +217 -0
  38. package/src/renderers/grid/squirrelly.js +215 -0
  39. package/src/renderers/grid/table/group_detail.js +1404 -0
  40. package/src/renderers/grid/table/group_summary.js +380 -0
  41. package/src/renderers/grid/table/pivot.js +915 -0
  42. package/src/renderers/grid/table/plain.js +1592 -0
  43. package/src/renderers/grid/table.js +2510 -0
  44. package/src/trans.js +101 -0
  45. package/src/ui/collapsible.js +234 -0
  46. package/src/ui/filters/date.js +283 -0
  47. package/src/ui/grid_filter.js +398 -0
  48. package/src/ui/popup_menu.js +224 -0
  49. package/src/ui/popup_window.js +572 -0
  50. package/src/ui/slider.js +156 -0
  51. package/src/ui/tabs.js +202 -0
  52. package/src/ui/templates.js +131 -0
  53. package/src/ui/toolbar.js +63 -0
  54. package/src/ui/toolbars/grid.js +873 -0
  55. package/src/ui/windows/col_config.js +341 -0
  56. package/src/ui/windows/debug.js +164 -0
  57. package/src/ui/windows/grid_table_opts.js +139 -0
  58. package/src/util/handlebars.js +158 -0
  59. package/src/util/jquery.js +630 -0
  60. package/src/util/misc.js +1058 -0
  61. package/src/util/squirrelly.js +155 -0
  62. package/wcdatavis.css +1601 -0
@@ -0,0 +1,4 @@
1
+ import jQuery from 'jquery';
2
+ const original_jQuery = window.jQuery;
3
+ window.jQuery = jQuery;
4
+ export default original_jQuery;
package/ie-fixes.js ADDED
@@ -0,0 +1,13 @@
1
+ // I don't know why this is necessary. You should be able to do:
2
+ //
3
+ // import 'core-js/es/symbol';
4
+ //
5
+ // But if you do this, you get an exception in IE mode that says "Incompatible receiver, Symbol
6
+ // required" which I can't figure out how to fix. So instead, we'll use a different Symbol polyfill
7
+ // and patch it in here.
8
+
9
+ import Symbol from 'es6-symbol';
10
+
11
+ if (typeof window.Symbol === 'undefined') {
12
+ window.Symbol = Symbol;
13
+ }
package/index.js ADDED
@@ -0,0 +1,70 @@
1
+ import jQuery from 'jquery';
2
+
3
+ // Don't try to inline this code, it won't work. Imports are lifted,
4
+ // and this code needs to run before we import jQuery UI. Yes, this
5
+ // is an unhinged workaround.
6
+
7
+ import original_jQuery from './global-jquery.js';
8
+
9
+ import 'block-ui';
10
+ import 'flatpickr';
11
+ import 'jquery-ui/dist/jquery-ui.min.js';
12
+ import 'sumoselect';
13
+
14
+ import 'jquery-ui/dist/themes/base/jquery-ui.min.css';
15
+ import 'sumoselect/sumoselect.min.css';
16
+ import './wcdatavis.css';
17
+ import './src/ui/popup_menu.css';
18
+ import './src/ui/popup_window.css';
19
+ import './src/ui/tabs.css';
20
+ import './src/ui/collapsible.css';
21
+
22
+ import {
23
+ OrdMap,
24
+ ParamInput,
25
+ Source,
26
+ ComputedView,
27
+ Prefs,
28
+ PrefsBackend,
29
+ PREFS_BACKEND_REGISTRY,
30
+ Perspective,
31
+ Aggregate,
32
+ AggregateInfo,
33
+ AGGREGATE_REGISTRY,
34
+ Lock
35
+ } from 'datavis-ace';
36
+
37
+ import { Grid } from './src/grid.js';
38
+ import { Graph } from './src/graph.js';
39
+ import * as Util from './src/util/misc.js';
40
+ import './src/prefs_modules.js';
41
+
42
+ // We left the global jQuery around long enough for jQuery UI to install itself, and that same
43
+ // jQuery object has been used by all other plugins and DataVis code. Now that we're all done,
44
+ // make it so nobody can access our jQuery, to avoid conflicts.
45
+
46
+ if (original_jQuery != null) {
47
+ window.jQuery = original_jQuery;
48
+ }
49
+ else {
50
+ delete window.jQuery;
51
+ }
52
+
53
+ export {
54
+ Source,
55
+ ParamInput,
56
+ ComputedView,
57
+ Prefs,
58
+ PrefsBackend,
59
+ Perspective,
60
+ Grid,
61
+ Graph,
62
+ jQuery,
63
+ OrdMap,
64
+ Lock,
65
+ Util,
66
+ Aggregate,
67
+ AggregateInfo,
68
+ AGGREGATE_REGISTRY,
69
+ PREFS_BACKEND_REGISTRY
70
+ };
package/meteor.js ADDED
@@ -0,0 +1 @@
1
+ export * from './index.js';
package/package.json ADDED
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "datavis-glide",
3
+ "version": "4.0.0-PRE.0",
4
+ "description": "DataVis GLIDE (Graphical Layer for Interactive Data Exploration)",
5
+ "keywords": [
6
+ "data",
7
+ "grid",
8
+ "table",
9
+ "graph",
10
+ "chart"
11
+ ],
12
+ "license": "see LICENSE",
13
+ "author": "Taylor Venable <tvenable@mieweb.com>",
14
+ "files": [
15
+ "index.js",
16
+ "global-jquery.js",
17
+ "ie-fixes.js",
18
+ "meteor.js",
19
+ "src/*.js",
20
+ "src/**/*.js",
21
+ "datavis.js",
22
+ "wcdatavis.css",
23
+ "dist/wcdatavis.min.js",
24
+ "dist/wcdatavis.css"
25
+ ],
26
+ "main": "index.js",
27
+ "browser": "datavis.js",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/mieweb/datavis-glide.git"
31
+ },
32
+ "config": {
33
+ "chromedriver_version": "LATEST"
34
+ },
35
+ "scripts": {
36
+ "dev": "vite",
37
+ "lint": "eslint src tests/lib tests/selenium",
38
+ "test": "node scripts/run-tests.js",
39
+ "rollup": "rollup --bundleConfigAsCjs -c rollup.config.js",
40
+ "uglify": "uglifyjs -c -o dist/wcdatavis.min.js dist/wcdatavis.js"
41
+ },
42
+ "dependencies": {
43
+ "bignumber.js": "=9.3.1",
44
+ "block-ui": "=2.70.1",
45
+ "chart.js": "=4.5.1",
46
+ "core-js": "=3.47.0",
47
+ "css.escape": "=1.5.1",
48
+ "datavis-ace": "=4.0.0-PRE.2",
49
+ "es6-symbol": "=3.1.4",
50
+ "flatpickr": "=4.6.13",
51
+ "handlebars": "=4.7.8",
52
+ "jquery": "=3.7.1",
53
+ "jquery-ui": "=1.14.1",
54
+ "json-formatter-js": "https://github.com/mieweb/json-formatter-js.git",
55
+ "lucide": "^1.8.0",
56
+ "moment": "=2.30.1",
57
+ "numeral": "=2.0.6",
58
+ "papaparse": "=5.5.3",
59
+ "sprintf-js": "=1.1.3",
60
+ "squirrelly": "=9.1.0",
61
+ "sumoselect": "https://github.com/mieweb/jquery.sumoselect.git",
62
+ "svelte-gantt": "=4.4.3",
63
+ "underscore": "=1.13.8"
64
+ },
65
+ "devDependencies": {
66
+ "@babel/core": "=7.28.5",
67
+ "@babel/preset-env": "=7.28.5",
68
+ "@babel/preset-typescript": "=7.28.5",
69
+ "@rollup/plugin-babel": "=6.1.0",
70
+ "@rollup/plugin-commonjs": "=29.0.0",
71
+ "@rollup/plugin-node-resolve": "=16.0.3",
72
+ "@rollup/plugin-replace": "=6.0.3",
73
+ "@rollup/plugin-typescript": "=12.3.0",
74
+ "@stylistic/eslint-plugin": "=5.6.1",
75
+ "@tsconfig/svelte": "=5.0.6",
76
+ "@types/mocha": "=10.0.10",
77
+ "bluebird": "=3.7.2",
78
+ "chai": "=6.2.2",
79
+ "chromedriver": "^148.0.2",
80
+ "eslint": "=9.39.2",
81
+ "eslint-plugin-import": "=2.32.0",
82
+ "eslint-plugin-unused-imports": "=4.4.1",
83
+ "globals": "=17.0.0",
84
+ "jsdoc": "=4.0.5",
85
+ "jshint": "=2.13.6",
86
+ "json5": "=2.2.3",
87
+ "lodash": "=4.17.21",
88
+ "mermaid": "=11.12.2",
89
+ "mocha": "=11.7.5",
90
+ "rollup": "=4.55.1",
91
+ "rollup-plugin-postcss": "=4.0.2",
92
+ "rollup-plugin-svelte": "=7.2.3",
93
+ "selenium-webdriver": "=4.39.0",
94
+ "serve": "=14.2.5",
95
+ "serve-handler": "=6.1.6",
96
+ "svelte": "=4.2.19",
97
+ "svelte-preprocess": "=6.0.3",
98
+ "typescript": "=5.9.3",
99
+ "uglify-js": "=3.19.3",
100
+ "vite": "=7.3.1"
101
+ }
102
+ }
package/src/flags.js ADDED
@@ -0,0 +1,6 @@
1
+ export default {
2
+ // If true, use an epsilon value to compare floating point number equality, rather than pure JS
3
+ // equality. This prevents false inequalities due to floating point precision error.
4
+
5
+ 'Safe Float Equality': true,
6
+ };