@hpcc-js/dgrid 2.30.2 → 2.31.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.
package/README.md CHANGED
@@ -4,7 +4,29 @@ This package is part of the mono repository "@hpcc-js" (aka Visualization Framew
4
4
 
5
5
  ## Details
6
6
  The **dgrid** package contains the following visualizations:
7
- * Table
8
7
 
9
8
  ## Note for Rollup.js users
10
- **dgrid** is dependent on **dgrid-shim** which requires some special configuration when bundling with Rollup.js - please see [dgrid-shim](../dgrid-shim/README.md) for more information.
9
+ **dgrid** is dependent on **dgrid-shim** which requires some special configuration when bundling with Rollup.js - please see [dgrid-shim](../dgrid-shim/README.md) for more information.
10
+
11
+ <ClientOnly>
12
+ <hpcc-vitepress style="width:100%;height:600px">
13
+ <div id="target" style="height:600px">
14
+ </div>
15
+ <script type="module">
16
+ // Note: dgrid does not support "import" - this will fail
17
+ import { Table } from "@hpcc-js/dgrid";
18
+
19
+ new Table()
20
+ .target("target")
21
+ .columns(["Mother", "Father", { label: "Children", columns: ["Name", "sex", "age"] }, { label: "Pets", columns: ["Name", "type"] }])
22
+ .data([
23
+ ["<b>Jane</b>", "John", [["Mary", "f", 4], ["Bob", "m", 6], ["Tim", "m", 1]], [["Spot", "dog"], ["Smelly", "cat"], ["Goldie", "Fish"], ["Hammy", "Hamster"]]],
24
+ ["Penelope", "Alex", [["Bill", "m", 1]], []],
25
+ ["Jill", "Marcus", [], [["Flappy", "parrot"], ["Stinky", "cat"], ["Rolf", "dog"]]],
26
+ ["Susan", "Robert", [["Jack", "m", 4], ["Alice", "f", 6]], []]
27
+ ])
28
+ .render()
29
+ ;
30
+ </script>
31
+ </hpcc-vitepress>
32
+ </ClientOnly>
package/dist/index.es6.js CHANGED
@@ -2,8 +2,8 @@ import { publish, HTMLWidget, format, Palette, select, PropertyExt } from '@hpcc
2
2
  import { hashSum } from '@hpcc-js/util';
3
3
 
4
4
  var PKG_NAME = "@hpcc-js/dgrid";
5
- var PKG_VERSION = "2.30.2";
6
- var BUILD_VERSION = "2.102.4";
5
+ var PKG_VERSION = "2.31.1";
6
+ var BUILD_VERSION = "2.103.1";
7
7
 
8
8
  /*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
@@ -75,7 +75,7 @@ var dist = {exports: {}};
75
75
  (function (module, exports) {
76
76
  (function webpackUniversalModuleDefinition(root, factory) {
77
77
  module.exports = factory();
78
- })(self, function() {
78
+ })(self, () => {
79
79
  return /******/ (() => { // webpackBootstrap
80
80
  /******/ var __webpack_modules__ = ({
81
81
 
@@ -17853,7 +17853,7 @@ __webpack_require__.dj.r;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_
17853
17853
  // - flag: String: Descriptor flag. If total version is "1.2.0beta1", will be "beta1"
17854
17854
  // - revision: Number: The Git rev from which dojo was pulled
17855
17855
 
17856
- major: 1, minor: 17, patch: 1, flag: "",
17856
+ major: 1, minor: 17, patch: 2, flag: "",
17857
17857
  revision: rev ? rev[0] : NaN,
17858
17858
  toString: function(){
17859
17859
  var v = dojo.version;
@@ -28776,8 +28776,8 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
28776
28776
  Object.defineProperty(exports, "__esModule", ({ value: true }));
28777
28777
  exports.BUILD_VERSION = exports.PKG_VERSION = exports.PKG_NAME = void 0;
28778
28778
  exports.PKG_NAME = "@hpcc-js/dgrid-shim";
28779
- exports.PKG_VERSION = "2.23.1";
28780
- exports.BUILD_VERSION = "2.102.4";
28779
+ exports.PKG_VERSION = "2.24.0";
28780
+ exports.BUILD_VERSION = "2.103.1";
28781
28781
 
28782
28782
 
28783
28783
  /***/ }),
@@ -28957,13 +28957,13 @@ exports.PagingGrid.prototype.i18nPagination = nlsPagination.root;
28957
28957
 
28958
28958
  /***/ }),
28959
28959
 
28960
- /***/ 5983:
28960
+ /***/ 8099:
28961
28961
  /*!******************************************************************!*\
28962
- !*** ../../../../../../../tmp/tmp-2693dSdNeF3Hr17j/dojo/dojo.js ***!
28962
+ !*** ../../../../../../../tmp/tmp-2853pDaAmYpj4sF0/dojo/dojo.js ***!
28963
28963
  \******************************************************************/
28964
28964
  /***/ ((module) => {
28965
28965
 
28966
- module.exports = function(userConfig, defaultConfig, global, window) { this.loaderVersion = "1.17.1"; (function(
28966
+ module.exports = function(userConfig, defaultConfig, global, window) { this.loaderVersion = "1.17.2"; (function(
28967
28967
  userConfig,
28968
28968
  defaultConfig
28969
28969
  ){
@@ -29775,7 +29775,7 @@ module.exports = function(userConfig, defaultConfig, global, window) { this.load
29775
29775
  /******/ "dojo/_base/query":6118,
29776
29776
  /******/ "dojo/_base/NodeList":1812,
29777
29777
  /******/ "dojo/NodeList-dom":8288
29778
- /******/ // "/tmp/tmp-2693dSdNeF3Hr17j/dojo/dojo.js" = 5983
29778
+ /******/ // "/tmp/tmp-2853pDaAmYpj4sF0/dojo/dojo.js" = 8099
29779
29779
  /******/ });
29780
29780
  /******/
29781
29781
  /******/ globalObj.require = req;
@@ -29811,7 +29811,7 @@ module.exports = function(userConfig, defaultConfig, global, window) { this.load
29811
29811
  /******/ return url;
29812
29812
  /******/ })}));
29813
29813
  /******/ var defaultConfig = ({'hasCache':({'webpack':1,'host-browser':1,'dom':1,'dojo-loader':1,'dojo-has-api':1,'dojo-dom-ready-api':1,'dojo-sniff':1,'dojo-test-sniff':1,'config-deferredInstrumentation':1,'config-tlmSiblingOfDojo':1}),'paths':({'js':'js','theme':'theme','css':'//chuckdumont.github.io/dojo-css-plugin/1.0.0/css'}),'pathsMapProg':[['theme','theme',/^theme(\/|$)/,5],['css','//chuckdumont.github.io/dojo-css-plugin/1.0.0/css',/^css(\/|$)/,3],['js','js',/^js(\/|$)/,2]],'packs':({'dojo':({'main':'main','name':'dojo','location':'./dist/dojo','lib':'.'}),'dijit':({'main':'main','name':'dijit','location':'./dist/dijit','lib':'.'}),'dojox':({'main':'main','name':'dojox','location':'./dist/dojox','lib':'.'}),'dijit-themes':({'main':'main','name':'dijit-themes','location':'./dist/dijit-themes','lib':'.'}),'dgrid':({'main':'main','name':'dgrid','location':'./dist/dgrid','lib':'.'}),'dstore':({'main':'main','name':'dstore','location':'./dist/dojo-dstore','lib':'.'})}),'aliases':[],'mapProgs':[],'cacheBust':undefined,'modules':({}),'cache':({})});
29814
- /******/ var dojoLoader = __webpack_require__(5983);
29814
+ /******/ var dojoLoader = __webpack_require__(8099);
29815
29815
  /******/ dojoLoader.call(loaderScope, userConfig, defaultConfig, loaderScope, loaderScope);
29816
29816
  /******/ loaderScope.require.baseUrl = "./";
29817
29817
  /******/ Object.keys(loaderScope.require.packs).forEach(function(key) {
@@ -29892,7 +29892,7 @@ function safeEncode(item) {
29892
29892
  case "[object String]":
29893
29893
  return entitiesEncode(item);
29894
29894
  default:
29895
- console.log("Unknown cell type: " + Object.prototype.toString.call(item));
29895
+ console.warn("Unknown cell type: " + Object.prototype.toString.call(item));
29896
29896
  }
29897
29897
  return item;
29898
29898
  }