smsmslib 1.0.74 → 1.0.76

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 (33) hide show
  1. package/javascr/av_controller/HtmlControl_t.js +1 -1
  2. package/javascr/av_controller/HtmlMedia_t.js +6 -1
  3. package/javascr/av_controller/HtmlPlay_t.js +6 -1
  4. package/javascr/av_controller/HtmlSkipForward_t.js +6 -1
  5. package/javascr/av_controller/HtmlSkipRewind_t.js +6 -1
  6. package/javascr/av_controller/HtmlTimerBar_t.js +8 -1
  7. package/javascr/av_controller/HtmlTimerDigit_t.js +6 -1
  8. package/javascr/av_controller/HtmlTimerFrame_t.js +7 -2
  9. package/javascr/av_controller/av_controller.js +6 -1
  10. package/javascr/{system → core}/App_t.js +1 -1
  11. package/javascr/{system → core}/HtmlElement_t.js +9 -4
  12. package/javascr/{system → core}/Observer_t.js +1 -1
  13. package/javascr/{system → core}/SubjectSet_t.js +8 -2
  14. package/javascr/{system → core}/Subject_t.js +9 -4
  15. package/javascr/core/index.js +14 -0
  16. package/javascr/index.js +2 -1
  17. package/javascr/{system → util}/index.js +7 -9
  18. package/javascr/{system → util}/matnew.js +1 -1
  19. package/javascr/{system → util}/tree.js +35 -6
  20. package/package.json +2 -2
  21. /package/javascr/{system → util}/array.js +0 -0
  22. /package/javascr/{system → util}/arrayconcat.js +0 -0
  23. /package/javascr/{system → util}/arraynew.js +0 -0
  24. /package/javascr/{system → util}/arraypush.js +0 -0
  25. /package/javascr/{system → util}/arraysplice.js +0 -0
  26. /package/javascr/{system → util}/dataset.js +0 -0
  27. /package/javascr/{system → util}/document.js +0 -0
  28. /package/javascr/{system → util}/error.js +0 -0
  29. /package/javascr/{system → util}/html.js +0 -0
  30. /package/javascr/{system → util}/new.js +0 -0
  31. /package/javascr/{system → util}/prop.js +0 -0
  32. /package/javascr/{system → util}/set.js +0 -0
  33. /package/javascr/{system → util}/type.js +0 -0
@@ -16,7 +16,7 @@
16
16
  * Imports.
17
17
  * --------------------------------------------------------------------------- */
18
18
 
19
- import {HtmlElement_t} from "../system/index.js";
19
+ import {HtmlElement_t} from "smsmslib/javascr/core/index.js";
20
20
 
21
21
 
22
22
  /** ---------------------------------------------------------------------------
@@ -19,12 +19,17 @@ import
19
19
  sj_is_number,
20
20
  sj_is_object,
21
21
  sj_prop_chg_own,
22
+ }
23
+ from "smsmslib/javascr/util/index.js";
24
+
25
+ import
26
+ {
22
27
  HtmlElement_t,
23
28
  sj_element_key_get,
24
29
  sj_Subject_get,
25
30
  Subject_t
26
31
  }
27
- from "../system/index.js";
32
+ from "smsmslib/javascr/core/index.js";
28
33
 
29
34
  import {AvControllerState_t} from "./AvControllerState_t.js"
30
35
 
@@ -19,12 +19,17 @@ import
19
19
  {
20
20
  sj_is_object,
21
21
  sj_prop_chg_own,
22
+ }
23
+ from "smsmslib/javascr/util/index.js";
24
+
25
+ import
26
+ {
22
27
  HtmlElement_t,
23
28
  sj_element_key_get,
24
29
  Subject_t,
25
30
  sj_Subject_get,
26
31
  }
27
- from "../system/index.js";
32
+ from "smsmslib/javascr/core/index.js";
28
33
 
29
34
  import {AvControllerState_t} from "./AvControllerState_t.js"
30
35
 
@@ -18,12 +18,17 @@ import
18
18
  {
19
19
  sj_is_object,
20
20
  sj_prop_chg_own,
21
+ }
22
+ from "smsmslib/javascr/util/index.js";
23
+
24
+ import
25
+ {
21
26
  HtmlElement_t,
22
27
  sj_element_key_get,
23
28
  Subject_t,
24
29
  sj_Subject_get,
25
30
  }
26
- from "../system/index.js";
31
+ from "smsmslib/javascr/core/index.js";
27
32
 
28
33
  import {AvControllerState_t} from "./AvControllerState_t.js"
29
34
 
@@ -18,12 +18,17 @@ import
18
18
  {
19
19
  sj_is_object,
20
20
  sj_prop_chg_own,
21
+ }
22
+ from "smsmslib/javascr/util/index.js";
23
+
24
+ import
25
+ {
21
26
  HtmlElement_t,
22
27
  sj_element_key_get,
23
28
  Subject_t,
24
29
  sj_Subject_get,
25
30
  }
26
- from "../system/index.js";
31
+ from "smsmslib/javascr/core/index.js";
27
32
 
28
33
  import {AvControllerState_t} from "./AvControllerState_t.js"
29
34
 
@@ -8,6 +8,8 @@
8
8
  * playback state of a media element. It operates as an observer within
9
9
  * the AV controller system, updating the element's width based on timing
10
10
  * data (start, end, and current time).
11
+ *
12
+ * @module javascr/av_controller/HtmlTimerBar_t
11
13
  */
12
14
 
13
15
  /** ---------------------------------------------------------------------------
@@ -17,9 +19,14 @@
17
19
  import
18
20
  {
19
21
  sj_is_object,
22
+ }
23
+ from "smsmslib/javascr/util/index.js";
24
+
25
+ import
26
+ {
20
27
  HtmlElement_t,
21
28
  }
22
- from "../system/index.js";
29
+ from "smsmslib/javascr/core/index.js";
23
30
 
24
31
  import {AvControllerState_t} from "./AvControllerState_t.js"
25
32
 
@@ -21,9 +21,14 @@
21
21
  import
22
22
  {
23
23
  sj_is_object,
24
+ }
25
+ from "smsmslib/javascr/util/index.js";
26
+
27
+ import
28
+ {
24
29
  HtmlElement_t,
25
30
  }
26
- from "../system/index.js";
31
+ from "smsmslib/javascr/core/index.js";
27
32
 
28
33
  import {AvControllerState_t} from "./AvControllerState_t.js"
29
34
 
@@ -15,15 +15,20 @@
15
15
  * Imports.
16
16
  * --------------------------------------------------------------------------- */
17
17
 
18
+ import
19
+ {
20
+ sj_prop_chg_own,
21
+ }
22
+ from "smsmslib/javascr/util/index.js";
23
+
18
24
  import
19
25
  {
20
26
  HtmlElement_t,
21
27
  Subject_t,
22
28
  sj_Subject_get,
23
29
  sj_element_key_get,
24
- sj_prop_chg_own,
25
30
  }
26
- from "../system/index.js";
31
+ from "smsmslib/javascr/core/index.js";
27
32
 
28
33
  import {AvControllerState_t} from "./AvControllerState_t.js"
29
34
 
@@ -18,6 +18,11 @@ import
18
18
  sj_is_object,
19
19
  sj_prop_chg_own,
20
20
  sj_array_push,
21
+ }
22
+ from "smsmslib/javascr/util/index.js";
23
+
24
+ import
25
+ {
21
26
  HtmlElement_t,
22
27
  new_HtmlElement,
23
28
  HtmlSelect_t,
@@ -26,7 +31,7 @@ import
26
31
  Subject_t,
27
32
  SubjectSet_t
28
33
  }
29
- from "../system/index.js";
34
+ from "smsmslib/javascr/core/index.js";
30
35
 
31
36
  import {AvControllerState_t} from "./AvControllerState_t.js";
32
37
  import {HtmlMedia_t} from "./HtmlMedia_t.js";
@@ -2,7 +2,7 @@
2
2
  * @file App_t.js
3
3
  * @brief Application root class providing a central access point for state management.
4
4
  *
5
- * @module javascr/system/App_t
5
+ * @module javascr/core/App_t
6
6
  * --------------------------------------------------------------------------- */
7
7
 
8
8
  /** ---------------------------------------------------------------------------
@@ -8,17 +8,22 @@
8
8
  * JavaScript objects and their corresponding HTML elements, providing a
9
9
  * structured way to manage DOM nodes as observer instances.
10
10
  *
11
- * @module javascr/system/HtmlElement_t
11
+ * @module javascr/core/HtmlElement_t
12
12
  */
13
13
 
14
14
  /** ---------------------------------------------------------------------------
15
15
  * Imports.
16
16
  * --------------------------------------------------------------------------- */
17
17
 
18
+ import
19
+ {
20
+ sj_document_querySelector,
21
+ sj_dataset_get_own_climbing,
22
+ sj_is_element_node,
23
+ }
24
+ from "smsmslib/javascr/util/index.js"
25
+
18
26
  import {Observer_t} from "./Observer_t.js";
19
- import {sj_document_querySelector} from "./document.js";
20
- import {sj_dataset_get_own_climbing} from "./dataset.js"
21
- import {sj_is_element_node} from "./type.js"
22
27
 
23
28
 
24
29
  /** ---------------------------------------------------------------------------
@@ -7,7 +7,7 @@
7
7
  * should override these methods to implement specific behaviors, such as
8
8
  * updating DOM elements or handling application-level events.
9
9
  *
10
- * @module javascr/system/Observer_t
10
+ * @module javascr/core/Observer_t
11
11
  * --------------------------------------------------------------------------- */
12
12
 
13
13
  /**
@@ -7,14 +7,20 @@
7
7
  * to organize various data domains (e.g., user profiles, settings, state)
8
8
  * under unique keys and provides mechanisms for collective operations.
9
9
  *
10
- * @module javascr/system/SubjectSet_t
10
+ * @module javascr/core/SubjectSet_t
11
11
  * --------------------------------------------------------------------------- */
12
12
 
13
13
  /** ---------------------------------------------------------------------------
14
14
  * Imports.
15
15
  * --------------------------------------------------------------------------- */
16
16
 
17
- import {sj_prop_add_own_new, sj_prop_delete_own} from "./prop.js";
17
+ import
18
+ {
19
+ sj_prop_add_own_new,
20
+ sj_prop_delete_own,
21
+ }
22
+ from "smsmslib/javascr/util/index.js"
23
+
18
24
  import {Subject_t} from "./Subject_t.js";
19
25
 
20
26
 
@@ -18,16 +18,21 @@
18
18
  * via `data_get()`, editing it, and then explicitly calling `observer_update()`
19
19
  * to trigger observer synchronization.
20
20
  *
21
- * @module javascr/system/Subject_t
21
+ * @module javascr/core/Subject_t
22
22
  * --------------------------------------------------------------------------- */
23
23
 
24
24
  /** ---------------------------------------------------------------------------
25
25
  * Imports.
26
26
  * --------------------------------------------------------------------------- */
27
27
 
28
- import {sj_is_constructor} from "./type.js"
29
- import {sj_array_push} from "./arraypush.js";
30
- import {sj_array_concat_new} from "./arrayconcat.js";
28
+ import
29
+ {
30
+ sj_is_constructor,
31
+ sj_array_push,
32
+ sj_array_concat_new,
33
+ }
34
+ from "smsmslib/javascr/util/index.js"
35
+
31
36
  import {Observer_t} from "./Observer_t.js";
32
37
 
33
38
 
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @file
3
+ * Entry point for the core module.
4
+ *
5
+ * @module javascr/core/index
6
+ */
7
+
8
+ export * from "./App_t.js";
9
+ export * from "./HtmlElement_t.js";
10
+ export * from "./Observer_t.js";
11
+ export * from "./SubjectSet_t.js";
12
+ export * from "./Subject_t.js";
13
+
14
+
package/javascr/index.js CHANGED
@@ -5,6 +5,7 @@
5
5
  * @module javascr/index
6
6
  */
7
7
 
8
- export * from "./system/index.js";
8
+ export * from "./util/index.js";
9
+ export * from "./core/index.js";
9
10
  export * from "./av_controller/index.js";
10
11
 
@@ -1,26 +1,24 @@
1
1
  /**
2
2
  * @file
3
- * Entry point for the system module.
3
+ * Entry point for the util module.
4
4
  *
5
- * @module javascr/system/index
5
+ * @module javascr/util/index
6
6
  */
7
7
 
8
- export * from "./App_t.js";
9
- export * from "./HtmlElement_t.js";
10
- export * from "./Observer_t.js";
11
- export * from "./SubjectSet_t.js";
12
- export * from "./Subject_t.js";
13
8
  export * from "./array.js";
9
+ export * from "./arrayconcat.js";
14
10
  export * from "./arraynew.js";
15
11
  export * from "./arraypush.js";
16
12
  export * from "./arraysplice.js";
17
- export * from "./arrayconcat.js";
18
- export * from "./matnew.js";
19
13
  export * from "./dataset.js";
20
14
  export * from "./document.js";
21
15
  export * from "./error.js";
22
16
  export * from "./html.js";
17
+ export * from "./matnew.js";
18
+ export * from "./new.js";
23
19
  export * from "./prop.js";
20
+ export * from "./set.js";
21
+ export * from "./tree.js";
24
22
  export * from "./type.js";
25
23
 
26
24
 
@@ -67,7 +67,7 @@ from "./tree.js";
67
67
  */
68
68
  export function sj_mat_new(ai_dim, initial)
69
69
  {
70
- let a_root = mat_new_init(ai_dim);
70
+ const a_root = mat_new_init(ai_dim);
71
71
  let a_mat = null;
72
72
  const o_user = sj_new_lit(() => ({ai_dim, initial}));
73
73
 
@@ -79,12 +79,41 @@ export const go_tree_walk_ret = Object.freeze(
79
79
  * The traversal callback function.
80
80
  * It will be called for each node with the following signature:
81
81
  * `b_continue = f_cb(ao_TreeStack, from_child, user);`
82
- * - ao_TreeStack: The current traversal path (stack of `TreeStack_t`).
83
- * The callback typically processes the last element of this
84
- * stack (the current node context).
85
- * - from_child : Data passed back from a child node(initially `GI_FROM_CHILD_INI`).
86
- * - user : User-defined data.
87
- * - Returns : true to continue descending/traversing, false to stop.
82
+ *
83
+ * - **ao_TreeStack**: The current traversal path (stack of `TreeStack_t`).
84
+ * The callback typically processes the last element of this
85
+ * stack (the current node context).
86
+ * - **from_child** : Data passed back from a child node(initially `GI_FROM_CHILD_INI`).
87
+ * - **user** : User-defined data.
88
+ * - **Returns** : true to continue descending/traversing, false to stop.
89
+ *
90
+ * ### Traversal Orders and Callback Timing
91
+ * The callback `f_cb` is invoked **(1 + number of children)** times for each node.
92
+ * It is called once when the node is first visited, and then once after each child
93
+ * node's traversal is completed.
94
+ * Let `o_TreeStack = ao_TreeStack.at(-1)`.
95
+ *
96
+ * - **`o_TreeStack.child`**:
97
+ * Initialized to `null` if `o_TreeStack.i_child` is 0. Otherwise remains as previously
98
+ * set. The callback should set the `i_child`-th child node here to drive the descent
99
+ * if one exists; otherwise, set to null.
100
+ *
101
+ * - **`o_TreeStack.to_parent`**:
102
+ * Data written here will be passed back to the parent as `from_child' during ascent.
103
+ *
104
+ * - **Leaf node**:
105
+ * When `o_TreeStack.i_child === 0` and o_TreeStack has no child.
106
+ *
107
+ * - **Leading Order**:
108
+ * Occurs when `o_TreeStack.i_child === 0`.
109
+ *
110
+ * - **Middle Order**:
111
+ * Occurs if o_TreeStack is a leaf, or when `o_TreeStack.i_child === 1`.
112
+ *
113
+ * - **Trailing Order**:
114
+ * Occurs when o_TreeStack has no more children to visit.
115
+ *
116
+ * By checking these conditions, you can implement logic for specific traversal orders.
88
117
  *
89
118
  * @param {any} root [in]
90
119
  * The root node of the tree to start walking from.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smsmslib",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Reusable functions for me.",
5
5
  "files": [
6
6
  "javascr/**/*.js",
@@ -19,6 +19,6 @@
19
19
  "author": "",
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
- "smsmslib": "^1.0.74"
22
+ "smsmslib": "^1.0.76"
23
23
  }
24
24
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes