@e280/shiny 0.1.0-21 → 0.1.0-22
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/package.json +13 -10
- package/s/views/copy/parts/use-copier.ts +2 -2
- package/s/views/drawer/control.ts +3 -3
- package/s/views/tabs/control.ts +1 -1
- package/s/views/tabs/view.ts +4 -4
- package/x/demo/main.bundle.min.js +72 -83
- package/x/demo/main.bundle.min.js.map +4 -4
- package/x/index.html +2 -2
- package/x/views/copy/parts/use-copier.d.ts +1 -1
- package/x/views/copy/parts/use-copier.js +2 -2
- package/x/views/copy/parts/use-copier.js.map +1 -1
- package/x/views/drawer/control.js +3 -3
- package/x/views/drawer/control.js.map +1 -1
- package/x/views/tabs/control.js +1 -1
- package/x/views/tabs/control.js.map +1 -1
- package/x/views/tabs/view.js +4 -4
- package/x/views/tabs/view.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e280/shiny",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-22",
|
|
4
4
|
"description": "✨ web ui library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"count": "find s -path '*/_archive' -prune -o -name '*.ts' -exec wc -l {} +"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@e280/sly": "^0.
|
|
24
|
-
"lit": "^3.3.
|
|
23
|
+
"@e280/sly": "^0.4.0",
|
|
24
|
+
"lit": "^3.3.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@e280/strata": "^0.
|
|
28
|
-
"@e280/stz": "^0.
|
|
27
|
+
"@e280/strata": "^0.4.0",
|
|
28
|
+
"@e280/stz": "^0.3.0",
|
|
29
29
|
"prismjs": "^1.30.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@e280/hottie": "^0.1.
|
|
33
|
-
"@e280/octo": "^0.1.
|
|
34
|
-
"@e280/science": "^0.1.
|
|
35
|
-
"@e280/scute": "^0.3.
|
|
32
|
+
"@e280/hottie": "^0.1.1",
|
|
33
|
+
"@e280/octo": "^0.1.1",
|
|
34
|
+
"@e280/science": "^0.1.11",
|
|
35
|
+
"@e280/scute": "^0.3.3",
|
|
36
36
|
"@types/prismjs": "^1.26.6",
|
|
37
37
|
"http-server": "^14.1.1",
|
|
38
38
|
"typescript": "^6.0.3"
|
|
@@ -51,5 +51,8 @@
|
|
|
51
51
|
"ui library",
|
|
52
52
|
"lit",
|
|
53
53
|
"sly"
|
|
54
|
-
]
|
|
54
|
+
],
|
|
55
|
+
"allowScripts": {
|
|
56
|
+
"esbuild@0.28.1": true
|
|
57
|
+
}
|
|
55
58
|
}
|
|
@@ -8,10 +8,10 @@ import {determineBaseStatus} from "./determine-base-status.js"
|
|
|
8
8
|
export function useCopier(text: string | undefined, ms: number) {
|
|
9
9
|
const $status = useSignal<CopyStatus>(determineBaseStatus(text))
|
|
10
10
|
|
|
11
|
-
const reset = useOnce(() => debounce(ms, () => $status
|
|
11
|
+
const reset = useOnce(() => debounce(ms, () => $status(determineBaseStatus(text))))
|
|
12
12
|
|
|
13
13
|
const flash = useOnce(() => async(status: CopyStatus) => {
|
|
14
|
-
|
|
14
|
+
$status(status)
|
|
15
15
|
await reset()
|
|
16
16
|
})
|
|
17
17
|
|
|
@@ -5,15 +5,15 @@ export class DrawerControl {
|
|
|
5
5
|
$open = signal(false)
|
|
6
6
|
|
|
7
7
|
constructor(startOpen = false) {
|
|
8
|
-
if (startOpen) this.$open
|
|
8
|
+
if (startOpen) this.$open(true)
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
get isOpen() {
|
|
12
|
-
return this.$open
|
|
12
|
+
return this.$open()
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
async setOpen(value: boolean) {
|
|
16
|
-
return this.$open
|
|
16
|
+
return this.$open(value)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
open = async() => {
|
package/s/views/tabs/control.ts
CHANGED
package/s/views/tabs/view.ts
CHANGED
|
@@ -20,14 +20,14 @@ export const ShinyTabs = shadow((options: {
|
|
|
20
20
|
const $tabs = useSignal<HTMLElement[]>([])
|
|
21
21
|
const $panels = useSignal<HTMLElement[]>([])
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function tabchange(event: Event) {
|
|
24
24
|
const slot = event.currentTarget! as HTMLSlotElement
|
|
25
|
-
|
|
25
|
+
$tabs(slot.assignedElements() as HTMLElement[])
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
function panelchange(event: Event) {
|
|
29
29
|
const slot = event.currentTarget! as HTMLSlotElement
|
|
30
|
-
|
|
30
|
+
$panels(slot.assignedElements() as HTMLElement[])
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
attrs.index = control.$index()
|