@datagrok/api-samples 1.0.8 → 1.2.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 (218) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/README.md +2 -2
  3. package/dist/package-test.js +1848 -2
  4. package/dist/package.js +30 -2
  5. package/files/viewer-events/bar-chart/on-category-clicked.js +1 -0
  6. package/files/viewer-events/grid/on-cell-clicked.js +1 -0
  7. package/files/viewer-events/pc-plot/on-line-clicked.js +1 -0
  8. package/files/viewer-events/pie-chart/on-segment-clicked.js +1 -0
  9. package/files/viewer-events/scatter-plot/on-point-clicked.js +1 -0
  10. package/files/viewer-events/scatter-plot/on-rendered.js +1 -0
  11. package/layouts/demog-table-layout.json +329 -181
  12. package/package.json +23 -20
  13. package/scripts/dapi/admin.js +5 -5
  14. package/scripts/dapi/applicable-layouts.js +3 -1
  15. package/scripts/dapi/fetch.js +8 -6
  16. package/scripts/dapi/files.js +45 -0
  17. package/scripts/dapi/projects-list.js +3 -3
  18. package/scripts/dapi/projects-open.js +4 -4
  19. package/scripts/dapi/sticky-meta-1-tags.js +54 -0
  20. package/scripts/dapi/sticky-meta-2-semtype.js +33 -0
  21. package/scripts/dapi/who-am-i.js +10 -10
  22. package/scripts/data-access/db/ad-hoc-query.js +16 -0
  23. package/scripts/data-access/db/db-edit.js +6 -9
  24. package/scripts/data-access/{parameterized-query.js → db/parameterized-query.js} +3 -2
  25. package/scripts/data-access/db/query_builder_join.js +15 -0
  26. package/scripts/data-access/db/query_builder_simple.js +15 -0
  27. package/scripts/data-access/db-master-details-manual.js +10 -12
  28. package/scripts/data-access/external/stock-prices.js +2 -2
  29. package/scripts/data-access/files/file-exists.js +10 -0
  30. package/scripts/data-access/files/read-file.js +19 -0
  31. package/scripts/data-access/load-csv.js +2 -2
  32. package/scripts/data-access/open-table-by-id.js +11 -3
  33. package/scripts/data-access/output-layouts.js +3 -1
  34. package/scripts/data-access/save-and-load-df.js +6 -5
  35. package/scripts/data-frame/advanced/data-frames-in-columns.js +4 -1
  36. package/scripts/data-frame/advanced/virtual-columns.js +1 -1
  37. package/scripts/data-frame/aggregation/unpivot.js +1 -1
  38. package/scripts/data-frame/column-access.js +5 -3
  39. package/scripts/data-frame/columns-ordering.js +4 -0
  40. package/scripts/data-frame/compare-tables.js +3 -2
  41. package/scripts/data-frame/construction/add-new-column.js +13 -0
  42. package/scripts/data-frame/construction/create-from-columns.js +4 -4
  43. package/scripts/data-frame/construction/create-from-csv-format.js +3 -3
  44. package/scripts/data-frame/construction/create-from-typed-arrays.js +7 -2
  45. package/scripts/data-frame/construction/date-time.js +24 -0
  46. package/scripts/data-frame/construction/export-to-csv-advanced.js +14 -4
  47. package/scripts/data-frame/construction/export-to-csv-molblock.js +3 -0
  48. package/scripts/data-frame/construction/export-to-csv.js +1 -1
  49. package/scripts/data-frame/events/calculated-columns/creation.js +1 -1
  50. package/scripts/data-frame/events/calculated-columns/deletion.js +1 -1
  51. package/scripts/data-frame/events/calculated-columns/update.js +1 -1
  52. package/scripts/data-frame/join-link/link-tables-dynamic.js +11 -12
  53. package/scripts/data-frame/join-link/link-tables.js +12 -8
  54. package/scripts/data-frame/metadata/dataframe-meta.js +1 -1
  55. package/scripts/data-frame/modification/add-columns.js +1 -1
  56. package/scripts/data-frame/modification/append.js +1 -1
  57. package/scripts/data-frame/modification/calculated-columns/edit-formula.js +2 -2
  58. package/scripts/data-frame/modification/double-precision.js +26 -0
  59. package/scripts/data-frame/modification/manipulate.js +3 -3
  60. package/scripts/demo/med-chem.js +103 -0
  61. package/scripts/demo/stock-broker.js +1 -1
  62. package/scripts/domains/chem/chem-benchmark.js +0 -5
  63. package/scripts/domains/chem/descriptors.js +2 -4
  64. package/scripts/domains/chem/diversity-search.js +2 -4
  65. package/scripts/domains/chem/mcs.js +3 -3
  66. package/scripts/domains/chem/r-group.js +3 -3
  67. package/scripts/domains/chem/similarity-scoring-scores.js +3 -5
  68. package/scripts/domains/chem/similarity-scoring-sorted.js +3 -5
  69. package/scripts/domains/chem/sketcher.js +2 -2
  70. package/scripts/domains/chem/substructure-search-smarts-molfile-als.js +11 -12
  71. package/scripts/domains/chem/substructure-search-smarts.js +4 -7
  72. package/scripts/domains/chem/substructure-search.js +5 -6
  73. package/scripts/domains/data-science/cluster.js +8 -10
  74. package/scripts/domains/data-science/missing-values-imputation.js +3 -3
  75. package/scripts/domains/data-science/pca.js +3 -3
  76. package/scripts/domains/data-science/predictive-model.js +4 -4
  77. package/scripts/domains/data-science/random-data.js +5 -6
  78. package/scripts/events/form-creation.js +2 -2
  79. package/scripts/events/function-events.js +1 -1
  80. package/scripts/events/global-events.js +1 -1
  81. package/scripts/events/layout-events.js +5 -6
  82. package/scripts/events/viewer-data-events.js +11 -0
  83. package/scripts/functions/caching-results.js +8 -9
  84. package/scripts/functions/calling.js +7 -10
  85. package/scripts/functions/func-call.js +9 -2
  86. package/scripts/functions/param-editor.js +1 -1
  87. package/scripts/functions/progress.js +2 -5
  88. package/scripts/functions/register-function.js +1 -1
  89. package/scripts/grid/advanced/cell-renderer.js +1 -1
  90. package/scripts/grid/advanced/column-groups.js +8 -0
  91. package/scripts/grid/advanced/dynamic-value-retrieval.js +12 -0
  92. package/scripts/grid/advanced/format-formula.js +7 -0
  93. package/scripts/grid/{hit-test.js → advanced/hit-test.js} +1 -1
  94. package/scripts/grid/advanced/link-click.js +3 -3
  95. package/scripts/grid/advanced/markup-link.js +6 -0
  96. package/scripts/grid/advanced/paint-counts.js +4 -1
  97. package/scripts/grid/cell-types/tags-multi-cell.js +18 -0
  98. package/scripts/grid/{color-coding-conditional.js → color-coding/color-coding-conditional.js} +17 -10
  99. package/scripts/grid/color-coding/color-coding.js +8 -9
  100. package/scripts/grid/color-coding/get-cell-color.js +3 -5
  101. package/scripts/grid/html-cells/html-table-cells.js +1 -1
  102. package/scripts/grid/styles/column-cell-styles.js +10 -0
  103. package/scripts/grid/{column-controlled-values.js → styles/column-controlled-values.js} +2 -2
  104. package/scripts/grid/{data-format.js → styles/data-format.js} +4 -4
  105. package/scripts/misc/audit/errors-summary.js +2 -2
  106. package/scripts/misc/audit/test-tracking.js +2 -2
  107. package/scripts/misc/audit/users-today.js +3 -5
  108. package/scripts/misc/package-credentials.js +2 -1
  109. package/scripts/misc/user-settings-storage.js +48 -0
  110. package/scripts/performance/all-chembl-structures.js +2 -1
  111. package/scripts/scripting/files-for-scripting.js +24 -0
  112. package/scripts/scripting/grok-scripting.js +2 -3
  113. package/scripts/scripting/package-scripting.js +8 -0
  114. package/scripts/shell/last-error.js +1 -1
  115. package/scripts/shell/ui-parts.js +9 -9
  116. package/scripts/shell/windows/browse/customize-tree.js +3 -0
  117. package/scripts/ui/apps/bioreactor.js +5 -5
  118. package/scripts/ui/components/accordion.js +3 -3
  119. package/scripts/ui/components/drop-down.js +8 -5
  120. package/scripts/ui/components/icons.js +7 -7
  121. package/scripts/ui/components/menu-advanced.js +85 -0
  122. package/scripts/ui/components/popup-menu.js +6 -5
  123. package/scripts/ui/components/summary-card.js +4 -3
  124. package/scripts/ui/components/tree-view-adv.js +4 -2
  125. package/scripts/ui/containers/splitters.js +12 -20
  126. package/scripts/ui/dialogs/wizard.js +8 -8
  127. package/scripts/ui/docking/docking.js +4 -1
  128. package/scripts/ui/handlers/markup-handlers.js +60 -0
  129. package/scripts/ui/inputs/advanced/all-input-types.js +47 -29
  130. package/scripts/ui/inputs/advanced/for-properties.js +1 -1
  131. package/scripts/ui/inputs/advanced/input-api.js +38 -0
  132. package/scripts/ui/inputs/advanced/input-events.js +10 -10
  133. package/scripts/ui/inputs/advanced/input-form.js +8 -8
  134. package/scripts/ui/inputs/choice-input.js +5 -5
  135. package/scripts/ui/inputs/column-combo-box.js +3 -3
  136. package/scripts/ui/inputs/column-inputs.js +3 -3
  137. package/scripts/ui/inputs/forms.js +15 -16
  138. package/scripts/ui/inputs/helm-input-ui.js +7 -0
  139. package/scripts/ui/inputs/inputs-events.js +8 -8
  140. package/scripts/ui/inputs/inputs-extended.js +2 -2
  141. package/scripts/ui/inputs/inputs.js +17 -15
  142. package/scripts/ui/inputs/molecule-input.js +1 -1
  143. package/scripts/ui/inputs/table-input.js +1 -1
  144. package/scripts/ui/inputs/tags-input.js +2 -2
  145. package/scripts/ui/inputs/typeahead-input.js +16 -17
  146. package/scripts/ui/inputs/validation/input-validators.js +11 -0
  147. package/scripts/ui/inputs/validation/parameter-expressions.js +9 -0
  148. package/scripts/ui/inputs/validation/parameter-validation.js +6 -0
  149. package/scripts/ui/interactivity/drag-and-drop.js +3 -3
  150. package/scripts/ui/rendering/render-items.js +9 -9
  151. package/scripts/ui/tooltips/tooltip-events.js +2 -1
  152. package/scripts/ui/tooltips/tooltips.js +11 -2
  153. package/scripts/ui/viewers/advanced/attached-properties.js +5 -5
  154. package/scripts/ui/viewers/advanced/default-axis-type.js +1 -1
  155. package/scripts/ui/viewers/advanced/descriptors.js +14 -0
  156. package/scripts/ui/viewers/advanced/init-function.js +21 -0
  157. package/scripts/ui/viewers/advanced/init-script.js +15 -0
  158. package/scripts/ui/viewers/filters/add-single-filter.js +5 -5
  159. package/scripts/ui/viewers/filters/custom-filters.js +7 -6
  160. package/scripts/ui/viewers/filters/filter-group.js +6 -1
  161. package/scripts/ui/viewers/filters/multi-value-filter.js +1 -1
  162. package/scripts/ui/viewers/js viewers/chord-viewer.js +1 -1
  163. package/scripts/ui/viewers/js viewers/globe-viewer.js +7 -7
  164. package/scripts/ui/viewers/js viewers/sankey-viewer.js +1 -1
  165. package/scripts/ui/viewers/js viewers/surface-plot.js +19 -1
  166. package/scripts/ui/viewers/js viewers/word-cloud.js +1 -1
  167. package/scripts/ui/viewers/scatter-plot-events.js +6 -1
  168. package/scripts/ui/viewers/trellis-plot-with-summary-viewer.js +3 -1
  169. package/scripts/ui/viewers/types/globe.js +2 -3
  170. package/scripts/ui/viewers/types/markup-advanced.js +2 -2
  171. package/scripts/ui/viewers/types/markup-eeg.js +5 -5
  172. package/scripts/ui/viewers/types/shape-map.js +4 -4
  173. package/scripts/ui/viewers/types/trellis-plot.js +13 -1
  174. package/scripts/ui/viewers/types/word-cloud.js +1 -1
  175. package/scripts/ui/viewers/viewer-tooltips.js +1 -1
  176. package/scripts/ui/views/default-views.js +8 -7
  177. package/scripts/ui/views/layouts.js +16 -17
  178. package/scripts/ui/views/multi-view.js +1 -1
  179. package/scripts/ui/widgets/widgets-tree.js +32 -0
  180. package/src/package-api.ts +8 -0
  181. package/src/package-test.ts +117 -14
  182. package/src/tests/owners.ts +8 -0
  183. package/test-console-output-1.log +6957 -0
  184. package/test-console-output-2.log +371 -0
  185. package/test-console-output-3.log +887 -0
  186. package/test-console-output-4.log +1085 -0
  187. package/test-console-output-5.log +944 -0
  188. package/test-console-output-6.log +2 -0
  189. package/test-record-1.mp4 +0 -0
  190. package/test-record-2.mp4 +0 -0
  191. package/test-record-3.mp4 +0 -0
  192. package/test-record-4.mp4 +0 -0
  193. package/test-record-5.mp4 +0 -0
  194. package/test-record-6.mp4 +0 -0
  195. package/to fix/dynamic-loading.js +13 -0
  196. package/tsconfig.json +1 -1
  197. package/webpack.config.js +4 -1
  198. package/files.js +0 -39
  199. package/scripts/misc/audit/activity-today.js +0 -4
  200. package/scripts/misc/user-data-storage.js +0 -49
  201. package/scripts/scripting/scripting.js +0 -6
  202. package/scripts/ui/handlers/dynamic-loading.js +0 -13
  203. /package/scripts/data-access/{dynamic-query.js → db/dynamic-query.js} +0 -0
  204. /package/scripts/grid/{cell-bounds.js → advanced/cell-bounds.js} +0 -0
  205. /package/scripts/grid/{category-colors.js → color-coding/category-colors.js} +0 -0
  206. /package/scripts/grid/{custom-cell-prepare.js → events/custom-cell-prepare.js} +0 -0
  207. /package/scripts/grid/{custom-cell-rendering-indexes.js → events/custom-cell-rendering-indexes.js} +0 -0
  208. /package/scripts/grid/{custom-cell-rendering.js → events/custom-cell-rendering.js} +0 -0
  209. /package/scripts/grid/{custom-cell-tooltip.js → events/custom-cell-tooltip.js} +0 -0
  210. /package/scripts/grid/{scroll-bars.js → navigate/scroll-bars.js} +0 -0
  211. /package/scripts/grid/{scroll-to-cell.js → navigate/scroll-to-cell.js} +0 -0
  212. /package/scripts/grid/{scroll-to-pixels.js → navigate/scroll-to-pixels.js} +0 -0
  213. /package/scripts/grid/{order-columns.js → order/order-columns.js} +0 -0
  214. /package/scripts/grid/{order-rows-by-comparer.js → order/order-rows-by-comparer.js} +0 -0
  215. /package/scripts/grid/{order-rows.js → order/order-rows.js} +0 -0
  216. /package/scripts/grid/{hide-columns.js → resize/hide-columns.js} +0 -0
  217. /package/scripts/grid/{resize-columns.js → resize/resize-columns.js} +0 -0
  218. /package/scripts/grid/{resize-events.js → resize/resize-events.js} +0 -0
package/dist/package.js CHANGED
@@ -1,2 +1,30 @@
1
- var apisamples;(()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),apisamples=e})();
2
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFja2FnZS5qcyIsIm1hcHBpbmdzIjoia0NBQ0EsSSxLQ0F3QixDQUFDQSxJQUNILG9CQUFYQyxRQUEwQkEsT0FBT0MsYUFDMUNDLE9BQU9DLGVBQWVKLEVBQVNDLE9BQU9DLFlBQWEsQ0FBRUcsTUFBTyxXQUU3REYsT0FBT0MsZUFBZUosRUFBUyxhQUFjLENBQUVLLE9BQU8sR0FBTyxFIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vYXBpc2FtcGxlcy93ZWJwYWNrL2Jvb3RzdHJhcCIsIndlYnBhY2s6Ly9hcGlzYW1wbGVzL3dlYnBhY2svcnVudGltZS9tYWtlIG5hbWVzcGFjZSBvYmplY3QiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gVGhlIHJlcXVpcmUgc2NvcGVcbnZhciBfX3dlYnBhY2tfcmVxdWlyZV9fID0ge307XG5cbiIsIi8vIGRlZmluZSBfX2VzTW9kdWxlIG9uIGV4cG9ydHNcbl9fd2VicGFja19yZXF1aXJlX18uciA9IChleHBvcnRzKSA9PiB7XG5cdGlmKHR5cGVvZiBTeW1ib2wgIT09ICd1bmRlZmluZWQnICYmIFN5bWJvbC50b1N0cmluZ1RhZykge1xuXHRcdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBTeW1ib2wudG9TdHJpbmdUYWcsIHsgdmFsdWU6ICdNb2R1bGUnIH0pO1xuXHR9XG5cdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAnX19lc01vZHVsZScsIHsgdmFsdWU6IHRydWUgfSk7XG59OyJdLCJuYW1lcyI6WyJleHBvcnRzIiwiU3ltYm9sIiwidG9TdHJpbmdUYWciLCJPYmplY3QiLCJkZWZpbmVQcm9wZXJ0eSIsInZhbHVlIl0sInNvdXJjZVJvb3QiOiIifQ==
1
+ var apisamples;
2
+ /******/ (() => { // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var __webpack_require__ = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/make namespace object */
9
+ /******/ (() => {
10
+ /******/ // define __esModule on exports
11
+ /******/ __webpack_require__.r = (exports) => {
12
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
13
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
14
+ /******/ }
15
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /************************************************************************/
20
+ var __webpack_exports__ = {};
21
+ /*!************************!*\
22
+ !*** ./src/package.ts ***!
23
+ \************************/
24
+ __webpack_require__.r(__webpack_exports__);
25
+
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFja2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBhY2thZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qIERvIG5vdCBjaGFuZ2UgdGhlc2UgaW1wb3J0IGxpbmVzLiBEYXRhZ3JvayB3aWxsIGltcG9ydCBBUEkgbGlicmFyeSBpbiBleGFjdGx5IHRoZSBzYW1lIG1hbm5lciAqL1xuaW1wb3J0ICogYXMgZ3JvayBmcm9tICdkYXRhZ3Jvay1hcGkvZ3Jvayc7XG5pbXBvcnQgKiBhcyB1aSBmcm9tICdkYXRhZ3Jvay1hcGkvdWknO1xuaW1wb3J0ICogYXMgREcgZnJvbSAnZGF0YWdyb2stYXBpL2RnJztcbiJdfQ==
27
+ apisamples = __webpack_exports__;
28
+ /******/ })()
29
+ ;
30
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFja2FnZS5qcyIsIm1hcHBpbmdzIjoiOzs7VUFBQTtVQUNBOzs7OztXQ0RBO1dBQ0E7V0FDQTtXQUNBLHVEQUF1RCxpQkFBaUI7V0FDeEU7V0FDQSxnREFBZ0QsYUFBYTtXQUM3RDs7Ozs7Ozs7O0FDTlU7QUFDViwyQ0FBMkMsdWQiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hcGlzYW1wbGVzL3dlYnBhY2svYm9vdHN0cmFwIiwid2VicGFjazovL2FwaXNhbXBsZXMvd2VicGFjay9ydW50aW1lL21ha2UgbmFtZXNwYWNlIG9iamVjdCIsIndlYnBhY2s6Ly9hcGlzYW1wbGVzLy4vc3JjL3BhY2thZ2UudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gVGhlIHJlcXVpcmUgc2NvcGVcbnZhciBfX3dlYnBhY2tfcmVxdWlyZV9fID0ge307XG5cbiIsIi8vIGRlZmluZSBfX2VzTW9kdWxlIG9uIGV4cG9ydHNcbl9fd2VicGFja19yZXF1aXJlX18uciA9IChleHBvcnRzKSA9PiB7XG5cdGlmKHR5cGVvZiBTeW1ib2wgIT09ICd1bmRlZmluZWQnICYmIFN5bWJvbC50b1N0cmluZ1RhZykge1xuXHRcdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBTeW1ib2wudG9TdHJpbmdUYWcsIHsgdmFsdWU6ICdNb2R1bGUnIH0pO1xuXHR9XG5cdE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAnX19lc01vZHVsZScsIHsgdmFsdWU6IHRydWUgfSk7XG59OyIsImV4cG9ydCB7fTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWRhdGE6YXBwbGljYXRpb24vanNvbjtiYXNlNjQsZXlKMlpYSnphVzl1SWpvekxDSm1hV3hsSWpvaWNHRmphMkZuWlM1cWN5SXNJbk52ZFhKalpWSnZiM1FpT2lJaUxDSnpiM1Z5WTJWeklqcGJJbkJoWTJ0aFoyVXVkSE1pWFN3aWJtRnRaWE1pT2x0ZExDSnRZWEJ3YVc1bmN5STZJaUlzSW5OdmRYSmpaWE5EYjI1MFpXNTBJanBiSWk4cUlFUnZJRzV2ZENCamFHRnVaMlVnZEdobGMyVWdhVzF3YjNKMElHeHBibVZ6TGlCRVlYUmhaM0p2YXlCM2FXeHNJR2x0Y0c5eWRDQkJVRWtnYkdsaWNtRnllU0JwYmlCbGVHRmpkR3g1SUhSb1pTQnpZVzFsSUcxaGJtNWxjaUFxTDF4dWFXMXdiM0owSUNvZ1lYTWdaM0p2YXlCbWNtOXRJQ2RrWVhSaFozSnZheTFoY0drdlozSnZheWM3WEc1cGJYQnZjblFnS2lCaGN5QjFhU0JtY205dElDZGtZWFJoWjNKdmF5MWhjR2t2ZFdrbk8xeHVhVzF3YjNKMElDb2dZWE1nUkVjZ1puSnZiU0FuWkdGMFlXZHliMnN0WVhCcEwyUm5KenRjYmlKZGZRPT0iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=
@@ -0,0 +1 @@
1
+ grok.shell.info(args.args.matchConditionStr);
@@ -0,0 +1 @@
1
+ grok.shell.info('Clicked on ' + args.data.cell.column.name + ' : ' + args.data.cell.rowIndex)
@@ -0,0 +1 @@
1
+ grok.shell.info('Clicked on ' + args.args.rowId);
@@ -0,0 +1 @@
1
+ grok.shell.info(args.args.matchConditionStr);
@@ -0,0 +1 @@
1
+ grok.shell.o = ui.divText('Clicked on ' + args.rowId);
@@ -0,0 +1 @@
1
+ args.sender.canvas.getContext('2d').fillText('foo', 100, 100);
@@ -1,236 +1,384 @@
1
1
  {
2
2
  "#type": "ViewLayout",
3
- "type": "TableView",
4
- "friendlyName": "demog-table-layout",
5
3
  "viewStateMap": {
6
4
  "containerType": "horizontal",
7
5
  "state": {
8
- "width": 1105,
9
- "height": 860
6
+ "width": 1179,
7
+ "height": 924
10
8
  },
11
9
  "children": [
12
10
  {
13
- "containerType": "horizontal",
11
+ "containerType": "vertical",
14
12
  "state": {
15
- "width": 711,
16
- "height": 860
13
+ "width": 388,
14
+ "height": 924
17
15
  },
18
16
  "children": [
19
17
  {
20
- "containerType": "panel",
21
- "state": {
22
- "width": 357,
23
- "height": 860,
24
- "element": {
25
- "id": "ea7539b0-3260-11e9-a856-271c562d1aaf",
26
- "type": "Bar chart",
27
- "look": {
28
- "splitColumnName": "DIS_POP",
29
- "valueAggrType": "avg",
30
- "valueColumnName": "AGE"
31
- }
32
- }
33
- },
34
- "children": [
35
-
36
- ]
37
- },
38
- {
39
- "containerType": "vertical",
18
+ "containerType": "fill",
40
19
  "state": {
41
- "width": 345,
42
- "height": 860
20
+ "width": 388,
21
+ "height": 458,
22
+ "documentManager": true
43
23
  },
44
24
  "children": [
45
- {
46
- "containerType": "fill",
47
- "state": {
48
- "width": 345,
49
- "height": 421,
50
- "documentManager": true
51
- },
52
- "children": [
53
- {
54
- "containerType": "panel",
55
- "state": {
56
- "width": 345,
57
- "height": 421,
58
- "element": {
59
- "id": "ea75aee0-3260-11e9-cd55-27767803c24d",
60
- "type": "Grid",
61
- "look": {
62
- "#type": "HeatMapLook",
63
- "allowColumnMenu": true,
64
- "topLevelDefaultMenu": true,
65
- "columns": [
66
- {
67
- "width": 78,
68
- "columnName": "USUBJID",
69
- "cellType": "string"
70
- },
71
- {
72
- "width": 51,
73
- "columnName": "AGE",
74
- "cellType": "number"
75
- },
76
- {
77
- "width": 60,
78
- "columnName": "SEX",
79
- "cellType": "string"
80
- },
81
- {
82
- "width": 60,
83
- "columnName": "RACE",
84
- "cellType": "string"
85
- },
86
- {
87
- "width": 76,
88
- "columnName": "DIS_POP",
89
- "cellType": "string"
90
- },
91
- {
92
- "width": 71,
93
- "columnName": "HEIGHT",
94
- "cellType": "number"
95
- },
96
- {
97
- "width": 73,
98
- "columnName": "WEIGHT",
99
- "cellType": "number"
100
- },
101
- {
102
- "width": 69,
103
- "columnName": "DEMOG",
104
- "cellType": "string"
105
- },
106
- {
107
- "width": 78,
108
- "columnName": "STUDYID",
109
- "cellType": "string"
110
- },
111
- {
112
- "width": 64,
113
- "columnName": "SITEID",
114
- "cellType": "number"
115
- },
116
- {
117
- "width": 69,
118
- "columnName": "SUBJID",
119
- "cellType": "number"
120
- },
121
- {
122
- "width": 84,
123
- "columnName": "SITESUBJ",
124
- "cellType": "string"
125
- },
126
- {
127
- "width": 86,
128
- "columnName": "UNIQUE_P",
129
- "cellType": "string"
130
- }
131
- ]
132
- }
133
- }
134
- },
135
- "children": [
136
-
137
- ]
138
- }
139
- ]
140
- },
141
25
  {
142
26
  "containerType": "panel",
143
27
  "state": {
144
- "width": 345,
145
- "height": 430,
28
+ "width": 388,
29
+ "height": 458,
146
30
  "element": {
147
- "id": "ea762410-3260-11e9-e56d-114895ca4284",
148
- "type": "Scatter plot",
31
+ "id": "5e4b4aa0-73f0-11ef-859d-9fc5c455bfff",
32
+ "type": "Grid",
149
33
  "look": {
150
- "xColumnName": "WEIGHT",
151
- "yColumnName": "HEIGHT",
152
- "colorColumnName": "SEX",
153
- "markerMinSize": 3.0,
154
- "markerMaxSize": 20.0
155
- }
34
+ "#type": "GridLook",
35
+ "showAddNewRowIcon": true,
36
+ "addNewRowOnLastRowEdit": true,
37
+ "topLevelDefaultMenu": true,
38
+ "allowColumnMenu": true,
39
+ "columns": [
40
+ {
41
+ "width": 52,
42
+ "backgroundColor": 4294440951,
43
+ "customName": "",
44
+ "cellType": "row header",
45
+ "headerCellStyle": {
46
+ "textWrap": "words"
47
+ }
48
+ },
49
+ {
50
+ "width": 67,
51
+ "columnName": "subj",
52
+ "cellType": "number",
53
+ "headerCellStyle": {
54
+ "textWrap": "words"
55
+ }
56
+ },
57
+ {
58
+ "width": 69,
59
+ "columnName": "study",
60
+ "headerCellStyle": {
61
+ "textWrap": "words"
62
+ }
63
+ },
64
+ {
65
+ "width": 91,
66
+ "columnName": "site",
67
+ "headerCellStyle": {
68
+ "textWrap": "words"
69
+ }
70
+ },
71
+ {
72
+ "width": 53,
73
+ "columnName": "age",
74
+ "cellType": "number",
75
+ "headerCellStyle": {
76
+ "textWrap": "words"
77
+ }
78
+ },
79
+ {
80
+ "width": 45,
81
+ "columnName": "sex",
82
+ "headerCellStyle": {
83
+ "textWrap": "words"
84
+ }
85
+ },
86
+ {
87
+ "width": 81,
88
+ "columnName": "race",
89
+ "headerCellStyle": {
90
+ "textWrap": "words"
91
+ }
92
+ },
93
+ {
94
+ "width": 84,
95
+ "columnName": "disease",
96
+ "headerCellStyle": {
97
+ "textWrap": "words"
98
+ }
99
+ },
100
+ {
101
+ "width": 126,
102
+ "columnName": "started",
103
+ "cellType": "number",
104
+ "format": "M/d/yyyy HH:mm",
105
+ "headerCellStyle": {
106
+ "textWrap": "words"
107
+ }
108
+ },
109
+ {
110
+ "width": 62,
111
+ "columnName": "height",
112
+ "cellType": "number",
113
+ "headerCellStyle": {
114
+ "textWrap": "words"
115
+ }
116
+ },
117
+ {
118
+ "width": 64,
119
+ "columnName": "weight",
120
+ "cellType": "number",
121
+ "headerCellStyle": {
122
+ "textWrap": "words"
123
+ }
124
+ }
125
+ ]
126
+ },
127
+ "title": "demog 10000 (2)",
128
+ "default": true
156
129
  }
157
130
  },
158
- "children": [
159
-
160
- ]
131
+ "children": []
161
132
  }
162
133
  ]
134
+ },
135
+ {
136
+ "containerType": "panel",
137
+ "state": {
138
+ "width": 388,
139
+ "height": 465,
140
+ "element": {
141
+ "id": "5e4b98c0-73f0-11ef-a6c3-3dffd3dd25f7",
142
+ "type": "Bar chart",
143
+ "look": {
144
+ "#type": "BarChartLook",
145
+ "valueColumnName": "subj",
146
+ "valueAggrType": "count",
147
+ "barSortType": "by value",
148
+ "barSortOrder": "desc",
149
+ "splitColumnName": "study"
150
+ },
151
+ "title": "Bar chart"
152
+ }
153
+ },
154
+ "children": []
163
155
  }
164
156
  ]
165
157
  },
166
158
  {
167
159
  "containerType": "vertical",
168
160
  "state": {
169
- "width": 385,
170
- "height": 860
161
+ "width": 392,
162
+ "height": 924
171
163
  },
172
164
  "children": [
173
165
  {
174
166
  "containerType": "panel",
175
167
  "state": {
176
- "width": 385,
177
- "height": 425,
168
+ "width": 392,
169
+ "height": 458,
178
170
  "element": {
179
- "id": "ea764b20-3260-11e9-a7c0-a1f07a947fad",
180
- "type": "Line chart",
171
+ "id": "5e4c0df0-73f0-11ef-e0a3-a562420fbeb0",
172
+ "type": "Scatter plot",
181
173
  "look": {
182
- "xColumnName": "AGE",
183
- "yColumnNames": [
184
- "STARTED",
185
- "HEIGHT",
186
- "WEIGHT"
187
- ],
188
- "yAggrTypes": [
189
- "avg",
190
- "avg",
191
- "avg"
192
- ],
193
- "overviewColumnName": "HEIGHT",
194
- "chartTypes": [
195
- "Line Chart",
196
- "Line Chart",
197
- "Line Chart"
198
- ]
199
- }
174
+ "#type": "ScatterPlotLook",
175
+ "xColumnName": "subj",
176
+ "yColumnName": "weight",
177
+ "markerMinSize": 3,
178
+ "markerMaxSize": 20,
179
+ "viewport": ""
180
+ },
181
+ "title": "Scatter plot"
200
182
  }
201
183
  },
202
- "children": [
203
-
204
- ]
184
+ "children": []
205
185
  },
206
186
  {
207
187
  "containerType": "panel",
208
188
  "state": {
209
- "width": 385,
210
- "height": 426,
189
+ "width": 392,
190
+ "height": 465,
211
191
  "element": {
212
- "id": "ea767230-3260-11e9-8324-3762815e7b42",
192
+ "id": "5e4c3500-73f0-11ef-98ef-4fdbd1d36b1e",
213
193
  "type": "Histogram",
214
194
  "look": {
215
- "valueColumnName": "AGE",
195
+ "#type": "HistogramLook",
196
+ "valueColumnName": "subj",
216
197
  "showXAxis": true,
217
198
  "showYAxis": true,
199
+ "binWidthRatio": 0.9,
218
200
  "marginLeft": 5,
219
- "marginRight": 5,
220
- "binWidthRatio": 1.0
221
- }
201
+ "marginRight": 5
202
+ },
203
+ "title": "Histogram"
222
204
  }
223
205
  },
224
- "children": [
225
-
226
- ]
206
+ "children": []
227
207
  }
228
208
  ]
209
+ },
210
+ {
211
+ "containerType": "panel",
212
+ "state": {
213
+ "width": 397,
214
+ "height": 924,
215
+ "element": {
216
+ "id": "5e4c8320-73f0-11ef-e112-635ed7bdd8d4",
217
+ "type": "Line chart",
218
+ "look": {
219
+ "#type": "LineChartLook",
220
+ "overviewColumnName": "subj",
221
+ "yAggrTypes": [
222
+ "avg",
223
+ "avg",
224
+ "avg",
225
+ "avg"
226
+ ],
227
+ "xColumnName": "started",
228
+ "yColumnNames": [
229
+ "subj",
230
+ "age",
231
+ "height",
232
+ "weight"
233
+ ],
234
+ "chartTypes": [
235
+ "Line Chart",
236
+ "Line Chart",
237
+ "Line Chart",
238
+ "Line Chart"
239
+ ]
240
+ },
241
+ "title": "Line chart"
242
+ }
243
+ },
244
+ "children": []
245
+ }
246
+ ],
247
+ "floating": [],
248
+ "tableId": "e472f840-73f0-11ef-ee87-7934cb77edb3",
249
+ "tableName": "demog 10000 (2)"
250
+ },
251
+ "columns": [
252
+ {
253
+ "name": "subj",
254
+ "type": "int",
255
+ "id": "e4a552e0-73f0-11ef-b844-2f9b4fd8b126",
256
+ "friendlyName": "Subj",
257
+ "entityTags": [
258
+ {
259
+ "tag": ".semantic-detection-duration",
260
+ "id": "5e4cf850-73f0-11ef-fedb-8973c5a5470d"
261
+ },
262
+ {
263
+ "tag": ".id",
264
+ "id": "5e4cf850-73f0-11ef-fc64-21c49cfe3941"
265
+ }
266
+ ],
267
+ "metaParams": {
268
+ ".semantic-detection-duration": "6",
269
+ ".id": "e4a552e0-73f0-11ef-b844-2f9b4fd8b126"
270
+ }
271
+ },
272
+ {
273
+ "name": "weight",
274
+ "type": "double",
275
+ "id": "e4a63d40-73f0-11ef-e8b2-c9546f2bcbf1",
276
+ "friendlyName": "Weight",
277
+ "entityTags": [
278
+ {
279
+ "tag": ".semantic-detection-duration",
280
+ "id": "5e4cf850-73f0-11ef-eb6c-4338acf4995d"
281
+ },
282
+ {
283
+ "tag": ".id",
284
+ "id": "5e4cf850-73f0-11ef-edac-65c054d65874"
285
+ }
286
+ ],
287
+ "metaParams": {
288
+ ".semantic-detection-duration": "3",
289
+ ".id": "e4a63d40-73f0-11ef-e8b2-c9546f2bcbf1"
290
+ }
291
+ },
292
+ {
293
+ "name": "study",
294
+ "type": "string",
295
+ "id": "e4a5a100-73f0-11ef-9bba-c51db608fbae",
296
+ "friendlyName": "Study",
297
+ "entityTags": [
298
+ {
299
+ "tag": ".semantic-detection-duration",
300
+ "id": "5e4d1f60-73f0-11ef-8235-990a286d480b"
301
+ },
302
+ {
303
+ "tag": ".id",
304
+ "id": "5e4d1f60-73f0-11ef-e437-1dab9d754843"
305
+ }
306
+ ],
307
+ "metaParams": {
308
+ ".semantic-detection-duration": "7",
309
+ ".id": "e4a5a100-73f0-11ef-9bba-c51db608fbae"
310
+ }
311
+ },
312
+ {
313
+ "name": "started",
314
+ "type": "datetime",
315
+ "id": "e4a61630-73f0-11ef-9017-bbfa182cefa3",
316
+ "friendlyName": "Started",
317
+ "entityTags": [
318
+ {
319
+ "tag": "format",
320
+ "id": "5e4d1f60-73f0-11ef-f02b-e5abbf87a6fe"
321
+ },
322
+ {
323
+ "tag": ".semantic-detection-duration",
324
+ "id": "5e4d1f60-73f0-11ef-d5c7-dfffe8f9e393"
325
+ },
326
+ {
327
+ "tag": ".id",
328
+ "id": "5e4d4670-73f0-11ef-8b41-9398f3a1c2e8"
329
+ }
330
+ ],
331
+ "metaParams": {
332
+ "format": "M/d/yyyy HH:mm",
333
+ ".semantic-detection-duration": "3",
334
+ ".id": "e4a61630-73f0-11ef-9017-bbfa182cefa3"
335
+ }
336
+ },
337
+ {
338
+ "name": "age",
339
+ "type": "int",
340
+ "id": "e4a5c810-73f0-11ef-ef44-559e14ace2fe",
341
+ "friendlyName": "Age",
342
+ "entityTags": [
343
+ {
344
+ "tag": ".semantic-detection-duration",
345
+ "id": "5e4d4670-73f0-11ef-d83e-355b6594a480"
346
+ },
347
+ {
348
+ "tag": ".id",
349
+ "id": "5e4d4670-73f0-11ef-9c9c-db197c72f24a"
350
+ }
351
+ ],
352
+ "metaParams": {
353
+ ".semantic-detection-duration": "4",
354
+ ".id": "e4a5c810-73f0-11ef-ef44-559e14ace2fe"
355
+ }
356
+ },
357
+ {
358
+ "name": "height",
359
+ "type": "double",
360
+ "id": "e4a61630-73f0-11ef-c0ec-2f427a1bfca3",
361
+ "friendlyName": "Height",
362
+ "entityTags": [
363
+ {
364
+ "tag": ".semantic-detection-duration",
365
+ "id": "5e4d4670-73f0-11ef-d764-397f62213e64"
366
+ },
367
+ {
368
+ "tag": ".id",
369
+ "id": "5e4d6d80-73f0-11ef-98f2-2da90a140b07"
370
+ }
371
+ ],
372
+ "metaParams": {
373
+ ".semantic-detection-duration": "3",
374
+ ".id": "e4a61630-73f0-11ef-c0ec-2f427a1bfca3"
229
375
  }
230
- ]
376
+ }
377
+ ],
378
+ "name": "DemogTableLayout",
379
+ "friendlyName": "DemogTableLayout",
380
+ "author": {
381
+ "id": "f7c9fb10-fec0-11ee-829a-bd6a1fb43c6f"
231
382
  },
232
- "id": "e17b4620-bd30-11e8-ee69-3f240ada768a",
233
- "createdOn": "2019-04-04T12:15:34.056116Z",
234
- "updatedOn": "2019-04-04T12:19:41.302899Z",
235
- "name": "DemogTableLayout"
236
- }
383
+ "createdOn": "2024-10-04T12:37:07.782Z"
384
+ }