sdc_client 0.58.5 → 0.158.0
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/.github/workflows/node.js.yml +2 -2
- package/.idea/inspectionProfiles/Project_Default.xml +17 -0
- package/.idea/workspace.xml +122 -23
- package/.readthedocs.yaml +13 -0
- package/dist/index.js +70 -51
- package/dist/ugly.index.js +1 -1
- package/docs/api-reference.rst +225 -0
- package/docs/conf.py +11 -0
- package/docs/controllers.rst +228 -0
- package/docs/events-and-dom.rst +120 -0
- package/docs/getting-started.rst +143 -0
- package/docs/index.rst +22 -0
- package/docs/models.rst +351 -0
- package/docs/overview.rst +66 -0
- package/docs/requirements.txt +1 -0
- package/eslint.config.js +60 -0
- package/gulp/gulp.jsx +15 -13
- package/package.json +13 -3
- package/src/index.js +44 -11
- package/src/simpleDomControl/AbstractSDC.js +287 -286
- package/src/simpleDomControl/sdc_controller.js +157 -132
- package/src/simpleDomControl/sdc_dom_events.js +99 -88
- package/src/simpleDomControl/sdc_events.js +39 -40
- package/src/simpleDomControl/sdc_main.js +88 -67
- package/src/simpleDomControl/sdc_model.js +1510 -0
- package/src/simpleDomControl/sdc_params.js +44 -29
- package/src/simpleDomControl/sdc_server_call.js +153 -154
- package/src/simpleDomControl/sdc_socket.js +8 -821
- package/src/simpleDomControl/sdc_test_utils.js +77 -80
- package/src/simpleDomControl/sdc_utils.js +295 -176
- package/src/simpleDomControl/sdc_view.js +245 -177
- package/test/model.test.js +332 -0
- package/test/models/Author.js +145 -0
- package/test/models/Book.js +112 -0
- package/test/models/BookContent.js +114 -0
- package/test/models/SdcUser.js +75 -0
- package/test/models/src.js +8 -0
- package/test/sdc_model_dates.ai.test.js +57 -0
- package/test/sdc_server_call.ai.test.js +267 -0
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
strategy:
|
|
18
18
|
matrix:
|
|
19
|
-
node-version: [
|
|
19
|
+
node-version: [20.x, 22.x]
|
|
20
20
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
21
21
|
|
|
22
22
|
steps:
|
|
@@ -34,5 +34,5 @@ jobs:
|
|
|
34
34
|
|
|
35
35
|
- name: Run Tests
|
|
36
36
|
run: |
|
|
37
|
-
|
|
37
|
+
yarn test
|
|
38
38
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
+
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
|
6
|
+
<option name="myValues">
|
|
7
|
+
<value>
|
|
8
|
+
<list size="1">
|
|
9
|
+
<item index="0" class="java.lang.String" itemvalue="keydown" />
|
|
10
|
+
</list>
|
|
11
|
+
</value>
|
|
12
|
+
</option>
|
|
13
|
+
<option name="myCustomValuesEnabled" value="true" />
|
|
14
|
+
</inspection_tool>
|
|
15
|
+
<inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
|
|
16
|
+
</profile>
|
|
17
|
+
</component>
|
package/.idea/workspace.xml
CHANGED
|
@@ -4,17 +4,15 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="4b4ede81-fe43-4a68-9186-e15152e2d80c" name="Changes" comment="v 0.
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/dist/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/dist/index.js" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/src/simpleDomControl/sdc_view.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/simpleDomControl/sdc_view.js" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/test/view.test.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/view.test.js" afterDir="false" />
|
|
12
|
-
</list>
|
|
7
|
+
<list default="true" id="4b4ede81-fe43-4a68-9186-e15152e2d80c" name="Changes" comment="v 0.58.0 fixed test with dist" />
|
|
13
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
14
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
15
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
16
11
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
17
12
|
</component>
|
|
13
|
+
<component name="EmbeddingIndexingInfo">
|
|
14
|
+
<option name="cachedIndexableFilesCount" value="139" />
|
|
15
|
+
</component>
|
|
18
16
|
<component name="FileTemplateManagerImpl">
|
|
19
17
|
<option name="RECENT_TEMPLATES">
|
|
20
18
|
<list>
|
|
@@ -40,6 +38,10 @@
|
|
|
40
38
|
<component name="MarkdownSettingsMigration">
|
|
41
39
|
<option name="stateVersion" value="1" />
|
|
42
40
|
</component>
|
|
41
|
+
<component name="McpProjectServerCommands">
|
|
42
|
+
<commands />
|
|
43
|
+
<urls />
|
|
44
|
+
</component>
|
|
43
45
|
<component name="ProjectColorInfo">{
|
|
44
46
|
"associatedIndex": 1
|
|
45
47
|
}</component>
|
|
@@ -52,21 +54,29 @@
|
|
|
52
54
|
"keyToString": {
|
|
53
55
|
"Jest.All Tests.executor": "Run",
|
|
54
56
|
"Jest.Controller.executor": "Debug",
|
|
57
|
+
"Jest.Test all.executor": "Run",
|
|
55
58
|
"Jest.Test reconcile controller.executor": "Run",
|
|
56
|
-
"Jest.Test reconcile.executor": "
|
|
59
|
+
"Jest.Test reconcile.executor": "Debug",
|
|
57
60
|
"Jest.jest.config.mjs.executor": "Run",
|
|
61
|
+
"Jest.model fixtures.queryset create uses the mocked socket receiver to append new rows.executor": "Debug",
|
|
62
|
+
"Jest.model fixtures.queryset load receives rows through the mocked socket receiver.executor": "Debug",
|
|
63
|
+
"Jest.view.test.js.executor": "Debug",
|
|
64
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
58
65
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
59
66
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
67
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
60
68
|
"RunOnceActivity.git.unshallow": "true",
|
|
61
69
|
"RunOnceActivity.go.formatter.settings.were.checked": "true",
|
|
62
70
|
"RunOnceActivity.go.migrated.go.modules.settings": "true",
|
|
71
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
63
72
|
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
|
73
|
+
"ai.playground.ignore.import.keys.banner.in.settings": "true",
|
|
64
74
|
"git-widget-placeholder": "main",
|
|
65
75
|
"go.import.settings.migrated": "true",
|
|
66
76
|
"javascript.nodejs.core.library.configured.version": "22.14.0",
|
|
67
77
|
"javascript.nodejs.core.library.typings.version": "22.14.1",
|
|
68
78
|
"kotlin-language-version-configured": "true",
|
|
69
|
-
"last_opened_file_path": "/home/martin/Develop/private/
|
|
79
|
+
"last_opened_file_path": "/home/martin/Develop/private/SimpleDomControl",
|
|
70
80
|
"node.js.detected.package.eslint": "true",
|
|
71
81
|
"node.js.detected.package.tslint": "true",
|
|
72
82
|
"node.js.selected.package.eslint": "(autodetect)",
|
|
@@ -89,7 +99,7 @@
|
|
|
89
99
|
<recent name="$PROJECT_DIR$" />
|
|
90
100
|
</key>
|
|
91
101
|
</component>
|
|
92
|
-
<component name="RunManager" selected="Jest.Test
|
|
102
|
+
<component name="RunManager" selected="Jest.Test all">
|
|
93
103
|
<configuration name="Controller" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
|
|
94
104
|
<node-interpreter value="project" />
|
|
95
105
|
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
|
|
@@ -104,21 +114,17 @@
|
|
|
104
114
|
</test-names>
|
|
105
115
|
<method v="2" />
|
|
106
116
|
</configuration>
|
|
107
|
-
<configuration name="Test
|
|
117
|
+
<configuration name="Test all" type="JavaScriptTestRunnerJest" temporary="true">
|
|
108
118
|
<node-interpreter value="project" />
|
|
109
119
|
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
|
|
110
120
|
<working-dir value="$PROJECT_DIR$" />
|
|
111
121
|
<envs>
|
|
112
122
|
<env name="NODE_OPTIONS" value="--experimental-vm-modules" />
|
|
113
123
|
</envs>
|
|
114
|
-
<scope-kind value="
|
|
115
|
-
<test-file value="$PROJECT_DIR$/test/view.test.js" />
|
|
116
|
-
<test-names>
|
|
117
|
-
<test-name value="Controller reconcile" />
|
|
118
|
-
</test-names>
|
|
124
|
+
<scope-kind value="ALL" />
|
|
119
125
|
<method v="2" />
|
|
120
126
|
</configuration>
|
|
121
|
-
<configuration name="Test reconcile" type="JavaScriptTestRunnerJest"
|
|
127
|
+
<configuration name="Test reconcile controller" type="JavaScriptTestRunnerJest">
|
|
122
128
|
<node-interpreter value="project" />
|
|
123
129
|
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
|
|
124
130
|
<working-dir value="$PROJECT_DIR$" />
|
|
@@ -128,7 +134,7 @@
|
|
|
128
134
|
<scope-kind value="SUITE" />
|
|
129
135
|
<test-file value="$PROJECT_DIR$/test/view.test.js" />
|
|
130
136
|
<test-names>
|
|
131
|
-
<test-name value="
|
|
137
|
+
<test-name value="Controller reconcile" />
|
|
132
138
|
</test-names>
|
|
133
139
|
<method v="2" />
|
|
134
140
|
</configuration>
|
|
@@ -142,6 +148,17 @@
|
|
|
142
148
|
<scope-kind value="ALL" />
|
|
143
149
|
<method v="2" />
|
|
144
150
|
</configuration>
|
|
151
|
+
<configuration name="view.test.js" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
|
|
152
|
+
<node-interpreter value="project" />
|
|
153
|
+
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
|
|
154
|
+
<working-dir value="$PROJECT_DIR$" />
|
|
155
|
+
<envs>
|
|
156
|
+
<env name="NODE_OPTIONS" value="--experimental-vm-modules" />
|
|
157
|
+
</envs>
|
|
158
|
+
<scope-kind value="TEST_FILE" />
|
|
159
|
+
<test-file value="$PROJECT_DIR$/test/view.test.js" />
|
|
160
|
+
<method v="2" />
|
|
161
|
+
</configuration>
|
|
145
162
|
<configuration name="build" type="js.build_tools.npm">
|
|
146
163
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
147
164
|
<command value="run" />
|
|
@@ -165,14 +182,16 @@
|
|
|
165
182
|
<list>
|
|
166
183
|
<item itemvalue="Jest.jest.config.mjs" />
|
|
167
184
|
<item itemvalue="Jest.Test reconcile controller" />
|
|
185
|
+
<item itemvalue="Jest.view.test.js" />
|
|
168
186
|
<item itemvalue="Jest.Controller" />
|
|
169
|
-
<item itemvalue="Jest.Test
|
|
187
|
+
<item itemvalue="Jest.Test all" />
|
|
170
188
|
<item itemvalue="npm.build" />
|
|
171
189
|
<item itemvalue="npm.test" />
|
|
172
190
|
</list>
|
|
173
191
|
<recent_temporary>
|
|
174
192
|
<list>
|
|
175
|
-
<item itemvalue="Jest.Test
|
|
193
|
+
<item itemvalue="Jest.Test all" />
|
|
194
|
+
<item itemvalue="Jest.view.test.js" />
|
|
176
195
|
<item itemvalue="npm.test" />
|
|
177
196
|
<item itemvalue="Jest.Controller" />
|
|
178
197
|
</list>
|
|
@@ -181,8 +200,8 @@
|
|
|
181
200
|
<component name="SharedIndexes">
|
|
182
201
|
<attachedChunks>
|
|
183
202
|
<set>
|
|
184
|
-
<option value="bundled-js-predefined-d6986cc7102b-
|
|
185
|
-
<option value="bundled-python-sdk-
|
|
203
|
+
<option value="bundled-js-predefined-d6986cc7102b-9b0f141eb926-JavaScript-PY-253.29346.142" />
|
|
204
|
+
<option value="bundled-python-sdk-f2b7a9f6281b-6e1f45a539f7-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-253.29346.142" />
|
|
186
205
|
</set>
|
|
187
206
|
</attachedChunks>
|
|
188
207
|
</component>
|
|
@@ -210,6 +229,7 @@
|
|
|
210
229
|
<workItem from="1745266749102" duration="42527000" />
|
|
211
230
|
<workItem from="1745433489565" duration="22162000" />
|
|
212
231
|
<workItem from="1746775623778" duration="14038000" />
|
|
232
|
+
<workItem from="1776656121875" duration="4646000" />
|
|
213
233
|
</task>
|
|
214
234
|
<task id="LOCAL-00001" summary="v 0.4.11 add gulp tasks to client bib">
|
|
215
235
|
<option name="closed" value="true" />
|
|
@@ -267,7 +287,55 @@
|
|
|
267
287
|
<option name="project" value="LOCAL" />
|
|
268
288
|
<updated>1745482240699</updated>
|
|
269
289
|
</task>
|
|
270
|
-
<
|
|
290
|
+
<task id="LOCAL-00008" summary="v 0.58.0 Models as class objects">
|
|
291
|
+
<option name="closed" value="true" />
|
|
292
|
+
<created>1776668775427</created>
|
|
293
|
+
<option name="number" value="00008" />
|
|
294
|
+
<option name="presentableId" value="LOCAL-00008" />
|
|
295
|
+
<option name="project" value="LOCAL" />
|
|
296
|
+
<updated>1776668775427</updated>
|
|
297
|
+
</task>
|
|
298
|
+
<task id="LOCAL-00009" summary="v 0.58.0 Models as class objects">
|
|
299
|
+
<option name="closed" value="true" />
|
|
300
|
+
<created>1776668816174</created>
|
|
301
|
+
<option name="number" value="00009" />
|
|
302
|
+
<option name="presentableId" value="LOCAL-00009" />
|
|
303
|
+
<option name="project" value="LOCAL" />
|
|
304
|
+
<updated>1776668816174</updated>
|
|
305
|
+
</task>
|
|
306
|
+
<task id="LOCAL-00010" summary="v 0.58.0 Models as class objects">
|
|
307
|
+
<option name="closed" value="true" />
|
|
308
|
+
<created>1776668837064</created>
|
|
309
|
+
<option name="number" value="00010" />
|
|
310
|
+
<option name="presentableId" value="LOCAL-00010" />
|
|
311
|
+
<option name="project" value="LOCAL" />
|
|
312
|
+
<updated>1776668837064</updated>
|
|
313
|
+
</task>
|
|
314
|
+
<task id="LOCAL-00011" summary="v 0.58.0 update ci">
|
|
315
|
+
<option name="closed" value="true" />
|
|
316
|
+
<created>1776668891797</created>
|
|
317
|
+
<option name="number" value="00011" />
|
|
318
|
+
<option name="presentableId" value="LOCAL-00011" />
|
|
319
|
+
<option name="project" value="LOCAL" />
|
|
320
|
+
<updated>1776668891797</updated>
|
|
321
|
+
</task>
|
|
322
|
+
<task id="LOCAL-00012" summary="v 0.58.0 update ci">
|
|
323
|
+
<option name="closed" value="true" />
|
|
324
|
+
<created>1776669031982</created>
|
|
325
|
+
<option name="number" value="00012" />
|
|
326
|
+
<option name="presentableId" value="LOCAL-00012" />
|
|
327
|
+
<option name="project" value="LOCAL" />
|
|
328
|
+
<updated>1776669031983</updated>
|
|
329
|
+
</task>
|
|
330
|
+
<task id="LOCAL-00013" summary="v 0.58.0 fixed test with dist">
|
|
331
|
+
<option name="closed" value="true" />
|
|
332
|
+
<created>1776669821856</created>
|
|
333
|
+
<option name="number" value="00013" />
|
|
334
|
+
<option name="presentableId" value="LOCAL-00013" />
|
|
335
|
+
<option name="project" value="LOCAL" />
|
|
336
|
+
<updated>1776669821856</updated>
|
|
337
|
+
</task>
|
|
338
|
+
<option name="localTasksCounter" value="14" />
|
|
271
339
|
<servers />
|
|
272
340
|
</component>
|
|
273
341
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -281,12 +349,43 @@
|
|
|
281
349
|
<MESSAGE value="v 0.56.2 Fixed new version bugs" />
|
|
282
350
|
<MESSAGE value="v 0.57.9 Update dependencies" />
|
|
283
351
|
<MESSAGE value="v 0.57.9 added LCB algorithm to reconcile function" />
|
|
284
|
-
<
|
|
352
|
+
<MESSAGE value="v 0.58.0 Models as class objects" />
|
|
353
|
+
<MESSAGE value="v 0.58.0 update ci" />
|
|
354
|
+
<MESSAGE value="v 0.58.0 fixed test with dist" />
|
|
355
|
+
<option name="LAST_COMMIT_MESSAGE" value="v 0.58.0 fixed test with dist" />
|
|
285
356
|
</component>
|
|
286
357
|
<component name="VgoProject">
|
|
287
358
|
<settings-migrated>true</settings-migrated>
|
|
288
359
|
</component>
|
|
289
360
|
<component name="XDebuggerManager">
|
|
361
|
+
<breakpoint-manager>
|
|
362
|
+
<breakpoints>
|
|
363
|
+
<line-breakpoint enabled="true" type="javascript">
|
|
364
|
+
<url>file://$PROJECT_DIR$/src/simpleDomControl/sdc_model.js</url>
|
|
365
|
+
<line>1047</line>
|
|
366
|
+
<properties lambdaOrdinal="-1" />
|
|
367
|
+
<option name="timeStamp" value="4" />
|
|
368
|
+
</line-breakpoint>
|
|
369
|
+
<line-breakpoint enabled="true" type="javascript">
|
|
370
|
+
<url>file://$PROJECT_DIR$/src/simpleDomControl/sdc_model.js</url>
|
|
371
|
+
<line>769</line>
|
|
372
|
+
<properties lambdaOrdinal="-1" />
|
|
373
|
+
<option name="timeStamp" value="7" />
|
|
374
|
+
</line-breakpoint>
|
|
375
|
+
<line-breakpoint enabled="true" type="javascript">
|
|
376
|
+
<url>file://$PROJECT_DIR$/test/model.test.js</url>
|
|
377
|
+
<line>171</line>
|
|
378
|
+
<properties lambdaOrdinal="-1" />
|
|
379
|
+
<option name="timeStamp" value="14" />
|
|
380
|
+
</line-breakpoint>
|
|
381
|
+
<line-breakpoint enabled="true" type="javascript">
|
|
382
|
+
<url>file://$PROJECT_DIR$/test/model.test.js</url>
|
|
383
|
+
<line>161</line>
|
|
384
|
+
<properties lambdaOrdinal="-1" />
|
|
385
|
+
<option name="timeStamp" value="15" />
|
|
386
|
+
</line-breakpoint>
|
|
387
|
+
</breakpoints>
|
|
388
|
+
</breakpoint-manager>
|
|
290
389
|
<watches-manager>
|
|
291
390
|
<configuration name="JavaScriptTestRunnerJest">
|
|
292
391
|
<watch expression="MAIN.html()" language="JavaScript" />
|