@cntwg/html-helper 0.1.0 → 0.1.2

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,16 @@
1
+ #### *v0.1.2*
2
+
3
+ Release version.
4
+
5
+ > - update dependency on `@ygracs/bsfoc-lib-js` module to v0.3.4.
6
+
7
+ #### *v0.1.1*
8
+
9
+ Release version.
10
+
11
+ > - update dependency on `@ygracs/bsfoc-lib-js` module to v0.3.3;
12
+ > - remove dependency on `@ygracs/lists-lib-js` module.
13
+
1
14
  #### *v0.1.0*
2
15
 
3
16
  Release version.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-2025 Yuri Grachev
3
+ Copyright (c) 2019-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,10 +1,14 @@
1
- // [v0.2.033-20251023]
1
+ // [v0.2.034-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
5
5
  const html_helper = require('./lib/html-helper-lib.js');
6
6
  const ev_helper = require('./lib/event-hfunc.js');
7
7
 
8
+ const {
9
+ valueToIDString,
10
+ } = require('@ygracs/bsfoc-lib-js');
11
+
8
12
 
9
13
  // === module inner block ===
10
14
 
@@ -49,4 +53,4 @@ module.exports.isHTMLButton = html_helper.isHTMLButton;
49
53
  module.exports.eventHelper = eventHelper;
50
54
 
51
55
  // * re-exported *
52
- module.exports.valueToIDString = html_helper.valueToIDString;
56
+ module.exports.valueToIDString = valueToIDString;
@@ -1,19 +1,11 @@
1
- // [v0.1.063-20250503]
1
+ // [v0.1.064-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
5
- // === module extra block (helper functions) ===
5
+ // === module inner block ===
6
6
 
7
7
  // === module main block ===
8
8
 
9
- /***
10
- * (* constant definitions *)
11
- */
12
-
13
- /***
14
- * (* function definitions *)
15
- */
16
-
17
9
  /**
18
10
  * @function pushEventHandler
19
11
  * @param {Map<string, Function>} pool - pool object
@@ -34,6 +26,7 @@ function pushEventHandler(pool, name, evnt) {
34
26
  };
35
27
  };
36
28
  };
29
+ module.exports.pushEventHandler = pushEventHandler;
37
30
 
38
31
  /**
39
32
  * @function removeEventHandler
@@ -51,6 +44,7 @@ function removeEventHandler(pool, name) {
51
44
  if (pool.has(key)) pool.delete(key);
52
45
  };
53
46
  };
47
+ module.exports.removeEventHandler = removeEventHandler;
54
48
 
55
49
  /**
56
50
  * @function triggerEventHandler
@@ -66,13 +60,4 @@ function triggerEventHandler(pool, name, ...args) {
66
60
  if (pool.has(_name)) pool.get(_name)(...args);
67
61
  };
68
62
  };
69
-
70
- /***
71
- * (* class definitions *)
72
- */
73
-
74
- // === module exports block ===
75
-
76
- module.exports.pushEventHandler = pushEventHandler;
77
63
  module.exports.triggerEventHandler = triggerEventHandler;
78
- module.exports.removeEventHandler = removeEventHandler;
@@ -1,4 +1,4 @@
1
- // [v0.1.044-20251023]
1
+ // [v0.1.046-20260309]
2
2
 
3
3
  // === module init block ===
4
4
 
@@ -15,20 +15,12 @@ const etlHTagInputForBtn = new Set([
15
15
 
16
16
  // === module main block ===
17
17
 
18
- /***
19
- * (* constant definitions *)
20
- */
21
-
22
18
  const CSS_CLASS_CURRENT = 'current';
23
19
  const CSS_CLASS_SELECTED = 'selected';
24
20
  const CSS_CLASS_ACTIVE = 'active';
25
21
  const CSS_CLASS_DISABLED = 'disabled';
26
22
  const CSS_CLASS_HIDDEN = 'hidden';
27
23
 
28
- /***
29
- * (* function definitions *)
30
- */
31
-
32
24
  /**
33
25
  * Checks if the given object is an instance of an `HTMLElement`.
34
26
  * @function isHTMLElement
@@ -498,10 +490,6 @@ function createNewHTMLElement(tagName, opt) {
498
490
  return item;
499
491
  };
500
492
 
501
- /***
502
- * (* class definitions *)
503
- */
504
-
505
493
  // === module exports block ===
506
494
 
507
495
  module.exports.CSS_CLASS_STRING = /*function(){ return*/ {
@@ -540,6 +528,3 @@ module.exports.readAsAttrValue = readAsAttrValue;
540
528
  module.exports.readAsTagName = readAsTagName;
541
529
  module.exports.readAsAttrName = readAsAttrName;
542
530
  module.exports.valueToElementID = valueToElementID;
543
-
544
- // * re-exported *
545
- module.exports.valueToIDString = valueToIDString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntwg/html-helper",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A base HTML-helper library for js",
5
5
  "author": "ygracs <cs70th-om@rambler.ru>",
6
6
  "license": "MIT",
@@ -33,13 +33,13 @@
33
33
  "#test-dir/*": "./__test__/*"
34
34
  },
35
35
  "dependencies": {
36
- "@ygracs/bsfoc-lib-js": "^0.3.0",
37
- "@ygracs/lists-lib-js": "^0.1.0"
36
+ "@ygracs/bsfoc-lib-js": "~0.3.4"
38
37
  },
39
38
  "devDependencies": {
39
+ "@ygracs/test-helper": "~0.0.2-b",
40
40
  "jest": "^30.2.0",
41
41
  "jest-environment-jsdom": "^30.2.0",
42
- "jsdoc-to-markdown": "^9.1.2",
42
+ "jsdoc-to-markdown": "^9.1.3",
43
43
  "minimist": "^1.2.8"
44
44
  }
45
45
  }