jsgui3-server 0.0.148 → 0.0.149

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 (134) hide show
  1. package/.github/workflows/control-scan-manifest-check.yml +31 -0
  2. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-071799b982906680f5fd699d.js +40 -0
  3. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-07352945ad5c92654fcb8b65.js +39 -0
  4. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-138a601fadb6191ea314c6fd.js +39 -0
  5. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-171f6c381c2cadf2e9fa7087.js +39 -0
  6. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-1d973388156b84a04373fac9.js +39 -0
  7. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-20e117bc8a10d2cd16234bbe.js +40 -0
  8. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-2b028a82b0e5efddba42425f.js +39 -0
  9. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-4518556cd5c7e059e82b22b8.js +40 -0
  10. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-5bac1aa0f213902f718ed74f.js +40 -0
  11. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-5f9996ac7822caf777d92f56.js +39 -0
  12. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-60a92c702e65fd9cf748e3ec.js +39 -0
  13. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-6164c1f8f738995c541895d2.js +44 -0
  14. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-6718a85eb9e5aa782dd47a05.js +45 -0
  15. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-69e280f14e37aee76a1d4675.js +39 -0
  16. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-7570d1b030d44b111ed59c4c.js +39 -0
  17. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-7798c9bbd55e510d5039f936.js +42 -0
  18. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-78cd511ea1ef18ecb03d1be5.js +40 -0
  19. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-7d482e0b95bcb5e3c543118b.js +43 -0
  20. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-80e9476d1127c55b40fdb36f.js +40 -0
  21. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-810ced55d5320a3088a05b13.js +40 -0
  22. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-8423565f1a40e329afc8c6cf.js +40 -0
  23. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-900bef783b8cee36506ec282.js +39 -0
  24. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-a1a37aff6416fdad74040ddf.js +39 -0
  25. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-ad48d5e8eda40f175b4df090.js +39 -0
  26. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-aec5a2d963015528c9099462.js +39 -0
  27. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-af9d34e0f1722fab9e28c269.js +39 -0
  28. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-b818e4015e2f1fe86280b5ab.js +41 -0
  29. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-bcb2541adc70b7aba61768c5.js +44 -0
  30. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-bfe89d2c78ed44f95ed7dd73.js +40 -0
  31. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-c06f04806a1e688e1187110c.js +40 -0
  32. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-c3f3adf904f585afc544b96a.js +39 -0
  33. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-d45acb873e1d8e32d5e60f2e.js +39 -0
  34. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-db06f132533706f4a0163b8c.js +39 -0
  35. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-f660f40d78b135fc8560a862.js +39 -0
  36. package/.jsgui3-server-cache/jsgui3-html-shims/jsgui3-html-controls-shim-f9dee4ec18a96e09bee06bae.js +39 -0
  37. package/README.md +85 -3
  38. package/admin-ui/client.js +8 -8
  39. package/dev-status.svg +139 -0
  40. package/docs/api-reference.md +301 -43
  41. package/docs/books/jsgui3-bundling-research-book/00-table-of-contents.md +35 -0
  42. package/docs/books/jsgui3-bundling-research-book/01-pipeline-and-runtime-semantics.md +34 -0
  43. package/docs/books/jsgui3-bundling-research-book/02-javascript-bundling-core.md +36 -0
  44. package/docs/books/jsgui3-bundling-research-book/03-style-extraction-and-css-compilation.md +35 -0
  45. package/docs/books/jsgui3-bundling-research-book/04-static-publishing-and-delivery.md +39 -0
  46. package/docs/books/jsgui3-bundling-research-book/05-current-limits-and-size-bloat-vectors.md +25 -0
  47. package/docs/books/jsgui3-bundling-research-book/06-unused-module-elimination-strategy.md +77 -0
  48. package/docs/books/jsgui3-bundling-research-book/07-jsgui3-html-control-and-mixin-pruning.md +63 -0
  49. package/docs/books/jsgui3-bundling-research-book/08-test-and-verification-methodology.md +43 -0
  50. package/docs/books/jsgui3-bundling-research-book/09-roadmap-and-rollout.md +42 -0
  51. package/docs/books/jsgui3-bundling-research-book/10-further-research-strategies-and-upgrades.md +211 -0
  52. package/docs/books/jsgui3-bundling-research-book/README.md +35 -0
  53. package/docs/bundling-system-deep-dive.md +9 -4
  54. package/docs/comprehensive-documentation.md +49 -18
  55. package/docs/configuration-reference.md +152 -27
  56. package/docs/core/README.md +19 -0
  57. package/docs/core/jsgui3-server-core-book/00-table-of-contents.md +21 -0
  58. package/docs/core/jsgui3-server-core-book/01-startup-readiness-state-machine.md +41 -0
  59. package/docs/core/jsgui3-server-core-book/02-resource-abstraction-and-lifecycle.md +92 -0
  60. package/docs/core/jsgui3-server-core-book/03-resource-pool-and-event-topology.md +47 -0
  61. package/docs/core/jsgui3-server-core-book/04-sse-publisher-semantics.md +41 -0
  62. package/docs/core/jsgui3-server-core-book/05-serve-factory-resource-wiring.md +46 -0
  63. package/docs/core/jsgui3-server-core-book/06-e2e-testing-methodology.md +48 -0
  64. package/docs/core/jsgui3-server-core-book/07-defect-detection-and-hardening-loop.md +47 -0
  65. package/docs/publishers-guide.md +59 -4
  66. package/docs/resources-guide.md +184 -35
  67. package/docs/simple-server-api-design.md +72 -17
  68. package/docs/system-architecture.md +18 -14
  69. package/examples/controls/15) window, observable SSE/server.js +6 -1
  70. package/examples/controls/19) window, auto observable ui/server.js +9 -0
  71. package/examples/controls/20) window, task manager app/README.md +133 -0
  72. package/examples/controls/20) window, task manager app/client.js +797 -0
  73. package/examples/controls/20) window, task manager app/server.js +178 -0
  74. package/examples/controls/6) window, color_palette/client.js +165 -68
  75. package/examples/controls/9) window, date picker/client.js +362 -76
  76. package/examples/controls/9b) window, shared data.model mirrored date pickers/client.js +104 -83
  77. package/examples/jsgui3-html/06) theming/client.js +22 -1
  78. package/examples/jsgui3-html/10) binding-debugger/client.js +137 -1
  79. package/http/responders/static/Static_Route_HTTP_Responder.js +52 -34
  80. package/lab/experiments/capture-color-controls.js +196 -0
  81. package/lab/results/screenshots/color-controls/full_page.png +0 -0
  82. package/lab/results/screenshots/color-controls/section_1_color_grid_12x12.png +0 -0
  83. package/lab/results/screenshots/color-controls/section_2_color_grid_4x2.png +0 -0
  84. package/lab/results/screenshots/color-controls/section_3_color_palette.png +0 -0
  85. package/lab/results/screenshots/color-controls/section_4_palette_comparison.png +0 -0
  86. package/lab/results/screenshots/color-controls/section_5_raw_swatches.png +0 -0
  87. package/lab/results/screenshots/color-controls/section_6_optimized_crayola.png +0 -0
  88. package/lab/results/screenshots/color-controls/section_7_pastel_palette.png +0 -0
  89. package/lab/results/screenshots/color-controls/section_8_extended_144.png +0 -0
  90. package/lab/screenshot-utils.js +248 -0
  91. package/module.js +11 -4
  92. package/package.json +12 -2
  93. package/publishers/Publishers.js +4 -3
  94. package/publishers/helpers/assigners/static-compressed-response-buffers/Single_Control_Webpage_Server_Static_Compressed_Response_Buffers_Assigner.js +5 -5
  95. package/publishers/http-sse-publisher.js +341 -0
  96. package/resources/process-resource.js +950 -0
  97. package/resources/processors/bundlers/js/esbuild/Advanced_JS_Bundler_Using_ESBuild.js +129 -33
  98. package/resources/processors/bundlers/js/esbuild/Core_JS_Non_Minifying_Bundler_Using_ESBuild.js +18 -7
  99. package/resources/processors/bundlers/js/esbuild/JSGUI3_HTML_Control_Optimizer.js +829 -0
  100. package/resources/remote-process-resource.js +355 -0
  101. package/resources/server-resource-pool.js +354 -41
  102. package/serve-factory.js +441 -259
  103. package/server.js +89 -13
  104. package/tests/README.md +66 -4
  105. package/tests/admin-ui-render.test.js +24 -0
  106. package/tests/assigners.test.js +56 -40
  107. package/tests/bundling-default-control-elimination.puppeteer.test.js +260 -0
  108. package/tests/configuration-validation.test.js +21 -18
  109. package/tests/content-analysis.test.js +7 -6
  110. package/tests/control-optimizer-cache-behavior.test.js +52 -0
  111. package/tests/control-scan-manifest-regression.test.js +144 -0
  112. package/tests/end-to-end.test.js +15 -14
  113. package/tests/error-handling.test.js +222 -179
  114. package/tests/fixtures/bundling-default-button-client.js +37 -0
  115. package/tests/fixtures/bundling-default-window-client.js +34 -0
  116. package/tests/fixtures/control_scan_manifest_expectations.json +48 -0
  117. package/tests/fixtures/resource-monitor-client.js +319 -0
  118. package/tests/helpers/puppeteer-e2e-harness.js +317 -0
  119. package/tests/http-sse-publisher.test.js +136 -0
  120. package/tests/performance.test.js +69 -65
  121. package/tests/process-resource.test.js +138 -0
  122. package/tests/publishers.test.js +7 -7
  123. package/tests/remote-process-resource.test.js +160 -0
  124. package/tests/sass-controls.e2e.test.js +7 -1
  125. package/tests/serve-resources.test.js +270 -0
  126. package/tests/serve.test.js +120 -50
  127. package/tests/server-resource-pool.test.js +106 -0
  128. package/tests/small-controls-bundle-size.test.js +252 -0
  129. package/tests/test-runner.js +13 -1
  130. package/tests/window-examples.puppeteer.test.js +204 -1
  131. package/tests/window-resource-integration.puppeteer.test.js +585 -0
  132. package/tests/temp_invalid.js +0 -7
  133. package/tests/temp_invalid_utf8.js +0 -1
  134. package/tests/temp_malformed.js +0 -10
@@ -0,0 +1,39 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+
36
+ });
37
+ Object.assign(jsgui, jsgui.controls);
38
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
39
+ module.exports = jsgui;
@@ -0,0 +1,42 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Alert_Banner: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/5-ui/alert_banner'),
36
+ Button: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/button'),
37
+ Form_Container: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/1-editor/form_container'),
38
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
39
+ });
40
+ Object.assign(jsgui, jsgui.controls);
41
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
42
+ module.exports = jsgui;
@@ -0,0 +1,40 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Tabbed_Panel: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/tabbed-panel'),
36
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
37
+ });
38
+ Object.assign(jsgui, jsgui.controls);
39
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
40
+ module.exports = jsgui;
@@ -0,0 +1,43 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Badge: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/1-compositional/badge'),
36
+ Progress_Bar: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/progress_bar'),
37
+ Range_Input: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/range_input'),
38
+ Text_Input: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/Text_Input'),
39
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
40
+ });
41
+ Object.assign(jsgui, jsgui.controls);
42
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
43
+ module.exports = jsgui;
@@ -0,0 +1,40 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Active_HTML_Document: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/5-ui/Active_HTML_Document'),
36
+ Button: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/button')
37
+ });
38
+ Object.assign(jsgui, jsgui.controls);
39
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
40
+ module.exports = jsgui;
@@ -0,0 +1,40 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Date_Picker: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/date-picker'),
36
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
37
+ });
38
+ Object.assign(jsgui, jsgui.controls);
39
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
40
+ module.exports = jsgui;
@@ -0,0 +1,40 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Color_Picker: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/1-compositional/color-picker'),
36
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
37
+ });
38
+ Object.assign(jsgui, jsgui.controls);
39
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
40
+ module.exports = jsgui;
@@ -0,0 +1,39 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+
36
+ });
37
+ Object.assign(jsgui, jsgui.controls);
38
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
39
+ module.exports = jsgui;
@@ -0,0 +1,39 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+
36
+ });
37
+ Object.assign(jsgui, jsgui.controls);
38
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
39
+ module.exports = jsgui;
@@ -0,0 +1,39 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Active_HTML_Document: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/5-ui/Active_HTML_Document')
36
+ });
37
+ Object.assign(jsgui, jsgui.controls);
38
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
39
+ module.exports = jsgui;
@@ -0,0 +1,39 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+
36
+ });
37
+ Object.assign(jsgui, jsgui.controls);
38
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
39
+ module.exports = jsgui;
@@ -0,0 +1,39 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+
36
+ });
37
+ Object.assign(jsgui, jsgui.controls);
38
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
39
+ module.exports = jsgui;
@@ -0,0 +1,41 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Date_Picker: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/date-picker'),
36
+ Datetime_Picker: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/1-compositional/datetime-picker'),
37
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
38
+ });
39
+ Object.assign(jsgui, jsgui.controls);
40
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
41
+ module.exports = jsgui;
@@ -0,0 +1,44 @@
1
+ const jsgui = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/html-core/html-core.js');
2
+ jsgui.Router = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/router/router.js');
3
+ jsgui.Resource = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/resource.js');
4
+ jsgui.Resource_Pool = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/pool.js');
5
+ jsgui.Resource.Data_KV = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-kv-resource.js');
6
+ jsgui.Resource.Data_Transform = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/data-transform-resource.js');
7
+ jsgui.Resource.Compilation = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compilation-resource.js');
8
+ jsgui.Resource.Compiler = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/resource/compiler-resource.js');
9
+ jsgui.gfx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/node_modules/jsgui3-gfx-core/core/gfx-core.js');
10
+ jsgui.Resource.load_compiler = (name, jsfn, options) => {
11
+ const compiler_name = name;
12
+ const compiler_fn = jsfn;
13
+ const compiler_options = options || {};
14
+ if (typeof compiler_name !== 'string' || compiler_name.length === 0) {
15
+ throw new Error('Resource.load_compiler(name, fn, options) requires a non-empty string name');
16
+ }
17
+ if (typeof compiler_fn !== 'function') {
18
+ throw new Error('Resource.load_compiler(name, fn, options) requires a function compiler implementation');
19
+ }
20
+ const compiler_resource = new jsgui.Resource.Compiler({ name: compiler_name });
21
+ compiler_resource.transform = (input, transform_options = {}) => {
22
+ const merged_options = Object.assign({}, compiler_options, transform_options);
23
+ return compiler_fn(input, merged_options);
24
+ };
25
+ jsgui.Resource.compilers = jsgui.Resource.compilers || {};
26
+ jsgui.Resource.compilers[compiler_name] = compiler_resource;
27
+ const pool = compiler_options.pool || compiler_options.resource_pool;
28
+ if (pool && typeof pool.add === 'function') {
29
+ pool.add(compiler_resource);
30
+ }
31
+ return compiler_resource;
32
+ };
33
+ jsgui.controls = jsgui.controls || {};
34
+ Object.assign(jsgui.controls, {
35
+ Checkbox: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/checkbox'),
36
+ Date_Picker: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/date-picker'),
37
+ Dropdown_Menu: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/1-compositional/Dropdown_Menu'),
38
+ Text_Field: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/1-compositional/Text_Field'),
39
+ Text_Input: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/0-core/0-basic/0-native-compositional/Text_Input'),
40
+ Window: require('/mnt/c/Users/james/Documents/repos/jsgui3-html/controls/organised/1-standard/6-layout/window')
41
+ });
42
+ Object.assign(jsgui, jsgui.controls);
43
+ jsgui.mixins = jsgui.mx = require('/mnt/c/Users/james/Documents/repos/jsgui3-html/control_mixins/mx.js');
44
+ module.exports = jsgui;