@benev/tact 0.1.0-4 → 0.1.0-5
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 -3
- package/package.json +4 -4
- package/s/core/bindings/parts/defaults.ts +1 -0
- package/s/core/bindings/parts/lens-algo.ts +5 -1
- package/s/core/bindings/parts/lookup-proxies.ts +17 -0
- package/s/core/bindings/types.ts +1 -0
- package/s/core/devices/standard/gamepad.ts +1 -1
- package/s/core/devices/standard/pointer.ts +4 -0
- package/s/deck/components/components.ts +22 -0
- package/s/deck/components/deck-bindings/component.ts +99 -0
- package/s/{demo/ui/tact-demo → deck/components/deck-bindings}/style.css.ts +3 -1
- package/s/deck/components/deck-overlay/component.ts +51 -0
- package/s/deck/{views → components}/deck-overlay/style.css.ts +0 -2
- package/s/deck/components/framework.ts +17 -0
- package/s/deck/deck.ts +12 -7
- package/s/deck/index.ts +2 -2
- package/s/deck/parts/db.ts +1 -1
- package/s/demo/main.bundle.ts +7 -2
- package/s/demo/ui/theater/styles.css.ts +1 -0
- package/s/demo/ui/theater/view.ts +51 -44
- package/s/demo/ui/theater/virtual/view.ts +1 -1
- package/s/demo/ui/utils/loader.ts +2 -2
- package/s/index.html.ts +1 -1
- package/s/nubs/vpad/styles.css.ts +4 -4
- package/s/utils/types.ts +19 -0
- package/x/core/bindings/parts/defaults.js +1 -0
- package/x/core/bindings/parts/defaults.js.map +1 -1
- package/x/core/bindings/parts/lens-algo.js +5 -1
- package/x/core/bindings/parts/lens-algo.js.map +1 -1
- package/x/core/bindings/parts/lookup-proxies.d.ts +1 -0
- package/x/core/bindings/parts/lookup-proxies.js +19 -0
- package/x/core/bindings/parts/lookup-proxies.js.map +1 -0
- package/x/core/bindings/types.d.ts +1 -0
- package/x/core/devices/standard/gamepad.js +1 -1
- package/x/core/devices/standard/gamepad.js.map +1 -1
- package/x/core/devices/standard/pointer.js +4 -0
- package/x/core/devices/standard/pointer.js.map +1 -1
- package/x/deck/components/components.d.ts +14 -0
- package/x/deck/components/components.js +9 -0
- package/x/deck/components/components.js.map +1 -0
- package/x/deck/components/deck-bindings/component.d.ts +6 -0
- package/x/deck/components/deck-bindings/component.js +83 -0
- package/x/deck/components/deck-bindings/component.js.map +1 -0
- package/x/deck/components/deck-bindings/style.css.js +5 -0
- package/x/deck/components/deck-bindings/style.css.js.map +1 -0
- package/x/deck/components/deck-overlay/component.d.ts +6 -0
- package/x/deck/components/deck-overlay/component.js +44 -0
- package/x/deck/components/deck-overlay/component.js.map +1 -0
- package/x/deck/components/deck-overlay/style.css.js.map +1 -0
- package/x/deck/components/framework.d.ts +7 -0
- package/x/deck/components/framework.js +13 -0
- package/x/deck/components/framework.js.map +1 -0
- package/x/deck/deck.d.ts +8 -6
- package/x/deck/deck.js +12 -7
- package/x/deck/deck.js.map +1 -1
- package/x/deck/index.d.ts +2 -2
- package/x/deck/index.js +2 -2
- package/x/deck/index.js.map +1 -1
- package/x/deck/parts/db.d.ts +1 -1
- package/x/deck/parts/db.js +1 -1
- package/x/deck/parts/db.js.map +1 -1
- package/x/demo/main.bundle.js +8 -2
- package/x/demo/main.bundle.js.map +1 -1
- package/x/demo/main.bundle.min.js +90 -45
- package/x/demo/main.bundle.min.js.map +4 -4
- package/x/demo/ui/theater/styles.css.js +1 -0
- package/x/demo/ui/theater/styles.css.js.map +1 -1
- package/x/demo/ui/theater/view.d.ts +367 -1
- package/x/demo/ui/theater/view.js +25 -17
- package/x/demo/ui/theater/view.js.map +1 -1
- package/x/demo/ui/theater/virtual/view.js +1 -1
- package/x/demo/ui/theater/virtual/view.js.map +1 -1
- package/x/demo/ui/utils/loader.d.ts +2 -1
- package/x/demo/ui/utils/loader.js +2 -2
- package/x/demo/ui/utils/loader.js.map +1 -1
- package/x/index.html +3 -3
- package/x/index.html.js +1 -1
- package/x/nubs/vpad/styles.css.js +4 -4
- package/x/utils/types.d.ts +3 -0
- package/x/utils/types.js +3 -0
- package/x/utils/types.js.map +1 -0
- package/s/deck/views/deck-overlay/component.ts +0 -48
- package/s/deck/views/framework.ts +0 -14
- package/s/demo/ui/tact-demo/component.ts +0 -13
- package/x/deck/views/deck-overlay/component.d.ts +0 -2
- package/x/deck/views/deck-overlay/component.js +0 -40
- package/x/deck/views/deck-overlay/component.js.map +0 -1
- package/x/deck/views/deck-overlay/style.css.js.map +0 -1
- package/x/deck/views/framework.d.ts +0 -3
- package/x/deck/views/framework.js +0 -8
- package/x/deck/views/framework.js.map +0 -1
- package/x/demo/ui/tact-demo/component.d.ts +0 -4
- package/x/demo/ui/tact-demo/component.js +0 -12
- package/x/demo/ui/tact-demo/component.js.map +0 -1
- package/x/demo/ui/tact-demo/style.css.js +0 -3
- package/x/demo/ui/tact-demo/style.css.js.map +0 -1
- /package/x/deck/{views/deck-overlay → components/deck-bindings}/style.css.d.ts +0 -0
- /package/x/{demo/ui/tact-demo → deck/components/deck-overlay}/style.css.d.ts +0 -0
- /package/x/deck/{views → components}/deck-overlay/style.css.js +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
import { cssReset } from "@e280/sly";
|
|
3
|
-
import styleCss from "./style.css.js";
|
|
4
|
-
import { deckView } from "../framework.js";
|
|
5
|
-
export const DeckOverlay = deckView(deck => use => {
|
|
6
|
-
use.css(cssReset, styleCss);
|
|
7
|
-
use.attrs.string.deck = "overlay";
|
|
8
|
-
const { hub, deviceSkins, overlayVisibility: { $visible, $showLabels } } = deck;
|
|
9
|
-
function renderDevice(device) {
|
|
10
|
-
const skin = deviceSkins.get(device);
|
|
11
|
-
const style = `--color: ${skin.color};`;
|
|
12
|
-
const next = () => hub.shimmy(device, 1);
|
|
13
|
-
const previous = () => hub.shimmy(device, -1);
|
|
14
|
-
return html `
|
|
15
|
-
<div class=device style="${style}">
|
|
16
|
-
<div class="primary row">
|
|
17
|
-
<button @click="${previous}"><</button>
|
|
18
|
-
<div class=icon>${skin.icon}</div>
|
|
19
|
-
<button @click="${next}">></button>
|
|
20
|
-
</div>
|
|
21
|
-
${$showLabels() ? html `
|
|
22
|
-
<div class="secondary row">
|
|
23
|
-
<div class=label>${skin.label}</div>
|
|
24
|
-
</div>
|
|
25
|
-
` : null}
|
|
26
|
-
</div>
|
|
27
|
-
`;
|
|
28
|
-
}
|
|
29
|
-
return html `
|
|
30
|
-
<div class=portlist ?data-active="${$visible()}">
|
|
31
|
-
${hub.ports.map((port, index) => html `
|
|
32
|
-
<div class=port>
|
|
33
|
-
<header>P${index + 1}</header>
|
|
34
|
-
${port.devices.array().map(renderDevice)}
|
|
35
|
-
</div>
|
|
36
|
-
`)}
|
|
37
|
-
</div>
|
|
38
|
-
`;
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../s/deck/views/deck-overlay/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAA;AAElC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAA;AAGxC,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;IACjD,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC3B,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,SAAS,CAAA;IAEjC,MAAM,EAAC,GAAG,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAC,QAAQ,EAAE,WAAW,EAAC,EAAC,GAAG,IAAI,CAAA;IAE3E,SAAS,YAAY,CAAC,MAAc;QACnC,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACpC,MAAM,KAAK,GAAG,YAAY,IAAI,CAAC,KAAK,GAAG,CAAA;QACvC,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;QACxC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAA;8BACiB,KAAK;;uBAEZ,QAAQ;uBACR,IAAI,CAAC,IAAI;uBACT,IAAI;;MAErB,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;;yBAED,IAAI,CAAC,KAAK;;KAE9B,CAAC,CAAC,CAAC,IAAI;;GAET,CAAA;IACF,CAAC;IAED,OAAO,IAAI,CAAA;sCAC0B,QAAQ,EAAE;KAC3C,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;gBAExB,KAAK,GAAG,CAAC;OAClB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC;;IAEzC,CAAC;;EAEH,CAAA;AAEF,CAAC,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../../s/deck/views/deck-overlay/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GjB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"framework.js","sourceRoot":"","sources":["../../../s/deck/views/framework.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,IAAI,EAAC,MAAM,WAAW,CAAA;AAG5C,MAAM,UAAU,QAAQ,CACtB,EAA8C;IAG/C,OAAO,CAAC,IAAe,EAAE,EAAE;QAC1B,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;IACnC,CAAC,CAAA;AACF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { cssReset, view } from "@e280/sly";
|
|
2
|
-
import styleCss from "./style.css.js";
|
|
3
|
-
import { Game } from "../../game/game.js";
|
|
4
|
-
import { loader } from "../utils/loader.js";
|
|
5
|
-
import { Theater } from "../theater/view.js";
|
|
6
|
-
export class TactDemo extends view.component(use => {
|
|
7
|
-
use.css(cssReset, styleCss);
|
|
8
|
-
const opGame = use.op.load(async () => Game.load());
|
|
9
|
-
return loader(opGame, game => Theater(game));
|
|
10
|
-
}) {
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../s/demo/ui/tact-demo/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,WAAW,CAAA;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,IAAI,EAAC,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAA;AAE1C,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IAClD,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,IAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAClD,OAAO,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AAC7C,CAAC,CAAC;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../../s/demo/ui/tact-demo/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA,EAAE,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|