jsgui3-server 0.0.120 → 0.0.121
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/examples/boxes/square_boxes.js +3 -0
- package/examples/boxes/square_boxes_client.js +5 -1
- package/examples/controls/11) window, mirrored text fields/client.js +31 -273
- package/examples/controls/11b) window, shared Data_Object model mirrored text fields/client.js +84 -366
- package/examples/controls/11c) window, shared Data_Value model mirrored text fields/client.js +2 -2
- package/examples/controls/11d) window, shared model mirrored integer text fields/both.js +17 -0
- package/examples/controls/11d) window, shared model mirrored integer text fields/client.js +65 -396
- package/examples/controls/11d) window, shared model mirrored integer text fields/server.js +4 -116
- package/examples/controls/12) window, Select_Options control/client.js +17 -0
- package/examples/controls/13) window, shared model mirrored lat_long/client.js +933 -0
- package/examples/controls/13) window, shared model mirrored lat_long/server.js +50 -0
- package/examples/controls/14) window, control compositional model/client.js +328 -0
- package/examples/controls/14) window, control compositional model/server.js +118 -0
- package/examples/controls/14a) window, control spec has compositional model/client.js +440 -0
- package/examples/controls/14a) window, control spec has compositional model/server.js +118 -0
- package/examples/controls/15) window, text field/client.js +256 -0
- package/examples/controls/15) window, text field/server.js +39 -0
- package/examples/controls/16) Window([Text_Input])/client.js +266 -0
- package/examples/controls/16) Window([Text_Input])/server.js +109 -0
- package/examples/controls/16a) Window([Text_Input]) Integer data.model.data_type/client.js +494 -0
- package/examples/controls/16a) Window([Text_Input]) Integer data.model.data_type/isomorphic.js +24 -0
- package/examples/controls/16a) Window([Text_Input]) Integer data.model.data_type/server.js +73 -0
- package/examples/controls/2b) two window, context menus/client.js +193 -0
- package/examples/controls/2b) two window, context menus/server.js +114 -0
- package/examples/controls/3) five windows/server.js +0 -1
- package/examples/controls/4) window, tabbed panel/client.js +15 -2
- package/examples/controls/4a) window, tabbed panel with various controls inside/client.js +233 -0
- package/examples/controls/4a) window, tabbed panel with various controls inside/server.js +118 -0
- package/examples/controls/5) window, grid/client.js +289 -9
- package/examples/controls/5) window, grid/server.js +2 -0
- package/examples/controls/8) window, checkbox/client.js +63 -101
- package/package.json +11 -11
- package/publishers/http-webpage-publisher.js +4 -5
- package/resources/jsbuilder/babel/deep_iterate/deep_iterate_babel.js +5 -1
- package/resources/processors/bundlers/js/esbuild/Advanced_JS_Bundler_Using_ESBuild.js +9 -6
- package/resources/processors/bundlers/js/esbuild/Core_JS_Single_File_Minifying_Bundler_Using_ESBuild.js +2 -1
- package/resources/processors/extractors/Extractor.js +3 -1
- package/resources/processors/extractors/js/css_and_js/AST_Node/CSS_And_JS_From_JS_String_Using_AST_Node_Extractor.js +19 -4
|
@@ -61,13 +61,14 @@ class Core_JS_Single_File_Minifying_Bundler_Using_ESBuild extends Bundler_Using_
|
|
|
61
61
|
//loader: 'ts',
|
|
62
62
|
},
|
|
63
63
|
//bundle: true,
|
|
64
|
+
target: 'es2022',
|
|
64
65
|
|
|
65
66
|
// Possibly no minification here....
|
|
66
67
|
// Want to use non-minified or only partially minified version to separate the JS and the CSS.
|
|
67
68
|
|
|
68
69
|
treeShaking: true,
|
|
69
70
|
minify: true,
|
|
70
|
-
|
|
71
|
+
format: 'cjs',
|
|
71
72
|
|
|
72
73
|
//sourcemap: 'external',
|
|
73
74
|
write: false,
|
|
@@ -35,6 +35,10 @@ const Pos_Span_String_Extractor = require('../../../string/Pos_Span_String_Extra
|
|
|
35
35
|
|
|
36
36
|
class CSS_And_JS_From_JS_String_Using_AST_Node_Extractor extends Extractor {
|
|
37
37
|
constructor(spec) {
|
|
38
|
+
|
|
39
|
+
// and a 'debug' property...?
|
|
40
|
+
// in which case it keeps the css in the js - but extracts it to its own css though.
|
|
41
|
+
|
|
38
42
|
super(spec);
|
|
39
43
|
|
|
40
44
|
this.pos_span_string_extractor = new Pos_Span_String_Extractor();
|
|
@@ -183,11 +187,22 @@ class CSS_And_JS_From_JS_String_Using_AST_Node_Extractor extends Extractor {
|
|
|
183
187
|
// object with keys may be easier / better / simpler.
|
|
184
188
|
// or even a Bundle object?
|
|
185
189
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
if (this.debug === true) {
|
|
191
|
+
const res = {
|
|
192
|
+
css: str_css,
|
|
193
|
+
js: str_js
|
|
194
|
+
}
|
|
195
|
+
complete(res);
|
|
196
|
+
} else {
|
|
197
|
+
const res = {
|
|
198
|
+
css: str_css,
|
|
199
|
+
js: str_js_without_css_assignments
|
|
200
|
+
}
|
|
201
|
+
complete(res);
|
|
189
202
|
}
|
|
190
203
|
|
|
204
|
+
|
|
205
|
+
|
|
191
206
|
|
|
192
207
|
|
|
193
208
|
|
|
@@ -197,7 +212,7 @@ class CSS_And_JS_From_JS_String_Using_AST_Node_Extractor extends Extractor {
|
|
|
197
212
|
|
|
198
213
|
|
|
199
214
|
|
|
200
|
-
|
|
215
|
+
|
|
201
216
|
} else {
|
|
202
217
|
complete();
|
|
203
218
|
}
|