@cntwg/html-ctrls-lists 0.0.28 → 0.0.30

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/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ #### *v0.0.30*
2
+
3
+ Pre-release version.
4
+
5
+ > - update dependency on `@ygracs/bsfoc-lib-js` module to v0.3.4;
6
+ > - update dependency on `@ygracs/lists-lib-js` module to v0.1.2;
7
+ > - update dependency on `@cntwg/html-helper` module to v0.1.2;
8
+ > - update dependency on `@cntwg/html-ctrls-buttons` module to v0.0.30.
9
+
10
+ #### *v0.0.29*
11
+
12
+ Pre-release version.
13
+
14
+ > - update dependency on `@ygracs/bsfoc-lib-js` module to v0.3.3;
15
+ > - update dependency on `@ygracs/lists-lib-js` module to v0.1.1;
16
+ > - update dependency on `@cntwg/html-helper` module to v0.1.1;
17
+ > - update dependency on `@cntwg/html-ctrls-buttons` module to v0.0.29.
18
+
1
19
  #### *v0.0.28*
2
20
 
3
21
  Pre-release version.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022-2025 Yuri Grachev
3
+ Copyright (c) 2022-2026 Yuri Grachev
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
package/index.js CHANGED
@@ -1,9 +1,10 @@
1
- // [v0.1.030-20250831]
1
+ // [v0.1.031-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
5
- const html_list = require('./lib/list.js');
6
- const html_list_btn = require('./lib/lists-btn.js');
5
+ const list = require('./lib/list');
6
+ const btn = require('./lib/lists-btn');
7
+ const stubs = require('./lib/lists-stubs');
7
8
 
8
9
  // === module inner block ===
9
10
 
@@ -11,10 +12,11 @@ const html_list_btn = require('./lib/lists-btn.js');
11
12
 
12
13
  // === module exports block ===
13
14
 
14
- module.exports.THtmlStubItemsSet = html_list.THtmlStubItemsSet;
15
- module.exports.THtmlItemsListContainer = html_list.THtmlItemsListContainer;
16
- module.exports.THtmlItemsListController = html_list.THtmlItemsListController;
15
+ module.exports.THtmlStubItemsSet = stubs.THtmlStubItemsSet;
17
16
 
18
- module.exports.BTS_DEF_GROUP_NAME = html_list_btn.BTS_DEF_GROUP_NAME;
17
+ module.exports.THtmlItemsListContainer = list.THtmlItemsListContainer;
18
+ module.exports.THtmlItemsListController = list.THtmlItemsListController;
19
19
 
20
- module.exports.THtmlListButtonsController = html_list_btn.THtmlListButtonsController;
20
+ module.exports.BTS_DEF_GROUP_NAME = btn.BTS_DEF_GROUP_NAME;
21
+
22
+ module.exports.THtmlListButtonsController = btn.THtmlListButtonsController;
package/lib/list.js CHANGED
@@ -1,4 +1,4 @@
1
- // [v0.1.074-20251004]
1
+ // [v0.1.076-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
@@ -68,22 +68,10 @@ function srchListElementByAttr(list, name, value = '') {
68
68
 
69
69
  // === module main block ===
70
70
 
71
- /***
72
- * (* constant definitions *)
73
- */
74
-
75
71
  const ILC_SMODE_DEF = 0;
76
72
  const ILC_SMODE_SHFT = 1;
77
73
  const ILC_SMODE_CTRL = 2;
78
74
 
79
- /***
80
- * (* function definitions *)
81
- */
82
-
83
- /***
84
- * (* class definitions *)
85
- */
86
-
87
75
  /**
88
76
  * An options set for `THtmlItemsListContainer`-class
89
77
  * @typedef {Object} OPT_hlconsett
@@ -495,6 +483,7 @@ class THtmlItemsListContainer {
495
483
  }
496
484
 
497
485
  };
486
+ exports.THtmlItemsListContainer = THtmlItemsListContainer;
498
487
 
499
488
  /**
500
489
  * A an options set for a `THtmlStubItemsSet`-class constructor
@@ -618,7 +607,7 @@ class THtmlItemsListController extends THtmlItemsListContainer {
618
607
  }
619
608
 
620
609
  /**
621
- * @param {object} e - event
610
+ * @param {Event} e - event
622
611
  * @returns {void}
623
612
  * @private
624
613
  */
@@ -1121,7 +1110,7 @@ class THtmlItemsListController extends THtmlItemsListContainer {
1121
1110
  /**
1122
1111
  * Sets a callback function to handle event.
1123
1112
  * @param {string} name - event name
1124
- * @param {func} evnt
1113
+ * @param {Function} evnt
1125
1114
  * @returns {void}
1126
1115
  */
1127
1116
  on(name, evnt) {
@@ -1129,9 +1118,8 @@ class THtmlItemsListController extends THtmlItemsListContainer {
1129
1118
  }
1130
1119
 
1131
1120
  };
1121
+ exports.THtmlItemsListController = THtmlItemsListController;
1132
1122
 
1133
1123
  // === module exports block ===
1134
1124
 
1135
1125
  exports.THtmlStubItemsSet = THtmlStubItemsSet;
1136
- exports.THtmlItemsListContainer = THtmlItemsListContainer;
1137
- exports.THtmlItemsListController = THtmlItemsListController;
package/lib/lists-btn.js CHANGED
@@ -1,4 +1,4 @@
1
- // [v0.1.059-20251027]
1
+ // [v0.1.061-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
@@ -32,20 +32,8 @@ const {
32
32
 
33
33
  // === module main block ===
34
34
 
35
- /***
36
- * (* constant definitions *)
37
- */
38
-
39
35
  const BTS_DEF_GROUP_NAME = 'all';
40
36
 
41
- /***
42
- * (* function definitions *)
43
- */
44
-
45
- /***
46
- * (* class definitions *)
47
- */
48
-
49
37
  /**
50
38
  * A description for list buttons set.
51
39
  * @typedef {Object} listButtonsSetDesc
@@ -115,7 +103,7 @@ class THtmlListButtonsController {
115
103
  }
116
104
 
117
105
  /**
118
- * @param {object} e - event
106
+ * @param {Event} e - event
119
107
  * @param {string} key - button ID
120
108
  * @returns {void}
121
109
  * @private
@@ -199,16 +187,15 @@ class THtmlListButtonsController {
199
187
  /**
200
188
  * Sets a callback function to handle event.
201
189
  * @param {string} name - event name
202
- * @param {func} evnt - callback function
190
+ * @param {Function} evnt - callback function
203
191
  * @returns {void}
204
192
  */
205
193
  on(name, evnt) {
206
194
  pushEventHandler(this.#_events, name, evnt);
207
195
  }
208
196
  };
197
+ exports.THtmlListButtonsController = THtmlListButtonsController;
209
198
 
210
199
  // === module exports block ===
211
200
 
212
- exports.THtmlListButtonsController = THtmlListButtonsController;
213
-
214
201
  exports.BTS_DEF_GROUP_NAME = BTS_DEF_GROUP_NAME;
@@ -1,4 +1,4 @@
1
- // [v0.1.051-20251002]
1
+ // [v0.1.053-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
@@ -14,18 +14,6 @@ const {
14
14
 
15
15
  // === module main block ===
16
16
 
17
- /***
18
- * (* constant definitions *)
19
- */
20
-
21
- /***
22
- * (* function definitions *)
23
- */
24
-
25
- /***
26
- * (* class definitions *)
27
- */
28
-
29
17
  /**
30
18
  * A settings to load a stub-elements.
31
19
  * @typedef {Object} OPT_ldstubs
@@ -65,7 +53,7 @@ class THtmlStubItemsSet {
65
53
  /**
66
54
  * Creates an instance of a stub-items set
67
55
  * @param {HTMLElement} host - host element
68
- * @param {(array|OPT_stubconsett|OBJ_stubEList)} [opt] - options
56
+ * @param {(any[]|OPT_stubconsett|OBJ_stubEList)} [opt] - options
69
57
  * @todo [since v0.0.26] use of an `array`-type as a value of an `opt` is deprecated
70
58
  */
71
59
  constructor(host, opt) {
@@ -292,7 +280,4 @@ class THtmlStubItemsSet {
292
280
  }
293
281
 
294
282
  };
295
-
296
- // === module exports block ===
297
-
298
283
  exports.THtmlStubItemsSet = THtmlStubItemsSet;
package/lib/mod-hfunc.js CHANGED
@@ -1,4 +1,4 @@
1
- // [v0.1.064-20250831]
1
+ // [v0.1.065-20260110]
2
2
 
3
3
  // === module init block ===
4
4
 
@@ -25,7 +25,7 @@ const {
25
25
 
26
26
  /**
27
27
  * @function readOnClickEventInfo
28
- * @param {object}
28
+ * @param {Event} e
29
29
  * @returns {object}
30
30
  * @inner
31
31
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntwg/html-ctrls-lists",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "An HTML-form component: lists",
5
5
  "author": "ygracs <cs70th-om@rambler.ru>",
6
6
  "license": "MIT",
@@ -25,8 +25,6 @@
25
25
  ],
26
26
  "scripts": {
27
27
  "test": "jest",
28
- "test-lc2:bs": "jest THtmlItemsListController/base",
29
- "test-lc2:ec": "jest THtmlItemsListController/events",
30
28
  "build-doc-md": "jsdoc2md",
31
29
  "build-doc-html": "jsdoc"
32
30
  },
@@ -35,15 +33,16 @@
35
33
  "#test-dir/*": "./__test__/*"
36
34
  },
37
35
  "dependencies": {
38
- "@cntwg/html-ctrls-buttons": "^0.0.28",
39
- "@cntwg/html-helper": "^0.1.0",
40
- "@ygracs/bsfoc-lib-js": "^0.3.0",
41
- "@ygracs/lists-lib-js": "^0.1.0"
36
+ "@cntwg/html-ctrls-buttons": "~0.0.30",
37
+ "@cntwg/html-helper": "~0.1.2",
38
+ "@ygracs/bsfoc-lib-js": "~0.3.4",
39
+ "@ygracs/lists-lib-js": "~0.1.2"
42
40
  },
43
41
  "devDependencies": {
42
+ "@ygracs/test-helper": "~0.0.2-b",
44
43
  "jest": "^30.2.0",
45
44
  "jest-environment-jsdom": "^30.2.0",
46
- "jsdoc-to-markdown": "^9.1.2",
45
+ "jsdoc-to-markdown": "^9.1.3",
47
46
  "minimist": "^1.2.8"
48
47
  }
49
48
  }