godown 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/effect/ov-effect.d.ts +3 -3
- package/effect/ov-effect.d.ts.map +1 -1
- package/effect/ov-effect.js +252 -228
- package/effect/ro-effect.d.ts +1 -1
- package/effect/ro-effect.d.ts.map +1 -1
- package/effect/ro-effect.js +51 -46
- package/effect/std.d.ts.map +1 -1
- package/effect/tw-effect.d.ts +1 -1
- package/effect/tw-effect.d.ts.map +1 -1
- package/effect/tw-effect.js +19 -18
- package/glob.d.ts.map +1 -1
- package/glob.js +18 -17
- package/group/avatar-group.d.ts +1 -1
- package/group/avatar-group.d.ts.map +1 -1
- package/group/avatar-group.js +29 -5
- package/group/button-group.d.ts +1 -1
- package/group/button-group.d.ts.map +1 -1
- package/group/button-group.js +53 -48
- package/group/details-group.d.ts +1 -1
- package/group/details-group.d.ts.map +1 -1
- package/group/details-group.js +5 -3
- package/group/std.d.ts.map +1 -1
- package/input-form/base-input.d.ts +2 -2
- package/input-form/base-input.d.ts.map +1 -1
- package/input-form/base-input.js +109 -106
- package/input-form/exp-input.d.ts +1 -1
- package/input-form/exp-input.d.ts.map +1 -1
- package/input-form/exp-input.js +155 -142
- package/input-form/label-input.d.ts +1 -1
- package/input-form/label-input.d.ts.map +1 -1
- package/input-form/label-input.js +88 -75
- package/input-form/search-input.d.ts +3 -3
- package/input-form/search-input.d.ts.map +1 -1
- package/input-form/search-input.js +171 -157
- package/input-form/select-input.d.ts +3 -3
- package/input-form/select-input.d.ts.map +1 -1
- package/input-form/select-input.js +128 -104
- package/input-form/sign-form.d.ts +7 -5
- package/input-form/sign-form.d.ts.map +1 -1
- package/input-form/sign-form.js +49 -44
- package/input-form/split-input.d.ts +3 -3
- package/input-form/split-input.d.ts.map +1 -1
- package/input-form/split-input.js +80 -72
- package/input-form/std.d.ts +1 -1
- package/input-form/std.d.ts.map +1 -1
- package/input-form/std.js +20 -17
- package/input-form/switch-input.d.ts +3 -3
- package/input-form/switch-input.d.ts.map +1 -1
- package/input-form/switch-input.js +118 -112
- package/items/alert-item.d.ts +1 -1
- package/items/alert-item.d.ts.map +1 -1
- package/items/alert-item.js +99 -98
- package/items/avatar-anchor.d.ts +2 -2
- package/items/avatar-anchor.d.ts.map +1 -1
- package/items/avatar-anchor.js +91 -89
- package/items/base-button.d.ts +1 -1
- package/items/base-button.d.ts.map +1 -1
- package/items/base-button.js +129 -126
- package/items/dialog-item.d.ts +1 -1
- package/items/dialog-item.d.ts.map +1 -1
- package/items/dialog-item.js +72 -71
- package/items/link-a.d.ts.map +1 -1
- package/items/link-a.js +23 -22
- package/items/load-track.d.ts +1 -1
- package/items/load-track.d.ts.map +1 -1
- package/items/load-track.js +45 -39
- package/items/std.d.ts.map +1 -1
- package/items/super-a.d.ts +2 -2
- package/items/super-a.d.ts.map +1 -1
- package/items/super-a.js +59 -48
- package/layout/div-line.d.ts +1 -1
- package/layout/div-line.d.ts.map +1 -1
- package/layout/div-line.js +35 -29
- package/layout/drag-box.d.ts +1 -1
- package/layout/drag-box.d.ts.map +1 -1
- package/layout/drag-box.js +10 -9
- package/layout/flex-flow.d.ts +2 -2
- package/layout/flex-flow.d.ts.map +1 -1
- package/layout/flex-flow.js +12 -7
- package/layout/nav-aside.d.ts +1 -1
- package/layout/nav-aside.d.ts.map +1 -1
- package/layout/nav-aside.js +32 -25
- package/layout/nav-layout.d.ts +1 -1
- package/layout/nav-layout.d.ts.map +1 -1
- package/layout/nav-layout.js +125 -104
- package/layout/std.d.ts.map +1 -1
- package/layout/std.js +6 -4
- package/package.json +47 -40
- package/react/effect.js +6 -6
- package/react/group.js +3 -3
- package/react/input-form.js +11 -11
- package/react/items.js +7 -7
- package/react/layout.js +5 -5
- package/react/view.js +5 -5
- package/view/details-expand.d.ts +1 -1
- package/view/details-expand.d.ts.map +1 -1
- package/view/details-expand.js +38 -33
- package/view/down-drop.d.ts +1 -1
- package/view/down-drop.d.ts.map +1 -1
- package/view/down-drop.js +34 -30
- package/view/menu-list.d.ts +1 -1
- package/view/menu-list.d.ts.map +1 -1
- package/view/menu-list.js +35 -30
- package/view/route-view.d.ts.map +1 -1
- package/view/route-view.js +9 -6
- package/view/scroll-x.d.ts +1 -1
- package/view/scroll-x.d.ts.map +1 -1
- package/view/scroll-x.js +32 -27
- package/view/std.d.ts.map +1 -1
- package/view/std.js +33 -33
- package/with.d.ts +10 -10
- package/with.d.ts.map +1 -1
- package/with.js +14 -15
- package/view/react/effect.d.ts +0 -10
- package/view/react/effect.d.ts.map +0 -1
- package/view/react/effect.js +0 -32
- package/view/react/group.d.ts +0 -5
- package/view/react/group.d.ts.map +0 -1
- package/view/react/group.js +0 -18
- package/view/react/index.d.ts +0 -7
- package/view/react/index.d.ts.map +0 -1
- package/view/react/index.js +0 -6
- package/view/react/input-form.d.ts +0 -33
- package/view/react/input-form.d.ts.map +0 -1
- package/view/react/input-form.js +0 -64
- package/view/react/items.d.ts +0 -9
- package/view/react/items.d.ts.map +0 -1
- package/view/react/items.js +0 -38
- package/view/react/layout.d.ts +0 -7
- package/view/react/layout.d.ts.map +0 -1
- package/view/react/layout.js +0 -28
- package/view/react/view.d.ts +0 -7
- package/view/react/view.d.ts.map +0 -1
- package/view/react/view.js +0 -28
package/view/details-expand.js
CHANGED
@@ -15,15 +15,15 @@ let DetailsExpand = class DetailsExpand extends STD {
|
|
15
15
|
this.float = false;
|
16
16
|
}
|
17
17
|
render() {
|
18
|
-
return html `<dl>
|
19
|
-
<dt ?open=${this.open}
|
20
|
-
|
21
|
-
|
22
|
-
</dt>
|
23
|
-
<dd ?open=${this.open} ?float=${this.float}>
|
24
|
-
|
25
|
-
</dd>
|
26
|
-
</dl>`;
|
18
|
+
return html `<dl>
|
19
|
+
<dt ?open=${this.open} @click=${() => this.toggle()} style="flex-direction:row${this.reverse ? "-reverse" : ""}">
|
20
|
+
<span>${this.summary}<slot name="summary"></slot></span>
|
21
|
+
<i style="transform: rotate(${this.reverse ? "-18" : ""}0deg);">${!this.querySelector(`slot[name="icon"]`) ? html `<svg fill="currentColor" viewBox="0 0 16 16"><path d="m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z" /></svg>` : html `<slot name="icon"></slot>`}</i>
|
22
|
+
</dt>
|
23
|
+
<dd ?open=${this.open} ?float=${this.float}>
|
24
|
+
<section><slot></slot></section>
|
25
|
+
</dd>
|
26
|
+
</dl>`;
|
27
27
|
}
|
28
28
|
firstUpdated() {
|
29
29
|
if (this.fill)
|
@@ -34,30 +34,35 @@ let DetailsExpand = class DetailsExpand extends STD {
|
|
34
34
|
this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
|
35
35
|
}
|
36
36
|
};
|
37
|
-
DetailsExpand.styles = [
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
37
|
+
DetailsExpand.styles = [
|
38
|
+
STD.styles,
|
39
|
+
DLsharecss,
|
40
|
+
css `
|
41
|
+
dl {
|
42
|
+
height: 100%;
|
43
|
+
position: relative;
|
44
|
+
}
|
45
|
+
dt {
|
46
|
+
height: 100%;
|
47
|
+
}
|
48
|
+
i {
|
49
|
+
height: 1.2em;
|
50
|
+
min-width: 1.2em;
|
51
|
+
aspect-ratio: 1/1;
|
52
|
+
display: flex;
|
53
|
+
margin-left: auto;
|
54
|
+
-webkit-backface-visibility: hidden;
|
55
|
+
backface-visibility: hidden;
|
56
|
+
}
|
57
|
+
[open] i {
|
58
|
+
transform: rotate(-90deg) !important;
|
59
|
+
}
|
60
|
+
[float] {
|
61
|
+
top: 100%;
|
62
|
+
position: absolute;
|
63
|
+
}
|
64
|
+
`,
|
65
|
+
];
|
61
66
|
__decorate([
|
62
67
|
property()
|
63
68
|
], DetailsExpand.prototype, "summary", void 0);
|
package/view/down-drop.d.ts
CHANGED
@@ -3,7 +3,7 @@ export declare class DownDrop extends STD {
|
|
3
3
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
4
4
|
_div: HTMLDivElement;
|
5
5
|
_timer: any;
|
6
|
-
render(): import("lit").TemplateResult<1>;
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
7
7
|
firstUpdated(): Promise<void>;
|
8
8
|
resize(): void;
|
9
9
|
close(): void;
|
package/view/down-drop.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"down-drop.d.ts","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"down-drop.d.ts","sourceRoot":"","sources":["../../src/view/down-drop.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,qBACa,QAAS,SAAQ,GAAG;IAC/B,MAAM,CAAC,MAAM,8DA0BX;IACY,IAAI,EAAE,cAAc,CAAC;IACnC,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM;IAOA,YAAY;IAkBlB,MAAM;IAcN,KAAK;IAIL,IAAI;IAIJ,MAAM;CAGP;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/view/down-drop.js
CHANGED
@@ -8,11 +8,11 @@ import { html, css, query, define } from "../deps.js";
|
|
8
8
|
import STD from "../layout/std.js";
|
9
9
|
let DownDrop = class DownDrop extends STD {
|
10
10
|
render() {
|
11
|
-
return html `<main>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
</main>`;
|
11
|
+
return html `<main>
|
12
|
+
<slot name="hover"></slot>
|
13
|
+
<slot name="focus" @click=${this.toggle}></slot>
|
14
|
+
<div style="transform:translateX(0)"><slot></slot></div>
|
15
|
+
</main>`;
|
16
16
|
}
|
17
17
|
async firstUpdated() {
|
18
18
|
if (this.querySelector(`[slot="focus"]`)) {
|
@@ -27,7 +27,7 @@ let DownDrop = class DownDrop extends STD {
|
|
27
27
|
window.addEventListener("resize", () => {
|
28
28
|
clearTimeout(this._timer);
|
29
29
|
this._timer = setTimeout(() => {
|
30
|
-
this._div.style.transform =
|
30
|
+
this._div.style.transform = "translateX(0)";
|
31
31
|
this.resize();
|
32
32
|
}, 250);
|
33
33
|
});
|
@@ -46,7 +46,7 @@ let DownDrop = class DownDrop extends STD {
|
|
46
46
|
this._div.style.transform = `translateX(${RightWidth}px)`;
|
47
47
|
}
|
48
48
|
else {
|
49
|
-
this._div.style.transform =
|
49
|
+
this._div.style.transform = "translateX(0)";
|
50
50
|
}
|
51
51
|
}
|
52
52
|
close() {
|
@@ -61,29 +61,33 @@ let DownDrop = class DownDrop extends STD {
|
|
61
61
|
this._div.style.visibility === "visible" ? this.close() : this.open();
|
62
62
|
}
|
63
63
|
};
|
64
|
-
DownDrop.styles = [
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
64
|
+
DownDrop.styles = [
|
65
|
+
STD.styles,
|
66
|
+
css `
|
67
|
+
:host {
|
68
|
+
height: 100%;
|
69
|
+
width: 100%;
|
70
|
+
}
|
71
|
+
main {
|
72
|
+
height: inherit;
|
73
|
+
width: inherit;
|
74
|
+
display: flex;
|
75
|
+
position: relative;
|
76
|
+
flex-direction: column;
|
77
|
+
align-items: center;
|
78
|
+
}
|
79
|
+
div {
|
80
|
+
background-color: inherit;
|
81
|
+
position: absolute;
|
82
|
+
visibility: hidden;
|
83
|
+
top: 100%;
|
84
|
+
}
|
85
|
+
slot[name="hover"]:hover ~ div,
|
86
|
+
div:hover {
|
87
|
+
visibility: visible;
|
88
|
+
}
|
89
|
+
`,
|
90
|
+
];
|
87
91
|
__decorate([
|
88
92
|
query("div")
|
89
93
|
], DownDrop.prototype, "_div", void 0);
|
package/view/menu-list.d.ts
CHANGED
@@ -5,7 +5,7 @@ export declare class MenuList extends STD {
|
|
5
5
|
def: boolean;
|
6
6
|
_section: HTMLElement;
|
7
7
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResultGroup[];
|
8
|
-
render(): import("lit").TemplateResult<1>;
|
8
|
+
render(): import("lit-html").TemplateResult<1>;
|
9
9
|
toggle(to?: boolean): void;
|
10
10
|
}
|
11
11
|
export default MenuList;
|
package/view/menu-list.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu-list.d.ts","sourceRoot":"","sources":["../../src/view/menu-list.ts"],"names":[],"mappings":"AACA,OAAO,GAAmB,MAAM,UAAU,CAAC;AAC3C,qBACa,QAAS,SAAQ,GAAG;IACnB,OAAO,SAAM;IACmB,IAAI,UAAS;IAChD,GAAG,EAAE,OAAO,CAAC;IACJ,QAAQ,EAAE,WAAW,CAAC;IACxC,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"menu-list.d.ts","sourceRoot":"","sources":["../../src/view/menu-list.ts"],"names":[],"mappings":"AACA,OAAO,GAAmB,MAAM,UAAU,CAAC;AAC3C,qBACa,QAAS,SAAQ,GAAG;IACnB,OAAO,SAAM;IACmB,IAAI,UAAS;IAChD,GAAG,EAAE,OAAO,CAAC;IACJ,QAAQ,EAAE,WAAW,CAAC;IACxC,MAAM,CAAC,MAAM,8DAyBX;IACF,MAAM;IAeN,MAAM,CAAC,EAAE,UAAa;CAIvB;AACD,eAAe,QAAQ,CAAC;AACxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
package/view/menu-list.js
CHANGED
@@ -17,42 +17,47 @@ let MenuList = class MenuList extends STD {
|
|
17
17
|
if (notitle) {
|
18
18
|
this.open = true;
|
19
19
|
}
|
20
|
-
return html `<dl>
|
21
|
-
<dt ?open=${this.open} ?notitle=${notitle}
|
22
|
-
|
23
|
-
|
24
|
-
</dt>
|
25
|
-
<dd ?open=${this.open}>
|
26
|
-
|
27
|
-
</dd
|
20
|
+
return html `<dl>
|
21
|
+
<dt ?open=${this.open} ?notitle=${notitle}>
|
22
|
+
<span>${this.summary}<slot name="summary"></slot></span>
|
23
|
+
<i @click=${() => this.toggle()}>${!this.querySelector(`[slot="icon"]`) ? html `<svg viewBox="0 0 48 48" fill="none"><path d="M19 12L31 24L19 36" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /></svg>` : html `<slot name="icon"></slot>`}</i>
|
24
|
+
</dt>
|
25
|
+
<dd ?open=${this.open}>
|
26
|
+
<section><slot></slot></section>
|
27
|
+
</dd>
|
28
|
+
</dl>`;
|
28
29
|
}
|
29
30
|
toggle(to = !this.open) {
|
30
31
|
this.open = to;
|
31
32
|
this.dispatchEvent(new CustomEvent("change", { detail: this.open }));
|
32
33
|
}
|
33
34
|
};
|
34
|
-
MenuList.styles = [
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
35
|
+
MenuList.styles = [
|
36
|
+
STD.styles,
|
37
|
+
DLsharecss,
|
38
|
+
css `
|
39
|
+
i {
|
40
|
+
width: 1.2em;
|
41
|
+
height: 1.2em;
|
42
|
+
display: inline-flex;
|
43
|
+
align-items: center;
|
44
|
+
border-radius: 20%;
|
45
|
+
transition: inherit;
|
46
|
+
}
|
47
|
+
dt i {
|
48
|
+
background-color: rgb(0 0 0 / 0.055);
|
49
|
+
}
|
50
|
+
dt i:hover {
|
51
|
+
background-color: rgb(0 0 0 /0.075);
|
52
|
+
}
|
53
|
+
[open] svg {
|
54
|
+
transform: rotate(90deg);
|
55
|
+
}
|
56
|
+
[notitle] {
|
57
|
+
display: none;
|
58
|
+
}
|
59
|
+
`,
|
60
|
+
];
|
56
61
|
__decorate([
|
57
62
|
property()
|
58
63
|
], MenuList.prototype, "summary", void 0);
|
package/view/route-view.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route-view.d.ts","sourceRoot":"","sources":["../../src/view/route-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAA2B,UAAU,EAAY,MAAM,YAAY,CAAC;AAE3E,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"route-view.d.ts","sourceRoot":"","sources":["../../src/view/route-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAA2B,UAAU,EAAY,MAAM,YAAY,CAAC;AAE3E,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAM;IAC1D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;IACP,MAAM,UAAS;IAChC,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAY;IAC1D,OAAO,SAAM;IACb,IAAI,SAAM;IACO,QAAQ,UAAS;IAClB,QAAQ,MAAQ;IAC5C,IAAI,MAAM,CAAC,CAAC;;;OAAA,EAWX;IACD,IAAI,MAAM;;;QAET;IACD,MAAM,CAAC,MAAM,0BAIX;IACF,MAAM;IASN,SAAS;;;;IAMT,iBAAiB,IAAI,IAAI;IAkBzB,aAAa;IAMb,cAAc;IAmBd,YAAY;IAOZ,cAAc,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,cAAc;IAMhE,eAAe,CAAC,iBAAiB,EAAE,MAAM,EAAE,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,GAAG,IAAI,GAAG,cAAc;IAQ5J,MAAM,CAAC,eAAe,CAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,GAAG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IA+BpH,MAAM,CAAC,aAAa,CAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAW;IA4C5H,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAoB3F,MAAM,CAAC,SAAS;CAOjB;AACD,eAAe,SAAS,CAAC;AACzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
package/view/route-view.js
CHANGED
@@ -59,16 +59,15 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
|
|
59
59
|
});
|
60
60
|
if (!this.override)
|
61
61
|
return;
|
62
|
-
const self = this;
|
63
62
|
const pushHistory = history.pushState;
|
64
63
|
history.pushState = function () {
|
65
64
|
pushHistory.apply(this, arguments);
|
66
|
-
|
65
|
+
this.path = window.location.pathname;
|
67
66
|
};
|
68
67
|
const replaceHistory = history.replaceState;
|
69
68
|
history.replaceState = function () {
|
70
69
|
replaceHistory.apply(this, arguments);
|
71
|
-
|
70
|
+
this.path = window.location.pathname;
|
72
71
|
};
|
73
72
|
}
|
74
73
|
render_united() {
|
@@ -84,7 +83,7 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
|
|
84
83
|
const slotname = node.getAttribute("slot");
|
85
84
|
return {
|
86
85
|
path: this.baseURL + slotname,
|
87
|
-
slotname
|
86
|
+
slotname,
|
88
87
|
};
|
89
88
|
});
|
90
89
|
let slotsSort;
|
@@ -227,12 +226,16 @@ let RouteView = RouteView_1 = class RouteView extends LitElement {
|
|
227
226
|
static updateAll() {
|
228
227
|
const routeViewTagName = conf.namemap.get("route-view");
|
229
228
|
const routeViewArray = document.querySelectorAll(`${routeViewTagName}:not([override])`);
|
230
|
-
for (let index = 0, ArrayItem; ArrayItem = routeViewArray[index]; index++) {
|
229
|
+
for (let index = 0, ArrayItem; (ArrayItem = routeViewArray[index]); index++) {
|
231
230
|
ArrayItem.path = window.location.pathname;
|
232
231
|
}
|
233
232
|
}
|
234
233
|
};
|
235
|
-
RouteView.styles = css
|
234
|
+
RouteView.styles = css `
|
235
|
+
:host {
|
236
|
+
display: contents;
|
237
|
+
}
|
238
|
+
`;
|
236
239
|
__decorate([
|
237
240
|
property({ type: Boolean })
|
238
241
|
], RouteView.prototype, "static", void 0);
|
package/view/scroll-x.d.ts
CHANGED
@@ -2,7 +2,7 @@ import STD from "./std.js";
|
|
2
2
|
export declare class ScrollX extends STD {
|
3
3
|
static styles: import("lit").CSSResult;
|
4
4
|
get _section(): HTMLElement;
|
5
|
-
render(): import("lit").TemplateResult<1>;
|
5
|
+
render(): import("lit-html").TemplateResult<1>;
|
6
6
|
firstUpdated(): void;
|
7
7
|
resize(): void;
|
8
8
|
}
|
package/view/scroll-x.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"scroll-x.d.ts","sourceRoot":"","sources":["../../src/view/scroll-x.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"scroll-x.d.ts","sourceRoot":"","sources":["../../src/view/scroll-x.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,qBACa,OAAQ,SAAQ,GAAG;IAC9B,MAAM,CAAC,MAAM,0BA0BX;IACF,IAAI,QAAQ,gBAEX;IACD,MAAM;IAON,YAAY;IASZ,MAAM;CAcP;AACD,eAAe,OAAO,CAAC;AACvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
package/view/scroll-x.js
CHANGED
@@ -11,7 +11,11 @@ let ScrollX = class ScrollX extends STD {
|
|
11
11
|
return this.shadowRoot.querySelector("section");
|
12
12
|
}
|
13
13
|
render() {
|
14
|
-
return html `<section
|
14
|
+
return html `<section>
|
15
|
+
<main>
|
16
|
+
<span><slot></slot></span>
|
17
|
+
</main>
|
18
|
+
</section>`;
|
15
19
|
}
|
16
20
|
firstUpdated() {
|
17
21
|
this._section.addEventListener("scroll", (e) => {
|
@@ -39,32 +43,33 @@ let ScrollX = class ScrollX extends STD {
|
|
39
43
|
}
|
40
44
|
}
|
41
45
|
};
|
42
|
-
ScrollX.styles = css `
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
46
|
+
ScrollX.styles = css `
|
47
|
+
:host {
|
48
|
+
display: block;
|
49
|
+
width: 100%;
|
50
|
+
height: fit-content;
|
51
|
+
}
|
52
|
+
section {
|
53
|
+
overflow: auto;
|
54
|
+
position: relative;
|
55
|
+
transform-origin: 0 0;
|
56
|
+
transform: rotate(-90deg) translateX(-100%);
|
57
|
+
}
|
58
|
+
section::-webkit-scrollbar {
|
59
|
+
display: none;
|
60
|
+
}
|
61
|
+
span {
|
62
|
+
height: 500px;
|
63
|
+
display: flex;
|
64
|
+
}
|
65
|
+
main {
|
66
|
+
width: auto;
|
67
|
+
position: absolute;
|
68
|
+
left: 100%;
|
69
|
+
transform-origin: 0 0;
|
70
|
+
transform: rotate(90deg);
|
71
|
+
}
|
72
|
+
`;
|
68
73
|
ScrollX = __decorate([
|
69
74
|
define("scroll-x")
|
70
75
|
], ScrollX);
|
package/view/std.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAO,MAAM,YAAY,CAAC;AAC1C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;
|
1
|
+
{"version":3,"file":"std.d.ts","sourceRoot":"","sources":["../../src/view/std.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAO,MAAM,YAAY,CAAC;AAC1C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,OAAO;CAAG;AAC/C,eAAO,MAAM,UAAU,yBAiCtB,CAAC"}
|
package/view/std.js
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
import { GLOBSTD, css } from "../deps.js";
|
2
2
|
export default class ViewSTD extends GLOBSTD {
|
3
3
|
}
|
4
|
-
export const DLsharecss = css `
|
5
|
-
:host{
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
span{
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
dt{
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
*{
|
23
|
-
|
24
|
-
}
|
25
|
-
dd{
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
}
|
30
|
-
section{
|
31
|
-
|
32
|
-
|
33
|
-
}
|
34
|
-
dd[open]{
|
35
|
-
|
36
|
-
}
|
4
|
+
export const DLsharecss = css `
|
5
|
+
:host {
|
6
|
+
display: block;
|
7
|
+
transition: all 0.3s ease-in-out;
|
8
|
+
}
|
9
|
+
span {
|
10
|
+
display: inline-flex;
|
11
|
+
align-items: center;
|
12
|
+
flex: 1;
|
13
|
+
white-space: nowrap;
|
14
|
+
}
|
15
|
+
dt {
|
16
|
+
display: flex;
|
17
|
+
flex-wrap: nowrap;
|
18
|
+
justify-content: space-between;
|
19
|
+
background: inherit;
|
20
|
+
align-items: center;
|
21
|
+
}
|
22
|
+
* {
|
23
|
+
transition: inherit;
|
24
|
+
}
|
25
|
+
dd {
|
26
|
+
overflow: hidden;
|
27
|
+
display: grid;
|
28
|
+
grid-template-rows: 0fr;
|
29
|
+
}
|
30
|
+
section {
|
31
|
+
min-height: 0;
|
32
|
+
overflow: hidden;
|
33
|
+
}
|
34
|
+
dd[open] {
|
35
|
+
grid-template-rows: 1fr;
|
36
|
+
}
|
37
37
|
`;
|
package/with.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
export declare const define: (name: string, options?: ElementDefinitionOptions) => (constructor: CustomElementConstructor) => void;
|
2
2
|
/**
|
3
|
-
* Create element with args append to target
|
4
|
-
* @param target Appended target element or use document.querySelector(target) or document.body
|
5
|
-
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
6
|
-
*/
|
3
|
+
* Create element with args append to target
|
4
|
+
* @param target Appended target element or use document.querySelector(target) or document.body
|
5
|
+
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
6
|
+
*/
|
7
7
|
export declare const append: (target?: string | object, args?: string | {
|
8
8
|
tag: any;
|
9
9
|
props?: any;
|
@@ -11,9 +11,9 @@ export declare const append: (target?: string | object, args?: string | {
|
|
11
11
|
html?: any;
|
12
12
|
}) => void;
|
13
13
|
/**
|
14
|
-
* Create element from args
|
15
|
-
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
16
|
-
*/
|
14
|
+
* Create element from args
|
15
|
+
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
16
|
+
*/
|
17
17
|
export declare const create: (args?: string | {
|
18
18
|
tag: any;
|
19
19
|
props?: any;
|
@@ -21,8 +21,8 @@ export declare const create: (args?: string | {
|
|
21
21
|
html?: any;
|
22
22
|
}) => any;
|
23
23
|
/**
|
24
|
-
* Create element with args append to target
|
25
|
-
* @param map Map of key:selector, value:args
|
26
|
-
*/
|
24
|
+
* Create element with args append to target
|
25
|
+
* @param map Map of key:selector, value:args
|
26
|
+
*/
|
27
27
|
export declare const retag: (map: any) => void;
|
28
28
|
//# sourceMappingURL=with.d.ts.map
|
package/with.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../src/with.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,SAAU,MAAM,YAAY,wBAAwB,mBAAmB,wBAAwB,SAOjH,CAAC;AACF;;;;
|
1
|
+
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../src/with.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,SAAU,MAAM,YAAY,wBAAwB,mBAAmB,wBAAwB,SAOjH,CAAC;AACF;;;;GAIG;AACH,eAAO,MAAM,MAAM,YAAY,MAAM,GAAG,MAAM,SAAiB,MAAM,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,SAK5H,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,MAAM,UAAU,MAAM,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,QAqB1F,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,KAAK,oBAqBjB,CAAC"}
|
package/with.js
CHANGED
@@ -9,10 +9,10 @@ export const define = (name, options) => (constructor) => {
|
|
9
9
|
}
|
10
10
|
};
|
11
11
|
/**
|
12
|
-
* Create element with args append to target
|
13
|
-
* @param target Appended target element or use document.querySelector(target) or document.body
|
14
|
-
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
15
|
-
*/
|
12
|
+
* Create element with args append to target
|
13
|
+
* @param target Appended target element or use document.querySelector(target) or document.body
|
14
|
+
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
15
|
+
*/
|
16
16
|
export const append = (target = "body", args = "div") => {
|
17
17
|
if (!args)
|
18
18
|
return;
|
@@ -21,9 +21,9 @@ export const append = (target = "body", args = "div") => {
|
|
21
21
|
target.appendChild(element);
|
22
22
|
};
|
23
23
|
/**
|
24
|
-
* Create element from args
|
25
|
-
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
26
|
-
*/
|
24
|
+
* Create element from args
|
25
|
+
* @param args tag:tag name, props:attribute, children:appended chindren, html:innerHTML
|
26
|
+
*/
|
27
27
|
export const create = (args = "div") => {
|
28
28
|
const tag = (typeof args === "string" ? args : args === null || args === void 0 ? void 0 : args.tag) || "div";
|
29
29
|
const { props, children, html } = args || {};
|
@@ -34,12 +34,11 @@ export const create = (args = "div") => {
|
|
34
34
|
element.setAttribute(prop, props[prop] === true ? "" : props[prop]);
|
35
35
|
});
|
36
36
|
}
|
37
|
-
;
|
38
37
|
if (html)
|
39
38
|
element.innerHTML += html;
|
40
39
|
if (children) {
|
41
|
-
if (children.length)
|
42
|
-
[...children].forEach((child) => {
|
40
|
+
if (children.length) {
|
41
|
+
/* Iterators exist */ [...children].forEach((child) => {
|
43
42
|
typeof child === "string" ? element.appendChild(document.createTextNode(child)) : element.appendChild(child);
|
44
43
|
});
|
45
44
|
}
|
@@ -50,17 +49,17 @@ export const create = (args = "div") => {
|
|
50
49
|
return element;
|
51
50
|
};
|
52
51
|
/**
|
53
|
-
* Create element with args append to target
|
54
|
-
* @param map Map of key:selector, value:args
|
55
|
-
*/
|
52
|
+
* Create element with args append to target
|
53
|
+
* @param map Map of key:selector, value:args
|
54
|
+
*/
|
56
55
|
export const retag = (map) => {
|
57
56
|
if (!map)
|
58
57
|
return;
|
59
|
-
for (
|
58
|
+
for (const [key, args] of map) {
|
60
59
|
for (let i = document.querySelectorAll(key).length - 1; i >= 0; i--) {
|
61
60
|
const element = document.querySelectorAll(key)[i];
|
62
61
|
const tag = (typeof args === "string" ? args : args === null || args === void 0 ? void 0 : args.tag) || "div";
|
63
|
-
|
62
|
+
const props = args.props || {};
|
64
63
|
const { children, html = "" } = args;
|
65
64
|
[...element.attributes].reduce((acc, attr) => {
|
66
65
|
acc[attr.name] = attr.args;
|
package/view/react/effect.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import * as X from "../../effect/index.js";
|
2
|
-
export declare const OVText: import("@lit-labs/react").ReactWebComponent<X.OVText, {}>;
|
3
|
-
export declare const OVPort: import("@lit-labs/react").ReactWebComponent<X.OVPort, {}>;
|
4
|
-
export declare const OVButton: import("@lit-labs/react").ReactWebComponent<X.OVButton, {}>;
|
5
|
-
export declare const ROPort: import("@lit-labs/react").ReactWebComponent<X.ROPort, {}>;
|
6
|
-
export declare const TWText: import("@lit-labs/react").ReactWebComponent<X.TWText, {
|
7
|
-
onChange: string;
|
8
|
-
onDone: string;
|
9
|
-
}>;
|
10
|
-
//# sourceMappingURL=effect.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"effect.d.ts","sourceRoot":"","sources":["../../../src/view/react/effect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAE3C,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,QAAQ,6DAInB,CAAC;AACH,eAAO,MAAM,MAAM,2DAIjB,CAAC;AACH,eAAO,MAAM,MAAM;;;EAQjB,CAAC"}
|