@thi.ng/rdom 0.13.2 → 0.13.3

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,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-12-03T12:13:31Z
3
+ - **Last updated**: 2023-12-09T19:12:03Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [0.13.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.13.3) (2023-12-09)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix updateValueAttrib() for some input types ([81facee](https://github.com/thi-ng/umbrella/commit/81facee))
17
+
12
18
  ## [0.13.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.13.0) (2023-11-12)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -249,6 +249,7 @@ $compile([
249
249
 
250
250
  - [@thi.ng/rdom-canvas](https://github.com/thi-ng/umbrella/tree/develop/packages/rdom-canvas) - [@thi.ng/rdom](https://github.com/thi-ng/umbrella/tree/develop/packages/rdom) component wrapper for [@thi.ng/hiccup-canvas](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-canvas) and declarative canvas drawing
251
251
  - [@thi.ng/rdom-components](https://github.com/thi-ng/umbrella/tree/develop/packages/rdom-components) - Collection of unstyled, customizable components for [@thi.ng/rdom](https://github.com/thi-ng/umbrella/tree/develop/packages/rdom)
252
+ - [@thi.ng/rdom-forms](https://github.com/thi-ng/umbrella/tree/develop/packages/rdom-forms) - Data-driven declarative & extensible HTML form generation
252
253
 
253
254
  ## Related packages
254
255
 
@@ -278,7 +279,7 @@ For Node.js REPL:
278
279
  const rdom = await import("@thi.ng/rdom");
279
280
  ```
280
281
 
281
- Package sizes (brotli'd, pre-treeshake): ESM: 4.12 KB
282
+ Package sizes (brotli'd, pre-treeshake): ESM: 4.10 KB
282
283
 
283
284
  ## Dependencies
284
285
 
@@ -319,6 +320,7 @@ directory are using this package:
319
320
  | | Demonstates various rdom usage patterns | [Demo](https://demo.thi.ng/umbrella/rdom-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-basics) |
320
321
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-delayed-update.jpg" width="240"/> | Dynamically loaded images w/ preloader state | [Demo](https://demo.thi.ng/umbrella/rdom-delayed-update/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-delayed-update) |
321
322
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-dnd.png" width="240"/> | rdom drag & drop example | [Demo](https://demo.thi.ng/umbrella/rdom-dnd/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-dnd) |
323
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-formgen.jpg" width="240"/> | Basic usage of the declarative rdom-forms generator | [Demo](https://demo.thi.ng/umbrella/rdom-formgen/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-formgen) |
322
324
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-key-sequences.jpg" width="240"/> | rstream & transducer-based FSM for converting key event sequences into high-level commands | [Demo](https://demo.thi.ng/umbrella/rdom-key-sequences/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-key-sequences) |
323
325
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-lissajous.png" width="240"/> | rdom & hiccup-canvas interop test | [Demo](https://demo.thi.ng/umbrella/rdom-lissajous/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-lissajous) |
324
326
  | | Full umbrella repo doc string search w/ paginated results | [Demo](https://demo.thi.ng/umbrella/rdom-search-docs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-search-docs) |
package/dom.d.ts CHANGED
@@ -129,12 +129,15 @@ export declare const $html: (el: HTMLElement | SVGElement, body: MaybeDeref<stri
129
129
  * `attribs` object and return value used
130
130
  * - array values are converted into space-delimited string
131
131
  *
132
- * CSS classs are to given as `class` attribute, with its value either a string
133
- * or an object of booleans. If the latter, the given class names are either
134
- * added to or removed from the current list of classes.
132
+ * CSS classes can be given as `class` attribute, with its value either a
133
+ * string, a string array or an object of booleans. If the latter, the given
134
+ * class names are either added to or removed from the current list of classes.
135
+ * See
136
+ * [`mergeClasses()`](https://docs.thi.ng/umbrella/hiccup/functions/mergeClasses.html)
137
+ * for details.
135
138
  *
136
139
  * CSS style rules can be defined via the `style` attrib. Please {@link $style}
137
- * for further details.
140
+ * for further details.
138
141
  *
139
142
  * Data attributes are to be given as object under the `data` attribute name,
140
143
  * with its values being merged with the element's current `dataset` property.
package/dom.js CHANGED
@@ -233,12 +233,15 @@ export const $html = (el, body) => {
233
233
  * `attribs` object and return value used
234
234
  * - array values are converted into space-delimited string
235
235
  *
236
- * CSS classs are to given as `class` attribute, with its value either a string
237
- * or an object of booleans. If the latter, the given class names are either
238
- * added to or removed from the current list of classes.
236
+ * CSS classes can be given as `class` attribute, with its value either a
237
+ * string, a string array or an object of booleans. If the latter, the given
238
+ * class names are either added to or removed from the current list of classes.
239
+ * See
240
+ * [`mergeClasses()`](https://docs.thi.ng/umbrella/hiccup/functions/mergeClasses.html)
241
+ * for details.
239
242
  *
240
243
  * CSS style rules can be defined via the `style` attrib. Please {@link $style}
241
- * for further details.
244
+ * for further details.
242
245
  *
243
246
  * Data attributes are to be given as object under the `data` attribute name,
244
247
  * with its values being merged with the element's current `dataset` property.
@@ -334,14 +337,8 @@ const updateValueAttrib = (el, value) => {
334
337
  case "password":
335
338
  case "search":
336
339
  case "number":
337
- case "email":
338
340
  case "url":
339
341
  case "tel":
340
- case "date":
341
- case "datetime-local":
342
- case "time":
343
- case "week":
344
- case "month":
345
342
  if ((ev = el.value) !== undefined && isString(value)) {
346
343
  const off = value.length - (ev.length - (el.selectionStart || 0));
347
344
  el.value = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,17 @@
34
34
  "test": "bun test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.9.10",
38
- "@thi.ng/checks": "^3.4.10",
39
- "@thi.ng/errors": "^2.4.4",
40
- "@thi.ng/hiccup": "^5.0.9",
41
- "@thi.ng/paths": "^5.1.51",
42
- "@thi.ng/prefixes": "^2.2.6",
43
- "@thi.ng/rstream": "^8.2.12",
44
- "@thi.ng/strings": "^3.7.1"
37
+ "@thi.ng/api": "^8.9.11",
38
+ "@thi.ng/checks": "^3.4.11",
39
+ "@thi.ng/errors": "^2.4.5",
40
+ "@thi.ng/hiccup": "^5.1.0",
41
+ "@thi.ng/paths": "^5.1.52",
42
+ "@thi.ng/prefixes": "^2.2.7",
43
+ "@thi.ng/rstream": "^8.2.13",
44
+ "@thi.ng/strings": "^3.7.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@microsoft/api-extractor": "^7.38.3",
48
- "@thi.ng/testament": "^0.4.3",
49
48
  "rimraf": "^5.0.5",
50
49
  "tools": "^0.0.1",
51
50
  "typedoc": "^0.25.4",
@@ -141,5 +140,5 @@
141
140
  ],
142
141
  "year": 2020
143
142
  },
144
- "gitHead": "04d1de79f256d7a53c6b5fd157b37f49bc88e11d\n"
143
+ "gitHead": "25f2ac8ff795a432a930119661b364d4d93b59a0\n"
145
144
  }