@e280/sly 0.0.0-2 → 0.0.0-4
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 +18 -10
- package/package.json +2 -2
- package/s/features/dom/dollar.ts +13 -9
- package/s/features/views/types.ts +9 -2
- package/s/features/views/use.ts +18 -8
- package/s/features/views/view.ts +3 -3
- package/s/index.html.ts +4 -4
- package/x/demo/demo.bundle.min.js +9 -9
- package/x/demo/demo.bundle.min.js.map +4 -4
- package/x/features/dom/dollar.d.ts +6 -5
- package/x/features/dom/dollar.js +8 -7
- package/x/features/dom/dollar.js.map +1 -1
- package/x/features/loady/ascii-loader.d.ts +3 -3
- package/x/features/loady/parts/ascii-anim.d.ts +1 -8
- package/x/features/loady/parts/ascii-loader.d.ts +1 -1
- package/x/features/loady/parts/error-display.d.ts +1 -8
- package/x/features/views/types.d.ts +9 -2
- package/x/features/views/use.d.ts +4 -3
- package/x/features/views/use.js +16 -7
- package/x/features/views/use.js.map +1 -1
- package/x/features/views/view.d.ts +2 -10
- package/x/features/views/view.js +1 -1
- package/x/features/views/view.js.map +1 -1
- package/x/index.html +6 -6
- package/x/index.html.js +4 -4
- package/x/index.html.js.map +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
declare
|
|
1
|
+
import { Content } from "../views/types.js";
|
|
2
|
+
export type Container = HTMLElement | ShadowRoot | DocumentFragment;
|
|
3
|
+
export type Queryable = HTMLElement | ShadowRoot | Element | Document | DocumentFragment;
|
|
4
|
+
export declare function $<E extends HTMLElement = HTMLElement>(selector: string, context?: Queryable): E;
|
|
5
|
+
export declare namespace $ {
|
|
5
6
|
var maybe: <E extends HTMLElement = HTMLElement>(selector: string, context?: Queryable) => E | null;
|
|
6
7
|
var all: <E extends HTMLElement = HTMLElement>(selector: string, context?: Queryable) => E[];
|
|
8
|
+
var render: (container: Container, ...content: Content[]) => import("lit-html").RootPart;
|
|
7
9
|
}
|
|
8
|
-
export {};
|
package/x/features/dom/dollar.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
return Array.from(context.querySelectorAll(selector));
|
|
4
|
-
}
|
|
5
|
-
function one(selector, context = document) {
|
|
1
|
+
import { render } from "lit";
|
|
2
|
+
export function $(selector, context = document) {
|
|
6
3
|
const e = context.querySelector(selector);
|
|
7
4
|
if (!e)
|
|
8
5
|
throw new Error(`$1 ${selector} not found`);
|
|
9
6
|
return e;
|
|
10
7
|
}
|
|
11
|
-
|
|
8
|
+
function all(selector, context = document) {
|
|
9
|
+
return Array.from(context.querySelectorAll(selector));
|
|
10
|
+
}
|
|
11
|
+
$.maybe = (selector, context = document) => {
|
|
12
12
|
return context.querySelector(selector);
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
$.all = all;
|
|
15
|
+
$.render = (container, ...content) => render(content, container);
|
|
15
16
|
//# sourceMappingURL=dollar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dollar.js","sourceRoot":"","sources":["../../../s/features/dom/dollar.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"dollar.js","sourceRoot":"","sources":["../../../s/features/dom/dollar.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAA;AAM1B,MAAM,UAAU,CAAC,CAAsC,QAAgB,EAAE,UAAqB,QAAQ;IACrG,MAAM,CAAC,GAAG,OAAO,CAAC,aAAa,CAAI,QAAQ,CAAC,CAAA;IAC5C,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,MAAM,QAAQ,YAAY,CAAC,CAAA;IACnD,OAAO,CAAC,CAAA;AACT,CAAC;AAED,SAAS,GAAG,CAAsC,QAAgB,EAAE,UAAqB,QAAQ;IAChG,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAI,QAAQ,CAAC,CAAC,CAAA;AACzD,CAAC;AAED,CAAC,CAAC,KAAK,GAAG,CAAsC,QAAgB,EAAE,UAAqB,QAAQ,EAAE,EAAE;IAClG,OAAO,OAAO,CAAC,aAAa,CAAI,QAAQ,CAAC,CAAA;AAC1C,CAAC,CAAA;AAED,CAAC,CAAC,GAAG,GAAG,GAAG,CAAA;AAEX,CAAC,CAAC,MAAM,GAAG,CAAC,SAAoB,EAAE,GAAG,OAAkB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const loady: {
|
|
2
|
-
cylon: <V>(op: import("../op/op.js").Op<V>, fn: (value: V) => import("../views/types.js").Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | null | undefined;
|
|
3
|
-
dots: <V>(op: import("../op/op.js").Op<V>, fn: (value: V) => import("../views/types.js").Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | null | undefined;
|
|
4
|
-
binary: <V>(op: import("../op/op.js").Op<V>, fn: (value: V) => import("../views/types.js").Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | null | undefined;
|
|
2
|
+
cylon: <V>(op: import("../op/op.js").Op<V>, fn: (value: V) => import("../views/types.js").Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | import("../views/types.js").Content[] | null | undefined;
|
|
3
|
+
dots: <V>(op: import("../op/op.js").Op<V>, fn: (value: V) => import("../views/types.js").Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | import("../views/types.js").Content[] | null | undefined;
|
|
4
|
+
binary: <V>(op: import("../op/op.js").Op<V>, fn: (value: V) => import("../views/types.js").Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | import("../views/types.js").Content[] | null | undefined;
|
|
5
5
|
};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export declare const AsciiAnim:
|
|
2
|
-
(hz: number, anim: string[]): import("lit-html/directive.js").DirectiveResult<any>;
|
|
3
|
-
props: /*elided*/ any;
|
|
4
|
-
with(w2: Partial<import("../../views/types.js").ViewWith>): /*elided*/ any;
|
|
5
|
-
children(children: import("../../views/types.js").Content): /*elided*/ any;
|
|
6
|
-
attrs(attrs: Record<string, import("../../views/types.js").AttrValue>): /*elided*/ any;
|
|
7
|
-
attr(name: string, value: import("../../views/types.js").AttrValue): /*elided*/ any;
|
|
8
|
-
};
|
|
1
|
+
export declare const AsciiAnim: import("../../views/types.js").View<[hz: number, anim: string[]]>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Op } from "../../op/op.js";
|
|
2
2
|
import { Content } from "../../views/types.js";
|
|
3
|
-
export declare function makeAsciiLoader(hz: number, anim: string[]): <V>(op: Op<V>, fn: (value: V) => Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | null | undefined;
|
|
3
|
+
export declare function makeAsciiLoader(hz: number, anim: string[]): <V>(op: Op<V>, fn: (value: V) => Content) => string | void | HTMLElement | import("lit-html").TemplateResult | import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass> | Content[] | null | undefined;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export declare const ErrorDisplay:
|
|
2
|
-
(error: any): import("lit-html/directive.js").DirectiveResult<any>;
|
|
3
|
-
props: /*elided*/ any;
|
|
4
|
-
with(w2: Partial<import("../../views/types.js").ViewWith>): /*elided*/ any;
|
|
5
|
-
children(children: import("../../views/types.js").Content): /*elided*/ any;
|
|
6
|
-
attrs(attrs: Record<string, import("../../views/types.js").AttrValue>): /*elided*/ any;
|
|
7
|
-
attr(name: string, value: import("../../views/types.js").AttrValue): /*elided*/ any;
|
|
8
|
-
};
|
|
1
|
+
export declare const ErrorDisplay: import("../../views/types.js").View<[error: any]>;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { DirectiveResult } from "lit/directive.js";
|
|
2
2
|
import { CSSResultGroup, TemplateResult } from "lit";
|
|
3
3
|
import { Use } from "./use.js";
|
|
4
|
-
export type Content = TemplateResult | DirectiveResult | HTMLElement | string | null | undefined | void;
|
|
4
|
+
export type Content = TemplateResult | DirectiveResult | HTMLElement | string | null | undefined | void | Content[];
|
|
5
5
|
export type AttrValue = string | boolean | number | undefined | null | void;
|
|
6
6
|
export type ViewFn<Props extends any[]> = (use: Use) => (...props: Props) => Content;
|
|
7
|
-
export type
|
|
7
|
+
export type BasicView<Props extends any[]> = (...props: Props) => DirectiveResult<any>;
|
|
8
|
+
export type View<Props extends any[]> = BasicView<Props> & {
|
|
9
|
+
props: View<Props>;
|
|
10
|
+
with: (w: Partial<ViewWith>) => View<Props>;
|
|
11
|
+
children: (...children: Content[]) => View<Props>;
|
|
12
|
+
attrs: (attrs: Record<string, AttrValue>) => View<Props>;
|
|
13
|
+
attr: (name: string, value: AttrValue) => View<Props>;
|
|
14
|
+
};
|
|
8
15
|
export type ViewSettings = ShadowRootInit & {
|
|
9
16
|
tag?: string;
|
|
10
17
|
name?: string;
|
|
@@ -13,13 +13,14 @@ export declare class Use {
|
|
|
13
13
|
constructor(element: HTMLElement, shadow: ShadowRoot);
|
|
14
14
|
get renderCount(): number;
|
|
15
15
|
get rendered(): Promise<void>;
|
|
16
|
-
once<V>(fn: () => V): V;
|
|
17
16
|
styles(...styles: CSSResultGroup[]): void;
|
|
18
17
|
name(name: string): void;
|
|
19
|
-
|
|
20
|
-
mount(
|
|
18
|
+
once<V>(fn: () => V): V;
|
|
19
|
+
mount(fn: () => () => void): void;
|
|
20
|
+
life<V>(fn: () => [result: V, dispose: () => void]): V;
|
|
21
21
|
op: {
|
|
22
22
|
promise: <V>(p: Promise<V>) => Op<V>;
|
|
23
23
|
fn: <V>(f: () => Promise<V>) => Op<V>;
|
|
24
24
|
};
|
|
25
|
+
signal<V>(value: V): import("@e280/strata/signals").Signal<V>;
|
|
25
26
|
}
|
package/x/features/views/use.js
CHANGED
|
@@ -39,24 +39,33 @@ export class Use {
|
|
|
39
39
|
get rendered() {
|
|
40
40
|
return this.#rendered.promise;
|
|
41
41
|
}
|
|
42
|
-
once(fn) {
|
|
43
|
-
return this.#values.guarantee(this.#position++, fn);
|
|
44
|
-
}
|
|
45
42
|
styles(...styles) {
|
|
46
43
|
this.once(() => applyStyles(this.shadow, styles));
|
|
47
44
|
}
|
|
48
45
|
name(name) {
|
|
49
46
|
this.once(() => this.element.setAttribute("view", name));
|
|
50
47
|
}
|
|
51
|
-
|
|
52
|
-
return this.
|
|
48
|
+
once(fn) {
|
|
49
|
+
return this.#values.guarantee(this.#position++, fn);
|
|
50
|
+
}
|
|
51
|
+
mount(fn) {
|
|
52
|
+
return this.once(() => this.#mounts.mount(fn));
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
life(fn) {
|
|
55
|
+
let r;
|
|
56
|
+
this.mount(() => {
|
|
57
|
+
const [result, dispose] = fn();
|
|
58
|
+
r = result;
|
|
59
|
+
return dispose;
|
|
60
|
+
});
|
|
61
|
+
return r;
|
|
56
62
|
}
|
|
57
63
|
op = {
|
|
58
64
|
promise: (p) => this.once(() => Op.promise(p)),
|
|
59
65
|
fn: (f) => this.once(() => Op.fn(f)),
|
|
60
66
|
};
|
|
67
|
+
signal(value) {
|
|
68
|
+
return this.once(() => signal(value));
|
|
69
|
+
}
|
|
61
70
|
}
|
|
62
71
|
//# sourceMappingURL=use.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.js","sourceRoot":"","sources":["../../../s/features/views/use.ts"],"names":[],"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AAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC7D,EAAE,EAAE,CAAI,CAAmB,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KACzD,CAAA;IAED,MAAM,CAAI,KAAQ;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAI,KAAK,CAAC,CAAC,CAAA;IACzC,CAAC;CACD"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AttrValue, Content, ViewFn, ViewSettings, ViewWith } from "./types.js";
|
|
1
|
+
import { View, ViewFn, ViewSettings } from "./types.js";
|
|
3
2
|
export declare const view: {
|
|
4
|
-
<Props extends any[]>(fn: ViewFn<Props>):
|
|
5
|
-
(...props: Props): DirectiveResult<any>;
|
|
6
|
-
props: /*elided*/ any;
|
|
7
|
-
with(w2: Partial<ViewWith>): /*elided*/ any;
|
|
8
|
-
children(children: Content): /*elided*/ any;
|
|
9
|
-
attrs(attrs: Record<string, AttrValue>): /*elided*/ any;
|
|
10
|
-
attr(name: string, value: AttrValue): /*elided*/ any;
|
|
11
|
-
};
|
|
3
|
+
<Props extends any[]>(fn: ViewFn<Props>): View<Props>;
|
|
12
4
|
view: /*elided*/ any;
|
|
13
5
|
settings(settings2: Partial<ViewSettings>): /*elided*/ any;
|
|
14
6
|
};
|
package/x/features/views/view.js
CHANGED
|
@@ -61,7 +61,7 @@ function setupView(settings) {
|
|
|
61
61
|
const rend = (...props) => r(w, props);
|
|
62
62
|
rend.props = rend;
|
|
63
63
|
rend.with = (w2) => setupDirective({ ...w, ...w2 });
|
|
64
|
-
rend.children = (children) => setupDirective({ ...w, children });
|
|
64
|
+
rend.children = (...children) => setupDirective({ ...w, children });
|
|
65
65
|
rend.attrs = (attrs) => setupDirective({ ...w, attrs });
|
|
66
66
|
rend.attr = (name, value) => setup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AAE,CAAC,SAAS,CAAC,EAAC,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAC,CAAC,CAAA;IAC5F,OAAO,IAAI,CAAA;AACZ,CAAC"}
|
package/x/index.html
CHANGED
|
@@ -101,15 +101,15 @@ body {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
</style>
|
|
104
|
-
<script type=module src="demo/demo.bundle.min.js?v=
|
|
104
|
+
<script type=module src="demo/demo.bundle.min.js?v=f30dd1a88dc1"></script>
|
|
105
105
|
<link rel="icon" href="assets/favicon.png?v=4dc161ed79b3"/>
|
|
106
106
|
|
|
107
|
-
<meta name="theme-color" content="#
|
|
107
|
+
<meta name="theme-color" content="#95ff7b">
|
|
108
108
|
<meta property="og:type" content="website">
|
|
109
|
-
<meta property="og:site_name" content="sly
|
|
109
|
+
<meta property="og:site_name" content="@e280/sly">
|
|
110
110
|
<meta property="og:title" content="sly">
|
|
111
|
-
<meta property="og:description" content="shadow views
|
|
112
|
-
<meta property="og:image" content="sly.e280.org/assets/favicon.png">
|
|
111
|
+
<meta property="og:description" content="mischievous shadow views">
|
|
112
|
+
<meta property="og:image" content="https://sly.e280.org/assets/favicon.png">
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
@@ -120,7 +120,7 @@ body {
|
|
|
120
120
|
|
|
121
121
|
<img class=icon alt="" src="/assets/favicon.png"/>
|
|
122
122
|
<h1>sly</h1>
|
|
123
|
-
<p class=lil>v0.0.0-
|
|
123
|
+
<p class=lil>v0.0.0-4</p>
|
|
124
124
|
<div class=demo></div>
|
|
125
125
|
<p><a href="https://github.com/e280/sly">github.com/e280/sly</a></p>
|
|
126
126
|
|
package/x/index.html.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ssg, html } from "@e280/scute";
|
|
2
2
|
const title = "sly";
|
|
3
|
-
const description = "shadow views
|
|
3
|
+
const description = "mischievous shadow views";
|
|
4
4
|
const domain = "sly.e280.org";
|
|
5
5
|
const favicon = "/assets/favicon.png";
|
|
6
6
|
export default ssg.page(import.meta.url, async (orb) => ({
|
|
@@ -10,11 +10,11 @@ export default ssg.page(import.meta.url, async (orb) => ({
|
|
|
10
10
|
favicon,
|
|
11
11
|
dark: true,
|
|
12
12
|
socialCard: {
|
|
13
|
-
themeColor: "#
|
|
13
|
+
themeColor: "#95ff7b",
|
|
14
14
|
title,
|
|
15
15
|
description,
|
|
16
|
-
siteName:
|
|
17
|
-
image: domain + favicon,
|
|
16
|
+
siteName: "@e280/sly",
|
|
17
|
+
image: "https://" + domain + favicon,
|
|
18
18
|
},
|
|
19
19
|
head: html `
|
|
20
20
|
<meta name="example" value="whatever"/>
|
package/x/index.html.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.html.js","sourceRoot":"","sources":["../s/index.html.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,aAAa,CAAA;AAErC,MAAM,KAAK,GAAG,KAAK,CAAA;AACnB,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.html.js","sourceRoot":"","sources":["../s/index.html.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,aAAa,CAAA;AAErC,MAAM,KAAK,GAAG,KAAK,CAAA;AACnB,MAAM,WAAW,GAAG,0BAA0B,CAAA;AAC9C,MAAM,MAAM,GAAG,cAAc,CAAA;AAC7B,MAAM,OAAO,GAAG,qBAAqB,CAAA;AAErC,eAAe,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAC,GAAG,EAAC,EAAE,CAAC,CAAC;IACtD,KAAK;IACL,EAAE,EAAE,yBAAyB;IAC7B,GAAG,EAAE,eAAe;IACpB,OAAO;IACP,IAAI,EAAE,IAAI;IACV,UAAU,EAAE;QACX,UAAU,EAAE,SAAS;QACrB,KAAK;QACL,WAAW;QACX,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO;KACpC;IAED,IAAI,EAAE,IAAI,CAAA;;EAET;IAED,IAAI,EAAE,IAAI,CAAA;;;kBAGO,GAAG,CAAC,cAAc,EAAE;;;EAGpC;CACD,CAAC,CAAC,CAAA"}
|