jsgui3-server 0.0.119 → 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.
Files changed (75) hide show
  1. package/examples/boxes/square_boxes.js +3 -0
  2. package/examples/boxes/square_boxes_client.js +5 -1
  3. package/examples/controls/11) window, mirrored text fields/client.js +31 -273
  4. package/examples/controls/11b) window, shared Data_Object model mirrored text fields/client.js +331 -0
  5. package/examples/controls/{11b) window, shared model mirrored text fields → 11c) window, shared Data_Value model mirrored text fields}/client.js +17 -7
  6. package/examples/controls/11c) window, shared Data_Value model mirrored text fields/server.js +118 -0
  7. package/examples/controls/11d) window, shared model mirrored integer text fields/both.js +17 -0
  8. package/examples/controls/11d) window, shared model mirrored integer text fields/client.js +280 -0
  9. package/examples/controls/11d) window, shared model mirrored integer text fields/server.js +23 -0
  10. package/examples/controls/12) window, Select_Options control/client.js +17 -0
  11. package/examples/controls/13) window, shared model mirrored lat_long/client.js +933 -0
  12. package/examples/controls/13) window, shared model mirrored lat_long/server.js +50 -0
  13. package/examples/controls/14) window, control compositional model/client.js +328 -0
  14. package/examples/controls/14) window, control compositional model/server.js +118 -0
  15. package/examples/controls/14a) window, control spec has compositional model/client.js +440 -0
  16. package/examples/controls/14a) window, control spec has compositional model/server.js +118 -0
  17. package/examples/controls/15) window, text field/client.js +256 -0
  18. package/examples/controls/15) window, text field/server.js +39 -0
  19. package/examples/controls/16) Window([Text_Input])/client.js +266 -0
  20. package/examples/controls/16) Window([Text_Input])/server.js +109 -0
  21. package/examples/controls/16a) Window([Text_Input]) Integer data.model.data_type/client.js +494 -0
  22. package/examples/controls/16a) Window([Text_Input]) Integer data.model.data_type/isomorphic.js +24 -0
  23. package/examples/controls/16a) Window([Text_Input]) Integer data.model.data_type/server.js +73 -0
  24. package/examples/controls/2b) two window, context menus/client.js +193 -0
  25. package/examples/controls/2b) two window, context menus/server.js +114 -0
  26. package/examples/controls/3) five windows/server.js +0 -1
  27. package/examples/controls/4) window, tabbed panel/client.js +15 -2
  28. package/examples/controls/4a) window, tabbed panel with various controls inside/client.js +233 -0
  29. package/examples/controls/4a) window, tabbed panel with various controls inside/server.js +118 -0
  30. package/examples/controls/5) window, grid/client.js +289 -9
  31. package/examples/controls/5) window, grid/server.js +2 -0
  32. package/examples/controls/8) window, checkbox/client.js +63 -101
  33. package/package.json +11 -11
  34. package/publishers/http-webpage-publisher.js +4 -5
  35. package/resources/jsbuilder/Abstract_Single_Declaration.js +1 -1
  36. package/resources/jsbuilder/Abstract_Single_Declaration_Sequence.js +1 -1
  37. package/resources/jsbuilder/JS_AST/JS_AST_Node.js +1 -1
  38. package/resources/jsbuilder/JS_AST/JS_AST_Node_0-Core.js +1 -1
  39. package/resources/jsbuilder/JS_AST/JS_AST_Node_1-Babel.js +1 -1
  40. package/resources/jsbuilder/JS_AST/JS_AST_Node_3.6-Basics_Callmap.js +1 -1
  41. package/resources/jsbuilder/JS_AST/JS_AST_Node_4.1-Index.js +1 -1
  42. package/resources/jsbuilder/JS_AST/JS_AST_Node_8-Features.js +1 -1
  43. package/resources/jsbuilder/JS_AST/JS_AST_Node_Feature/JS_AST_Node_Feature_Declaration.js +1 -1
  44. package/resources/jsbuilder/JS_AST/JS_AST_Node_Feature/JS_AST_Node_Feature_Declarator.js +1 -1
  45. package/resources/jsbuilder/JS_AST/JS_AST_Node_Feature/JS_AST_Root_Node_Feature/JS_AST_Root_Node_Feature_Exported.js +1 -1
  46. package/resources/jsbuilder/JS_AST/JS_AST_Node_Feature/JS_AST_Root_Node_Feature/JS_AST_Root_Node_Interpreted.js +1 -1
  47. package/resources/jsbuilder/JS_AST/JS_AST_Relationship_Node_To_Group.js +1 -1
  48. package/resources/jsbuilder/JS_AST/query/enable_array_as_queryable.js +1 -1
  49. package/resources/jsbuilder/JS_AST/query/find_object_keys.js +1 -1
  50. package/resources/jsbuilder/JS_AST_Node_Extended/JS_AST_Node_Declaration.js +1 -1
  51. package/resources/jsbuilder/JS_Builder.js +1 -1
  52. package/resources/jsbuilder/JS_File/JS_File_0-Core.js +1 -1
  53. package/resources/jsbuilder/JS_File/JS_File_2-Babel.js +1 -1
  54. package/resources/jsbuilder/JS_File/JS_File_4-Query.js +1 -1
  55. package/resources/jsbuilder/JS_File/JS_File_4.1-Query_Features.js +1 -1
  56. package/resources/jsbuilder/JS_File/JS_File_5-Planning.js +1 -1
  57. package/resources/jsbuilder/JS_File/JS_File_6-Changing.js +1 -1
  58. package/resources/jsbuilder/JS_File/JS_Files.js +1 -1
  59. package/resources/jsbuilder/Platform.js +1 -1
  60. package/resources/jsbuilder/Platforms.js +1 -1
  61. package/resources/jsbuilder/Project.js +1 -1
  62. package/resources/jsbuilder/Scope.js +1 -1
  63. package/resources/jsbuilder/_JS_File.js +1 -1
  64. package/resources/jsbuilder/babel/babel_node_tools.js +1 -1
  65. package/resources/jsbuilder/babel/deep_iterate/deep_iterate_babel.js +6 -2
  66. package/resources/jsbuilder/test/test_ast_node.js +1 -1
  67. package/resources/jsbuilder/test/test_js_file.js +2 -2
  68. package/resources/jsbuilder/test/test_project.js +1 -1
  69. package/resources/process-js.js +1 -1
  70. package/resources/processors/bundlers/js/esbuild/Advanced_JS_Bundler_Using_ESBuild.js +9 -6
  71. package/resources/processors/bundlers/js/esbuild/Core_JS_Single_File_Minifying_Bundler_Using_ESBuild.js +2 -1
  72. package/resources/processors/bundlers/test_ast.js +1 -1
  73. package/resources/processors/extractors/Extractor.js +3 -1
  74. package/resources/processors/extractors/js/css_and_js/AST_Node/CSS_And_JS_From_JS_String_Using_AST_Node_Extractor.js +19 -4
  75. /package/examples/controls/{11b) window, shared model mirrored text fields → 11b) window, shared Data_Object model mirrored text fields}/server.js +0 -0
@@ -3,6 +3,28 @@ const {controls, Control, mixins} = jsgui;
3
3
  const {dragable} = mixins;
4
4
 
5
5
 
6
+ // Grids: Supporting a ctrl.view.ui.composition.model may indeed be the best way in the medium term to improve controls.
7
+ // Changing and upgrading composition models, so that the model can be improved and tested side-by-side and swapped.
8
+
9
+ // May be worth distinguishing between composition models that result in a different UI.
10
+ // As in the same UI could be made in different ways, such as using float elements or flex-grid.
11
+
12
+
13
+ // Considering the currently in development more advanced control data system, involving Data_Model...
14
+ // May be worth soon working on the improved Data_Object...
15
+ // Seeing if Data_Value can get appropriate API coverage.
16
+ // Being able to have multiple values inside Data_Value???
17
+ // As in multiple named fields, that works already.
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
6
28
  const {Grid} = controls;
7
29
 
8
30
  const Active_HTML_Document = require('../../../controls/Active_HTML_Document');
@@ -47,6 +69,256 @@ class Demo_UI extends Active_HTML_Document {
47
69
  // .body should not be a normal function....?
48
70
  // a getter function would be better.
49
71
 
72
+ // The grid is one of the more complex controls, will likely stay one of the most complex, and get more complex still.
73
+ // However, some of that complexity will in the future be handled on lower levels.
74
+
75
+ // Maybe standards such as compose_from_data_model???
76
+ // Or some kind of transformation system eg:
77
+ // Transform data model to composition model.
78
+ // get_composition_model_from_data_model ???
79
+
80
+ // ... = Composition_Model.from(data_model) perhaps....?
81
+ // But it would be a composition model specific to this control.
82
+
83
+ // Defining a composition model could help..,
84
+ // composition.data.model.size perhaps
85
+ // So the composition would have it's own .data.model - higher level, eg the number of columns and the number of rows.
86
+
87
+
88
+ // Maybe it would also have its own compositional.content.model ????
89
+ // Or even 2 or more of them.
90
+ // The compositional content model being a model of what its composed by...
91
+ // but what about the .content???
92
+
93
+ // Maybe just keep the .content completely the same for the moment.
94
+ // Or make a Control_Content class, extending Collection.
95
+ // And could choose which Collection implementation at some points in the future.
96
+
97
+ // compositional content ????
98
+ // compositional model????
99
+
100
+
101
+
102
+
103
+
104
+ // .content???
105
+ // .ui.content???
106
+
107
+ // Any type of content that is not within the UI?
108
+ // .content seems very core to it right now.
109
+
110
+ // .content.childNodes
111
+ // .content.child_controls
112
+ // .content.children
113
+ // .content.ch ???
114
+
115
+ // ctrl.ch
116
+ // .view.ui.content.nodes
117
+ // .view.ui.content.controls <-- :)
118
+ // SEEMS LIKE A GOOD NAME
119
+
120
+ // .view.ui.content.places (would be some specific controls, maybe even spaces between existing ones, but prob not, as
121
+ // a placeholder could be used)
122
+
123
+ // Content places makes a lot of sense for things like .inner
124
+ // window.inner
125
+ // window.view.ui.content.places.inner
126
+
127
+
128
+ // window.view.ui.content.controls definitely makes sense as the more formal longhand of what is currently .content.
129
+ //
130
+
131
+ // Maybe make New_Control_Base???
132
+ // Control_Base_2Point0;
133
+
134
+ // Though carefully introducing these features into current controls could work.
135
+ // Putting the deeper structures in place.
136
+
137
+ // ctrl.content would refer to the ctrl.view.ui.content.child_controls
138
+ // And do need to pay attention to the API so there can be 2 levels of child-control like things.
139
+
140
+ // Eg a carousel could have places for each of the items in the carousel, as a type of inner content.
141
+
142
+ // ctrl.inner.content may help a lot.
143
+ // ctrl.inner.content.controls perhaps.
144
+ // such as in a grid, the grid cells, or a specific content control within that grid cell.
145
+ // could use elements that are hidden unless they are needed / or basically but other controls inside them.
146
+
147
+ // Have maybe inner.content.place.controls?
148
+ // and refer to it with inner.content.places?
149
+ // inner content places makes a lot of sense.
150
+ // .inner.content.places.length would help too.
151
+ // .empty.inner.content.places.length ?????
152
+ // Would be a convenient high-level API syntax.
153
+
154
+ // so control.empty would have to be its own type of object it seems.
155
+ // Really do want a neat highest level API. Can be slightly wordy, but the sentences will not usually be very long.
156
+ //
157
+
158
+ // Does seem worth getting more explicit about ctrl.view.ui.child.controls
159
+ // ctrl.child.controls
160
+ // ctrl.cc or ctrl.c
161
+
162
+ // And can keep .content for the moment....
163
+ // Though need to work on the .inner interface.
164
+
165
+ // .view.ui.inner.places.length;
166
+ // .view.ui.empty.inner.places.length;
167
+
168
+ // So it would be ui that needs the 'empty' object.
169
+
170
+ // view.ui.inner.places.names for example....?
171
+ // view.ui.inner.places.data.model????
172
+ // probably not for now (or ever?) as the inner places will be controls.
173
+ // And controls currently are not going within these data_models (at this level).
174
+
175
+ // view.ui.inner.places.controls does actually make sense.
176
+ // view.ui.inner.places.each
177
+ // each(view.ui.inner.places, ctrl????)
178
+ // Maybe syntax to iterate through them as controls????
179
+ // ui.inner.controls ???
180
+
181
+ // Maybe an 'inner composition model'???
182
+ // As in there is a compositional model for the control itself, including spaces it provides within itself for other controls.
183
+ // Usually / often that would just be the child nodes in the DOM each with their child controls.
184
+ // Want to make a system where inner content can be modified.
185
+
186
+ // Eg have a row of 10 picture frames.
187
+ // When adding inner content, it puts it within the frames.
188
+
189
+ // ctrl.content
190
+ // (includes the picture frames)
191
+ // ctrl.inner.content
192
+ // (includes only what is inside the picture frames)
193
+ // possibly set it to the same object as the picture frame's content / inner content???
194
+
195
+ // so make inner content a standard.
196
+ // also make it within .view.ui.inner.content
197
+ // or view.ui.inner.controls.
198
+ // the view.ui.inner.places are where these view.ui.inner.controls can go.
199
+
200
+
201
+ // Let's put Control_Dom within the control.view.ui.dom
202
+ // or control.view.ui.media.html.dom even????
203
+ // May make sense in terms of further extensibility.
204
+ // Could allow controls to render themselves to different media.
205
+ // Would be a structure that better allows for it.
206
+
207
+ // but shortcut to .dom as currently exists.
208
+
209
+ // Does seem like a very comprehensive change to be making to the Control.
210
+ // Def worth making and working on a copy of it.
211
+
212
+ // ctrl.view.ui.compositional.data.model.size = [10, 10]
213
+ // That seems like a good way to express compositional data.
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ // view.ui.inner.places.controls perhaps ????
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+ // content.inner.places???
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ // and the shorthand can be easily set up.
277
+ // Also, make functions once this longhand is set up that do the specific and necessary things.
278
+ // Aim so that on a high level, we don't need to write out long things like this.
279
+ // Maybe being able to translate shorthand to longhand would help too.
280
+ // Defining shorthands in the data models and structures of them. Functions to help with that.
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+ // but it's really child_controls.
293
+ // or could call it .childNodes
294
+ // it would allow for a very familiar API.
295
+ // but .childNodes would be a kind of alias as well.
296
+
297
+ // .childNodes could be a simple getter.
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+ // ... = Grid_Composition_Model.from(data_model) perhaps....?
315
+
316
+
317
+
318
+
319
+
320
+
321
+
50
322
 
51
323
 
52
324
  if (typeof this.body.add_class === 'function') {
@@ -56,7 +328,6 @@ class Demo_UI extends Active_HTML_Document {
56
328
  //console.log('this.body', this.body);
57
329
  //console.log('this.body.add_class', this.body.add_class);
58
330
 
59
-
60
331
  const compose = () => {
61
332
  // put 20 of them in place.
62
333
 
@@ -70,23 +341,32 @@ class Demo_UI extends Active_HTML_Document {
70
341
 
71
342
  // Have Tab_Page items inside???
72
343
 
73
- // Maybe ne
344
+ // .data.model.size perhaps???
345
+ // .data.size ???
346
+
347
+ // ui.data.model.size
348
+ // ui.size may be the right standard here.
349
+ // But keeping things in a Data_Model, inside data.model could be effective for extensability.
350
+ // Keeping utility functions out of the Data_Model (data.model) itself, as it needs to be flexible in terms
351
+ // of names of properties and functions internal to it. Avoids some edge cases this way.
352
+ // view.ui.data.toUInt8Array(); or view.ui.data.ta perhaps.
353
+ // or serialise(view.ui.data)
354
+
355
+ // data.model may be a kind of formality here, but do want to be able to refer to .data in a lot of cases.
356
+ // Then with the data.model it may need to refer to the data.model.value.
357
+ // So this will inevitably slow (some) things down.
358
+ // However, it will make all kinds of state syncing and recording and streaming possible.
359
+
360
+ // view.ui.data.observe perhaps ???? creates a new observable object that itself observed that data.
74
361
 
75
362
  const grid = new Grid({
76
363
  context,
77
364
  grid_size: [10, 10],
78
365
  size: [200, 200]
79
366
  })
80
-
81
367
  window.inner.add(grid);
82
-
83
368
  this.body.add(window);
84
369
 
85
-
86
-
87
-
88
-
89
-
90
370
  }
91
371
  if (!spec.el) {
92
372
  compose();
@@ -23,6 +23,8 @@ const Server = require('../../../server');
23
23
  // At least not for the moment.
24
24
 
25
25
 
26
+ //
27
+
26
28
 
27
29
 
28
30
 
@@ -3,68 +3,89 @@ const {controls, Control, mixins} = jsgui;
3
3
  const {dragable} = mixins;
4
4
 
5
5
 
6
- const {Checkbox} = controls;
6
+ const {Checkbox, Window} = controls;
7
7
 
8
8
  const Active_HTML_Document = require('../../../controls/Active_HTML_Document');
9
9
 
10
- // Maybe better to include it within an Active_HTML_Document.
11
10
 
12
- // Is currently a decent demo of a small active control running from the server, activated on the client.
13
- // This square box is really simple, and it demonstrates the principle of the code for the draggable square box not being all that complex
14
- // compared to a description of it.
15
-
16
- // A container with reorderable internal draggable items could help.
17
-
18
- // would be nice to be able to have all code in 1 file...???
19
- // Though the sever code should be separate.
20
-
21
-
22
- // Relies on extracting CSS from JS files.
23
- // Usage of windows should be very easy on this level.
11
+ class Demo_UI extends Active_HTML_Document {
12
+ constructor(spec = {}) {
13
+ spec.__type_name = spec.__type_name || 'demo_ui';
24
14
 
25
- // Want more demos for some specific features, such as lists.
26
- // Putting a bunch of different examples within a tabbed view would help.
27
- // Want quite a lot to be possible without client-side js when it can be done that way.
28
- // Progressive enhancement.
15
+ // Could give it a compositional model in the spec here. Or add to it???
16
+ // Creating one would be fine here.
17
+
18
+ // And then no 'compose' function would / should need to be given at all.
19
+ // More concise definitions of controls in terms of their compositions will help.
20
+ //
21
+
22
+ //spec.view.ui.
23
+
24
+ /*
25
+
26
+
27
+ const setup_using_controls_with_specs = () => {
28
+ ctrl_using_compositional_model.view.ui.compositional.model = [
29
+ [Control, {
30
+ size: [64, 128],
31
+ background: {
32
+ color: '#6655CC'
33
+ }
34
+ }],
35
+ [Control, {
36
+ size: [64, 128],
37
+ background: {
38
+ color: '#DD55CC'
39
+ }
40
+ }]
41
+ ];
42
+
43
+ }
29
44
 
45
+ */
30
46
 
47
+ // Specifying things 'inner' in a Window with a compositional model.
48
+ // an 'inner' property in the compositional model.
49
+ // Or the 3rd property, as an array of items inside it.
50
+ // That could make sense.
31
51
 
52
+ // Compositional models should help to make the syntax more concise.
53
+ // Will also enable easier implemention of 'display modes' as selecting the view.ui.[active].compositional.model
54
+ // view.ui.compositional.models ???
55
+ // view.ui.alternative.compositional.models is actually clearer.
56
+ // view.ui.available.compositional.models makes most sense though as it would include the current / active one.
32
57
 
33
58
 
59
+
34
60
 
35
61
 
36
62
 
37
- class Demo_UI extends Active_HTML_Document {
38
- constructor(spec = {}) {
39
- spec.__type_name = spec.__type_name || 'demo_ui';
40
63
  super(spec);
41
- const {context} = this;
42
64
 
43
- // Make sure it requires the correct CSS.
44
- // Though making that 'effortless' on the server may help more.
45
-
46
-
47
- // Maybe can't do this here???
48
-
49
- // Does not have .body (yet) on the client.
50
- // simple way to get the client to attach the body of the Active_HTML_Document?
51
- // maybe with jsgui-data-controls?
52
- // Though automatically having the .body property available on the client without sending extra HTTP
53
- // plumbing will help.
54
-
55
- // .body will not be available before activation.
56
65
 
66
+
67
+ const {context} = this;
57
68
 
58
- // .body should not be a normal function....?
59
- // a getter function would be better.
69
+ this.view.ui.compositional.model = [
70
+ [Window, {
71
+ title: 'jsgui3-html Checkbox Control',
72
+ pos: [10, 10]
73
+ }, [
74
+ [Checkbox, {
75
+ label: {
76
+ text: 'A checkbox'
77
+ }
78
+ }]
79
+ ]]
60
80
 
81
+ ];
61
82
 
62
83
  if (typeof this.body.add_class === 'function') {
63
84
  this.body.add_class('demo-ui');
64
85
  }
65
86
 
66
- //console.log('this.body', this.body);
67
- //console.log('this.body.add_class', this.body.add_class);
87
+ // Composition model does seem like it would be a better system to use.
88
+
68
89
 
69
90
 
70
91
  const compose = () => {
@@ -72,47 +93,14 @@ class Demo_UI extends Active_HTML_Document {
72
93
 
73
94
  // Then how to arrange them...?
74
95
 
75
-
76
-
77
-
78
96
  const window = new controls.Window({
79
97
  context: context,
80
98
  title: 'jsgui3-html Checkbox Control',
81
99
  pos: [10, 10]
82
100
  });
83
101
 
84
- // Have Tab_Page items inside???
85
-
86
- // Setting a 'selectable' property at the composition stage could be very helpful in some cases,
87
- // May want composition-level mixins?
88
- // Maybe those mixins would also have code that runs on activation.
89
- // 'compositional mixins' ???
90
-
91
- // Need mixins to be very flexible to avoid the probles React had with them.
92
- // Choose what functionality the mixin provides in some cases.
93
- // Need to keep tight control over the coupling of mixins.
94
- // Each mixin may need to be somewhat complex to avoid hiccups - and to consistently act in the set modes.
95
- // If a mixin is to do something different to before that functionality should be called differently.
96
-
97
- // mixin.enabled_feature_sets = [feature_set_1_name, feature_set_2_name] ....
98
-
99
-
100
-
101
- // Will work on more options & perfection for month_view.
102
-
103
- /*
104
-
105
- new Checkbox({
106
- context,
107
- label: {
108
- text: 'A checkbox'
109
- }
110
- })
111
-
112
- */
113
-
114
- // Sensible properties like this will help.
115
-
102
+ // And a context menu on the window?
103
+ // Another on the background?
116
104
 
117
105
  const checkbox = new Checkbox({
118
106
  context,
@@ -125,14 +113,9 @@ class Demo_UI extends Active_HTML_Document {
125
113
 
126
114
  this.body.add(window);
127
115
 
128
-
129
-
130
-
131
-
132
-
133
116
  }
134
117
  if (!spec.el) {
135
- compose();
118
+ //compose();
136
119
  }
137
120
  }
138
121
  activate() {
@@ -166,27 +149,6 @@ class Demo_UI extends Active_HTML_Document {
166
149
  }
167
150
  }
168
151
 
169
- // Include this in bundling.
170
- // Want CSS bundling so that styles are read out from the JS document and compiled to a stylesheet.
171
-
172
- //controls.Demo_UI = Demo_UI;
173
-
174
- // A css file may be an easier way to get started...?
175
- // Want to support but not require css in js.
176
-
177
- // But need to set up the serving of the CSS both on the server, and on the client.
178
- // Ofc setting it up on the server first is important - then can that stage set it up in the doc sent to the client?
179
-
180
- // Including the CSS from the JS like before.
181
- // Needs to extract the CSS and serve it as a separate CSS file.
182
- // Should also have end-to-end regression tests so this does not break again in the future.
183
- // The code was kind of clunky and got refactored away.
184
- //
185
-
186
- // Would need to parse the JS files to extract the CSS.
187
- // Maybe could do it an easier way??? Now that it's easy, want a faster way.
188
-
189
-
190
152
  Demo_UI.css = `
191
153
 
192
154
  * {
package/package.json CHANGED
@@ -3,21 +3,21 @@
3
3
  "main": "module.js",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "@babel/core": "^7.23.2",
7
- "@babel/generator": "^7.23.0",
8
- "@babel/parser": "7.23.0",
6
+ "@babel/core": "^7.24.6",
7
+ "@babel/generator": "^7.24.6",
8
+ "@babel/parser": "7.24.6",
9
9
  "cookies": "^0.8.0",
10
- "esbuild": "^0.19.5",
11
- "fnl": "^0.0.31",
12
- "fnlfs": "^0.0.29",
13
- "jsgui3-client": "^0.0.106",
14
- "jsgui3-html": "^0.0.144",
10
+ "esbuild": "^0.21.4",
11
+ "fnl": "^0.0.36",
12
+ "fnlfs": "^0.0.32",
13
+ "jsgui3-client": "^0.0.110",
14
+ "jsgui3-html": "^0.0.151",
15
15
  "jsgui3-webpage": "^0.0.8",
16
16
  "jsgui3-website": "^0.0.8",
17
- "lang-tools": "^0.0.25",
17
+ "lang-tools": "^0.0.35",
18
18
  "multiparty": "^4.2.3",
19
19
  "ncp": "^2.0.0",
20
- "obext": "^0.0.28",
20
+ "obext": "^0.0.31",
21
21
  "rimraf": "^3.0.2",
22
22
  "stream-to-array": "^2.3.0",
23
23
  "url-parse": "^1.5.10"
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "https://github.com/metabench/jsgui3-server.git"
40
40
  },
41
- "version": "0.0.119"
41
+ "version": "0.0.121"
42
42
  }
@@ -188,11 +188,6 @@ class HTTP_Webpage_Publisher extends HTTP_Webpageorsite_Publisher {
188
188
  // At least want to make this setting very clear in the future.
189
189
 
190
190
 
191
-
192
-
193
-
194
-
195
-
196
191
  this.raise('ready', res_get_ready);
197
192
 
198
193
  })();
@@ -242,6 +237,10 @@ class HTTP_Webpage_Publisher extends HTTP_Webpageorsite_Publisher {
242
237
 
243
238
  const static_page_context = new Server_Static_Page_Context();
244
239
 
240
+ // Think the control needs to be some kind of HTML document control.
241
+
242
+
243
+
245
244
  const ctrl = new Ctrl({
246
245
  context: static_page_context
247
246
  });
@@ -1,7 +1,7 @@
1
1
  // Defines a single constant, which is also functionality to be built.
2
2
 
3
3
 
4
- const {each, Evented_Class} = require('lang-mini');
4
+ const {each, Evented_Class} = require('lang-tools');
5
5
 
6
6
  // Is this necessary, is it worth going further than Babel AST?
7
7
  // Or JS_AST_Node?
@@ -4,7 +4,7 @@
4
4
  // Internally, it operates in a sequence (kind of).
5
5
 
6
6
 
7
- const {each, Evented_Class} = require('lang-mini');
7
+ const {each, Evented_Class} = require('lang-tools');
8
8
 
9
9
  class Declaration_Sequence extends Evented_Class {
10
10
  constructor(spec = {}) {
@@ -1,6 +1,6 @@
1
1
  // Do more to get the mirrored node structure set up earlier.
2
2
 
3
- const {each} = require('lang-mini');
3
+ const {each} = require('lang-tools');
4
4
  const JS_AST_Node_Changing = require('./JS_AST_Node_10-Changing');
5
5
 
6
6
  const babel_node_tools = require('../babel/babel_node_tools');
@@ -1,4 +1,4 @@
1
- const {each} = require('lang-mini');
1
+ const {each} = require('lang-tools');
2
2
 
3
3
  class JS_AST_Node_Core {
4
4
  constructor(spec = {}) {
@@ -1,5 +1,5 @@
1
1
  const babel_node_tools = require('../babel/babel_node_tools');
2
- const {each} = require('lang-mini');
2
+ const {each} = require('lang-tools');
3
3
  const {deep_iterate_babel_node} = babel_node_tools;
4
4
  const parser = require('@babel/parser');
5
5
  const JS_AST_Node_Core = require('./JS_AST_Node_0-Core');
@@ -7,7 +7,7 @@
7
7
  // Indexing at every level looks like it would be useful.
8
8
  // so in order to get the info about how the names relate to nodes we consult indexes.
9
9
 
10
- const { each } = require('lang-mini');
10
+ const { each } = require('lang-tools');
11
11
  const JS_AST_Node_Basics_Find = require('./JS_AST_Node_3.5-Basics_Find');
12
12
  const JS_AST_Node_Indexes = require('./JS_AST_Node_4.0-Index_Indexes');
13
13