@cntwg/html-helper 0.0.27 → 0.1.1
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 +14 -244
- package/LICENSE +1 -1
- package/README.md +17 -21
- package/doc/html-helper-lib.md +3 -3
- package/index.js +4 -41
- package/lib/html-helper-lib.js +3 -11
- package/package.json +6 -16
- package/doc/html-ctrls-btn.md +0 -263
- package/doc/html-ctrls-fields.md +0 -195
- package/doc/html-ctrls-list.md +0 -876
- package/lib/html-ctrls/buttons.js +0 -386
- package/lib/html-ctrls/fields.js +0 -521
- package/lib/html-ctrls/list.js +0 -1108
- package/lib/html-ctrls/lists-btn.js +0 -210
- package/lib/html-ctrls/lists-stubs.js +0 -297
- package/lib/html-ctrls/mod-hfunc.js +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -1,253 +1,23 @@
|
|
|
1
|
-
#### *v0.
|
|
1
|
+
#### *v0.1.1*
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
> - `html-helper-lib.md` updated;
|
|
6
|
-
> - `html-ctrls-btn.md` updated;
|
|
7
|
-
> - update dependency on `@ygracs/bsfoc-lib-js` module to v0.3.0;
|
|
8
|
-
> - update dependency on `@ygracs/lists-lib-js` module to v0.1.0.
|
|
9
|
-
|
|
10
|
-
#### *v0.0.26*
|
|
11
|
-
|
|
12
|
-
Pre-release version.
|
|
13
|
-
|
|
14
|
-
> - `html-ctrls-list.md` updated;
|
|
15
|
-
> - improve a 'THtmlItemsListController' behavior on handling a `click`-event;
|
|
16
|
-
> - change behavior for a `THtmlStubItemsSet`-class constructor (*see docs for details*);
|
|
17
|
-
> - change behavior for a `loadItems`-method of a `THtmlStubItemsSet`-class (*see docs for details*);
|
|
18
|
-
> - some other fixes.
|
|
19
|
-
|
|
20
|
-
#### *v0.0.25*
|
|
21
|
-
|
|
22
|
-
Pre-release version.
|
|
23
|
-
|
|
24
|
-
> - update dependency on `@ygracs/bsfoc-lib-js` module to v0.2.3;
|
|
25
|
-
> - add dependency on `@ygracs/lists-lib-js` module;
|
|
26
|
-
> - remove some deprecates (*see docs for details*);
|
|
27
|
-
> - change pattern for an element manipulation functions (*see docs for details*);
|
|
28
|
-
> - change behavior for `loadItems` method of `THtmlStubItemsSet` class in handling `options` parameter (*see docs for details*).
|
|
29
|
-
|
|
30
|
-
#### *v0.0.24*
|
|
31
|
-
|
|
32
|
-
Pre-release version.
|
|
33
|
-
|
|
34
|
-
> - update dependency on `@ygracs/bsfoc-lib-js` module to v0.2.2.
|
|
35
|
-
|
|
36
|
-
#### *v0.0.23*
|
|
37
|
-
|
|
38
|
-
Pre-release version.
|
|
39
|
-
|
|
40
|
-
> - `html-helper-lib.md` updated;
|
|
41
|
-
> - `html-ctrls-list.md` updated;
|
|
42
|
-
> - `html-ctrls-btn.md` updated;
|
|
43
|
-
> - `html-ctrls-fields.md` updated;
|
|
44
|
-
> - added property `type` to `THtmlInputField` class;
|
|
45
|
-
> - change pattern for an element manipulation functions (*see docs for details*);
|
|
46
|
-
> - deprecate a `force` option in an `options` parameter of the `THtmlStubItemsSet` class constructor;
|
|
47
|
-
> - some other fixes.
|
|
48
|
-
|
|
49
|
-
#### *v0.0.22*
|
|
50
|
-
|
|
51
|
-
Pre-release version.
|
|
52
|
-
|
|
53
|
-
> - `html-helper-lib.md` updated;
|
|
54
|
-
> - add functions `valueToElementID` into `html-helper-lib.js` module;
|
|
55
|
-
> - improve behavior for `createNewHtmlElement` function.
|
|
56
|
-
|
|
57
|
-
#### *v0.0.21*
|
|
58
|
-
|
|
59
|
-
Pre-release version.
|
|
60
|
-
|
|
61
|
-
> - `html-ctrls-list.md` updated;
|
|
62
|
-
> - `html-ctrls-fields.md` updated;
|
|
63
|
-
> - `html-ctrls-btn.md` updated;
|
|
64
|
-
> - updated dependency on `@ygracs/bsfoc-lib-js` module to v0.2.1;
|
|
65
|
-
> - remove some deprecates (*see docs for details*);
|
|
66
|
-
> - change behavior for `loadItems` method of `THtmlStubItemsSet` class in handling `options` parameter (*see docs for details*);
|
|
67
|
-
> - add functions `readAsTagName` and `readAsAttrName` into `html-helper-lib.js` module;
|
|
68
|
-
> - added 'components' property for module exports;
|
|
69
|
-
> - some other fixes.
|
|
70
|
-
|
|
71
|
-
#### *v0.0.20*
|
|
72
|
-
|
|
73
|
-
Pre-release version.
|
|
74
|
-
|
|
75
|
-
> - updated dependency on `@ygracs/bsfoc-lib-js` module to v0.1.4;
|
|
76
|
-
> - some fixes in `html-helper-lib.js` module.
|
|
77
|
-
|
|
78
|
-
#### *v0.0.19*
|
|
79
|
-
|
|
80
|
-
Pre-release version.
|
|
81
|
-
|
|
82
|
-
> - `html-helper-lib.md` updated;
|
|
83
|
-
> - updated dependency on `@ygracs/bsfoc-lib-js` module to v0.1.3;
|
|
84
|
-
> - add functions `lockHtmlElement` and `unlockHtmlElement` into `html-helper-lib.js` module;
|
|
85
|
-
> - change behavior for `createNewHtmlElement` function in handling `options` parameter (*see docs for details*);
|
|
86
|
-
> - added `THtmlInputField` class (experimental);
|
|
87
|
-
> - some other fixes.
|
|
88
|
-
|
|
89
|
-
#### *v0.0.18*
|
|
90
|
-
|
|
91
|
-
Pre-release version.
|
|
92
|
-
|
|
93
|
-
> - `html-helper-lib.md` updated;
|
|
94
|
-
> - some fixes in `html-helper-lib.js` module;
|
|
95
|
-
> - add `mod-hfunc.js` module;
|
|
96
|
-
> - rename module `html-ctrls-list.js` to `html-ctrls/list.js`;
|
|
97
|
-
> - some fixes in `list.js` module;
|
|
98
|
-
> - rename module `html-ctrls-btn.js` to `html-ctrls/buttons.js`;
|
|
99
|
-
> - some fixes in `buttons.js` module;
|
|
100
|
-
> - some fixes in `lists-btn.js` module;
|
|
101
|
-
> - some fixes in `lists-stubs.js` module;
|
|
102
|
-
> - add function `readAsAttrValue` into `html-helper-lib.js` module;
|
|
103
|
-
> - add settings `itemBaseClassID` to `THtmlItemsListContainer` class constructor `options` parameter;
|
|
104
|
-
> - added 'component' property for module exports;
|
|
105
|
-
> - deprecated 'classes' property for module exports (*use `component` instead*);
|
|
106
|
-
|
|
107
|
-
#### *v0.0.17*
|
|
108
|
-
|
|
109
|
-
Pre-release version.
|
|
110
|
-
|
|
111
|
-
> improved event logic on items deletion for `THtmlItemsListController` class.
|
|
112
|
-
|
|
113
|
-
#### *v0.0.16*
|
|
114
|
-
|
|
115
|
-
Pre-release version.
|
|
116
|
-
|
|
117
|
-
> improved items selection logic for `THtmlItemsListController` class.
|
|
118
|
-
|
|
119
|
-
#### *v0.0.15*
|
|
120
|
-
|
|
121
|
-
Pre-release version.
|
|
122
|
-
|
|
123
|
-
> - `html-helper-lib.md` updated;
|
|
124
|
-
> - `html-ctrls-list.md` updated;
|
|
125
|
-
> - some fixes in `html-ctrls-btn.js` module;
|
|
126
|
-
> - some fixes in `html-ctrls-list.js` module;
|
|
127
|
-
> - alter behavior for the `srchIndexByAttr` method of a `THtmlItemsListContainer` class (*see docs for details*);
|
|
128
|
-
> - add settings `markCurrentItem` to `THtmlItemsListContainer` class constructor `options` parameter;
|
|
129
|
-
> - add function `valueToIDString` into `html-helper-lib.js` module;
|
|
3
|
+
Release version.
|
|
130
4
|
|
|
131
|
-
|
|
5
|
+
> - update dependency on `@ygracs/bsfoc-lib-js` module to v0.3.3;
|
|
6
|
+
> - remove dependency on `@ygracs/lists-lib-js` module.
|
|
132
7
|
|
|
133
|
-
|
|
8
|
+
#### *v0.1.0*
|
|
134
9
|
|
|
135
|
-
|
|
136
|
-
> - some fixes in `html-ctrls/list-stubs.js` module;
|
|
137
|
-
> - alter behavior for the `loadItems` method of a `THtmlStubItemsSet` class in case when its `options` parameter is set to `boolean` (see `html-ctrls-list.md` for details);
|
|
138
|
-
> - added method `rstDefItem` to `THtmlStubItemsSet` class;
|
|
139
|
-
> - added `THtmlButtonsControllerARCSet` class.
|
|
140
|
-
|
|
141
|
-
#### *v0.0.13*
|
|
142
|
-
|
|
143
|
-
Pre-release version.
|
|
10
|
+
Release version.
|
|
144
11
|
|
|
145
12
|
> - `html-helper-lib.md` updated;
|
|
146
|
-
> -
|
|
147
|
-
> -
|
|
148
|
-
> -
|
|
149
|
-
> -
|
|
150
|
-
> -
|
|
151
|
-
> -
|
|
152
|
-
> -
|
|
153
|
-
> - updated dependency on `@ygracs/bsfoc-lib-js` module to v0.1.2.
|
|
154
|
-
|
|
155
|
-
#### *v0.0.12*
|
|
156
|
-
|
|
157
|
-
Pre-release version.
|
|
158
|
-
|
|
159
|
-
> - updated dependency on `@ygracs/bsfoc-lib-js` module to v0.1.1.
|
|
160
|
-
|
|
161
|
-
#### *v0.0.11*
|
|
162
|
-
|
|
163
|
-
Pre-release version.
|
|
164
|
-
|
|
165
|
-
> - `html-ctrls-btn.md` updated;
|
|
166
|
-
> - `html-ctrls-list.md` updated;
|
|
167
|
-
> - some fixes in `html-ctrls-list.js` module;
|
|
168
|
-
> - some fixes in `html-ctrls-btn.js` module.
|
|
169
|
-
|
|
170
|
-
#### *v0.0.10*
|
|
171
|
-
|
|
172
|
-
Pre-release version.
|
|
173
|
-
|
|
174
|
-
> - `html-ctrls-btn.md` updated;
|
|
175
|
-
> - added `THtmlListButtonsController` class;
|
|
176
|
-
|
|
177
|
-
#### *v0.0.9*
|
|
178
|
-
|
|
179
|
-
Pre-release version.
|
|
180
|
-
|
|
181
|
-
> - switch dependency from `@cntwg/bsfoc-lib-js` module to `@ygracs/bsfoc-lib-js` module.
|
|
182
|
-
|
|
183
|
-
#### *v0.0.8*
|
|
184
|
-
|
|
185
|
-
Pre-release version.
|
|
186
|
-
|
|
187
|
-
> - updated dependency on `@cntwg/bsfoc-lib-js` module to v0.0.11.
|
|
188
|
-
|
|
189
|
-
#### *v0.0.7*
|
|
190
|
-
|
|
191
|
-
Pre-release version.
|
|
192
|
-
|
|
193
|
-
> - updated dependency on `@cntwg/bsfoc-lib-js` module to v0.0.10;
|
|
194
|
-
> - some fixes in `html-helper-lib.js` module;
|
|
195
|
-
> - some fixes in `html-ctrls-list.js` module.
|
|
196
|
-
|
|
197
|
-
#### *v0.0.6*
|
|
198
|
-
|
|
199
|
-
Pre-release version.
|
|
200
|
-
|
|
201
|
-
> - `html-ctrls-btn.md` updated;
|
|
202
|
-
> - `html-ctrls-list.md` updated;
|
|
203
|
-
> - `html-helper-lib.md` updated;
|
|
204
|
-
> - some fixes in `html-ctrls-btn.js` module;
|
|
205
|
-
> - some fixes in `html-ctrls-list.js` module.
|
|
206
|
-
|
|
207
|
-
#### *v0.0.5*
|
|
208
|
-
|
|
209
|
-
Pre-release version.
|
|
210
|
-
|
|
211
|
-
> - `$module/test/README.md` added;
|
|
212
|
-
> - updated dependency on `@cntwg/bsfoc-lib-js` module to v0.0.8;
|
|
213
|
-
> - `html-ctrls-list.md` updated;
|
|
214
|
-
> - added `minIndex` property to `THtmlItemsListContainer` class;
|
|
215
|
-
> - some fixes in `html-ctrls-list.js` module;
|
|
216
|
-
> - added 'classes' property for module exports;
|
|
217
|
-
> - MIT-license applied.
|
|
218
|
-
|
|
219
|
-
#### *v0.0.4*
|
|
220
|
-
|
|
221
|
-
Pre-release version.
|
|
222
|
-
|
|
223
|
-
> - updated dependency on `@cntwg/bsfoc-lib-js` module to v0.0.5.
|
|
224
|
-
|
|
225
|
-
#### *v0.0.3*
|
|
226
|
-
|
|
227
|
-
Pre-release version.
|
|
228
|
-
|
|
229
|
-
> - added `activateHTMLElements` function;
|
|
230
|
-
> - added `inactivateHTMLElements` function;
|
|
231
|
-
> - added `createNewHtmlElement` function (experimental);
|
|
232
|
-
> - `html-helper-lib.md` updated;
|
|
233
|
-
> - `html-ctrls-btn.md` updated;
|
|
234
|
-
> - `html-ctrls-list.md` updated.
|
|
235
|
-
|
|
236
|
-
#### *v0.0.2*
|
|
237
|
-
|
|
238
|
-
Pre-release version.
|
|
239
|
-
|
|
240
|
-
> - `README.md` added;
|
|
241
|
-
> - `html-helper-lib.md` added to `doc`;
|
|
242
|
-
> - `html-ctrls-btn.md` added to `doc`;
|
|
243
|
-
> - `html-ctrls-list.md` added to `doc`;
|
|
244
|
-
> - added `CSS_CLASS_ACTIVE` constant to `CSS_CLASS_STRING`;
|
|
245
|
-
> - added `isActiveHTMLElement` function;
|
|
246
|
-
> - added `markHtmlElementAsActive` function;
|
|
247
|
-
> - added `unmarkActiveHtmlElement` function;
|
|
248
|
-
> - `html-btn-ctrl.js` was renamed `html-ctrls-btn.js`;
|
|
249
|
-
> - `html-list-ctrl.js` was renamed `html-ctrls-list.js`.
|
|
13
|
+
> - remove `$lib/html-ctrls/fields.js` module;
|
|
14
|
+
> - remove `$lib/html-ctrls/buttons.js` module;
|
|
15
|
+
> - remove `$lib/html-ctrls/list.js` module;
|
|
16
|
+
> - remove `$lib/html-ctrls/list-stubs.js` module;
|
|
17
|
+
> - remove `$lib/html-ctrls/list-btn.js` module;
|
|
18
|
+
> - remove some deprecates;
|
|
19
|
+
> - `README.md` updated.
|
|
250
20
|
|
|
251
|
-
#### *v0.0.1*
|
|
21
|
+
#### *v0.0.1-v0.0.27*
|
|
252
22
|
|
|
253
23
|
Pre-release version.
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2019-
|
|
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/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
>|***rev.*:**|0.
|
|
1
|
+
>|***rev.*:**|0.2.8|
|
|
2
2
|
>|:---|---:|
|
|
3
|
-
>|date:|
|
|
3
|
+
>|date:|2025-10-23|
|
|
4
4
|
|
|
5
5
|
## Introduction
|
|
6
6
|
|
|
7
|
-
This module provide a base set of helpers for
|
|
7
|
+
This module provide a base set of helpers for JavaScript. So your work can run a bit easy by using it when you deal with an HTML-forms.
|
|
8
8
|
|
|
9
9
|
## Description
|
|
10
10
|
|
|
@@ -14,24 +14,20 @@ This module contains the following components:
|
|
|
14
14
|
|
|
15
15
|
> *For more details see `html-helper.md` in module `doc` directory*.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
>
|
|
30
|
-
|
|
31
|
-
- classes for working with instances maintaining an input fields support such as:
|
|
32
|
-
- `THtmlInputField` (experimental, beta stage).
|
|
33
|
-
|
|
34
|
-
> *For more details see `html-ctrls-fields.md` in module `doc` directory*.
|
|
17
|
+
> Notes on upgrade to `v0.1.0`
|
|
18
|
+
>
|
|
19
|
+
> > Since `v0.1.0` a support for the following components moved to a separate packages:
|
|
20
|
+
> > - classes for working with instances maintaining a buttons set support such as: `THtmlButtonsSet`, `THtmlButtonsControllerARCSet`.
|
|
21
|
+
> >
|
|
22
|
+
> > To use those you need to install a package [`@cntwg/html-ctrls-buttons`](https://www.npmjs.com/package/@cntwg/html-ctrls-buttons).
|
|
23
|
+
> >
|
|
24
|
+
> > - classes for working with instances maintaining a lists support such as: `THtmlItemsListContainer`, `THtmlItemsListController`, `THtmlListButtonsController`, `THtmlStubItemsSet`.
|
|
25
|
+
> >
|
|
26
|
+
> > To use those you need to install a package [`@cntwg/html-ctrls-lists`](https://www.npmjs.com/package/@cntwg/html-ctrls-lists).
|
|
27
|
+
> >
|
|
28
|
+
> > - classes for working with instances maintaining an input fields support such as: `THtmlInputField`.
|
|
29
|
+
> >
|
|
30
|
+
> > To use those you need to install a package [`@cntwg/html-ctrls-fields`](https://www.npmjs.com/package/@cntwg/html-ctrls-fields).
|
|
35
31
|
|
|
36
32
|
## Use cases
|
|
37
33
|
|
package/doc/html-helper-lib.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
>|***rev.*:**|0.1.
|
|
1
|
+
>|***rev.*:**|0.1.17|
|
|
2
2
|
>|:---|---:|
|
|
3
|
-
>|date:|2025-
|
|
3
|
+
>|date:|2025-10-23|
|
|
4
4
|
|
|
5
5
|
## Introduction
|
|
6
6
|
|
|
@@ -248,7 +248,7 @@ This function tries to convert a given `value` to `ID_STRING`. If failed a `null
|
|
|
248
248
|
| parameter name | value type | default value | description |
|
|
249
249
|
|:---|---|---:|:---|
|
|
250
250
|
| `value` | `any` | --- | some value |
|
|
251
|
-
| `options` | `
|
|
251
|
+
| `options` | `object` | --- | options to set constraints |
|
|
252
252
|
|
|
253
253
|
> NOTE: This is a re-exported function. For more details see docs for [`@ygracs/bsfoc-lib-js`](https://gitlab.com/ygracs/bsfoc-lib-js)-module.
|
|
254
254
|
|
package/index.js
CHANGED
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
// [v0.
|
|
1
|
+
// [v0.2.033-20251023]
|
|
2
2
|
|
|
3
3
|
// === module init block ===
|
|
4
4
|
|
|
5
5
|
const html_helper = require('./lib/html-helper-lib.js');
|
|
6
|
-
const html_list = require('./lib/html-ctrls/list.js');
|
|
7
|
-
const html_list_btn = require('./lib/html-ctrls/lists-btn.js');
|
|
8
|
-
const html_bts = require('./lib/html-ctrls/buttons.js');
|
|
9
|
-
const html_flds = require('./lib/html-ctrls/fields.js');
|
|
10
6
|
const ev_helper = require('./lib/event-hfunc.js');
|
|
11
7
|
|
|
12
8
|
|
|
13
|
-
// === module
|
|
9
|
+
// === module inner block ===
|
|
14
10
|
|
|
15
11
|
// === module main block ===
|
|
16
12
|
|
|
17
|
-
const components = {
|
|
18
|
-
THtmlStubItemsSet: html_list.THtmlStubItemsSet,
|
|
19
|
-
THtmlItemsListContainer: html_list.THtmlItemsListContainer,
|
|
20
|
-
THtmlItemsListController: html_list.THtmlItemsListController,
|
|
21
|
-
THtmlButtonsSet: html_bts.THtmlButtonsSet,
|
|
22
|
-
THtmlButtonsControllerARCSet: html_bts.THtmlButtonsControllerARCSet,
|
|
23
|
-
THtmlListButtonsController: html_list_btn.THtmlListButtonsController,
|
|
24
|
-
// experimental
|
|
25
|
-
THtmlInputField: html_flds.THtmlInputField,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
13
|
const eventHelper = {
|
|
29
14
|
pushEventHandler: ev_helper.pushEventHandler,
|
|
30
15
|
removeEventHandler: ev_helper.removeEventHandler,
|
|
@@ -53,19 +38,7 @@ module.exports.activateHTMLElements = html_helper.activateHTMLElements;
|
|
|
53
38
|
module.exports.inactivateHTMLElements = html_helper.inactivateHTMLElements;
|
|
54
39
|
module.exports.valueToClassList = html_helper.valueToClassList;
|
|
55
40
|
|
|
56
|
-
|
|
57
|
-
module.exports.THtmlItemsListContainer = html_list.THtmlItemsListContainer;
|
|
58
|
-
module.exports.THtmlItemsListController = html_list.THtmlItemsListController;
|
|
59
|
-
|
|
60
|
-
module.exports.BTS_DEF_GROUP_NAME = html_bts.BTS_DEF_GROUP_NAME;
|
|
61
|
-
module.exports.THtmlButtonsSet = html_bts.THtmlButtonsSet;
|
|
62
|
-
module.exports.THtmlButtonsControllerARCSet = html_bts.THtmlButtonsControllerARCSet;
|
|
63
|
-
|
|
64
|
-
module.exports.THtmlListButtonsController = html_list_btn.THtmlListButtonsController;
|
|
65
|
-
|
|
66
|
-
module.exports.components = components;
|
|
67
|
-
|
|
68
|
-
// experimental
|
|
41
|
+
// * experimental *
|
|
69
42
|
module.exports.readAsTagName = html_helper.readAsTagName;
|
|
70
43
|
module.exports.readAsAttrName = html_helper.readAsAttrName;
|
|
71
44
|
module.exports.readAsAttrValue = html_helper.readAsAttrValue;
|
|
@@ -73,17 +46,7 @@ module.exports.valueToElementID = html_helper.valueToElementID;
|
|
|
73
46
|
module.exports.createNewHTMLElement = html_helper.createNewHTMLElement;
|
|
74
47
|
module.exports.isHTMLButton = html_helper.isHTMLButton;
|
|
75
48
|
|
|
76
|
-
|
|
77
|
-
module.exports.THtmlInputField = html_flds.THtmlInputField;
|
|
78
|
-
|
|
79
49
|
module.exports.eventHelper = eventHelper;
|
|
80
50
|
|
|
81
|
-
// re-exported
|
|
51
|
+
// * re-exported *
|
|
82
52
|
module.exports.valueToIDString = html_helper.valueToIDString;
|
|
83
|
-
|
|
84
|
-
// will deprecate
|
|
85
|
-
module.exports.classes = components;
|
|
86
|
-
|
|
87
|
-
// deprecated
|
|
88
|
-
module.exports.component = components;
|
|
89
|
-
module.exports.createNewHtmlElement = html_helper.createNewHtmlElement;
|
package/lib/html-helper-lib.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// [v0.1.
|
|
1
|
+
// [v0.1.044-20251023]
|
|
2
2
|
|
|
3
3
|
// === module init block ===
|
|
4
4
|
|
|
@@ -498,11 +498,6 @@ function createNewHTMLElement(tagName, opt) {
|
|
|
498
498
|
return item;
|
|
499
499
|
};
|
|
500
500
|
|
|
501
|
-
/** @deprecated */
|
|
502
|
-
function createNewHtmlElement(...args) {
|
|
503
|
-
return createNewHTMLElement(...args);
|
|
504
|
-
};
|
|
505
|
-
|
|
506
501
|
/***
|
|
507
502
|
* (* class definitions *)
|
|
508
503
|
*/
|
|
@@ -539,15 +534,12 @@ module.exports.inactivateHTMLElements = inactivateHTMLElements;
|
|
|
539
534
|
|
|
540
535
|
module.exports.valueToClassList = valueToClassList;
|
|
541
536
|
|
|
542
|
-
// experimental
|
|
537
|
+
// * experimental *
|
|
543
538
|
module.exports.createNewHTMLElement = createNewHTMLElement;
|
|
544
539
|
module.exports.readAsAttrValue = readAsAttrValue;
|
|
545
540
|
module.exports.readAsTagName = readAsTagName;
|
|
546
541
|
module.exports.readAsAttrName = readAsAttrName;
|
|
547
542
|
module.exports.valueToElementID = valueToElementID;
|
|
548
543
|
|
|
549
|
-
// re-exported
|
|
544
|
+
// * re-exported *
|
|
550
545
|
module.exports.valueToIDString = valueToIDString;
|
|
551
|
-
|
|
552
|
-
// @deprecated
|
|
553
|
-
module.exports.createNewHtmlElement = createNewHtmlElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntwg/html-helper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A base HTML-helper library for js",
|
|
5
5
|
"author": "ygracs <cs70th-om@rambler.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,18 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"electron",
|
|
13
|
-
"html"
|
|
14
|
-
"component"
|
|
13
|
+
"html"
|
|
15
14
|
],
|
|
16
15
|
"main": "./index.js",
|
|
17
16
|
"files": [
|
|
18
17
|
"doc/*.md",
|
|
19
|
-
"lib/html-ctrls/lists-stubs.js",
|
|
20
|
-
"lib/html-ctrls/lists-btn.js",
|
|
21
|
-
"lib/html-ctrls/list.js",
|
|
22
|
-
"lib/html-ctrls/buttons.js",
|
|
23
|
-
"lib/html-ctrls/fields.js",
|
|
24
|
-
"lib/html-ctrls/mod-hfunc.js",
|
|
25
18
|
"lib/html-helper-lib.js",
|
|
26
19
|
"lib/event-hfunc.js",
|
|
27
20
|
"index.js",
|
|
@@ -32,8 +25,6 @@
|
|
|
32
25
|
"test-bs": "jest base/",
|
|
33
26
|
"test-bs:g1": "jest base/fg-1",
|
|
34
27
|
"test-bs:g2": "jest base/fg-2",
|
|
35
|
-
"test-lc2:bs": "jest THtmlItemsListController/base",
|
|
36
|
-
"test-lc2:ec": "jest THtmlItemsListController/events",
|
|
37
28
|
"build-doc-md": "jsdoc2md",
|
|
38
29
|
"build-doc-html": "jsdoc"
|
|
39
30
|
},
|
|
@@ -42,13 +33,12 @@
|
|
|
42
33
|
"#test-dir/*": "./__test__/*"
|
|
43
34
|
},
|
|
44
35
|
"dependencies": {
|
|
45
|
-
"@ygracs/bsfoc-lib-js": "^0.3.
|
|
46
|
-
"@ygracs/lists-lib-js": "^0.1.0"
|
|
36
|
+
"@ygracs/bsfoc-lib-js": "^0.3.3"
|
|
47
37
|
},
|
|
48
38
|
"devDependencies": {
|
|
49
|
-
"jest": "^30.0
|
|
50
|
-
"jest-environment-jsdom": "^30.0
|
|
51
|
-
"jsdoc-to-markdown": "^9.1.
|
|
39
|
+
"jest": "^30.2.0",
|
|
40
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
41
|
+
"jsdoc-to-markdown": "^9.1.3",
|
|
52
42
|
"minimist": "^1.2.8"
|
|
53
43
|
}
|
|
54
44
|
}
|