@loadbare/widgets 0.3.2 → 0.5.0
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/README.md +4 -4
- package/dist/control.d.ts +57 -0
- package/dist/control.d.ts.map +1 -0
- package/dist/control.js +101 -0
- package/dist/control.js.map +1 -0
- package/dist/lb-input.browser.js +10 -38
- package/dist/lb-input.browser.js.map +1 -1
- package/dist/lb-options.browser.d.ts +14 -6
- package/dist/lb-options.browser.d.ts.map +1 -1
- package/dist/lb-options.browser.js +38 -39
- package/dist/lb-options.browser.js.map +1 -1
- package/dist/lb-options.html +1 -1
- package/dist/lb-picker.browser.js +6 -5
- package/dist/lb-picker.browser.js.map +1 -1
- package/dist/lb-picker.html +2 -2
- package/dist/lb-select.browser.js +10 -39
- package/dist/lb-select.browser.js.map +1 -1
- package/dist/lb-select.html +1 -1
- package/dist/lb-table.browser.js +9 -9
- package/dist/lb-table.browser.js.map +1 -1
- package/dist/lb-table.html +3 -3
- package/dist/lb-unknown-page.html +2 -4
- package/docs/lb-input.md +41 -40
- package/docs/lb-options.md +48 -32
- package/docs/lb-picker.md +24 -23
- package/docs/lb-select.md +37 -19
- package/docs/lb-table.md +26 -24
- package/docs/lb-unknown-page.md +11 -13
- package/package.json +3 -3
package/docs/lb-unknown-page.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
> Status: a barebones starter. Iterative use will drive improvements.
|
|
4
4
|
|
|
5
5
|
The chrome's dialog for a URL that names no page. Write it once, inside
|
|
6
|
-
`<lb-hub>`, and the hub opens it whenever
|
|
6
|
+
`<lb-hub>`, and the hub opens it whenever no page's stub matches the path.
|
|
7
7
|
|
|
8
8
|
```html
|
|
9
9
|
<lb-hub>
|
|
10
10
|
<nav>
|
|
11
|
-
<a href="/" lb-
|
|
12
|
-
<a href="/about" lb-
|
|
11
|
+
<a href="/" lb-url-link>Home</a>
|
|
12
|
+
<a href="/about" lb-url-link>About</a>
|
|
13
13
|
</nav>
|
|
14
14
|
<main></main>
|
|
15
15
|
<lb-unknown-page></lb-unknown-page>
|
|
@@ -19,24 +19,22 @@ The chrome's dialog for a URL that names no page. Write it once, inside
|
|
|
19
19
|
## Parameters
|
|
20
20
|
|
|
21
21
|
| Parameter | Fills |
|
|
22
|
-
|
|
22
|
+
| ----------------- | ------------------------------------- |
|
|
23
23
|
| `exp-button-text` | the text of the button that closes it |
|
|
24
24
|
|
|
25
25
|
Leaving `exp-button-text` off labels the button `OK`.
|
|
26
26
|
|
|
27
27
|
## Binding
|
|
28
28
|
|
|
29
|
-
The definition supplies its own binding: a `<dialog lb-unknown
|
|
30
|
-
|
|
29
|
+
The definition supplies its own binding: a `<dialog lb-url-unknown>` carrying
|
|
30
|
+
`lb-query="lb-url"`, the query the hub serves and lands on every page load.
|
|
31
31
|
|
|
32
|
-
|
|
|
33
|
-
|
|
34
|
-
| `
|
|
35
|
-
| `page-uri` | the path and query string as the browser has them |
|
|
32
|
+
| Column | Holds |
|
|
33
|
+
| --------- | ------------------------ |
|
|
34
|
+
| `lb-path` | the path the browser has |
|
|
36
35
|
|
|
37
|
-
The widget shows
|
|
38
|
-
|
|
39
|
-
improvement iterative use is expected to drive.
|
|
36
|
+
The widget shows the path. The dialog opens only when no page matches, so
|
|
37
|
+
there is no page label to show.
|
|
40
38
|
|
|
41
39
|
## Inside the hub
|
|
42
40
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadbare/widgets",
|
|
3
3
|
"description": "The basic widget set for @loadbare/app: input, select, options, picker, table, unknown-page",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"node": ">=22"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@loadbare/app": ">=0.
|
|
52
|
+
"@loadbare/app": ">=0.10.0 <1.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@loadbare/app": ">=0.
|
|
55
|
+
"@loadbare/app": ">=0.10.0 <1.0.0",
|
|
56
56
|
"@types/jsdom": "^21.1.7",
|
|
57
57
|
"@types/node": "^22.0.0",
|
|
58
58
|
"jsdom": "^25.0.0",
|