@e280/shiny 0.1.0-14 → 0.1.0-16
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 +34 -80
- package/package.json +18 -25
- package/s/{components → _archive/components}/drawer/component.ts +2 -2
- package/s/{components → _archive/components}/drawer/showcase.ts +13 -0
- package/s/_archive/demo/utils/lipsum.ts +19 -0
- package/s/{demo → _archive/demo}/views/exhibit/style.css.ts +3 -0
- package/s/_archive/demo/views/showcase/style.css.ts +53 -0
- package/s/_archive/demo/views/showcase/view.ts +54 -0
- package/s/_archive/index.html.ts +34 -0
- package/s/_archive/index.ts +19 -0
- package/s/_archive/utils/states.ts +15 -0
- package/s/demo/main.bundle.ts +16 -0
- package/s/demo/main.css +71 -0
- package/s/demo/parts/exhibit.ts +15 -0
- package/s/demo/utils/lipsum.ts +1 -1
- package/s/demo/views/codebox/style.css.ts +43 -0
- package/s/demo/views/codebox/use-prism-styles.ts +13 -0
- package/s/demo/views/codebox/view.ts +39 -0
- package/s/demo/views/showcase/style.css.ts +42 -11
- package/s/demo/views/showcase/view.ts +41 -45
- package/s/demo/views/stylebox/view.ts +21 -0
- package/s/index.html.ts +42 -29
- package/s/index.ts +1 -17
- package/s/test.ts +5 -0
- package/s/theme/parts/core.ts +34 -0
- package/s/theme/parts/reset.ts +20 -0
- package/s/theme/parts/vars.ts +41 -0
- package/s/theme/theme-string.ts +15 -0
- package/s/theme/theme.css.ts +7 -0
- package/s/views/button/showcase.ts +43 -0
- package/s/views/button/style.css.ts +110 -0
- package/s/views/button/view.ts +30 -0
- package/s/views/copy/parts/copy-status.ts +3 -0
- package/s/views/copy/parts/determine-base-status.ts +7 -0
- package/s/views/copy/parts/use-copier.ts +20 -0
- package/s/views/copy/showcase.ts +54 -0
- package/s/views/copy/style.css.ts +46 -0
- package/s/views/copy/view.ts +58 -0
- package/s/views/drawer/control.ts +31 -0
- package/s/views/drawer/showcase.ts +83 -0
- package/s/views/drawer/style.css.ts +128 -0
- package/s/views/drawer/view.ts +76 -0
- package/s/views/tabs/control.ts +31 -0
- package/s/views/tabs/showcase.ts +89 -0
- package/s/views/tabs/style.css.ts +46 -0
- package/s/views/tabs/view.ts +66 -0
- package/x/demo/main.bundle.js +13 -0
- package/x/demo/main.bundle.js.map +1 -0
- package/x/demo/main.bundle.min.js +794 -0
- package/x/demo/main.bundle.min.js.map +7 -0
- package/x/demo/main.css +71 -0
- package/x/demo/parts/exhibit.d.ts +11 -0
- package/x/demo/parts/exhibit.js +2 -0
- package/x/demo/parts/exhibit.js.map +1 -0
- package/x/demo/utils/lipsum.d.ts +1 -1
- package/x/demo/utils/lipsum.js +1 -1
- package/x/demo/utils/lipsum.js.map +1 -1
- package/x/demo/views/codebox/style.css.js +42 -0
- package/x/demo/views/codebox/style.css.js.map +1 -0
- package/x/demo/views/codebox/use-prism-styles.d.ts +1 -0
- package/x/demo/views/codebox/use-prism-styles.js +12 -0
- package/x/demo/views/codebox/use-prism-styles.js.map +1 -0
- package/x/demo/views/codebox/view.d.ts +2 -0
- package/x/demo/views/codebox/view.js +29 -0
- package/x/demo/views/codebox/view.js.map +1 -0
- package/x/demo/views/showcase/style.css.js +42 -11
- package/x/demo/views/showcase/style.css.js.map +1 -1
- package/x/demo/views/showcase/view.d.ts +2 -7
- package/x/demo/views/showcase/view.js +39 -35
- package/x/demo/views/showcase/view.js.map +1 -1
- package/x/demo/views/stylebox/view.d.ts +3 -0
- package/x/demo/views/stylebox/view.js +13 -0
- package/x/demo/views/stylebox/view.js.map +1 -0
- package/x/index.d.ts +1 -11
- package/x/index.html +212 -62
- package/x/index.html.js +40 -26
- package/x/index.html.js.map +1 -1
- package/x/index.js +1 -11
- package/x/index.js.map +1 -1
- package/x/test.js +3 -0
- package/x/test.js.map +1 -0
- package/x/theme/parts/core.d.ts +1 -0
- package/x/theme/parts/core.js +33 -0
- package/x/theme/parts/core.js.map +1 -0
- package/x/theme/parts/reset.d.ts +1 -0
- package/x/theme/parts/reset.js +19 -0
- package/x/theme/parts/reset.js.map +1 -0
- package/x/theme/parts/vars.d.ts +1 -0
- package/x/theme/parts/vars.js +34 -0
- package/x/theme/parts/vars.js.map +1 -0
- package/x/theme/theme-string.d.ts +1 -0
- package/x/theme/theme-string.js +14 -0
- package/x/theme/theme-string.js.map +1 -0
- package/x/theme/theme.css.d.ts +1 -0
- package/x/theme/theme.css.js +4 -0
- package/x/theme/theme.css.js.map +1 -0
- package/x/views/button/showcase.d.ts +1 -0
- package/x/views/button/showcase.js +41 -0
- package/x/views/button/showcase.js.map +1 -0
- package/x/views/button/style.css.js +109 -0
- package/x/views/button/style.css.js.map +1 -0
- package/x/views/button/view.d.ts +4 -0
- package/x/views/button/view.js +22 -0
- package/x/views/button/view.js.map +1 -0
- package/x/views/copy/parts/copy-status.d.ts +1 -0
- package/x/views/copy/parts/copy-status.js +2 -0
- package/x/views/copy/parts/copy-status.js.map +1 -0
- package/x/views/copy/parts/determine-base-status.d.ts +1 -0
- package/x/views/copy/parts/determine-base-status.js +6 -0
- package/x/views/copy/parts/determine-base-status.js.map +1 -0
- package/x/views/copy/parts/use-copier.d.ts +6 -0
- package/x/views/copy/parts/use-copier.js +13 -0
- package/x/views/copy/parts/use-copier.js.map +1 -0
- package/x/views/copy/showcase.d.ts +1 -0
- package/x/views/copy/showcase.js +51 -0
- package/x/views/copy/showcase.js.map +1 -0
- package/x/views/copy/style.css.js.map +1 -0
- package/x/views/copy/view.d.ts +4 -0
- package/x/views/copy/view.js +47 -0
- package/x/views/copy/view.js.map +1 -0
- package/x/{components → views}/drawer/control.d.ts +1 -1
- package/x/views/drawer/control.js.map +1 -0
- package/x/views/drawer/showcase.d.ts +1 -0
- package/x/views/drawer/showcase.js +75 -0
- package/x/views/drawer/showcase.js.map +1 -0
- package/x/{components → views}/drawer/style.css.js +1 -0
- package/x/views/drawer/style.css.js.map +1 -0
- package/x/views/drawer/view.d.ts +6 -0
- package/x/views/drawer/view.js +60 -0
- package/x/views/drawer/view.js.map +1 -0
- package/x/{components → views}/tabs/control.d.ts +2 -2
- package/x/{components → views}/tabs/control.js +3 -3
- package/x/views/tabs/control.js.map +1 -0
- package/x/views/tabs/showcase.d.ts +1 -0
- package/x/views/tabs/showcase.js +86 -0
- package/x/views/tabs/showcase.js.map +1 -0
- package/x/{components → views}/tabs/style.css.js +5 -5
- package/x/views/tabs/style.css.js.map +1 -0
- package/x/views/tabs/view.d.ts +5 -0
- package/x/views/tabs/view.js +52 -0
- package/x/views/tabs/view.js.map +1 -0
- package/x/components/button/component.d.ts +0 -6
- package/x/components/button/component.js +0 -25
- package/x/components/button/component.js.map +0 -1
- package/x/components/button/showcase.d.ts +0 -1
- package/x/components/button/showcase.js +0 -116
- package/x/components/button/showcase.js.map +0 -1
- package/x/components/button/style.css.js +0 -62
- package/x/components/button/style.css.js.map +0 -1
- package/x/components/copy/component.d.ts +0 -376
- package/x/components/copy/component.js +0 -63
- package/x/components/copy/component.js.map +0 -1
- package/x/components/copy/showcase.d.ts +0 -1
- package/x/components/copy/showcase.js +0 -48
- package/x/components/copy/showcase.js.map +0 -1
- package/x/components/copy/style.css.js.map +0 -1
- package/x/components/drawer/component.d.ts +0 -387
- package/x/components/drawer/component.js +0 -73
- package/x/components/drawer/component.js.map +0 -1
- package/x/components/drawer/control.js.map +0 -1
- package/x/components/drawer/showcase.d.ts +0 -1
- package/x/components/drawer/showcase.js +0 -92
- package/x/components/drawer/showcase.js.map +0 -1
- package/x/components/drawer/style.css.js.map +0 -1
- package/x/components/example/component.d.ts +0 -371
- package/x/components/example/component.js +0 -22
- package/x/components/example/component.js.map +0 -1
- package/x/components/example/showcase.d.ts +0 -1
- package/x/components/example/showcase.js +0 -30
- package/x/components/example/showcase.js.map +0 -1
- package/x/components/example/style.css.js +0 -10
- package/x/components/example/style.css.js.map +0 -1
- package/x/components/foundation.css.d.ts +0 -1
- package/x/components/foundation.css.js +0 -14
- package/x/components/foundation.css.js.map +0 -1
- package/x/components/framework.d.ts +0 -8
- package/x/components/framework.js +0 -5
- package/x/components/framework.js.map +0 -1
- package/x/components/raw-components.d.ts +0 -12
- package/x/components/raw-components.js +0 -13
- package/x/components/raw-components.js.map +0 -1
- package/x/components/tabs/component.d.ts +0 -374
- package/x/components/tabs/component.js +0 -60
- package/x/components/tabs/component.js.map +0 -1
- package/x/components/tabs/control.js.map +0 -1
- package/x/components/tabs/showcase.d.ts +0 -1
- package/x/components/tabs/showcase.js +0 -167
- package/x/components/tabs/showcase.js.map +0 -1
- package/x/components/tabs/style.css.js.map +0 -1
- package/x/demo/demo.bundle.js +0 -42
- package/x/demo/demo.bundle.js.map +0 -1
- package/x/demo/demo.bundle.min.js +0 -877
- package/x/demo/demo.bundle.min.js.map +0 -7
- package/x/demo/lipsum.d.ts +0 -2
- package/x/demo/lipsum.js +0 -4
- package/x/demo/lipsum.js.map +0 -1
- package/x/demo/views/exhibit/style.css.d.ts +0 -2
- package/x/demo/views/exhibit/style.css.js +0 -81
- package/x/demo/views/exhibit/style.css.js.map +0 -1
- package/x/demo/views/exhibit/view.d.ts +0 -29
- package/x/demo/views/exhibit/view.js +0 -40
- package/x/demo/views/exhibit/view.js.map +0 -1
- package/x/demo/viewsets.d.ts +0 -17
- package/x/demo/viewsets.js +0 -9
- package/x/demo/viewsets.js.map +0 -1
- package/x/install/aura.bundle.js +0 -5
- package/x/install/aura.bundle.js.map +0 -1
- package/x/install/aura.bundle.min.js +0 -471
- package/x/install/aura.bundle.min.js.map +0 -7
- package/x/install/plain.bundle.d.ts +0 -1
- package/x/install/plain.bundle.js +0 -5
- package/x/install/plain.bundle.js.map +0 -1
- package/x/install/plain.bundle.min.js +0 -398
- package/x/install/plain.bundle.min.js.map +0 -7
- package/x/shiny.d.ts +0 -47
- package/x/shiny.js +0 -8
- package/x/shiny.js.map +0 -1
- package/x/tests.test.d.ts +0 -1
- package/x/tests.test.js +0 -3
- package/x/tests.test.js.map +0 -1
- package/x/themes/aura.css.d.ts +0 -1
- package/x/themes/aura.css.js +0 -85
- package/x/themes/aura.css.js.map +0 -1
- package/x/themes/index.barrel.d.ts +0 -2
- package/x/themes/index.barrel.js +0 -3
- package/x/themes/index.barrel.js.map +0 -1
- package/x/themes/index.d.ts +0 -2
- package/x/themes/index.js +0 -2
- package/x/themes/index.js.map +0 -1
- package/x/themes/infra/css-vars.d.ts +0 -15
- package/x/themes/infra/css-vars.js +0 -22
- package/x/themes/infra/css-vars.js.map +0 -1
- package/x/themes/plain.css.d.ts +0 -1
- package/x/themes/plain.css.js +0 -10
- package/x/themes/plain.css.js.map +0 -1
- /package/s/{components → _archive/components}/button/component.ts +0 -0
- /package/s/{components → _archive/components}/button/showcase.ts +0 -0
- /package/s/{components → _archive/components}/button/style.css.ts +0 -0
- /package/s/{components → _archive/components}/copy/component.ts +0 -0
- /package/s/{components → _archive/components}/copy/showcase.ts +0 -0
- /package/s/{components → _archive/components}/copy/style.css.ts +0 -0
- /package/s/{components → _archive/components}/drawer/control.ts +0 -0
- /package/s/{components → _archive/components}/drawer/style.css.ts +0 -0
- /package/s/{components → _archive/components}/example/component.ts +0 -0
- /package/s/{components → _archive/components}/example/showcase.ts +0 -0
- /package/s/{components → _archive/components}/example/style.css.ts +0 -0
- /package/s/{components → _archive/components}/foundation.css.ts +0 -0
- /package/s/{components → _archive/components}/framework.ts +0 -0
- /package/s/{components → _archive/components}/raw-components.ts +0 -0
- /package/s/{components → _archive/components}/tabs/component.ts +0 -0
- /package/s/{components → _archive/components}/tabs/control.ts +0 -0
- /package/s/{components → _archive/components}/tabs/showcase.ts +0 -0
- /package/s/{components → _archive/components}/tabs/style.css.ts +0 -0
- /package/s/{demo → _archive/demo}/demo.bundle.ts +0 -0
- /package/s/{demo → _archive/demo}/demo.css +0 -0
- /package/s/{demo → _archive/demo}/lipsum.ts +0 -0
- /package/s/{demo → _archive/demo}/views/exhibit/view.ts +0 -0
- /package/s/{demo → _archive/demo}/viewsets.ts +0 -0
- /package/s/{install → _archive/install}/aura.bundle.ts +0 -0
- /package/s/{install → _archive/install}/plain.bundle.ts +0 -0
- /package/s/{shiny.ts → _archive/shiny.ts} +0 -0
- /package/s/{tests.test.ts → _archive/tests.test.ts} +0 -0
- /package/s/{themes → _archive/themes}/aura.css.ts +0 -0
- /package/s/{themes → _archive/themes}/index.barrel.ts +0 -0
- /package/s/{themes → _archive/themes}/index.ts +0 -0
- /package/s/{themes → _archive/themes}/infra/css-vars.ts +0 -0
- /package/s/{themes → _archive/themes}/plain.css.ts +0 -0
- /package/x/{demo → _archive/demo}/demo.css +0 -0
- /package/x/demo/{demo.bundle.d.ts → main.bundle.d.ts} +0 -0
- /package/x/{components/button → demo/views/codebox}/style.css.d.ts +0 -0
- /package/x/{install/aura.bundle.d.ts → test.d.ts} +0 -0
- /package/x/{components/copy → views/button}/style.css.d.ts +0 -0
- /package/x/{components/drawer → views/copy}/style.css.d.ts +0 -0
- /package/x/{components → views}/copy/style.css.js +0 -0
- /package/x/{components → views}/drawer/control.js +0 -0
- /package/x/{components/example → views/drawer}/style.css.d.ts +0 -0
- /package/x/{components → views}/tabs/style.css.d.ts +0 -0
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
import { DrawerControl } from "./control.js";
|
|
2
|
-
import { ShinyContext } from "../framework.js";
|
|
3
|
-
declare const ShinyDrawer_base: import("@e280/sly").ComponentClass<{
|
|
4
|
-
new (): {
|
|
5
|
-
"__#private@#attrs": import("@e280/sly").AttrTypes<{
|
|
6
|
-
open: BooleanConstructor;
|
|
7
|
-
button: BooleanConstructor;
|
|
8
|
-
side: StringConstructor;
|
|
9
|
-
}>;
|
|
10
|
-
get button(): boolean;
|
|
11
|
-
set button(v: boolean);
|
|
12
|
-
get side(): "left" | "right";
|
|
13
|
-
set side(v: "left" | "right");
|
|
14
|
-
control: DrawerControl;
|
|
15
|
-
get isOpen(): boolean;
|
|
16
|
-
get toggle(): () => Promise<boolean>;
|
|
17
|
-
get open(): () => Promise<void>;
|
|
18
|
-
get close(): () => Promise<void>;
|
|
19
|
-
context: ShinyContext;
|
|
20
|
-
"__#private@#private": any;
|
|
21
|
-
readonly shadow: ShadowRoot;
|
|
22
|
-
createShadow(): ShadowRoot;
|
|
23
|
-
render(_use: import("@e280/sly").Use): import("@e280/sly").Content;
|
|
24
|
-
updateNow: () => void;
|
|
25
|
-
update: import("@e280/stz").DebounceReturn<() => void>;
|
|
26
|
-
connectedCallback(): void;
|
|
27
|
-
disconnectedCallback(): void;
|
|
28
|
-
accessKey: string;
|
|
29
|
-
readonly accessKeyLabel: string;
|
|
30
|
-
autocapitalize: string;
|
|
31
|
-
autocorrect: boolean;
|
|
32
|
-
dir: string;
|
|
33
|
-
draggable: boolean;
|
|
34
|
-
hidden: boolean;
|
|
35
|
-
inert: boolean;
|
|
36
|
-
innerText: string;
|
|
37
|
-
lang: string;
|
|
38
|
-
readonly offsetHeight: number;
|
|
39
|
-
readonly offsetLeft: number;
|
|
40
|
-
readonly offsetParent: Element | null;
|
|
41
|
-
readonly offsetTop: number;
|
|
42
|
-
readonly offsetWidth: number;
|
|
43
|
-
outerText: string;
|
|
44
|
-
popover: string | null;
|
|
45
|
-
spellcheck: boolean;
|
|
46
|
-
title: string;
|
|
47
|
-
translate: boolean;
|
|
48
|
-
writingSuggestions: string;
|
|
49
|
-
attachInternals(): ElementInternals;
|
|
50
|
-
click(): void;
|
|
51
|
-
hidePopover(): void;
|
|
52
|
-
showPopover(): void;
|
|
53
|
-
togglePopover(options?: boolean): boolean;
|
|
54
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
55
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
56
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
57
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
58
|
-
readonly attributes: NamedNodeMap;
|
|
59
|
-
get classList(): DOMTokenList;
|
|
60
|
-
set classList(value: string);
|
|
61
|
-
className: string;
|
|
62
|
-
readonly clientHeight: number;
|
|
63
|
-
readonly clientLeft: number;
|
|
64
|
-
readonly clientTop: number;
|
|
65
|
-
readonly clientWidth: number;
|
|
66
|
-
readonly currentCSSZoom: number;
|
|
67
|
-
id: string;
|
|
68
|
-
innerHTML: string;
|
|
69
|
-
readonly localName: string;
|
|
70
|
-
readonly namespaceURI: string | null;
|
|
71
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
72
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
73
|
-
outerHTML: string;
|
|
74
|
-
readonly ownerDocument: Document;
|
|
75
|
-
get part(): DOMTokenList;
|
|
76
|
-
set part(value: string);
|
|
77
|
-
readonly prefix: string | null;
|
|
78
|
-
readonly scrollHeight: number;
|
|
79
|
-
scrollLeft: number;
|
|
80
|
-
scrollTop: number;
|
|
81
|
-
readonly scrollWidth: number;
|
|
82
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
83
|
-
slot: string;
|
|
84
|
-
readonly tagName: string;
|
|
85
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
86
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
87
|
-
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
88
|
-
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
89
|
-
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
90
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
91
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
92
|
-
getAttribute(qualifiedName: string): string | null;
|
|
93
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
94
|
-
getAttributeNames(): string[];
|
|
95
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
96
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
97
|
-
getBoundingClientRect(): DOMRect;
|
|
98
|
-
getClientRects(): DOMRectList;
|
|
99
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
100
|
-
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
101
|
-
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
102
|
-
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
103
|
-
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
104
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
105
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
106
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
107
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
108
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
109
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
110
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
111
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
112
|
-
hasAttributes(): boolean;
|
|
113
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
114
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
115
|
-
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
116
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
117
|
-
matches(selectors: string): boolean;
|
|
118
|
-
releasePointerCapture(pointerId: number): void;
|
|
119
|
-
removeAttribute(qualifiedName: string): void;
|
|
120
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
121
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
122
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
123
|
-
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
124
|
-
scroll(options?: ScrollToOptions): void;
|
|
125
|
-
scroll(x: number, y: number): void;
|
|
126
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
127
|
-
scrollBy(x: number, y: number): void;
|
|
128
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
129
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
130
|
-
scrollTo(x: number, y: number): void;
|
|
131
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
132
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
133
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
134
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
135
|
-
setHTMLUnsafe(html: string): void;
|
|
136
|
-
setPointerCapture(pointerId: number): void;
|
|
137
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
138
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
139
|
-
get textContent(): string;
|
|
140
|
-
set textContent(value: string | null);
|
|
141
|
-
readonly baseURI: string;
|
|
142
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
143
|
-
readonly firstChild: ChildNode | null;
|
|
144
|
-
readonly isConnected: boolean;
|
|
145
|
-
readonly lastChild: ChildNode | null;
|
|
146
|
-
readonly nextSibling: ChildNode | null;
|
|
147
|
-
readonly nodeName: string;
|
|
148
|
-
readonly nodeType: number;
|
|
149
|
-
nodeValue: string | null;
|
|
150
|
-
readonly parentElement: HTMLElement | null;
|
|
151
|
-
readonly parentNode: ParentNode | null;
|
|
152
|
-
readonly previousSibling: ChildNode | null;
|
|
153
|
-
appendChild<T extends Node>(node: T): T;
|
|
154
|
-
cloneNode(subtree?: boolean): Node;
|
|
155
|
-
compareDocumentPosition(other: Node): number;
|
|
156
|
-
contains(other: Node | null): boolean;
|
|
157
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
158
|
-
hasChildNodes(): boolean;
|
|
159
|
-
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
160
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
161
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
162
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
163
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
164
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
165
|
-
normalize(): void;
|
|
166
|
-
removeChild<T extends Node>(child: T): T;
|
|
167
|
-
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
168
|
-
readonly ELEMENT_NODE: 1;
|
|
169
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
170
|
-
readonly TEXT_NODE: 3;
|
|
171
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
172
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
173
|
-
readonly ENTITY_NODE: 6;
|
|
174
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
175
|
-
readonly COMMENT_NODE: 8;
|
|
176
|
-
readonly DOCUMENT_NODE: 9;
|
|
177
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
178
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
179
|
-
readonly NOTATION_NODE: 12;
|
|
180
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
181
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
182
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
183
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
184
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
185
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
186
|
-
dispatchEvent(event: Event): boolean;
|
|
187
|
-
ariaActiveDescendantElement: Element | null;
|
|
188
|
-
ariaAtomic: string | null;
|
|
189
|
-
ariaAutoComplete: string | null;
|
|
190
|
-
ariaBrailleLabel: string | null;
|
|
191
|
-
ariaBrailleRoleDescription: string | null;
|
|
192
|
-
ariaBusy: string | null;
|
|
193
|
-
ariaChecked: string | null;
|
|
194
|
-
ariaColCount: string | null;
|
|
195
|
-
ariaColIndex: string | null;
|
|
196
|
-
ariaColIndexText: string | null;
|
|
197
|
-
ariaColSpan: string | null;
|
|
198
|
-
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
199
|
-
ariaCurrent: string | null;
|
|
200
|
-
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
201
|
-
ariaDescription: string | null;
|
|
202
|
-
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
203
|
-
ariaDisabled: string | null;
|
|
204
|
-
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
205
|
-
ariaExpanded: string | null;
|
|
206
|
-
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
207
|
-
ariaHasPopup: string | null;
|
|
208
|
-
ariaHidden: string | null;
|
|
209
|
-
ariaInvalid: string | null;
|
|
210
|
-
ariaKeyShortcuts: string | null;
|
|
211
|
-
ariaLabel: string | null;
|
|
212
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
213
|
-
ariaLevel: string | null;
|
|
214
|
-
ariaLive: string | null;
|
|
215
|
-
ariaModal: string | null;
|
|
216
|
-
ariaMultiLine: string | null;
|
|
217
|
-
ariaMultiSelectable: string | null;
|
|
218
|
-
ariaOrientation: string | null;
|
|
219
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
220
|
-
ariaPlaceholder: string | null;
|
|
221
|
-
ariaPosInSet: string | null;
|
|
222
|
-
ariaPressed: string | null;
|
|
223
|
-
ariaReadOnly: string | null;
|
|
224
|
-
ariaRelevant: string | null;
|
|
225
|
-
ariaRequired: string | null;
|
|
226
|
-
ariaRoleDescription: string | null;
|
|
227
|
-
ariaRowCount: string | null;
|
|
228
|
-
ariaRowIndex: string | null;
|
|
229
|
-
ariaRowIndexText: string | null;
|
|
230
|
-
ariaRowSpan: string | null;
|
|
231
|
-
ariaSelected: string | null;
|
|
232
|
-
ariaSetSize: string | null;
|
|
233
|
-
ariaSort: string | null;
|
|
234
|
-
ariaValueMax: string | null;
|
|
235
|
-
ariaValueMin: string | null;
|
|
236
|
-
ariaValueNow: string | null;
|
|
237
|
-
ariaValueText: string | null;
|
|
238
|
-
role: string | null;
|
|
239
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
240
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
241
|
-
after(...nodes: (Node | string)[]): void;
|
|
242
|
-
before(...nodes: (Node | string)[]): void;
|
|
243
|
-
remove(): void;
|
|
244
|
-
replaceWith(...nodes: (Node | string)[]): void;
|
|
245
|
-
readonly nextElementSibling: Element | null;
|
|
246
|
-
readonly previousElementSibling: Element | null;
|
|
247
|
-
readonly childElementCount: number;
|
|
248
|
-
readonly children: HTMLCollection;
|
|
249
|
-
readonly firstElementChild: Element | null;
|
|
250
|
-
readonly lastElementChild: Element | null;
|
|
251
|
-
append(...nodes: (Node | string)[]): void;
|
|
252
|
-
prepend(...nodes: (Node | string)[]): void;
|
|
253
|
-
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
254
|
-
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
255
|
-
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
256
|
-
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
257
|
-
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
258
|
-
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
259
|
-
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
260
|
-
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
261
|
-
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
262
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
263
|
-
replaceChildren(...nodes: (Node | string)[]): void;
|
|
264
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
265
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
266
|
-
get style(): CSSStyleDeclaration;
|
|
267
|
-
set style(cssText: string);
|
|
268
|
-
contentEditable: string;
|
|
269
|
-
enterKeyHint: string;
|
|
270
|
-
inputMode: string;
|
|
271
|
-
readonly isContentEditable: boolean;
|
|
272
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
273
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
274
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
275
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
276
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
277
|
-
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
278
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
279
|
-
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
281
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
282
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
283
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
284
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
285
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
286
|
-
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
287
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
288
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
289
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
290
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
292
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
293
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
294
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
295
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
296
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
297
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
298
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
299
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
300
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
301
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
302
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
304
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
-
onerror: OnErrorEventHandler;
|
|
306
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
307
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
308
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
309
|
-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
312
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
313
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
314
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
319
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
320
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
321
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
322
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
323
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
324
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
325
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
326
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
327
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
331
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
332
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
333
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
334
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
335
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
336
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
337
|
-
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
338
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
339
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
340
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
341
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
342
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
343
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
344
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
345
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
346
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
347
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
348
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
349
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
350
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
351
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
352
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
353
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
354
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
355
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
356
|
-
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
357
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
358
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
359
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
360
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
361
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
362
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
363
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
364
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
365
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
366
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
367
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
368
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
369
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
370
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
371
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
372
|
-
autofocus: boolean;
|
|
373
|
-
readonly dataset: DOMStringMap;
|
|
374
|
-
nonce?: string;
|
|
375
|
-
tabIndex: number;
|
|
376
|
-
blur(): void;
|
|
377
|
-
focus(options?: FocusOptions): void;
|
|
378
|
-
};
|
|
379
|
-
styles: import("lit").CSSResultGroup | undefined;
|
|
380
|
-
}, [context: ShinyContext, options: {
|
|
381
|
-
button?: boolean;
|
|
382
|
-
side?: "left" | "right";
|
|
383
|
-
control?: DrawerControl;
|
|
384
|
-
}]>;
|
|
385
|
-
export declare class ShinyDrawer extends ShinyDrawer_base {
|
|
386
|
-
}
|
|
387
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
import { dom, view } from "@e280/sly";
|
|
3
|
-
import styleCss from "./style.css.js";
|
|
4
|
-
import { DrawerControl } from "./control.js";
|
|
5
|
-
import { States } from "../../utils/states.js";
|
|
6
|
-
import xSvg from "../../icons/tabler/x.svg.js";
|
|
7
|
-
import { foundationCss } from "../foundation.css.js";
|
|
8
|
-
import menu2Svg from "../../icons/tabler/menu-2.svg.js";
|
|
9
|
-
import { ShinyElement } from "../framework.js";
|
|
10
|
-
export class ShinyDrawer extends (view(use => (context, options) => {
|
|
11
|
-
use.name("shiny-drawer");
|
|
12
|
-
use.styles(foundationCss, context.theme, styleCss);
|
|
13
|
-
const states = use.once(() => new States(use.element));
|
|
14
|
-
const button = options.button ?? use.attrs.booleans.button;
|
|
15
|
-
const side = options.side ?? (use.attrs.strings.side === "right" ? "right" : "left");
|
|
16
|
-
const control = use.once(() => (options.control ?? new DrawerControl()));
|
|
17
|
-
states.assign(side);
|
|
18
|
-
use.mount(() => dom.events(window, { keydown: (event) => {
|
|
19
|
-
if (event.code === "Escape")
|
|
20
|
-
control.close();
|
|
21
|
-
} }));
|
|
22
|
-
dom.attrs(use.element).booleans.open = control.isOpen;
|
|
23
|
-
function renderButton() {
|
|
24
|
-
return html `
|
|
25
|
-
<button @click="${control.toggle}">
|
|
26
|
-
${control.isOpen
|
|
27
|
-
? html `
|
|
28
|
-
<slot name=button-x>
|
|
29
|
-
${xSvg}
|
|
30
|
-
</slot>
|
|
31
|
-
`
|
|
32
|
-
: html `
|
|
33
|
-
<slot name=button>
|
|
34
|
-
${menu2Svg}
|
|
35
|
-
</slot>
|
|
36
|
-
`}
|
|
37
|
-
</button>
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
return html `
|
|
41
|
-
<div class=shell ?data-open="${control.isOpen}" data-side="${side}">
|
|
42
|
-
<slot name=plate ?inert="${control.isOpen}"></slot>
|
|
43
|
-
|
|
44
|
-
<div class=clipper>
|
|
45
|
-
<div part=blanket @click="${control.close}" ?inert="${!control.isOpen}"></div>
|
|
46
|
-
|
|
47
|
-
<div part=tray>
|
|
48
|
-
<slot part=slate ?inert="${!control.isOpen}"></slot>
|
|
49
|
-
${button ? renderButton() : null}
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
`;
|
|
54
|
-
})
|
|
55
|
-
.component(class extends ShinyElement {
|
|
56
|
-
#attrs = dom.attrs(this).spec({
|
|
57
|
-
open: Boolean,
|
|
58
|
-
button: Boolean,
|
|
59
|
-
side: String,
|
|
60
|
-
});
|
|
61
|
-
get button() { return this.#attrs.button; }
|
|
62
|
-
set button(v) { this.#attrs.button = v; }
|
|
63
|
-
get side() { return this.#attrs.side === "right" ? "right" : "left"; }
|
|
64
|
-
set side(v) { this.#attrs.side = v; }
|
|
65
|
-
control = new DrawerControl(this.#attrs.open);
|
|
66
|
-
get isOpen() { return this.control.isOpen; }
|
|
67
|
-
get toggle() { return this.control.toggle; }
|
|
68
|
-
get open() { return this.control.open; }
|
|
69
|
-
get close() { return this.control.close; }
|
|
70
|
-
})
|
|
71
|
-
.props(el => [el.context, { control: el.control }])) {
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../s/components/drawer/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,WAAW,CAAA;AAEnC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAA;AAC5C,OAAO,IAAI,MAAM,6BAA6B,CAAA;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAA;AAClD,OAAO,QAAQ,MAAM,kCAAkC,CAAA;AACvD,OAAO,EAAe,YAAY,EAAC,MAAM,iBAAiB,CAAA;AAE1D,MAAM,OAAO,WAAY,SAAQ,CAChC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAqB,EAAE,OAIlC,EAAE,EAAE;IAEL,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IACxB,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;IAClD,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;IAEtD,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAA;IAC1D,MAAM,IAAI,GA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,EAAC,MAAM,cAAc,CAAA;AAEnC,MAAM,OAAO,aAAa;IACzB,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAErB,YAAY,SAAS,GAAG,KAAK;QAC5B,IAAI,SAAS;YAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IACpC,CAAC;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAc;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAC7B,CAAC;IAED,IAAI,GAAG,KAAK,IAAG,EAAE;QAChB,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACzB,CAAC,CAAA;IAED,KAAK,GAAG,KAAK,IAAG,EAAE;QACjB,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC1B,CAAC,CAAA;IAED,MAAM,GAAG,KAAK,IAAG,EAAE;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAClC,CAAC,CAAA;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const drawerShowcase: () => import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass>;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { css, html } from "lit";
|
|
2
|
-
import { lipsum } from "../../demo/lipsum.js";
|
|
3
|
-
import { Showcase } from "../../demo/views/showcase/view.js";
|
|
4
|
-
const lip1 = lipsum();
|
|
5
|
-
const lip2 = lipsum();
|
|
6
|
-
const lip3 = lipsum();
|
|
7
|
-
const cssSnippet = `
|
|
8
|
-
[view="shiny-drawer"] {
|
|
9
|
-
--button-size: 2em;
|
|
10
|
-
--anim-duration: 200ms;
|
|
11
|
-
--slate-hidden-opacity: 1;
|
|
12
|
-
--blanket-backdrop-filter: blur(0.5em);
|
|
13
|
-
--blanket-bg: color-mix(
|
|
14
|
-
in oklab,
|
|
15
|
-
transparent,
|
|
16
|
-
var(--bg)
|
|
17
|
-
);
|
|
18
|
-
--slate-bg: linear-gradient(
|
|
19
|
-
to top right,
|
|
20
|
-
color-mix(in oklab, var(--calm), #222 50%),
|
|
21
|
-
color-mix(in oklab, var(--calm), #888 50%)
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
const makeExhibit = (side) => ({
|
|
26
|
-
label: side,
|
|
27
|
-
explain: html `<p>slide-out panel. button optional.</p>`,
|
|
28
|
-
snippets: [
|
|
29
|
-
{ label: "html", code: `
|
|
30
|
-
<shiny-drawer button side=${side}>
|
|
31
|
-
<header>example</header>
|
|
32
|
-
<section slot=plate>lorem kettlebell..</section>
|
|
33
|
-
</shiny-drawer>
|
|
34
|
-
` },
|
|
35
|
-
{ label: "view", code: `
|
|
36
|
-
ShinyDrawer
|
|
37
|
-
.props({button: true, side: "${side}"})
|
|
38
|
-
.children(html\`
|
|
39
|
-
<header>example</header>
|
|
40
|
-
<section slot=plate>lorem kettlebell..</section>
|
|
41
|
-
\`)
|
|
42
|
-
.render()
|
|
43
|
-
` },
|
|
44
|
-
{ label: "css", code: cssSnippet },
|
|
45
|
-
],
|
|
46
|
-
style: css ``,
|
|
47
|
-
presentation: views => html `
|
|
48
|
-
${views.ShinyDrawer
|
|
49
|
-
.props({ button: true, side })
|
|
50
|
-
.children(html `
|
|
51
|
-
<header>
|
|
52
|
-
<h2>example drawer</h2>
|
|
53
|
-
<p>you can put any content in here.</p>
|
|
54
|
-
<p class=lipsum>${lip1}</p>
|
|
55
|
-
</header>
|
|
56
|
-
<section slot=plate>
|
|
57
|
-
<p class=lipsum>${lip2}</p>
|
|
58
|
-
<p class=lipsum>${lip3}</p>
|
|
59
|
-
</section>
|
|
60
|
-
`)
|
|
61
|
-
.render()}
|
|
62
|
-
`,
|
|
63
|
-
});
|
|
64
|
-
export const drawerShowcase = () => Showcase({
|
|
65
|
-
name: "drawer",
|
|
66
|
-
style: css `
|
|
67
|
-
.box sly-view {
|
|
68
|
-
border-radius: 0.5em;
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
--button-size: 3em;
|
|
71
|
-
|
|
72
|
-
header {
|
|
73
|
-
> * + * { margin-top: 0.5em; }
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
section {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: column;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
min-height: 100%;
|
|
81
|
-
padding: 1em;
|
|
82
|
-
padding-top: 3em;
|
|
83
|
-
> * + * { margin-top: 0.5em; }
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
`,
|
|
87
|
-
exhibits: [
|
|
88
|
-
makeExhibit("left"),
|
|
89
|
-
makeExhibit("right"),
|
|
90
|
-
],
|
|
91
|
-
});
|
|
92
|
-
//# sourceMappingURL=showcase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"showcase.js","sourceRoot":"","sources":["../../../s/components/drawer/showcase.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAA;AAC7B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAC,QAAQ,EAAC,MAAM,mCAAmC,CAAA;AAG1D,MAAM,IAAI,GAAG,MAAM,EAAE,CAAA;AACrB,MAAM,IAAI,GAAG,MAAM,EAAE,CAAA;AACrB,MAAM,IAAI,GAAG,MAAM,EAAE,CAAA;AAErB,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;CAiBlB,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,IAAsB,EAAiB,EAAE,CAAC,CAAC;IAC/D,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI,CAAA,0CAA0C;IACvD,QAAQ,EAAE;QACT,EAAC,KAAK,EAA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