@thi.ng/hdom-components 5.1.150 → 5.1.152

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**: 2025-01-23T13:39:11Z
3
+ - **Last updated**: 2025-02-13T16:03:11Z
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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 200 standalone projects, maintained as part
10
+ > This is one of 201 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-components",
3
- "version": "5.1.150",
3
+ "version": "5.1.152",
4
4
  "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -33,23 +33,22 @@
33
33
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
34
  "clean": "bun ../../tools/src/clean-package.ts utils",
35
35
  "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
37
36
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
38
37
  "pub": "yarn npm publish --access public",
39
38
  "test": "bun test",
40
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
40
  },
42
41
  "dependencies": {
43
- "@thi.ng/api": "^8.11.18",
44
- "@thi.ng/canvas": "^1.0.4",
45
- "@thi.ng/checks": "^3.6.21",
46
- "@thi.ng/math": "^5.11.18",
47
- "@thi.ng/transducers": "^9.2.16",
48
- "@thi.ng/transducers-stats": "^2.2.10"
42
+ "@thi.ng/api": "^8.11.20",
43
+ "@thi.ng/canvas": "^1.0.6",
44
+ "@thi.ng/checks": "^3.6.23",
45
+ "@thi.ng/math": "^5.11.20",
46
+ "@thi.ng/transducers": "^9.2.18",
47
+ "@thi.ng/transducers-stats": "^2.2.12"
49
48
  },
50
49
  "devDependencies": {
51
- "esbuild": "^0.24.2",
52
- "typedoc": "^0.27.6",
50
+ "esbuild": "^0.25.0",
51
+ "typedoc": "^0.27.7",
53
52
  "typescript": "^5.7.3"
54
53
  },
55
54
  "keywords": [
@@ -113,5 +112,5 @@
113
112
  "status": "beta",
114
113
  "year": 2018
115
114
  },
116
- "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
115
+ "gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
117
116
  }
package/pager.d.ts CHANGED
@@ -70,35 +70,34 @@ export interface PagerOpts {
70
70
  labelNext?: any;
71
71
  }
72
72
  /**
73
- * Higher order container component for paged navigation buttons. The
74
- * returned component function takes these arguments:
73
+ * Higher order container component for paged navigation buttons. The returned
74
+ * component function takes these arguments:
75
75
  *
76
76
  * - `ctx` - hdom context object
77
77
  * - `id` - current page ID (zero-based)
78
78
  * - `numItems` - current number of items
79
79
  * - `pageLen` - number of items per page (only used for calculation)
80
- * - `maxButtons` - number of page buttons to show (default: 5). If
81
- * zero, only the prev / next and first / last buttons will be shown.
80
+ * - `maxButtons` - number of page buttons to show (default: 5). If zero, only
81
+ * the prev / next and first / last buttons will be shown.
82
82
  *
83
- * If there are more pages than the specified number, only the
84
- * neighboring page IDs (relative to the current page) are shown. E.g.
85
- * If there are 10 pages, the current page ID is 5 and 3 visible page
86
- * buttons then the pager will look like this (the `|` character here
87
- * indicates button group boundaries):
83
+ * If there are more pages than the specified number, only the neighboring page
84
+ * IDs (relative to the current page) are shown. E.g. If there are 10 pages, the
85
+ * current page ID is 5 and 3 visible page buttons then the pager will look like
86
+ * this (the `|` character here indicates button group boundaries):
88
87
  *
89
- * ```text
88
+ * ```text noweb:no
90
89
  * << < | 4 5 6 | > >>
91
90
  * ```
92
91
  *
93
- * Providing `pageLen` and `maxButtons` as arguments allows to
94
- * dynamically control the number of page buttons at runtime, e.g. in
95
- * response to window resizing.
92
+ * Providing `pageLen` and `maxButtons` as arguments allows to dynamically
93
+ * control the number of page buttons at runtime, e.g. in response to window
94
+ * resizing.
96
95
  *
97
96
  * Yields a component of page buttons and prev / next and first / last
98
- * navigation buttons. The actual button and button group components are
99
- * defined via the user supplied options. The first / prev and next /
100
- * last nav buttons are paired within inner `div` elements (one per
101
- * pair) and can be styled (or hidden) separately.
97
+ * navigation buttons. The actual button and button group components are defined
98
+ * via the user supplied options. The first / prev and next / last nav buttons
99
+ * are paired within inner `div` elements (one per pair) and can be styled (or
100
+ * hidden) separately.
102
101
  *
103
102
  * ```ts
104
103
  * import { pager } from "@thi.ng/hdom-components";