@e280/sly 0.3.0-7 → 0.3.0-8

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.
Files changed (105) hide show
  1. package/README.md +19 -1
  2. package/package.json +19 -25
  3. package/s/demo/demo.bundle.ts +4 -0
  4. package/s/demo/views/demo.ts +3 -0
  5. package/s/demo/views/loaders.ts +2 -2
  6. package/s/demo/views/time-light.ts +19 -0
  7. package/s/demo/views/time-shadow.ts +22 -0
  8. package/s/index.ts +2 -2
  9. package/s/{loaders → loader}/index.barrel.ts +0 -1
  10. package/s/{loaders → loader}/index.ts +0 -1
  11. package/s/{loaders → loader}/types.ts +1 -1
  12. package/s/view/elements/light.ts +14 -0
  13. package/s/view/elements/shadow.ts +52 -0
  14. package/s/view/hooks/use-op.ts +1 -1
  15. package/s/view/index.ts +3 -0
  16. package/x/demo/demo.bundle.js +3 -0
  17. package/x/demo/demo.bundle.js.map +1 -1
  18. package/x/demo/demo.bundle.min.js +22 -15
  19. package/x/demo/demo.bundle.min.js.map +4 -4
  20. package/x/demo/views/demo.js +3 -0
  21. package/x/demo/views/demo.js.map +1 -1
  22. package/x/demo/views/loaders.js +2 -2
  23. package/x/demo/views/loaders.js.map +1 -1
  24. package/x/demo/views/time-light.d.ts +359 -0
  25. package/x/demo/views/time-light.js +16 -0
  26. package/x/demo/views/time-light.js.map +1 -0
  27. package/x/demo/views/time-shadow.d.ts +365 -0
  28. package/x/demo/views/time-shadow.js +18 -0
  29. package/x/demo/views/time-shadow.js.map +1 -0
  30. package/x/index.d.ts +2 -2
  31. package/x/index.html +2 -2
  32. package/x/index.js +2 -2
  33. package/x/index.js.map +1 -1
  34. package/x/{loaders → loader}/index.barrel.d.ts +0 -1
  35. package/x/loader/index.barrel.js.map +1 -0
  36. package/x/{loaders → loader}/index.d.ts +0 -1
  37. package/x/loader/index.js.map +1 -0
  38. package/x/loader/make.js.map +1 -0
  39. package/x/loader/mock.js.map +1 -0
  40. package/x/loader/parts/anims.js.map +1 -0
  41. package/x/loader/parts/ascii-anim.js.map +1 -0
  42. package/x/loader/parts/error-display.js.map +1 -0
  43. package/x/{loaders → loader}/types.d.ts +1 -1
  44. package/x/{loaders → loader}/types.js.map +1 -1
  45. package/x/op/index.js.map +1 -0
  46. package/x/op/op.js.map +1 -0
  47. package/x/op/podium.js.map +1 -0
  48. package/x/{ops → op}/types.js.map +1 -1
  49. package/x/{tests.test.js → test.js} +1 -1
  50. package/x/test.js.map +1 -0
  51. package/x/view/elements/light.d.ts +357 -0
  52. package/x/view/elements/light.js +10 -0
  53. package/x/view/elements/light.js.map +1 -0
  54. package/x/view/elements/shadow.d.ts +366 -0
  55. package/x/view/elements/shadow.js +42 -0
  56. package/x/view/elements/shadow.js.map +1 -0
  57. package/x/view/hooks/use-op.d.ts +1 -1
  58. package/x/view/hooks/use-op.js +1 -1
  59. package/x/view/hooks/use-op.js.map +1 -1
  60. package/x/view/index.d.ts +2 -0
  61. package/x/view/index.js +2 -0
  62. package/x/view/index.js.map +1 -1
  63. package/x/loaders/index.barrel.js.map +0 -1
  64. package/x/loaders/index.js.map +0 -1
  65. package/x/loaders/make.js.map +0 -1
  66. package/x/loaders/mock.js.map +0 -1
  67. package/x/loaders/parts/anims.js.map +0 -1
  68. package/x/loaders/parts/ascii-anim.js.map +0 -1
  69. package/x/loaders/parts/error-display.js.map +0 -1
  70. package/x/ops/index.js.map +0 -1
  71. package/x/ops/op.js.map +0 -1
  72. package/x/ops/podium.js.map +0 -1
  73. package/x/tests.test.js.map +0 -1
  74. /package/s/{loaders → loader}/make.ts +0 -0
  75. /package/s/{loaders → loader}/mock.ts +0 -0
  76. /package/s/{loaders → loader}/parts/anims.ts +0 -0
  77. /package/s/{loaders → loader}/parts/ascii-anim.ts +0 -0
  78. /package/s/{loaders → loader}/parts/error-display.ts +0 -0
  79. /package/s/{ops → op}/index.ts +0 -0
  80. /package/s/{ops → op}/op.ts +0 -0
  81. /package/s/{ops → op}/podium.ts +0 -0
  82. /package/s/{ops → op}/types.ts +0 -0
  83. /package/s/{tests.test.ts → test.ts} +0 -0
  84. /package/x/{loaders → loader}/index.barrel.js +0 -0
  85. /package/x/{loaders → loader}/index.js +0 -0
  86. /package/x/{loaders → loader}/make.d.ts +0 -0
  87. /package/x/{loaders → loader}/make.js +0 -0
  88. /package/x/{loaders → loader}/mock.d.ts +0 -0
  89. /package/x/{loaders → loader}/mock.js +0 -0
  90. /package/x/{loaders → loader}/parts/anims.d.ts +0 -0
  91. /package/x/{loaders → loader}/parts/anims.js +0 -0
  92. /package/x/{loaders → loader}/parts/ascii-anim.d.ts +0 -0
  93. /package/x/{loaders → loader}/parts/ascii-anim.js +0 -0
  94. /package/x/{loaders → loader}/parts/error-display.d.ts +0 -0
  95. /package/x/{loaders → loader}/parts/error-display.js +0 -0
  96. /package/x/{loaders → loader}/types.js +0 -0
  97. /package/x/{ops → op}/index.d.ts +0 -0
  98. /package/x/{ops → op}/index.js +0 -0
  99. /package/x/{ops → op}/op.d.ts +0 -0
  100. /package/x/{ops → op}/op.js +0 -0
  101. /package/x/{ops → op}/podium.d.ts +0 -0
  102. /package/x/{ops → op}/podium.js +0 -0
  103. /package/x/{ops → op}/types.d.ts +0 -0
  104. /package/x/{ops → op}/types.js +0 -0
  105. /package/x/{tests.test.d.ts → test.d.ts} +0 -0
@@ -17,6 +17,9 @@ export const Demo = shadow(() => {
17
17
  })}
18
18
  </p>
19
19
 
20
+ <time-shadow></time-shadow>
21
+ <time-light></time-light>
22
+
20
23
  ${LoadersView()}
21
24
  `;
22
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"demo.js","sourceRoot":"","sources":["../../../s/demo/views/demo.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAA;AAC7B,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAA;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAC,aAAa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,CAAC;QACZ,KAAK,EAAE,EAAC,UAAU,EAAE,GAAG,EAAC;QACxB,QAAQ,EAAE,IAAI,CAAA,cAAc;KAC5B,CAAC;;;;;;IAMD,WAAW,EAAE;EACf,CAAA;AACF,CAAC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;CAOjB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { css, html } from "lit";
2
- import { Op } from "../../ops/op.js";
2
+ import { Op } from "../../op/op.js";
3
3
  import { shadow } from "../../view/shadow.js";
4
- import { loaders } from "../../loaders/index.js";
4
+ import { loaders } from "../../loader/index.js";
5
5
  import { cssReset, useName, useOnce, useStyles } from "../../view/index.js";
6
6
  export const LoadersView = shadow(() => {
7
7
  useName("loaders");
@@ -1 +1 @@
1
- {"version":3,"file":"loaders.js","sourceRoot":"","sources":["../../../s/demo/views/loaders.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAA;AAC7B,OAAO,EAAC,EAAE,EAAC,MAAM,iBAAiB,CAAA;AAClC,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAA;AAEzE,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,EAAE;IACtC,OAAO,CAAC,SAAS,CAAC,CAAA;IAClB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAE3B,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAA;IAEtC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAC5B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC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AG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,GAAG;QACH,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;KAC1B,CAAC,CAAC,CACH,CAAA;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,EAAC,GAAG,EAAE,MAAM,EAAC,EAAE,EAAE,CAAC,IAAI,CAAA;oBACvB,GAAG;WACZ,GAAG;WACH,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC;;EAE/B,CAAC,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCjB,CAAA"}
@@ -0,0 +1,359 @@
1
+ declare const TimeLight_base: {
2
+ new (): {
3
+ connectedCallback(): void;
4
+ disconnectedCallback(): void;
5
+ accessKey: string;
6
+ readonly accessKeyLabel: string;
7
+ autocapitalize: string;
8
+ autocorrect: boolean;
9
+ dir: string;
10
+ draggable: boolean;
11
+ hidden: boolean;
12
+ inert: boolean;
13
+ innerText: string;
14
+ lang: string;
15
+ readonly offsetHeight: number;
16
+ readonly offsetLeft: number;
17
+ readonly offsetParent: Element | null;
18
+ readonly offsetTop: number;
19
+ readonly offsetWidth: number;
20
+ outerText: string;
21
+ popover: string | null;
22
+ spellcheck: boolean;
23
+ title: string;
24
+ translate: boolean;
25
+ writingSuggestions: string;
26
+ attachInternals(): ElementInternals;
27
+ click(): void;
28
+ hidePopover(): void;
29
+ showPopover(): void;
30
+ togglePopover(options?: boolean): boolean;
31
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
32
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
33
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
34
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
35
+ readonly attributes: NamedNodeMap;
36
+ get classList(): DOMTokenList;
37
+ set classList(value: string);
38
+ className: string;
39
+ readonly clientHeight: number;
40
+ readonly clientLeft: number;
41
+ readonly clientTop: number;
42
+ readonly clientWidth: number;
43
+ readonly currentCSSZoom: number;
44
+ id: string;
45
+ innerHTML: string;
46
+ readonly localName: string;
47
+ readonly namespaceURI: string | null;
48
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
49
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
50
+ outerHTML: string;
51
+ readonly ownerDocument: Document;
52
+ get part(): DOMTokenList;
53
+ set part(value: string);
54
+ readonly prefix: string | null;
55
+ readonly scrollHeight: number;
56
+ scrollLeft: number;
57
+ scrollTop: number;
58
+ readonly scrollWidth: number;
59
+ readonly shadowRoot: ShadowRoot | null;
60
+ slot: string;
61
+ readonly tagName: string;
62
+ attachShadow(init: ShadowRootInit): ShadowRoot;
63
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
64
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
65
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
66
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
67
+ closest<E extends Element = Element>(selectors: string): E | null;
68
+ computedStyleMap(): StylePropertyMapReadOnly;
69
+ getAttribute(qualifiedName: string): string | null;
70
+ getAttributeNS(namespace: string | null, localName: string): string | null;
71
+ getAttributeNames(): string[];
72
+ getAttributeNode(qualifiedName: string): Attr | null;
73
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
74
+ getBoundingClientRect(): DOMRect;
75
+ getClientRects(): DOMRectList;
76
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
77
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
78
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
79
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
80
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
81
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
82
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
83
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
84
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
85
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
86
+ getHTML(options?: GetHTMLOptions): string;
87
+ hasAttribute(qualifiedName: string): boolean;
88
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
89
+ hasAttributes(): boolean;
90
+ hasPointerCapture(pointerId: number): boolean;
91
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
92
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
93
+ insertAdjacentText(where: InsertPosition, data: string): void;
94
+ matches(selectors: string): boolean;
95
+ releasePointerCapture(pointerId: number): void;
96
+ removeAttribute(qualifiedName: string): void;
97
+ removeAttributeNS(namespace: string | null, localName: string): void;
98
+ removeAttributeNode(attr: Attr): Attr;
99
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
100
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
101
+ scroll(options?: ScrollToOptions): void;
102
+ scroll(x: number, y: number): void;
103
+ scrollBy(options?: ScrollToOptions): void;
104
+ scrollBy(x: number, y: number): void;
105
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
106
+ scrollTo(options?: ScrollToOptions): void;
107
+ scrollTo(x: number, y: number): void;
108
+ setAttribute(qualifiedName: string, value: string): void;
109
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
110
+ setAttributeNode(attr: Attr): Attr | null;
111
+ setAttributeNodeNS(attr: Attr): Attr | null;
112
+ setHTMLUnsafe(html: string): void;
113
+ setPointerCapture(pointerId: number): void;
114
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
115
+ webkitMatchesSelector(selectors: string): boolean;
116
+ get textContent(): string;
117
+ set textContent(value: string | null);
118
+ readonly baseURI: string;
119
+ readonly childNodes: NodeListOf<ChildNode>;
120
+ readonly firstChild: ChildNode | null;
121
+ readonly isConnected: boolean;
122
+ readonly lastChild: ChildNode | null;
123
+ readonly nextSibling: ChildNode | null;
124
+ readonly nodeName: string;
125
+ readonly nodeType: number;
126
+ nodeValue: string | null;
127
+ readonly parentElement: HTMLElement | null;
128
+ readonly parentNode: ParentNode | null;
129
+ readonly previousSibling: ChildNode | null;
130
+ appendChild<T extends Node>(node: T): T;
131
+ cloneNode(subtree?: boolean): Node;
132
+ compareDocumentPosition(other: Node): number;
133
+ contains(other: Node | null): boolean;
134
+ getRootNode(options?: GetRootNodeOptions): Node;
135
+ hasChildNodes(): boolean;
136
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
137
+ isDefaultNamespace(namespace: string | null): boolean;
138
+ isEqualNode(otherNode: Node | null): boolean;
139
+ isSameNode(otherNode: Node | null): boolean;
140
+ lookupNamespaceURI(prefix: string | null): string | null;
141
+ lookupPrefix(namespace: string | null): string | null;
142
+ normalize(): void;
143
+ removeChild<T extends Node>(child: T): T;
144
+ replaceChild<T extends Node>(node: Node, child: T): T;
145
+ readonly ELEMENT_NODE: 1;
146
+ readonly ATTRIBUTE_NODE: 2;
147
+ readonly TEXT_NODE: 3;
148
+ readonly CDATA_SECTION_NODE: 4;
149
+ readonly ENTITY_REFERENCE_NODE: 5;
150
+ readonly ENTITY_NODE: 6;
151
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
152
+ readonly COMMENT_NODE: 8;
153
+ readonly DOCUMENT_NODE: 9;
154
+ readonly DOCUMENT_TYPE_NODE: 10;
155
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
156
+ readonly NOTATION_NODE: 12;
157
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
158
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
159
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
160
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
161
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
162
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
163
+ dispatchEvent(event: Event): boolean;
164
+ ariaActiveDescendantElement: Element | null;
165
+ ariaAtomic: string | null;
166
+ ariaAutoComplete: string | null;
167
+ ariaBrailleLabel: string | null;
168
+ ariaBrailleRoleDescription: string | null;
169
+ ariaBusy: string | null;
170
+ ariaChecked: string | null;
171
+ ariaColCount: string | null;
172
+ ariaColIndex: string | null;
173
+ ariaColIndexText: string | null;
174
+ ariaColSpan: string | null;
175
+ ariaControlsElements: ReadonlyArray<Element> | null;
176
+ ariaCurrent: string | null;
177
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
178
+ ariaDescription: string | null;
179
+ ariaDetailsElements: ReadonlyArray<Element> | null;
180
+ ariaDisabled: string | null;
181
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
182
+ ariaExpanded: string | null;
183
+ ariaFlowToElements: ReadonlyArray<Element> | null;
184
+ ariaHasPopup: string | null;
185
+ ariaHidden: string | null;
186
+ ariaInvalid: string | null;
187
+ ariaKeyShortcuts: string | null;
188
+ ariaLabel: string | null;
189
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
190
+ ariaLevel: string | null;
191
+ ariaLive: string | null;
192
+ ariaModal: string | null;
193
+ ariaMultiLine: string | null;
194
+ ariaMultiSelectable: string | null;
195
+ ariaOrientation: string | null;
196
+ ariaOwnsElements: ReadonlyArray<Element> | null;
197
+ ariaPlaceholder: string | null;
198
+ ariaPosInSet: string | null;
199
+ ariaPressed: string | null;
200
+ ariaReadOnly: string | null;
201
+ ariaRelevant: string | null;
202
+ ariaRequired: string | null;
203
+ ariaRoleDescription: string | null;
204
+ ariaRowCount: string | null;
205
+ ariaRowIndex: string | null;
206
+ ariaRowIndexText: string | null;
207
+ ariaRowSpan: string | null;
208
+ ariaSelected: string | null;
209
+ ariaSetSize: string | null;
210
+ ariaSort: string | null;
211
+ ariaValueMax: string | null;
212
+ ariaValueMin: string | null;
213
+ ariaValueNow: string | null;
214
+ ariaValueText: string | null;
215
+ role: string | null;
216
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
217
+ getAnimations(options?: GetAnimationsOptions): Animation[];
218
+ after(...nodes: (Node | string)[]): void;
219
+ before(...nodes: (Node | string)[]): void;
220
+ remove(): void;
221
+ replaceWith(...nodes: (Node | string)[]): void;
222
+ readonly nextElementSibling: Element | null;
223
+ readonly previousElementSibling: Element | null;
224
+ readonly childElementCount: number;
225
+ readonly children: HTMLCollection;
226
+ readonly firstElementChild: Element | null;
227
+ readonly lastElementChild: Element | null;
228
+ append(...nodes: (Node | string)[]): void;
229
+ prepend(...nodes: (Node | string)[]): void;
230
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
231
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
232
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
233
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
234
+ querySelector<E extends Element = Element>(selectors: string): E | null;
235
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
236
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
237
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
238
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
239
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
240
+ replaceChildren(...nodes: (Node | string)[]): void;
241
+ readonly assignedSlot: HTMLSlotElement | null;
242
+ readonly attributeStyleMap: StylePropertyMap;
243
+ get style(): CSSStyleDeclaration;
244
+ set style(cssText: string);
245
+ contentEditable: string;
246
+ enterKeyHint: string;
247
+ inputMode: string;
248
+ readonly isContentEditable: boolean;
249
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
250
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
251
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
252
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
253
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
254
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
255
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
256
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
258
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
259
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
261
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
264
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
266
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
268
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
269
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
271
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
272
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
273
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
274
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
275
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
276
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
277
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
278
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
279
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ onerror: OnErrorEventHandler;
283
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
284
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
285
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
286
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
289
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
290
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
291
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
293
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
296
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
298
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
299
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
300
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
301
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
302
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
303
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
304
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
308
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
309
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
310
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
311
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
312
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
313
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
314
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
316
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
317
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
320
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
323
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
329
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
331
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
334
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
335
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
336
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
337
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
338
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
339
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
340
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
341
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
342
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
347
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
349
+ autofocus: boolean;
350
+ readonly dataset: DOMStringMap;
351
+ nonce?: string;
352
+ tabIndex: number;
353
+ blur(): void;
354
+ focus(options?: FocusOptions): void;
355
+ };
356
+ };
357
+ export declare class TimeLight extends TimeLight_base {
358
+ }
359
+ export {};
@@ -0,0 +1,16 @@
1
+ import { html } from "lit";
2
+ import { cycle, nap } from "@e280/stz";
3
+ import { useMount, useSignal } from "../../view/index.js";
4
+ import { lightElement } from "../../view/elements/light.js";
5
+ export class TimeLight extends lightElement(() => {
6
+ const $time = useSignal(Date.now());
7
+ useMount(() => cycle(async () => {
8
+ await nap(100);
9
+ $time(Date.now());
10
+ }));
11
+ return html `
12
+ <p>${$time()}</p>
13
+ `;
14
+ }) {
15
+ }
16
+ //# sourceMappingURL=time-light.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-light.js","sourceRoot":"","sources":["../../../s/demo/views/time-light.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,KAAK,EAAE,GAAG,EAAC,MAAM,WAAW,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAC,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAA;AAEzD,MAAM,OAAO,SAAU,SAAQ,YAAY,CAAC,GAAG,EAAE;IAChD,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAA;IAEnC,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,IAAG,EAAE;QAC9B,MAAM,GAAG,CAAC,GAAG,CAAC,CAAA;QACd,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAA;IAClB,CAAC,CAAC,CAAC,CAAA;IAEH,OAAO,IAAI,CAAA;OACL,KAAK,EAAE;EACZ,CAAA;AACF,CAAC,CAAC;CAAG"}